studyStudent.vue 708 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793
  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: 13px 0; width: 100%"
  63. >
  64. <div class="courseTitle">
  65. <div style="max-width: calc(100% - 40px); width: auto">
  66. <el-tooltip
  67. effect="light"
  68. :content="courseDetail.title"
  69. placement="top"
  70. >
  71. <div class="ctitle">
  72. {{ courseDetail.title }}
  73. </div>
  74. </el-tooltip>
  75. </div>
  76. <el-tooltip effect="light" content="收缩" placement="top">
  77. <div class="mlImg" @click="setContent2(false)">
  78. <img src="../../assets/icon/newIcon/mlBtn.png" alt="" />
  79. </div>
  80. </el-tooltip>
  81. </div>
  82. </div>
  83. <div class="cru_selectBox">
  84. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  85. <div class="stageChild" :class="{ navActive: item.isOpen }">
  86. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  87. <div
  88. class="navItem"
  89. :class="{
  90. openTaskActive:
  91. navIndex == taskCount &&
  92. nav.id == navId &&
  93. stageIndex == courseType,
  94. }"
  95. >
  96. <div
  97. @click="openTask(stageIndex, navIndex, nav.id)"
  98. class="navItemList"
  99. :class="{
  100. isItemList:
  101. navIndex == taskCount &&
  102. nav.id == navId &&
  103. stageIndex == courseType,
  104. }"
  105. >
  106. <div>任务{{ navIndex + 1 }}:</div>
  107. <el-tooltip
  108. effect="light"
  109. :content="nav.taskName"
  110. placement="top"
  111. >
  112. <div
  113. :style="{
  114. width:
  115. IsLookOpen && !nav.isLook
  116. ? 'calc(100% - 75px)'
  117. : 'auto',
  118. }"
  119. >
  120. {{ nav.taskName }}
  121. </div>
  122. </el-tooltip>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  131. <div
  132. class="new_top"
  133. style="
  134. position: fixed;
  135. top: 20px;
  136. left: 22%;
  137. width: 77%;
  138. z-index: 999;
  139. border-radius: 12px 12px 0 0;
  140. border-bottom: 1px solid #cad1dc;
  141. padding: 10px 0;
  142. "
  143. :class="{ navLeftCss: !mlDialog }"
  144. >
  145. <div class="courseIndex">
  146. <div>任务{{ taskCount + 1 }}</div>
  147. <el-tooltip
  148. effect="light"
  149. :content="
  150. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  151. "
  152. placement="top"
  153. >
  154. <div>
  155. {{
  156. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  157. .task
  158. }}
  159. </div>
  160. </el-tooltip>
  161. </div>
  162. <div class="btnAll">
  163. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  164. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  165. <div class="returnBtn" @click="refreshCourse">刷新</div>
  166. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  167. 评论
  168. </div>
  169. <div
  170. class="returnBtn vedioIcon"
  171. @click="startRecording"
  172. v-if="!videoStart && (tType == 1 || tType == 4)"
  173. >
  174. 录制
  175. </div>
  176. <!-- <div class="returnBtn" @click="allScrell">全屏</div> -->
  177. <!-- <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  178. 开始录制
  179. </div>
  180. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  181. style="background: #ee5255">
  182. 下载录制
  183. </div>
  184. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  185. 权限
  186. </div> -->
  187. <div
  188. class="returnBtn returnIcon"
  189. @click.stop="
  190. goTo(
  191. '/courseDetail?userid=' +
  192. userid +
  193. '&oid=' +
  194. oid +
  195. '&org=' +
  196. org +
  197. '&cid=' +
  198. classId +
  199. '&courseId=' +
  200. id +
  201. '&tType=' +
  202. tType +
  203. '&screenType=' +
  204. screenType
  205. )
  206. "
  207. >
  208. 返回
  209. </div>
  210. </div>
  211. </div>
  212. <div
  213. class="isNoMessage"
  214. v-if="
  215. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  216. .chapterData.length == 0 &&
  217. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  218. .toolChoose[0].tool.length == 0 &&
  219. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  220. .taskDetail == '' &&
  221. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  222. .eList &&
  223. !(
  224. courseDetail.userid == userid ||
  225. (courseDetail.course_teacher &&
  226. courseDetail.course_teacher.indexOf(userid) != -1)
  227. )
  228. "
  229. >
  230. <img src="../../assets/icon/isNoMessage.png" alt />
  231. </div>
  232. <div class="study_top" :class="{ pzClass: pzDialog }">
  233. <div
  234. class="vedioBox"
  235. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  236. >
  237. <div
  238. class="student_head"
  239. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  240. >
  241. <div class="vedioTaskBox">
  242. <div
  243. :class="
  244. contentDialog == false
  245. ? 'box_course isContentCss'
  246. : 'box_course'
  247. "
  248. v-if="
  249. vChapterData.length > 0 &&
  250. vChapterData[0] &&
  251. showType !== ''
  252. "
  253. >
  254. <div class="wheel" style="height: auto" v-if="showType === 0">
  255. <div
  256. class="workd_media"
  257. style="height: 650px; width: calc(100% - 50px)"
  258. >
  259. <video-player
  260. class="video-player vjs-custom-skin"
  261. :class="contentDialog == false ? 'isAllWidth' : ''"
  262. :playsinline="true"
  263. :options="playerO[0]"
  264. @play="onPlayerPlay($event)"
  265. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  266. ></video-player>
  267. </div>
  268. </div>
  269. <div
  270. class="wheel"
  271. v-if="showType == 1"
  272. style="
  273. box-shadow: 0 0 6px 1px #f2f2f2;
  274. width: 95%;
  275. margin: 0 auto;
  276. background: #f1f1f1;
  277. "
  278. >
  279. <div class="title">查看文档</div>
  280. <el-form class="textBox">
  281. <el-form-item class="textTitle">
  282. <div style="font-size: 22px">
  283. {{ text.name }}
  284. </div>
  285. </el-form-item>
  286. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  287. <div v-html="text.url" class="textContent cont"></div>
  288. </el-form>
  289. </div>
  290. <div
  291. class="wheel"
  292. v-if="
  293. pptImgUrl1.indexOf(
  294. 'https://view.officeapps.live.com/op/view.aspx?src='
  295. ) != -1 && showType == 2
  296. "
  297. style="width: 95%; margin: 0 auto"
  298. >
  299. <iframe
  300. style="width: 100%; height: 100%; border: none"
  301. :src="pptImgUrl1"
  302. ></iframe>
  303. </div>
  304. <div
  305. class="wheel"
  306. v-else-if="showType == 2"
  307. style="width: 95%; margin: 0 auto"
  308. >
  309. <iframe
  310. style="width: 100%; height: 100%; border: none"
  311. security="restricted"
  312. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  313. :src="pptImgUrl1"
  314. ></iframe>
  315. </div>
  316. <div
  317. class="wheel"
  318. v-if="showType == 3"
  319. style="width: 95%; margin: 0 auto"
  320. >
  321. <pdf
  322. :pdfUrl="pptImgUrl1"
  323. style="width: 100%; height: 100%; overflow: auto"
  324. ></pdf>
  325. </div>
  326. <div
  327. class="wheel"
  328. v-if="showType == 4"
  329. style="width: 95%; margin: 0 auto"
  330. >
  331. <el-image
  332. :src="pptImgUrl1"
  333. fit="contain"
  334. style="width: 100%; height: 100%; cursor: pointer"
  335. @click="previewImg(pptImgUrl1)"
  336. ></el-image>
  337. </div>
  338. </div>
  339. <div
  340. class="pButton"
  341. style="
  342. position: absolute;
  343. right: 20px;
  344. top: 0;
  345. background: #205cc6;
  346. z-index: 998;
  347. opacity: 0.8;
  348. "
  349. v-if="!contentDialog"
  350. @click="setContent(true)"
  351. >
  352. <!-- 批 -->
  353. <img
  354. src="../../assets/mlBtn.png"
  355. style="width: 25px"
  356. alt=""
  357. />
  358. </div>
  359. <div
  360. v-if="contentDialog == true"
  361. :style="{
  362. width:
  363. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  364. showType === ''
  365. ? 'calc(100%)'
  366. : '300px',
  367. margin:
  368. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  369. showType === ''
  370. ? '0 15px'
  371. : '0 15px 0 0',
  372. }"
  373. >
  374. <div
  375. class="vedioList"
  376. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  377. style="height: 650px"
  378. >
  379. <div class="navCorOpenBox">
  380. <div class="navTitile">内容列表:</div>
  381. <div class="navCorOpen" @click="setContent(false)">
  382. <img src="../../assets/icon/newIcon/mlBtn.png" alt="" />
  383. </div>
  384. </div>
  385. <div class="navBox">
  386. <div
  387. v-show="
  388. vChapterData[0].length > 0 || fileC[0].length > 0
  389. "
  390. style="padding: 10px 0 25px 0"
  391. >
  392. <div
  393. class="vedioTimeBox"
  394. v-for="(vitem, vindex) in vChapterData[0]"
  395. :key="vindex + '1'"
  396. >
  397. <div class="navListItem" v-if="vitem.type == 2">
  398. <div
  399. @click="lookVedio(vitem.url, vindex)"
  400. class="navText"
  401. :class="isClickNav == vindex ? 'isClickNav' : ''"
  402. >
  403. <span v-if="vitem.text">{{ vitem.text }}-</span
  404. >{{ vitem.name }}
  405. </div>
  406. <div class="downIcon" @click="downloadFile2(vitem)">
  407. <img
  408. src="../../assets/icon/newIcon/down.png"
  409. alt
  410. />
  411. </div>
  412. </div>
  413. <div class="navListItem" v-if="vitem.type == 6">
  414. <div
  415. @click="lookText(taskCount, vindex)"
  416. class="navText"
  417. :class="isClickNav == vindex ? 'isClickNav' : ''"
  418. >
  419. {{ vitem.name }}.doc
  420. </div>
  421. <div class="downIcon" @click="downloadFile2(vitem)">
  422. <img
  423. src="../../assets/icon/newIcon/down.png"
  424. alt
  425. />
  426. </div>
  427. </div>
  428. <div class="navListItem" v-if="vitem.type == 8">
  429. <div
  430. @click="doUrl(vitem.url, vindex)"
  431. class="navText"
  432. :class="isClickNav == vindex ? 'isClickNav' : ''"
  433. >
  434. {{ vitem.title ? vitem.title : vitem.url }}
  435. </div>
  436. <div class="downIcon" @click="downloadFile2(vitem)">
  437. <img
  438. src="../../assets/icon/newIcon/down.png"
  439. alt
  440. />
  441. </div>
  442. </div>
  443. <div class="navListItem" v-if="vitem.type == 3">
  444. <div
  445. @click="downFile(vitem, vindex)"
  446. class="navText"
  447. :class="isClickNav == vindex ? 'isClickNav' : ''"
  448. >
  449. <span v-if="vitem.text">{{ vitem.text }}-</span
  450. >{{ vitem.name }}
  451. </div>
  452. <div class="downIcon" @click="downloadFile2(vitem)">
  453. <img
  454. src="../../assets/icon/newIcon/down.png"
  455. alt
  456. />
  457. </div>
  458. </div>
  459. <div class="navListItem" v-if="vitem.type == 12">
  460. <div class="navText" @click="downloadFile2(vitem)">
  461. <span v-if="vitem.text">{{ vitem.text }}-</span
  462. >{{ vitem.name }}
  463. </div>
  464. <div class="downIcon" @click="downloadFile2(vitem)">
  465. <img
  466. src="../../assets/icon/newIcon/down.png"
  467. alt
  468. />
  469. </div>
  470. </div>
  471. <div class="navListItem" v-if="vitem.type == 13">
  472. <div
  473. class="navText"
  474. @click="checkPhoto(vitem, vindex)"
  475. :class="isClickNav == vindex ? 'isClickNav' : ''"
  476. >
  477. {{ vitem.name }}
  478. </div>
  479. <div class="downIcon" @click="downloadFile2(vitem)">
  480. <img
  481. src="../../assets/icon/newIcon/down.png"
  482. alt
  483. />
  484. </div>
  485. </div>
  486. </div>
  487. <div class="fileC_box" v-if="fileC[0].length > 0">
  488. <div class="fileC_title">以下文件不支持预览</div>
  489. <div
  490. class="vedioTimeBox"
  491. v-for="(vitem, vindex) in fileC[0]"
  492. :key="vindex + '1'"
  493. >
  494. <div class="navListItem" v-if="vitem.type == 12">
  495. <div class="navText" style="color: #acb4bf">
  496. <span v-if="vitem.text">{{ vitem.text }}-</span
  497. >{{ vitem.name }}
  498. </div>
  499. <div
  500. class="downIcon"
  501. @click="downloadFile2(vitem)"
  502. >
  503. <img
  504. src="../../assets/icon/newIcon/down.png"
  505. alt
  506. />
  507. </div>
  508. </div>
  509. </div>
  510. </div>
  511. </div>
  512. </div>
  513. </div>
  514. </div>
  515. </div>
  516. <div style="width: calc(100% - 315px)">
  517. <div
  518. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  519. v-if="showType == 2 || showType == 3"
  520. >
  521. <el-button
  522. type="primary"
  523. class="newButton"
  524. @click="checkFileFull(showType, pptImgUrl1)"
  525. >全屏查看</el-button
  526. >
  527. <el-button
  528. type="primary"
  529. class="newButton"
  530. @click="downloadFile(pptImgUrl1)"
  531. v-if="showType != 2"
  532. >文件下载</el-button
  533. >
  534. <el-button
  535. v-if="
  536. showType == 2 &&
  537. pptImgUrl1.indexOf(
  538. 'https://view.officeapps.live.com/op/view.aspx?src='
  539. ) == -1
  540. "
  541. type="primary"
  542. class="newButton"
  543. @click="openLine(pptImgUrl1)"
  544. >打开链接
  545. </el-button>
  546. </div>
  547. <div
  548. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  549. v-if="showType == 1"
  550. >
  551. <el-button
  552. type="primary"
  553. class="newButton"
  554. @click="checkFileFull(showType, text)"
  555. >全屏查看</el-button
  556. >
  557. </div>
  558. </div>
  559. </div>
  560. </div>
  561. <div
  562. class="student_body"
  563. v-resize="resize"
  564. :style="{
  565. borderRadius:
  566. vChapterData[0].length == 0 && fileC[0].length == 0
  567. ? '0 0 20px 20px'
  568. : '20px',
  569. }"
  570. v-if="
  571. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  572. .toolChoose[0].tool &&
  573. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  574. .toolChoose[0].tool.length > 0) ||
  575. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  576. .taskDetail != '' ||
  577. courseDetail.userid == userid ||
  578. (courseDetail.course_teacher &&
  579. courseDetail.course_teacher.indexOf(userid) != -1)
  580. "
  581. >
  582. <div
  583. class="taskBox"
  584. v-if="
  585. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  586. .taskDetail != ''
  587. "
  588. :style="
  589. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  590. .toolChoose[0].tool &&
  591. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  592. .toolChoose[0].tool.length &&
  593. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  594. .toolChoose[0].tool.length > 0
  595. ? 'border-bottom: 1px solid #cad1dc'
  596. : ''
  597. "
  598. >
  599. <div
  600. style="
  601. display: flex;
  602. flex-wrap: nowrap;
  603. flex-direction: column;
  604. position: relative;
  605. "
  606. >
  607. <div
  608. style="padding: 15px 0; line-height: 29px; font-size: 18px"
  609. class="cont"
  610. v-if="
  611. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  612. .taskDetail != ''
  613. "
  614. v-html="
  615. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  616. .taskDetail
  617. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  618. taskCount
  619. ].taskDetail
  620. : '暂无描述'
  621. "
  622. ></div>
  623. </div>
  624. </div>
  625. <div
  626. class="vedioBox"
  627. v-if="
  628. courseDetail.userid == userid ||
  629. (courseDetail.course_teacher &&
  630. courseDetail.course_teacher.indexOf(userid) != -1)
  631. "
  632. >
  633. <div
  634. class="queTop"
  635. style="
  636. padding: 15px 0 15px 37px;
  637. justify-content: space-between;
  638. "
  639. >
  640. <div class="queTopTitle">工具栏</div>
  641. <div class="queTopRight">
  642. <div
  643. class="queTopClose"
  644. v-if="isClose == 0"
  645. @click="isClose = 1"
  646. >
  647. 展开
  648. <div class="closeImg">
  649. <img src="../../assets/icon/newIcon/close.png" alt="" />
  650. </div>
  651. </div>
  652. <div
  653. class="queTopClose"
  654. v-if="isClose == 1"
  655. @click="isClose = 0"
  656. >
  657. 收缩
  658. <div class="openImg">
  659. <img src="../../assets/icon/newIcon/open.png" alt="" />
  660. </div>
  661. </div>
  662. <el-button
  663. style="margin: 0 30px 0 auto"
  664. type="primary"
  665. size="small"
  666. @click="addToolChoose"
  667. >确定</el-button
  668. >
  669. </div>
  670. </div>
  671. <div
  672. class="tool_work_box"
  673. :style="isClose == 0 ? 'display:none' : 'display:block'"
  674. >
  675. <div class="tool_box">
  676. <div class="tool_type_box">
  677. <div class="chooseWho">
  678. <div
  679. :class="toolType == 0 ? 'isChooseActive' : ''"
  680. @click="(toolType = 0), $forceUpdate()"
  681. >
  682. 互动类
  683. </div>
  684. <div
  685. :class="toolType == 1 ? 'isChooseActive' : ''"
  686. @click="(toolType = 1), $forceUpdate()"
  687. >
  688. 思维类
  689. </div>
  690. <!-- <div
  691. :class="toolType == 6 ? 'isChooseActive' : ''"
  692. @click="(toolType = 6), $forceUpdate()"
  693. >
  694. 协作类
  695. </div> -->
  696. <div
  697. :class="toolType == 2 ? 'isChooseActive' : ''"
  698. @click="(toolType = 2), $forceUpdate()"
  699. >
  700. 测评类
  701. </div>
  702. <!-- <div
  703. :class="toolType == 7 ? 'isChooseActive' : ''"
  704. @click="(toolType = 7), $forceUpdate()"
  705. >
  706. 评价类
  707. </div> -->
  708. <div
  709. :class="toolType == 3 ? 'isChooseActive' : ''"
  710. @click="(toolType = 3), $forceUpdate()"
  711. >
  712. 学科类
  713. </div>
  714. <!-- <div :class="toolType == 5 ? 'isChooseActive' : ''
  715. " @click="(toolType = 5), $forceUpdate()">
  716. 学科类
  717. </div>
  718. <div :class="toolType == 4 ? 'isChooseActive' : ''
  719. " @click="(toolType = 4), $forceUpdate()">
  720. 其他
  721. </div> -->
  722. </div>
  723. </div>
  724. <div>
  725. <div class="toolSort" v-if="toolType == 0">
  726. <div class="tool">
  727. <div class="whiteBIcon" @click="addTools2(10)">
  728. <img
  729. src="../../assets/icon/thirdToolList/time.png"
  730. alt
  731. />
  732. <div style="margin: 5px 0">倒计时</div>
  733. </div>
  734. <div class="check" @click="addTools2(10)">
  735. <img
  736. src="../../assets/icon/checkNo.png"
  737. alt
  738. v-if="checktoolArray.indexOf(10) == -1"
  739. />
  740. <div class="checkDiv" v-else>
  741. <img
  742. src="../../assets/icon/checkedIs.png"
  743. alt
  744. /><span>已选择</span>
  745. </div>
  746. </div>
  747. </div>
  748. <div class="tool">
  749. <div class="whiteBIcon" @click="addTools2(65)">
  750. <img
  751. src="../../assets/icon/firstToolList/pickPeople.png"
  752. alt
  753. />
  754. <div style="margin: 5px 0">挑人</div>
  755. </div>
  756. <div class="check" @click="addTools2(65)">
  757. <img
  758. src="../../assets/icon/checkNo.png"
  759. alt
  760. v-if="checktoolArray.indexOf(65) == -1"
  761. />
  762. <div class="checkDiv" v-else>
  763. <img
  764. src="../../assets/icon/checkedIs.png"
  765. alt
  766. /><span>已选择</span>
  767. </div>
  768. </div>
  769. </div>
  770. </div>
  771. <div class="toolSort" v-if="toolType == 1">
  772. <div class="tool">
  773. <div class="whiteBIcon" @click="addTools2(7)">
  774. <img
  775. src="../../assets/icon/secondToolList/mindNetwork.png"
  776. alt
  777. />
  778. <div style="margin: 5px 0">思维网格</div>
  779. </div>
  780. <div class="check" @click="addTools2(7)">
  781. <img
  782. src="../../assets/icon/checkNo.png"
  783. alt
  784. v-if="checktoolArray.indexOf(7) == -1"
  785. />
  786. <div class="checkDiv" v-else>
  787. <img
  788. src="../../assets/icon/checkedIs.png"
  789. alt
  790. /><span>已选择</span>
  791. </div>
  792. </div>
  793. </div>
  794. <div class="tool">
  795. <div class="whiteBIcon" @click="addTools2(1)">
  796. <img
  797. src="../../assets/icon/secondToolList/whiteBoard.png"
  798. alt
  799. />
  800. <div style="margin: 5px 0">电子白板</div>
  801. </div>
  802. <div class="check" @click="addTools2(1)">
  803. <img
  804. src="../../assets/icon/checkNo.png"
  805. alt
  806. v-if="checktoolArray.indexOf(1) == -1"
  807. />
  808. <div class="checkDiv" v-else>
  809. <img
  810. src="../../assets/icon/checkedIs.png"
  811. alt
  812. /><span>已选择</span>
  813. </div>
  814. </div>
  815. </div>
  816. <div class="tool">
  817. <div class="whiteBIcon" @click="addTools2(52)">
  818. <img
  819. src="../../assets/icon/fourthToolList/text.png"
  820. alt
  821. />
  822. <div style="margin: 5px 0">文档</div>
  823. </div>
  824. <div class="check" @click="addTools2(52)">
  825. <img
  826. src="../../assets/icon/checkNo.png"
  827. alt
  828. v-if="checktoolArray.indexOf(52) == -1"
  829. />
  830. <div class="checkDiv" v-else>
  831. <img
  832. src="../../assets/icon/checkedIs.png"
  833. alt
  834. /><span>已选择</span>
  835. </div>
  836. </div>
  837. </div>
  838. <div class="tool">
  839. <div class="whiteBIcon" @click="addTools2(3)">
  840. <img
  841. src="../../assets/icon/secondToolList/mindMapping.png"
  842. alt
  843. />
  844. <div style="margin: 5px 0">思维导图</div>
  845. </div>
  846. <div class="check" @click="addTools2(3)">
  847. <img
  848. src="../../assets/icon/checkNo.png"
  849. alt
  850. v-if="checktoolArray.indexOf(3) == -1"
  851. />
  852. <div class="checkDiv" v-else>
  853. <img
  854. src="../../assets/icon/checkedIs.png"
  855. alt
  856. /><span>已选择</span>
  857. </div>
  858. </div>
  859. </div>
  860. <div class="tool">
  861. <div class="whiteBIcon" @click="addTools2(48)">
  862. <img
  863. src="../../assets/icon/fourthToolList/table.png"
  864. alt
  865. />
  866. <div style="margin: 5px 0">表格</div>
  867. </div>
  868. <div class="check" @click="addTools2(48)">
  869. <img
  870. src="../../assets/icon/checkNo.png"
  871. alt
  872. v-if="checktoolArray.indexOf(48) == -1"
  873. />
  874. <div class="checkDiv" v-else>
  875. <img
  876. src="../../assets/icon/checkedIs.png"
  877. alt
  878. /><span>已选择</span>
  879. </div>
  880. </div>
  881. </div>
  882. </div>
  883. <div class="toolSort" v-if="toolType == 6">
  884. <div class="tool">
  885. <div class="whiteBIcon" @click="addTools2(49)">
  886. <img
  887. src="../../assets/icon/fourthToolList/group.png"
  888. alt
  889. />
  890. <div style="margin: 5px 0">学生分组</div>
  891. </div>
  892. <div class="check" @click="addTools2(49)">
  893. <img
  894. src="../../assets/icon/checkNo.png"
  895. alt
  896. v-if="checktoolArray.indexOf(49) == -1"
  897. />
  898. <div class="checkDiv" v-else>
  899. <img
  900. src="../../assets/icon/checkedIs.png"
  901. alt
  902. /><span>已选择</span>
  903. </div>
  904. </div>
  905. </div>
  906. </div>
  907. <div class="toolSort" v-if="toolType == 2">
  908. <div class="tool">
  909. <div class="whiteBIcon" @click="addTools2(16)">
  910. <img
  911. src="../../assets/icon/thirdToolList/work.png"
  912. alt
  913. />
  914. <div style="margin: 5px 0">作业提交</div>
  915. </div>
  916. <div class="check" @click="addTools2(16)">
  917. <img
  918. src="../../assets/icon/checkNo.png"
  919. alt
  920. v-if="checktoolArray.indexOf(16) == -1"
  921. />
  922. <div class="checkDiv" v-else>
  923. <img
  924. src="../../assets/icon/checkedIs.png"
  925. alt
  926. /><span>已选择</span>
  927. </div>
  928. </div>
  929. </div>
  930. <div class="tool">
  931. <div class="whiteBIcon" @click="addTools2(50)">
  932. <img
  933. src="../../assets/icon/thirdToolList/plwork.png"
  934. alt
  935. />
  936. <div style="margin: 5px 0">批量上传</div>
  937. </div>
  938. <div class="check" @click="addTools2(50)">
  939. <img
  940. src="../../assets/icon/checkNo.png"
  941. alt
  942. v-if="checktoolArray.indexOf(50) == -1"
  943. />
  944. <div class="checkDiv" v-else>
  945. <img
  946. src="../../assets/icon/checkedIs.png"
  947. alt
  948. /><span>已选择</span>
  949. </div>
  950. </div>
  951. </div>
  952. </div>
  953. <div class="toolSort" v-if="toolType == 3">
  954. <div class="tool">
  955. <div class="whiteBIcon" @click="addTools2(18)">
  956. <img
  957. src="../../assets/icon/thirdToolList/trainPlatform.png"
  958. alt
  959. />
  960. <div style="margin: 5px 0">训练平台</div>
  961. </div>
  962. <div class="check" @click="addTools2(18)">
  963. <img
  964. src="../../assets/icon/checkNo.png"
  965. alt
  966. v-if="checktoolArray.indexOf(18) == -1"
  967. />
  968. <div class="checkDiv" v-else>
  969. <img
  970. src="../../assets/icon/checkedIs.png"
  971. alt
  972. /><span>已选择</span>
  973. </div>
  974. </div>
  975. </div>
  976. <div class="tool">
  977. <div class="whiteBIcon" @click="addTools2(21)">
  978. <img
  979. src="../../assets/icon/fourthToolList/program.png"
  980. alt
  981. />
  982. <div style="margin: 5px 0">编程平台</div>
  983. </div>
  984. <div class="check" @click="addTools2(21)">
  985. <img
  986. src="../../assets/icon/checkNo.png"
  987. alt
  988. v-if="checktoolArray.indexOf(21) == -1"
  989. />
  990. <div class="checkDiv" v-else>
  991. <img
  992. src="../../assets/icon/checkedIs.png"
  993. alt
  994. /><span>已选择</span>
  995. </div>
  996. </div>
  997. </div>
  998. <div class="tool">
  999. <div class="whiteBIcon" @click="addTools2(22)">
  1000. <img
  1001. src="../../assets/icon/fourthToolList/AIprogram2.png"
  1002. alt
  1003. />
  1004. <div style="margin: 5px 0">AI体验</div>
  1005. </div>
  1006. <div class="check" @click="addTools2(22)">
  1007. <img
  1008. src="../../assets/icon/checkNo.png"
  1009. alt
  1010. v-if="checktoolArray.indexOf(22) == -1"
  1011. />
  1012. <div class="checkDiv" v-else>
  1013. <img
  1014. src="../../assets/icon/checkedIs.png"
  1015. alt
  1016. /><span>已选择</span>
  1017. </div>
  1018. </div>
  1019. </div>
  1020. <div class="tool">
  1021. <div class="whiteBIcon" @click="addTools2(23)">
  1022. <img
  1023. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1024. alt
  1025. />
  1026. <div style="margin: 5px 0">Python</div>
  1027. </div>
  1028. <div class="check" @click="addTools2(23)">
  1029. <img
  1030. src="../../assets/icon/checkNo.png"
  1031. alt
  1032. v-if="checktoolArray.indexOf(23) == -1"
  1033. />
  1034. <div class="checkDiv" v-else>
  1035. <img
  1036. src="../../assets/icon/checkedIs.png"
  1037. alt
  1038. /><span>已选择</span>
  1039. </div>
  1040. </div>
  1041. </div>
  1042. <div class="tool">
  1043. <div class="whiteBIcon" @click="addTools2(24)">
  1044. <img
  1045. src="../../assets/icon/fourthToolList/AIprogram.png"
  1046. alt
  1047. />
  1048. <div style="margin: 5px 0">AI平台</div>
  1049. </div>
  1050. <div class="check" @click="addTools2(24)">
  1051. <img
  1052. src="../../assets/icon/checkNo.png"
  1053. alt
  1054. v-if="checktoolArray.indexOf(24) == -1"
  1055. />
  1056. <div class="checkDiv" v-else>
  1057. <img
  1058. src="../../assets/icon/checkedIs.png"
  1059. alt
  1060. /><span>已选择</span>
  1061. </div>
  1062. </div>
  1063. </div>
  1064. <div class="tool">
  1065. <div class="whiteBIcon" @click="addTools2(32)">
  1066. <img
  1067. src="../../assets/icon/thirdToolList/code.png"
  1068. alt
  1069. />
  1070. <div style="margin: 5px 0">源码编辑</div>
  1071. </div>
  1072. <div class="check" @click="addTools2(32)">
  1073. <img
  1074. src="../../assets/icon/checkNo.png"
  1075. alt
  1076. v-if="checktoolArray.indexOf(32) == -1"
  1077. />
  1078. <div class="checkDiv" v-else>
  1079. <img
  1080. src="../../assets/icon/checkedIs.png"
  1081. alt
  1082. /><span>已选择</span>
  1083. </div>
  1084. </div>
  1085. </div>
  1086. <div class="tool">
  1087. <div class="whiteBIcon" @click="addTools2(57)">
  1088. <img
  1089. src="../../assets/icon/fourthToolList/cocopi.png"
  1090. alt
  1091. />
  1092. <div style="margin: 5px 0">CocoPi</div>
  1093. </div>
  1094. <div class="check" @click="addTools2(57)">
  1095. <img
  1096. src="../../assets/icon/checkNo.png"
  1097. alt
  1098. v-if="checktoolArray.indexOf(57) == -1"
  1099. />
  1100. <div class="checkDiv" v-else>
  1101. <img
  1102. src="../../assets/icon/checkedIs.png"
  1103. alt
  1104. /><span>已选择</span>
  1105. </div>
  1106. </div>
  1107. </div>
  1108. <div class="tool">
  1109. <div class="whiteBIcon" @click="addTools2(63)">
  1110. <img
  1111. src="../../assets/icon/fourthToolList/Wood.png"
  1112. alt
  1113. />
  1114. <div style="margin: 5px 0">海龟编程</div>
  1115. </div>
  1116. <div class="check" @click="addTools2(63)">
  1117. <img
  1118. src="../../assets/icon/checkNo.png"
  1119. alt
  1120. v-if="checktoolArray.indexOf(63) == -1"
  1121. />
  1122. <div class="checkDiv" v-else>
  1123. <img
  1124. src="../../assets/icon/checkedIs.png"
  1125. alt
  1126. /><span>已选择</span>
  1127. </div>
  1128. </div>
  1129. </div>
  1130. </div>
  1131. <div class="toolSort" v-if="toolType == 7">
  1132. <div class="tool">
  1133. <div class="whiteBIcon" @click="addTools2(40)">
  1134. <img
  1135. src="../../assets/icon/secondToolList/eval.png"
  1136. alt
  1137. />
  1138. <div style="margin: 5px 0">个人评价</div>
  1139. </div>
  1140. <div class="check" @click="addTools2(40)">
  1141. <img
  1142. src="../../assets/icon/checkNo.png"
  1143. alt
  1144. v-if="checktoolArray.indexOf(40) == -1"
  1145. />
  1146. <div class="checkDiv" v-else>
  1147. <img
  1148. src="../../assets/icon/checkedIs.png"
  1149. alt
  1150. /><span>已选择</span>
  1151. </div>
  1152. </div>
  1153. </div>
  1154. </div>
  1155. <div class="toolSort" v-if="toolType == 5">
  1156. <div class="tool">
  1157. <div class="whiteBIcon" @click="addTools2(28)">
  1158. <img
  1159. src="../../assets/icon/secondToolList/translation.png"
  1160. alt
  1161. />
  1162. <div style="margin: 5px 0">翻译</div>
  1163. </div>
  1164. <div class="check" @click="addTools2(28)">
  1165. <img
  1166. src="../../assets/icon/checkNo.png"
  1167. alt
  1168. v-if="checktoolArray.indexOf(28) == -1"
  1169. />
  1170. <div class="checkDiv" v-else>
  1171. <img
  1172. src="../../assets/icon/checkedIs.png"
  1173. alt
  1174. /><span>已选择</span>
  1175. </div>
  1176. </div>
  1177. </div>
  1178. <div class="tool">
  1179. <div class="whiteBIcon" @click="addTools2(37)">
  1180. <img
  1181. src="../../assets/icon/secondToolList/mohe.png"
  1182. alt
  1183. />
  1184. <div style="margin: 5px 0">魔盒识字</div>
  1185. </div>
  1186. <div class="check" @click="addTools2(37)">
  1187. <img
  1188. src="../../assets/icon/checkNo.png"
  1189. alt
  1190. v-if="checktoolArray.indexOf(37) == -1"
  1191. />
  1192. <div class="checkDiv" v-else>
  1193. <img
  1194. src="../../assets/icon/checkedIs.png"
  1195. alt
  1196. /><span>已选择</span>
  1197. </div>
  1198. </div>
  1199. </div>
  1200. <div class="tool">
  1201. <div class="whiteBIcon" @click="addTools2(38)">
  1202. <img
  1203. src="../../assets/icon/secondToolList/24game.png"
  1204. alt
  1205. />
  1206. <div style="margin: 5px 0">24点</div>
  1207. </div>
  1208. <div class="check" @click="addTools2(38)">
  1209. <img
  1210. src="../../assets/icon/checkNo.png"
  1211. alt
  1212. v-if="checktoolArray.indexOf(38) == -1"
  1213. />
  1214. <div class="checkDiv" v-else>
  1215. <img
  1216. src="../../assets/icon/checkedIs.png"
  1217. alt
  1218. /><span>已选择</span>
  1219. </div>
  1220. </div>
  1221. </div>
  1222. <div class="tool">
  1223. <div class="whiteBIcon" @click="addTools2(31)">
  1224. <img
  1225. src="../../assets/icon/secondToolList/networkPanel.png"
  1226. alt
  1227. />
  1228. <div style="margin: 5px 0">数学画板</div>
  1229. </div>
  1230. <div class="check" @click="addTools2(31)">
  1231. <img
  1232. src="../../assets/icon/checkNo.png"
  1233. alt
  1234. v-if="checktoolArray.indexOf(31) == -1"
  1235. />
  1236. <div class="checkDiv" v-else>
  1237. <img
  1238. src="../../assets/icon/checkedIs.png"
  1239. alt
  1240. /><span>已选择</span>
  1241. </div>
  1242. </div>
  1243. </div>
  1244. <div class="tool">
  1245. <div class="whiteBIcon" @click="addTools2(39)">
  1246. <img
  1247. src="../../assets/icon/secondToolList/GeoGebra.png"
  1248. alt
  1249. />
  1250. <div style="margin: 5px 0">GeoGebra</div>
  1251. </div>
  1252. <div class="check" @click="addTools2(39)">
  1253. <img
  1254. src="../../assets/icon/checkNo.png"
  1255. alt
  1256. v-if="checktoolArray.indexOf(39) == -1"
  1257. />
  1258. <div class="checkDiv" v-else>
  1259. <img
  1260. src="../../assets/icon/checkedIs.png"
  1261. alt
  1262. /><span>已选择</span>
  1263. </div>
  1264. </div>
  1265. </div>
  1266. <div class="tool">
  1267. <div class="whiteBIcon" @click="addTools2(58)">
  1268. <img
  1269. src="../../assets/icon/fourthToolList/car.png"
  1270. alt
  1271. />
  1272. <div style="margin: 5px 0">模拟驾驶</div>
  1273. </div>
  1274. <div class="check" @click="addTools2(58)">
  1275. <img
  1276. src="../../assets/icon/checkNo.png"
  1277. alt
  1278. v-if="checktoolArray.indexOf(58) == -1"
  1279. />
  1280. <div class="checkDiv" v-else>
  1281. <img
  1282. src="../../assets/icon/checkedIs.png"
  1283. alt
  1284. /><span>已选择</span>
  1285. </div>
  1286. </div>
  1287. </div>
  1288. <div class="tool">
  1289. <div class="whiteBIcon" @click="addTools2(59)">
  1290. <img
  1291. src="../../assets/icon/fourthToolList/lineSearch.png"
  1292. alt
  1293. />
  1294. <div style="margin: 5px 0">路径搜索</div>
  1295. </div>
  1296. <div class="check" @click="addTools2(59)">
  1297. <img
  1298. src="../../assets/icon/checkNo.png"
  1299. alt
  1300. v-if="checktoolArray.indexOf(59) == -1"
  1301. />
  1302. <div class="checkDiv" v-else>
  1303. <img
  1304. src="../../assets/icon/checkedIs.png"
  1305. alt
  1306. /><span>已选择</span>
  1307. </div>
  1308. </div>
  1309. </div>
  1310. <div class="tool">
  1311. <div class="whiteBIcon" @click="addTools2(60)">
  1312. <img
  1313. src="../../assets/icon/fourthToolList/deepLearning.png"
  1314. alt
  1315. />
  1316. <div style="margin: 5px 0">深度学习</div>
  1317. </div>
  1318. <div class="check" @click="addTools2(60)">
  1319. <img
  1320. src="../../assets/icon/checkNo.png"
  1321. alt
  1322. v-if="checktoolArray.indexOf(60) == -1"
  1323. />
  1324. <div class="checkDiv" v-else>
  1325. <img
  1326. src="../../assets/icon/checkedIs.png"
  1327. alt
  1328. /><span>已选择</span>
  1329. </div>
  1330. </div>
  1331. </div>
  1332. <div class="tool">
  1333. <div class="whiteBIcon" @click="addTools2(61)">
  1334. <img
  1335. src="../../assets/icon/fourthToolList/allHistory.png"
  1336. alt
  1337. />
  1338. <div style="margin: 5px 0">全历史</div>
  1339. </div>
  1340. <div class="check" @click="addTools2(61)">
  1341. <img
  1342. src="../../assets/icon/checkNo.png"
  1343. alt
  1344. v-if="checktoolArray.indexOf(61) == -1"
  1345. />
  1346. <div class="checkDiv" v-else>
  1347. <img
  1348. src="../../assets/icon/checkedIs.png"
  1349. alt
  1350. /><span>已选择</span>
  1351. </div>
  1352. </div>
  1353. </div>
  1354. </div>
  1355. <div class="toolSort" v-if="toolType == 4">
  1356. <div class="tool">
  1357. <div class="whiteBIcon" @click="addTools2(26)">
  1358. <img
  1359. src="../../assets/icon/thirdToolList/courseDesign.png"
  1360. alt
  1361. />
  1362. <div style="margin: 5px 0">课程设计</div>
  1363. </div>
  1364. <div class="check" @click="addTools2(26)">
  1365. <img
  1366. src="../../assets/icon/checkNo.png"
  1367. alt
  1368. v-if="checktoolArray.indexOf(26) == -1"
  1369. />
  1370. <div class="checkDiv" v-else>
  1371. <img
  1372. src="../../assets/icon/checkedIs.png"
  1373. alt
  1374. /><span>已选择</span>
  1375. </div>
  1376. </div>
  1377. </div>
  1378. <div class="tool">
  1379. <div class="whiteBIcon" @click="addTools2(25)">
  1380. <img
  1381. src="../../assets/icon/thirdToolList/evalua.png"
  1382. alt
  1383. />
  1384. <div style="margin: 5px 0">目标管理</div>
  1385. </div>
  1386. <div class="check" @click="addTools2(25)">
  1387. <img
  1388. src="../../assets/icon/checkNo.png"
  1389. alt
  1390. v-if="checktoolArray.indexOf(25) == -1"
  1391. />
  1392. <div class="checkDiv" v-else>
  1393. <img
  1394. src="../../assets/icon/checkedIs.png"
  1395. alt
  1396. /><span>已选择</span>
  1397. </div>
  1398. </div>
  1399. </div>
  1400. </div>
  1401. </div>
  1402. </div>
  1403. </div>
  1404. </div>
  1405. <div
  1406. class="vedioBox"
  1407. v-if="
  1408. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1409. .toolChoose[0].tool &&
  1410. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1411. .toolChoose[0].tool.length &&
  1412. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1413. .toolChoose[0].tool.length > 0
  1414. "
  1415. >
  1416. <div
  1417. class="queTop"
  1418. style="
  1419. font-size: 20px;
  1420. padding: 15px 0 15px 37px;
  1421. font-weight: bold;
  1422. "
  1423. >
  1424. 工作区
  1425. </div>
  1426. <div class="toolHeng2" style="position: relative">
  1427. <div
  1428. class="filebox"
  1429. style="flex-wrap: nowrap; margin: 0 37px"
  1430. v-if="
  1431. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1432. .toolChoose.length
  1433. "
  1434. >
  1435. <div class="choiceBox">
  1436. <div class="bzChild" style="margin-right: 20px">
  1437. <span>步骤选择:</span>
  1438. </div>
  1439. <div class="bzTypeBox">
  1440. <div
  1441. class="bzChild"
  1442. v-for="(bz, bzIndex) in chapInfoList[courseType]
  1443. .chapterInfo[0].taskJson[taskCount].toolChoose"
  1444. :key="bzIndex"
  1445. :class="{ active: toolIndex == bzIndex }"
  1446. @click="checkBz(bzIndex)"
  1447. >
  1448. <span>步骤{{ bzIndex + 1 }}</span>
  1449. </div>
  1450. </div>
  1451. </div>
  1452. <div class="bzBox">
  1453. <!-- <div class="yCss"></div>
  1454. <div>步骤{{ toolIndex + 1 }}</div> -->
  1455. <div
  1456. style="margin: 0 72px 0 auto"
  1457. v-if="courseDetail.userid == userid || tool.tool[0] == 15"
  1458. >
  1459. <el-button
  1460. type="primary"
  1461. size="mini"
  1462. v-if="tool.tool[0] == 15"
  1463. @click="openWordCloud(toolIndex)"
  1464. >生成词云</el-button
  1465. >
  1466. <el-button
  1467. v-if="courseDetail.userid == userid"
  1468. type="primary"
  1469. size="mini"
  1470. @click="updateToolDetail"
  1471. >{{
  1472. !isUpdateToolDetail ? "编辑" : "确认修改"
  1473. }}</el-button
  1474. >
  1475. </div>
  1476. </div>
  1477. <div class="toolBox">
  1478. <div class="toolBoxSteps" @click="nextToolindex('last')">
  1479. <img src="../../assets/icon/leftIcon.png" />
  1480. </div>
  1481. <div class="toolBoxSteps" @click="nextToolindex('next')">
  1482. <img src="../../assets/icon/rightIcon.png" />
  1483. </div>
  1484. <div>
  1485. <div class="noiframeBox">
  1486. <div
  1487. class="addPoint"
  1488. v-for="(tooC, toolCIndex) in tool.tool"
  1489. :key="toolCIndex"
  1490. >
  1491. <div v-show="tooC == 1">
  1492. <img
  1493. src="../../assets/icon/secondToolList/whiteBoard.png"
  1494. alt
  1495. @click="addTools(tooC, toolIndex, taskCount)"
  1496. />
  1497. <div style="margin: 5px 0">电子白板</div>
  1498. </div>
  1499. <div v-show="tooC == 3">
  1500. <img
  1501. src="../../assets/icon/secondToolList/mindMapping.png"
  1502. alt
  1503. @click="addTools(tooC, toolIndex, taskCount)"
  1504. />
  1505. <div style="margin: 5px 0">思维导图</div>
  1506. </div>
  1507. <div v-show="tooC == 6">
  1508. <img
  1509. src="../../assets/icon/secondToolList/doc.png"
  1510. alt
  1511. @click="addTools(tooC, toolIndex, taskCount)"
  1512. />
  1513. <div style="margin: 5px 0">协同文档</div>
  1514. </div>
  1515. <div v-show="tooC == 7">
  1516. <img
  1517. src="../../assets/icon/secondToolList/mindNetwork.png"
  1518. alt
  1519. @click="addTools(tooC, toolIndex, taskCount)"
  1520. />
  1521. <div style="margin: 5px 0">思维网格</div>
  1522. </div>
  1523. <div v-show="tooC == 8">
  1524. <img
  1525. src="../../assets/icon/secondToolList/library.png"
  1526. alt
  1527. @click="addTools(tooC, toolIndex, taskCount)"
  1528. />
  1529. <div style="margin: 5px 0">素材库</div>
  1530. </div>
  1531. <div v-show="tooC == 17">
  1532. <img
  1533. src="../../assets/icon/secondToolList/library.png"
  1534. alt
  1535. @click="addTools(tooC, toolIndex, taskCount)"
  1536. />
  1537. <div style="margin: 5px 0">学习资料</div>
  1538. </div>
  1539. <div v-show="tooC == 2">
  1540. <img
  1541. @click="addTools(tooC, toolIndex, taskCount)"
  1542. src="../../assets/icon/secondToolList/note.png"
  1543. alt
  1544. />
  1545. <div style="margin: 5px 0">便签</div>
  1546. </div>
  1547. <div v-show="tooC == 4">
  1548. <img
  1549. @click="addTools(tooC, toolIndex, taskCount)"
  1550. src="../../assets/icon/thirdToolList/ask.png"
  1551. alt
  1552. />
  1553. <div style="margin: 5px 0">问卷调查</div>
  1554. </div>
  1555. <div v-show="tooC == 45">
  1556. <img
  1557. @click="addTools(tooC, toolIndex, taskCount)"
  1558. src="../../assets/icon/thirdToolList/choose.png"
  1559. alt
  1560. />
  1561. <div style="margin: 5px 0">选择题</div>
  1562. </div>
  1563. <!-- <div v-show="tooC == 5">
  1564. <img
  1565. @click="addTools(tooC, toolIndex, taskCount)"
  1566. src="../../assets/icon/thirdToolList/score.png"
  1567. alt
  1568. />
  1569. <div style="margin: 5px 0">量规评分</div>
  1570. </div> -->
  1571. <div v-show="tooC == 10">
  1572. <img
  1573. @click="addTools(tooC, toolIndex, taskCount)"
  1574. src="../../assets/icon/thirdToolList/time.png"
  1575. alt
  1576. />
  1577. <div style="margin: 5px 0">倒计时</div>
  1578. </div>
  1579. <div v-show="tooC == 15">
  1580. <img
  1581. @click="addTools(tooC, toolIndex, taskCount)"
  1582. src="../../assets/icon/thirdToolList/answer.png"
  1583. alt
  1584. />
  1585. <div style="margin: 5px 0">问答工具</div>
  1586. </div>
  1587. <div v-show="tooC == 26">
  1588. <img
  1589. @click="addTools(tooC, toolIndex, taskCount)"
  1590. src="../../assets/icon/thirdToolList/courseDesign.png"
  1591. alt
  1592. />
  1593. <div style="margin: 5px 0">课程设计</div>
  1594. </div>
  1595. <div v-show="tooC == 18">
  1596. <img
  1597. @click="addTools(tooC, toolIndex, taskCount)"
  1598. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1599. alt
  1600. />
  1601. <div style="margin: 5px 0">训练服务器</div>
  1602. </div>
  1603. <div v-show="tooC == 16">
  1604. <img
  1605. @click="addTools(tooC, toolIndex, taskCount)"
  1606. src="../../assets/icon/thirdToolList/work.png"
  1607. alt
  1608. />
  1609. <div style="margin: 5px 0">作业提交</div>
  1610. </div>
  1611. <div v-show="tooC == 50">
  1612. <img
  1613. @click="addTools(tooC, toolIndex, taskCount)"
  1614. src="../../assets/icon/thirdToolList/plwork.png"
  1615. alt
  1616. />
  1617. <div style="margin: 5px 0">批量上传</div>
  1618. </div>
  1619. <div v-show="tooC == 21">
  1620. <img
  1621. @click="addTools(tooC, toolIndex, taskCount)"
  1622. src="../../assets/icon/fourthToolList/program.png"
  1623. alt
  1624. />
  1625. <div style="margin: 5px 0">编程平台</div>
  1626. </div>
  1627. <div v-show="tooC == 22">
  1628. <img
  1629. @click="addTools(tooC, toolIndex, taskCount)"
  1630. src="../../assets/icon/fourthToolList/program.png"
  1631. alt
  1632. />
  1633. <div style="margin: 5px 0">AI体验</div>
  1634. </div>
  1635. <div v-show="tooC == 23">
  1636. <img
  1637. @click="addTools(tooC, toolIndex, taskCount)"
  1638. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1639. alt
  1640. />
  1641. <div style="margin: 5px 0">Python</div>
  1642. </div>
  1643. <div v-show="tooC == 24">
  1644. <img
  1645. @click="addTools(tooC, toolIndex, taskCount)"
  1646. src="../../assets/icon/fourthToolList/AIprogram.png"
  1647. alt
  1648. />
  1649. <div style="margin: 5px 0">AI平台</div>
  1650. </div>
  1651. <div v-show="tooC == 25">
  1652. <img
  1653. @click="addTools(tooC, toolIndex, taskCount)"
  1654. src="../../assets/icon/thirdToolList/evalua.png"
  1655. alt
  1656. />
  1657. <div style="margin: 5px 0">目标管理</div>
  1658. </div>
  1659. <div v-show="tooC == 31">
  1660. <img
  1661. @click="addTools(tooC, toolIndex, taskCount)"
  1662. src="../../assets/icon/secondToolList/networkPanel.png"
  1663. alt
  1664. />
  1665. <div style="margin: 5px 0">数学画板</div>
  1666. </div>
  1667. <div v-show="tooC == 28">
  1668. <img
  1669. @click="addTools(tooC, toolIndex, taskCount)"
  1670. src="../../assets/icon/secondToolList/translation.png"
  1671. alt
  1672. />
  1673. <div style="margin: 5px 0">翻译</div>
  1674. </div>
  1675. <div v-show="tooC == 37">
  1676. <img
  1677. @click="addTools(tooC, toolIndex, taskCount)"
  1678. src="../../assets/icon/secondToolList/mohe.png"
  1679. alt
  1680. />
  1681. <div style="margin: 5px 0">魔盒识字</div>
  1682. </div>
  1683. <div v-show="tooC == 38">
  1684. <img
  1685. @click="addTools(tooC, toolIndex, taskCount)"
  1686. src="../../assets/icon/secondToolList/24game.png"
  1687. alt
  1688. />
  1689. <div style="margin: 5px 0">24点</div>
  1690. </div>
  1691. <div v-show="tooC == 39">
  1692. <img
  1693. @click="addTools(tooC, toolIndex, taskCount)"
  1694. src="../../assets/icon/secondToolList/GeoGebra.png"
  1695. alt
  1696. />
  1697. <div style="margin: 5px 0">GeoGebra</div>
  1698. </div>
  1699. <div v-show="tooC == 32">
  1700. <img
  1701. @click="addTools(tooC, toolIndex, taskCount)"
  1702. src="../../assets/icon/thirdToolList/code.png"
  1703. alt
  1704. />
  1705. <div style="margin: 5px 0">源码编辑</div>
  1706. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1707. style="position: absolute;left: 110px;bottom: 30px;">
  1708. 上传文件
  1709. <input type="file" accept="*" style="display: none"
  1710. @change="beforeUpload1($event, 7, toolIndex)" />
  1711. </div> -->
  1712. </div>
  1713. <!-- <div v-show="tooC == 40">
  1714. <img @click="addTools(tooC, toolIndex, taskCount)"
  1715. src="../../assets/icon/secondToolList/eval.png" alt />
  1716. <div style="margin: 5px 0">个人评价</div>
  1717. </div> -->
  1718. <div v-show="tooC == 41">
  1719. <img
  1720. @click="addTools(tooC, toolIndex, taskCount)"
  1721. src="../../assets/icon/thirdToolList/select.png"
  1722. alt
  1723. />
  1724. <div style="margin: 5px 0">选择填空</div>
  1725. </div>
  1726. <div v-show="tooC == 44">
  1727. <img
  1728. @click="addTools(tooC, toolIndex, taskCount)"
  1729. src="../../assets/icon/thirdToolList/hanClass.png"
  1730. alt
  1731. />
  1732. <div style="margin: 5px 0">汉字宫</div>
  1733. </div>
  1734. <div v-show="tooC == 47">
  1735. <img
  1736. @click="addTools(tooC, toolIndex, taskCount)"
  1737. src="../../assets/icon/fourthToolList/conSentences.png"
  1738. alt
  1739. />
  1740. <div style="margin: 5px 0">连词成句</div>
  1741. </div>
  1742. <div v-show="tooC == 48">
  1743. <img
  1744. @click="addTools(tooC, toolIndex, taskCount)"
  1745. src="../../assets/icon/fourthToolList/table.png"
  1746. alt
  1747. />
  1748. <div style="margin: 5px 0">表格</div>
  1749. </div>
  1750. <div v-show="tooC == 52">
  1751. <img
  1752. @click="addTools(tooC, toolIndex, taskCount)"
  1753. src="../../assets/icon/fourthToolList/text.png"
  1754. alt
  1755. />
  1756. <div style="margin: 5px 0">文档</div>
  1757. </div>
  1758. <!-- <div v-show="tooC == 49">
  1759. <img @click="addTools(tooC, toolIndex, taskCount)"
  1760. src="../../assets/icon/fourthToolList/group.png" alt />
  1761. <div style="margin: 5px 0">学生分组</div>
  1762. </div> -->
  1763. <div v-show="tooC == 57">
  1764. <img
  1765. @click="addTools(tooC, toolIndex, taskCount)"
  1766. src="../../assets/icon/fourthToolList/cocopi.png"
  1767. alt
  1768. />
  1769. <div style="margin: 5px 0">CocoPi</div>
  1770. </div>
  1771. <div v-show="tooC == 58">
  1772. <img
  1773. @click="addTools(tooC, toolIndex, taskCount)"
  1774. src="../../assets/icon/fourthToolList/car.png"
  1775. alt
  1776. />
  1777. <div style="margin: 5px 0">模拟驾驶</div>
  1778. </div>
  1779. <div v-show="tooC == 59">
  1780. <img
  1781. @click="addTools(tooC, toolIndex, taskCount)"
  1782. src="../../assets/icon/fourthToolList/lineSearch.png"
  1783. alt
  1784. />
  1785. <div style="margin: 5px 0">路径搜索</div>
  1786. </div>
  1787. <div v-show="tooC == 60">
  1788. <img
  1789. @click="addTools(tooC, toolIndex, taskCount)"
  1790. src="../../assets/icon/fourthToolList/deepLearning.png"
  1791. alt
  1792. />
  1793. <div style="margin: 5px 0">深度学习</div>
  1794. </div>
  1795. <div v-show="tooC == 61">
  1796. <img
  1797. @click="addTools(tooC, toolIndex, taskCount)"
  1798. src="../../assets/icon/fourthToolList/allHistory.png"
  1799. alt
  1800. />
  1801. <div style="margin: 5px 0">全历史</div>
  1802. </div>
  1803. <div v-show="tooC == 62">
  1804. <img
  1805. @click="addTools(tooC, toolIndex, taskCount)"
  1806. src="../../assets/icon/fourthToolList/interVideo.png"
  1807. alt
  1808. />
  1809. <div style="margin: 5px 0">交互视频</div>
  1810. </div>
  1811. <div v-show="tooC == 63">
  1812. <img
  1813. @click="addTools(tooC, toolIndex, taskCount)"
  1814. src="../../assets/icon/fourthToolList/Wood.png"
  1815. alt
  1816. />
  1817. <div style="margin: 5px 0">海龟编程</div>
  1818. </div>
  1819. <div v-if="tooC == 65">
  1820. <img
  1821. @click="addTools(tooC, toolIndex, taskCount)"
  1822. src="../../assets/icon/firstToolList/pickPeople.png"
  1823. alt
  1824. />
  1825. <div style="margin: 5px 0">挑人</div>
  1826. </div>
  1827. </div>
  1828. </div>
  1829. </div>
  1830. <div class="tooldetail">
  1831. <!-- <div class="toolTitle">工具描述</div> -->
  1832. <div
  1833. style="height: 100%"
  1834. v-html="
  1835. contentConvent(
  1836. tool.toolDetail ? tool.toolDetail : '暂无描述'
  1837. )
  1838. "
  1839. v-if="!isUpdateToolDetail"
  1840. @click="updateToolDetail"
  1841. ></div>
  1842. <div v-else>
  1843. <el-input
  1844. type="textarea"
  1845. :rows="3"
  1846. resize="none"
  1847. v-model="updateToolDetailInner"
  1848. placeholder="请输入任务描述"
  1849. ></el-input>
  1850. </div>
  1851. </div>
  1852. <el-button
  1853. type="primary"
  1854. v-if="tool.tool[0] == 32"
  1855. style="
  1856. position: absolute;
  1857. right: 30px;
  1858. transform: translateY(-130%);
  1859. "
  1860. @click="addImg($event)"
  1861. >上传作业<input
  1862. type="file"
  1863. accept="*"
  1864. style="display: none"
  1865. @change="beforeUpload1($event, 7, toolIndex)"
  1866. /></el-button>
  1867. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1868. position: absolute;
  1869. right: 30px;
  1870. transform: translateY(-130%);
  1871. " @click="addImg($event)">上传作业<input type="file" accept="*"
  1872. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1873. </div>
  1874. </div>
  1875. </div>
  1876. </div>
  1877. <div
  1878. class="vedioBox"
  1879. v-if="
  1880. arrayToArray(tool.tool, isWorkTool).length &&
  1881. worksTeacher.length &&
  1882. worksTeacher[toolIndex].length &&
  1883. false
  1884. "
  1885. >
  1886. <div
  1887. class="queTop"
  1888. style="
  1889. font-size: 20px;
  1890. padding: 15px 0 15px 37px;
  1891. font-weight: bold;
  1892. "
  1893. >
  1894. 教师工作区
  1895. </div>
  1896. <div class="tool_work_box">
  1897. <div
  1898. v-if="
  1899. tType &&
  1900. ((tType == 2 && sIsOpen == true) ||
  1901. tType == 1 ||
  1902. tType == 4) &&
  1903. tool.tool.indexOf(16) != -1
  1904. "
  1905. class="worksBox"
  1906. >
  1907. <div
  1908. class="zuoyeYulan"
  1909. v-if="
  1910. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1911. "
  1912. >
  1913. <div class="worksTop">
  1914. <div>作业预览</div>
  1915. </div>
  1916. </div>
  1917. <div
  1918. class="worksDetailBox"
  1919. v-if="
  1920. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1921. "
  1922. >
  1923. <div
  1924. class="works"
  1925. style="
  1926. width: 200px;
  1927. height: 140px;
  1928. margin: 10px 10px 10px 0;
  1929. border-radius: 15px;
  1930. box-shadow: 0 0 6px 1px #dfdada;
  1931. "
  1932. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1933. :key="wIndex"
  1934. :class="w.type == 1 ? 'isTypeOne' : ''"
  1935. >
  1936. <div class="workImg" v-if="w.type == 0">
  1937. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1938. <img :src="w.works" @click="previewImg(w.works)" alt />
  1939. <div
  1940. class="answerScore"
  1941. v-if="w.score"
  1942. @click.stop="openScore(w)"
  1943. :class="{
  1944. rightW:
  1945. w.userid == userid ||
  1946. tType == 1 ||
  1947. tType == 4 ||
  1948. w.ateacher == userid,
  1949. }"
  1950. >
  1951. {{ JSON.parse(w.score).wScore }}分
  1952. </div>
  1953. <div
  1954. class="answerScore"
  1955. @click.stop="openScore(w)"
  1956. v-else-if="courseDetail.userid == userid"
  1957. :class="{
  1958. rightW:
  1959. w.userid == userid ||
  1960. tType == 1 ||
  1961. tType == 4 ||
  1962. w.ateacher == userid,
  1963. }"
  1964. >
  1965. 评分
  1966. </div>
  1967. <img
  1968. class="deleteImg"
  1969. src="../../assets/deleteworks.png"
  1970. v-if="w.userid == userid || tType == 1 || tType == 4"
  1971. @click.stop="deleteWorks(w.wid)"
  1972. alt
  1973. />
  1974. </div>
  1975. <div class="workImg" v-if="w.type == 1">
  1976. <img :src="word" @click="openFile(w.works)" alt />
  1977. <!-- @click="openFile(w.works)" -->
  1978. <div
  1979. class="answerScore"
  1980. v-if="w.score"
  1981. @click.stop="openScore(w)"
  1982. :class="{
  1983. rightW:
  1984. w.userid == userid ||
  1985. tType == 1 ||
  1986. tType == 4 ||
  1987. w.ateacher == userid,
  1988. }"
  1989. >
  1990. {{ JSON.parse(w.score).wScore }}分
  1991. </div>
  1992. <div
  1993. class="answerScore"
  1994. @click.stop="openScore(w)"
  1995. v-else-if="courseDetail.userid == userid"
  1996. :class="{
  1997. rightW:
  1998. w.userid == userid ||
  1999. tType == 1 ||
  2000. tType == 4 ||
  2001. w.ateacher == userid,
  2002. }"
  2003. >
  2004. 评分
  2005. </div>
  2006. <img
  2007. class="deleteImg"
  2008. src="../../assets/deleteworks.png"
  2009. v-if="w.userid == userid || tType == 1 || tType == 4"
  2010. @click.stop="deleteWorks(w.wid)"
  2011. alt
  2012. />
  2013. </div>
  2014. <div class="workImg" v-if="w.type == 3">
  2015. <img
  2016. style="cursor: pointer"
  2017. :src="video"
  2018. @click="openVideo(w)"
  2019. alt
  2020. />
  2021. <!-- @click="openVideo(w.works)" -->
  2022. <div
  2023. class="answerScore"
  2024. v-if="w.score"
  2025. @click.stop="openScore(w)"
  2026. :class="{
  2027. rightW:
  2028. w.userid == userid ||
  2029. tType == 1 ||
  2030. tType == 4 ||
  2031. w.ateacher == userid,
  2032. }"
  2033. >
  2034. {{ JSON.parse(w.score).wScore }}分
  2035. </div>
  2036. <div
  2037. class="answerScore"
  2038. @click.stop="openScore(w)"
  2039. v-else-if="courseDetail.userid == userid"
  2040. :class="{
  2041. rightW:
  2042. w.userid == userid ||
  2043. tType == 1 ||
  2044. tType == 4 ||
  2045. w.ateacher == userid,
  2046. }"
  2047. >
  2048. 评分
  2049. </div>
  2050. <img
  2051. class="deleteImg"
  2052. src="../../assets/deleteworks.png"
  2053. v-if="w.userid == userid || tType == 1 || tType == 4"
  2054. @click.stop="deleteWorks(w.wid)"
  2055. alt
  2056. />
  2057. </div>
  2058. <div class="workImg" v-if="w.type == 12">
  2059. <img
  2060. style="cursor: pointer"
  2061. :src="word2"
  2062. @click="downloadFile(w.works)"
  2063. alt
  2064. />
  2065. <!-- @click="openVideo(w.works)" -->
  2066. <div
  2067. class="answerScore"
  2068. v-if="w.score"
  2069. @click.stop="openScore(w)"
  2070. :class="{
  2071. rightW:
  2072. w.userid == userid ||
  2073. tType == 1 ||
  2074. tType == 4 ||
  2075. w.ateacher == userid,
  2076. }"
  2077. >
  2078. {{ JSON.parse(w.score).wScore }}分
  2079. </div>
  2080. <div
  2081. class="answerScore"
  2082. @click.stop="openScore(w)"
  2083. v-else-if="courseDetail.userid == userid"
  2084. :class="{
  2085. rightW:
  2086. w.userid == userid ||
  2087. tType == 1 ||
  2088. tType == 4 ||
  2089. w.ateacher == userid,
  2090. }"
  2091. >
  2092. 评分
  2093. </div>
  2094. <img
  2095. class="deleteImg"
  2096. src="../../assets/deleteworks.png"
  2097. v-if="w.userid == userid || tType == 1 || tType == 4"
  2098. @click.stop="deleteWorks(w.wid)"
  2099. alt
  2100. />
  2101. </div>
  2102. <div class="comment" style="min-width: 200px">
  2103. <div class="worksName">
  2104. <div>{{ w.sName }}</div>
  2105. </div>
  2106. <div class="commentList">
  2107. <div class="commentList">
  2108. <div
  2109. class="commentImg"
  2110. @click="
  2111. isLikes(w.wid, userid, 1, null, w.isLikes)
  2112. "
  2113. >
  2114. <img
  2115. :src="w.isLikes == true ? likes : noLikes"
  2116. alt=""
  2117. />
  2118. </div>
  2119. <div>{{ w.likesCount }}</div>
  2120. </div>
  2121. <div class="commentList" style="margin-right: 15px">
  2122. <div
  2123. class="commentImg"
  2124. @click="commentOther(w, toolIndex, wIndex)"
  2125. >
  2126. <img
  2127. src="../../assets/icon/comment/comment.png"
  2128. alt=""
  2129. />
  2130. </div>
  2131. <div>{{ w.commentCount }}</div>
  2132. </div>
  2133. </div>
  2134. </div>
  2135. </div>
  2136. </div>
  2137. </div>
  2138. <div
  2139. v-if="
  2140. tType &&
  2141. ((tType == 2 && sIsOpen == true) ||
  2142. tType == 1 ||
  2143. tType == 4) &&
  2144. tool.tool.indexOf(32) != -1
  2145. "
  2146. class="worksBox"
  2147. >
  2148. <div
  2149. class="zuoyeYulan"
  2150. v-if="
  2151. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2152. "
  2153. >
  2154. <div class="worksTop">
  2155. <div>作业预览</div>
  2156. </div>
  2157. </div>
  2158. <div
  2159. class="worksDetailBox"
  2160. v-if="
  2161. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2162. "
  2163. >
  2164. <div
  2165. class="works"
  2166. style="
  2167. width: 200px;
  2168. height: 140px;
  2169. margin: 10px 10px 10px 0;
  2170. border-radius: 15px;
  2171. box-shadow: 0 0 6px 1px #dfdada;
  2172. "
  2173. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2174. :key="wIndex"
  2175. :class="w.type == 1 ? 'isTypeOne' : ''"
  2176. >
  2177. <div class="workImg">
  2178. <img :src="word2" @click="downloadFile(w.works)" alt />
  2179. <div
  2180. class="answerScore"
  2181. v-if="w.score"
  2182. @click.stop="openScore(w)"
  2183. :class="{
  2184. rightW:
  2185. w.userid == userid ||
  2186. tType == 1 ||
  2187. tType == 4 ||
  2188. w.ateacher == userid,
  2189. }"
  2190. >
  2191. {{ JSON.parse(w.score).wScore }}分
  2192. </div>
  2193. <div
  2194. class="answerScore"
  2195. @click.stop="openScore(w)"
  2196. v-else-if="courseDetail.userid == userid"
  2197. :class="{
  2198. rightW:
  2199. w.userid == userid ||
  2200. tType == 1 ||
  2201. tType == 4 ||
  2202. w.ateacher == userid,
  2203. }"
  2204. >
  2205. 评分
  2206. </div>
  2207. <img
  2208. class="deleteImg"
  2209. src="../../assets/deleteworks.png"
  2210. v-if="w.userid == userid || tType == 1 || tType == 4"
  2211. @click.stop="deleteWorks(w.wid)"
  2212. alt
  2213. />
  2214. </div>
  2215. <div class="comment" style="min-width: 200px">
  2216. <div class="worksName">
  2217. <div>{{ w.sName }}</div>
  2218. </div>
  2219. <div class="commentList">
  2220. <div class="commentList">
  2221. <div
  2222. class="commentImg"
  2223. @click="
  2224. isLikes(w.wid, userid, 1, null, w.isLikes)
  2225. "
  2226. >
  2227. <img
  2228. :src="w.isLikes == true ? likes : noLikes"
  2229. alt=""
  2230. />
  2231. </div>
  2232. <div>{{ w.likesCount }}</div>
  2233. </div>
  2234. <div class="commentList" style="margin-right: 15px">
  2235. <div
  2236. class="commentImg"
  2237. @click="commentOther(w, toolIndex, wIndex)"
  2238. >
  2239. <img
  2240. src="../../assets/icon/comment/comment.png"
  2241. alt=""
  2242. />
  2243. </div>
  2244. <div>{{ w.commentCount }}</div>
  2245. </div>
  2246. </div>
  2247. </div>
  2248. </div>
  2249. </div>
  2250. </div>
  2251. <div
  2252. v-if="
  2253. tType &&
  2254. ((tType == 2 && sIsOpen == true) ||
  2255. tType == 1 ||
  2256. tType == 4) &&
  2257. tool.tool.indexOf(57) != -1
  2258. "
  2259. class="worksBox"
  2260. >
  2261. <div
  2262. class="zuoyeYulan"
  2263. v-if="
  2264. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2265. "
  2266. >
  2267. <div class="worksTop">
  2268. <div>作业预览</div>
  2269. </div>
  2270. </div>
  2271. <div
  2272. class="worksDetailBox"
  2273. v-if="
  2274. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2275. "
  2276. >
  2277. <div
  2278. class="works"
  2279. style="
  2280. width: 200px;
  2281. height: 140px;
  2282. margin: 10px 10px 10px 0;
  2283. border-radius: 15px;
  2284. box-shadow: 0 0 6px 1px #dfdada;
  2285. "
  2286. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2287. :key="wIndex"
  2288. :class="w.type == 1 ? 'isTypeOne' : ''"
  2289. >
  2290. <div class="workImg">
  2291. <img
  2292. :src="word2"
  2293. @click="downloadFile(w.works)"
  2294. v-if="w.type == 12"
  2295. alt
  2296. />
  2297. <img
  2298. :src="word2"
  2299. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  2300. v-else-if="w.type == 15"
  2301. alt
  2302. />
  2303. <div
  2304. class="answerScore"
  2305. v-if="w.score"
  2306. @click.stop="openScore(w)"
  2307. :class="{
  2308. rightW:
  2309. w.userid == userid ||
  2310. tType == 1 ||
  2311. tType == 4 ||
  2312. w.ateacher == userid,
  2313. }"
  2314. >
  2315. {{ JSON.parse(w.score).wScore }}分
  2316. </div>
  2317. <div
  2318. class="answerScore"
  2319. @click.stop="openScore(w)"
  2320. v-else-if="courseDetail.userid == userid"
  2321. :class="{
  2322. rightW:
  2323. w.userid == userid ||
  2324. tType == 1 ||
  2325. tType == 4 ||
  2326. w.ateacher == userid,
  2327. }"
  2328. >
  2329. 评分
  2330. </div>
  2331. <img
  2332. class="deleteImg"
  2333. src="../../assets/deleteworks.png"
  2334. v-if="w.userid == userid || tType == 1 || tType == 4"
  2335. @click.stop="deleteWorks(w.wid)"
  2336. alt
  2337. />
  2338. </div>
  2339. <div class="comment" style="min-width: 200px">
  2340. <div class="worksName">
  2341. <div>{{ w.sName }}</div>
  2342. </div>
  2343. <div class="commentList">
  2344. <div class="commentList">
  2345. <div
  2346. class="commentImg"
  2347. @click="
  2348. isLikes(w.wid, userid, 1, null, w.isLikes)
  2349. "
  2350. >
  2351. <img
  2352. :src="w.isLikes == true ? likes : noLikes"
  2353. alt=""
  2354. />
  2355. </div>
  2356. <div>{{ w.likesCount }}</div>
  2357. </div>
  2358. <div class="commentList" style="margin-right: 15px">
  2359. <div
  2360. class="commentImg"
  2361. @click="commentOther(w, toolIndex, wIndex)"
  2362. >
  2363. <img
  2364. src="../../assets/icon/comment/comment.png"
  2365. alt=""
  2366. />
  2367. </div>
  2368. <div>{{ w.commentCount }}</div>
  2369. </div>
  2370. </div>
  2371. </div>
  2372. </div>
  2373. </div>
  2374. </div>
  2375. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  2376. <div
  2377. class="zuoyeYulan"
  2378. v-if="
  2379. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2380. "
  2381. >
  2382. <span>作业预览</span>
  2383. </div>
  2384. <div
  2385. class="worksDetailBox"
  2386. v-if="
  2387. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2388. "
  2389. >
  2390. <div
  2391. class="works"
  2392. style="
  2393. width: 200px;
  2394. height: 140px;
  2395. margin: 10px 10px 10px 0;
  2396. border-radius: 15px;
  2397. box-shadow: 0 0 6px 1px #dfdada;
  2398. "
  2399. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2400. :key="wIndex"
  2401. :class="w.type == 1 ? 'isTypeOne' : ''"
  2402. >
  2403. <div class="workImg" v-if="w.type == 0">
  2404. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2405. <img :src="w.works" @click="previewImg(w.works)" alt />
  2406. <div
  2407. class="answerScore"
  2408. v-if="w.score"
  2409. @click.stop="openScore(w)"
  2410. :class="{
  2411. rightW:
  2412. w.userid == userid ||
  2413. tType == 1 ||
  2414. tType == 4 ||
  2415. w.ateacher == userid,
  2416. }"
  2417. >
  2418. {{ JSON.parse(w.score).wScore }}分
  2419. </div>
  2420. <div
  2421. class="answerScore"
  2422. @click.stop="openScore(w)"
  2423. v-else-if="courseDetail.userid == userid"
  2424. :class="{
  2425. rightW:
  2426. w.userid == userid ||
  2427. tType == 1 ||
  2428. tType == 4 ||
  2429. w.ateacher == userid,
  2430. }"
  2431. >
  2432. 评分
  2433. </div>
  2434. <img
  2435. class="deleteImg"
  2436. src="../../assets/deleteworks.png"
  2437. v-if="w.userid == userid || tType == 1 || tType == 4"
  2438. @click.stop="deleteWorks(w.wid)"
  2439. alt
  2440. />
  2441. </div>
  2442. <div
  2443. class="workImg"
  2444. style="cursor: pointer"
  2445. v-if="w.type == 1"
  2446. >
  2447. <img :src="word" @click="openFile(w.works)" alt />
  2448. <!-- @click="openFile(w.works)" -->
  2449. <div
  2450. class="answerScore"
  2451. v-if="w.score"
  2452. @click.stop="openScore(w)"
  2453. :class="{
  2454. rightW:
  2455. w.userid == userid ||
  2456. tType == 1 ||
  2457. tType == 4 ||
  2458. w.ateacher == userid,
  2459. }"
  2460. >
  2461. {{ JSON.parse(w.score).wScore }}分
  2462. </div>
  2463. <div
  2464. class="answerScore"
  2465. @click.stop="openScore(w)"
  2466. v-else-if="courseDetail.userid == userid"
  2467. :class="{
  2468. rightW:
  2469. w.userid == userid ||
  2470. tType == 1 ||
  2471. tType == 4 ||
  2472. w.ateacher == userid,
  2473. }"
  2474. >
  2475. 评分
  2476. </div>
  2477. <img
  2478. class="deleteImg"
  2479. src="../../assets/deleteworks.png"
  2480. v-if="w.userid == userid || tType == 1 || tType == 4"
  2481. @click.stop="deleteWorks(w.wid)"
  2482. alt
  2483. />
  2484. </div>
  2485. <div class="workImg" v-if="w.type == 3">
  2486. <img
  2487. style="cursor: pointer"
  2488. :src="video"
  2489. @click="openVideo(w)"
  2490. alt
  2491. />
  2492. <!-- @click="openVideo(w.works)" -->
  2493. <div
  2494. class="answerScore"
  2495. v-if="w.score"
  2496. @click.stop="openScore(w)"
  2497. :class="{
  2498. rightW:
  2499. w.userid == userid ||
  2500. tType == 1 ||
  2501. tType == 4 ||
  2502. w.ateacher == userid,
  2503. }"
  2504. >
  2505. {{ JSON.parse(w.score).wScore }}分
  2506. </div>
  2507. <div
  2508. class="answerScore"
  2509. @click.stop="openScore(w)"
  2510. v-else-if="courseDetail.userid == userid"
  2511. :class="{
  2512. rightW:
  2513. w.userid == userid ||
  2514. tType == 1 ||
  2515. tType == 4 ||
  2516. w.ateacher == userid,
  2517. }"
  2518. >
  2519. 评分
  2520. </div>
  2521. <img
  2522. class="deleteImg"
  2523. src="../../assets/deleteworks.png"
  2524. v-if="w.userid == userid || tType == 1 || tType == 4"
  2525. @click.stop="deleteWorks(w.wid)"
  2526. alt
  2527. />
  2528. </div>
  2529. <div class="comment" style="min-width: 200px">
  2530. <div class="worksName">
  2531. <div
  2532. style="cursor: pointer"
  2533. @click="
  2534. openSname(w.sName, w.wid, toolIndex, w.userid)
  2535. "
  2536. >
  2537. {{ w.sName }}
  2538. </div>
  2539. </div>
  2540. <div class="commentList">
  2541. <div class="commentList">
  2542. <div
  2543. class="commentImg"
  2544. @click="
  2545. isLikes(w.wid, userid, 1, null, w.isLikes)
  2546. "
  2547. >
  2548. <img
  2549. :src="w.isLikes == true ? likes : noLikes"
  2550. alt=""
  2551. />
  2552. </div>
  2553. <div>{{ w.likesCount }}</div>
  2554. </div>
  2555. <div class="commentList" style="margin-right: 15px">
  2556. <div
  2557. class="commentImg"
  2558. @click="commentOther(w, toolIndex, wIndex)"
  2559. >
  2560. <img
  2561. src="../../assets/icon/comment/comment.png"
  2562. alt=""
  2563. />
  2564. </div>
  2565. <div>{{ w.commentCount }}</div>
  2566. </div>
  2567. </div>
  2568. </div>
  2569. </div>
  2570. </div>
  2571. </div>
  2572. <div
  2573. v-if="
  2574. tType &&
  2575. ((tType == 2 && sIsOpen == true) ||
  2576. tType == 1 ||
  2577. tType == 4) &&
  2578. tool.tool.indexOf(4) != -1
  2579. "
  2580. class="worksBox"
  2581. >
  2582. <div
  2583. class="zuoyeYulan"
  2584. v-if="
  2585. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2586. "
  2587. >
  2588. <div class="worksTop">
  2589. <div>作业预览</div>
  2590. </div>
  2591. </div>
  2592. <div>
  2593. <div
  2594. class="worksDetailBox"
  2595. v-if="
  2596. worksTeacher.length &&
  2597. worksTeacher[toolIndex].length > 0
  2598. "
  2599. >
  2600. <div
  2601. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2602. :key="wIndex"
  2603. class="isWorksName"
  2604. @click="
  2605. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2606. "
  2607. >
  2608. {{ w.sName }}
  2609. <img
  2610. class="deleteImg deleteImg2"
  2611. src="../../assets/deleteworks.png"
  2612. v-if="w.userid == userid || tType == 1 || tType == 4"
  2613. @click.stop="deleteWorks(w.wid)"
  2614. alt
  2615. />
  2616. </div>
  2617. </div>
  2618. </div>
  2619. </div>
  2620. <div
  2621. v-if="
  2622. tType &&
  2623. ((tType == 2 && sIsOpen == true) ||
  2624. tType == 1 ||
  2625. tType == 4) &&
  2626. tool.tool.indexOf(45) != -1
  2627. "
  2628. class="worksBox"
  2629. >
  2630. <div
  2631. class="zuoyeYulan"
  2632. v-if="
  2633. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2634. "
  2635. >
  2636. <div class="worksTop">
  2637. <div>作业预览</div>
  2638. </div>
  2639. </div>
  2640. <div>
  2641. <div
  2642. class="worksDetailBox"
  2643. v-if="
  2644. worksTeacher.length &&
  2645. worksTeacher[toolIndex].length > 0
  2646. "
  2647. >
  2648. <div
  2649. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2650. :key="wIndex"
  2651. class="isWorksName"
  2652. @click="
  2653. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2654. "
  2655. >
  2656. {{ w.sName }}
  2657. <img
  2658. class="deleteImg deleteImg2"
  2659. src="../../assets/deleteworks.png"
  2660. v-if="w.userid == userid || tType == 1 || tType == 4"
  2661. @click.stop="deleteWorks(w.wid)"
  2662. alt
  2663. />
  2664. </div>
  2665. </div>
  2666. </div>
  2667. </div>
  2668. <div
  2669. v-if="
  2670. tType &&
  2671. ((tType == 2 && sIsOpen == true) ||
  2672. tType == 1 ||
  2673. tType == 4) &&
  2674. tool.tool.indexOf(15) != -1
  2675. "
  2676. class="worksBox"
  2677. >
  2678. <div
  2679. class="zuoyeYulan"
  2680. v-if="
  2681. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2682. "
  2683. >
  2684. <div class="worksTop">
  2685. <div>作业预览</div>
  2686. </div>
  2687. </div>
  2688. <div
  2689. class="worksDetailBox"
  2690. v-if="
  2691. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2692. "
  2693. >
  2694. <div
  2695. class="works"
  2696. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2697. :key="wIndex"
  2698. >
  2699. <div
  2700. class="workImg"
  2701. style="
  2702. border-radius: 15px;
  2703. box-shadow: #eee 0px 0px 5px 5px;
  2704. "
  2705. >
  2706. <!-- <img
  2707. src="../../assets/icon/works/noImg.png"
  2708. @click="openTools(15, toolIndex, taskCount, w.works)"
  2709. alt=""
  2710. />-->
  2711. <div
  2712. class="answerBg"
  2713. style="border-radius: 15px 15px 0 0"
  2714. @click="commentOther(w, toolIndex, wIndex)"
  2715. >
  2716. <!-- <div>{{ w.sName }}</div> -->
  2717. <div class="answerContent">
  2718. {{ JSON.parse(w.works)[0].answer }}
  2719. </div>
  2720. <div
  2721. class="answerScore"
  2722. v-if="w.score"
  2723. @click.stop="openScore(w)"
  2724. :class="{
  2725. rightW:
  2726. w.userid == userid || tType == 1 || tType == 4,
  2727. }"
  2728. >
  2729. {{ JSON.parse(w.score).wScore }}分
  2730. </div>
  2731. <div
  2732. class="answerScore"
  2733. @click.stop="openScore(w)"
  2734. v-else-if="courseDetail.userid == userid"
  2735. :class="{
  2736. rightW:
  2737. w.userid == userid || tType == 1 || tType == 4,
  2738. }"
  2739. >
  2740. 评分
  2741. </div>
  2742. <img
  2743. class="deleteImg"
  2744. src="../../assets/deleteworks.png"
  2745. v-if="
  2746. w.userid == userid || tType == 1 || tType == 4
  2747. "
  2748. @click.stop="deleteWorks(w.wid)"
  2749. alt
  2750. />
  2751. </div>
  2752. <div class="comment">
  2753. <div class="worksName">
  2754. <div>{{ w.sName }}</div>
  2755. </div>
  2756. <div class="commentList">
  2757. <div
  2758. class="commentImg"
  2759. @click="
  2760. isLikes(w.wid, userid, 1, null, w.isLikes)
  2761. "
  2762. >
  2763. <img
  2764. :src="w.isLikes == true ? likes : noLikes"
  2765. alt=""
  2766. />
  2767. </div>
  2768. <div>{{ w.likesCount }}</div>
  2769. </div>
  2770. <div class="commentList" style="margin-right: 15px">
  2771. <div
  2772. class="commentImg"
  2773. @click="commentOther(w, toolIndex, wIndex)"
  2774. >
  2775. <img
  2776. src="../../assets/icon/comment/comment.png"
  2777. alt=""
  2778. />
  2779. </div>
  2780. <div>{{ w.commentCount }}</div>
  2781. </div>
  2782. </div>
  2783. </div>
  2784. </div>
  2785. </div>
  2786. </div>
  2787. <div
  2788. v-if="
  2789. tType &&
  2790. ((tType == 2 && sIsOpen == true) ||
  2791. tType == 1 ||
  2792. tType == 4) &&
  2793. tool.tool.indexOf(1) != -1
  2794. "
  2795. class="worksBox"
  2796. >
  2797. <div
  2798. class="zuoyeYulan"
  2799. v-if="
  2800. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2801. "
  2802. >
  2803. <div class="worksTop">
  2804. <div>作业预览</div>
  2805. </div>
  2806. </div>
  2807. <div
  2808. class="worksDetailBox"
  2809. v-if="
  2810. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2811. "
  2812. >
  2813. <div
  2814. class="works"
  2815. style="
  2816. width: 200px;
  2817. height: 140px;
  2818. margin: 10px 10px 10px 0;
  2819. border-radius: 15px;
  2820. box-shadow: 0 0 6px 1px #dfdada;
  2821. "
  2822. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2823. :key="wIndex"
  2824. >
  2825. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2826. <div class="workImg">
  2827. <img :src="w.works" @click="previewImg(w.works)" alt />
  2828. <div
  2829. class="answerScore"
  2830. v-if="w.score"
  2831. @click.stop="openScore(w)"
  2832. :class="{
  2833. rightW:
  2834. w.userid == userid || tType == 1 || tType == 4,
  2835. }"
  2836. >
  2837. {{ JSON.parse(w.score).wScore }}分
  2838. </div>
  2839. <div
  2840. class="answerScore"
  2841. @click.stop="openScore(w)"
  2842. v-else-if="courseDetail.userid == userid"
  2843. :class="{
  2844. rightW:
  2845. w.userid == userid || tType == 1 || tType == 4,
  2846. }"
  2847. >
  2848. 评分
  2849. </div>
  2850. <img
  2851. class="deleteImg"
  2852. src="../../assets/deleteworks.png"
  2853. v-if="w.userid == userid || tType == 1 || tType == 4"
  2854. @click.stop="deleteWorks(w.wid)"
  2855. alt
  2856. />
  2857. </div>
  2858. <div class="comment" style="min-width: 200px">
  2859. <div class="worksName">
  2860. <div>{{ w.sName }}</div>
  2861. </div>
  2862. <div class="commentList">
  2863. <div class="commentList">
  2864. <div
  2865. class="commentImg"
  2866. @click="
  2867. isLikes(w.wid, userid, 1, null, w.isLikes)
  2868. "
  2869. >
  2870. <img
  2871. :src="w.isLikes == true ? likes : noLikes"
  2872. alt=""
  2873. />
  2874. </div>
  2875. <div>{{ w.likesCount }}</div>
  2876. </div>
  2877. <div class="commentList" style="margin-right: 15px">
  2878. <div
  2879. class="commentImg"
  2880. @click="commentOther(w, toolIndex, wIndex)"
  2881. >
  2882. <img
  2883. src="../../assets/icon/comment/comment.png"
  2884. alt=""
  2885. />
  2886. </div>
  2887. <div>{{ w.commentCount }}</div>
  2888. </div>
  2889. </div>
  2890. </div>
  2891. </div>
  2892. </div>
  2893. </div>
  2894. <div
  2895. v-if="
  2896. tType &&
  2897. ((tType == 2 && sIsOpen == true) ||
  2898. tType == 1 ||
  2899. tType == 4) &&
  2900. tool.tool.indexOf(3) != -1
  2901. "
  2902. class="worksBox"
  2903. >
  2904. <div
  2905. class="zuoyeYulan"
  2906. v-if="
  2907. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2908. "
  2909. >
  2910. <div class="worksTop">
  2911. <div>作业预览</div>
  2912. </div>
  2913. </div>
  2914. <div
  2915. class="worksDetailBox"
  2916. v-if="
  2917. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2918. "
  2919. >
  2920. <div
  2921. class="works"
  2922. style="
  2923. width: 200px;
  2924. height: 140px;
  2925. margin: 10px 10px 10px 0;
  2926. border-radius: 15px;
  2927. box-shadow: 0 0 6px 1px #dfdada;
  2928. "
  2929. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2930. :key="wIndex"
  2931. >
  2932. <!-- @click="previewImg(w.works)" -->
  2933. <div class="workImg">
  2934. <img :src="w.works" @click="previewImg(w.works)" alt />
  2935. <div
  2936. class="answerScore"
  2937. v-if="w.score"
  2938. @click.stop="openScore(w)"
  2939. :class="{
  2940. rightW:
  2941. w.userid == userid || tType == 1 || tType == 4,
  2942. }"
  2943. >
  2944. {{ JSON.parse(w.score).wScore }}分
  2945. </div>
  2946. <div
  2947. class="answerScore"
  2948. @click.stop="openScore(w)"
  2949. v-else-if="courseDetail.userid == userid"
  2950. :class="{
  2951. rightW:
  2952. w.userid == userid || tType == 1 || tType == 4,
  2953. }"
  2954. >
  2955. 评分
  2956. </div>
  2957. <img
  2958. class="deleteImg"
  2959. src="../../assets/deleteworks.png"
  2960. v-if="w.userid == userid || tType == 1 || tType == 4"
  2961. @click.stop="deleteWorks(w.wid)"
  2962. alt
  2963. />
  2964. </div>
  2965. <div class="comment" style="min-width: 200px">
  2966. <div class="worksName">
  2967. <div>{{ w.sName }}</div>
  2968. </div>
  2969. <div class="commentList">
  2970. <div class="commentList">
  2971. <div
  2972. class="commentImg"
  2973. @click="
  2974. isLikes(w.wid, userid, 1, null, w.isLikes)
  2975. "
  2976. >
  2977. <img
  2978. :src="w.isLikes == true ? likes : noLikes"
  2979. alt=""
  2980. />
  2981. </div>
  2982. <div>{{ w.likesCount }}</div>
  2983. </div>
  2984. <div class="commentList" style="margin-right: 15px">
  2985. <div
  2986. class="commentImg"
  2987. @click="commentOther(w, toolIndex, wIndex)"
  2988. >
  2989. <img
  2990. src="../../assets/icon/comment/comment.png"
  2991. alt=""
  2992. />
  2993. </div>
  2994. <div>{{ w.commentCount }}</div>
  2995. </div>
  2996. </div>
  2997. </div>
  2998. </div>
  2999. </div>
  3000. </div>
  3001. <div
  3002. v-if="
  3003. tType &&
  3004. ((tType == 2 && sIsOpen == true) ||
  3005. tType == 1 ||
  3006. tType == 4) &&
  3007. tool.tool.indexOf(6) != -1
  3008. "
  3009. class="worksBox"
  3010. >
  3011. <div
  3012. class="zuoyeYulan"
  3013. v-if="
  3014. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3015. "
  3016. >
  3017. <div class="worksTop">
  3018. <div>作业预览</div>
  3019. </div>
  3020. </div>
  3021. <div
  3022. class="worksDetailBox"
  3023. v-if="
  3024. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3025. "
  3026. >
  3027. <div
  3028. class="works"
  3029. style="
  3030. width: 200px;
  3031. height: 140px;
  3032. margin: 10px 10px 10px 0;
  3033. border-radius: 15px;
  3034. box-shadow: 0 0 6px 1px #dfdada;
  3035. "
  3036. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3037. :key="wIndex"
  3038. >
  3039. <!-- @click="previewImg(w.works)" -->
  3040. <div class="workImg">
  3041. <img :src="w.works" @click="previewImg(w.works)" alt />
  3042. <div
  3043. class="answerScore"
  3044. v-if="w.score"
  3045. @click.stop="openScore(w)"
  3046. :class="{
  3047. rightW:
  3048. w.userid == userid || tType == 1 || tType == 4,
  3049. }"
  3050. >
  3051. {{ JSON.parse(w.score).wScore }}分
  3052. </div>
  3053. <div
  3054. class="answerScore"
  3055. @click.stop="openScore(w)"
  3056. v-else-if="courseDetail.userid == userid"
  3057. :class="{
  3058. rightW:
  3059. w.userid == userid || tType == 1 || tType == 4,
  3060. }"
  3061. >
  3062. 评分
  3063. </div>
  3064. <img
  3065. class="deleteImg"
  3066. src="../../assets/deleteworks.png"
  3067. v-if="w.userid == userid || tType == 1 || tType == 4"
  3068. @click.stop="deleteWorks(w.wid)"
  3069. alt
  3070. />
  3071. </div>
  3072. <div class="comment" style="min-width: 200px">
  3073. <div class="worksName">
  3074. <div>{{ w.sName }}</div>
  3075. </div>
  3076. <div class="commentList">
  3077. <div class="commentList">
  3078. <div
  3079. class="commentImg"
  3080. @click="
  3081. isLikes(w.wid, userid, 1, null, w.isLikes)
  3082. "
  3083. >
  3084. <img
  3085. :src="w.isLikes == true ? likes : noLikes"
  3086. alt=""
  3087. />
  3088. </div>
  3089. <div>{{ w.likesCount }}</div>
  3090. </div>
  3091. <div class="commentList" style="margin-right: 15px">
  3092. <div
  3093. class="commentImg"
  3094. @click="commentOther(w, toolIndex, wIndex)"
  3095. >
  3096. <img
  3097. src="../../assets/icon/comment/comment.png"
  3098. alt=""
  3099. />
  3100. </div>
  3101. <div>{{ w.commentCount }}</div>
  3102. </div>
  3103. </div>
  3104. </div>
  3105. </div>
  3106. </div>
  3107. </div>
  3108. <div
  3109. v-if="
  3110. tType &&
  3111. ((tType == 2 && sIsOpen == true) ||
  3112. tType == 1 ||
  3113. tType == 4) &&
  3114. tool.tool.indexOf(7) != -1
  3115. "
  3116. class="worksBox"
  3117. >
  3118. <div
  3119. class="zuoyeYulan"
  3120. v-if="
  3121. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3122. "
  3123. >
  3124. <div class="worksTop">
  3125. <div>作业预览</div>
  3126. </div>
  3127. </div>
  3128. <div
  3129. class="worksDetailBox"
  3130. v-if="
  3131. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3132. "
  3133. >
  3134. <div
  3135. class="works"
  3136. style="
  3137. width: 200px;
  3138. height: 140px;
  3139. margin: 10px 10px 10px 0;
  3140. border-radius: 15px;
  3141. box-shadow: 0 0 6px 1px #dfdada;
  3142. "
  3143. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3144. :key="wIndex"
  3145. >
  3146. <!-- @click="previewImg(w.works)" -->
  3147. <div class="workImg">
  3148. <img :src="w.works" @click="previewImg(w.works)" alt />
  3149. <div
  3150. class="answerScore"
  3151. v-if="w.score"
  3152. @click.stop="openScore(w)"
  3153. :class="{
  3154. rightW:
  3155. w.userid == userid || tType == 1 || tType == 4,
  3156. }"
  3157. >
  3158. {{ JSON.parse(w.score).wScore }}分
  3159. </div>
  3160. <div
  3161. class="answerScore"
  3162. @click.stop="openScore(w)"
  3163. v-else-if="courseDetail.userid == userid"
  3164. :class="{
  3165. rightW:
  3166. w.userid == userid || tType == 1 || tType == 4,
  3167. }"
  3168. >
  3169. 评分
  3170. </div>
  3171. <img
  3172. class="deleteImg"
  3173. src="../../assets/deleteworks.png"
  3174. v-if="w.userid == userid || tType == 1 || tType == 4"
  3175. @click.stop="deleteWorks(w.wid)"
  3176. alt
  3177. />
  3178. </div>
  3179. <div class="comment" style="min-width: 200px">
  3180. <div class="worksName">
  3181. <div>{{ w.sName }}</div>
  3182. </div>
  3183. <div class="commentList">
  3184. <div class="commentList">
  3185. <div
  3186. class="commentImg"
  3187. @click="
  3188. isLikes(w.wid, userid, 1, null, w.isLikes)
  3189. "
  3190. >
  3191. <img
  3192. :src="w.isLikes == true ? likes : noLikes"
  3193. alt=""
  3194. />
  3195. </div>
  3196. <div>{{ w.likesCount }}</div>
  3197. </div>
  3198. <div class="commentList" style="margin-right: 15px">
  3199. <div
  3200. class="commentImg"
  3201. @click="commentOther(w, toolIndex, wIndex)"
  3202. >
  3203. <img
  3204. src="../../assets/icon/comment/comment.png"
  3205. alt=""
  3206. />
  3207. </div>
  3208. <div>{{ w.commentCount }}</div>
  3209. </div>
  3210. </div>
  3211. </div>
  3212. </div>
  3213. </div>
  3214. </div>
  3215. <div
  3216. v-if="
  3217. tType &&
  3218. ((tType == 2 && sIsOpen == true) ||
  3219. tType == 1 ||
  3220. tType == 4) &&
  3221. tool.tool.indexOf(26) != -1
  3222. "
  3223. class="worksBox"
  3224. >
  3225. <div
  3226. class="zuoyeYulan"
  3227. v-if="
  3228. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3229. "
  3230. >
  3231. <div class="worksTop">
  3232. <div>作业预览</div>
  3233. </div>
  3234. </div>
  3235. <div
  3236. class="worksDetailBox"
  3237. v-if="
  3238. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3239. "
  3240. >
  3241. <div
  3242. class="works"
  3243. style="width: 240px; height: 140px; overflow: hidden"
  3244. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3245. :key="wIndex"
  3246. :class="w.type == 1 ? 'isTypeOne' : ''"
  3247. >
  3248. <div class="workImg" v-if="w.type == 0">
  3249. <img :src="w.works" @click="previewImg(w.works)" alt />
  3250. <img
  3251. class="deleteImg"
  3252. src="../../assets/deleteworks.png"
  3253. v-if="w.userid == userid || tType == 1 || tType == 4"
  3254. @click.stop="deleteWorks(w.wid)"
  3255. alt
  3256. />
  3257. </div>
  3258. <div class="workImg" v-if="w.type == 1">
  3259. <img :src="word" @click="openFile(w.works)" alt />
  3260. <img
  3261. class="deleteImg"
  3262. src="../../assets/deleteworks.png"
  3263. v-if="w.userid == userid || tType == 1 || tType == 4"
  3264. @click.stop="deleteWorks(w.wid)"
  3265. alt
  3266. />
  3267. </div>
  3268. <div class="worksName">
  3269. <div>{{ w.sName }}</div>
  3270. </div>
  3271. </div>
  3272. </div>
  3273. </div>
  3274. <div
  3275. v-if="
  3276. tType &&
  3277. ((tType == 2 && sIsOpen == true) ||
  3278. tType == 1 ||
  3279. tType == 4) &&
  3280. tool.tool.indexOf(40) != -1
  3281. "
  3282. class="worksBox"
  3283. >
  3284. <div
  3285. class="zuoyeYulan"
  3286. v-if="
  3287. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3288. "
  3289. >
  3290. <div class="worksTop">
  3291. <div>作业预览</div>
  3292. </div>
  3293. </div>
  3294. <div
  3295. class="worksDetailBox"
  3296. v-if="
  3297. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3298. "
  3299. >
  3300. <div
  3301. class="works"
  3302. style="
  3303. width: 200px;
  3304. height: 140px;
  3305. margin: 10px 10px 10px 0;
  3306. border-radius: 15px;
  3307. box-shadow: 0 0 6px 1px #dfdada;
  3308. "
  3309. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3310. :key="wIndex"
  3311. :class="w.type == 1 ? 'isTypeOne' : ''"
  3312. >
  3313. <div class="workImg">
  3314. <img
  3315. src="../../assets/icon/works/noImg.png"
  3316. @click="openPj(w.works, toolIndex)"
  3317. alt
  3318. />
  3319. <img
  3320. class="deleteImg"
  3321. src="../../assets/deleteworks.png"
  3322. v-if="w.userid == userid || tType == 1 || tType == 4"
  3323. @click.stop="deleteWorks(w.wid)"
  3324. alt
  3325. />
  3326. </div>
  3327. <div class="comment" style="min-width: 200px">
  3328. <div class="worksName">
  3329. <div>{{ w.sName }}</div>
  3330. </div>
  3331. <div class="commentList">
  3332. <div class="commentList">
  3333. <div
  3334. class="commentImg"
  3335. @click="
  3336. isLikes(w.wid, userid, 1, null, w.isLikes)
  3337. "
  3338. >
  3339. <img
  3340. :src="w.isLikes == true ? likes : noLikes"
  3341. alt=""
  3342. />
  3343. </div>
  3344. <div>{{ w.likesCount }}</div>
  3345. </div>
  3346. <div class="commentList" style="margin-right: 15px">
  3347. <div
  3348. class="commentImg"
  3349. @click="commentOther(w, toolIndex, wIndex)"
  3350. >
  3351. <img
  3352. src="../../assets/icon/comment/comment.png"
  3353. alt=""
  3354. />
  3355. </div>
  3356. <div>{{ w.commentCount }}</div>
  3357. </div>
  3358. </div>
  3359. </div>
  3360. </div>
  3361. </div>
  3362. </div>
  3363. <div
  3364. v-if="
  3365. tType &&
  3366. ((tType == 2 && sIsOpen == true) ||
  3367. tType == 1 ||
  3368. tType == 4) &&
  3369. tool.tool.indexOf(41) != -1
  3370. "
  3371. class="worksBox"
  3372. >
  3373. <div
  3374. class="zuoyeYulan"
  3375. v-if="
  3376. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3377. "
  3378. >
  3379. <div class="worksTop">
  3380. <div>作业预览</div>
  3381. </div>
  3382. </div>
  3383. <div
  3384. class="worksDetailBox"
  3385. v-if="
  3386. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3387. "
  3388. >
  3389. <div
  3390. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3391. :key="wIndex"
  3392. class="isWorksName"
  3393. @click="openXz(w, toolIndex)"
  3394. >
  3395. {{ w.sName }}
  3396. <img
  3397. class="deleteImg deleteImg2"
  3398. src="../../assets/deleteworks.png"
  3399. v-if="w.userid == userid || tType == 1 || tType == 4"
  3400. @click.stop="deleteWorks(w.wid)"
  3401. alt
  3402. />
  3403. </div>
  3404. </div>
  3405. </div>
  3406. <div
  3407. v-if="
  3408. tType &&
  3409. ((tType == 2 && sIsOpen == true) ||
  3410. tType == 1 ||
  3411. tType == 4) &&
  3412. tool.tool.indexOf(47) != -1
  3413. "
  3414. class="worksBox"
  3415. >
  3416. <div
  3417. class="zuoyeYulan"
  3418. v-if="
  3419. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3420. "
  3421. >
  3422. <div class="worksTop">
  3423. <div>作业预览</div>
  3424. </div>
  3425. </div>
  3426. <div
  3427. class="worksDetailBox"
  3428. v-if="
  3429. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3430. "
  3431. >
  3432. <!-- @click="openXz(w, toolIndex)" -->
  3433. <div
  3434. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3435. :key="wIndex"
  3436. class="isWorksName"
  3437. @click="openSen(w, toolIndex)"
  3438. >
  3439. {{ w.sName }}
  3440. <img
  3441. class="deleteImg deleteImg2"
  3442. src="../../assets/deleteworks.png"
  3443. v-if="w.userid == userid || tType == 1 || tType == 4"
  3444. @click.stop="deleteWorks(w.wid)"
  3445. alt
  3446. />
  3447. </div>
  3448. </div>
  3449. </div>
  3450. <div
  3451. v-if="
  3452. tType &&
  3453. ((tType == 2 && sIsOpen == true) ||
  3454. tType == 1 ||
  3455. tType == 4) &&
  3456. tool.tool.indexOf(48) != -1
  3457. "
  3458. class="worksBox"
  3459. >
  3460. <div
  3461. class="zuoyeYulan"
  3462. v-if="
  3463. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3464. "
  3465. >
  3466. <div class="worksTop">
  3467. <div>作业预览</div>
  3468. </div>
  3469. </div>
  3470. <div
  3471. class="worksDetailBox"
  3472. v-if="
  3473. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3474. "
  3475. >
  3476. <div
  3477. class="works"
  3478. style="
  3479. width: 200px;
  3480. height: 140px;
  3481. margin: 10px 10px 10px 0;
  3482. border-radius: 15px;
  3483. box-shadow: 0 0 6px 1px #dfdada;
  3484. "
  3485. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3486. :key="wIndex"
  3487. :class="w.type == 1 ? 'isTypeOne' : ''"
  3488. >
  3489. <div class="workImg">
  3490. <img :src="word" @click="openTable(w)" alt />
  3491. <!-- @click="openFile(w.works)" -->
  3492. <div
  3493. class="answerScore"
  3494. v-if="w.score"
  3495. @click.stop="openScore(w)"
  3496. :class="{
  3497. rightW:
  3498. w.userid == userid ||
  3499. tType == 1 ||
  3500. tType == 4 ||
  3501. w.ateacher == userid,
  3502. }"
  3503. >
  3504. {{ JSON.parse(w.score).wScore }}分
  3505. </div>
  3506. <div
  3507. class="answerScore"
  3508. @click.stop="openScore(w)"
  3509. v-else-if="courseDetail.userid == userid"
  3510. :class="{
  3511. rightW:
  3512. w.userid == userid ||
  3513. tType == 1 ||
  3514. tType == 4 ||
  3515. w.ateacher == userid,
  3516. }"
  3517. >
  3518. 评分
  3519. </div>
  3520. <img
  3521. class="deleteImg"
  3522. src="../../assets/deleteworks.png"
  3523. v-if="w.userid == userid || tType == 1 || tType == 4"
  3524. @click.stop="deleteWorks(w.wid)"
  3525. alt
  3526. />
  3527. </div>
  3528. <div class="comment" style="min-width: 200px">
  3529. <div class="worksName">
  3530. <div>{{ w.sName }}</div>
  3531. </div>
  3532. <div class="commentList">
  3533. <div class="commentList">
  3534. <div
  3535. class="commentImg"
  3536. @click="
  3537. isLikes(w.wid, userid, 1, null, w.isLikes)
  3538. "
  3539. >
  3540. <img
  3541. :src="w.isLikes == true ? likes : noLikes"
  3542. alt=""
  3543. />
  3544. </div>
  3545. <div>{{ w.likesCount }}</div>
  3546. </div>
  3547. <div class="commentList" style="margin-right: 15px">
  3548. <div
  3549. class="commentImg"
  3550. @click="commentOther(w, toolIndex, wIndex)"
  3551. >
  3552. <img
  3553. src="../../assets/icon/comment/comment.png"
  3554. alt=""
  3555. />
  3556. </div>
  3557. <div>{{ w.commentCount }}</div>
  3558. </div>
  3559. </div>
  3560. </div>
  3561. </div>
  3562. </div>
  3563. </div>
  3564. <div
  3565. v-if="
  3566. tType &&
  3567. ((tType == 2 && sIsOpen == true) ||
  3568. tType == 1 ||
  3569. tType == 4) &&
  3570. tool.tool.indexOf(52) != -1
  3571. "
  3572. class="worksBox"
  3573. >
  3574. <div
  3575. class="zuoyeYulan"
  3576. v-if="
  3577. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3578. "
  3579. >
  3580. <div class="worksTop">
  3581. <div>作业预览</div>
  3582. </div>
  3583. </div>
  3584. <div
  3585. class="worksDetailBox"
  3586. v-if="
  3587. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3588. "
  3589. >
  3590. <div
  3591. class="works"
  3592. style="
  3593. width: 200px;
  3594. height: 140px;
  3595. margin: 10px 10px 10px 0;
  3596. border-radius: 15px;
  3597. box-shadow: 0 0 6px 1px #dfdada;
  3598. "
  3599. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3600. :key="wIndex"
  3601. :class="w.type == 1 ? 'isTypeOne' : ''"
  3602. >
  3603. <div class="workImg">
  3604. <img :src="word" @click="openWord(w)" alt />
  3605. <!-- @click="openFile(w.works)" -->
  3606. <div
  3607. class="answerScore"
  3608. v-if="w.score"
  3609. @click.stop="openScore(w)"
  3610. :class="{
  3611. rightW:
  3612. w.userid == userid ||
  3613. tType == 1 ||
  3614. tType == 4 ||
  3615. w.ateacher == userid,
  3616. }"
  3617. >
  3618. {{ JSON.parse(w.score).wScore }}分
  3619. </div>
  3620. <div
  3621. class="answerScore"
  3622. @click.stop="openScore(w)"
  3623. v-else-if="courseDetail.userid == userid"
  3624. :class="{
  3625. rightW:
  3626. w.userid == userid ||
  3627. tType == 1 ||
  3628. tType == 4 ||
  3629. w.ateacher == userid,
  3630. }"
  3631. >
  3632. 评分
  3633. </div>
  3634. <img
  3635. class="deleteImg"
  3636. src="../../assets/deleteworks.png"
  3637. v-if="w.userid == userid || tType == 1 || tType == 4"
  3638. @click.stop="deleteWorks(w.wid)"
  3639. alt
  3640. />
  3641. </div>
  3642. <div class="comment" style="min-width: 200px">
  3643. <div class="worksName">
  3644. <div>{{ w.sName }}</div>
  3645. </div>
  3646. <div class="commentList">
  3647. <div class="commentList">
  3648. <div
  3649. class="commentImg"
  3650. @click="
  3651. isLikes(w.wid, userid, 1, null, w.isLikes)
  3652. "
  3653. >
  3654. <img
  3655. :src="w.isLikes == true ? likes : noLikes"
  3656. alt=""
  3657. />
  3658. </div>
  3659. <div>{{ w.likesCount }}</div>
  3660. </div>
  3661. <div class="commentList" style="margin-right: 15px">
  3662. <div
  3663. class="commentImg"
  3664. @click="commentOther(w, toolIndex, wIndex)"
  3665. >
  3666. <img
  3667. src="../../assets/icon/comment/comment.png"
  3668. alt=""
  3669. />
  3670. </div>
  3671. <div>{{ w.commentCount }}</div>
  3672. </div>
  3673. </div>
  3674. </div>
  3675. </div>
  3676. </div>
  3677. </div>
  3678. </div>
  3679. </div>
  3680. <div class="vedioBox">
  3681. <div
  3682. v-if="
  3683. tType &&
  3684. ((tType == 2 && sIsOpen == true) ||
  3685. tType == 1 ||
  3686. tType == 4) &&
  3687. tool.tool.indexOf(4) != -1 &&
  3688. worksStudent.length &&
  3689. worksStudent[toolIndex].length &&
  3690. (tool.askJson[0].answer || tool.askJson[0].answer === 0) &&
  3691. checkJson[toolIndex].length
  3692. "
  3693. class="xuan_right_box"
  3694. >
  3695. <div
  3696. class="tool_right_box"
  3697. v-for="(item, index) in tool.askJson"
  3698. :key="index"
  3699. >
  3700. <div>
  3701. <span style="word-break: break-all; white-space: normal">{{
  3702. index + 1 + "、" + item.askstitle
  3703. }}</span>
  3704. </div>
  3705. <div class="right_box_xuan">
  3706. <span>正确率</span>
  3707. <span>{{
  3708. (checkJson[toolIndex][index].right
  3709. ? checkJson[toolIndex][index].right
  3710. : 0) + "%"
  3711. }}</span>
  3712. </div>
  3713. </div>
  3714. </div>
  3715. <div
  3716. class="xuan_right_box"
  3717. style="background: unset"
  3718. v-if="
  3719. tType &&
  3720. ((tType == 2 && sIsOpen == true) ||
  3721. tType == 1 ||
  3722. tType == 4) &&
  3723. tool.tool.indexOf(4) != -1 &&
  3724. worksStudent.length &&
  3725. worksStudent[toolIndex].length
  3726. "
  3727. >
  3728. <AskStatic
  3729. v-if="
  3730. worksStudent.length && worksStudent[toolIndex].length > 0
  3731. "
  3732. :askJSON="tool"
  3733. :checkJson="checkJson[toolIndex]"
  3734. ></AskStatic>
  3735. </div>
  3736. <div
  3737. v-if="
  3738. tType &&
  3739. ((tType == 2 && sIsOpen == true) ||
  3740. tType == 1 ||
  3741. tType == 4) &&
  3742. tool.tool.indexOf(45) != -1 &&
  3743. worksStudent.length &&
  3744. worksStudent[toolIndex].length &&
  3745. (tool.testJson.testJson[0].answer ||
  3746. tool.testJson.testJson[0].answer === 0) &&
  3747. checkJson[toolIndex].length
  3748. "
  3749. class="xuan_right_box"
  3750. >
  3751. <div
  3752. class="tool_right_box"
  3753. v-for="(item, index) in tool.testJson.testJson"
  3754. :key="index"
  3755. >
  3756. <div class="right_box_xuan" style="margin-right: 10px">
  3757. <span>正确率</span>
  3758. <span>{{
  3759. (checkJson[toolIndex][index].right
  3760. ? checkJson[toolIndex][index].right
  3761. : 0) + "%"
  3762. }}</span>
  3763. </div>
  3764. <div>
  3765. <span style="word-break: break-all; white-space: normal">{{
  3766. index + 1 + "、" + item.teststitle
  3767. }}</span>
  3768. </div>
  3769. </div>
  3770. </div>
  3771. <div
  3772. class="xuan_right_box"
  3773. style="background: unset"
  3774. v-if="
  3775. tType &&
  3776. ((tType == 2 && sIsOpen == true) ||
  3777. tType == 1 ||
  3778. tType == 4) &&
  3779. tool.tool.indexOf(45) != -1 &&
  3780. worksStudent.length &&
  3781. worksStudent[toolIndex].length
  3782. "
  3783. >
  3784. <AskStatic2
  3785. v-if="
  3786. worksStudent.length && worksStudent[toolIndex].length > 0
  3787. "
  3788. :askJSON="tool"
  3789. :checkJson="checkJson[toolIndex]"
  3790. ></AskStatic2>
  3791. </div>
  3792. <div
  3793. v-if="
  3794. tType &&
  3795. ((tType == 2 && sIsOpen == true) ||
  3796. tType == 1 ||
  3797. tType == 4) &&
  3798. tool.tool.indexOf(41) != -1
  3799. "
  3800. >
  3801. <AnswerData2
  3802. v-if="
  3803. worksStudent.length && worksStudent[toolIndex].length > 0
  3804. "
  3805. :problemJson="tool.selectJson.answer"
  3806. :people="worksStudent[toolIndex]"
  3807. ></AnswerData2>
  3808. </div>
  3809. <div
  3810. v-if="
  3811. tType &&
  3812. ((tType == 2 && sIsOpen == true) ||
  3813. tType == 1 ||
  3814. tType == 4) &&
  3815. tool.tool.indexOf(47) != -1
  3816. "
  3817. >
  3818. <AnswerData
  3819. v-if="
  3820. checkJson[toolIndex].length &&
  3821. (tool.sentenceList || tool.sentenceList.length > 0)
  3822. "
  3823. :people="checkJson[toolIndex]"
  3824. ></AnswerData>
  3825. </div>
  3826. </div>
  3827. <div
  3828. class="vedioBox"
  3829. v-if="
  3830. noWorksS[toolIndex].length &&
  3831. arrayToArray(tool.tool, isWorkTool).length &&
  3832. false
  3833. "
  3834. >
  3835. <div
  3836. class="queTop"
  3837. style="
  3838. font-size: 20px;
  3839. padding: 15px 0 15px 37px;
  3840. font-weight: bold;
  3841. "
  3842. >
  3843. 学生工作区
  3844. </div>
  3845. <div class="tool_work_box">
  3846. <div
  3847. v-if="
  3848. tType &&
  3849. ((tType == 2 && sIsOpen == true) ||
  3850. tType == 1 ||
  3851. tType == 4) &&
  3852. tool.tool.indexOf(16) != -1
  3853. "
  3854. class="worksBox"
  3855. >
  3856. <div
  3857. class="zuoyeYulan"
  3858. v-if="
  3859. worksStudent2.length &&
  3860. worksStudent2[toolIndex].length > 0
  3861. "
  3862. >
  3863. <div class="worksTop">
  3864. <div>作业预览</div>
  3865. <div
  3866. class="corOpen"
  3867. @click="contract(toolIndex)"
  3868. v-if="
  3869. worksStudent2[toolIndex].length > 6 &&
  3870. isCloseList[toolIndex].isClose == 0
  3871. "
  3872. >
  3873. 收缩
  3874. </div>
  3875. <div
  3876. class="corOpen"
  3877. @click="contract(toolIndex)"
  3878. v-if="isCloseList[toolIndex].isClose == 1"
  3879. >
  3880. 展开
  3881. </div>
  3882. </div>
  3883. </div>
  3884. <div
  3885. class="worksDetailBox"
  3886. v-if="
  3887. worksStudent2.length &&
  3888. worksStudent2[toolIndex].length > 0
  3889. "
  3890. >
  3891. <div
  3892. class="works"
  3893. style="
  3894. width: 200px;
  3895. height: 140px;
  3896. margin: 10px 10px 10px 0;
  3897. border-radius: 15px;
  3898. box-shadow: 0 0 6px 1px #dfdada;
  3899. "
  3900. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3901. ? worksStudent2[toolIndex]
  3902. : worksStudent2[toolIndex].slice(0, 6)"
  3903. :key="wIndex"
  3904. :class="w.type == 1 ? 'isTypeOne' : ''"
  3905. >
  3906. <div class="workImg" v-if="w.type == 0">
  3907. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3908. <img :src="w.works" @click="previewImg(w.works)" alt />
  3909. <div
  3910. class="answerScore"
  3911. v-if="w.score"
  3912. @click.stop="openScore(w)"
  3913. :class="{
  3914. rightW:
  3915. w.userid == userid ||
  3916. tType == 1 ||
  3917. tType == 4 ||
  3918. w.ateacher == userid,
  3919. }"
  3920. >
  3921. {{ JSON.parse(w.score).wScore }}分
  3922. </div>
  3923. <div
  3924. class="answerScore"
  3925. @click.stop="openScore(w)"
  3926. v-else-if="courseDetail.userid == userid"
  3927. :class="{
  3928. rightW:
  3929. w.userid == userid ||
  3930. tType == 1 ||
  3931. tType == 4 ||
  3932. w.ateacher == userid,
  3933. }"
  3934. >
  3935. 评分
  3936. </div>
  3937. <img
  3938. class="deleteImg"
  3939. src="../../assets/deleteworks.png"
  3940. v-if="w.userid == userid || tType == 1 || tType == 4"
  3941. @click.stop="deleteWorks(w.wid)"
  3942. alt
  3943. />
  3944. </div>
  3945. <div class="workImg" v-if="w.type == 1">
  3946. <img :src="word" @click="openFile(w.works)" alt />
  3947. <!-- @click="openFile(w.works)" -->
  3948. <div
  3949. class="answerScore"
  3950. v-if="w.score"
  3951. @click.stop="openScore(w)"
  3952. :class="{
  3953. rightW:
  3954. w.userid == userid ||
  3955. tType == 1 ||
  3956. tType == 4 ||
  3957. w.ateacher == userid,
  3958. }"
  3959. >
  3960. {{ JSON.parse(w.score).wScore }}分
  3961. </div>
  3962. <div
  3963. class="answerScore"
  3964. @click.stop="openScore(w)"
  3965. v-else-if="courseDetail.userid == userid"
  3966. :class="{
  3967. rightW:
  3968. w.userid == userid ||
  3969. tType == 1 ||
  3970. tType == 4 ||
  3971. w.ateacher == userid,
  3972. }"
  3973. >
  3974. 评分
  3975. </div>
  3976. <img
  3977. class="deleteImg"
  3978. src="../../assets/deleteworks.png"
  3979. v-if="w.userid == userid || tType == 1 || tType == 4"
  3980. @click.stop="deleteWorks(w.wid)"
  3981. alt
  3982. />
  3983. </div>
  3984. <div class="workImg" v-if="w.type == 3">
  3985. <img
  3986. style="cursor: pointer"
  3987. :src="video"
  3988. @click="openVideo(w)"
  3989. alt
  3990. />
  3991. <!-- @click="openVideo(w.works)" -->
  3992. <div
  3993. class="answerScore"
  3994. v-if="w.score"
  3995. @click.stop="openScore(w)"
  3996. :class="{
  3997. rightW:
  3998. w.userid == userid ||
  3999. tType == 1 ||
  4000. tType == 4 ||
  4001. w.ateacher == userid,
  4002. }"
  4003. >
  4004. {{ JSON.parse(w.score).wScore }}分
  4005. </div>
  4006. <div
  4007. class="answerScore"
  4008. @click.stop="openScore(w)"
  4009. v-else-if="courseDetail.userid == userid"
  4010. :class="{
  4011. rightW:
  4012. w.userid == userid ||
  4013. tType == 1 ||
  4014. tType == 4 ||
  4015. w.ateacher == userid,
  4016. }"
  4017. >
  4018. 评分
  4019. </div>
  4020. <img
  4021. class="deleteImg"
  4022. src="../../assets/deleteworks.png"
  4023. v-if="w.userid == userid || tType == 1 || tType == 4"
  4024. @click.stop="deleteWorks(w.wid)"
  4025. alt
  4026. />
  4027. </div>
  4028. <div class="workImg" v-if="w.type == 12">
  4029. <img
  4030. style="cursor: pointer"
  4031. :src="word2"
  4032. @click="downloadFile(w.works)"
  4033. alt
  4034. />
  4035. <!-- @click="openVideo(w.works)" -->
  4036. <div
  4037. class="answerScore"
  4038. v-if="w.score"
  4039. @click.stop="openScore(w)"
  4040. :class="{
  4041. rightW:
  4042. w.userid == userid ||
  4043. tType == 1 ||
  4044. tType == 4 ||
  4045. w.ateacher == userid,
  4046. }"
  4047. >
  4048. {{ JSON.parse(w.score).wScore }}分
  4049. </div>
  4050. <div
  4051. class="answerScore"
  4052. @click.stop="openScore(w)"
  4053. v-else-if="courseDetail.userid == userid"
  4054. :class="{
  4055. rightW:
  4056. w.userid == userid ||
  4057. tType == 1 ||
  4058. tType == 4 ||
  4059. w.ateacher == userid,
  4060. }"
  4061. >
  4062. 评分
  4063. </div>
  4064. <img
  4065. class="deleteImg"
  4066. src="../../assets/deleteworks.png"
  4067. v-if="w.userid == userid || tType == 1 || tType == 4"
  4068. @click.stop="deleteWorks(w.wid)"
  4069. alt
  4070. />
  4071. </div>
  4072. <div class="comment" style="min-width: 200px">
  4073. <div class="worksName">
  4074. <div>{{ w.sName }}</div>
  4075. </div>
  4076. <div class="commentList">
  4077. <div class="commentList">
  4078. <div
  4079. class="commentImg"
  4080. @click="
  4081. isLikes(w.wid, userid, 1, null, w.isLikes)
  4082. "
  4083. >
  4084. <img
  4085. :src="w.isLikes == true ? likes : noLikes"
  4086. alt=""
  4087. />
  4088. </div>
  4089. <div>{{ w.likesCount }}</div>
  4090. </div>
  4091. <div class="commentList" style="margin-right: 15px">
  4092. <div
  4093. class="commentImg"
  4094. @click="commentOther(w, toolIndex, wIndex)"
  4095. >
  4096. <img
  4097. src="../../assets/icon/comment/comment.png"
  4098. alt=""
  4099. />
  4100. </div>
  4101. <div>{{ w.commentCount }}</div>
  4102. </div>
  4103. </div>
  4104. </div>
  4105. </div>
  4106. </div>
  4107. <div class="noWorksS">
  4108. <div
  4109. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4110. :key="sIndex"
  4111. class="noWorksName"
  4112. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4113. :class="{ isWork: s.type == '2' }"
  4114. >
  4115. {{ s.student }}
  4116. </div>
  4117. </div>
  4118. </div>
  4119. <div
  4120. v-if="
  4121. tType &&
  4122. ((tType == 2 && sIsOpen == true) ||
  4123. tType == 1 ||
  4124. tType == 4) &&
  4125. tool.tool.indexOf(32) != -1
  4126. "
  4127. class="worksBox"
  4128. >
  4129. <div
  4130. class="zuoyeYulan"
  4131. v-if="
  4132. worksStudent2.length &&
  4133. worksStudent2[toolIndex].length > 0
  4134. "
  4135. >
  4136. <div class="worksTop">
  4137. <div>作业预览</div>
  4138. <div
  4139. class="corOpen"
  4140. @click="contract(toolIndex)"
  4141. v-if="
  4142. worksStudent2[toolIndex].length > 6 &&
  4143. isCloseList[toolIndex].isClose == 0
  4144. "
  4145. >
  4146. 收缩
  4147. </div>
  4148. <div
  4149. class="corOpen"
  4150. @click="contract(toolIndex)"
  4151. v-if="isCloseList[toolIndex].isClose == 1"
  4152. >
  4153. 展开
  4154. </div>
  4155. </div>
  4156. </div>
  4157. <div
  4158. class="worksDetailBox"
  4159. v-if="
  4160. worksStudent2.length &&
  4161. worksStudent2[toolIndex].length > 0
  4162. "
  4163. >
  4164. <div
  4165. class="works"
  4166. style="
  4167. width: 200px;
  4168. height: 140px;
  4169. margin: 10px 10px 10px 0;
  4170. border-radius: 15px;
  4171. box-shadow: 0 0 6px 1px #dfdada;
  4172. "
  4173. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4174. ? worksStudent2[toolIndex]
  4175. : worksStudent2[toolIndex].slice(0, 6)"
  4176. :key="wIndex"
  4177. :class="w.type == 1 ? 'isTypeOne' : ''"
  4178. >
  4179. <div class="workImg">
  4180. <img :src="word2" @click="downloadFile(w.works)" alt />
  4181. <div
  4182. class="answerScore"
  4183. v-if="w.score"
  4184. @click.stop="openScore(w)"
  4185. :class="{
  4186. rightW:
  4187. w.userid == userid ||
  4188. tType == 1 ||
  4189. tType == 4 ||
  4190. w.ateacher == userid,
  4191. }"
  4192. >
  4193. {{ JSON.parse(w.score).wScore }}分
  4194. </div>
  4195. <div
  4196. class="answerScore"
  4197. @click.stop="openScore(w)"
  4198. v-else-if="courseDetail.userid == userid"
  4199. :class="{
  4200. rightW:
  4201. w.userid == userid ||
  4202. tType == 1 ||
  4203. tType == 4 ||
  4204. w.ateacher == userid,
  4205. }"
  4206. >
  4207. 评分
  4208. </div>
  4209. <img
  4210. class="deleteImg"
  4211. src="../../assets/deleteworks.png"
  4212. v-if="w.userid == userid || tType == 1 || tType == 4"
  4213. @click.stop="deleteWorks(w.wid)"
  4214. alt
  4215. />
  4216. </div>
  4217. <div class="comment" style="min-width: 200px">
  4218. <div class="worksName">
  4219. <div>{{ w.sName }}</div>
  4220. </div>
  4221. <div class="commentList">
  4222. <div class="commentList">
  4223. <div
  4224. class="commentImg"
  4225. @click="
  4226. isLikes(w.wid, userid, 1, null, w.isLikes)
  4227. "
  4228. >
  4229. <img
  4230. :src="w.isLikes == true ? likes : noLikes"
  4231. alt=""
  4232. />
  4233. </div>
  4234. <div>{{ w.likesCount }}</div>
  4235. </div>
  4236. <div class="commentList" style="margin-right: 15px">
  4237. <div
  4238. class="commentImg"
  4239. @click="commentOther(w, toolIndex, wIndex)"
  4240. >
  4241. <img
  4242. src="../../assets/icon/comment/comment.png"
  4243. alt=""
  4244. />
  4245. </div>
  4246. <div>{{ w.commentCount }}</div>
  4247. </div>
  4248. </div>
  4249. </div>
  4250. </div>
  4251. </div>
  4252. <div class="noWorksS">
  4253. <div
  4254. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4255. :key="sIndex"
  4256. class="noWorksName"
  4257. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4258. :class="{ isWork: s.type == '2' }"
  4259. >
  4260. {{ s.student }}
  4261. </div>
  4262. </div>
  4263. </div>
  4264. <div
  4265. v-if="
  4266. tType &&
  4267. ((tType == 2 && sIsOpen == true) ||
  4268. tType == 1 ||
  4269. tType == 4) &&
  4270. tool.tool.indexOf(57) != -1
  4271. "
  4272. class="worksBox"
  4273. >
  4274. <div
  4275. class="zuoyeYulan"
  4276. v-if="
  4277. worksStudent2.length &&
  4278. worksStudent2[toolIndex].length > 0
  4279. "
  4280. >
  4281. <div class="worksTop">
  4282. <div>作业预览</div>
  4283. <div
  4284. class="corOpen"
  4285. @click="contract(toolIndex)"
  4286. v-if="
  4287. worksStudent2[toolIndex].length > 6 &&
  4288. isCloseList[toolIndex].isClose == 0
  4289. "
  4290. >
  4291. 收缩
  4292. </div>
  4293. <div
  4294. class="corOpen"
  4295. @click="contract(toolIndex)"
  4296. v-if="isCloseList[toolIndex].isClose == 1"
  4297. >
  4298. 展开
  4299. </div>
  4300. </div>
  4301. </div>
  4302. <div
  4303. class="worksDetailBox"
  4304. v-if="
  4305. worksStudent2.length &&
  4306. worksStudent2[toolIndex].length > 0
  4307. "
  4308. >
  4309. <div
  4310. class="works"
  4311. style="
  4312. width: 200px;
  4313. height: 140px;
  4314. margin: 10px 10px 10px 0;
  4315. border-radius: 15px;
  4316. box-shadow: 0 0 6px 1px #dfdada;
  4317. "
  4318. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4319. ? worksStudent2[toolIndex]
  4320. : worksStudent2[toolIndex].slice(0, 6)"
  4321. :key="wIndex"
  4322. :class="w.type == 1 ? 'isTypeOne' : ''"
  4323. >
  4324. <div class="workImg">
  4325. <img
  4326. :src="word2"
  4327. @click="downloadFile(w.works)"
  4328. v-if="w.type == 12"
  4329. alt
  4330. />
  4331. <img
  4332. :src="word2"
  4333. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  4334. v-else-if="w.type == 15"
  4335. alt
  4336. />
  4337. <div
  4338. class="answerScore"
  4339. v-if="w.score"
  4340. @click.stop="openScore(w)"
  4341. :class="{
  4342. rightW:
  4343. w.userid == userid ||
  4344. tType == 1 ||
  4345. tType == 4 ||
  4346. w.ateacher == userid,
  4347. }"
  4348. >
  4349. {{ JSON.parse(w.score).wScore }}分
  4350. </div>
  4351. <div
  4352. class="answerScore"
  4353. @click.stop="openScore(w)"
  4354. v-else-if="courseDetail.userid == userid"
  4355. :class="{
  4356. rightW:
  4357. w.userid == userid ||
  4358. tType == 1 ||
  4359. tType == 4 ||
  4360. w.ateacher == userid,
  4361. }"
  4362. >
  4363. 评分
  4364. </div>
  4365. <img
  4366. class="deleteImg"
  4367. src="../../assets/deleteworks.png"
  4368. v-if="w.userid == userid || tType == 1 || tType == 4"
  4369. @click.stop="deleteWorks(w.wid)"
  4370. alt
  4371. />
  4372. </div>
  4373. <div class="comment" style="min-width: 200px">
  4374. <div class="worksName">
  4375. <div>{{ w.sName }}</div>
  4376. </div>
  4377. <div class="commentList">
  4378. <div class="commentList">
  4379. <div
  4380. class="commentImg"
  4381. @click="
  4382. isLikes(w.wid, userid, 1, null, w.isLikes)
  4383. "
  4384. >
  4385. <img
  4386. :src="w.isLikes == true ? likes : noLikes"
  4387. alt=""
  4388. />
  4389. </div>
  4390. <div>{{ w.likesCount }}</div>
  4391. </div>
  4392. <div class="commentList" style="margin-right: 15px">
  4393. <div
  4394. class="commentImg"
  4395. @click="commentOther(w, toolIndex, wIndex)"
  4396. >
  4397. <img
  4398. src="../../assets/icon/comment/comment.png"
  4399. alt=""
  4400. />
  4401. </div>
  4402. <div>{{ w.commentCount }}</div>
  4403. </div>
  4404. </div>
  4405. </div>
  4406. </div>
  4407. </div>
  4408. <div class="noWorksS">
  4409. <div
  4410. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4411. :key="sIndex"
  4412. class="noWorksName"
  4413. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4414. :class="{ isWork: s.type == '2' }"
  4415. >
  4416. {{ s.student }}
  4417. </div>
  4418. </div>
  4419. </div>
  4420. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4421. <div
  4422. class="zuoyeYulan"
  4423. v-if="
  4424. worksStudent2.length &&
  4425. worksStudent2[toolIndex].length > 0
  4426. "
  4427. >
  4428. <span>作业预览</span>
  4429. <div
  4430. class="corOpen"
  4431. @click="contract(toolIndex)"
  4432. v-if="
  4433. worksStudent2[toolIndex].length > 6 &&
  4434. isCloseList[toolIndex].isClose == 0
  4435. "
  4436. >
  4437. 收缩
  4438. </div>
  4439. <div
  4440. class="corOpen"
  4441. @click="contract(toolIndex)"
  4442. v-if="isCloseList[toolIndex].isClose == 1"
  4443. >
  4444. 展开
  4445. </div>
  4446. </div>
  4447. <div
  4448. class="worksDetailBox"
  4449. v-if="
  4450. worksStudent2.length &&
  4451. worksStudent2[toolIndex].length > 0
  4452. "
  4453. >
  4454. <div
  4455. class="works"
  4456. style="
  4457. width: 200px;
  4458. height: 140px;
  4459. margin: 10px 10px 10px 0;
  4460. border-radius: 15px;
  4461. box-shadow: 0 0 6px 1px #dfdada;
  4462. "
  4463. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4464. ? worksStudent2[toolIndex]
  4465. : worksStudent2[toolIndex].slice(0, 6)"
  4466. :key="wIndex"
  4467. :class="w.type == 1 ? 'isTypeOne' : ''"
  4468. >
  4469. <div class="workImg" v-if="w.type == 0">
  4470. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4471. <img :src="w.works" @click="previewImg(w.works)" alt />
  4472. <div
  4473. class="answerScore"
  4474. v-if="w.score"
  4475. @click.stop="openScore(w)"
  4476. :class="{
  4477. rightW:
  4478. w.userid == userid ||
  4479. tType == 1 ||
  4480. tType == 4 ||
  4481. w.ateacher == userid,
  4482. }"
  4483. >
  4484. {{ JSON.parse(w.score).wScore }}分
  4485. </div>
  4486. <div
  4487. class="answerScore"
  4488. @click.stop="openScore(w)"
  4489. v-else-if="courseDetail.userid == userid"
  4490. :class="{
  4491. rightW:
  4492. w.userid == userid ||
  4493. tType == 1 ||
  4494. tType == 4 ||
  4495. w.ateacher == userid,
  4496. }"
  4497. >
  4498. 评分
  4499. </div>
  4500. <img
  4501. class="deleteImg"
  4502. src="../../assets/deleteworks.png"
  4503. v-if="w.userid == userid || tType == 1 || tType == 4"
  4504. @click.stop="deleteWorks(w.wid)"
  4505. alt
  4506. />
  4507. </div>
  4508. <div
  4509. class="workImg"
  4510. style="cursor: pointer"
  4511. v-if="w.type == 1"
  4512. >
  4513. <img :src="word" @click="openFile(w.works)" alt />
  4514. <!-- @click="openFile(w.works)" -->
  4515. <div
  4516. class="answerScore"
  4517. v-if="w.score"
  4518. @click.stop="openScore(w)"
  4519. :class="{
  4520. rightW:
  4521. w.userid == userid ||
  4522. tType == 1 ||
  4523. tType == 4 ||
  4524. w.ateacher == userid,
  4525. }"
  4526. >
  4527. {{ JSON.parse(w.score).wScore }}分
  4528. </div>
  4529. <div
  4530. class="answerScore"
  4531. @click.stop="openScore(w)"
  4532. v-else-if="courseDetail.userid == userid"
  4533. :class="{
  4534. rightW:
  4535. w.userid == userid ||
  4536. tType == 1 ||
  4537. tType == 4 ||
  4538. w.ateacher == userid,
  4539. }"
  4540. >
  4541. 评分
  4542. </div>
  4543. <img
  4544. class="deleteImg"
  4545. src="../../assets/deleteworks.png"
  4546. v-if="w.userid == userid || tType == 1 || tType == 4"
  4547. @click.stop="deleteWorks(w.wid)"
  4548. alt
  4549. />
  4550. </div>
  4551. <div class="workImg" v-if="w.type == 3">
  4552. <img
  4553. style="cursor: pointer"
  4554. :src="video"
  4555. @click="openVideo(w)"
  4556. alt
  4557. />
  4558. <!-- @click="openVideo(w.works)" -->
  4559. <div
  4560. class="answerScore"
  4561. v-if="w.score"
  4562. @click.stop="openScore(w)"
  4563. :class="{
  4564. rightW:
  4565. w.userid == userid ||
  4566. tType == 1 ||
  4567. tType == 4 ||
  4568. w.ateacher == userid,
  4569. }"
  4570. >
  4571. {{ JSON.parse(w.score).wScore }}分
  4572. </div>
  4573. <div
  4574. class="answerScore"
  4575. @click.stop="openScore(w)"
  4576. v-else-if="courseDetail.userid == userid"
  4577. :class="{
  4578. rightW:
  4579. w.userid == userid ||
  4580. tType == 1 ||
  4581. tType == 4 ||
  4582. w.ateacher == userid,
  4583. }"
  4584. >
  4585. 评分
  4586. </div>
  4587. <img
  4588. class="deleteImg"
  4589. src="../../assets/deleteworks.png"
  4590. v-if="w.userid == userid || tType == 1 || tType == 4"
  4591. @click.stop="deleteWorks(w.wid)"
  4592. alt
  4593. />
  4594. </div>
  4595. <div class="comment" style="min-width: 200px">
  4596. <div class="worksName">
  4597. <div
  4598. style="cursor: pointer"
  4599. @click="
  4600. openSname(w.sName, w.wid, toolIndex, w.userid)
  4601. "
  4602. >
  4603. {{ w.sName }}
  4604. </div>
  4605. </div>
  4606. <div class="commentList">
  4607. <div class="commentList">
  4608. <div
  4609. class="commentImg"
  4610. @click="
  4611. isLikes(w.wid, userid, 1, null, w.isLikes)
  4612. "
  4613. >
  4614. <img
  4615. :src="w.isLikes == true ? likes : noLikes"
  4616. alt=""
  4617. />
  4618. </div>
  4619. <div>{{ w.likesCount }}</div>
  4620. </div>
  4621. <div class="commentList" style="margin-right: 15px">
  4622. <div
  4623. class="commentImg"
  4624. @click="commentOther(w, toolIndex, wIndex)"
  4625. >
  4626. <img
  4627. src="../../assets/icon/comment/comment.png"
  4628. alt=""
  4629. />
  4630. </div>
  4631. <div>{{ w.commentCount }}</div>
  4632. </div>
  4633. </div>
  4634. </div>
  4635. </div>
  4636. </div>
  4637. <div class="noWorksS">
  4638. <div
  4639. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4640. :key="sIndex"
  4641. class="noWorksName"
  4642. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4643. :class="{ isWork: s.type == '2' }"
  4644. >
  4645. {{ s.student }}
  4646. </div>
  4647. </div>
  4648. </div>
  4649. <div
  4650. v-if="
  4651. tType &&
  4652. ((tType == 2 && sIsOpen == true) ||
  4653. tType == 1 ||
  4654. tType == 4) &&
  4655. tool.tool.indexOf(4) != -1
  4656. "
  4657. class="worksBox"
  4658. >
  4659. <div
  4660. class="zuoyeYulan"
  4661. v-if="
  4662. worksStudent2.length &&
  4663. worksStudent2[toolIndex].length > 0
  4664. "
  4665. >
  4666. <div class="worksTop">
  4667. <div>作业预览</div>
  4668. <div
  4669. class="corOpen"
  4670. @click="contract(toolIndex)"
  4671. v-if="
  4672. worksStudent2[toolIndex].length > 6 &&
  4673. isCloseList[toolIndex].isClose == 0
  4674. "
  4675. >
  4676. 收缩
  4677. </div>
  4678. <div
  4679. class="corOpen"
  4680. @click="contract(toolIndex)"
  4681. v-if="isCloseList[toolIndex].isClose == 1"
  4682. >
  4683. 展开
  4684. </div>
  4685. </div>
  4686. </div>
  4687. <div>
  4688. <div
  4689. class="worksDetailBox"
  4690. v-if="
  4691. worksStudent2.length &&
  4692. worksStudent2[toolIndex].length > 0
  4693. "
  4694. >
  4695. <div
  4696. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4697. 0
  4698. ? worksStudent2[toolIndex]
  4699. : worksStudent2[toolIndex].slice(0, 6)"
  4700. :key="wIndex"
  4701. class="isWorksName"
  4702. @click="
  4703. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4704. "
  4705. >
  4706. {{ w.sName }}
  4707. <img
  4708. class="deleteImg deleteImg2"
  4709. src="../../assets/deleteworks.png"
  4710. v-if="w.userid == userid || tType == 1 || tType == 4"
  4711. @click.stop="deleteWorks(w.wid)"
  4712. alt
  4713. />
  4714. </div>
  4715. </div>
  4716. </div>
  4717. <div class="noWorksS">
  4718. <div
  4719. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4720. :key="sIndex"
  4721. class="noWorksName"
  4722. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4723. :class="{ isWork: s.type == '2' }"
  4724. >
  4725. {{ s.student }}
  4726. </div>
  4727. </div>
  4728. </div>
  4729. <div
  4730. v-if="
  4731. tType &&
  4732. ((tType == 2 && sIsOpen == true) ||
  4733. tType == 1 ||
  4734. tType == 4) &&
  4735. tool.tool.indexOf(45) != -1
  4736. "
  4737. class="worksBox"
  4738. >
  4739. <div
  4740. class="zuoyeYulan"
  4741. v-if="
  4742. worksStudent2.length &&
  4743. worksStudent2[toolIndex].length > 0
  4744. "
  4745. >
  4746. <div class="worksTop">
  4747. <div>作业预览</div>
  4748. <div
  4749. class="corOpen"
  4750. @click="contract(toolIndex)"
  4751. v-if="
  4752. worksStudent2[toolIndex].length > 6 &&
  4753. isCloseList[toolIndex].isClose == 0
  4754. "
  4755. >
  4756. 收缩
  4757. </div>
  4758. <div
  4759. class="corOpen"
  4760. @click="contract(toolIndex)"
  4761. v-if="isCloseList[toolIndex].isClose == 1"
  4762. >
  4763. 展开
  4764. </div>
  4765. </div>
  4766. </div>
  4767. <div>
  4768. <div
  4769. class="worksDetailBox"
  4770. v-if="
  4771. worksStudent2.length &&
  4772. worksStudent2[toolIndex].length > 0
  4773. "
  4774. >
  4775. <div
  4776. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4777. 0
  4778. ? worksStudent2[toolIndex]
  4779. : worksStudent2[toolIndex].slice(0, 6)"
  4780. :key="wIndex"
  4781. class="isWorksName"
  4782. @click="
  4783. openTools(45, toolIndex, taskCount, w.works, w.sName)
  4784. "
  4785. >
  4786. {{ w.sName }}
  4787. <img
  4788. class="deleteImg deleteImg2"
  4789. src="../../assets/deleteworks.png"
  4790. v-if="w.userid == userid || tType == 1 || tType == 4"
  4791. @click.stop="deleteWorks(w.wid)"
  4792. alt
  4793. />
  4794. </div>
  4795. </div>
  4796. </div>
  4797. <div class="noWorksS">
  4798. <div
  4799. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4800. :key="sIndex"
  4801. class="noWorksName"
  4802. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4803. :class="{ isWork: s.type == '2' }"
  4804. >
  4805. {{ s.student }}
  4806. </div>
  4807. </div>
  4808. </div>
  4809. <div
  4810. v-if="
  4811. tType &&
  4812. ((tType == 2 && sIsOpen == true) ||
  4813. tType == 1 ||
  4814. tType == 4) &&
  4815. tool.tool.indexOf(15) != -1
  4816. "
  4817. class="worksBox"
  4818. >
  4819. <div
  4820. class="zuoyeYulan"
  4821. v-if="
  4822. worksStudent2.length &&
  4823. worksStudent2[toolIndex].length > 0
  4824. "
  4825. >
  4826. <div class="worksTop">
  4827. <div>作业预览</div>
  4828. <div
  4829. class="corOpen"
  4830. @click="contract(toolIndex)"
  4831. v-if="
  4832. worksStudent2[toolIndex].length > 6 &&
  4833. isCloseList[toolIndex].isClose == 0
  4834. "
  4835. >
  4836. 收缩
  4837. </div>
  4838. <div
  4839. class="corOpen"
  4840. @click="contract(toolIndex)"
  4841. v-if="isCloseList[toolIndex].isClose == 1"
  4842. >
  4843. 展开
  4844. </div>
  4845. </div>
  4846. </div>
  4847. <div
  4848. class="worksDetailBox"
  4849. v-if="
  4850. worksStudent2.length &&
  4851. worksStudent2[toolIndex].length > 0
  4852. "
  4853. >
  4854. <div
  4855. class="works"
  4856. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4857. ? worksStudent2[toolIndex]
  4858. : worksStudent2[toolIndex].slice(0, 6)"
  4859. :key="wIndex"
  4860. >
  4861. <div
  4862. class="workImg"
  4863. style="
  4864. border-radius: 15px;
  4865. box-shadow: #eee 0px 0px 5px 5px;
  4866. "
  4867. >
  4868. <!-- <img
  4869. src="../../assets/icon/works/noImg.png"
  4870. @click="openTools(15, toolIndex, taskCount, w.works)"
  4871. alt=""
  4872. />-->
  4873. <div
  4874. class="answerBg"
  4875. style="border-radius: 15px 15px 0 0"
  4876. @click="commentOther(w, toolIndex, wIndex)"
  4877. >
  4878. <!-- <div>{{ w.sName }}</div> -->
  4879. <div class="answerContent">
  4880. {{ JSON.parse(w.works)[0].answer }}
  4881. </div>
  4882. <div
  4883. class="answerScore"
  4884. v-if="w.score"
  4885. @click.stop="openScore(w)"
  4886. :class="{
  4887. rightW:
  4888. w.userid == userid || tType == 1 || tType == 4,
  4889. }"
  4890. >
  4891. {{ JSON.parse(w.score).wScore }}分
  4892. </div>
  4893. <div
  4894. class="answerScore"
  4895. @click.stop="openScore(w)"
  4896. v-else-if="courseDetail.userid == userid"
  4897. :class="{
  4898. rightW:
  4899. w.userid == userid || tType == 1 || tType == 4,
  4900. }"
  4901. >
  4902. 评分
  4903. </div>
  4904. <img
  4905. class="deleteImg"
  4906. src="../../assets/deleteworks.png"
  4907. v-if="
  4908. w.userid == userid || tType == 1 || tType == 4
  4909. "
  4910. @click.stop="deleteWorks(w.wid)"
  4911. alt
  4912. />
  4913. </div>
  4914. <div class="comment">
  4915. <div class="worksName">
  4916. <div>{{ w.sName }}</div>
  4917. </div>
  4918. <div class="commentList">
  4919. <div
  4920. class="commentImg"
  4921. @click="
  4922. isLikes(w.wid, userid, 1, null, w.isLikes)
  4923. "
  4924. >
  4925. <img
  4926. :src="w.isLikes == true ? likes : noLikes"
  4927. alt=""
  4928. />
  4929. </div>
  4930. <div>{{ w.likesCount }}</div>
  4931. </div>
  4932. <div class="commentList" style="margin-right: 15px">
  4933. <div
  4934. class="commentImg"
  4935. @click="commentOther(w, toolIndex, wIndex)"
  4936. >
  4937. <img
  4938. src="../../assets/icon/comment/comment.png"
  4939. alt=""
  4940. />
  4941. </div>
  4942. <div>{{ w.commentCount }}</div>
  4943. </div>
  4944. </div>
  4945. </div>
  4946. </div>
  4947. </div>
  4948. <div class="noWorksS">
  4949. <div
  4950. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4951. :key="sIndex"
  4952. class="noWorksName"
  4953. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4954. :class="{ isWork: s.type == '2' }"
  4955. >
  4956. {{ s.student }}
  4957. </div>
  4958. </div>
  4959. </div>
  4960. <div
  4961. v-if="
  4962. tType &&
  4963. ((tType == 2 && sIsOpen == true) ||
  4964. tType == 1 ||
  4965. tType == 4) &&
  4966. tool.tool.indexOf(1) != -1
  4967. "
  4968. class="worksBox"
  4969. >
  4970. <div
  4971. class="zuoyeYulan"
  4972. v-if="
  4973. worksStudent2.length &&
  4974. worksStudent2[toolIndex].length > 0
  4975. "
  4976. >
  4977. <div class="worksTop">
  4978. <div>作业预览</div>
  4979. <div
  4980. class="corOpen"
  4981. @click="contract(toolIndex)"
  4982. v-if="
  4983. worksStudent2[toolIndex].length > 6 &&
  4984. isCloseList[toolIndex].isClose == 0
  4985. "
  4986. >
  4987. 收缩
  4988. </div>
  4989. <div
  4990. class="corOpen"
  4991. @click="contract(toolIndex)"
  4992. v-if="isCloseList[toolIndex].isClose == 1"
  4993. >
  4994. 展开
  4995. </div>
  4996. </div>
  4997. </div>
  4998. <div
  4999. class="worksDetailBox"
  5000. v-if="
  5001. worksStudent2.length &&
  5002. worksStudent2[toolIndex].length > 0
  5003. "
  5004. >
  5005. <div
  5006. class="works"
  5007. style="
  5008. width: 200px;
  5009. height: 140px;
  5010. margin: 10px 10px 10px 0;
  5011. border-radius: 15px;
  5012. box-shadow: 0 0 6px 1px #dfdada;
  5013. "
  5014. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5015. ? worksStudent2[toolIndex]
  5016. : worksStudent2[toolIndex].slice(0, 6)"
  5017. :key="wIndex"
  5018. >
  5019. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5020. <div class="workImg">
  5021. <img :src="w.works" @click="previewImg(w.works)" alt />
  5022. <div
  5023. class="answerScore"
  5024. v-if="w.score"
  5025. @click.stop="openScore(w)"
  5026. :class="{
  5027. rightW:
  5028. w.userid == userid || tType == 1 || tType == 4,
  5029. }"
  5030. >
  5031. {{ JSON.parse(w.score).wScore }}分
  5032. </div>
  5033. <div
  5034. class="answerScore"
  5035. @click.stop="openScore(w)"
  5036. v-else-if="courseDetail.userid == userid"
  5037. :class="{
  5038. rightW:
  5039. w.userid == userid || tType == 1 || tType == 4,
  5040. }"
  5041. >
  5042. 评分
  5043. </div>
  5044. <img
  5045. class="deleteImg"
  5046. src="../../assets/deleteworks.png"
  5047. v-if="w.userid == userid || tType == 1 || tType == 4"
  5048. @click.stop="deleteWorks(w.wid)"
  5049. alt
  5050. />
  5051. </div>
  5052. <div class="comment" style="min-width: 200px">
  5053. <div class="worksName">
  5054. <div>{{ w.sName }}</div>
  5055. </div>
  5056. <div class="commentList">
  5057. <div class="commentList">
  5058. <div
  5059. class="commentImg"
  5060. @click="
  5061. isLikes(w.wid, userid, 1, null, w.isLikes)
  5062. "
  5063. >
  5064. <img
  5065. :src="w.isLikes == true ? likes : noLikes"
  5066. alt=""
  5067. />
  5068. </div>
  5069. <div>{{ w.likesCount }}</div>
  5070. </div>
  5071. <div class="commentList" style="margin-right: 15px">
  5072. <div
  5073. class="commentImg"
  5074. @click="commentOther(w, toolIndex, wIndex)"
  5075. >
  5076. <img
  5077. src="../../assets/icon/comment/comment.png"
  5078. alt=""
  5079. />
  5080. </div>
  5081. <div>{{ w.commentCount }}</div>
  5082. </div>
  5083. </div>
  5084. </div>
  5085. </div>
  5086. </div>
  5087. <div class="noWorksS">
  5088. <div
  5089. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5090. :key="sIndex"
  5091. class="noWorksName"
  5092. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5093. :class="{ isWork: s.type == '2' }"
  5094. >
  5095. {{ s.student }}
  5096. </div>
  5097. </div>
  5098. </div>
  5099. <div
  5100. v-if="
  5101. tType &&
  5102. ((tType == 2 && sIsOpen == true) ||
  5103. tType == 1 ||
  5104. tType == 4) &&
  5105. tool.tool.indexOf(3) != -1
  5106. "
  5107. class="worksBox"
  5108. >
  5109. <div
  5110. class="zuoyeYulan"
  5111. v-if="
  5112. worksStudent2.length &&
  5113. worksStudent2[toolIndex].length > 0
  5114. "
  5115. >
  5116. <div class="worksTop">
  5117. <div>作业预览</div>
  5118. <div
  5119. class="corOpen"
  5120. @click="contract(toolIndex)"
  5121. v-if="
  5122. worksStudent2[toolIndex].length > 6 &&
  5123. isCloseList[toolIndex].isClose == 0
  5124. "
  5125. >
  5126. 收缩
  5127. </div>
  5128. <div
  5129. class="corOpen"
  5130. @click="contract(toolIndex)"
  5131. v-if="isCloseList[toolIndex].isClose == 1"
  5132. >
  5133. 展开
  5134. </div>
  5135. </div>
  5136. </div>
  5137. <div
  5138. class="worksDetailBox"
  5139. v-if="
  5140. worksStudent2.length &&
  5141. worksStudent2[toolIndex].length > 0
  5142. "
  5143. >
  5144. <div
  5145. class="works"
  5146. style="
  5147. width: 200px;
  5148. height: 140px;
  5149. margin: 10px 10px 10px 0;
  5150. border-radius: 15px;
  5151. box-shadow: 0 0 6px 1px #dfdada;
  5152. "
  5153. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5154. ? worksStudent2[toolIndex]
  5155. : worksStudent2[toolIndex].slice(0, 6)"
  5156. :key="wIndex"
  5157. >
  5158. <!-- @click="previewImg(w.works)" -->
  5159. <div class="workImg">
  5160. <img :src="w.works" @click="previewImg(w.works)" alt />
  5161. <div
  5162. class="answerScore"
  5163. v-if="w.score"
  5164. @click.stop="openScore(w)"
  5165. :class="{
  5166. rightW:
  5167. w.userid == userid || tType == 1 || tType == 4,
  5168. }"
  5169. >
  5170. {{ JSON.parse(w.score).wScore }}分
  5171. </div>
  5172. <div
  5173. class="answerScore"
  5174. @click.stop="openScore(w)"
  5175. v-else-if="courseDetail.userid == userid"
  5176. :class="{
  5177. rightW:
  5178. w.userid == userid || tType == 1 || tType == 4,
  5179. }"
  5180. >
  5181. 评分
  5182. </div>
  5183. <img
  5184. class="deleteImg"
  5185. src="../../assets/deleteworks.png"
  5186. v-if="w.userid == userid || tType == 1 || tType == 4"
  5187. @click.stop="deleteWorks(w.wid)"
  5188. alt
  5189. />
  5190. </div>
  5191. <div class="comment" style="min-width: 200px">
  5192. <div class="worksName">
  5193. <div>{{ w.sName }}</div>
  5194. </div>
  5195. <div class="commentList">
  5196. <div class="commentList">
  5197. <div
  5198. class="commentImg"
  5199. @click="
  5200. isLikes(w.wid, userid, 1, null, w.isLikes)
  5201. "
  5202. >
  5203. <img
  5204. :src="w.isLikes == true ? likes : noLikes"
  5205. alt=""
  5206. />
  5207. </div>
  5208. <div>{{ w.likesCount }}</div>
  5209. </div>
  5210. <div class="commentList" style="margin-right: 15px">
  5211. <div
  5212. class="commentImg"
  5213. @click="commentOther(w, toolIndex, wIndex)"
  5214. >
  5215. <img
  5216. src="../../assets/icon/comment/comment.png"
  5217. alt=""
  5218. />
  5219. </div>
  5220. <div>{{ w.commentCount }}</div>
  5221. </div>
  5222. </div>
  5223. </div>
  5224. </div>
  5225. </div>
  5226. <div class="noWorksS">
  5227. <div
  5228. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5229. :key="sIndex"
  5230. class="noWorksName"
  5231. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5232. :class="{ isWork: s.type == '2' }"
  5233. >
  5234. {{ s.student }}
  5235. </div>
  5236. </div>
  5237. </div>
  5238. <div
  5239. v-if="
  5240. tType &&
  5241. ((tType == 2 && sIsOpen == true) ||
  5242. tType == 1 ||
  5243. tType == 4) &&
  5244. tool.tool.indexOf(6) != -1
  5245. "
  5246. class="worksBox"
  5247. >
  5248. <div
  5249. class="zuoyeYulan"
  5250. v-if="
  5251. worksStudent2.length &&
  5252. worksStudent2[toolIndex].length > 0
  5253. "
  5254. >
  5255. <div class="worksTop">
  5256. <div>作业预览</div>
  5257. <div
  5258. class="corOpen"
  5259. @click="contract(toolIndex)"
  5260. v-if="
  5261. worksStudent[toolIndex].length > 6 &&
  5262. isCloseList[toolIndex].isClose == 0
  5263. "
  5264. >
  5265. 收缩
  5266. </div>
  5267. <div
  5268. class="corOpen"
  5269. @click="contract(toolIndex)"
  5270. v-if="isCloseList[toolIndex].isClose == 1"
  5271. >
  5272. 展开
  5273. </div>
  5274. </div>
  5275. </div>
  5276. <div
  5277. class="worksDetailBox"
  5278. v-if="
  5279. worksStudent2.length &&
  5280. worksStudent2[toolIndex].length > 0
  5281. "
  5282. >
  5283. <div
  5284. class="works"
  5285. style="
  5286. width: 200px;
  5287. height: 140px;
  5288. margin: 10px 10px 10px 0;
  5289. border-radius: 15px;
  5290. box-shadow: 0 0 6px 1px #dfdada;
  5291. "
  5292. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5293. ? worksStudent2[toolIndex]
  5294. : worksStudent2[toolIndex].slice(0, 6)"
  5295. :key="wIndex"
  5296. >
  5297. <!-- @click="previewImg(w.works)" -->
  5298. <div class="workImg">
  5299. <img :src="w.works" @click="previewImg(w.works)" alt />
  5300. <div
  5301. class="answerScore"
  5302. v-if="w.score"
  5303. @click.stop="openScore(w)"
  5304. :class="{
  5305. rightW:
  5306. w.userid == userid || tType == 1 || tType == 4,
  5307. }"
  5308. >
  5309. {{ JSON.parse(w.score).wScore }}分
  5310. </div>
  5311. <div
  5312. class="answerScore"
  5313. @click.stop="openScore(w)"
  5314. v-else-if="courseDetail.userid == userid"
  5315. :class="{
  5316. rightW:
  5317. w.userid == userid || tType == 1 || tType == 4,
  5318. }"
  5319. >
  5320. 评分
  5321. </div>
  5322. <img
  5323. class="deleteImg"
  5324. src="../../assets/deleteworks.png"
  5325. v-if="w.userid == userid || tType == 1 || tType == 4"
  5326. @click.stop="deleteWorks(w.wid)"
  5327. alt
  5328. />
  5329. </div>
  5330. <div class="comment" style="min-width: 200px">
  5331. <div class="worksName">
  5332. <div>{{ w.sName }}</div>
  5333. </div>
  5334. <div class="commentList">
  5335. <div class="commentList">
  5336. <div
  5337. class="commentImg"
  5338. @click="
  5339. isLikes(w.wid, userid, 1, null, w.isLikes)
  5340. "
  5341. >
  5342. <img
  5343. :src="w.isLikes == true ? likes : noLikes"
  5344. alt=""
  5345. />
  5346. </div>
  5347. <div>{{ w.likesCount }}</div>
  5348. </div>
  5349. <div class="commentList" style="margin-right: 15px">
  5350. <div
  5351. class="commentImg"
  5352. @click="commentOther(w, toolIndex, wIndex)"
  5353. >
  5354. <img
  5355. src="../../assets/icon/comment/comment.png"
  5356. alt=""
  5357. />
  5358. </div>
  5359. <div>{{ w.commentCount }}</div>
  5360. </div>
  5361. </div>
  5362. </div>
  5363. </div>
  5364. </div>
  5365. <div class="noWorksS">
  5366. <div
  5367. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5368. :key="sIndex"
  5369. class="noWorksName"
  5370. :class="{ isWork: s.type == '2' }"
  5371. >
  5372. {{ s.student }}
  5373. </div>
  5374. </div>
  5375. </div>
  5376. <div
  5377. v-if="
  5378. tType &&
  5379. ((tType == 2 && sIsOpen == true) ||
  5380. tType == 1 ||
  5381. tType == 4) &&
  5382. tool.tool.indexOf(7) != -1
  5383. "
  5384. class="worksBox"
  5385. >
  5386. <div
  5387. class="zuoyeYulan"
  5388. v-if="
  5389. worksStudent2.length &&
  5390. worksStudent2[toolIndex].length > 0
  5391. "
  5392. >
  5393. <div class="worksTop">
  5394. <div>作业预览</div>
  5395. <div
  5396. class="corOpen"
  5397. @click="contract(toolIndex)"
  5398. v-if="
  5399. worksStudent2[toolIndex].length > 6 &&
  5400. isCloseList[toolIndex].isClose == 0
  5401. "
  5402. >
  5403. 收缩
  5404. </div>
  5405. <div
  5406. class="corOpen"
  5407. @click="contract(toolIndex)"
  5408. v-if="isCloseList[toolIndex].isClose == 1"
  5409. >
  5410. 展开
  5411. </div>
  5412. </div>
  5413. </div>
  5414. <div
  5415. class="worksDetailBox"
  5416. v-if="
  5417. worksStudent2.length &&
  5418. worksStudent2[toolIndex].length > 0
  5419. "
  5420. >
  5421. <div
  5422. class="works"
  5423. style="
  5424. width: 200px;
  5425. height: 140px;
  5426. margin: 10px 10px 10px 0;
  5427. border-radius: 15px;
  5428. box-shadow: 0 0 6px 1px #dfdada;
  5429. "
  5430. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5431. ? worksStudent2[toolIndex]
  5432. : worksStudent2[toolIndex].slice(0, 6)"
  5433. :key="wIndex"
  5434. >
  5435. <!-- @click="previewImg(w.works)" -->
  5436. <div class="workImg">
  5437. <img :src="w.works" @click="previewImg(w.works)" alt />
  5438. <div
  5439. class="answerScore"
  5440. v-if="w.score"
  5441. @click.stop="openScore(w)"
  5442. :class="{
  5443. rightW:
  5444. w.userid == userid || tType == 1 || tType == 4,
  5445. }"
  5446. >
  5447. {{ JSON.parse(w.score).wScore }}分
  5448. </div>
  5449. <div
  5450. class="answerScore"
  5451. @click.stop="openScore(w)"
  5452. v-else-if="courseDetail.userid == userid"
  5453. :class="{
  5454. rightW:
  5455. w.userid == userid || tType == 1 || tType == 4,
  5456. }"
  5457. >
  5458. 评分
  5459. </div>
  5460. <img
  5461. class="deleteImg"
  5462. src="../../assets/deleteworks.png"
  5463. v-if="w.userid == userid || tType == 1 || tType == 4"
  5464. @click.stop="deleteWorks(w.wid)"
  5465. alt
  5466. />
  5467. </div>
  5468. <div class="comment" style="min-width: 200px">
  5469. <div class="worksName">
  5470. <div>{{ w.sName }}</div>
  5471. </div>
  5472. <div class="commentList">
  5473. <div class="commentList">
  5474. <div
  5475. class="commentImg"
  5476. @click="
  5477. isLikes(w.wid, userid, 1, null, w.isLikes)
  5478. "
  5479. >
  5480. <img
  5481. :src="w.isLikes == true ? likes : noLikes"
  5482. alt=""
  5483. />
  5484. </div>
  5485. <div>{{ w.likesCount }}</div>
  5486. </div>
  5487. <div class="commentList" style="margin-right: 15px">
  5488. <div
  5489. class="commentImg"
  5490. @click="commentOther(w, toolIndex, wIndex)"
  5491. >
  5492. <img
  5493. src="../../assets/icon/comment/comment.png"
  5494. alt=""
  5495. />
  5496. </div>
  5497. <div>{{ w.commentCount }}</div>
  5498. </div>
  5499. </div>
  5500. </div>
  5501. </div>
  5502. </div>
  5503. <div class="noWorksS">
  5504. <div
  5505. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5506. :key="sIndex"
  5507. class="noWorksName"
  5508. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5509. :class="{ isWork: s.type == '2' }"
  5510. >
  5511. {{ s.student }}
  5512. </div>
  5513. </div>
  5514. </div>
  5515. <div
  5516. v-if="
  5517. tType &&
  5518. ((tType == 2 && sIsOpen == true) ||
  5519. tType == 1 ||
  5520. tType == 4) &&
  5521. tool.tool.indexOf(26) != -1
  5522. "
  5523. class="worksBox"
  5524. >
  5525. <div
  5526. class="zuoyeYulan"
  5527. v-if="
  5528. worksStudent2.length &&
  5529. worksStudent2[toolIndex].length > 0
  5530. "
  5531. >
  5532. <div class="worksTop">
  5533. <div>作业预览</div>
  5534. <div
  5535. class="corOpen"
  5536. @click="contract(toolIndex)"
  5537. v-if="
  5538. worksStudent2[toolIndex].length > 6 &&
  5539. isCloseList[toolIndex].isClose == 0
  5540. "
  5541. >
  5542. 收缩
  5543. </div>
  5544. <div
  5545. class="corOpen"
  5546. @click="contract(toolIndex)"
  5547. v-if="isCloseList[toolIndex].isClose == 1"
  5548. >
  5549. 展开
  5550. </div>
  5551. </div>
  5552. </div>
  5553. <div
  5554. class="worksDetailBox"
  5555. v-if="
  5556. worksStudent2.length &&
  5557. worksStudent2[toolIndex].length > 0
  5558. "
  5559. >
  5560. <div
  5561. class="works"
  5562. style="width: 240px; height: 140px; overflow: hidden"
  5563. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5564. ? worksStudent2[toolIndex]
  5565. : worksStudent2[toolIndex].slice(0, 6)"
  5566. :key="wIndex"
  5567. :class="w.type == 1 ? 'isTypeOne' : ''"
  5568. >
  5569. <div class="workImg" v-if="w.type == 0">
  5570. <img :src="w.works" @click="previewImg(w.works)" alt />
  5571. <img
  5572. class="deleteImg"
  5573. src="../../assets/deleteworks.png"
  5574. v-if="w.userid == userid || tType == 1 || tType == 4"
  5575. @click.stop="deleteWorks(w.wid)"
  5576. alt
  5577. />
  5578. </div>
  5579. <div class="workImg" v-if="w.type == 1">
  5580. <img :src="word" @click="openFile(w.works)" alt />
  5581. <img
  5582. class="deleteImg"
  5583. src="../../assets/deleteworks.png"
  5584. v-if="w.userid == userid || tType == 1 || tType == 4"
  5585. @click.stop="deleteWorks(w.wid)"
  5586. alt
  5587. />
  5588. </div>
  5589. <div class="worksName">
  5590. <div>{{ w.sName }}</div>
  5591. </div>
  5592. </div>
  5593. </div>
  5594. <div class="noWorksS">
  5595. <div
  5596. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5597. :key="sIndex"
  5598. class="noWorksName"
  5599. :class="{ isWork: s.type == '2' }"
  5600. >
  5601. {{ s.student }}
  5602. </div>
  5603. </div>
  5604. </div>
  5605. <div
  5606. v-if="
  5607. tType &&
  5608. ((tType == 2 && sIsOpen == true) ||
  5609. tType == 1 ||
  5610. tType == 4) &&
  5611. tool.tool.indexOf(40) != -1
  5612. "
  5613. class="worksBox"
  5614. >
  5615. <div
  5616. class="zuoyeYulan"
  5617. v-if="
  5618. worksStudent2.length &&
  5619. worksStudent2[toolIndex].length > 0
  5620. "
  5621. >
  5622. <div class="worksTop">
  5623. <div>作业预览</div>
  5624. <div
  5625. class="corOpen"
  5626. @click="contract(toolIndex)"
  5627. v-if="
  5628. worksStudent2[toolIndex].length > 6 &&
  5629. isCloseList[toolIndex].isClose == 0
  5630. "
  5631. >
  5632. 收缩
  5633. </div>
  5634. <div
  5635. class="corOpen"
  5636. @click="contract(toolIndex)"
  5637. v-if="isCloseList[toolIndex].isClose == 1"
  5638. >
  5639. 展开
  5640. </div>
  5641. </div>
  5642. </div>
  5643. <div
  5644. class="worksDetailBox"
  5645. v-if="
  5646. worksStudent2.length &&
  5647. worksStudent2[toolIndex].length > 0
  5648. "
  5649. >
  5650. <div
  5651. class="works"
  5652. style="
  5653. width: 200px;
  5654. height: 140px;
  5655. margin: 10px 10px 10px 0;
  5656. border-radius: 15px;
  5657. box-shadow: 0 0 6px 1px #dfdada;
  5658. "
  5659. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5660. ? worksStudent2[toolIndex]
  5661. : worksStudent2[toolIndex].slice(0, 6)"
  5662. :key="wIndex"
  5663. :class="w.type == 1 ? 'isTypeOne' : ''"
  5664. >
  5665. <div class="workImg">
  5666. <img
  5667. src="../../assets/icon/works/noImg.png"
  5668. @click="openPj(w.works, toolIndex)"
  5669. alt
  5670. />
  5671. <img
  5672. class="deleteImg"
  5673. src="../../assets/deleteworks.png"
  5674. v-if="w.userid == userid || tType == 1 || tType == 4"
  5675. @click.stop="deleteWorks(w.wid)"
  5676. alt
  5677. />
  5678. </div>
  5679. <div class="comment" style="min-width: 200px">
  5680. <div class="worksName">
  5681. <div>{{ w.sName }}</div>
  5682. </div>
  5683. <div class="commentList">
  5684. <div class="commentList">
  5685. <div
  5686. class="commentImg"
  5687. @click="
  5688. isLikes(w.wid, userid, 1, null, w.isLikes)
  5689. "
  5690. >
  5691. <img
  5692. :src="w.isLikes == true ? likes : noLikes"
  5693. alt=""
  5694. />
  5695. </div>
  5696. <div>{{ w.likesCount }}</div>
  5697. </div>
  5698. <div class="commentList" style="margin-right: 15px">
  5699. <div
  5700. class="commentImg"
  5701. @click="commentOther(w, toolIndex, wIndex)"
  5702. >
  5703. <img
  5704. src="../../assets/icon/comment/comment.png"
  5705. alt=""
  5706. />
  5707. </div>
  5708. <div>{{ w.commentCount }}</div>
  5709. </div>
  5710. </div>
  5711. </div>
  5712. </div>
  5713. </div>
  5714. <div class="noWorksS">
  5715. <div
  5716. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5717. :key="sIndex"
  5718. class="noWorksName"
  5719. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5720. :class="{ isWork: s.type == '2' }"
  5721. >
  5722. {{ s.student }}
  5723. </div>
  5724. </div>
  5725. </div>
  5726. <div
  5727. v-if="
  5728. tType &&
  5729. ((tType == 2 && sIsOpen == true) ||
  5730. tType == 1 ||
  5731. tType == 4) &&
  5732. tool.tool.indexOf(41) != -1
  5733. "
  5734. class="worksBox"
  5735. >
  5736. <div class="noWorksS">
  5737. <div
  5738. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5739. :key="sIndex"
  5740. class="noWorksName"
  5741. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5742. :class="{ isWork: s.type == '2' }"
  5743. >
  5744. {{ s.student }}
  5745. </div>
  5746. </div>
  5747. <div
  5748. class="zuoyeYulan"
  5749. v-if="
  5750. worksStudent2.length &&
  5751. worksStudent2[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. worksStudent2[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. worksStudent2.length &&
  5779. worksStudent2[toolIndex].length > 0
  5780. "
  5781. >
  5782. <div
  5783. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5784. ? worksStudent2[toolIndex]
  5785. : worksStudent2[toolIndex].slice(0, 6)"
  5786. :key="wIndex"
  5787. class="isWorksName"
  5788. @click="openXz(w, toolIndex)"
  5789. >
  5790. {{ w.sName }}
  5791. <img
  5792. class="deleteImg deleteImg2"
  5793. src="../../assets/deleteworks.png"
  5794. v-if="w.userid == userid || tType == 1 || tType == 4"
  5795. @click.stop="deleteWorks(w.wid)"
  5796. alt
  5797. />
  5798. </div>
  5799. </div>
  5800. </div>
  5801. <div
  5802. v-if="
  5803. tType &&
  5804. ((tType == 2 && sIsOpen == true) ||
  5805. tType == 1 ||
  5806. tType == 4) &&
  5807. tool.tool.indexOf(47) != -1
  5808. "
  5809. class="worksBox"
  5810. >
  5811. <div class="noWorksS">
  5812. <div
  5813. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5814. :key="sIndex"
  5815. class="noWorksName"
  5816. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5817. :class="{ isWork: s.type == '2' }"
  5818. >
  5819. {{ s.student }}
  5820. </div>
  5821. </div>
  5822. <div
  5823. class="zuoyeYulan"
  5824. v-if="
  5825. worksStudent2.length &&
  5826. worksStudent2[toolIndex].length > 0
  5827. "
  5828. >
  5829. <div class="worksTop">
  5830. <div>作业预览</div>
  5831. <div
  5832. class="corOpen"
  5833. @click="contract(toolIndex)"
  5834. v-if="
  5835. worksStudent2[toolIndex].length > 6 &&
  5836. isCloseList[toolIndex].isClose == 0
  5837. "
  5838. >
  5839. 收缩
  5840. </div>
  5841. <div
  5842. class="corOpen"
  5843. @click="contract(toolIndex)"
  5844. v-if="isCloseList[toolIndex].isClose == 1"
  5845. >
  5846. 展开
  5847. </div>
  5848. </div>
  5849. </div>
  5850. <div
  5851. class="worksDetailBox"
  5852. v-if="
  5853. worksStudent2.length &&
  5854. worksStudent2[toolIndex].length > 0
  5855. "
  5856. >
  5857. <!-- @click="openXz(w, toolIndex)" -->
  5858. <div
  5859. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5860. ? worksStudent2[toolIndex]
  5861. : worksStudent2[toolIndex].slice(0, 6)"
  5862. :key="wIndex"
  5863. class="isWorksName"
  5864. @click="openSen(w, toolIndex)"
  5865. >
  5866. {{ w.sName }}
  5867. <img
  5868. class="deleteImg deleteImg2"
  5869. src="../../assets/deleteworks.png"
  5870. v-if="w.userid == userid || tType == 1 || tType == 4"
  5871. @click.stop="deleteWorks(w.wid)"
  5872. alt
  5873. />
  5874. </div>
  5875. </div>
  5876. </div>
  5877. <div
  5878. v-if="
  5879. tType &&
  5880. ((tType == 2 && sIsOpen == true) ||
  5881. tType == 1 ||
  5882. tType == 4) &&
  5883. tool.tool.indexOf(48) != -1
  5884. "
  5885. class="worksBox"
  5886. >
  5887. <div
  5888. class="zuoyeYulan"
  5889. v-if="
  5890. worksStudent2.length &&
  5891. worksStudent2[toolIndex].length > 0
  5892. "
  5893. >
  5894. <div class="worksTop">
  5895. <div>作业预览</div>
  5896. <div
  5897. class="corOpen"
  5898. @click="contract(toolIndex)"
  5899. v-if="
  5900. worksStudent2[toolIndex].length > 6 &&
  5901. isCloseList[toolIndex].isClose == 0
  5902. "
  5903. >
  5904. 收缩
  5905. </div>
  5906. <div
  5907. class="corOpen"
  5908. @click="contract(toolIndex)"
  5909. v-if="isCloseList[toolIndex].isClose == 1"
  5910. >
  5911. 展开
  5912. </div>
  5913. </div>
  5914. </div>
  5915. <div
  5916. class="worksDetailBox"
  5917. v-if="
  5918. worksStudent2.length &&
  5919. worksStudent2[toolIndex].length > 0
  5920. "
  5921. >
  5922. <div
  5923. class="works"
  5924. style="
  5925. width: 200px;
  5926. height: 140px;
  5927. margin: 10px 10px 10px 0;
  5928. border-radius: 15px;
  5929. box-shadow: 0 0 6px 1px #dfdada;
  5930. "
  5931. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5932. ? worksStudent2[toolIndex]
  5933. : worksStudent2[toolIndex].slice(0, 6)"
  5934. :key="wIndex"
  5935. :class="w.type == 1 ? 'isTypeOne' : ''"
  5936. >
  5937. <div class="workImg">
  5938. <img :src="word" @click="openTable(w)" alt />
  5939. <!-- @click="openFile(w.works)" -->
  5940. <div
  5941. class="answerScore"
  5942. v-if="w.score"
  5943. @click.stop="openScore(w)"
  5944. :class="{
  5945. rightW:
  5946. w.userid == userid ||
  5947. tType == 1 ||
  5948. tType == 4 ||
  5949. w.ateacher == userid,
  5950. }"
  5951. >
  5952. {{ JSON.parse(w.score).wScore }}分
  5953. </div>
  5954. <div
  5955. class="answerScore"
  5956. @click.stop="openScore(w)"
  5957. v-else-if="courseDetail.userid == userid"
  5958. :class="{
  5959. rightW:
  5960. w.userid == userid ||
  5961. tType == 1 ||
  5962. tType == 4 ||
  5963. w.ateacher == userid,
  5964. }"
  5965. >
  5966. 评分
  5967. </div>
  5968. <img
  5969. class="deleteImg"
  5970. src="../../assets/deleteworks.png"
  5971. v-if="w.userid == userid || tType == 1 || tType == 4"
  5972. @click.stop="deleteWorks(w.wid)"
  5973. alt
  5974. />
  5975. </div>
  5976. <div class="comment" style="min-width: 200px">
  5977. <div class="worksName">
  5978. <div>{{ w.sName }}</div>
  5979. </div>
  5980. <div class="commentList">
  5981. <div class="commentList">
  5982. <div
  5983. class="commentImg"
  5984. @click="
  5985. isLikes(w.wid, userid, 1, null, w.isLikes)
  5986. "
  5987. >
  5988. <img
  5989. :src="w.isLikes == true ? likes : noLikes"
  5990. alt=""
  5991. />
  5992. </div>
  5993. <div>{{ w.likesCount }}</div>
  5994. </div>
  5995. <div class="commentList" style="margin-right: 15px">
  5996. <div
  5997. class="commentImg"
  5998. @click="commentOther(w, toolIndex, wIndex)"
  5999. >
  6000. <img
  6001. src="../../assets/icon/comment/comment.png"
  6002. alt=""
  6003. />
  6004. </div>
  6005. <div>{{ w.commentCount }}</div>
  6006. </div>
  6007. </div>
  6008. </div>
  6009. </div>
  6010. </div>
  6011. <div class="noWorksS">
  6012. <div
  6013. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6014. :key="sIndex"
  6015. class="noWorksName"
  6016. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6017. :class="{ isWork: s.type == '2' }"
  6018. >
  6019. {{ s.student }}
  6020. </div>
  6021. </div>
  6022. </div>
  6023. <div
  6024. v-if="
  6025. tType &&
  6026. ((tType == 2 && sIsOpen == true) ||
  6027. tType == 1 ||
  6028. tType == 4) &&
  6029. tool.tool.indexOf(52) != -1
  6030. "
  6031. class="worksBox"
  6032. >
  6033. <div
  6034. class="zuoyeYulan"
  6035. v-if="
  6036. worksStudent2.length &&
  6037. worksStudent2[toolIndex].length > 0
  6038. "
  6039. >
  6040. <div class="worksTop">
  6041. <div>作业预览</div>
  6042. <div
  6043. class="corOpen"
  6044. @click="contract(toolIndex)"
  6045. v-if="
  6046. worksStudent2[toolIndex].length > 6 &&
  6047. isCloseList[toolIndex].isClose == 0
  6048. "
  6049. >
  6050. 收缩
  6051. </div>
  6052. <div
  6053. class="corOpen"
  6054. @click="contract(toolIndex)"
  6055. v-if="isCloseList[toolIndex].isClose == 1"
  6056. >
  6057. 展开
  6058. </div>
  6059. </div>
  6060. </div>
  6061. <div
  6062. class="worksDetailBox"
  6063. v-if="
  6064. worksStudent2.length &&
  6065. worksStudent2[toolIndex].length > 0
  6066. "
  6067. >
  6068. <div
  6069. class="works"
  6070. style="
  6071. width: 200px;
  6072. height: 140px;
  6073. margin: 10px 10px 10px 0;
  6074. border-radius: 15px;
  6075. box-shadow: 0 0 6px 1px #dfdada;
  6076. "
  6077. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6078. ? worksStudent2[toolIndex]
  6079. : worksStudent2[toolIndex].slice(0, 6)"
  6080. :key="wIndex"
  6081. :class="w.type == 1 ? 'isTypeOne' : ''"
  6082. >
  6083. <div class="workImg">
  6084. <img :src="word" @click="openWord(w)" alt />
  6085. <!-- @click="openFile(w.works)" -->
  6086. <div
  6087. class="answerScore"
  6088. v-if="w.score"
  6089. @click.stop="openScore(w)"
  6090. :class="{
  6091. rightW:
  6092. w.userid == userid ||
  6093. tType == 1 ||
  6094. tType == 4 ||
  6095. w.ateacher == userid,
  6096. }"
  6097. >
  6098. {{ JSON.parse(w.score).wScore }}分
  6099. </div>
  6100. <div
  6101. class="answerScore"
  6102. @click.stop="openScore(w)"
  6103. v-else-if="courseDetail.userid == userid"
  6104. :class="{
  6105. rightW:
  6106. w.userid == userid ||
  6107. tType == 1 ||
  6108. tType == 4 ||
  6109. w.ateacher == userid,
  6110. }"
  6111. >
  6112. 评分
  6113. </div>
  6114. <img
  6115. class="deleteImg"
  6116. src="../../assets/deleteworks.png"
  6117. v-if="w.userid == userid || tType == 1 || tType == 4"
  6118. @click.stop="deleteWorks(w.wid)"
  6119. alt
  6120. />
  6121. </div>
  6122. <div class="comment" style="min-width: 200px">
  6123. <div class="worksName">
  6124. <div>{{ w.sName }}</div>
  6125. </div>
  6126. <div class="commentList">
  6127. <div class="commentList">
  6128. <div
  6129. class="commentImg"
  6130. @click="
  6131. isLikes(w.wid, userid, 1, null, w.isLikes)
  6132. "
  6133. >
  6134. <img
  6135. :src="w.isLikes == true ? likes : noLikes"
  6136. alt=""
  6137. />
  6138. </div>
  6139. <div>{{ w.likesCount }}</div>
  6140. </div>
  6141. <div class="commentList" style="margin-right: 15px">
  6142. <div
  6143. class="commentImg"
  6144. @click="commentOther(w, toolIndex, wIndex)"
  6145. >
  6146. <img
  6147. src="../../assets/icon/comment/comment.png"
  6148. alt=""
  6149. />
  6150. </div>
  6151. <div>{{ w.commentCount }}</div>
  6152. </div>
  6153. </div>
  6154. </div>
  6155. </div>
  6156. </div>
  6157. <div class="noWorksS">
  6158. <div
  6159. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6160. :key="sIndex"
  6161. class="noWorksName"
  6162. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6163. :class="{ isWork: s.type == '2' }"
  6164. >
  6165. {{ s.student }}
  6166. </div>
  6167. </div>
  6168. </div>
  6169. </div>
  6170. </div>
  6171. <div
  6172. class="vedioBox"
  6173. v-if="
  6174. arrayToArray(tool.tool, isWorkTool).length &&
  6175. (noWorksS[toolIndex].length || worksStudent[toolIndex].length)
  6176. "
  6177. >
  6178. <!-- <div
  6179. class="queTop"
  6180. style="
  6181. font-size: 25px;
  6182. padding: 15px 0 15px 37px;
  6183. font-weight: bold;
  6184. "
  6185. >
  6186. 工作区
  6187. </div> -->
  6188. <div class="tool_work_box">
  6189. <div
  6190. v-if="
  6191. tType &&
  6192. ((tType == 2 && sIsOpen == true) ||
  6193. tType == 1 ||
  6194. tType == 4) &&
  6195. tool.tool.indexOf(16) != -1
  6196. "
  6197. class="worksBox"
  6198. >
  6199. <div
  6200. class="zuoyeYulan"
  6201. v-if="
  6202. worksStudent.length && worksStudent[toolIndex].length > 0
  6203. "
  6204. >
  6205. <div class="worksTop">
  6206. <div>作业预览</div>
  6207. <div
  6208. class="corOpen"
  6209. @click="contract(toolIndex)"
  6210. v-if="
  6211. worksStudent[toolIndex].length > 6 &&
  6212. isCloseList[toolIndex].isClose == 0
  6213. "
  6214. >
  6215. 收缩
  6216. </div>
  6217. <div
  6218. class="corOpen"
  6219. @click="contract(toolIndex)"
  6220. v-if="isCloseList[toolIndex].isClose == 1"
  6221. >
  6222. 展开
  6223. </div>
  6224. </div>
  6225. </div>
  6226. <div
  6227. class="worksDetailBox"
  6228. v-if="
  6229. worksStudent.length && worksStudent[toolIndex].length > 0
  6230. "
  6231. >
  6232. <div
  6233. class="works"
  6234. style="
  6235. width: 200px;
  6236. height: 140px;
  6237. margin: 10px 10px 10px 0;
  6238. border-radius: 15px;
  6239. box-shadow: 0 0 6px 1px #dfdada;
  6240. "
  6241. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6242. ? worksStudent[toolIndex]
  6243. : worksStudent[toolIndex].slice(0, 6)"
  6244. :key="wIndex"
  6245. :class="w.type == 1 ? 'isTypeOne' : ''"
  6246. >
  6247. <div class="workImg" v-if="w.type == 0">
  6248. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6249. <img :src="w.works" @click="previewImg(w.works)" alt />
  6250. <div
  6251. class="answerScore"
  6252. v-if="w.score"
  6253. @click.stop="openScore(w)"
  6254. :class="{
  6255. rightW:
  6256. w.userid == userid ||
  6257. tType == 1 ||
  6258. tType == 4 ||
  6259. w.ateacher == userid,
  6260. }"
  6261. >
  6262. {{ JSON.parse(w.score).wScore }}分
  6263. </div>
  6264. <div
  6265. class="answerScore"
  6266. @click.stop="openScore(w)"
  6267. v-else-if="courseDetail.userid == userid"
  6268. :class="{
  6269. rightW:
  6270. w.userid == userid ||
  6271. tType == 1 ||
  6272. tType == 4 ||
  6273. w.ateacher == userid,
  6274. }"
  6275. >
  6276. 评分
  6277. </div>
  6278. <img
  6279. class="deleteImg"
  6280. src="../../assets/deleteworks.png"
  6281. v-if="w.userid == userid || tType == 1 || tType == 4"
  6282. @click.stop="deleteWorks(w.wid)"
  6283. alt
  6284. />
  6285. </div>
  6286. <div class="workImg" v-if="w.type == 1">
  6287. <img :src="word" @click="openFile(w.works)" alt />
  6288. <!-- @click="openFile(w.works)" -->
  6289. <div
  6290. class="answerScore"
  6291. v-if="w.score"
  6292. @click.stop="openScore(w)"
  6293. :class="{
  6294. rightW:
  6295. w.userid == userid ||
  6296. tType == 1 ||
  6297. tType == 4 ||
  6298. w.ateacher == userid,
  6299. }"
  6300. >
  6301. {{ JSON.parse(w.score).wScore }}分
  6302. </div>
  6303. <div
  6304. class="answerScore"
  6305. @click.stop="openScore(w)"
  6306. v-else-if="courseDetail.userid == userid"
  6307. :class="{
  6308. rightW:
  6309. w.userid == userid ||
  6310. tType == 1 ||
  6311. tType == 4 ||
  6312. w.ateacher == userid,
  6313. }"
  6314. >
  6315. 评分
  6316. </div>
  6317. <img
  6318. class="deleteImg"
  6319. src="../../assets/deleteworks.png"
  6320. v-if="w.userid == userid || tType == 1 || tType == 4"
  6321. @click.stop="deleteWorks(w.wid)"
  6322. alt
  6323. />
  6324. </div>
  6325. <div class="workImg" v-if="w.type == 3">
  6326. <img
  6327. style="cursor: pointer"
  6328. :src="video"
  6329. @click="openVideo(w)"
  6330. alt
  6331. />
  6332. <!-- @click="openVideo(w.works)" -->
  6333. <div
  6334. class="answerScore"
  6335. v-if="w.score"
  6336. @click.stop="openScore(w)"
  6337. :class="{
  6338. rightW:
  6339. w.userid == userid ||
  6340. tType == 1 ||
  6341. tType == 4 ||
  6342. w.ateacher == userid,
  6343. }"
  6344. >
  6345. {{ JSON.parse(w.score).wScore }}分
  6346. </div>
  6347. <div
  6348. class="answerScore"
  6349. @click.stop="openScore(w)"
  6350. v-else-if="courseDetail.userid == userid"
  6351. :class="{
  6352. rightW:
  6353. w.userid == userid ||
  6354. tType == 1 ||
  6355. tType == 4 ||
  6356. w.ateacher == userid,
  6357. }"
  6358. >
  6359. 评分
  6360. </div>
  6361. <img
  6362. class="deleteImg"
  6363. src="../../assets/deleteworks.png"
  6364. v-if="w.userid == userid || tType == 1 || tType == 4"
  6365. @click.stop="deleteWorks(w.wid)"
  6366. alt
  6367. />
  6368. </div>
  6369. <div class="workImg" v-if="w.type == 12">
  6370. <img
  6371. style="cursor: pointer"
  6372. :src="word2"
  6373. @click="downloadFile(w.works)"
  6374. alt
  6375. />
  6376. <!-- @click="openVideo(w.works)" -->
  6377. <div
  6378. class="answerScore"
  6379. v-if="w.score"
  6380. @click.stop="openScore(w)"
  6381. :class="{
  6382. rightW:
  6383. w.userid == userid ||
  6384. tType == 1 ||
  6385. tType == 4 ||
  6386. w.ateacher == userid,
  6387. }"
  6388. >
  6389. {{ JSON.parse(w.score).wScore }}分
  6390. </div>
  6391. <div
  6392. class="answerScore"
  6393. @click.stop="openScore(w)"
  6394. v-else-if="courseDetail.userid == userid"
  6395. :class="{
  6396. rightW:
  6397. w.userid == userid ||
  6398. tType == 1 ||
  6399. tType == 4 ||
  6400. w.ateacher == userid,
  6401. }"
  6402. >
  6403. 评分
  6404. </div>
  6405. <img
  6406. class="deleteImg"
  6407. src="../../assets/deleteworks.png"
  6408. v-if="w.userid == userid || tType == 1 || tType == 4"
  6409. @click.stop="deleteWorks(w.wid)"
  6410. alt
  6411. />
  6412. </div>
  6413. <div class="comment" style="min-width: 200px">
  6414. <div class="worksName">
  6415. <div>{{ w.sName }}</div>
  6416. </div>
  6417. <div class="commentList">
  6418. <div class="commentList">
  6419. <div
  6420. class="commentImg"
  6421. @click="
  6422. isLikes(w.wid, userid, 1, null, w.isLikes)
  6423. "
  6424. >
  6425. <img
  6426. :src="w.isLikes == true ? likes : noLikes"
  6427. alt=""
  6428. />
  6429. </div>
  6430. <div>{{ w.likesCount }}</div>
  6431. </div>
  6432. <div class="commentList" style="margin-right: 15px">
  6433. <div
  6434. class="commentImg"
  6435. @click="commentOther(w, toolIndex, wIndex)"
  6436. >
  6437. <img
  6438. src="../../assets/icon/comment/comment.png"
  6439. alt=""
  6440. />
  6441. </div>
  6442. <div>{{ w.commentCount }}</div>
  6443. </div>
  6444. </div>
  6445. </div>
  6446. </div>
  6447. </div>
  6448. <div class="noWorksS">
  6449. <div
  6450. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6451. :key="sIndex"
  6452. class="noWorksName"
  6453. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  6454. :class="{ isWork: s.type == '2' }"
  6455. >
  6456. {{ s.student }}
  6457. </div>
  6458. </div>
  6459. </div>
  6460. <div
  6461. v-if="
  6462. tType &&
  6463. ((tType == 2 && sIsOpen == true) ||
  6464. tType == 1 ||
  6465. tType == 4) &&
  6466. tool.tool.indexOf(32) != -1
  6467. "
  6468. class="worksBox"
  6469. >
  6470. <div
  6471. class="zuoyeYulan"
  6472. v-if="
  6473. worksStudent.length && worksStudent[toolIndex].length > 0
  6474. "
  6475. >
  6476. <div class="worksTop">
  6477. <div>作业预览</div>
  6478. <div
  6479. class="corOpen"
  6480. @click="contract(toolIndex)"
  6481. v-if="
  6482. worksStudent[toolIndex].length > 6 &&
  6483. isCloseList[toolIndex].isClose == 0
  6484. "
  6485. >
  6486. 收缩
  6487. </div>
  6488. <div
  6489. class="corOpen"
  6490. @click="contract(toolIndex)"
  6491. v-if="isCloseList[toolIndex].isClose == 1"
  6492. >
  6493. 展开
  6494. </div>
  6495. </div>
  6496. </div>
  6497. <div
  6498. class="worksDetailBox"
  6499. v-if="
  6500. worksStudent.length && worksStudent[toolIndex].length > 0
  6501. "
  6502. >
  6503. <div
  6504. class="works"
  6505. style="
  6506. width: 200px;
  6507. height: 140px;
  6508. margin: 10px 10px 10px 0;
  6509. border-radius: 15px;
  6510. box-shadow: 0 0 6px 1px #dfdada;
  6511. "
  6512. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6513. ? worksStudent[toolIndex]
  6514. : worksStudent[toolIndex].slice(0, 6)"
  6515. :key="wIndex"
  6516. :class="w.type == 1 ? 'isTypeOne' : ''"
  6517. >
  6518. <div class="workImg">
  6519. <img :src="word2" @click="downloadFile(w.works)" alt />
  6520. <div
  6521. class="answerScore"
  6522. v-if="w.score"
  6523. @click.stop="openScore(w)"
  6524. :class="{
  6525. rightW:
  6526. w.userid == userid ||
  6527. tType == 1 ||
  6528. tType == 4 ||
  6529. w.ateacher == userid,
  6530. }"
  6531. >
  6532. {{ JSON.parse(w.score).wScore }}分
  6533. </div>
  6534. <div
  6535. class="answerScore"
  6536. @click.stop="openScore(w)"
  6537. v-else-if="courseDetail.userid == userid"
  6538. :class="{
  6539. rightW:
  6540. w.userid == userid ||
  6541. tType == 1 ||
  6542. tType == 4 ||
  6543. w.ateacher == userid,
  6544. }"
  6545. >
  6546. 评分
  6547. </div>
  6548. <img
  6549. class="deleteImg"
  6550. src="../../assets/deleteworks.png"
  6551. v-if="w.userid == userid || tType == 1 || tType == 4"
  6552. @click.stop="deleteWorks(w.wid)"
  6553. alt
  6554. />
  6555. </div>
  6556. <div class="comment" style="min-width: 200px">
  6557. <div class="worksName">
  6558. <div>{{ w.sName }}</div>
  6559. </div>
  6560. <div class="commentList">
  6561. <div class="commentList">
  6562. <div
  6563. class="commentImg"
  6564. @click="
  6565. isLikes(w.wid, userid, 1, null, w.isLikes)
  6566. "
  6567. >
  6568. <img
  6569. :src="w.isLikes == true ? likes : noLikes"
  6570. alt=""
  6571. />
  6572. </div>
  6573. <div>{{ w.likesCount }}</div>
  6574. </div>
  6575. <div class="commentList" style="margin-right: 15px">
  6576. <div
  6577. class="commentImg"
  6578. @click="commentOther(w, toolIndex, wIndex)"
  6579. >
  6580. <img
  6581. src="../../assets/icon/comment/comment.png"
  6582. alt=""
  6583. />
  6584. </div>
  6585. <div>{{ w.commentCount }}</div>
  6586. </div>
  6587. </div>
  6588. </div>
  6589. </div>
  6590. </div>
  6591. <div class="noWorksS">
  6592. <div
  6593. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6594. :key="sIndex"
  6595. class="noWorksName"
  6596. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  6597. :class="{ isWork: s.type == '2' }"
  6598. >
  6599. {{ s.student }}
  6600. </div>
  6601. </div>
  6602. </div>
  6603. <div
  6604. v-if="
  6605. tType &&
  6606. ((tType == 2 && sIsOpen == true) ||
  6607. tType == 1 ||
  6608. tType == 4) &&
  6609. tool.tool.indexOf(57) != -1
  6610. "
  6611. class="worksBox"
  6612. >
  6613. <div
  6614. class="zuoyeYulan"
  6615. v-if="
  6616. worksStudent.length && worksStudent[toolIndex].length > 0
  6617. "
  6618. >
  6619. <div class="worksTop">
  6620. <div>作业预览</div>
  6621. <div
  6622. class="corOpen"
  6623. @click="contract(toolIndex)"
  6624. v-if="
  6625. worksStudent[toolIndex].length > 6 &&
  6626. isCloseList[toolIndex].isClose == 0
  6627. "
  6628. >
  6629. 收缩
  6630. </div>
  6631. <div
  6632. class="corOpen"
  6633. @click="contract(toolIndex)"
  6634. v-if="isCloseList[toolIndex].isClose == 1"
  6635. >
  6636. 展开
  6637. </div>
  6638. </div>
  6639. </div>
  6640. <div
  6641. class="worksDetailBox"
  6642. v-if="
  6643. worksStudent.length && worksStudent[toolIndex].length > 0
  6644. "
  6645. >
  6646. <div
  6647. class="works"
  6648. style="
  6649. width: 200px;
  6650. height: 140px;
  6651. margin: 10px 10px 10px 0;
  6652. border-radius: 15px;
  6653. box-shadow: 0 0 6px 1px #dfdada;
  6654. "
  6655. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6656. ? worksStudent[toolIndex]
  6657. : worksStudent[toolIndex].slice(0, 6)"
  6658. :key="wIndex"
  6659. :class="w.type == 1 ? 'isTypeOne' : ''"
  6660. >
  6661. <div class="workImg">
  6662. <img
  6663. :src="word2"
  6664. @click="downloadFile(w.works)"
  6665. v-if="w.type == 12"
  6666. alt
  6667. />
  6668. <img
  6669. :src="word2"
  6670. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  6671. v-else-if="w.type == 15"
  6672. alt
  6673. />
  6674. <div
  6675. class="answerScore"
  6676. v-if="w.score"
  6677. @click.stop="openScore(w)"
  6678. :class="{
  6679. rightW:
  6680. w.userid == userid ||
  6681. tType == 1 ||
  6682. tType == 4 ||
  6683. w.ateacher == userid,
  6684. }"
  6685. >
  6686. {{ JSON.parse(w.score).wScore }}分
  6687. </div>
  6688. <div
  6689. class="answerScore"
  6690. @click.stop="openScore(w)"
  6691. v-else-if="courseDetail.userid == userid"
  6692. :class="{
  6693. rightW:
  6694. w.userid == userid ||
  6695. tType == 1 ||
  6696. tType == 4 ||
  6697. w.ateacher == userid,
  6698. }"
  6699. >
  6700. 评分
  6701. </div>
  6702. <img
  6703. class="deleteImg"
  6704. src="../../assets/deleteworks.png"
  6705. v-if="w.userid == userid || tType == 1 || tType == 4"
  6706. @click.stop="deleteWorks(w.wid)"
  6707. alt
  6708. />
  6709. </div>
  6710. <div class="comment" style="min-width: 200px">
  6711. <div class="worksName">
  6712. <div>{{ w.sName }}</div>
  6713. </div>
  6714. <div class="commentList">
  6715. <div class="commentList">
  6716. <div
  6717. class="commentImg"
  6718. @click="
  6719. isLikes(w.wid, userid, 1, null, w.isLikes)
  6720. "
  6721. >
  6722. <img
  6723. :src="w.isLikes == true ? likes : noLikes"
  6724. alt=""
  6725. />
  6726. </div>
  6727. <div>{{ w.likesCount }}</div>
  6728. </div>
  6729. <div class="commentList" style="margin-right: 15px">
  6730. <div
  6731. class="commentImg"
  6732. @click="commentOther(w, toolIndex, wIndex)"
  6733. >
  6734. <img
  6735. src="../../assets/icon/comment/comment.png"
  6736. alt=""
  6737. />
  6738. </div>
  6739. <div>{{ w.commentCount }}</div>
  6740. </div>
  6741. </div>
  6742. </div>
  6743. </div>
  6744. </div>
  6745. <div class="noWorksS">
  6746. <div
  6747. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6748. :key="sIndex"
  6749. class="noWorksName"
  6750. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  6751. :class="{ isWork: s.type == '2' }"
  6752. >
  6753. {{ s.student }}
  6754. </div>
  6755. </div>
  6756. </div>
  6757. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  6758. <div
  6759. class="zuoyeYulan"
  6760. v-if="
  6761. worksStudent.length && worksStudent[toolIndex].length > 0
  6762. "
  6763. >
  6764. <span>作业预览</span>
  6765. <div
  6766. class="corOpen"
  6767. @click="contract(toolIndex)"
  6768. v-if="
  6769. worksStudent[toolIndex].length > 6 &&
  6770. isCloseList[toolIndex].isClose == 0
  6771. "
  6772. >
  6773. 收缩
  6774. </div>
  6775. <div
  6776. class="corOpen"
  6777. @click="contract(toolIndex)"
  6778. v-if="isCloseList[toolIndex].isClose == 1"
  6779. >
  6780. 展开
  6781. </div>
  6782. </div>
  6783. <div
  6784. class="worksDetailBox"
  6785. v-if="
  6786. worksStudent.length && worksStudent[toolIndex].length > 0
  6787. "
  6788. >
  6789. <div
  6790. class="works"
  6791. style="
  6792. width: 200px;
  6793. height: 140px;
  6794. margin: 10px 10px 10px 0;
  6795. border-radius: 15px;
  6796. box-shadow: 0 0 6px 1px #dfdada;
  6797. "
  6798. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6799. ? worksStudent[toolIndex]
  6800. : worksStudent[toolIndex].slice(0, 6)"
  6801. :key="wIndex"
  6802. :class="w.type == 1 ? 'isTypeOne' : ''"
  6803. >
  6804. <div class="workImg" v-if="w.type == 0">
  6805. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6806. <img :src="w.works" @click="previewImg(w.works)" alt />
  6807. <div
  6808. class="answerScore"
  6809. v-if="w.score"
  6810. @click.stop="openScore(w)"
  6811. :class="{
  6812. rightW:
  6813. w.userid == userid ||
  6814. tType == 1 ||
  6815. tType == 4 ||
  6816. w.ateacher == userid,
  6817. }"
  6818. >
  6819. {{ JSON.parse(w.score).wScore }}分
  6820. </div>
  6821. <div
  6822. class="answerScore"
  6823. @click.stop="openScore(w)"
  6824. v-else-if="courseDetail.userid == userid"
  6825. :class="{
  6826. rightW:
  6827. w.userid == userid ||
  6828. tType == 1 ||
  6829. tType == 4 ||
  6830. w.ateacher == userid,
  6831. }"
  6832. >
  6833. 评分
  6834. </div>
  6835. <img
  6836. class="deleteImg"
  6837. src="../../assets/deleteworks.png"
  6838. v-if="w.userid == userid || tType == 1 || tType == 4"
  6839. @click.stop="deleteWorks(w.wid)"
  6840. alt
  6841. />
  6842. </div>
  6843. <div
  6844. class="workImg"
  6845. style="cursor: pointer"
  6846. v-if="w.type == 1"
  6847. >
  6848. <img :src="word" @click="openFile(w.works)" alt />
  6849. <!-- @click="openFile(w.works)" -->
  6850. <div
  6851. class="answerScore"
  6852. v-if="w.score"
  6853. @click.stop="openScore(w)"
  6854. :class="{
  6855. rightW:
  6856. w.userid == userid ||
  6857. tType == 1 ||
  6858. tType == 4 ||
  6859. w.ateacher == userid,
  6860. }"
  6861. >
  6862. {{ JSON.parse(w.score).wScore }}分
  6863. </div>
  6864. <div
  6865. class="answerScore"
  6866. @click.stop="openScore(w)"
  6867. v-else-if="courseDetail.userid == userid"
  6868. :class="{
  6869. rightW:
  6870. w.userid == userid ||
  6871. tType == 1 ||
  6872. tType == 4 ||
  6873. w.ateacher == userid,
  6874. }"
  6875. >
  6876. 评分
  6877. </div>
  6878. <img
  6879. class="deleteImg"
  6880. src="../../assets/deleteworks.png"
  6881. v-if="w.userid == userid || tType == 1 || tType == 4"
  6882. @click.stop="deleteWorks(w.wid)"
  6883. alt
  6884. />
  6885. </div>
  6886. <div class="workImg" v-if="w.type == 3">
  6887. <img
  6888. style="cursor: pointer"
  6889. :src="video"
  6890. @click="openVideo(w)"
  6891. alt
  6892. />
  6893. <!-- @click="openVideo(w.works)" -->
  6894. <div
  6895. class="answerScore"
  6896. v-if="w.score"
  6897. @click.stop="openScore(w)"
  6898. :class="{
  6899. rightW:
  6900. w.userid == userid ||
  6901. tType == 1 ||
  6902. tType == 4 ||
  6903. w.ateacher == userid,
  6904. }"
  6905. >
  6906. {{ JSON.parse(w.score).wScore }}分
  6907. </div>
  6908. <div
  6909. class="answerScore"
  6910. @click.stop="openScore(w)"
  6911. v-else-if="courseDetail.userid == userid"
  6912. :class="{
  6913. rightW:
  6914. w.userid == userid ||
  6915. tType == 1 ||
  6916. tType == 4 ||
  6917. w.ateacher == userid,
  6918. }"
  6919. >
  6920. 评分
  6921. </div>
  6922. <img
  6923. class="deleteImg"
  6924. src="../../assets/deleteworks.png"
  6925. v-if="w.userid == userid || tType == 1 || tType == 4"
  6926. @click.stop="deleteWorks(w.wid)"
  6927. alt
  6928. />
  6929. </div>
  6930. <div class="comment" style="min-width: 200px">
  6931. <div class="worksName">
  6932. <div
  6933. style="cursor: pointer"
  6934. @click="
  6935. openSname(w.sName, w.wid, toolIndex, w.userid)
  6936. "
  6937. >
  6938. {{ w.sName }}
  6939. </div>
  6940. </div>
  6941. <div class="commentList">
  6942. <div class="commentList">
  6943. <div
  6944. class="commentImg"
  6945. @click="
  6946. isLikes(w.wid, userid, 1, null, w.isLikes)
  6947. "
  6948. >
  6949. <img
  6950. :src="w.isLikes == true ? likes : noLikes"
  6951. alt=""
  6952. />
  6953. </div>
  6954. <div>{{ w.likesCount }}</div>
  6955. </div>
  6956. <div class="commentList" style="margin-right: 15px">
  6957. <div
  6958. class="commentImg"
  6959. @click="commentOther(w, toolIndex, wIndex)"
  6960. >
  6961. <img
  6962. src="../../assets/icon/comment/comment.png"
  6963. alt=""
  6964. />
  6965. </div>
  6966. <div>{{ w.commentCount }}</div>
  6967. </div>
  6968. </div>
  6969. </div>
  6970. </div>
  6971. </div>
  6972. <div class="noWorksS">
  6973. <div
  6974. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6975. :key="sIndex"
  6976. class="noWorksName"
  6977. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  6978. :class="{ isWork: s.type == '2' }"
  6979. >
  6980. {{ s.student }}
  6981. </div>
  6982. </div>
  6983. </div>
  6984. <div
  6985. v-if="
  6986. tType &&
  6987. ((tType == 2 && sIsOpen == true) ||
  6988. tType == 1 ||
  6989. tType == 4) &&
  6990. tool.tool.indexOf(4) != -1
  6991. "
  6992. class="worksBox"
  6993. >
  6994. <div
  6995. class="zuoyeYulan"
  6996. v-if="
  6997. worksStudent.length && worksStudent[toolIndex].length > 0
  6998. "
  6999. >
  7000. <div class="worksTop">
  7001. <div>作业预览</div>
  7002. <div
  7003. class="corOpen"
  7004. @click="contract(toolIndex)"
  7005. v-if="
  7006. worksStudent[toolIndex].length > 6 &&
  7007. isCloseList[toolIndex].isClose == 0
  7008. "
  7009. >
  7010. 收缩
  7011. </div>
  7012. <div
  7013. class="corOpen"
  7014. @click="contract(toolIndex)"
  7015. v-if="isCloseList[toolIndex].isClose == 1"
  7016. >
  7017. 展开
  7018. </div>
  7019. </div>
  7020. </div>
  7021. <div>
  7022. <div
  7023. class="worksDetailBox"
  7024. v-if="
  7025. worksStudent.length &&
  7026. worksStudent[toolIndex].length > 0
  7027. "
  7028. >
  7029. <div
  7030. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  7031. 0
  7032. ? worksStudent[toolIndex]
  7033. : worksStudent[toolIndex].slice(0, 6)"
  7034. :key="wIndex"
  7035. class="isWorksName"
  7036. @click="
  7037. openTools(4, toolIndex, taskCount, w.works, w.sName)
  7038. "
  7039. >
  7040. {{ w.sName }}
  7041. <img
  7042. class="deleteImg deleteImg2"
  7043. src="../../assets/deleteworks.png"
  7044. v-if="w.userid == userid || tType == 1 || tType == 4"
  7045. @click.stop="deleteWorks(w.wid)"
  7046. alt
  7047. />
  7048. </div>
  7049. </div>
  7050. </div>
  7051. <div class="noWorksS">
  7052. <div
  7053. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7054. :key="sIndex"
  7055. class="noWorksName"
  7056. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  7057. :class="{ isWork: s.type == '2' }"
  7058. >
  7059. {{ s.student }}
  7060. </div>
  7061. </div>
  7062. </div>
  7063. <div
  7064. v-if="
  7065. tType &&
  7066. ((tType == 2 && sIsOpen == true) ||
  7067. tType == 1 ||
  7068. tType == 4) &&
  7069. tool.tool.indexOf(45) != -1
  7070. "
  7071. class="worksBox"
  7072. >
  7073. <div
  7074. class="zuoyeYulan"
  7075. v-if="
  7076. worksStudent.length && worksStudent[toolIndex].length > 0
  7077. "
  7078. >
  7079. <div class="worksTop">
  7080. <div>作业预览</div>
  7081. <div
  7082. class="corOpen"
  7083. @click="contract(toolIndex)"
  7084. v-if="
  7085. worksStudent[toolIndex].length > 6 &&
  7086. isCloseList[toolIndex].isClose == 0
  7087. "
  7088. >
  7089. 收缩
  7090. </div>
  7091. <div
  7092. class="corOpen"
  7093. @click="contract(toolIndex)"
  7094. v-if="isCloseList[toolIndex].isClose == 1"
  7095. >
  7096. 展开
  7097. </div>
  7098. </div>
  7099. </div>
  7100. <div>
  7101. <div
  7102. class="worksDetailBox"
  7103. v-if="
  7104. worksStudent.length &&
  7105. worksStudent[toolIndex].length > 0
  7106. "
  7107. >
  7108. <div
  7109. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  7110. 0
  7111. ? worksStudent[toolIndex]
  7112. : worksStudent[toolIndex].slice(0, 6)"
  7113. :key="wIndex"
  7114. class="isWorksName"
  7115. @click="
  7116. openTools(45, toolIndex, taskCount, w.works, w.sName)
  7117. "
  7118. >
  7119. {{ w.sName }}
  7120. <img
  7121. class="deleteImg deleteImg2"
  7122. src="../../assets/deleteworks.png"
  7123. v-if="w.userid == userid || tType == 1 || tType == 4"
  7124. @click.stop="deleteWorks(w.wid)"
  7125. alt
  7126. />
  7127. </div>
  7128. </div>
  7129. </div>
  7130. <div class="noWorksS">
  7131. <div
  7132. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7133. :key="sIndex"
  7134. class="noWorksName"
  7135. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  7136. :class="{ isWork: s.type == '2' }"
  7137. >
  7138. {{ s.student }}
  7139. </div>
  7140. </div>
  7141. </div>
  7142. <div
  7143. v-if="
  7144. tType &&
  7145. ((tType == 2 && sIsOpen == true) ||
  7146. tType == 1 ||
  7147. tType == 4) &&
  7148. tool.tool.indexOf(15) != -1
  7149. "
  7150. class="worksBox"
  7151. >
  7152. <div
  7153. class="zuoyeYulan"
  7154. v-if="
  7155. worksStudent.length && worksStudent[toolIndex].length > 0
  7156. "
  7157. >
  7158. <div class="worksTop">
  7159. <div>作业预览</div>
  7160. <div
  7161. class="corOpen"
  7162. @click="contract(toolIndex)"
  7163. v-if="
  7164. worksStudent[toolIndex].length > 6 &&
  7165. isCloseList[toolIndex].isClose == 0
  7166. "
  7167. >
  7168. 收缩
  7169. </div>
  7170. <div
  7171. class="corOpen"
  7172. @click="contract(toolIndex)"
  7173. v-if="isCloseList[toolIndex].isClose == 1"
  7174. >
  7175. 展开
  7176. </div>
  7177. </div>
  7178. </div>
  7179. <div
  7180. class="worksDetailBox"
  7181. v-if="
  7182. worksStudent.length && worksStudent[toolIndex].length > 0
  7183. "
  7184. >
  7185. <div
  7186. class="works"
  7187. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7188. ? worksStudent[toolIndex]
  7189. : worksStudent[toolIndex].slice(0, 6)"
  7190. :key="wIndex"
  7191. >
  7192. <div
  7193. class="workImg"
  7194. style="
  7195. border-radius: 15px;
  7196. box-shadow: #eee 0px 0px 5px 5px;
  7197. "
  7198. >
  7199. <!-- <img
  7200. src="../../assets/icon/works/noImg.png"
  7201. @click="openTools(15, toolIndex, taskCount, w.works)"
  7202. alt=""
  7203. />-->
  7204. <div
  7205. class="answerBg"
  7206. style="border-radius: 15px 15px 0 0"
  7207. @click="commentOther(w, toolIndex, wIndex)"
  7208. >
  7209. <!-- <div>{{ w.sName }}</div> -->
  7210. <div class="answerContent">
  7211. {{ JSON.parse(w.works)[0].answer }}
  7212. </div>
  7213. <div
  7214. class="answerScore"
  7215. v-if="w.score"
  7216. @click.stop="openScore(w)"
  7217. :class="{
  7218. rightW:
  7219. w.userid == userid || tType == 1 || tType == 4,
  7220. }"
  7221. >
  7222. {{ JSON.parse(w.score).wScore }}分
  7223. </div>
  7224. <div
  7225. class="answerScore"
  7226. @click.stop="openScore(w)"
  7227. v-else-if="courseDetail.userid == userid"
  7228. :class="{
  7229. rightW:
  7230. w.userid == userid || tType == 1 || tType == 4,
  7231. }"
  7232. >
  7233. 评分
  7234. </div>
  7235. <img
  7236. class="deleteImg"
  7237. src="../../assets/deleteworks.png"
  7238. v-if="
  7239. w.userid == userid || tType == 1 || tType == 4
  7240. "
  7241. @click.stop="deleteWorks(w.wid)"
  7242. alt
  7243. />
  7244. </div>
  7245. <div class="comment">
  7246. <div class="worksName">
  7247. <div>{{ w.sName }}</div>
  7248. </div>
  7249. <div class="commentList">
  7250. <div
  7251. class="commentImg"
  7252. @click="
  7253. isLikes(w.wid, userid, 1, null, w.isLikes)
  7254. "
  7255. >
  7256. <img
  7257. :src="w.isLikes == true ? likes : noLikes"
  7258. alt=""
  7259. />
  7260. </div>
  7261. <div>{{ w.likesCount }}</div>
  7262. </div>
  7263. <div class="commentList" style="margin-right: 15px">
  7264. <div
  7265. class="commentImg"
  7266. @click="commentOther(w, toolIndex, wIndex)"
  7267. >
  7268. <img
  7269. src="../../assets/icon/comment/comment.png"
  7270. alt=""
  7271. />
  7272. </div>
  7273. <div>{{ w.commentCount }}</div>
  7274. </div>
  7275. </div>
  7276. </div>
  7277. </div>
  7278. </div>
  7279. <div class="noWorksS">
  7280. <div
  7281. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7282. :key="sIndex"
  7283. class="noWorksName"
  7284. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  7285. :class="{ isWork: s.type == '2' }"
  7286. >
  7287. {{ s.student }}
  7288. </div>
  7289. </div>
  7290. </div>
  7291. <div
  7292. v-if="
  7293. tType &&
  7294. ((tType == 2 && sIsOpen == true) ||
  7295. tType == 1 ||
  7296. tType == 4) &&
  7297. tool.tool.indexOf(1) != -1
  7298. "
  7299. class="worksBox"
  7300. >
  7301. <div
  7302. class="zuoyeYulan"
  7303. v-if="
  7304. worksStudent.length && worksStudent[toolIndex].length > 0
  7305. "
  7306. >
  7307. <div class="worksTop">
  7308. <div>作业预览</div>
  7309. <div
  7310. class="corOpen"
  7311. @click="contract(toolIndex)"
  7312. v-if="
  7313. worksStudent[toolIndex].length > 6 &&
  7314. isCloseList[toolIndex].isClose == 0
  7315. "
  7316. >
  7317. 收缩
  7318. </div>
  7319. <div
  7320. class="corOpen"
  7321. @click="contract(toolIndex)"
  7322. v-if="isCloseList[toolIndex].isClose == 1"
  7323. >
  7324. 展开
  7325. </div>
  7326. </div>
  7327. </div>
  7328. <div
  7329. class="worksDetailBox"
  7330. v-if="
  7331. worksStudent.length && worksStudent[toolIndex].length > 0
  7332. "
  7333. >
  7334. <div
  7335. class="works"
  7336. style="
  7337. width: 200px;
  7338. height: 140px;
  7339. margin: 10px 10px 10px 0;
  7340. border-radius: 15px;
  7341. box-shadow: 0 0 6px 1px #dfdada;
  7342. "
  7343. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7344. ? worksStudent[toolIndex]
  7345. : worksStudent[toolIndex].slice(0, 6)"
  7346. :key="wIndex"
  7347. >
  7348. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  7349. <div class="workImg">
  7350. <img :src="w.works" @click="previewImg(w.works)" alt />
  7351. <div
  7352. class="answerScore"
  7353. v-if="w.score"
  7354. @click.stop="openScore(w)"
  7355. :class="{
  7356. rightW:
  7357. w.userid == userid || tType == 1 || tType == 4,
  7358. }"
  7359. >
  7360. {{ JSON.parse(w.score).wScore }}分
  7361. </div>
  7362. <div
  7363. class="answerScore"
  7364. @click.stop="openScore(w)"
  7365. v-else-if="courseDetail.userid == userid"
  7366. :class="{
  7367. rightW:
  7368. w.userid == userid || tType == 1 || tType == 4,
  7369. }"
  7370. >
  7371. 评分
  7372. </div>
  7373. <img
  7374. class="deleteImg"
  7375. src="../../assets/deleteworks.png"
  7376. v-if="w.userid == userid || tType == 1 || tType == 4"
  7377. @click.stop="deleteWorks(w.wid)"
  7378. alt
  7379. />
  7380. </div>
  7381. <div class="comment" style="min-width: 200px">
  7382. <div class="worksName">
  7383. <div>{{ w.sName }}</div>
  7384. </div>
  7385. <div class="commentList">
  7386. <div class="commentList">
  7387. <div
  7388. class="commentImg"
  7389. @click="
  7390. isLikes(w.wid, userid, 1, null, w.isLikes)
  7391. "
  7392. >
  7393. <img
  7394. :src="w.isLikes == true ? likes : noLikes"
  7395. alt=""
  7396. />
  7397. </div>
  7398. <div>{{ w.likesCount }}</div>
  7399. </div>
  7400. <div class="commentList" style="margin-right: 15px">
  7401. <div
  7402. class="commentImg"
  7403. @click="commentOther(w, toolIndex, wIndex)"
  7404. >
  7405. <img
  7406. src="../../assets/icon/comment/comment.png"
  7407. alt=""
  7408. />
  7409. </div>
  7410. <div>{{ w.commentCount }}</div>
  7411. </div>
  7412. </div>
  7413. </div>
  7414. </div>
  7415. </div>
  7416. <div class="noWorksS">
  7417. <div
  7418. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7419. :key="sIndex"
  7420. class="noWorksName"
  7421. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7422. :class="{ isWork: s.type == '2' }"
  7423. >
  7424. {{ s.student }}
  7425. </div>
  7426. </div>
  7427. </div>
  7428. <div
  7429. v-if="
  7430. tType &&
  7431. ((tType == 2 && sIsOpen == true) ||
  7432. tType == 1 ||
  7433. tType == 4) &&
  7434. tool.tool.indexOf(3) != -1
  7435. "
  7436. class="worksBox"
  7437. >
  7438. <div
  7439. class="zuoyeYulan"
  7440. v-if="
  7441. worksStudent.length && worksStudent[toolIndex].length > 0
  7442. "
  7443. >
  7444. <div class="worksTop">
  7445. <div>作业预览</div>
  7446. <div
  7447. class="corOpen"
  7448. @click="contract(toolIndex)"
  7449. v-if="
  7450. worksStudent[toolIndex].length > 6 &&
  7451. isCloseList[toolIndex].isClose == 0
  7452. "
  7453. >
  7454. 收缩
  7455. </div>
  7456. <div
  7457. class="corOpen"
  7458. @click="contract(toolIndex)"
  7459. v-if="isCloseList[toolIndex].isClose == 1"
  7460. >
  7461. 展开
  7462. </div>
  7463. </div>
  7464. </div>
  7465. <div
  7466. class="worksDetailBox"
  7467. v-if="
  7468. worksStudent.length && worksStudent[toolIndex].length > 0
  7469. "
  7470. >
  7471. <div
  7472. class="works"
  7473. style="
  7474. width: 200px;
  7475. height: 140px;
  7476. margin: 10px 10px 10px 0;
  7477. border-radius: 15px;
  7478. box-shadow: 0 0 6px 1px #dfdada;
  7479. "
  7480. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7481. ? worksStudent[toolIndex]
  7482. : worksStudent[toolIndex].slice(0, 6)"
  7483. :key="wIndex"
  7484. >
  7485. <!-- @click="previewImg(w.works)" -->
  7486. <div class="workImg">
  7487. <img :src="w.works" @click="previewImg(w.works)" alt />
  7488. <div
  7489. class="answerScore"
  7490. v-if="w.score"
  7491. @click.stop="openScore(w)"
  7492. :class="{
  7493. rightW:
  7494. w.userid == userid || tType == 1 || tType == 4,
  7495. }"
  7496. >
  7497. {{ JSON.parse(w.score).wScore }}分
  7498. </div>
  7499. <div
  7500. class="answerScore"
  7501. @click.stop="openScore(w)"
  7502. v-else-if="courseDetail.userid == userid"
  7503. :class="{
  7504. rightW:
  7505. w.userid == userid || tType == 1 || tType == 4,
  7506. }"
  7507. >
  7508. 评分
  7509. </div>
  7510. <img
  7511. class="deleteImg"
  7512. src="../../assets/deleteworks.png"
  7513. v-if="w.userid == userid || tType == 1 || tType == 4"
  7514. @click.stop="deleteWorks(w.wid)"
  7515. alt
  7516. />
  7517. </div>
  7518. <div class="comment" style="min-width: 200px">
  7519. <div class="worksName">
  7520. <div>{{ w.sName }}</div>
  7521. </div>
  7522. <div class="commentList">
  7523. <div class="commentList">
  7524. <div
  7525. class="commentImg"
  7526. @click="
  7527. isLikes(w.wid, userid, 1, null, w.isLikes)
  7528. "
  7529. >
  7530. <img
  7531. :src="w.isLikes == true ? likes : noLikes"
  7532. alt=""
  7533. />
  7534. </div>
  7535. <div>{{ w.likesCount }}</div>
  7536. </div>
  7537. <div class="commentList" style="margin-right: 15px">
  7538. <div
  7539. class="commentImg"
  7540. @click="commentOther(w, toolIndex, wIndex)"
  7541. >
  7542. <img
  7543. src="../../assets/icon/comment/comment.png"
  7544. alt=""
  7545. />
  7546. </div>
  7547. <div>{{ w.commentCount }}</div>
  7548. </div>
  7549. </div>
  7550. </div>
  7551. </div>
  7552. </div>
  7553. <div class="noWorksS">
  7554. <div
  7555. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7556. :key="sIndex"
  7557. class="noWorksName"
  7558. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7559. :class="{ isWork: s.type == '2' }"
  7560. >
  7561. {{ s.student }}
  7562. </div>
  7563. </div>
  7564. </div>
  7565. <div
  7566. v-if="
  7567. tType &&
  7568. ((tType == 2 && sIsOpen == true) ||
  7569. tType == 1 ||
  7570. tType == 4) &&
  7571. tool.tool.indexOf(6) != -1
  7572. "
  7573. class="worksBox"
  7574. >
  7575. <div
  7576. class="zuoyeYulan"
  7577. v-if="
  7578. worksStudent.length && worksStudent[toolIndex].length > 0
  7579. "
  7580. >
  7581. <div class="worksTop">
  7582. <div>作业预览</div>
  7583. <div
  7584. class="corOpen"
  7585. @click="contract(toolIndex)"
  7586. v-if="
  7587. worksStudent[toolIndex].length > 6 &&
  7588. isCloseList[toolIndex].isClose == 0
  7589. "
  7590. >
  7591. 收缩
  7592. </div>
  7593. <div
  7594. class="corOpen"
  7595. @click="contract(toolIndex)"
  7596. v-if="isCloseList[toolIndex].isClose == 1"
  7597. >
  7598. 展开
  7599. </div>
  7600. </div>
  7601. </div>
  7602. <div
  7603. class="worksDetailBox"
  7604. v-if="
  7605. worksStudent.length && worksStudent[toolIndex].length > 0
  7606. "
  7607. >
  7608. <div
  7609. class="works"
  7610. style="
  7611. width: 200px;
  7612. height: 140px;
  7613. margin: 10px 10px 10px 0;
  7614. border-radius: 15px;
  7615. box-shadow: 0 0 6px 1px #dfdada;
  7616. "
  7617. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7618. ? worksStudent[toolIndex]
  7619. : worksStudent[toolIndex].slice(0, 6)"
  7620. :key="wIndex"
  7621. >
  7622. <!-- @click="previewImg(w.works)" -->
  7623. <div class="workImg">
  7624. <img :src="w.works" @click="previewImg(w.works)" alt />
  7625. <div
  7626. class="answerScore"
  7627. v-if="w.score"
  7628. @click.stop="openScore(w)"
  7629. :class="{
  7630. rightW:
  7631. w.userid == userid || tType == 1 || tType == 4,
  7632. }"
  7633. >
  7634. {{ JSON.parse(w.score).wScore }}分
  7635. </div>
  7636. <div
  7637. class="answerScore"
  7638. @click.stop="openScore(w)"
  7639. v-else-if="courseDetail.userid == userid"
  7640. :class="{
  7641. rightW:
  7642. w.userid == userid || tType == 1 || tType == 4,
  7643. }"
  7644. >
  7645. 评分
  7646. </div>
  7647. <img
  7648. class="deleteImg"
  7649. src="../../assets/deleteworks.png"
  7650. v-if="w.userid == userid || tType == 1 || tType == 4"
  7651. @click.stop="deleteWorks(w.wid)"
  7652. alt
  7653. />
  7654. </div>
  7655. <div class="comment" style="min-width: 200px">
  7656. <div class="worksName">
  7657. <div>{{ w.sName }}</div>
  7658. </div>
  7659. <div class="commentList">
  7660. <div class="commentList">
  7661. <div
  7662. class="commentImg"
  7663. @click="
  7664. isLikes(w.wid, userid, 1, null, w.isLikes)
  7665. "
  7666. >
  7667. <img
  7668. :src="w.isLikes == true ? likes : noLikes"
  7669. alt=""
  7670. />
  7671. </div>
  7672. <div>{{ w.likesCount }}</div>
  7673. </div>
  7674. <div class="commentList" style="margin-right: 15px">
  7675. <div
  7676. class="commentImg"
  7677. @click="commentOther(w, toolIndex, wIndex)"
  7678. >
  7679. <img
  7680. src="../../assets/icon/comment/comment.png"
  7681. alt=""
  7682. />
  7683. </div>
  7684. <div>{{ w.commentCount }}</div>
  7685. </div>
  7686. </div>
  7687. </div>
  7688. </div>
  7689. </div>
  7690. <div class="noWorksS">
  7691. <div
  7692. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7693. :key="sIndex"
  7694. class="noWorksName"
  7695. :class="{ isWork: s.type == '2' }"
  7696. >
  7697. {{ s.student }}
  7698. </div>
  7699. </div>
  7700. </div>
  7701. <div
  7702. v-if="
  7703. tType &&
  7704. ((tType == 2 && sIsOpen == true) ||
  7705. tType == 1 ||
  7706. tType == 4) &&
  7707. tool.tool.indexOf(7) != -1
  7708. "
  7709. class="worksBox"
  7710. >
  7711. <div
  7712. class="zuoyeYulan"
  7713. v-if="
  7714. worksStudent.length && worksStudent[toolIndex].length > 0
  7715. "
  7716. >
  7717. <div class="worksTop">
  7718. <div>作业预览</div>
  7719. <div
  7720. class="corOpen"
  7721. @click="contract(toolIndex)"
  7722. v-if="
  7723. worksStudent[toolIndex].length > 6 &&
  7724. isCloseList[toolIndex].isClose == 0
  7725. "
  7726. >
  7727. 收缩
  7728. </div>
  7729. <div
  7730. class="corOpen"
  7731. @click="contract(toolIndex)"
  7732. v-if="isCloseList[toolIndex].isClose == 1"
  7733. >
  7734. 展开
  7735. </div>
  7736. </div>
  7737. </div>
  7738. <div
  7739. class="worksDetailBox"
  7740. v-if="
  7741. worksStudent.length && worksStudent[toolIndex].length > 0
  7742. "
  7743. >
  7744. <div
  7745. class="works"
  7746. style="
  7747. width: 200px;
  7748. height: 140px;
  7749. margin: 10px 10px 10px 0;
  7750. border-radius: 15px;
  7751. box-shadow: 0 0 6px 1px #dfdada;
  7752. "
  7753. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7754. ? worksStudent[toolIndex]
  7755. : worksStudent[toolIndex].slice(0, 6)"
  7756. :key="wIndex"
  7757. >
  7758. <!-- @click="previewImg(w.works)" -->
  7759. <div class="workImg">
  7760. <img :src="w.works" @click="previewImg(w.works)" alt />
  7761. <div
  7762. class="answerScore"
  7763. v-if="w.score"
  7764. @click.stop="openScore(w)"
  7765. :class="{
  7766. rightW:
  7767. w.userid == userid || tType == 1 || tType == 4,
  7768. }"
  7769. >
  7770. {{ JSON.parse(w.score).wScore }}分
  7771. </div>
  7772. <div
  7773. class="answerScore"
  7774. @click.stop="openScore(w)"
  7775. v-else-if="courseDetail.userid == userid"
  7776. :class="{
  7777. rightW:
  7778. w.userid == userid || tType == 1 || tType == 4,
  7779. }"
  7780. >
  7781. 评分
  7782. </div>
  7783. <img
  7784. class="deleteImg"
  7785. src="../../assets/deleteworks.png"
  7786. v-if="w.userid == userid || tType == 1 || tType == 4"
  7787. @click.stop="deleteWorks(w.wid)"
  7788. alt
  7789. />
  7790. </div>
  7791. <div class="comment" style="min-width: 200px">
  7792. <div class="worksName">
  7793. <div>{{ w.sName }}</div>
  7794. </div>
  7795. <div class="commentList">
  7796. <div class="commentList">
  7797. <div
  7798. class="commentImg"
  7799. @click="
  7800. isLikes(w.wid, userid, 1, null, w.isLikes)
  7801. "
  7802. >
  7803. <img
  7804. :src="w.isLikes == true ? likes : noLikes"
  7805. alt=""
  7806. />
  7807. </div>
  7808. <div>{{ w.likesCount }}</div>
  7809. </div>
  7810. <div class="commentList" style="margin-right: 15px">
  7811. <div
  7812. class="commentImg"
  7813. @click="commentOther(w, toolIndex, wIndex)"
  7814. >
  7815. <img
  7816. src="../../assets/icon/comment/comment.png"
  7817. alt=""
  7818. />
  7819. </div>
  7820. <div>{{ w.commentCount }}</div>
  7821. </div>
  7822. </div>
  7823. </div>
  7824. </div>
  7825. </div>
  7826. <div class="noWorksS">
  7827. <div
  7828. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7829. :key="sIndex"
  7830. class="noWorksName"
  7831. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  7832. :class="{ isWork: s.type == '2' }"
  7833. >
  7834. {{ s.student }}
  7835. </div>
  7836. </div>
  7837. </div>
  7838. <div
  7839. v-if="
  7840. tType &&
  7841. ((tType == 2 && sIsOpen == true) ||
  7842. tType == 1 ||
  7843. tType == 4) &&
  7844. tool.tool.indexOf(26) != -1
  7845. "
  7846. class="worksBox"
  7847. >
  7848. <div
  7849. class="zuoyeYulan"
  7850. v-if="
  7851. worksStudent.length && worksStudent[toolIndex].length > 0
  7852. "
  7853. >
  7854. <div class="worksTop">
  7855. <div>作业预览</div>
  7856. <div
  7857. class="corOpen"
  7858. @click="contract(toolIndex)"
  7859. v-if="
  7860. worksStudent[toolIndex].length > 6 &&
  7861. isCloseList[toolIndex].isClose == 0
  7862. "
  7863. >
  7864. 收缩
  7865. </div>
  7866. <div
  7867. class="corOpen"
  7868. @click="contract(toolIndex)"
  7869. v-if="isCloseList[toolIndex].isClose == 1"
  7870. >
  7871. 展开
  7872. </div>
  7873. </div>
  7874. </div>
  7875. <div
  7876. class="worksDetailBox"
  7877. v-if="
  7878. worksStudent.length && worksStudent[toolIndex].length > 0
  7879. "
  7880. >
  7881. <div
  7882. class="works"
  7883. style="width: 240px; height: 140px; overflow: hidden"
  7884. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7885. ? worksStudent[toolIndex]
  7886. : worksStudent[toolIndex].slice(0, 6)"
  7887. :key="wIndex"
  7888. :class="w.type == 1 ? 'isTypeOne' : ''"
  7889. >
  7890. <div class="workImg" v-if="w.type == 0">
  7891. <img :src="w.works" @click="previewImg(w.works)" alt />
  7892. <img
  7893. class="deleteImg"
  7894. src="../../assets/deleteworks.png"
  7895. v-if="w.userid == userid || tType == 1 || tType == 4"
  7896. @click.stop="deleteWorks(w.wid)"
  7897. alt
  7898. />
  7899. </div>
  7900. <div class="workImg" v-if="w.type == 1">
  7901. <img :src="word" @click="openFile(w.works)" alt />
  7902. <img
  7903. class="deleteImg"
  7904. src="../../assets/deleteworks.png"
  7905. v-if="w.userid == userid || tType == 1 || tType == 4"
  7906. @click.stop="deleteWorks(w.wid)"
  7907. alt
  7908. />
  7909. </div>
  7910. <div class="worksName">
  7911. <div>{{ w.sName }}</div>
  7912. </div>
  7913. </div>
  7914. </div>
  7915. <div class="noWorksS">
  7916. <div
  7917. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7918. :key="sIndex"
  7919. class="noWorksName"
  7920. :class="{ isWork: s.type == '2' }"
  7921. >
  7922. {{ s.student }}
  7923. </div>
  7924. </div>
  7925. </div>
  7926. <div
  7927. v-if="
  7928. tType &&
  7929. ((tType == 2 && sIsOpen == true) ||
  7930. tType == 1 ||
  7931. tType == 4) &&
  7932. tool.tool.indexOf(40) != -1
  7933. "
  7934. class="worksBox"
  7935. >
  7936. <div
  7937. class="zuoyeYulan"
  7938. v-if="
  7939. worksStudent.length && worksStudent[toolIndex].length > 0
  7940. "
  7941. >
  7942. <div class="worksTop">
  7943. <div>作业预览</div>
  7944. <div
  7945. class="corOpen"
  7946. @click="contract(toolIndex)"
  7947. v-if="
  7948. worksStudent[toolIndex].length > 6 &&
  7949. isCloseList[toolIndex].isClose == 0
  7950. "
  7951. >
  7952. 收缩
  7953. </div>
  7954. <div
  7955. class="corOpen"
  7956. @click="contract(toolIndex)"
  7957. v-if="isCloseList[toolIndex].isClose == 1"
  7958. >
  7959. 展开
  7960. </div>
  7961. </div>
  7962. </div>
  7963. <div
  7964. class="worksDetailBox"
  7965. v-if="
  7966. worksStudent.length && worksStudent[toolIndex].length > 0
  7967. "
  7968. >
  7969. <div
  7970. class="works"
  7971. style="
  7972. width: 200px;
  7973. height: 140px;
  7974. margin: 10px 10px 10px 0;
  7975. border-radius: 15px;
  7976. box-shadow: 0 0 6px 1px #dfdada;
  7977. "
  7978. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7979. ? worksStudent[toolIndex]
  7980. : worksStudent[toolIndex].slice(0, 6)"
  7981. :key="wIndex"
  7982. :class="w.type == 1 ? 'isTypeOne' : ''"
  7983. >
  7984. <div class="workImg">
  7985. <img
  7986. src="../../assets/icon/works/noImg.png"
  7987. @click="openPj(w.works, toolIndex)"
  7988. alt
  7989. />
  7990. <img
  7991. class="deleteImg"
  7992. src="../../assets/deleteworks.png"
  7993. v-if="w.userid == userid || tType == 1 || tType == 4"
  7994. @click.stop="deleteWorks(w.wid)"
  7995. alt
  7996. />
  7997. </div>
  7998. <div class="comment" style="min-width: 200px">
  7999. <div class="worksName">
  8000. <div>{{ w.sName }}</div>
  8001. </div>
  8002. <div class="commentList">
  8003. <div class="commentList">
  8004. <div
  8005. class="commentImg"
  8006. @click="
  8007. isLikes(w.wid, userid, 1, null, w.isLikes)
  8008. "
  8009. >
  8010. <img
  8011. :src="w.isLikes == true ? likes : noLikes"
  8012. alt=""
  8013. />
  8014. </div>
  8015. <div>{{ w.likesCount }}</div>
  8016. </div>
  8017. <div class="commentList" style="margin-right: 15px">
  8018. <div
  8019. class="commentImg"
  8020. @click="commentOther(w, toolIndex, wIndex)"
  8021. >
  8022. <img
  8023. src="../../assets/icon/comment/comment.png"
  8024. alt=""
  8025. />
  8026. </div>
  8027. <div>{{ w.commentCount }}</div>
  8028. </div>
  8029. </div>
  8030. </div>
  8031. </div>
  8032. </div>
  8033. <div class="noWorksS">
  8034. <div
  8035. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8036. :key="sIndex"
  8037. class="noWorksName"
  8038. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8039. :class="{ isWork: s.type == '2' }"
  8040. >
  8041. {{ s.student }}
  8042. </div>
  8043. </div>
  8044. </div>
  8045. <div
  8046. v-if="
  8047. tType &&
  8048. ((tType == 2 && sIsOpen == true) ||
  8049. tType == 1 ||
  8050. tType == 4) &&
  8051. tool.tool.indexOf(41) != -1
  8052. "
  8053. class="worksBox"
  8054. >
  8055. <div class="noWorksS">
  8056. <div
  8057. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8058. :key="sIndex"
  8059. class="noWorksName"
  8060. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  8061. :class="{ isWork: s.type == '2' }"
  8062. >
  8063. {{ s.student }}
  8064. </div>
  8065. </div>
  8066. <div
  8067. class="zuoyeYulan"
  8068. v-if="
  8069. worksStudent.length && worksStudent[toolIndex].length > 0
  8070. "
  8071. >
  8072. <div class="worksTop">
  8073. <div>作业预览</div>
  8074. <div
  8075. class="corOpen"
  8076. @click="contract(toolIndex)"
  8077. v-if="
  8078. worksStudent[toolIndex].length > 6 &&
  8079. isCloseList[toolIndex].isClose == 0
  8080. "
  8081. >
  8082. 收缩
  8083. </div>
  8084. <div
  8085. class="corOpen"
  8086. @click="contract(toolIndex)"
  8087. v-if="isCloseList[toolIndex].isClose == 1"
  8088. >
  8089. 展开
  8090. </div>
  8091. </div>
  8092. </div>
  8093. <div
  8094. class="worksDetailBox"
  8095. v-if="
  8096. worksStudent.length && worksStudent[toolIndex].length > 0
  8097. "
  8098. >
  8099. <div
  8100. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8101. ? worksStudent[toolIndex]
  8102. : worksStudent[toolIndex].slice(0, 6)"
  8103. :key="wIndex"
  8104. class="isWorksName"
  8105. @click="openXz(w, toolIndex)"
  8106. >
  8107. {{ w.sName }}
  8108. <img
  8109. class="deleteImg deleteImg2"
  8110. src="../../assets/deleteworks.png"
  8111. v-if="w.userid == userid || tType == 1 || tType == 4"
  8112. @click.stop="deleteWorks(w.wid)"
  8113. alt
  8114. />
  8115. </div>
  8116. </div>
  8117. </div>
  8118. <div
  8119. v-if="
  8120. tType &&
  8121. ((tType == 2 && sIsOpen == true) ||
  8122. tType == 1 ||
  8123. tType == 4) &&
  8124. tool.tool.indexOf(47) != -1
  8125. "
  8126. class="worksBox"
  8127. >
  8128. <div class="noWorksS">
  8129. <div
  8130. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8131. :key="sIndex"
  8132. class="noWorksName"
  8133. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  8134. :class="{ isWork: s.type == '2' }"
  8135. >
  8136. {{ s.student }}
  8137. </div>
  8138. </div>
  8139. <div
  8140. class="zuoyeYulan"
  8141. v-if="
  8142. worksStudent.length && worksStudent[toolIndex].length > 0
  8143. "
  8144. >
  8145. <div class="worksTop">
  8146. <div>作业预览</div>
  8147. <div
  8148. class="corOpen"
  8149. @click="contract(toolIndex)"
  8150. v-if="
  8151. worksStudent[toolIndex].length > 6 &&
  8152. isCloseList[toolIndex].isClose == 0
  8153. "
  8154. >
  8155. 收缩
  8156. </div>
  8157. <div
  8158. class="corOpen"
  8159. @click="contract(toolIndex)"
  8160. v-if="isCloseList[toolIndex].isClose == 1"
  8161. >
  8162. 展开
  8163. </div>
  8164. </div>
  8165. </div>
  8166. <div
  8167. class="worksDetailBox"
  8168. v-if="
  8169. worksStudent.length && worksStudent[toolIndex].length > 0
  8170. "
  8171. >
  8172. <!-- @click="openXz(w, toolIndex)" -->
  8173. <div
  8174. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8175. ? worksStudent[toolIndex]
  8176. : worksStudent[toolIndex].slice(0, 6)"
  8177. :key="wIndex"
  8178. class="isWorksName"
  8179. @click="openSen(w, toolIndex)"
  8180. >
  8181. {{ w.sName }}
  8182. <img
  8183. class="deleteImg deleteImg2"
  8184. src="../../assets/deleteworks.png"
  8185. v-if="w.userid == userid || tType == 1 || tType == 4"
  8186. @click.stop="deleteWorks(w.wid)"
  8187. alt
  8188. />
  8189. </div>
  8190. </div>
  8191. </div>
  8192. <div
  8193. v-if="
  8194. tType &&
  8195. ((tType == 2 && sIsOpen == true) ||
  8196. tType == 1 ||
  8197. tType == 4) &&
  8198. tool.tool.indexOf(48) != -1
  8199. "
  8200. class="worksBox"
  8201. >
  8202. <div
  8203. class="zuoyeYulan"
  8204. v-if="
  8205. worksStudent.length && worksStudent[toolIndex].length > 0
  8206. "
  8207. >
  8208. <div class="worksTop">
  8209. <div>作业预览</div>
  8210. <div
  8211. class="corOpen"
  8212. @click="contract(toolIndex)"
  8213. v-if="
  8214. worksStudent[toolIndex].length > 6 &&
  8215. isCloseList[toolIndex].isClose == 0
  8216. "
  8217. >
  8218. 收缩
  8219. </div>
  8220. <div
  8221. class="corOpen"
  8222. @click="contract(toolIndex)"
  8223. v-if="isCloseList[toolIndex].isClose == 1"
  8224. >
  8225. 展开
  8226. </div>
  8227. </div>
  8228. </div>
  8229. <div
  8230. class="worksDetailBox"
  8231. v-if="
  8232. worksStudent.length && worksStudent[toolIndex].length > 0
  8233. "
  8234. >
  8235. <div
  8236. class="works"
  8237. style="
  8238. width: 200px;
  8239. height: 140px;
  8240. margin: 10px 10px 10px 0;
  8241. border-radius: 15px;
  8242. box-shadow: 0 0 6px 1px #dfdada;
  8243. "
  8244. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8245. ? worksStudent[toolIndex]
  8246. : worksStudent[toolIndex].slice(0, 6)"
  8247. :key="wIndex"
  8248. :class="w.type == 1 ? 'isTypeOne' : ''"
  8249. >
  8250. <div class="workImg">
  8251. <img :src="word" @click="openTable(w)" alt />
  8252. <!-- @click="openFile(w.works)" -->
  8253. <div
  8254. class="answerScore"
  8255. v-if="w.score"
  8256. @click.stop="openScore(w)"
  8257. :class="{
  8258. rightW:
  8259. w.userid == userid ||
  8260. tType == 1 ||
  8261. tType == 4 ||
  8262. w.ateacher == userid,
  8263. }"
  8264. >
  8265. {{ JSON.parse(w.score).wScore }}分
  8266. </div>
  8267. <div
  8268. class="answerScore"
  8269. @click.stop="openScore(w)"
  8270. v-else-if="courseDetail.userid == userid"
  8271. :class="{
  8272. rightW:
  8273. w.userid == userid ||
  8274. tType == 1 ||
  8275. tType == 4 ||
  8276. w.ateacher == userid,
  8277. }"
  8278. >
  8279. 评分
  8280. </div>
  8281. <img
  8282. class="deleteImg"
  8283. src="../../assets/deleteworks.png"
  8284. v-if="w.userid == userid || tType == 1 || tType == 4"
  8285. @click.stop="deleteWorks(w.wid)"
  8286. alt
  8287. />
  8288. </div>
  8289. <div class="comment" style="min-width: 200px">
  8290. <div class="worksName">
  8291. <div>{{ w.sName }}</div>
  8292. </div>
  8293. <div class="commentList">
  8294. <div class="commentList">
  8295. <div
  8296. class="commentImg"
  8297. @click="
  8298. isLikes(w.wid, userid, 1, null, w.isLikes)
  8299. "
  8300. >
  8301. <img
  8302. :src="w.isLikes == true ? likes : noLikes"
  8303. alt=""
  8304. />
  8305. </div>
  8306. <div>{{ w.likesCount }}</div>
  8307. </div>
  8308. <div class="commentList" style="margin-right: 15px">
  8309. <div
  8310. class="commentImg"
  8311. @click="commentOther(w, toolIndex, wIndex)"
  8312. >
  8313. <img
  8314. src="../../assets/icon/comment/comment.png"
  8315. alt=""
  8316. />
  8317. </div>
  8318. <div>{{ w.commentCount }}</div>
  8319. </div>
  8320. </div>
  8321. </div>
  8322. </div>
  8323. </div>
  8324. <div class="noWorksS">
  8325. <div
  8326. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8327. :key="sIndex"
  8328. class="noWorksName"
  8329. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  8330. :class="{ isWork: s.type == '2' }"
  8331. >
  8332. {{ s.student }}
  8333. </div>
  8334. </div>
  8335. </div>
  8336. <div
  8337. v-if="
  8338. tType &&
  8339. ((tType == 2 && sIsOpen == true) ||
  8340. tType == 1 ||
  8341. tType == 4) &&
  8342. tool.tool.indexOf(52) != -1
  8343. "
  8344. class="worksBox"
  8345. >
  8346. <div
  8347. class="zuoyeYulan"
  8348. v-if="
  8349. worksStudent.length && worksStudent[toolIndex].length > 0
  8350. "
  8351. >
  8352. <div class="worksTop">
  8353. <div>作业预览</div>
  8354. <div
  8355. class="corOpen"
  8356. @click="contract(toolIndex)"
  8357. v-if="
  8358. worksStudent[toolIndex].length > 6 &&
  8359. isCloseList[toolIndex].isClose == 0
  8360. "
  8361. >
  8362. 收缩
  8363. </div>
  8364. <div
  8365. class="corOpen"
  8366. @click="contract(toolIndex)"
  8367. v-if="isCloseList[toolIndex].isClose == 1"
  8368. >
  8369. 展开
  8370. </div>
  8371. </div>
  8372. </div>
  8373. <div
  8374. class="worksDetailBox"
  8375. v-if="
  8376. worksStudent.length && worksStudent[toolIndex].length > 0
  8377. "
  8378. >
  8379. <div
  8380. class="works"
  8381. style="
  8382. width: 200px;
  8383. height: 140px;
  8384. margin: 10px 10px 10px 0;
  8385. border-radius: 15px;
  8386. box-shadow: 0 0 6px 1px #dfdada;
  8387. "
  8388. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8389. ? worksStudent[toolIndex]
  8390. : worksStudent[toolIndex].slice(0, 6)"
  8391. :key="wIndex"
  8392. :class="w.type == 1 ? 'isTypeOne' : ''"
  8393. >
  8394. <div class="workImg">
  8395. <img :src="word" @click="openWord(w)" alt />
  8396. <!-- @click="openFile(w.works)" -->
  8397. <div
  8398. class="answerScore"
  8399. v-if="w.score"
  8400. @click.stop="openScore(w)"
  8401. :class="{
  8402. rightW:
  8403. w.userid == userid ||
  8404. tType == 1 ||
  8405. tType == 4 ||
  8406. w.ateacher == userid,
  8407. }"
  8408. >
  8409. {{ JSON.parse(w.score).wScore }}分
  8410. </div>
  8411. <div
  8412. class="answerScore"
  8413. @click.stop="openScore(w)"
  8414. v-else-if="courseDetail.userid == userid"
  8415. :class="{
  8416. rightW:
  8417. w.userid == userid ||
  8418. tType == 1 ||
  8419. tType == 4 ||
  8420. w.ateacher == userid,
  8421. }"
  8422. >
  8423. 评分
  8424. </div>
  8425. <img
  8426. class="deleteImg"
  8427. src="../../assets/deleteworks.png"
  8428. v-if="w.userid == userid || tType == 1 || tType == 4"
  8429. @click.stop="deleteWorks(w.wid)"
  8430. alt
  8431. />
  8432. </div>
  8433. <div class="comment" style="min-width: 200px">
  8434. <div class="worksName">
  8435. <div>{{ w.sName }}</div>
  8436. </div>
  8437. <div class="commentList">
  8438. <div class="commentList">
  8439. <div
  8440. class="commentImg"
  8441. @click="
  8442. isLikes(w.wid, userid, 1, null, w.isLikes)
  8443. "
  8444. >
  8445. <img
  8446. :src="w.isLikes == true ? likes : noLikes"
  8447. alt=""
  8448. />
  8449. </div>
  8450. <div>{{ w.likesCount }}</div>
  8451. </div>
  8452. <div class="commentList" style="margin-right: 15px">
  8453. <div
  8454. class="commentImg"
  8455. @click="commentOther(w, toolIndex, wIndex)"
  8456. >
  8457. <img
  8458. src="../../assets/icon/comment/comment.png"
  8459. alt=""
  8460. />
  8461. </div>
  8462. <div>{{ w.commentCount }}</div>
  8463. </div>
  8464. </div>
  8465. </div>
  8466. </div>
  8467. </div>
  8468. <div class="noWorksS">
  8469. <div
  8470. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8471. :key="sIndex"
  8472. class="noWorksName"
  8473. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  8474. :class="{ isWork: s.type == '2' }"
  8475. >
  8476. {{ s.student }}
  8477. </div>
  8478. </div>
  8479. </div>
  8480. </div>
  8481. </div>
  8482. <div class="vedioBox" v-if="false">
  8483. <div
  8484. class="queTop"
  8485. style="
  8486. font-size: 20px;
  8487. padding: 15px 0 15px 30px;
  8488. font-weight: bold;
  8489. "
  8490. >
  8491. 评一评
  8492. </div>
  8493. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8494. <div class="elist_input">
  8495. <div
  8496. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8497. .chapterInfo[0].taskJson[taskCount].eList"
  8498. :key="eIndex"
  8499. class="elist_input_box"
  8500. >
  8501. <div style="width: 95%">
  8502. <div
  8503. style="
  8504. display: flex;
  8505. flex-direction: row;
  8506. flex-wrap: nowrap;
  8507. align-items: center;
  8508. "
  8509. >
  8510. <div style="max-width: calc(100% - 285px)">
  8511. <span>{{ eItem.value }}</span>
  8512. </div>
  8513. <div
  8514. style="
  8515. padding-left: 25px;
  8516. display: flex;
  8517. flex-direction: row;
  8518. align-items: center;
  8519. "
  8520. >
  8521. <el-rate
  8522. v-model="eItem.score"
  8523. :colors="colors"
  8524. disabled
  8525. ></el-rate>
  8526. </div>
  8527. </div>
  8528. <div class="elist_inptu_text" style="padding-left: 10px">
  8529. <span v-if="eItem.detail != ''">{{
  8530. eItem.detail
  8531. }}</span>
  8532. <span v-else style="color: #b2b1b3; font-size: 14px"
  8533. >暂无描述...</span
  8534. >
  8535. </div>
  8536. </div>
  8537. </div>
  8538. </div>
  8539. <div
  8540. v-if="evalua"
  8541. style="
  8542. border: 1px solid #e5e5e5;
  8543. max-width: 650px;
  8544. width: 100%;
  8545. margin-top: 20px;
  8546. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8547. "
  8548. >
  8549. <div class="e_add_top">
  8550. <div class="e_add_title">
  8551. <span>目标管理名称</span>
  8552. <span>{{ eTitle }}</span>
  8553. <img
  8554. src="../../assets/line.png"
  8555. class="cru_line"
  8556. style="
  8557. width: 125px;
  8558. height: 20px;
  8559. bottom: -10px;
  8560. left: 120px;
  8561. "
  8562. />
  8563. <!-- <el-input
  8564. v-model="eTitle"
  8565. placeholder="请输入名称"
  8566. @change="setMindData"
  8567. ></el-input>-->
  8568. </div>
  8569. </div>
  8570. <div class="e_add_content">
  8571. <div class="e_add_list_pbox">
  8572. <div class="e_add_list_pbox_title">
  8573. <span class="type_title">切换模式</span>
  8574. <div class="type_content">
  8575. <span
  8576. :class="{ active: typeMode == 1 }"
  8577. @click="typeMode = 1"
  8578. >目标树</span
  8579. >
  8580. <span
  8581. :class="{ active: typeMode == 2 }"
  8582. @click="typeMode = 2"
  8583. >目标罗盘</span
  8584. >
  8585. <span
  8586. :class="{ active: typeMode == 3 }"
  8587. @click="typeMode = 3"
  8588. >目标看板</span
  8589. >
  8590. </div>
  8591. </div>
  8592. <div class="e_add_list_pbox_content">
  8593. <Mind
  8594. :showBar="false"
  8595. :mindData="data"
  8596. style="width: 100%"
  8597. v-show="typeMode == 1"
  8598. ></Mind>
  8599. <Sunburst
  8600. :Josn="eJson"
  8601. :num="eJSONNum"
  8602. style="width: 100%"
  8603. v-if="typeMode == 2"
  8604. ></Sunburst>
  8605. <SeeBoard
  8606. :Josn="eJson"
  8607. :num="eJSONNum"
  8608. :ename="eTitle"
  8609. style="width: 100%"
  8610. v-if="typeMode == 3"
  8611. >
  8612. </SeeBoard>
  8613. </div>
  8614. </div>
  8615. </div>
  8616. </div>
  8617. </div>
  8618. </div>
  8619. </div>
  8620. </div>
  8621. <el-dialog
  8622. title="作业提交"
  8623. :visible.sync="dialogVisible"
  8624. :append-to-body="true"
  8625. width="500px"
  8626. :before-close="handleClose"
  8627. class="dialog_change"
  8628. >
  8629. <div class="marginT">
  8630. <div>上传文件</div>
  8631. <div
  8632. class="chapter_add"
  8633. @click="addImg($event)"
  8634. v-if="studyJuri[0].cover.length == 0"
  8635. >
  8636. <div class="up_photo">
  8637. <img src="../../assets/icon/uploadImg.png" alt />
  8638. </div>
  8639. <!-- <input
  8640. type="file"
  8641. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8642. style="display: none"
  8643. @change="beforeUpload1($event, 1)"
  8644. /> -->
  8645. <input
  8646. type="file"
  8647. accept="*"
  8648. style="display: none"
  8649. @change="beforeUpload1($event, 1)"
  8650. />
  8651. <!-- <input
  8652. type="file"
  8653. accept="image/*"
  8654. capture="camera"
  8655. style="display: none"
  8656. @change="beforeUpload1($event, 1)"
  8657. /> -->
  8658. </div>
  8659. <div
  8660. class="chapter_add"
  8661. style="
  8662. display: flex;
  8663. width: 100%;
  8664. flex-direction: row;
  8665. flex-wrap: wrap;
  8666. justify-content: flex-start;
  8667. padding: 15px 0;
  8668. "
  8669. v-if="studyJuri[0].cover.length > 0"
  8670. >
  8671. <div class="upCover">
  8672. <img
  8673. :src="studyJuri[0].cover[0].url"
  8674. alt
  8675. v-if="fileType == 0"
  8676. />
  8677. <img :src="word" alt v-else-if="fileType == 1" />
  8678. <img :src="video" alt v-else-if="fileType == 2" />
  8679. <img :src="word2" alt v-else-if="fileType == 3" />
  8680. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8681. <div class="deleteWord" @click="clean(1)">
  8682. <img src="../../assets/icon/deleteWorks.png" alt />
  8683. </div>
  8684. </div>
  8685. </div>
  8686. </div>
  8687. <div
  8688. class="upload_send"
  8689. @click="addCourseWorks(taskCount)"
  8690. v-if="!proVisible"
  8691. >
  8692. 提交
  8693. </div>
  8694. </el-dialog>
  8695. </div>
  8696. </div>
  8697. <div
  8698. class="pButton"
  8699. @click="(pzDialog = true), selectPz()"
  8700. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8701. >
  8702. <!-- 批 -->
  8703. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  8704. </div>
  8705. <div v-if="pzDialog == true" class="newDialogCss">
  8706. <div class="pzTop2">
  8707. <!-- <div>批注</div>
  8708. <div @click="pzDialog = false">
  8709. <img src="../../assets/close1.png" alt="" />
  8710. </div> -->
  8711. <div class="checkbox">
  8712. <div class="check" style="font-size: 25px">评课笔记</div>
  8713. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8714. </div>
  8715. </div>
  8716. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  8717. <div class="pzListBox" v-if="pzList && pzList.length">
  8718. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8719. <div class="pzNavTop">
  8720. <div>批</div>
  8721. <div>
  8722. {{
  8723. pz.username && pz.username.length > 5
  8724. ? pz.username.substring(0, 5) + "..."
  8725. : pz.username
  8726. }}的批注
  8727. </div>
  8728. <div
  8729. class="pzDelete"
  8730. v-if="pz.userid == userid"
  8731. @click="deletePz(pz.id)"
  8732. >
  8733. 删除
  8734. </div>
  8735. </div>
  8736. <div
  8737. @click="checkImg(getImgList(pz.content))"
  8738. class="pzContent cont"
  8739. v-html="pz.content"
  8740. v-if="pz.type == '1'"
  8741. ></div>
  8742. <div class="pzContent" v-if="pz.type == '2'">
  8743. <audio :src="pz.content" controls="controls" ref="audio">
  8744. Your browser does not support the audio element.
  8745. </audio>
  8746. </div>
  8747. <div class="pzContent" v-if="pz.type == '3'">
  8748. <img
  8749. :src="pz.content"
  8750. style="width: 90%; margin: 0 auto; display: block"
  8751. @click="previewImg(pz.content)"
  8752. />
  8753. </div>
  8754. <div class="time">
  8755. {{ pz.time }}
  8756. </div>
  8757. </div>
  8758. </div>
  8759. <div class="noPz" v-else>
  8760. <img src="../../assets/icon/noPz.png" alt="" />
  8761. </div>
  8762. <div class="addPzButton">
  8763. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8764. 添加批注
  8765. </div>
  8766. <!-- <div class="img1">
  8767. <div @click="(addPzDialog = true), (pzType = 2)">
  8768. <img src="../../assets/audio.png" /><span>音频</span>
  8769. </div>
  8770. </div> -->
  8771. </div>
  8772. </div>
  8773. </div>
  8774. <div v-if="addPzDialog == true" class="addDialogCss">
  8775. <div class="pzTop">
  8776. <div class="teacherPz">
  8777. <div class="teacherPzImg">
  8778. <img src="../../assets/icon/teacherPz.png" alt="" />
  8779. </div>
  8780. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8781. </div>
  8782. <div @click="addPzDialog = false">
  8783. <img src="../../assets/close1.png" alt="" />
  8784. </div>
  8785. </div>
  8786. <div class="addPzBox">
  8787. <div class="addPzCheck">
  8788. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8789. >文本</span
  8790. >
  8791. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8792. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8793. >音频</span
  8794. >
  8795. </div>
  8796. <div style="height: calc(100% - 95px)">
  8797. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8798. v-if="pzType == 1"></textarea> -->
  8799. <editor-bar
  8800. class="binfo_input pzConText"
  8801. style="width: 100% !important"
  8802. placeholder="请输入任务描述"
  8803. v-model="pzConText"
  8804. @change="change"
  8805. v-if="pzType == 1"
  8806. ></editor-bar>
  8807. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8808. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8809. <div @click="addImg($event)">
  8810. <el-button type="primary">上传图片</el-button>
  8811. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8812. @change="beforeUpload1($event, 4)" />
  8813. </div>
  8814. </div> -->
  8815. </div>
  8816. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8817. 确定
  8818. </div>
  8819. </div>
  8820. </div>
  8821. <div v-if="proVisible" class="mask">
  8822. <div class="progressBox">
  8823. <!-- <div id="closePro" class="closeCss">
  8824. <img src="../../assets/icon/close.png" alt />
  8825. </div> -->
  8826. <div class="lbox">
  8827. <img src="../../assets/loading.gif" />上传中,请稍后
  8828. </div>
  8829. <div style="margin-bottom: 10px">
  8830. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8831. </div>
  8832. <el-progress
  8833. :text-inside="true"
  8834. :stroke-width="20"
  8835. :percentage="progress"
  8836. style="width: 80%"
  8837. ></el-progress>
  8838. </div>
  8839. </div>
  8840. <div v-if="proVisible2" class="mask">
  8841. <div class="progressBox">
  8842. <div class="lbox">
  8843. <img src="../../assets/loading.gif" />上传中,请稍后
  8844. </div>
  8845. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8846. </div>
  8847. </div>
  8848. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8849. <img width="100%" :src="dialogImageUrl" alt />
  8850. </el-dialog>
  8851. <el-dialog
  8852. :title="noteName != '' ? noteName : '查看问卷'"
  8853. :visible.sync="dialogVisible5"
  8854. :append-to-body="true"
  8855. width="1000px"
  8856. :before-close="handleClose"
  8857. class="dialog_diy dialog_diy3"
  8858. >
  8859. <div>
  8860. <div
  8861. class="a_add_title"
  8862. style="
  8863. display: flex;
  8864. flex-direction: row;
  8865. align-items: center;
  8866. justify-content: center;
  8867. "
  8868. >
  8869. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8870. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8871. </div>
  8872. <div class="a_addBox">
  8873. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8874. <div
  8875. class="a_add_box"
  8876. v-for="(item1, index1) in askJson.askCount"
  8877. :key="index1"
  8878. >
  8879. <div class="a_add_head">
  8880. <div style="display: flex">
  8881. {{ index1 + 1 + "、" }}
  8882. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8883. </div>
  8884. <img
  8885. v-if="askJson.askJson[index1].img"
  8886. :src="askJson.askJson[index1].img"
  8887. style="height: 300px; margin-top: 10px; max-width: 100%"
  8888. />
  8889. </div>
  8890. <div class="a_add_body">
  8891. <div class="a_add_input">
  8892. <el-radio-group
  8893. v-model="radio[index1]"
  8894. v-if="
  8895. askJson.askJson[index1].type == '1' ||
  8896. !askJson.askJson[index1].type
  8897. "
  8898. >
  8899. <el-radio
  8900. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8901. .checkList"
  8902. :key="checkIndex"
  8903. :label="checkIndex"
  8904. :disabled="isAnswer"
  8905. class="redioStyle"
  8906. ><span v-html="item2"></span
  8907. ></el-radio>
  8908. </el-radio-group>
  8909. <el-checkbox-group
  8910. v-model="radio[index1]"
  8911. v-if="askJson.askJson[index1].type == '2'"
  8912. >
  8913. <el-checkbox
  8914. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8915. .checkList"
  8916. :key="checkIndex1"
  8917. :label="checkIndex1"
  8918. :disabled="isAnswer"
  8919. class="redioStyle"
  8920. ><span v-html="item2"></span>
  8921. </el-checkbox>
  8922. </el-checkbox-group>
  8923. </div>
  8924. </div>
  8925. </div>
  8926. </div>
  8927. </div>
  8928. <span slot="footer" class="dialog-footer">
  8929. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8930. >取 消</el-button
  8931. >
  8932. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8933. >确 定</el-button
  8934. >
  8935. </span>
  8936. </el-dialog>
  8937. <el-dialog
  8938. :title="noteName != '' ? noteName : '查看问卷'"
  8939. :visible.sync="dialogVisible5Teacher"
  8940. :append-to-body="true"
  8941. width="1000px"
  8942. :before-close="handleClose"
  8943. class="dialog_diy dialog_diy3"
  8944. >
  8945. <div>
  8946. <div class="w_name">
  8947. 学生姓名:<span>{{ sStudent.student }}</span>
  8948. </div>
  8949. <div
  8950. class="a_add_title"
  8951. style="
  8952. display: flex;
  8953. flex-direction: row;
  8954. align-items: center;
  8955. justify-content: center;
  8956. "
  8957. >
  8958. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8959. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8960. </div>
  8961. <div class="a_addBox">
  8962. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8963. <div
  8964. class="a_add_box"
  8965. v-for="(item1, index1) in askJson.askCount"
  8966. :key="index1"
  8967. >
  8968. <div class="a_add_head">
  8969. <div style="display: flex">
  8970. {{ index1 + 1 + "、" }}
  8971. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8972. </div>
  8973. <img
  8974. v-if="askJson.askJson[index1].img"
  8975. :src="askJson.askJson[index1].img"
  8976. style="height: 300px; margin-top: 10px; max-width: 100%"
  8977. />
  8978. </div>
  8979. <div class="a_add_body">
  8980. <div class="a_add_input">
  8981. <el-radio-group
  8982. v-model="radio[index1]"
  8983. v-if="
  8984. askJson.askJson[index1].type == '1' ||
  8985. !askJson.askJson[index1].type
  8986. "
  8987. >
  8988. <el-radio
  8989. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8990. .checkList"
  8991. :key="checkIndex"
  8992. :label="checkIndex"
  8993. :disabled="isAnswer"
  8994. class="redioStyle"
  8995. ><span v-html="item2"></span
  8996. ></el-radio>
  8997. </el-radio-group>
  8998. <el-checkbox-group
  8999. v-model="radio[index1]"
  9000. v-if="askJson.askJson[index1].type == '2'"
  9001. >
  9002. <el-checkbox
  9003. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9004. .checkList"
  9005. :key="checkIndex1"
  9006. :label="checkIndex1"
  9007. :disabled="isAnswer"
  9008. class="redioStyle"
  9009. ><span v-html="item2"></span>
  9010. </el-checkbox>
  9011. </el-checkbox-group>
  9012. </div>
  9013. </div>
  9014. </div>
  9015. </div>
  9016. </div>
  9017. <span slot="footer" class="dialog-footer">
  9018. <el-button
  9019. @click="dialogVisible5Teacher = false"
  9020. v-show="noteName == ''"
  9021. >取 消</el-button
  9022. >
  9023. <el-button
  9024. type="primary"
  9025. @click="addStudentAskTeacher"
  9026. v-show="noteName == ''"
  9027. >确 定</el-button
  9028. >
  9029. </span>
  9030. </el-dialog>
  9031. <el-dialog
  9032. :title="noteName != '' ? noteName : '查看选择题'"
  9033. :visible.sync="dialogVisibleChoice"
  9034. :append-to-body="true"
  9035. width="1000px"
  9036. :before-close="handleClose"
  9037. class="dialog_diy dialog_diy3"
  9038. >
  9039. <div>
  9040. <div class="a_addBox">
  9041. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  9042. <div
  9043. class="a_add_box"
  9044. v-for="(item1, index1) in testJson.testCount"
  9045. :key="index1"
  9046. >
  9047. <div class="a_add_head">
  9048. <div style="display: flex">
  9049. {{ index1 + 1 + "、" }}
  9050. <div
  9051. v-if="testJson.testJson[index1].type == '1'"
  9052. style="margin-right: 5px; min-width: 70px"
  9053. >
  9054. (单选题)
  9055. </div>
  9056. <div
  9057. v-if="testJson.testJson[index1].type == '2'"
  9058. style="margin-right: 5px; min-width: 70px"
  9059. >
  9060. (多选题)
  9061. </div>
  9062. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9063. </div>
  9064. <img
  9065. v-if="testJson.testJson[index1].img"
  9066. :src="testJson.testJson[index1].img"
  9067. style="height: 300px; margin-top: 10px; max-width: 100%"
  9068. />
  9069. </div>
  9070. <div
  9071. class="timuImgBox"
  9072. v-if="
  9073. testJson.testJson[index1].timuList &&
  9074. testJson.testJson[index1].timuList.length
  9075. "
  9076. >
  9077. <div
  9078. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9079. :key="tIndex"
  9080. class="timuImg"
  9081. @click.stop="previewImg(timg.src)"
  9082. >
  9083. <img :src="timg.src" alt="" />
  9084. </div>
  9085. </div>
  9086. <div class="a_add_body">
  9087. <div class="a_add_input">
  9088. <el-radio-group
  9089. v-model="radio[index1]"
  9090. v-if="testJson.testJson[index1].type == '1'"
  9091. >
  9092. <div class="radioBox">
  9093. <el-radio
  9094. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9095. .checkList"
  9096. :key="checkIndex"
  9097. :label="checkIndex"
  9098. :disabled="isAnswer"
  9099. class="redioStyle"
  9100. >
  9101. <div
  9102. style="margin-right: 10px"
  9103. v-if="item2 && item2.imgType && item2.imgType == 1"
  9104. >
  9105. <div class="inImg" @click.stop="previewImg(item2.src)">
  9106. <img :src="item2.src" alt="" />
  9107. </div>
  9108. </div>
  9109. <span v-else v-html="item2"></span>
  9110. </el-radio>
  9111. </div>
  9112. </el-radio-group>
  9113. <el-checkbox-group
  9114. v-model="radio[index1]"
  9115. v-if="testJson.testJson[index1].type == '2'"
  9116. >
  9117. <div class="radioBox">
  9118. <el-checkbox
  9119. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9120. .checkList"
  9121. :key="checkIndex"
  9122. :label="checkIndex"
  9123. :disabled="isAnswer"
  9124. class="redioStyle"
  9125. >
  9126. <div
  9127. style="margin-right: 10px"
  9128. v-if="item2 && item2.imgType && item2.imgType == 1"
  9129. >
  9130. <div class="inImg" @click.stop="previewImg(item2.src)">
  9131. <img :src="item2.src" alt="" />
  9132. </div>
  9133. </div>
  9134. <span v-else v-html="item2"></span>
  9135. </el-checkbox>
  9136. </div>
  9137. </el-checkbox-group>
  9138. </div>
  9139. </div>
  9140. </div>
  9141. </div>
  9142. </div>
  9143. <span slot="footer" class="dialog-footer">
  9144. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9145. >取 消</el-button
  9146. >
  9147. <el-button
  9148. type="primary"
  9149. @click="addStudentTest"
  9150. v-show="noteName == ''"
  9151. >确 定</el-button
  9152. >
  9153. </span>
  9154. </el-dialog>
  9155. <el-dialog
  9156. :title="noteName != '' ? noteName : '查看选择题'"
  9157. :visible.sync="dialogVisibleChoiceTeacher"
  9158. :append-to-body="true"
  9159. width="1000px"
  9160. :before-close="handleClose"
  9161. class="dialog_diy dialog_diy3"
  9162. >
  9163. <div>
  9164. <div class="w_name">
  9165. 学生姓名:<span>{{ sStudent.student }}</span>
  9166. </div>
  9167. <div class="a_addBox">
  9168. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  9169. <div
  9170. class="a_add_box"
  9171. v-for="(item1, index1) in testJson.testCount"
  9172. :key="index1"
  9173. >
  9174. <div class="a_add_head">
  9175. <div style="display: flex">
  9176. {{ index1 + 1 + "、" }}
  9177. <div
  9178. v-if="testJson.testJson[index1].type == '1'"
  9179. style="margin-right: 5px; min-width: 70px"
  9180. >
  9181. (单选题)
  9182. </div>
  9183. <div
  9184. v-if="testJson.testJson[index1].type == '2'"
  9185. style="margin-right: 5px; min-width: 70px"
  9186. >
  9187. (多选题)
  9188. </div>
  9189. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9190. </div>
  9191. <img
  9192. v-if="testJson.testJson[index1].img"
  9193. :src="testJson.testJson[index1].img"
  9194. style="height: 300px; margin-top: 10px; max-width: 100%"
  9195. />
  9196. </div>
  9197. <div
  9198. class="timuImgBox"
  9199. v-if="
  9200. testJson.testJson[index1].timuList &&
  9201. testJson.testJson[index1].timuList.length
  9202. "
  9203. >
  9204. <div
  9205. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9206. :key="tIndex"
  9207. class="timuImg"
  9208. @click.stop="previewImg(timg.src)"
  9209. >
  9210. <img :src="timg.src" alt="" />
  9211. </div>
  9212. </div>
  9213. <div class="a_add_body">
  9214. <div class="a_add_input">
  9215. <el-radio-group
  9216. v-model="radio[index1]"
  9217. v-if="testJson.testJson[index1].type == '1'"
  9218. >
  9219. <div class="radioBox">
  9220. <el-radio
  9221. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9222. .checkList"
  9223. :key="checkIndex"
  9224. :label="checkIndex"
  9225. :disabled="isAnswer"
  9226. class="redioStyle"
  9227. >
  9228. <div
  9229. style="margin-right: 10px"
  9230. v-if="item2 && item2.imgType && item2.imgType == 1"
  9231. >
  9232. <div class="inImg" @click.stop="previewImg(item2.src)">
  9233. <img :src="item2.src" alt="" />
  9234. </div>
  9235. </div>
  9236. <span v-else v-html="item2"></span>
  9237. </el-radio>
  9238. </div>
  9239. </el-radio-group>
  9240. <el-checkbox-group
  9241. v-model="radio[index1]"
  9242. v-if="testJson.testJson[index1].type == '2'"
  9243. >
  9244. <div class="radioBox">
  9245. <el-checkbox
  9246. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9247. .checkList"
  9248. :key="checkIndex"
  9249. :label="checkIndex"
  9250. :disabled="isAnswer"
  9251. class="redioStyle"
  9252. >
  9253. <div
  9254. style="margin-right: 10px"
  9255. v-if="item2 && item2.imgType && item2.imgType == 1"
  9256. >
  9257. <div class="inImg" @click.stop="previewImg(item2.src)">
  9258. <img :src="item2.src" alt="" />
  9259. </div>
  9260. </div>
  9261. <span v-else v-html="item2"></span>
  9262. </el-checkbox>
  9263. </div>
  9264. </el-checkbox-group>
  9265. </div>
  9266. </div>
  9267. </div>
  9268. </div>
  9269. </div>
  9270. <span slot="footer" class="dialog-footer">
  9271. <el-button
  9272. @click="dialogVisibleChoiceTeacher = false"
  9273. v-show="noteName == ''"
  9274. >取 消</el-button
  9275. >
  9276. <el-button
  9277. type="primary"
  9278. @click="addStudentTestTeacher"
  9279. v-show="noteName == ''"
  9280. >确 定</el-button
  9281. >
  9282. </span>
  9283. </el-dialog>
  9284. <el-dialog
  9285. title="查看富文本"
  9286. :visible.sync="dialogVisible1"
  9287. :append-to-body="true"
  9288. width="500px"
  9289. :before-close="handleClose"
  9290. class="dialog_diy textCss"
  9291. >
  9292. <el-form style="font-size: 20px">
  9293. <el-form-item label="文本标题" class="textTitle">
  9294. <div style="font-size: 20px">{{ text.name }}</div>
  9295. </el-form-item>
  9296. <div>富文本内容</div>
  9297. <div
  9298. v-html="text.url"
  9299. style="font-size: 18px; padding: 40px 0 0 0"
  9300. ></div>
  9301. </el-form>
  9302. <span slot="footer" class="dialog-footer">
  9303. <el-button type="primary" @click="dialogVisible1 = false"
  9304. >确定</el-button
  9305. >
  9306. </span>
  9307. </el-dialog>
  9308. <el-dialog
  9309. title="文件预览"
  9310. :visible.sync="dialogVisible3"
  9311. width="50%"
  9312. :before-close="handleClose"
  9313. class="dialog_diy"
  9314. :class="{ fullStyle: full }"
  9315. >
  9316. <div slot="title" class="header-title">
  9317. <div style="color: #fff">文件预览</div>
  9318. <div style="position: absolute; top: 19px; right: 50px">
  9319. <img
  9320. src="../../assets/full.png"
  9321. style="height: 16px; cursor: pointer"
  9322. alt=""
  9323. @click="fullTools"
  9324. />
  9325. </div>
  9326. </div>
  9327. <pdf
  9328. v-if="showPDF"
  9329. :pdfUrl="pptImgUrl"
  9330. style="width: 100%; height: 520px; overflow: auto"
  9331. :class="{ fullStyle: full }"
  9332. ></pdf>
  9333. <iframe
  9334. v-else
  9335. :src="pptImgUrl"
  9336. frameborder="0"
  9337. width="100%"
  9338. height="600"
  9339. :class="{ fullStyle: full }"
  9340. ></iframe>
  9341. </el-dialog>
  9342. <el-dialog
  9343. title="文件预览"
  9344. :visible.sync="dialogVisible6"
  9345. width="50%"
  9346. :before-close="handleClose"
  9347. class="dialog_diy"
  9348. >
  9349. <iframe
  9350. :src="pptImgUrl1"
  9351. frameborder="0"
  9352. width="100%"
  9353. height="600"
  9354. ></iframe>
  9355. </el-dialog>
  9356. <el-dialog
  9357. title="提示"
  9358. :visible.sync="dialogVisible4"
  9359. :append-to-body="true"
  9360. width="800px"
  9361. :before-close="handleClose"
  9362. class="dialog_diy notice"
  9363. >
  9364. <div>此功能暂未开放!</div>
  9365. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9366. </el-dialog>
  9367. <el-dialog
  9368. title="问答"
  9369. :visible.sync="answerDialogVisible"
  9370. :append-to-body="true"
  9371. width="800px"
  9372. :before-close="handleClose"
  9373. class="dialog_diy"
  9374. >
  9375. <div>
  9376. <div
  9377. style="
  9378. display: flex;
  9379. flex-wrap: nowrap;
  9380. flex-direction: column;
  9381. position: relative;
  9382. "
  9383. >
  9384. <div class="queTop" style="padding: 20px 0 20px 0">
  9385. <div class="question">
  9386. <img src="../../assets/icon/question.png" alt />
  9387. </div>
  9388. <div class="queTitle">
  9389. <div style="width: 90px; min-width: 90px">提问:</div>
  9390. <div>{{ answerQ }}</div>
  9391. </div>
  9392. </div>
  9393. <div class="ediBottom">
  9394. <textarea
  9395. rows="6"
  9396. class="binfo_input"
  9397. cols
  9398. style="width: 95%; height: 120px"
  9399. v-model="questionAnswer"
  9400. ></textarea>
  9401. </div>
  9402. </div>
  9403. </div>
  9404. <div slot="footer">
  9405. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9406. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9407. </div>
  9408. </el-dialog>
  9409. <el-dialog
  9410. title="倒计时"
  9411. :visible.sync="timeDialogVisible"
  9412. :append-to-body="true"
  9413. width="800px"
  9414. :before-close="handleClose"
  9415. class="dialog_diy"
  9416. >
  9417. <div>
  9418. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9419. </div>
  9420. <div slot="footer">
  9421. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9422. </div>
  9423. </el-dialog>
  9424. <el-dialog
  9425. title="权限设置"
  9426. :visible.sync="juriVisible"
  9427. :append-to-body="true"
  9428. width="400px"
  9429. :before-close="handleClose"
  9430. class="dialog_diy"
  9431. >
  9432. <div>
  9433. <div class="open_box">
  9434. <div class="switch_box">
  9435. <span>允许学生查看所有作业</span>
  9436. <el-switch
  9437. v-model="sIsOpen"
  9438. active-text=""
  9439. class="switchCss"
  9440. @change="updateSLook"
  9441. ></el-switch>
  9442. </div>
  9443. <div
  9444. class="switch_box"
  9445. v-if="
  9446. courseDetail.userid == userid ||
  9447. (courseDetail.course_teacher &&
  9448. courseDetail.course_teacher.indexOf(userid) != -1)
  9449. "
  9450. >
  9451. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9452. <span>禁止学生查看所有阶段</span>
  9453. <el-switch
  9454. v-model="IsLookOpen"
  9455. active-text=""
  9456. class="switchCss"
  9457. @change="updateLookOpen"
  9458. ></el-switch>
  9459. </div>
  9460. <div class="switch_box" v-if="courseDetail.userid == userid">
  9461. <span>开启跟随模式</span>
  9462. <el-switch
  9463. v-model="IsFollow"
  9464. active-text=""
  9465. class="switchCss"
  9466. @change="updateFollow"
  9467. ></el-switch>
  9468. </div>
  9469. </div>
  9470. </div>
  9471. <div slot="footer">
  9472. <el-button
  9473. style="background: #409efe; color: #fff"
  9474. @click="juriVisible = false"
  9475. >关 闭</el-button
  9476. >
  9477. </div>
  9478. </el-dialog>
  9479. <el-dialog
  9480. title="查看视频"
  9481. :visible.sync="videoVisible"
  9482. :append-to-body="true"
  9483. width="1000px"
  9484. :before-close="handleClose"
  9485. class="dialog_diy1"
  9486. >
  9487. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9488. <video-player
  9489. class="video-player vjs-custom-skin"
  9490. :playsinline="true"
  9491. :options="videoDetail"
  9492. @play="onPlayerPlay($event)"
  9493. style="width: 100%; height: 100%"
  9494. ></video-player>
  9495. </div>
  9496. <div slot="footer">
  9497. <el-button
  9498. style="background: #409efe; color: #fff"
  9499. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9500. >
  9501. 关 闭</el-button
  9502. >
  9503. </div>
  9504. </el-dialog>
  9505. <el-dialog
  9506. title="查看详情"
  9507. :visible.sync="commentDialogVisible"
  9508. :append-to-body="true"
  9509. width="800px"
  9510. :before-close="handleClose"
  9511. class="dialog_diy"
  9512. >
  9513. <div class="commentTop">
  9514. <div class="studentDetail">
  9515. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9516. <div class="nameAndTime">
  9517. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9518. <div>{{ commentDetail.time }}</div>
  9519. </div>
  9520. <div
  9521. class="returnBtn"
  9522. style="margin-left: auto; width: 80px"
  9523. v-if="
  9524. commentDetail.works &&
  9525. commentDetail.type == 0 &&
  9526. (tType == 1 || tType == 4)
  9527. "
  9528. @click="
  9529. showPicturePaint(
  9530. commentDetail.img ? commentDetail.img : commentDetail.works
  9531. )
  9532. "
  9533. >
  9534. 教师批注
  9535. </div>
  9536. </div>
  9537. <div
  9538. class="worksAnswer"
  9539. v-if="commentDetail.works && commentDetail.type == 2"
  9540. >
  9541. {{ JSON.parse(commentDetail.works)[0].answer }}
  9542. </div>
  9543. <div
  9544. class="worksAnswer"
  9545. v-if="commentDetail.works && commentDetail.type == 1"
  9546. >
  9547. <img
  9548. src="../../assets/teacherWork.png"
  9549. v-if="commentDetail.ateacher"
  9550. class="w_teachert"
  9551. />
  9552. <pdf
  9553. v-if="showPDF"
  9554. :pdfUrl="pptImgUrl"
  9555. style="width: 100%; height: 520px; overflow: auto"
  9556. :class="{ fullStyle: full }"
  9557. ></pdf>
  9558. <iframe
  9559. v-else
  9560. :src="pptImgUrl"
  9561. frameborder="0"
  9562. width="100%"
  9563. height="600"
  9564. :class="{ fullStyle: full }"
  9565. ></iframe>
  9566. </div>
  9567. <div
  9568. class="worksAnswer"
  9569. v-if="commentDetail.works && commentDetail.type == 0"
  9570. >
  9571. <img
  9572. src="../../assets/teacherWork.png"
  9573. v-if="commentDetail.ateacher"
  9574. class="w_teachert"
  9575. style="right: 105px"
  9576. />
  9577. <img
  9578. :src="commentDetail.works"
  9579. alt=""
  9580. @click="previewImg(commentDetail.works)"
  9581. />
  9582. </div>
  9583. <div
  9584. class="worksAnswer"
  9585. v-if="commentDetail.works && commentDetail.type == 3"
  9586. >
  9587. <img
  9588. src="../../assets/teacherWork.png"
  9589. v-if="commentDetail.ateacher"
  9590. class="w_teachert"
  9591. />
  9592. <video-player
  9593. class="video-player vjs-custom-skin"
  9594. :playsinline="true"
  9595. :options="videoDetail"
  9596. @play="onPlayerPlay($event)"
  9597. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9598. ></video-player>
  9599. </div>
  9600. <div
  9601. class="worksAnswer"
  9602. v-if="commentDetail.works && commentDetail.type == 10"
  9603. >
  9604. <div class="cont" v-html="commentDetail.works.text"></div>
  9605. </div>
  9606. <div
  9607. class="worksAnswer codeFileBox"
  9608. v-if="commentDetail.works && commentDetail.type == 12"
  9609. @click="downloadFile(commentDetail.works)"
  9610. >
  9611. <img src="../../assets/icon/codeFile.png" />
  9612. <div>点击下载文件</div>
  9613. </div>
  9614. <div
  9615. class="worksAnswer codeFileBox"
  9616. v-if="commentDetail.works && commentDetail.type == 15"
  9617. @click="
  9618. openCocoPi(
  9619. 57,
  9620. commentIndexJson.toolIndex,
  9621. commentDetail.userid,
  9622. commentDetail.sName
  9623. )
  9624. "
  9625. >
  9626. <img src="../../assets/icon/codeFile.png" />
  9627. <div>点击打开CocoPi</div>
  9628. </div>
  9629. <div
  9630. class="worksAnswer"
  9631. v-if="commentDetail.works && commentDetail.type == 13"
  9632. >
  9633. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9634. </div>
  9635. <div
  9636. class="worksAnswer"
  9637. v-if="commentDetail.works && commentDetail.type == 4"
  9638. >
  9639. <div class="evalCss">
  9640. <div class="nav">请选择星星进行评分</div>
  9641. <div class="middleBox" v-if="eScore.eStar">
  9642. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9643. <div class="nameAndrate">
  9644. <div>{{ e.value }}</div>
  9645. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9646. </div>
  9647. <div v-if="e.detail">{{ e.detail }}</div>
  9648. </div>
  9649. <div class="bz">
  9650. <textarea
  9651. disabled
  9652. rows="4"
  9653. class="pj"
  9654. style="
  9655. padding: 10px 5px;
  9656. width: 70%;
  9657. background: #f7f6f9;
  9658. font-size: 14px;
  9659. text-indent: 10px;
  9660. color: #000;
  9661. "
  9662. cols
  9663. v-model="eScore.eBzText"
  9664. placeholder="请输入评价内容..."
  9665. ></textarea>
  9666. </div>
  9667. </div>
  9668. </div>
  9669. </div>
  9670. <div class="comment">
  9671. <div class="commentList">
  9672. <div class="commentImg">
  9673. <img
  9674. @click="
  9675. isLikes(
  9676. commentDetail.wid,
  9677. userid,
  9678. 1,
  9679. null,
  9680. commentDetail.isLikes
  9681. )
  9682. "
  9683. :src="commentDetail.isLikes == true ? likes : noLikes"
  9684. alt=""
  9685. />
  9686. </div>
  9687. <div>{{ commentDetail.likesCount }}</div>
  9688. </div>
  9689. <div class="commentList">
  9690. <div class="commentImg">
  9691. <img src="../../assets/icon/comment/comment.png" alt="" />
  9692. </div>
  9693. <div>{{ commentDetail.commentCount }}</div>
  9694. </div>
  9695. </div>
  9696. <div class="drawPBox" v-if="commentDetail.img">
  9697. <span>教师批注</span>
  9698. <img
  9699. :src="commentDetail.img"
  9700. alt=""
  9701. @click="previewImg(commentDetail.img)"
  9702. />
  9703. <span
  9704. class="deleteImg"
  9705. v-if="tType == 1 || tType == 4"
  9706. @click.stop="deletePicturePaint(commentDetail.wid)"
  9707. style="
  9708. font-size: 14px;
  9709. width: auto !important;
  9710. color: #b4b4b4;
  9711. top: unset;
  9712. bottom: 0;
  9713. border: none;
  9714. padding: 0;
  9715. height: auto !important;
  9716. margin: 0;
  9717. "
  9718. >删除</span
  9719. >
  9720. </div>
  9721. </div>
  9722. <div class="commentBox">
  9723. <div class="pl">评论:</div>
  9724. <div style="max-height: 200px; overflow: auto">
  9725. <div
  9726. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9727. style="padding: 10px 0 0 0"
  9728. >
  9729. <div
  9730. class="studentDetail"
  9731. style="padding-top: 10px"
  9732. v-for="(co, coIndex) in commentDetail.commentJson"
  9733. :key="coIndex"
  9734. >
  9735. <div class="tx" style="min-width: 50px">
  9736. <img src="../../assets/avatar.png" alt="" />
  9737. </div>
  9738. <div class="plPerson">
  9739. <div class="plName">
  9740. <div>{{ co.commentPeople }}</div>
  9741. <div style="margin-left: 5px">
  9742. {{ co.commentTime }}
  9743. </div>
  9744. <div
  9745. class="deleteComment"
  9746. v-if="userid == co.userid"
  9747. @click="deleteComment(co.wid)"
  9748. >
  9749. 删除
  9750. </div>
  9751. </div>
  9752. <div class="plContent">{{ co.commentText }}</div>
  9753. </div>
  9754. </div>
  9755. </div>
  9756. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9757. </div>
  9758. </div>
  9759. <div style="margin-top: 10px">
  9760. <div class="displayBox">
  9761. <div
  9762. style="
  9763. color: #556db4;
  9764. font-size: 14px;
  9765. font-weight: bold;
  9766. padding-bottom: 10px;
  9767. "
  9768. >
  9769. 评价
  9770. </div>
  9771. <div class="easy_comment" v-if="false">
  9772. <div
  9773. v-for="(p, pIndex) in PlTextList"
  9774. :key="pIndex"
  9775. @click="fastText(p, 1)"
  9776. >
  9777. {{ p }}
  9778. </div>
  9779. </div>
  9780. </div>
  9781. <div>
  9782. <textarea
  9783. rows="3"
  9784. class="pj"
  9785. style="padding: 10px 5px"
  9786. cols
  9787. v-model="commentText"
  9788. placeholder="请输入评论"
  9789. ></textarea>
  9790. </div>
  9791. </div>
  9792. <div slot="footer">
  9793. <el-button
  9794. @click="
  9795. (commentDialogVisible = false),
  9796. (commentIndexJson = {}),
  9797. videoDetail.sources && videoDetail.sources[0]
  9798. ? (videoDetail.sources[0].src = '')
  9799. : ''
  9800. "
  9801. >取 消</el-button
  9802. >
  9803. <el-button
  9804. type="primary"
  9805. @click="addComment(commentDetail.wid, userid, 2)"
  9806. >确 定</el-button
  9807. >
  9808. </div>
  9809. </el-dialog>
  9810. <el-dialog
  9811. title="查看文档"
  9812. :visible.sync="fullDialogVisible"
  9813. :append-to-body="true"
  9814. width="100%"
  9815. :before-close="handleClose"
  9816. :show-close="false"
  9817. class="dialog_diy full_diy"
  9818. :class="{ full_diy2: fulltype == 3 }"
  9819. >
  9820. <div slot="title" class="header-title">
  9821. <div style="color: #fff">查看文档</div>
  9822. <div
  9823. @click="fullDialogVisible = false"
  9824. style="
  9825. cursor: pointer;
  9826. position: absolute;
  9827. top: 20px;
  9828. right: 20px;
  9829. color: #fff;
  9830. "
  9831. >
  9832. 退出全屏
  9833. </div>
  9834. </div>
  9835. <div style="height: 100%">
  9836. <div
  9837. class="wheel"
  9838. v-if="
  9839. fullUrl.indexOf(
  9840. 'https://view.officeapps.live.com/op/view.aspx?src='
  9841. ) != -1 && fulltype == 2
  9842. "
  9843. style="width: 95%; margin: 0 auto"
  9844. >
  9845. <iframe
  9846. style="width: 100%; height: 100%; border: none"
  9847. :src="fullUrl"
  9848. ></iframe>
  9849. </div>
  9850. <iframe
  9851. v-else-if="fulltype == 2"
  9852. style="width: 100%; height: 100%; border: none"
  9853. :src="fullUrl"
  9854. security="restricted"
  9855. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9856. ></iframe>
  9857. <pdf
  9858. v-else-if="fulltype == 3"
  9859. :pdfUrl="fullUrl"
  9860. style="width: 100%; height: 100%; overflow: auto"
  9861. ></pdf>
  9862. <div
  9863. class="wheel"
  9864. v-if="fulltype == 1"
  9865. style="
  9866. box-shadow: 0 0 6px 1px #f2f2f2;
  9867. width: 100%;
  9868. background: #f1f1f1;
  9869. "
  9870. >
  9871. <div class="title" style="width: 100%; box-sizing: border-box">
  9872. 查看文档
  9873. </div>
  9874. <el-form class="textBox" style="height: 90%">
  9875. <el-form-item class="textTitle">
  9876. <div style="font-size: 22px">
  9877. {{ fullUrl.name }}
  9878. </div>
  9879. </el-form-item>
  9880. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9881. <div
  9882. v-html="fullUrl.url"
  9883. class="textContent"
  9884. style="height: auto"
  9885. ></div>
  9886. </el-form>
  9887. </div>
  9888. </div>
  9889. <!-- <div slot="footer">
  9890. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9891. </div> -->
  9892. </el-dialog>
  9893. <el-dialog
  9894. title="个人评价"
  9895. :visible.sync="studentEvalDialogVisible"
  9896. :append-to-body="true"
  9897. width="800px"
  9898. :before-close="handleClose"
  9899. class="dialog_diy"
  9900. >
  9901. <div class="evalCss">
  9902. <div class="nav">请选择星星进行评分</div>
  9903. <div class="middleBox" v-if="eScore.eStar">
  9904. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9905. <div class="nameAndrate">
  9906. <div>{{ e.value }}</div>
  9907. <el-rate
  9908. v-model="eScore.eStar[eIndex]"
  9909. :disabled="isStar"
  9910. ></el-rate>
  9911. </div>
  9912. <div v-if="e.detail">{{ e.detail }}</div>
  9913. </div>
  9914. <div class="easy_comment" v-if="false">
  9915. <div
  9916. v-for="(p, pIndex) in PlTextList"
  9917. :key="pIndex"
  9918. @click="fastText(p, 2)"
  9919. >
  9920. {{ p }}
  9921. </div>
  9922. </div>
  9923. <div class="bz">
  9924. <textarea
  9925. :disabled="isStar"
  9926. rows="4"
  9927. class="pj"
  9928. style="
  9929. padding: 10px 5px;
  9930. width: 70%;
  9931. background: #f7f6f9;
  9932. font-size: 14px;
  9933. text-indent: 10px;
  9934. "
  9935. cols
  9936. v-model="eScore.eBzText"
  9937. placeholder="请输入评价内容..."
  9938. ></textarea>
  9939. </div>
  9940. </div>
  9941. </div>
  9942. <div slot="footer">
  9943. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9944. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9945. >确 定</el-button
  9946. >
  9947. </div>
  9948. </el-dialog>
  9949. <el-dialog
  9950. title="个人评价"
  9951. :visible.sync="studentEvalDialogVisibleTeacher"
  9952. :append-to-body="true"
  9953. width="800px"
  9954. :before-close="handleClose"
  9955. class="dialog_diy"
  9956. >
  9957. <div class="w_name">
  9958. 学生姓名:<span>{{ sStudent.student }}</span>
  9959. </div>
  9960. <div class="evalCss">
  9961. <div class="nav">请选择星星进行评分</div>
  9962. <div class="middleBox" v-if="eScore.eStar">
  9963. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9964. <div class="nameAndrate">
  9965. <div>{{ e.value }}</div>
  9966. <el-rate
  9967. v-model="eScore.eStar[eIndex]"
  9968. :disabled="isStar"
  9969. ></el-rate>
  9970. </div>
  9971. <div v-if="e.detail">{{ e.detail }}</div>
  9972. </div>
  9973. <div class="easy_comment" v-if="false">
  9974. <div
  9975. v-for="(p, pIndex) in PlTextList"
  9976. :key="pIndex"
  9977. @click="fastText(p, 2)"
  9978. >
  9979. {{ p }}
  9980. </div>
  9981. </div>
  9982. <div class="bz">
  9983. <textarea
  9984. :disabled="isStar"
  9985. rows="4"
  9986. class="pj"
  9987. style="
  9988. padding: 10px 5px;
  9989. width: 70%;
  9990. background: #f7f6f9;
  9991. font-size: 14px;
  9992. text-indent: 10px;
  9993. "
  9994. cols
  9995. v-model="eScore.eBzText"
  9996. placeholder="请输入评价内容..."
  9997. ></textarea>
  9998. </div>
  9999. </div>
  10000. </div>
  10001. <div slot="footer">
  10002. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10003. >取 消</el-button
  10004. >
  10005. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10006. >确 定</el-button
  10007. >
  10008. </div>
  10009. </el-dialog>
  10010. <el-dialog
  10011. title="选择填空"
  10012. :visible.sync="dialogVisibleSelect"
  10013. :append-to-body="true"
  10014. width="90%"
  10015. :before-close="handleClose"
  10016. class="dialog_diy dialog_diy3"
  10017. >
  10018. <div v-if="selectJson">
  10019. <div class="select_box2">
  10020. <div class="select_box2_title">
  10021. <div>选择填空</div>
  10022. <div>请选择对应的答案进行答题!</div>
  10023. </div>
  10024. <div class="select_box2_box">
  10025. <div class="select_box2_img">
  10026. <img
  10027. :src="selectJson.url"
  10028. @click="previewImg(selectJson.url)"
  10029. alt=""
  10030. />
  10031. </div>
  10032. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10033. <div style="padding-top: 15px">
  10034. <div class="select_answer_title" v-if="isSelect">
  10035. {{ selectAnswer.stu }}
  10036. </div>
  10037. <div class="select_answer_title" v-else>
  10038. 根据题目选择对应答案
  10039. </div>
  10040. <div
  10041. class="select_box2_answer_box"
  10042. v-for="(item2, checkIndex) in selectJson.select"
  10043. :key="checkIndex"
  10044. >
  10045. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10046. <el-select
  10047. :disabled="isSelect"
  10048. v-model="selectAnswer.answer[checkIndex]"
  10049. placeholder="请选择正确答案"
  10050. >
  10051. <el-option
  10052. v-for="(e, eIndex) in selectJson.select"
  10053. :key="eIndex"
  10054. :label="e"
  10055. :value="eIndex"
  10056. >
  10057. </el-option>
  10058. </el-select>
  10059. </div>
  10060. </div>
  10061. <div
  10062. class="rightAnswerCss"
  10063. v-if="isSelect && (tType == 1 || tType == 4)"
  10064. >
  10065. <div
  10066. v-for="(a, aIndex) in selectJson.answer"
  10067. :key="aIndex"
  10068. class="rightAnswer"
  10069. >
  10070. <div
  10071. v-if="selectAnswer.answer[aIndex] === a"
  10072. style="color: #767de1"
  10073. >
  10074. 回答正确
  10075. </div>
  10076. <div v-else>回答错误</div>
  10077. <div
  10078. style="margin-left: 10px"
  10079. v-if="selectAnswer.answer[aIndex] !== a"
  10080. >
  10081. 正确答案:
  10082. </div>
  10083. <div
  10084. :class="
  10085. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10086. "
  10087. >
  10088. {{ selectJson.select[a] }}
  10089. </div>
  10090. </div>
  10091. </div>
  10092. </div>
  10093. <div class="upAnswerCss">
  10094. <el-button
  10095. type="primary"
  10096. @click="addSelectAnswer"
  10097. v-if="!isSelect"
  10098. >提交答案</el-button
  10099. >
  10100. </div>
  10101. </div>
  10102. </div>
  10103. </div>
  10104. </el-dialog>
  10105. <el-dialog
  10106. title="选择填空"
  10107. :visible.sync="dialogVisibleSelectTeacher"
  10108. :append-to-body="true"
  10109. width="90%"
  10110. :before-close="handleClose"
  10111. class="dialog_diy dialog_diy3"
  10112. >
  10113. <div v-if="selectJson">
  10114. <div class="w_name">
  10115. 学生姓名:<span>{{ sStudent.student }}</span>
  10116. </div>
  10117. <div class="select_box2">
  10118. <div class="select_box2_title">
  10119. <div>选择填空</div>
  10120. <div>请选择对应的答案进行答题!</div>
  10121. </div>
  10122. <div class="select_box2_box">
  10123. <div class="select_box2_img">
  10124. <img
  10125. :src="selectJson.url"
  10126. @click="previewImg(selectJson.url)"
  10127. alt=""
  10128. />
  10129. </div>
  10130. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10131. <div style="padding-top: 15px">
  10132. <div class="select_answer_title" v-if="isSelect">
  10133. {{ selectAnswer.stu }}
  10134. </div>
  10135. <div class="select_answer_title" v-else>
  10136. 根据题目选择对应答案
  10137. </div>
  10138. <div
  10139. class="select_box2_answer_box"
  10140. v-for="(item2, checkIndex) in selectJson.select"
  10141. :key="checkIndex"
  10142. >
  10143. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10144. <el-select
  10145. :disabled="isSelect"
  10146. v-model="selectAnswer.answer[checkIndex]"
  10147. placeholder="请选择正确答案"
  10148. >
  10149. <el-option
  10150. v-for="(e, eIndex) in selectJson.select"
  10151. :key="eIndex"
  10152. :label="e"
  10153. :value="eIndex"
  10154. >
  10155. </el-option>
  10156. </el-select>
  10157. </div>
  10158. </div>
  10159. <div
  10160. class="rightAnswerCss"
  10161. v-if="isSelect && (tType == 1 || tType == 4)"
  10162. >
  10163. <div
  10164. v-for="(a, aIndex) in selectJson.answer"
  10165. :key="aIndex"
  10166. class="rightAnswer"
  10167. >
  10168. <div
  10169. v-if="selectAnswer.answer[aIndex] === a"
  10170. style="color: #767de1"
  10171. >
  10172. 回答正确
  10173. </div>
  10174. <div v-else>回答错误</div>
  10175. <div
  10176. style="margin-left: 10px"
  10177. v-if="selectAnswer.answer[aIndex] !== a"
  10178. >
  10179. 正确答案:
  10180. </div>
  10181. <div
  10182. :class="
  10183. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10184. "
  10185. >
  10186. {{ selectJson.select[a] }}
  10187. </div>
  10188. </div>
  10189. </div>
  10190. </div>
  10191. <div class="upAnswerCss">
  10192. <el-button
  10193. type="primary"
  10194. @click="addSelectAnswerTeacher"
  10195. v-if="!isSelect"
  10196. >提交答案</el-button
  10197. >
  10198. </div>
  10199. </div>
  10200. </div>
  10201. </div>
  10202. </el-dialog>
  10203. <el-dialog
  10204. title="教师评分"
  10205. :visible.sync="dialogVisibleScore"
  10206. :append-to-body="true"
  10207. width="800px"
  10208. :before-close="handleClose"
  10209. class="dialog_diy"
  10210. >
  10211. <div>
  10212. <div class="studentDetail">
  10213. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10214. <div class="nameAndTime">
  10215. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10216. <div>{{ commentDetail.time }}</div>
  10217. </div>
  10218. </div>
  10219. <div
  10220. class="worksAnswer"
  10221. v-if="commentDetail.works && commentDetail.type == 2"
  10222. >
  10223. {{ JSON.parse(commentDetail.works)[0].answer }}
  10224. </div>
  10225. <div
  10226. class="worksAnswer"
  10227. v-if="commentDetail.works && commentDetail.type == 1"
  10228. >
  10229. <pdf
  10230. v-if="showPDF"
  10231. :pdfUrl="pptImgUrl"
  10232. style="width: 100%; height: 520px; overflow: auto"
  10233. :class="{ fullStyle: full }"
  10234. ></pdf>
  10235. <iframe
  10236. v-else
  10237. :src="pptImgUrl"
  10238. frameborder="0"
  10239. width="100%"
  10240. height="600"
  10241. :class="{ fullStyle: full }"
  10242. ></iframe>
  10243. </div>
  10244. <div
  10245. class="worksAnswer"
  10246. v-if="commentDetail.works && commentDetail.type == 0"
  10247. >
  10248. <img
  10249. :src="commentDetail.works"
  10250. alt=""
  10251. @click="previewImg(commentDetail.works)"
  10252. />
  10253. </div>
  10254. <div
  10255. class="worksAnswer"
  10256. v-if="commentDetail.works && commentDetail.type == 3"
  10257. >
  10258. <video-player
  10259. class="video-player vjs-custom-skin"
  10260. :playsinline="true"
  10261. :options="videoDetail"
  10262. @play="onPlayerPlay($event)"
  10263. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10264. ></video-player>
  10265. </div>
  10266. <div
  10267. class="worksAnswer codeFileBox"
  10268. v-if="commentDetail.works && commentDetail.type == 12"
  10269. @click="downloadFile(commentDetail.works)"
  10270. >
  10271. <img src="../../assets/icon/codeFile.png" />
  10272. <div>点击下载文件</div>
  10273. </div>
  10274. <div
  10275. class="worksAnswer codeFileBox"
  10276. v-if="commentDetail.works && commentDetail.type == 15"
  10277. @click="
  10278. openCocoPi(
  10279. 57,
  10280. commentIndexJson.toolIndex,
  10281. commentDetail.userid,
  10282. commentDetail.sName
  10283. )
  10284. "
  10285. >
  10286. <img src="../../assets/icon/codeFile.png" />
  10287. <div>点击打开CocoPi</div>
  10288. </div>
  10289. <div
  10290. class="worksAnswer"
  10291. v-if="commentDetail.works && commentDetail.type == 13"
  10292. >
  10293. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10294. </div>
  10295. <div class="scoreBox">
  10296. <span class="t">请输入分数</span>
  10297. <el-input-number
  10298. :disabled="courseDetail.userid != userid"
  10299. v-model="wScore"
  10300. :controls="false"
  10301. :min="0"
  10302. :max="100"
  10303. ></el-input-number>
  10304. </div>
  10305. <div class="scoreDetailBox">
  10306. <span class="t">评分评论</span>
  10307. <el-input
  10308. type="textarea"
  10309. :rows="5"
  10310. :disabled="courseDetail.userid != userid"
  10311. resize="none"
  10312. v-model="scoreDetail"
  10313. placeholder="请输入对学生的评价"
  10314. >
  10315. </el-input>
  10316. </div>
  10317. </div>
  10318. <span slot="footer" class="dialog-footer">
  10319. <el-button
  10320. @click="
  10321. (dialogVisibleScore = false),
  10322. (commentIndexJson = {}),
  10323. videoDetail.sources && videoDetail.sources[0]
  10324. ? (videoDetail.sources[0].src = '')
  10325. : ''
  10326. "
  10327. >取 消</el-button
  10328. >
  10329. <el-button
  10330. type="primary"
  10331. v-if="courseDetail.userid == userid"
  10332. @click="scoreWork(commentDetail.wid)"
  10333. >确 定
  10334. </el-button>
  10335. </span>
  10336. </el-dialog>
  10337. <el-dialog
  10338. title="连词成句"
  10339. :visible.sync="dialogVisibleSentence"
  10340. :append-to-body="true"
  10341. width="1000px"
  10342. :before-close="handleClose"
  10343. class="dialog_diy dialog_diy3"
  10344. >
  10345. <div>
  10346. <div class="sentenBox">
  10347. <div
  10348. v-for="(st, stIndex) in sentenceList"
  10349. :key="stIndex"
  10350. style="padding-bottom: 20px"
  10351. >
  10352. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10353. <div class="cardList" v-if="st.chooseSenList">
  10354. <div class="cardBox">
  10355. <div
  10356. v-for="(r, rIndex) in st.chooseSenList"
  10357. :key="rIndex"
  10358. @click="returnCard(r, stIndex, rIndex)"
  10359. >
  10360. <el-tooltip
  10361. class="item"
  10362. effect="light"
  10363. :content="r"
  10364. placement="top"
  10365. v-if="r != '' && r != undefined"
  10366. >
  10367. <div
  10368. :class="{
  10369. isCard: r,
  10370. isChooseCard: r == '' || r == undefined,
  10371. }"
  10372. >
  10373. <div>{{ r }}</div>
  10374. </div>
  10375. </el-tooltip>
  10376. <div
  10377. :class="{
  10378. isCard: r,
  10379. isChooseCard: r == '' || r == undefined,
  10380. }"
  10381. v-else
  10382. >
  10383. <div>{{ r }}</div>
  10384. </div>
  10385. </div>
  10386. </div>
  10387. </div>
  10388. <div class="cardList" v-if="st.addChangeSen">
  10389. <div class="cardBox">
  10390. <div
  10391. v-for="(s, sIndex) in st.addChangeSen"
  10392. :key="sIndex"
  10393. @click="setRightAnswer(s, stIndex, sIndex)"
  10394. >
  10395. <el-tooltip
  10396. class="item"
  10397. effect="light"
  10398. :content="s"
  10399. placement="top"
  10400. v-if="s != '' && s != undefined"
  10401. >
  10402. <div
  10403. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10404. >
  10405. <div>{{ s }}</div>
  10406. </div>
  10407. </el-tooltip>
  10408. <div
  10409. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10410. v-else
  10411. >
  10412. <div>{{ s }}</div>
  10413. </div>
  10414. </div>
  10415. </div>
  10416. </div>
  10417. </div>
  10418. </div>
  10419. </div>
  10420. <span slot="footer" class="dialog-footer">
  10421. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10422. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10423. </span>
  10424. </el-dialog>
  10425. <el-dialog
  10426. title="连词成句"
  10427. :visible.sync="dialogVisibleSentenceTeacher"
  10428. :append-to-body="true"
  10429. width="1000px"
  10430. :before-close="handleClose"
  10431. class="dialog_diy dialog_diy3"
  10432. >
  10433. <div>
  10434. <div class="w_name">
  10435. 学生姓名:<span>{{ sStudent.student }}</span>
  10436. </div>
  10437. <div class="sentenBox">
  10438. <div
  10439. v-for="(st, stIndex) in sentenceList"
  10440. :key="stIndex"
  10441. style="padding-bottom: 20px"
  10442. >
  10443. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10444. <div class="cardList" v-if="st.chooseSenList">
  10445. <div class="cardBox">
  10446. <div
  10447. v-for="(r, rIndex) in st.chooseSenList"
  10448. :key="rIndex"
  10449. @click="returnCard(r, stIndex, rIndex)"
  10450. >
  10451. <el-tooltip
  10452. class="item"
  10453. effect="light"
  10454. :content="r"
  10455. placement="top"
  10456. v-if="r != '' && r != undefined"
  10457. >
  10458. <div
  10459. :class="{
  10460. isCard: r,
  10461. isChooseCard: r == '' || r == undefined,
  10462. }"
  10463. >
  10464. <div>{{ r }}</div>
  10465. </div>
  10466. </el-tooltip>
  10467. <div
  10468. :class="{
  10469. isCard: r,
  10470. isChooseCard: r == '' || r == undefined,
  10471. }"
  10472. v-else
  10473. >
  10474. <div>{{ r }}</div>
  10475. </div>
  10476. </div>
  10477. </div>
  10478. </div>
  10479. <div class="cardList" v-if="st.addChangeSen">
  10480. <div class="cardBox">
  10481. <div
  10482. v-for="(s, sIndex) in st.addChangeSen"
  10483. :key="sIndex"
  10484. @click="setRightAnswer(s, stIndex, sIndex)"
  10485. >
  10486. <el-tooltip
  10487. class="item"
  10488. effect="light"
  10489. :content="s"
  10490. placement="top"
  10491. v-if="s != '' && s != undefined"
  10492. >
  10493. <div
  10494. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10495. >
  10496. <div>{{ s }}</div>
  10497. </div>
  10498. </el-tooltip>
  10499. <div
  10500. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10501. v-else
  10502. >
  10503. <div>{{ s }}</div>
  10504. </div>
  10505. </div>
  10506. </div>
  10507. </div>
  10508. </div>
  10509. </div>
  10510. </div>
  10511. <span slot="footer" class="dialog-footer">
  10512. <el-button @click="dialogVisibleSentenceTeacher = false"
  10513. >取 消</el-button
  10514. >
  10515. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10516. </span>
  10517. </el-dialog>
  10518. <el-dialog
  10519. title="连词成句"
  10520. :visible.sync="dialogVisibleSentence1"
  10521. :append-to-body="true"
  10522. width="1000px"
  10523. :before-close="handleClose"
  10524. class="dialog_diy dialog_diy3"
  10525. >
  10526. <div>
  10527. <div class="sentenBox">
  10528. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10529. {{ sentenceList1.stuName }}的作业
  10530. </div>
  10531. <div
  10532. v-for="(st, stIndex) in sentenceList1"
  10533. :key="stIndex"
  10534. style="padding-bottom: 20px"
  10535. >
  10536. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10537. 第{{ stIndex + 1 }}题
  10538. </div>
  10539. <div class="isWrong">
  10540. <div class="cardList1" v-if="st.chooseSenList">
  10541. <div class="cardBox">
  10542. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10543. <el-tooltip
  10544. class="item"
  10545. effect="light"
  10546. :content="s"
  10547. placement="top"
  10548. >
  10549. <div class="isCard">
  10550. <div>{{ s }}</div>
  10551. </div>
  10552. </el-tooltip>
  10553. </div>
  10554. </div>
  10555. <div class="cardAnswerBox">
  10556. 组成句子:{{ st.chooseSenList.join(" ") }}
  10557. </div>
  10558. </div>
  10559. <div
  10560. class="answerRight isTj"
  10561. v-if="
  10562. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10563. (tType == 1 || tType == 4)
  10564. "
  10565. >
  10566. <div class="isTjImg">
  10567. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10568. </div>
  10569. <div>回答正确</div>
  10570. </div>
  10571. <div
  10572. class="answerRight isTj"
  10573. v-if="
  10574. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10575. (tType == 1 || tType == 4)
  10576. "
  10577. >
  10578. <div class="isTjImg">
  10579. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10580. </div>
  10581. <div>回答错误</div>
  10582. </div>
  10583. </div>
  10584. <div
  10585. v-if="
  10586. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10587. (tType == 1 || tType == 4)
  10588. "
  10589. >
  10590. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10591. <div
  10592. class="cardList"
  10593. v-if="st.rightAnswer"
  10594. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10595. >
  10596. <div class="cardBox">
  10597. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10598. <el-tooltip
  10599. class="item"
  10600. effect="light"
  10601. :content="r"
  10602. placement="top"
  10603. >
  10604. <div class="isCard1">
  10605. <div>{{ r }}</div>
  10606. </div>
  10607. </el-tooltip>
  10608. </div>
  10609. </div>
  10610. <div class="cardAnswerBox">
  10611. 组成句子:{{ st.rightAnswer.join(" ") }}
  10612. </div>
  10613. </div>
  10614. </div>
  10615. </div>
  10616. </div>
  10617. </div>
  10618. <span slot="footer" class="dialog-footer">
  10619. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10620. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10621. >确 定</el-button
  10622. >
  10623. </span>
  10624. </el-dialog>
  10625. <el-dialog
  10626. title="提交作业"
  10627. :visible.sync="dialogVisibleWorks"
  10628. :append-to-body="true"
  10629. width="500px"
  10630. :before-close="handleClose"
  10631. class="dialog_change"
  10632. >
  10633. <div class="marginT">
  10634. <div class="w_name">
  10635. 学生姓名:<span>{{ sStudent.student }}</span>
  10636. </div>
  10637. <div>上传文件</div>
  10638. <div
  10639. class="chapter_add"
  10640. @click="addImg($event)"
  10641. v-if="studyJuri[0].cover.length == 0"
  10642. >
  10643. <div class="up_photo">
  10644. <img src="../../assets/uploadImg2.png" alt />
  10645. </div>
  10646. <!-- <input
  10647. type="file"
  10648. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10649. style="display: none"
  10650. @change="beforeUpload1($event, 1)"
  10651. /> -->
  10652. <input
  10653. type="file"
  10654. accept="*"
  10655. style="display: none"
  10656. @change="beforeUpload1($event, 1)"
  10657. />
  10658. </div>
  10659. <!-- capture="camera" -->
  10660. <div
  10661. class="chapter_add"
  10662. style="
  10663. display: flex;
  10664. width: 100%;
  10665. flex-direction: row;
  10666. flex-wrap: wrap;
  10667. justify-content: flex-start;
  10668. padding: 15px 0;
  10669. "
  10670. v-if="studyJuri[0].cover.length > 0"
  10671. >
  10672. <div class="upCover">
  10673. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10674. <img :src="word" alt v-else-if="fileType == 1" />
  10675. <img :src="video" alt v-else-if="fileType == 2" />
  10676. <img :src="word2" alt v-else-if="fileType == 3" />
  10677. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10678. <div class="deleteWord" @click="clean(1)">
  10679. <img src="../../assets/icon/deleteWorks.png" alt />
  10680. </div>
  10681. </div>
  10682. </div>
  10683. </div>
  10684. <div
  10685. class="upload_send"
  10686. @click="addCourseWorksTeacher(taskCount)"
  10687. v-if="!proVisible"
  10688. >
  10689. 提交
  10690. </div>
  10691. </el-dialog>
  10692. <el-dialog
  10693. title="问答"
  10694. :visible.sync="answerDialogVisibleTeacher"
  10695. :append-to-body="true"
  10696. width="800px"
  10697. :before-close="handleClose"
  10698. class="dialog_diy"
  10699. >
  10700. <div>
  10701. <div class="w_name">
  10702. 学生姓名:<span>{{ sStudent.student }}</span>
  10703. </div>
  10704. <div
  10705. style="
  10706. display: flex;
  10707. flex-wrap: nowrap;
  10708. flex-direction: column;
  10709. position: relative;
  10710. "
  10711. >
  10712. <div class="queTop" style="padding: 20px 0 20px 0">
  10713. <div class="question">
  10714. <img src="../../assets/icon/question.png" alt />
  10715. </div>
  10716. <div class="queTitle">
  10717. <div style="width: 90px; min-width: 90px">提问:</div>
  10718. <div>{{ answerQ }}</div>
  10719. </div>
  10720. </div>
  10721. <div class="ediBottom">
  10722. <textarea
  10723. rows="6"
  10724. class="binfo_input"
  10725. cols
  10726. style="width: 95%; height: 120px"
  10727. v-model="questionAnswer"
  10728. ></textarea>
  10729. </div>
  10730. </div>
  10731. </div>
  10732. <div slot="footer">
  10733. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10734. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10735. </div>
  10736. </el-dialog>
  10737. <ImgDraw
  10738. :drawShow="drawShow"
  10739. @closeDraw="closeDraw"
  10740. @addImgDraw="addImgDraw"
  10741. :bg="bg"
  10742. ></ImgDraw>
  10743. <el-dialog
  10744. title="表格"
  10745. :visible.sync="dialogVisibleTable"
  10746. :append-to-body="true"
  10747. width="95%"
  10748. :before-close="handleClose"
  10749. class="dialog_diy"
  10750. >
  10751. <el-form>
  10752. <div>表格内容</div>
  10753. <Table
  10754. v-model="tableJson.text"
  10755. @change="change"
  10756. v-if="dialogVisibleTable"
  10757. ></Table>
  10758. </el-form>
  10759. <span slot="footer" class="dialog-footer">
  10760. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10761. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10762. </span>
  10763. </el-dialog>
  10764. <el-dialog
  10765. title="表格"
  10766. :visible.sync="dialogVisibleTableTeacher"
  10767. :append-to-body="true"
  10768. width="95%"
  10769. :before-close="handleClose"
  10770. class="dialog_diy"
  10771. >
  10772. <el-form>
  10773. <div class="w_name">
  10774. 学生姓名:<span>{{ sStudent.student }}</span>
  10775. </div>
  10776. <div>表格内容</div>
  10777. <Table
  10778. v-model="tableJson.text"
  10779. @change="change"
  10780. v-if="dialogVisibleTableTeacher"
  10781. ></Table>
  10782. </el-form>
  10783. <span slot="footer" class="dialog-footer">
  10784. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10785. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10786. </span>
  10787. </el-dialog>
  10788. <el-dialog
  10789. title="文档"
  10790. :visible.sync="dialogVisibleWord"
  10791. :append-to-body="true"
  10792. width="95%"
  10793. :before-close="handleClose"
  10794. class="dialog_diy"
  10795. >
  10796. <el-form>
  10797. <div>文档内容</div>
  10798. <editor-bar
  10799. v-model="wordJson.text"
  10800. v-if="dialogVisibleWord"
  10801. ></editor-bar>
  10802. </el-form>
  10803. <span slot="footer" class="dialog-footer">
  10804. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10805. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10806. </span>
  10807. </el-dialog>
  10808. <el-dialog
  10809. title="文档"
  10810. :visible.sync="dialogVisibleWordTeacher"
  10811. :append-to-body="true"
  10812. width="95%"
  10813. :before-close="handleClose"
  10814. class="dialog_diy"
  10815. >
  10816. <el-form>
  10817. <div class="w_name">
  10818. 学生姓名:<span>{{ sStudent.student }}</span>
  10819. </div>
  10820. <div>文档内容</div>
  10821. <editor-bar
  10822. v-model="wordJson.text"
  10823. v-if="dialogVisibleWordTeacher"
  10824. ></editor-bar>
  10825. </el-form>
  10826. <span slot="footer" class="dialog-footer">
  10827. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10828. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10829. </span>
  10830. </el-dialog>
  10831. <el-dialog
  10832. title="表格"
  10833. :visible.sync="dialogVisibleTable2"
  10834. :append-to-body="true"
  10835. width="95%"
  10836. :before-close="handleClose"
  10837. class="dialog_diy"
  10838. >
  10839. <el-form>
  10840. <div class="cont" v-html="tableJson.text"></div>
  10841. </el-form>
  10842. <span slot="footer" class="dialog-footer">
  10843. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10844. </span>
  10845. </el-dialog>
  10846. <el-dialog
  10847. title="文档"
  10848. :visible.sync="dialogVisibleTable3"
  10849. :append-to-body="true"
  10850. width="95%"
  10851. :before-close="handleClose"
  10852. class="dialog_diy"
  10853. >
  10854. <el-form>
  10855. <div class="cont" v-html="tableJson.text"></div>
  10856. </el-form>
  10857. <span slot="footer" class="dialog-footer">
  10858. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10859. </span>
  10860. </el-dialog>
  10861. <el-dialog
  10862. title="分组设置"
  10863. :visible.sync="dialogVisibleGroup"
  10864. :append-to-body="true"
  10865. width="95%"
  10866. :before-close="handleClose"
  10867. class="dialog_diy"
  10868. >
  10869. <div v-if="dialogVisibleGroup">
  10870. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10871. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10872. 提示:需要锁定位置,才能点击头像修改座位。
  10873. </div>
  10874. <div
  10875. type="primary"
  10876. v-if="groupJson.islock == 1"
  10877. class="returnBtn"
  10878. style="background-color: #225bc7"
  10879. @click="lockChair"
  10880. >
  10881. 锁定位置
  10882. </div>
  10883. <div
  10884. type="primary"
  10885. v-else
  10886. class="returnBtn"
  10887. style="background-color: #225bc7"
  10888. @click="lockChair"
  10889. >
  10890. 解锁位置
  10891. </div>
  10892. <div
  10893. type="primary"
  10894. @click="updateGroup"
  10895. class="returnBtn"
  10896. style="background-color: #225bc7"
  10897. >
  10898. 分组设置
  10899. </div>
  10900. </div>
  10901. <div>
  10902. <div
  10903. class="g_d_box"
  10904. v-if="groupJson.group && groupStudent[toolindex]"
  10905. >
  10906. <div
  10907. class="g_d_group"
  10908. v-for="(g, gindex) in groupJson.group"
  10909. :key="gindex"
  10910. >
  10911. <div class="g_d_group_chair">
  10912. <div v-if="groupJson.number > 1">
  10913. <span
  10914. :class="{
  10915. isChair:
  10916. groupStudent[toolindex][gindex] &&
  10917. groupStudent[toolindex][gindex][0],
  10918. updateChair:
  10919. courseDetail.userid == userid &&
  10920. groupStudent[toolindex][gindex] &&
  10921. groupStudent[toolindex][gindex][0] &&
  10922. groupJson.islock == 2,
  10923. }"
  10924. ><span
  10925. class="updateChairBtn"
  10926. @click="
  10927. updateGroupChair(
  10928. groupStudent[toolindex][gindex] &&
  10929. groupStudent[toolindex][gindex][0]
  10930. )
  10931. "
  10932. >修改</span
  10933. ></span
  10934. ><span>{{
  10935. groupStudent[toolindex][gindex] &&
  10936. groupStudent[toolindex][gindex][0]
  10937. ? groupStudent[toolindex][gindex] &&
  10938. groupStudent[toolindex][gindex][0].name
  10939. : "空位置"
  10940. }}</span>
  10941. </div>
  10942. <div v-if="groupJson.number > 4">
  10943. <span
  10944. :class="{
  10945. isChair:
  10946. groupStudent[toolindex][gindex] &&
  10947. groupStudent[toolindex][gindex][4],
  10948. updateChair:
  10949. courseDetail.userid == userid &&
  10950. groupStudent[toolindex][gindex] &&
  10951. groupStudent[toolindex][gindex][4] &&
  10952. groupJson.islock == 2,
  10953. }"
  10954. ><span
  10955. class="updateChairBtn"
  10956. @click="
  10957. updateGroupChair(
  10958. groupStudent[toolindex][gindex] &&
  10959. groupStudent[toolindex][gindex][4]
  10960. )
  10961. "
  10962. >修改</span
  10963. ></span
  10964. ><span>{{
  10965. groupStudent[toolindex][gindex] &&
  10966. groupStudent[toolindex][gindex][4]
  10967. ? groupStudent[toolindex][gindex] &&
  10968. groupStudent[toolindex][gindex][4].name
  10969. : "空位置"
  10970. }}</span>
  10971. </div>
  10972. <div v-if="groupJson.number > 8">
  10973. <span
  10974. :class="{
  10975. isChair:
  10976. groupStudent[toolindex][gindex] &&
  10977. groupStudent[toolindex][gindex][8],
  10978. updateChair:
  10979. courseDetail.userid == userid &&
  10980. groupStudent[toolindex][gindex] &&
  10981. groupStudent[toolindex][gindex][8] &&
  10982. groupJson.islock == 2,
  10983. }"
  10984. ><span
  10985. class="updateChairBtn"
  10986. @click="
  10987. updateGroupChair(
  10988. groupStudent[toolindex][gindex] &&
  10989. groupStudent[toolindex][gindex][8]
  10990. )
  10991. "
  10992. >修改</span
  10993. ></span
  10994. ><span>{{
  10995. groupStudent[toolindex][gindex] &&
  10996. groupStudent[toolindex][gindex][8]
  10997. ? groupStudent[toolindex][gindex] &&
  10998. groupStudent[toolindex][gindex][8].name
  10999. : "空位置"
  11000. }}</span>
  11001. </div>
  11002. </div>
  11003. <div class="g_d_group_tableBox">
  11004. <div class="g_d_group_chair2">
  11005. <div v-if="groupJson.number > 2">
  11006. <span
  11007. :class="{
  11008. isChair:
  11009. groupStudent[toolindex][gindex] &&
  11010. groupStudent[toolindex][gindex][2],
  11011. updateChair:
  11012. courseDetail.userid == userid &&
  11013. groupStudent[toolindex][gindex] &&
  11014. groupStudent[toolindex][gindex][2] &&
  11015. groupJson.islock == 2,
  11016. }"
  11017. ><span
  11018. class="updateChairBtn"
  11019. @click="
  11020. updateGroupChair(
  11021. groupStudent[toolindex][gindex] &&
  11022. groupStudent[toolindex][gindex][2]
  11023. )
  11024. "
  11025. >修改</span
  11026. ></span
  11027. ><span>{{
  11028. groupStudent[toolindex][gindex] &&
  11029. groupStudent[toolindex][gindex][2]
  11030. ? groupStudent[toolindex][gindex] &&
  11031. groupStudent[toolindex][gindex][2].name
  11032. : "空位置"
  11033. }}</span>
  11034. </div>
  11035. <div v-if="groupJson.number > 6">
  11036. <span
  11037. :class="{
  11038. isChair:
  11039. groupStudent[toolindex][gindex] &&
  11040. groupStudent[toolindex][gindex][6],
  11041. updateChair:
  11042. courseDetail.userid == userid &&
  11043. groupStudent[toolindex][gindex] &&
  11044. groupStudent[toolindex][gindex][6] &&
  11045. groupJson.islock == 2,
  11046. }"
  11047. ><span
  11048. class="updateChairBtn"
  11049. @click="
  11050. updateGroupChair(
  11051. groupStudent[toolindex][gindex] &&
  11052. groupStudent[toolindex][gindex][6]
  11053. )
  11054. "
  11055. >修改</span
  11056. ></span
  11057. ><span>{{
  11058. groupStudent[toolindex][gindex] &&
  11059. groupStudent[toolindex][gindex][6]
  11060. ? groupStudent[toolindex][gindex] &&
  11061. groupStudent[toolindex][gindex][6].name
  11062. : "空位置"
  11063. }}</span>
  11064. </div>
  11065. </div>
  11066. <div class="g_d_group_table">
  11067. <div>
  11068. {{ g.name }}
  11069. </div>
  11070. <div>
  11071. <div
  11072. v-if="
  11073. courseDetail.userid == userid && groupJson.islock == 2
  11074. "
  11075. @click="deleteGroupChair(gindex)"
  11076. >
  11077. 移除组员
  11078. </div>
  11079. <div
  11080. @click="selectGroup(gindex)"
  11081. v-else-if="
  11082. groupStudentUid[toolindex] &&
  11083. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11084. "
  11085. >
  11086. 加入分组
  11087. </div>
  11088. <div
  11089. @click="
  11090. exitGroup(
  11091. groupStudent[toolindex][gindex] &&
  11092. groupStudent[toolindex][gindex][
  11093. groupStudentUid[toolindex][gindex].indexOf(userid)
  11094. ].id
  11095. )
  11096. "
  11097. v-else-if="
  11098. groupStudentUid[toolindex] &&
  11099. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11100. "
  11101. >
  11102. 退出分组
  11103. </div>
  11104. </div>
  11105. </div>
  11106. <div class="g_d_group_chair2">
  11107. <div v-if="groupJson.number > 3">
  11108. <span
  11109. :class="{
  11110. isChair:
  11111. groupStudent[toolindex][gindex] &&
  11112. groupStudent[toolindex][gindex][3],
  11113. updateChair:
  11114. courseDetail.userid == userid &&
  11115. groupStudent[toolindex][gindex] &&
  11116. groupStudent[toolindex][gindex][3] &&
  11117. groupJson.islock == 2,
  11118. }"
  11119. ><span
  11120. class="updateChairBtn"
  11121. @click="
  11122. updateGroupChair(
  11123. groupStudent[toolindex][gindex] &&
  11124. groupStudent[toolindex][gindex][3]
  11125. )
  11126. "
  11127. >修改</span
  11128. ></span
  11129. ><span>{{
  11130. groupStudent[toolindex][gindex] &&
  11131. groupStudent[toolindex][gindex][3]
  11132. ? groupStudent[toolindex][gindex] &&
  11133. groupStudent[toolindex][gindex][3].name
  11134. : "空位置"
  11135. }}</span>
  11136. </div>
  11137. <div v-if="groupJson.number > 7">
  11138. <span
  11139. :class="{
  11140. isChair:
  11141. groupStudent[toolindex][gindex] &&
  11142. groupStudent[toolindex][gindex][7],
  11143. updateChair:
  11144. courseDetail.userid == userid &&
  11145. groupStudent[toolindex][gindex] &&
  11146. groupStudent[toolindex][gindex][7] &&
  11147. groupJson.islock == 2,
  11148. }"
  11149. ><span
  11150. class="updateChairBtn"
  11151. @click="
  11152. updateGroupChair(
  11153. groupStudent[toolindex][gindex] &&
  11154. groupStudent[toolindex][gindex][7]
  11155. )
  11156. "
  11157. >修改</span
  11158. ></span
  11159. ><span>{{
  11160. groupStudent[toolindex][gindex] &&
  11161. groupStudent[toolindex][gindex][7]
  11162. ? groupStudent[toolindex][gindex] &&
  11163. groupStudent[toolindex][gindex][7].name
  11164. : "空位置"
  11165. }}</span>
  11166. </div>
  11167. </div>
  11168. </div>
  11169. <div class="g_d_group_chair">
  11170. <div v-if="groupJson.number > 1">
  11171. <span
  11172. :class="{
  11173. isChair:
  11174. groupStudent[toolindex][gindex] &&
  11175. groupStudent[toolindex][gindex][1],
  11176. updateChair:
  11177. courseDetail.userid == userid &&
  11178. groupStudent[toolindex][gindex] &&
  11179. groupStudent[toolindex][gindex][1] &&
  11180. groupJson.islock == 2,
  11181. }"
  11182. ><span
  11183. class="updateChairBtn"
  11184. @click="
  11185. updateGroupChair(
  11186. groupStudent[toolindex][gindex] &&
  11187. groupStudent[toolindex][gindex][1]
  11188. )
  11189. "
  11190. >修改</span
  11191. ></span
  11192. ><span>{{
  11193. groupStudent[toolindex][gindex] &&
  11194. groupStudent[toolindex][gindex][1]
  11195. ? groupStudent[toolindex][gindex] &&
  11196. groupStudent[toolindex][gindex][1].name
  11197. : "空位置"
  11198. }}</span>
  11199. </div>
  11200. <div v-if="groupJson.number > 5">
  11201. <span
  11202. :class="{
  11203. isChair:
  11204. groupStudent[toolindex][gindex] &&
  11205. groupStudent[toolindex][gindex][5],
  11206. updateChair:
  11207. courseDetail.userid == userid &&
  11208. groupStudent[toolindex][gindex] &&
  11209. groupStudent[toolindex][gindex][5] &&
  11210. groupJson.islock == 2,
  11211. }"
  11212. ><span
  11213. class="updateChairBtn"
  11214. @click="
  11215. updateGroupChair(
  11216. groupStudent[toolindex][gindex] &&
  11217. groupStudent[toolindex][gindex][5]
  11218. )
  11219. "
  11220. >修改</span
  11221. ></span
  11222. ><span>{{
  11223. groupStudent[toolindex][gindex] &&
  11224. groupStudent[toolindex][gindex][5]
  11225. ? groupStudent[toolindex][gindex] &&
  11226. groupStudent[toolindex][gindex][5].name
  11227. : "空位置"
  11228. }}</span>
  11229. </div>
  11230. <div v-if="groupJson.number > 9">
  11231. <span
  11232. :class="{
  11233. isChair:
  11234. groupStudent[toolindex][gindex] &&
  11235. groupStudent[toolindex][gindex][9],
  11236. updateChair:
  11237. courseDetail.userid == userid &&
  11238. groupStudent[toolindex][gindex] &&
  11239. groupStudent[toolindex][gindex][9] &&
  11240. groupJson.islock == 2,
  11241. }"
  11242. ><span
  11243. class="updateChairBtn"
  11244. @click="
  11245. updateGroupChair(
  11246. groupStudent[toolindex][gindex] &&
  11247. groupStudent[toolindex][gindex][9]
  11248. )
  11249. "
  11250. >修改</span
  11251. ></span
  11252. ><span>{{
  11253. groupStudent[toolindex][gindex] &&
  11254. groupStudent[toolindex][gindex][9]
  11255. ? groupStudent[toolindex][gindex] &&
  11256. groupStudent[toolindex][gindex][9].name
  11257. : "空位置"
  11258. }}</span>
  11259. </div>
  11260. </div>
  11261. </div>
  11262. </div>
  11263. </div>
  11264. </div>
  11265. <span slot="footer" class="dialog-footer">
  11266. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11267. </span>
  11268. </el-dialog>
  11269. <el-dialog
  11270. title="分组设置"
  11271. :visible.sync="dialogVisibleGroup2"
  11272. :append-to-body="true"
  11273. width="650px"
  11274. :before-close="handleClose"
  11275. class="dialog_diy"
  11276. >
  11277. <div class="groupBox">
  11278. <div v-if="groupJson2.group" class="groupContent">
  11279. <div class="groupTitle">请设置小组数量</div>
  11280. <div
  11281. v-for="(item, index) in groupJson2.group"
  11282. :key="index"
  11283. class="groupName"
  11284. >
  11285. <span class="groupn">组{{ index + 1 }}名称:</span>
  11286. <el-input
  11287. v-model="item.name"
  11288. placeholder="请输入名称..."
  11289. style="width: 250px"
  11290. ></el-input>
  11291. <!-- <div class="groupBtn">
  11292. <el-button type="primary" size="small" @click="addGroup(index)">
  11293. 添加</el-button>
  11294. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11295. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11296. </div> -->
  11297. </div>
  11298. </div>
  11299. <div class="groupContent">
  11300. <div class="groupTitle">请设置每组人数数量</div>
  11301. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11302. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11303. <el-input-number
  11304. v-model="groupJson2.number"
  11305. :controls="false"
  11306. :min="2"
  11307. :max="10"
  11308. placeholder="2-10人以内"
  11309. ></el-input-number>
  11310. </div>
  11311. </div>
  11312. <span slot="footer" class="dialog-footer">
  11313. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11314. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11315. </span>
  11316. </el-dialog>
  11317. <el-dialog
  11318. title="作业提交"
  11319. :visible.sync="dialogVisibleGroupWork"
  11320. :append-to-body="true"
  11321. width="500px"
  11322. :before-close="handleClose"
  11323. class="dialog_change"
  11324. >
  11325. <div class="marginT">
  11326. <div>上传文件</div>
  11327. <div
  11328. class="chapter_add"
  11329. @click="addImg($event)"
  11330. v-if="studyJuri[0].cover.length == 0"
  11331. >
  11332. <div class="up_photo">
  11333. <img src="../../assets/icon/uploadImg.png" alt />
  11334. </div>
  11335. <!-- <input
  11336. type="file"
  11337. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11338. style="display: none"
  11339. @change="beforeUpload1($event, 1)"
  11340. /> -->
  11341. <input
  11342. type="file"
  11343. accept="*"
  11344. style="display: none"
  11345. @change="beforeUpload1($event, 1)"
  11346. />
  11347. </div>
  11348. <!-- capture="camera" -->
  11349. <div
  11350. class="chapter_add"
  11351. style="
  11352. display: flex;
  11353. width: 100%;
  11354. flex-direction: row;
  11355. flex-wrap: wrap;
  11356. justify-content: flex-start;
  11357. padding: 15px 0;
  11358. "
  11359. v-if="studyJuri[0].cover.length > 0"
  11360. >
  11361. <div class="upCover">
  11362. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11363. <img :src="word" alt v-else-if="fileType == 1" />
  11364. <img :src="video" alt v-else-if="fileType == 2" />
  11365. <img :src="word2" alt v-else-if="fileType == 3" />
  11366. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11367. <div class="deleteWord" @click="clean(1)">
  11368. <img src="../../assets/icon/deleteWorks.png" alt />
  11369. </div>
  11370. </div>
  11371. </div>
  11372. </div>
  11373. <div
  11374. class="upload_send"
  11375. @click="addCourseWorks2(taskCount)"
  11376. v-if="!proVisible"
  11377. >
  11378. 提交
  11379. </div>
  11380. </el-dialog>
  11381. <el-dialog
  11382. title="修改分组"
  11383. :visible.sync="dialogVisibleUpdateGroup"
  11384. :append-to-body="true"
  11385. width="350px"
  11386. :before-close="handleClose"
  11387. class="dialog_diy"
  11388. >
  11389. <div>
  11390. <h2>
  11391. {{ this.updateGroupUser.name }}
  11392. </h2>
  11393. <div style="color: rgb(171 171 171); margin-top: 10px">
  11394. 请选择要进入的分组
  11395. </div>
  11396. <el-radio-group v-model="checkChair">
  11397. <el-radio
  11398. style="display: block; margin-top: 20px"
  11399. v-for="(item, index) in updateGroupArray"
  11400. :label="item.label"
  11401. :key="index"
  11402. >{{ item.name }}</el-radio
  11403. >
  11404. </el-radio-group>
  11405. </div>
  11406. <span slot="footer" class="dialog-footer">
  11407. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11408. <el-button type="primary" @click="updateChair">确定</el-button>
  11409. </span>
  11410. </el-dialog>
  11411. <el-dialog
  11412. title="移除组员"
  11413. :visible.sync="dialogVisibleDeleteGroup"
  11414. :append-to-body="true"
  11415. width="350px"
  11416. :before-close="handleClose"
  11417. class="dialog_diy"
  11418. >
  11419. <div>
  11420. <h2>
  11421. {{ this.deleteGroupArray.name }}
  11422. </h2>
  11423. <div style="color: rgb(171 171 171); margin-top: 10px">
  11424. 请选择要删除的组员
  11425. </div>
  11426. <el-checkbox-group v-model="checkDeleteGroup">
  11427. <el-checkbox
  11428. style="display: block; margin-top: 20px"
  11429. v-for="(item, index) in deleteGroupUser"
  11430. :label="item.userid"
  11431. :key="index"
  11432. >{{ item.name }}</el-checkbox
  11433. >
  11434. </el-checkbox-group>
  11435. </div>
  11436. <span slot="footer" class="dialog-footer">
  11437. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11438. <el-button type="primary" @click="deleteChair">确定</el-button>
  11439. </span>
  11440. </el-dialog>
  11441. <el-dialog
  11442. title="批量上传"
  11443. :visible.sync="dialogVisiblePl"
  11444. :append-to-body="true"
  11445. width="700px"
  11446. :before-close="handleClose"
  11447. class="dialog_change"
  11448. >
  11449. <div class="marginT">
  11450. <div class="plworkBox">
  11451. <div
  11452. class="chapter_add"
  11453. style="
  11454. display: flex;
  11455. width: 150px;
  11456. flex-direction: row;
  11457. flex-wrap: wrap;
  11458. justify-content: flex-start;
  11459. margin: 0 10px 10px 0;
  11460. "
  11461. v-for="(item, index) in plworkFile"
  11462. :key="index"
  11463. >
  11464. <div class="upCover2">
  11465. <img
  11466. :src="item.url"
  11467. alt
  11468. v-if="item.fileType == 1"
  11469. @click="previewImg(item.url)"
  11470. />
  11471. <img :src="word" alt v-else-if="item.fileType == 4" />
  11472. <img :src="video" alt v-else />
  11473. <!-- <span class="picName">{{ item.name }}</span> -->
  11474. <!-- <el-input
  11475. v-model="item.username"
  11476. placeholder="请输入学生名字"
  11477. style="margin-top: 10px"
  11478. ></el-input> -->
  11479. <div
  11480. class="pl_select_box"
  11481. @click="
  11482. getUpdateMore(true, checkUpload(), item.username, index)
  11483. "
  11484. >
  11485. {{ getSName(item.username) }}
  11486. </div>
  11487. <!-- <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  11488. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  11489. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  11490. </el-option>
  11491. </el-select> -->
  11492. <div class="deleteWord" @click="clean2(index)">
  11493. <img src="../../assets/icon/deleteWorks.png" alt />
  11494. </div>
  11495. </div>
  11496. </div>
  11497. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11498. <div class="up_photo2">
  11499. <img src="../../assets/icon/plwork.png" alt />
  11500. <span>点击上传文件</span>
  11501. </div>
  11502. <input
  11503. type="file"
  11504. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11505. multiple="multiple"
  11506. style="display: none"
  11507. @change="beforeUpload3($event, 6)"
  11508. />
  11509. </div>
  11510. </div>
  11511. </div>
  11512. <!-- capture="camera" -->
  11513. <div
  11514. class="upload_send"
  11515. @click="addCourseWorksPl(taskCount)"
  11516. v-if="!proVisible2"
  11517. >
  11518. 提交
  11519. </div>
  11520. </el-dialog>
  11521. <el-dialog
  11522. title="修改名称"
  11523. :visible.sync="dialogVisibleSname"
  11524. width="500px"
  11525. :before-close="handleClose"
  11526. class="dialog_diy"
  11527. center
  11528. >
  11529. <div
  11530. style="
  11531. text-align: center;
  11532. display: flex;
  11533. align-items: center;
  11534. justify-content: center;
  11535. "
  11536. >
  11537. <span class="tian1">名称</span>
  11538. <div
  11539. class="pl_select_box"
  11540. style="margin-left: 10px; width: 200px"
  11541. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11542. >
  11543. {{ getSName(worksSName) }}
  11544. </div>
  11545. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11546. placeholder="请选择学生">
  11547. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11548. :value="item.userid">
  11549. </el-option>
  11550. </el-select> -->
  11551. <!-- <el-input
  11552. v-model="worksSName"
  11553. style="width: 250px; margin: 15px 0px"
  11554. ></el-input> -->
  11555. </div>
  11556. <span slot="footer" class="dialog-footer">
  11557. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11558. <el-button type="primary" @click="updateName">确 定</el-button>
  11559. </span>
  11560. </el-dialog>
  11561. <interVideo
  11562. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11563. :videoJson="videoJson"
  11564. :userid="userid"
  11565. :id="id"
  11566. :courseType="courseType"
  11567. :taskCount="taskCount"
  11568. :toolindex="toolindex"
  11569. ></interVideo>
  11570. <UpdateMore
  11571. :dialogVisibleMember.sync="dialogVisibleMember"
  11572. :cList="uploadStudentJuri"
  11573. :userid="userid"
  11574. :searchTN="worksSName2"
  11575. @setPlname="setPlname"
  11576. ></UpdateMore>
  11577. <wordCloud
  11578. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11579. :data="wordCloudData"
  11580. ></wordCloud>
  11581. <el-dialog
  11582. title="挑人"
  11583. :visible.sync="dialogVisiblePickPeople"
  11584. width="650px"
  11585. :before-close="handleClose"
  11586. class="dialog_diy"
  11587. center
  11588. >
  11589. <div class="pick_box">
  11590. <div
  11591. class="noWorksName"
  11592. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11593. v-for="(item, index) in uploadStudentJuri"
  11594. :key="index"
  11595. @click="pickStudent(item)"
  11596. >
  11597. {{ item.name }}
  11598. </div>
  11599. </div>
  11600. </el-dialog>
  11601. </div>
  11602. </template>
  11603. <script>
  11604. import "../../common/aws-sdk-2.235.1.min.js";
  11605. // import pdf from "../components/pdf3";
  11606. import pdf from "../components/vpdf";
  11607. import AskStatic from "../components/askStatic";
  11608. import AskStatic2 from "../components/askStatic2";
  11609. import AnswerData2 from "../components/answerData2";
  11610. import AnswerData from "../components/answerData";
  11611. import EditorBar from "../tools/wangEnduit.vue";
  11612. import Table from "../tools/table.vue";
  11613. import Time from "../tools/time.vue";
  11614. import Mind from "../tools/jsmind.vue";
  11615. import Sunburst from "../tools/sunburst";
  11616. import SeeBoard from "../tools/seeBoard";
  11617. import * as imageConversion from "image-conversion";
  11618. import Audio from "../components/audio.vue";
  11619. import ImgDraw from "../tools/imgDraw/imgDraw";
  11620. import { Empty } from "element-ui";
  11621. import RecordRTC from "recordrtc";
  11622. import interVideo from "../interVideo/index.vue";
  11623. import UpdateMore from "../updateMore/updateMore.vue";
  11624. import wordCloud from "../wordCloud/index.vue";
  11625. export default {
  11626. components: {
  11627. EditorBar,
  11628. Time,
  11629. pdf,
  11630. AskStatic,
  11631. AskStatic2,
  11632. Mind,
  11633. Sunburst,
  11634. SeeBoard,
  11635. AnswerData2,
  11636. AnswerData,
  11637. Audio,
  11638. ImgDraw,
  11639. Table,
  11640. interVideo,
  11641. UpdateMore,
  11642. wordCloud,
  11643. },
  11644. data() {
  11645. return {
  11646. bg: null,
  11647. drawShow: false,
  11648. dialogVisible: false,
  11649. dialogVisiblePl: false,
  11650. commentDialogVisible: false,
  11651. videoVisible: false,
  11652. isStar: false,
  11653. studentEvalDialogVisible: false,
  11654. studentEvalDialogVisibleTeacher: false,
  11655. dialogVisibleSelect: false,
  11656. dialogVisibleSelectTeacher: false,
  11657. dialogVisibleScore: false,
  11658. dialogVisibleSentence: false,
  11659. dialogVisibleSentenceTeacher: false,
  11660. dialogVisibleSentence1: false,
  11661. dialogVisibleWorks: false,
  11662. answerDialogVisibleTeacher: false,
  11663. dialogVisibleTable: false,
  11664. dialogVisibleTableTeacher: false,
  11665. dialogVisibleWord: false,
  11666. dialogVisibleWordTeacher: false,
  11667. dialogVisibleTable2: false,
  11668. dialogVisibleTable3: false,
  11669. dialogVisibleGroupWork: false,
  11670. dialogVisibleUpdateGroup: false,
  11671. dialogVisibleDeleteGroup: false,
  11672. dialogVisibleSname: false,
  11673. dialogVisibleVideo: false,
  11674. dialogVisiblePickPeople: false,
  11675. isClose: 0,
  11676. worksSName: "",
  11677. classJuri: [],
  11678. uploadStudentJuri: [],
  11679. uploadCid: "",
  11680. snameWid: "",
  11681. sStudent: {},
  11682. sTool: "",
  11683. bzText: "",
  11684. commentDetail: [],
  11685. selectAnswer: [],
  11686. videoDetail: {},
  11687. selectJson: {},
  11688. eScore: { eBzText: "", eStar: [] },
  11689. id: this.$route.query.courseId,
  11690. userid: this.$route.query.userid,
  11691. classId: this.$route.query.cid,
  11692. // courseTypeLine: this.$route.query.type,
  11693. oid: this.$route.query.oid,
  11694. org: this.$route.query.org,
  11695. tType: this.$route.query.tType,
  11696. courseType: this.$route.query.type,
  11697. screenType: this.$route.query.screenType,
  11698. tcid2: this.$route.query.tcid,
  11699. tcid: "",
  11700. pptImgUrl: "",
  11701. pptImgUrl1: "",
  11702. commentText: "",
  11703. full: false,
  11704. sIsOpen: false,
  11705. IsLookOpen: false,
  11706. IsFollow: false,
  11707. pzDialog: false,
  11708. contentDialog: false,
  11709. mlDialog: false,
  11710. type: 1,
  11711. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11712. sentenceList1: [],
  11713. tableJson: [],
  11714. wordJson: [],
  11715. vedio: [],
  11716. text: [],
  11717. textList: [],
  11718. line: [],
  11719. lineList: [],
  11720. chapTools: [],
  11721. chapToolList: [],
  11722. file: [],
  11723. fileC: [],
  11724. vedioTime: [],
  11725. upToolImg: "",
  11726. preTime: 0,
  11727. rateList: {
  11728. ca: 0,
  11729. },
  11730. rateParams: [],
  11731. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11732. studyJuri: [
  11733. {
  11734. content: "",
  11735. cover: [],
  11736. upVedio: [],
  11737. upFile: [],
  11738. },
  11739. ],
  11740. plworkFile: [],
  11741. mr: require("../../assets/vedioPic.png"),
  11742. word: require("../../assets/icon/isWord.png"),
  11743. word2: require("../../assets/icon/word2.png"),
  11744. video: require("../../assets/icon/isVideo.png"),
  11745. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11746. likes: require("../../assets/icon/comment/likes.png"),
  11747. scoreImg: require("../../assets/score.png"),
  11748. courseDetail: {},
  11749. isSelect: false,
  11750. chapInfo: [],
  11751. chapInfoList: [],
  11752. taskCount: 0,
  11753. imgList: [],
  11754. noImgList: [],
  11755. pzList: [],
  11756. PlTextList: [
  11757. "Excellent!",
  11758. "nice!",
  11759. "很有创意!",
  11760. "还不错哦~",
  11761. "继续努力哦~",
  11762. ],
  11763. isClickNav: "",
  11764. navId: "",
  11765. playerOptions: {
  11766. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11767. autoplay: false, //如果true,浏览器准备好时开始回放。
  11768. muted: false, // 默认情况下将会消除任何音频。
  11769. loop: false, // 导致视频一结束就重新开始。
  11770. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11771. language: "zh-CN",
  11772. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11773. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11774. sources: [
  11775. {
  11776. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11777. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11778. },
  11779. ],
  11780. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11781. // poster: dataRes.imgUrl, //你的封面地址
  11782. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11783. controlBar: {
  11784. timeDivider: true, //当前时间和持续时间的分隔符
  11785. durationDisplay: true, //显示持续时间
  11786. remainingTimeDisplay: false, //是否显示剩余时间功能
  11787. fullscreenToggle: true, //全屏按钮
  11788. },
  11789. },
  11790. playerOptions1: {
  11791. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11792. autoplay: false, //如果true,浏览器准备好时开始回放。
  11793. muted: false, // 默认情况下将会消除任何音频。
  11794. loop: false, // 导致视频一结束就重新开始。
  11795. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11796. language: "zh-CN",
  11797. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11798. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11799. sources: [
  11800. {
  11801. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11802. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11803. },
  11804. ],
  11805. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11806. // poster: dataRes.imgUrl, //你的封面地址
  11807. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11808. controlBar: {
  11809. timeDivider: true, //当前时间和持续时间的分隔符
  11810. durationDisplay: true, //显示持续时间
  11811. remainingTimeDisplay: false, //是否显示剩余时间功能
  11812. fullscreenToggle: true, //全屏按钮
  11813. },
  11814. },
  11815. playerO: {},
  11816. noneBtnImg: false,
  11817. proVisible: false,
  11818. proVisible2: false,
  11819. progress: 0,
  11820. isFinishSize: 0,
  11821. isAllSize: 0,
  11822. questionAnswer: "",
  11823. answerQ: "", //问答标题
  11824. rateJson: [],
  11825. wbCount: 0,
  11826. wordCount: 0,
  11827. mindCount: 0,
  11828. askCount: 0,
  11829. noteCount: 0,
  11830. mindNetWorkCount: 0,
  11831. libraryCount: 0,
  11832. workCount: 0,
  11833. timeCount: 0,
  11834. answerCount: 0,
  11835. trainCount: 0,
  11836. evalCount: 0,
  11837. dialogImageUrl: "",
  11838. pictureDialog: false,
  11839. toolTypeList: [],
  11840. dialogVisible1: false,
  11841. dialogVisible2: false,
  11842. dialogVisible3: false,
  11843. dialogVisible6: false,
  11844. dialogVisible4: false,
  11845. isNoHomeWork: false,
  11846. dialogVisible5: false,
  11847. dialogVisible5Teacher: false,
  11848. dialogVisibleChoice: false,
  11849. dialogVisibleChoiceTeacher: false,
  11850. answerDialogVisible: false,
  11851. juriVisible: false,
  11852. timeDialogVisible: false,
  11853. radio: [],
  11854. isAsk: false,
  11855. askJson: {
  11856. askCount: 1,
  11857. askTitle: "",
  11858. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11859. },
  11860. testJson: {},
  11861. checkJson: [],
  11862. askList: [],
  11863. answerList: [],
  11864. navList: [],
  11865. addPzDialog: false,
  11866. ispzType: 1,
  11867. pzConText: "",
  11868. worksStudent: [],
  11869. worksStudent2: [],
  11870. worksTeacher: [],
  11871. isCloseList: [],
  11872. workStudent: [],
  11873. groupStudent: [],
  11874. groupStudentUid: [],
  11875. noWorksS: [],
  11876. isWorksS: [],
  11877. noWorksStudent: [],
  11878. toolindex: 0,
  11879. groupIndex: 0,
  11880. workTypeB: false,
  11881. workTypeC: false,
  11882. isAnswer: false,
  11883. timer: null,
  11884. opertimer: null,
  11885. showType: 0,
  11886. fileType: 0,
  11887. showPDF: false,
  11888. noteName: "",
  11889. evaJuri: [],
  11890. evalua: "",
  11891. eTitle: "",
  11892. eName: "",
  11893. eJson: {},
  11894. fid: "", //一级
  11895. sid: "", //二级
  11896. tid: "", //二级
  11897. typeMode: 1,
  11898. eJSONNum: 0,
  11899. Etype: 1,
  11900. data: {
  11901. meta: {
  11902. name: "example",
  11903. author: "dd@163.com",
  11904. version: "0.2",
  11905. },
  11906. format: "node_array",
  11907. data: [{ id: "root", isroot: true, topic: "" }],
  11908. },
  11909. fullDialogVisible: false,
  11910. fulltype: "",
  11911. fullUrl: "",
  11912. commentIndexJson: {},
  11913. Stbodywidth: 0,
  11914. pzType: 1,
  11915. wScore: 0,
  11916. scoreDetail: "",
  11917. videoStart: false,
  11918. recorder: null,
  11919. groupJson: {},
  11920. groupJson2: {},
  11921. dialogVisibleGroup: false,
  11922. dialogVisibleGroup2: false,
  11923. updateGroupArray: [],
  11924. updateGroupUser: {},
  11925. deleteGroupUser: [],
  11926. deleteGroupArray: {},
  11927. checkChair: "",
  11928. checkDeleteGroup: [],
  11929. inviteCode: "",
  11930. courseGroupStudent: [],
  11931. courseGroupStudentUid: [],
  11932. courseGroup: {},
  11933. isGroup: false,
  11934. toolIndex: null,
  11935. tool: {},
  11936. isWorkTool: [
  11937. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11938. ], //, 40
  11939. videoJson: {},
  11940. toolType: 0,
  11941. checktoolArray: [],
  11942. vChapterData: [],
  11943. isUpdateToolDetail: false,
  11944. updateToolDetailInner: "",
  11945. plIndex: "",
  11946. worksSName2: "",
  11947. worksSid: "",
  11948. dialogVisibleWordCloud: false,
  11949. wordCloudData: [],
  11950. isPickStudent: [],
  11951. };
  11952. },
  11953. methods: {
  11954. jump() {
  11955. window.parent.postMessage({ tools: "43" }, "*");
  11956. },
  11957. getUpdateMore(f, checkboxList, searchTN, index) {
  11958. this.dialogVisibleMember = f;
  11959. this.checkboxList = checkboxList;
  11960. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  11961. this.plIndex = index;
  11962. },
  11963. setPlname(a) {
  11964. if (this.plworkFile.length) {
  11965. this.plworkFile[this.plIndex].username = a;
  11966. } else {
  11967. this.worksSName = a;
  11968. }
  11969. this.dialogVisibleMember = false;
  11970. },
  11971. previewImg(url) {
  11972. this.$hevueImgPreview(url);
  11973. },
  11974. checkImg(list) {
  11975. if (!list.length) {
  11976. return;
  11977. }
  11978. this.$hevueImgPreview({
  11979. multiple: true, // 开启多图预览模式
  11980. imgList: list, // 需要预览的多图数组
  11981. });
  11982. },
  11983. change(val) {
  11984. console.log(val);
  11985. },
  11986. goTo(path) {
  11987. this.$router.push(path);
  11988. },
  11989. handlePictureCardPreview(url) {
  11990. this.dialogImageUrl = url;
  11991. this.pictureDialog = true;
  11992. },
  11993. clean(type) {
  11994. if (type == 1) {
  11995. this.studyJuri[0].cover.splice(0, 1);
  11996. } else if (type == 2) {
  11997. this.studyJuri[0].upVedio.splice(0, 1);
  11998. } else {
  11999. this.studyJuri[0].upFile.splice(0, 1);
  12000. }
  12001. },
  12002. clean2(index) {
  12003. this.plworkFile.splice(index, 1);
  12004. },
  12005. handleClose(done) {
  12006. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12007. this.videoDetail.sources[0].src = "";
  12008. }
  12009. this.commentIndexJson = {};
  12010. done();
  12011. },
  12012. fullTools() {
  12013. this.full = !this.full;
  12014. },
  12015. imgChange(file, fileList, type) {
  12016. if (type == 1) {
  12017. var _tmp = this.studyJuri[0].cover;
  12018. } else if (type == 2) {
  12019. var _tmp = this.studyJuri[0].upVedio;
  12020. } else {
  12021. var _tmp = this.studyJuri[0].upFile;
  12022. }
  12023. this.noneBtnImg = _tmp.length >= 1;
  12024. },
  12025. setContent(bool) {
  12026. this.contentDialog = bool;
  12027. if (bool && this.mlDialog) {
  12028. document.querySelector(".workd_media").style.height = "650px";
  12029. } else {
  12030. document.querySelector(".workd_media").style.height = "auto";
  12031. }
  12032. },
  12033. setContent2(bool) {
  12034. this.mlDialog = bool;
  12035. if (bool && this.contentDialog) {
  12036. document.querySelector(".workd_media").style.height = "650px";
  12037. } else {
  12038. document.querySelector(".workd_media").style.height = "auto";
  12039. }
  12040. },
  12041. addImg(e) {
  12042. var el = e.currentTarget;
  12043. // this.$message.success('触发上传')
  12044. el.getElementsByTagName("input")[0].click();
  12045. e.target.value = "";
  12046. },
  12047. addSelectAnswer() {
  12048. let params = [
  12049. {
  12050. uid: this.userid,
  12051. cid: this.id,
  12052. stage: this.courseType,
  12053. task: this.taskCount,
  12054. tool: this.toolindex,
  12055. content: this.selectAnswer.answer,
  12056. type: 7,
  12057. },
  12058. ];
  12059. this.ajax
  12060. .post(this.$store.state.api + "addCourseWorks", params)
  12061. .then((res) => {
  12062. this.$message({
  12063. message: "提交成功",
  12064. type: "success",
  12065. });
  12066. this.dialogVisibleSelect = false;
  12067. // this.selectAnswer = {};
  12068. this.selectSWorks();
  12069. this.selectStudent();
  12070. })
  12071. .catch((err) => {
  12072. this.$message.error("提交失败");
  12073. console.error(err);
  12074. });
  12075. },
  12076. addSelectAnswerTeacher() {
  12077. let params = [
  12078. {
  12079. uid: this.sStudent.userid,
  12080. cid: this.id,
  12081. stage: this.courseType,
  12082. task: this.taskCount,
  12083. tool: this.toolindex,
  12084. content: this.selectAnswer.answer,
  12085. type: 7,
  12086. },
  12087. ];
  12088. this.ajax
  12089. .post(this.$store.state.api + "addCourseWorks", params)
  12090. .then((res) => {
  12091. this.$message({
  12092. message: "提交成功",
  12093. type: "success",
  12094. });
  12095. this.dialogVisibleSelectTeacher = false;
  12096. // this.selectAnswer = {};
  12097. this.selectSWorks();
  12098. this.selectStudent();
  12099. })
  12100. .catch((err) => {
  12101. this.$message.error("提交失败");
  12102. console.error(err);
  12103. });
  12104. },
  12105. addSenWorks() {
  12106. for (var i = 0; i < this.sentenceList.length; i++) {
  12107. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12108. if (
  12109. this.sentenceList[i].chooseSenList[j] == undefined ||
  12110. this.sentenceList[i].chooseSenList[j] == ""
  12111. ) {
  12112. this.$message.error("请将答案填写完整!");
  12113. return;
  12114. }
  12115. }
  12116. }
  12117. let params = [
  12118. {
  12119. uid: this.userid,
  12120. cid: this.id,
  12121. stage: this.courseType,
  12122. task: this.taskCount,
  12123. tool: this.toolindex,
  12124. content: JSON.stringify(this.sentenceList),
  12125. type: 9,
  12126. },
  12127. ];
  12128. this.ajax
  12129. .post(this.$store.state.api + "addCourseWorks", params)
  12130. .then((res) => {
  12131. this.$message({
  12132. message: "提交成功",
  12133. type: "success",
  12134. });
  12135. this.dialogVisibleSentence = false;
  12136. // this.selectAnswer = {};
  12137. this.selectSWorks();
  12138. this.selectStudent();
  12139. })
  12140. .catch((err) => {
  12141. this.$message.error("提交失败");
  12142. console.error(err);
  12143. });
  12144. },
  12145. addSenWorksTeacher() {
  12146. for (var i = 0; i < this.sentenceList.length; i++) {
  12147. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12148. if (
  12149. this.sentenceList[i].chooseSenList[j] == undefined ||
  12150. this.sentenceList[i].chooseSenList[j] == ""
  12151. ) {
  12152. this.$message.error("请将答案填写完整!");
  12153. return;
  12154. }
  12155. }
  12156. }
  12157. let params = [
  12158. {
  12159. uid: this.sStudent.userid,
  12160. cid: this.id,
  12161. stage: this.courseType,
  12162. task: this.taskCount,
  12163. tool: this.toolindex,
  12164. content: JSON.stringify(this.sentenceList),
  12165. type: 9,
  12166. },
  12167. ];
  12168. this.ajax
  12169. .post(this.$store.state.api + "addCourseWorks", params)
  12170. .then((res) => {
  12171. this.$message({
  12172. message: "提交成功",
  12173. type: "success",
  12174. });
  12175. this.dialogVisibleSentenceTeacher = false;
  12176. // this.selectAnswer = {};
  12177. this.selectSWorks();
  12178. this.selectStudent();
  12179. })
  12180. .catch((err) => {
  12181. this.$message.error("提交失败");
  12182. console.error(err);
  12183. });
  12184. },
  12185. addTableWorks() {
  12186. let params = [
  12187. {
  12188. uid: this.userid,
  12189. cid: this.id,
  12190. stage: this.courseType,
  12191. task: this.taskCount,
  12192. tool: this.toolindex,
  12193. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12194. type: 10,
  12195. },
  12196. ];
  12197. this.ajax
  12198. .post(this.$store.state.api + "addCourseWorks", params)
  12199. .then((res) => {
  12200. this.$message({
  12201. message: "提交成功",
  12202. type: "success",
  12203. });
  12204. this.dialogVisibleTable = false;
  12205. // this.selectAnswer = {};
  12206. this.selectSWorks();
  12207. this.selectStudent();
  12208. })
  12209. .catch((err) => {
  12210. this.$message.error("提交失败");
  12211. console.error(err);
  12212. });
  12213. },
  12214. addTableWorksTeacher() {
  12215. let params = [
  12216. {
  12217. uid: this.sStudent.userid,
  12218. cid: this.id,
  12219. stage: this.courseType,
  12220. task: this.taskCount,
  12221. tool: this.toolindex,
  12222. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12223. type: 10,
  12224. },
  12225. ];
  12226. this.ajax
  12227. .post(this.$store.state.api + "addCourseWorks", params)
  12228. .then((res) => {
  12229. this.$message({
  12230. message: "提交成功",
  12231. type: "success",
  12232. });
  12233. this.dialogVisibleTableTeacher = false;
  12234. // this.selectAnswer = {};
  12235. this.selectSWorks();
  12236. this.selectStudent();
  12237. })
  12238. .catch((err) => {
  12239. this.$message.error("提交失败");
  12240. console.error(err);
  12241. });
  12242. },
  12243. addWordWorks() {
  12244. let params = [
  12245. {
  12246. uid: this.userid,
  12247. cid: this.id,
  12248. stage: this.courseType,
  12249. task: this.taskCount,
  12250. tool: this.toolindex,
  12251. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12252. type: 13,
  12253. atool: 52,
  12254. },
  12255. ];
  12256. console.log(params);
  12257. this.ajax
  12258. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12259. .then((res) => {
  12260. this.$message({
  12261. message: "提交成功",
  12262. type: "success",
  12263. });
  12264. this.dialogVisibleWord = false;
  12265. // this.selectAnswer = {};
  12266. this.selectSWorks();
  12267. this.selectStudent();
  12268. })
  12269. .catch((err) => {
  12270. this.$message.error("提交失败");
  12271. console.error(err);
  12272. });
  12273. },
  12274. addWordWorksTeacher() {
  12275. let params = [
  12276. {
  12277. uid: this.sStudent.userid,
  12278. cid: this.id,
  12279. stage: this.courseType,
  12280. task: this.taskCount,
  12281. tool: this.toolindex,
  12282. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12283. type: 13,
  12284. atool: 52,
  12285. },
  12286. ];
  12287. console.log(params);
  12288. this.ajax
  12289. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12290. .then((res) => {
  12291. this.$message({
  12292. message: "提交成功",
  12293. type: "success",
  12294. });
  12295. this.dialogVisibleWordTeacher = false;
  12296. // this.selectAnswer = {};
  12297. this.selectSWorks();
  12298. this.selectStudent();
  12299. })
  12300. .catch((err) => {
  12301. this.$message.error("提交失败");
  12302. console.error(err);
  12303. });
  12304. },
  12305. addCourseWorks(i) {
  12306. var typesql;
  12307. if (this.fileType === 0) {
  12308. typesql = 1;
  12309. } else if (this.fileType === 1) {
  12310. typesql = 4;
  12311. } else if (this.fileType === 2) {
  12312. typesql = 5;
  12313. } else if (this.fileType === 3) {
  12314. typesql = 12;
  12315. }
  12316. if (!this.studyJuri[0].cover[0].url) {
  12317. this.$message.error("请上传文件");
  12318. return;
  12319. }
  12320. let params = [
  12321. {
  12322. uid: this.userid,
  12323. cid: this.id,
  12324. stage: this.courseType,
  12325. task: i,
  12326. tool: this.toolindex,
  12327. content: this.studyJuri[0].cover[0].url,
  12328. type: typesql,
  12329. },
  12330. ];
  12331. this.ajax
  12332. .post(this.$store.state.api + "addCourseWorksR", params)
  12333. .then((res) => {
  12334. this.$message({
  12335. message: "提交成功",
  12336. type: "success",
  12337. });
  12338. this.studyJuri[0].cover = [];
  12339. this.dialogVisible = false;
  12340. this.getCourseDetail();
  12341. })
  12342. .catch((err) => {
  12343. this.$message.error("提交失败");
  12344. console.error(err);
  12345. });
  12346. },
  12347. addCourseWorksPl(i) {
  12348. let _files = this.plworkFile;
  12349. var c = 1;
  12350. for (var k = 0; k < _files.length; k++) {
  12351. if (!_files[k].username) {
  12352. c = 2;
  12353. }
  12354. }
  12355. if (c == 2) {
  12356. this.$message.error("请填写学生姓名");
  12357. return;
  12358. }
  12359. let params = [
  12360. {
  12361. ateacher: this.userid,
  12362. cid: this.id,
  12363. stage: this.courseType,
  12364. task: i,
  12365. tool: this.toolindex,
  12366. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12367. },
  12368. ];
  12369. this.ajax
  12370. .post(this.$store.state.api + "addCourseWorksPl", params)
  12371. .then((res) => {
  12372. this.$message({
  12373. message: "提交成功",
  12374. type: "success",
  12375. });
  12376. this.plworkFile = [];
  12377. this.dialogVisiblePl = false;
  12378. this.getCourseDetail();
  12379. })
  12380. .catch((err) => {
  12381. this.$message.error("提交失败");
  12382. console.error(err);
  12383. });
  12384. },
  12385. addCourseWorks2(i) {
  12386. var typesql;
  12387. if (this.fileType === 0) {
  12388. typesql = 0;
  12389. } else if (this.fileType === 1) {
  12390. typesql = 1;
  12391. } else if (this.fileType === 2) {
  12392. typesql = 3;
  12393. } else if (this.fileType === 3) {
  12394. typesql = 12;
  12395. }
  12396. if (!this.studyJuri[0].cover[0].url) {
  12397. this.$message.error("请上传文件");
  12398. return;
  12399. }
  12400. let params = [
  12401. {
  12402. uid: this.userid,
  12403. cid: this.id,
  12404. stage: this.courseType,
  12405. task: i,
  12406. tool: this.toolindex,
  12407. content: JSON.stringify({
  12408. type: typesql,
  12409. groupIndex: this.groupIndex,
  12410. url: this.studyJuri[0].cover[0].url,
  12411. }).replaceAll(/%/g, "%25"),
  12412. type: 11,
  12413. atool: 49,
  12414. text: "",
  12415. },
  12416. ];
  12417. this.ajax
  12418. .post(this.$store.state.api + "addCourseWorks5", params)
  12419. .then((res) => {
  12420. this.$message({
  12421. message: "提交成功",
  12422. type: "success",
  12423. });
  12424. this.studyJuri[0].cover = [];
  12425. this.dialogVisibleGroupWork = false;
  12426. this.getCourseDetail();
  12427. })
  12428. .catch((err) => {
  12429. this.$message.error("提交失败");
  12430. console.error(err);
  12431. });
  12432. },
  12433. addCourseWorksGong(i, data, tool) {
  12434. let params = [
  12435. {
  12436. uid: this.userid,
  12437. cid: this.id,
  12438. stage: this.courseType,
  12439. task: this.taskCount,
  12440. tool: i,
  12441. content: data,
  12442. type: 12,
  12443. atool: tool,
  12444. text: "",
  12445. },
  12446. ];
  12447. this.ajax
  12448. .post(this.$store.state.api + "addCourseWorks5", params)
  12449. .then((res) => {
  12450. this.$message({
  12451. message: "提交成功",
  12452. type: "success",
  12453. });
  12454. this.studyJuri[0].cover = [];
  12455. this.selectSWorks();
  12456. this.selectStudent();
  12457. })
  12458. .catch((err) => {
  12459. this.$message.error("提交失败");
  12460. console.error(err);
  12461. });
  12462. },
  12463. addCourseWorksGongTeacher(i, data, tool) {
  12464. let params = [
  12465. {
  12466. uid: this.sStudent.userid,
  12467. cid: this.id,
  12468. stage: this.courseType,
  12469. task: this.taskCount,
  12470. tool: i,
  12471. content: data,
  12472. type: 12,
  12473. atool: tool,
  12474. text: "",
  12475. },
  12476. ];
  12477. this.ajax
  12478. .post(this.$store.state.api + "addCourseWorks5", params)
  12479. .then((res) => {
  12480. this.$message({
  12481. message: "提交成功",
  12482. type: "success",
  12483. });
  12484. this.studyJuri[0].cover = [];
  12485. this.dialogVisibleWorks = false;
  12486. this.selectSWorks();
  12487. this.selectStudent();
  12488. })
  12489. .catch((err) => {
  12490. this.$message.error("提交失败");
  12491. console.error(err);
  12492. });
  12493. },
  12494. addCourseWorksGongPl(i, data, tool, type) {
  12495. let params = [
  12496. {
  12497. uid: this.sStudent.userid,
  12498. cid: this.id,
  12499. stage: this.courseType,
  12500. task: this.taskCount,
  12501. tool: i,
  12502. content: data,
  12503. type: type,
  12504. atool: tool,
  12505. text: "",
  12506. },
  12507. ];
  12508. this.ajax
  12509. .post(this.$store.state.api + "addCourseWorks5", params)
  12510. .then((res) => {
  12511. this.$message({
  12512. message: "提交成功",
  12513. type: "success",
  12514. });
  12515. this.studyJuri[0].cover = [];
  12516. this.dialogVisibleWorks = false;
  12517. this.selectSWorks();
  12518. this.selectStudent();
  12519. })
  12520. .catch((err) => {
  12521. this.$message.error("提交失败");
  12522. console.error(err);
  12523. });
  12524. },
  12525. addCourseWorksTeacher(i) {
  12526. var typesql;
  12527. if (this.sTool == 32) {
  12528. this.addCourseWorksGongTeacher(
  12529. this.toolindex,
  12530. this.studyJuri[0].cover[0].url,
  12531. this.sTool
  12532. );
  12533. return;
  12534. }
  12535. if (this.fileType === 0) {
  12536. typesql = 1;
  12537. } else if (this.fileType === 1) {
  12538. typesql = 4;
  12539. } else if (this.fileType === 2) {
  12540. typesql = 5;
  12541. } else if (this.fileType === 3) {
  12542. typesql = 12;
  12543. }
  12544. if (this.sTool == 50) {
  12545. this.addCourseWorksGongPl(
  12546. this.toolindex,
  12547. this.studyJuri[0].cover[0].url,
  12548. this.sTool,
  12549. typesql
  12550. );
  12551. return;
  12552. }
  12553. if (!this.studyJuri[0].cover[0].url) {
  12554. this.$message.error("请上传文件");
  12555. return;
  12556. }
  12557. let params = [
  12558. {
  12559. uid: this.sStudent.userid,
  12560. cid: this.id,
  12561. stage: this.courseType,
  12562. task: i,
  12563. tool: this.toolindex,
  12564. content: this.studyJuri[0].cover[0].url,
  12565. type: typesql,
  12566. ateacher: this.userid,
  12567. },
  12568. ];
  12569. this.ajax
  12570. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12571. .then((res) => {
  12572. this.$message({
  12573. message: "提交成功",
  12574. type: "success",
  12575. });
  12576. this.studyJuri[0].cover = [];
  12577. this.dialogVisibleWorks = false;
  12578. this.getCourseDetail();
  12579. })
  12580. .catch((err) => {
  12581. this.$message.error("提交失败");
  12582. console.error(err);
  12583. });
  12584. },
  12585. selectUploadStudent(type) {
  12586. const loading = this.$loading.service({
  12587. background: "rgba(255, 255, 255, 0.7)",
  12588. target: document.body,
  12589. });
  12590. let params = {
  12591. cid: this.uploadCid,
  12592. oid: this.oid,
  12593. cn: "",
  12594. };
  12595. this.ajax
  12596. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12597. .then((res) => {
  12598. loading.close();
  12599. var studentK = [];
  12600. if (this.isWorksS[this.toolindex].length > 0) {
  12601. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12602. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12603. }
  12604. studentK = studentK.join(",");
  12605. }
  12606. this.uploadStudentJuri = res.data[0].filter((el) => {
  12607. return studentK.indexOf(el.userid) == -1;
  12608. });
  12609. if (this.worksSName && this.worksSid) {
  12610. this.uploadStudentJuri.push({
  12611. userid: this.worksSid,
  12612. name: this.worksSName,
  12613. });
  12614. }
  12615. if (type == 1) {
  12616. this.plworkFile = [];
  12617. this.dialogVisibleSname = true;
  12618. } else if (type == 2) {
  12619. this.dialogVisiblePl = true;
  12620. }
  12621. })
  12622. .catch((err) => {
  12623. loading.close();
  12624. console.error(err);
  12625. });
  12626. },
  12627. selectPickStudent() {
  12628. const loading = this.$loading.service({
  12629. background: "rgba(255, 255, 255, 0.7)",
  12630. target: document.body,
  12631. });
  12632. let params = {
  12633. cid: this.uploadCid,
  12634. oid: this.oid,
  12635. cn: "",
  12636. };
  12637. this.ajax
  12638. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12639. .then((res) => {
  12640. loading.close();
  12641. this.uploadStudentJuri = res.data[0];
  12642. this.dialogVisiblePickPeople = true;
  12643. })
  12644. .catch((err) => {
  12645. loading.close();
  12646. console.error(err);
  12647. });
  12648. },
  12649. arrayToArray(arrayo, arrayt) {
  12650. let array1 = arrayo;
  12651. let array2 = arrayt;
  12652. let commonElements = [];
  12653. for (let i = 0; i < array1.length; i++) {
  12654. for (let j = 0; j < array2.length; j++) {
  12655. if (array1[i] === array2[j]) {
  12656. commonElements.push(array1[i]);
  12657. }
  12658. }
  12659. }
  12660. return commonElements;
  12661. },
  12662. selectWorksStudent() {
  12663. let params = {
  12664. oid: this.oid,
  12665. cid: this.courseDetail.juri,
  12666. };
  12667. this.ajax
  12668. .get(this.$store.state.api + "selectWorksStudent", params)
  12669. .then((res) => {
  12670. var a = res.data[0];
  12671. for (var i = 0; i < this.isWorksS.length; i++) {
  12672. this.noWorksS[i] = [];
  12673. var studentK = [];
  12674. if (this.isWorksS[i].length > 0) {
  12675. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12676. studentK.push(this.isWorksS[i][z].uid);
  12677. }
  12678. studentK = studentK.join(",");
  12679. for (var j = 0; j < a.length; j++) {
  12680. // if (studentK.indexOf(a[j].userid) == -1) {
  12681. if (this.tcid) {
  12682. // a[j].classid.indexOf(this.tcid) != -1
  12683. if (
  12684. this.arrayToArray(
  12685. a[j].classid.split(","),
  12686. this.tcid.split(",")
  12687. ).length
  12688. ) {
  12689. this.noWorksS[i].push({
  12690. student: a[j].name,
  12691. userid: a[j].userid,
  12692. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12693. });
  12694. }
  12695. } else {
  12696. this.noWorksS[i].push({
  12697. student: a[j].name,
  12698. userid: a[j].userid,
  12699. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12700. });
  12701. }
  12702. // }
  12703. }
  12704. } else {
  12705. for (var k = 0; k < a.length; k++) {
  12706. if (this.tcid) {
  12707. if (
  12708. this.arrayToArray(
  12709. a[k].classid.split(","),
  12710. this.tcid.split(",")
  12711. ).length
  12712. ) {
  12713. this.noWorksS[i].push({
  12714. student: a[k].name,
  12715. userid: a[k].userid,
  12716. type: "1",
  12717. });
  12718. }
  12719. } else {
  12720. this.noWorksS[i].push({
  12721. student: a[k].name,
  12722. userid: a[k].userid,
  12723. type: "1",
  12724. });
  12725. }
  12726. }
  12727. }
  12728. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  12729. // let jscoreA = parseInt(a.type);
  12730. // let jscoreB = parseInt(b.type);
  12731. // return jscoreB - jscoreA;
  12732. // });
  12733. }
  12734. this.$forceUpdate();
  12735. if (
  12736. Object.keys(this.commentDetail).length &&
  12737. Object.keys(this.commentIndexJson).length &&
  12738. !this.dialogVisibleScore
  12739. ) {
  12740. let a = 1;
  12741. let c = this.commentIndexJson;
  12742. console.log(c);
  12743. if (
  12744. this.commentIndexJson.gindex ||
  12745. this.commentIndexJson.gindex === 0
  12746. ) {
  12747. for (
  12748. var i = 0;
  12749. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12750. i++
  12751. ) {
  12752. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12753. groupA: for (var k = 0; k < _el.length; k++) {
  12754. let el = _el[k];
  12755. if (el.wid == this.commentDetail.wid) {
  12756. a = 2;
  12757. this.commentOther(
  12758. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12759. this.commentIndexJson.toolIndex,
  12760. k,
  12761. this.commentIndexJson.gindex
  12762. );
  12763. break groupA;
  12764. }
  12765. }
  12766. }
  12767. if (a === 1) {
  12768. this.commentDetail = [];
  12769. this.commentIndexJson = {};
  12770. this.commentDialogVisible = false;
  12771. this.$message("此作业已被删除");
  12772. }
  12773. } else {
  12774. if (this.isGroup && this.commentIndexJson.gid) {
  12775. groupA: for (
  12776. var i = 0;
  12777. i < this.courseGroup.group.length;
  12778. i++
  12779. ) {
  12780. let _group = this.courseGroup.group[i];
  12781. if (_group.id == this.commentIndexJson.gid) {
  12782. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12783. for (var k = 0; k < _el2.length; k++) {
  12784. let el2 = _el2[k];
  12785. if (el2.wid == this.commentDetail.wid) {
  12786. a = 2;
  12787. this.commentOther(
  12788. _el2[k],
  12789. this.commentIndexJson.toolIndex,
  12790. k,
  12791. null,
  12792. this.commentIndexJson.gid
  12793. );
  12794. break groupA;
  12795. }
  12796. }
  12797. }
  12798. }
  12799. }
  12800. if (a == 1) {
  12801. for (
  12802. var i = 0;
  12803. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12804. i++
  12805. ) {
  12806. let el =
  12807. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12808. if (el.wid == this.commentDetail.wid) {
  12809. a = 2;
  12810. this.commentOther(
  12811. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12812. this.commentIndexJson.toolIndex,
  12813. i
  12814. );
  12815. break;
  12816. }
  12817. }
  12818. }
  12819. if (a === 1) {
  12820. this.commentDetail = [];
  12821. this.commentIndexJson = {};
  12822. this.commentDialogVisible = false;
  12823. this.$message("此作业已被删除");
  12824. }
  12825. }
  12826. }
  12827. })
  12828. .catch((err) => {
  12829. console.error(err);
  12830. });
  12831. },
  12832. selectStudent() {},
  12833. openVideo(w) {
  12834. this.videoDetail = {};
  12835. this.playerOptions1.sources[0].src = w.works;
  12836. this.videoDetail = this.playerOptions1;
  12837. this.videoVisible = true;
  12838. },
  12839. isLikes(wid, uid, t, c, isLikes) {
  12840. if (isLikes == false) {
  12841. let params = [
  12842. {
  12843. wid: wid,
  12844. lid: uid,
  12845. t: t,
  12846. c: c,
  12847. },
  12848. ];
  12849. this.ajax
  12850. .post(this.$store.state.api + "insertComment", params)
  12851. .then((res) => {
  12852. this.$message({
  12853. message: "点赞成功",
  12854. type: "success",
  12855. });
  12856. this.selectSWorks();
  12857. this.selectStudent();
  12858. })
  12859. .catch((err) => {
  12860. this.$message.error("点赞失败");
  12861. console.error(err);
  12862. });
  12863. } else {
  12864. let params = {
  12865. wid: wid,
  12866. lid: uid,
  12867. type: t,
  12868. };
  12869. this.ajax
  12870. .get(this.$store.state.api + "deleteComment", params)
  12871. .then((res) => {
  12872. this.$message({
  12873. message: "取消点赞成功",
  12874. type: "success",
  12875. });
  12876. this.selectSWorks();
  12877. this.selectStudent();
  12878. })
  12879. .catch((err) => {
  12880. console.error(err);
  12881. });
  12882. }
  12883. },
  12884. deleteComment(wid) {
  12885. this.$confirm("确定删除此评论吗?", "提示", {
  12886. confirmButtonText: "确定",
  12887. cancelButtonText: "取消",
  12888. type: "warning",
  12889. })
  12890. .then(() => {
  12891. let params = {
  12892. id: wid,
  12893. };
  12894. this.ajax
  12895. .get(this.$store.state.api + "deleteComment2", params)
  12896. .then((res) => {
  12897. this.$message({
  12898. message: "删除评论成功",
  12899. type: "success",
  12900. });
  12901. this.selectSWorks();
  12902. this.selectStudent();
  12903. })
  12904. .catch((err) => {
  12905. console.error(err);
  12906. });
  12907. })
  12908. .catch(() => {});
  12909. },
  12910. commentOther(w, toolIndex, wIndex, gindex, gid) {
  12911. this.commentIndexJson = {
  12912. toolIndex: toolIndex,
  12913. wIndex: wIndex,
  12914. gindex: gindex,
  12915. gid: gid,
  12916. };
  12917. this.commentDetail = [];
  12918. this.commentDialogVisible = true;
  12919. this.commentDetail = w;
  12920. if (w.works && w.type == 1) {
  12921. this.pptImgUrl = "";
  12922. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12923. if (
  12924. a.indexOf(
  12925. w.works
  12926. .split(".")
  12927. [w.works.split(".").length - 1].toLocaleUpperCase()
  12928. ) != -1
  12929. ) {
  12930. this.pptImgUrl =
  12931. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12932. this.showPDF = false;
  12933. } else if (
  12934. w.works
  12935. .split(".")
  12936. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12937. ) {
  12938. this.pptImgUrl = w.works;
  12939. this.showPDF = true;
  12940. }
  12941. } else if (w.works && w.type == 3) {
  12942. this.videoDetail = {};
  12943. this.playerOptions1.sources[0].src = w.works;
  12944. this.videoDetail = this.playerOptions1;
  12945. // this.videoVisible = true;
  12946. } else if (w.works && w.type == 4) {
  12947. this.eScore = JSON.parse(w.works);
  12948. this.rateJson =
  12949. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12950. this.taskCount
  12951. ].toolChoose[toolIndex].rateJson;
  12952. } else if (w.works && w.type == 10) {
  12953. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  12954. } else if (w.works && w.type == 13) {
  12955. this.wordJson =
  12956. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12957. this.taskCount
  12958. ].toolChoose[toolIndex].wordJson;
  12959. }
  12960. },
  12961. openScore(w) {
  12962. this.wScore = 0;
  12963. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  12964. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  12965. this.commentDetail = [];
  12966. this.dialogVisibleScore = true;
  12967. this.commentDetail = w;
  12968. if (w.works && w.type == 1) {
  12969. this.pptImgUrl = "";
  12970. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12971. if (
  12972. a.indexOf(
  12973. w.works
  12974. .split(".")
  12975. [w.works.split(".").length - 1].toLocaleUpperCase()
  12976. ) != -1
  12977. ) {
  12978. this.pptImgUrl =
  12979. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12980. this.showPDF = false;
  12981. } else if (
  12982. w.works
  12983. .split(".")
  12984. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12985. ) {
  12986. this.pptImgUrl = w.works;
  12987. this.showPDF = true;
  12988. }
  12989. } else if (w.works && w.type == 3) {
  12990. this.videoDetail = {};
  12991. this.playerOptions1.sources[0].src = w.works;
  12992. this.videoDetail = this.playerOptions1;
  12993. }
  12994. },
  12995. addComment(wid, uid, t) {
  12996. if (this.commentText == "") {
  12997. this.$message.error("请输入评论");
  12998. return;
  12999. }
  13000. let params2 = [
  13001. {
  13002. wid: wid,
  13003. lid: uid,
  13004. t: t,
  13005. },
  13006. ];
  13007. this.ajax
  13008. .post(this.$store.state.api + "getComment", params2)
  13009. .then((res) => {
  13010. if (res.data[0].length > 0) {
  13011. this.$message.error("一个作业只能评论一条");
  13012. } else {
  13013. let params = [
  13014. {
  13015. wid: wid,
  13016. lid: uid,
  13017. t: t,
  13018. c: this.commentText,
  13019. },
  13020. ];
  13021. this.ajax
  13022. .post(this.$store.state.api + "insertComment", params)
  13023. .then((res) => {
  13024. this.$message({
  13025. message: "评论成功",
  13026. type: "success",
  13027. });
  13028. this.commentText = "";
  13029. this.selectSWorks();
  13030. this.selectStudent();
  13031. })
  13032. .catch((err) => {
  13033. this.$message.error("评论失败");
  13034. console.error(err);
  13035. });
  13036. }
  13037. })
  13038. .catch((err) => {
  13039. // this.$message.error("评论失败");
  13040. console.error(err);
  13041. });
  13042. },
  13043. scoreWork(wid) {
  13044. if (this.wScore == 0) {
  13045. this.$message.error("请评分");
  13046. return;
  13047. }
  13048. let params = [
  13049. {
  13050. wid: wid,
  13051. score: JSON.stringify({
  13052. wScore: this.wScore,
  13053. detail: this.scoreDetail,
  13054. }),
  13055. },
  13056. ];
  13057. this.ajax
  13058. .post(this.$store.state.api + "scoreWork", params)
  13059. .then((res) => {
  13060. this.$message({
  13061. message: "评分成功",
  13062. type: "success",
  13063. });
  13064. this.wScore = 0;
  13065. this.scoreDetail = "";
  13066. this.dialogVisibleScore = false;
  13067. this.selectSWorks();
  13068. this.selectStudent();
  13069. })
  13070. .catch((err) => {
  13071. this.$message.error("评分失败");
  13072. console.error(err);
  13073. });
  13074. },
  13075. openXz(w, i) {
  13076. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13077. .taskJson[this.taskCount].toolChoose[i].selectJson
  13078. ? JSON.parse(
  13079. JSON.stringify(
  13080. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13081. this.taskCount
  13082. ].toolChoose[i].selectJson
  13083. )
  13084. )
  13085. : { url: "", select: [], answer: [] };
  13086. var a = w.works.split(",");
  13087. for (var k = 0; k < a.length; k++) {
  13088. a[k] = parseInt(a[k]);
  13089. }
  13090. this.selectAnswer = { answer: a, stu: w.sName };
  13091. this.isSelect = true;
  13092. this.dialogVisibleSelect = true;
  13093. },
  13094. openSen(w, i) {
  13095. this.sentenceList1 = JSON.parse(w.works);
  13096. this.sentenceList1.stuName = w.sName;
  13097. this.dialogVisibleSentence1 = true;
  13098. },
  13099. openPj(w, toolindex) {
  13100. this.isStar = true;
  13101. this.eScore = JSON.parse(w);
  13102. this.rateJson =
  13103. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13104. this.taskCount
  13105. ].toolChoose[toolindex].rateJson;
  13106. this.studentEvalDialogVisible = true;
  13107. },
  13108. deleteWorks(id) {
  13109. this.$confirm("确定删除此作业吗?", "提示", {
  13110. confirmButtonText: "确定",
  13111. cancelButtonText: "取消",
  13112. type: "warning",
  13113. })
  13114. .then(() => {
  13115. let params = [
  13116. {
  13117. id: id,
  13118. },
  13119. ];
  13120. this.ajax
  13121. .post(this.$store.state.api + "deleteCourseWork", params)
  13122. .then((res) => {
  13123. this.$message({
  13124. message: "删除成功",
  13125. type: "success",
  13126. });
  13127. this.selectStudent();
  13128. this.selectSWorks();
  13129. this.selectSLook();
  13130. })
  13131. .catch((err) => {
  13132. this.$message.error("网络异常");
  13133. console.error(err);
  13134. });
  13135. })
  13136. .catch(() => {});
  13137. },
  13138. selectSWorks(gindex) {
  13139. //教师查看全部作业
  13140. let params = {
  13141. cid: this.id,
  13142. s: this.courseType,
  13143. t: this.taskCount,
  13144. };
  13145. this.ajax
  13146. .get(this.$store.state.api + "selectSWorks", params)
  13147. .then((res) => {
  13148. var a =
  13149. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13150. this.taskCount
  13151. ].toolChoose;
  13152. var b = res.data[0];
  13153. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13154. var y = [
  13155. "AVI",
  13156. "NAVI",
  13157. "MPEG",
  13158. "ASF",
  13159. "MOV",
  13160. "WMV",
  13161. "3GP",
  13162. "RM",
  13163. "RMVB",
  13164. "FLV",
  13165. "F4V",
  13166. "H.264",
  13167. "H.265",
  13168. "REAL VIDEO",
  13169. "MKV",
  13170. "WebM",
  13171. "HDDVD",
  13172. "MP4",
  13173. "MPG",
  13174. "M4V",
  13175. "MGV",
  13176. "OGV",
  13177. "QTM",
  13178. "STR",
  13179. "AMC",
  13180. "DVX",
  13181. "EVO",
  13182. "DAT",
  13183. "OGG",
  13184. "OGM",
  13185. ];
  13186. var d = res.data[1];
  13187. var e = res.data[2];
  13188. var f = res.data[3];
  13189. for (var i = 0; i < a.length; i++) {
  13190. this.worksStudent[i] = [];
  13191. this.worksTeacher[i] = [];
  13192. this.worksStudent2[i] = [];
  13193. if (
  13194. !this.isCloseList[i] ||
  13195. this.isCloseList[i].isClose == undefined
  13196. ) {
  13197. this.isCloseList[i] = { isClose: 0 };
  13198. }
  13199. this.groupStudent[i] = [];
  13200. this.groupStudentUid[i] = [];
  13201. this.isWorksS[i] = [];
  13202. this.checkJson[i] = [];
  13203. if (a[i].tool[0] == 49) {
  13204. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13205. this.groupStudent[i][gA] = [];
  13206. this.groupStudentUid[i][gA] = [];
  13207. this.worksStudent[i][gA] = [];
  13208. this.isCloseList[i][gA] = [];
  13209. for (var g = 0; g < f.length; g++) {
  13210. if (
  13211. f[g].ttype == 2 &&
  13212. this.tcid &&
  13213. this.arrayToArray(
  13214. f[g].classid.split(","),
  13215. this.tcid.split(",")
  13216. ).length == 0
  13217. ) {
  13218. continue;
  13219. }
  13220. if (gA == f[g].group && f[g].tool == i) {
  13221. this.groupStudent[i][gA].push(f[g]);
  13222. this.groupStudentUid[i][gA].push(f[g].userid);
  13223. }
  13224. }
  13225. }
  13226. this.$forceUpdate();
  13227. }
  13228. for (var j = 0; j < b.length; j++) {
  13229. if (
  13230. b[j].ttype == 2 &&
  13231. this.tcid &&
  13232. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13233. .length == 0
  13234. ) {
  13235. continue;
  13236. }
  13237. var likesCount = 0;
  13238. var commentCount = 0;
  13239. var isLikes = false;
  13240. var commentJson = [];
  13241. var data = b[j];
  13242. if (i == b[j].tool) {
  13243. if (data.type == 2 && a[i].tool[0] == 4) {
  13244. // if(JSON.parse(data.content)[0].anwer){
  13245. var checkL =
  13246. JSON.parse(data.content)[0].anwer instanceof Array
  13247. ? JSON.parse(data.content)[0].anwer
  13248. : JSON.parse(data.content)[0].anwer.split(",");
  13249. for (var z = 0; z < checkL.length; z++) {
  13250. if (!this.checkJson[i][z]) {
  13251. this.checkJson[i].push({
  13252. checkCount: [],
  13253. checkPerson: [],
  13254. rightPerson: [],
  13255. });
  13256. }
  13257. if (!this.checkJson[i][z].checkCount.length) {
  13258. this.checkJson[i][z].checkCount = [];
  13259. let _askItemCount = JSON.parse(data.content)[0].askJson
  13260. .askJson[z].askItem;
  13261. for (var aic = 0; aic < _askItemCount; aic++) {
  13262. this.checkJson[i][z].checkCount.push(0);
  13263. }
  13264. }
  13265. if (checkL[z] instanceof Array) {
  13266. if (
  13267. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13268. checkL[z].sort().join(",")
  13269. ) {
  13270. this.checkJson[i][z].rightPerson.push(data.name);
  13271. }
  13272. for (var q = 0; q < checkL[z].length; q++) {
  13273. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13274. ? this.checkJson[i][z].checkPerson[
  13275. parseInt(checkL[z][q])
  13276. ].push(data.name)
  13277. : (this.checkJson[i][z].checkPerson[
  13278. parseInt(checkL[z][q])
  13279. ] = [data.name]);
  13280. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13281. ? this.checkJson[i][z].checkCount[
  13282. parseInt(checkL[z][q])
  13283. ]++
  13284. : (this.checkJson[i][z].checkCount[
  13285. parseInt(checkL[z][q])
  13286. ] = 1);
  13287. }
  13288. } else {
  13289. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13290. this.checkJson[i][z].rightPerson.push(data.name);
  13291. }
  13292. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13293. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13294. ? this.checkJson[i][z].checkPerson[
  13295. parseInt(checkL[z])
  13296. ].push(data.name)
  13297. : (this.checkJson[i][z].checkPerson[
  13298. parseInt(checkL[z])
  13299. ] = [data.name]);
  13300. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13301. ? this.checkJson[i][z].checkCount[
  13302. parseInt(checkL[z])
  13303. ]++
  13304. : (this.checkJson[i][z].checkCount[
  13305. parseInt(checkL[z])
  13306. ] = 1);
  13307. }
  13308. }
  13309. }
  13310. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13311. var checkL = JSON.parse(data.content)[0].anwer;
  13312. for (var z = 0; z < checkL.length; z++) {
  13313. if (!this.checkJson[i][z]) {
  13314. this.checkJson[i].push({
  13315. checkCount: [],
  13316. checkPerson: [],
  13317. rightPerson: [],
  13318. });
  13319. }
  13320. if (!this.checkJson[i][z].checkCount.length) {
  13321. this.checkJson[i][z].checkCount = [];
  13322. let _askItemCount = JSON.parse(data.content)[0].testJson
  13323. .testJson[z].testItem;
  13324. console.log(_askItemCount);
  13325. for (var aic = 0; aic < _askItemCount; aic++) {
  13326. this.checkJson[i][z].checkCount.push(0);
  13327. }
  13328. }
  13329. if (checkL[z] instanceof Array) {
  13330. if (
  13331. JSON.parse(data.content)[0]
  13332. .testJson.testJson[z].answer.sort()
  13333. .join(",") == checkL[z].sort().join(",")
  13334. ) {
  13335. this.checkJson[i][z].rightPerson.push(data.name);
  13336. }
  13337. for (var q = 0; q < checkL[z].length; q++) {
  13338. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13339. ? this.checkJson[i][z].checkPerson[
  13340. parseInt(checkL[z][q])
  13341. ].push(data.name)
  13342. : (this.checkJson[i][z].checkPerson[
  13343. parseInt(checkL[z][q])
  13344. ] = [data.name]);
  13345. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13346. ? this.checkJson[i][z].checkCount[
  13347. parseInt(checkL[z][q])
  13348. ]++
  13349. : (this.checkJson[i][z].checkCount[
  13350. parseInt(checkL[z][q])
  13351. ] = 1);
  13352. }
  13353. } else {
  13354. if (
  13355. JSON.parse(data.content)[0].testJson.testJson[z]
  13356. .answer == checkL[z]
  13357. ) {
  13358. this.checkJson[i][z].rightPerson.push(data.name);
  13359. }
  13360. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13361. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13362. ? this.checkJson[i][z].checkPerson[
  13363. parseInt(checkL[z])
  13364. ].push(data.name)
  13365. : (this.checkJson[i][z].checkPerson[
  13366. parseInt(checkL[z])
  13367. ] = [data.name]);
  13368. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13369. ? this.checkJson[i][z].checkCount[
  13370. parseInt(checkL[z])
  13371. ]++
  13372. : (this.checkJson[i][z].checkCount[
  13373. parseInt(checkL[z])
  13374. ] = 1);
  13375. }
  13376. }
  13377. }
  13378. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13379. var checkL = JSON.parse(data.content);
  13380. for (var z = 0; z < checkL.length; z++) {
  13381. if (!this.checkJson[i][z]) {
  13382. this.checkJson[i].push({
  13383. checkCount: [],
  13384. checkPerson: [],
  13385. rightPerson: [],
  13386. });
  13387. }
  13388. this.checkJson[i][z].checkPerson.push(data.name);
  13389. if (
  13390. checkL[z].chooseSenList.toString() ==
  13391. checkL[z].rightAnswer.toString()
  13392. ) {
  13393. this.checkJson[i][z].rightPerson.push(data.name);
  13394. }
  13395. }
  13396. }
  13397. for (var k = 0; k < d.length; k++) {
  13398. //点赞
  13399. if (d[k].workId == b[j].id) {
  13400. likesCount++;
  13401. if (d[k].likesId == this.userid) {
  13402. isLikes = true;
  13403. }
  13404. }
  13405. }
  13406. for (var l = 0; l < e.length; l++) {
  13407. //评论
  13408. if (e[l].workId == b[j].id) {
  13409. if (e[l].comment != "") {
  13410. commentCount++;
  13411. commentJson.push({
  13412. commentText: e[l].comment,
  13413. commentTime: e[l].commentTime,
  13414. commentPeople: e[l].commentPeople,
  13415. userid: e[l].userid,
  13416. wid: e[l].id,
  13417. });
  13418. }
  13419. }
  13420. }
  13421. if (
  13422. (b[j].type == 1 ||
  13423. b[j].type == 4 ||
  13424. b[j].type == 5 ||
  13425. b[j].type == 6 ||
  13426. b[j].type == 12 ||
  13427. b[j].type == 7) &&
  13428. a[i].tool[0] != 15 &&
  13429. a[i].tool[0] != 4 &&
  13430. a[i].tool[0] != 45 &&
  13431. a[i].tool[0] != 50 &&
  13432. a[i].tool[0] != 32 &&
  13433. a[i].tool[0] != 57 &&
  13434. a[i].tool[0] != 52
  13435. ) {
  13436. if (
  13437. c.indexOf(
  13438. b[j].content
  13439. .split(".")
  13440. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13441. ) != -1 &&
  13442. a[i].tool[0] == 16 &&
  13443. b[j].atool != 50
  13444. ) {
  13445. let _works = {
  13446. userid: b[j].userid,
  13447. ateacher: b[j].ateacher,
  13448. wid: b[j].id,
  13449. works: b[j].content,
  13450. sName: b[j].name,
  13451. type: 1,
  13452. time: b[j].time,
  13453. score: b[j].score,
  13454. img: b[j].img,
  13455. likesCount: likesCount,
  13456. commentCount: commentCount,
  13457. isLikes: isLikes,
  13458. commentJson: commentJson,
  13459. };
  13460. if (b[j].ttype == 1) {
  13461. this.worksTeacher[i].push(_works);
  13462. } else {
  13463. this.worksStudent2[i].push(_works);
  13464. }
  13465. this.worksStudent[i].push(_works);
  13466. this.isWorksS[i].push({
  13467. uid: b[j].userid,
  13468. sName: b[j].name,
  13469. });
  13470. } else if (
  13471. y.indexOf(
  13472. b[j].content
  13473. .split(".")
  13474. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13475. ) != -1 &&
  13476. a[i].tool[0] == 16 &&
  13477. b[j].atool != 50
  13478. ) {
  13479. let _works = {
  13480. userid: b[j].userid,
  13481. ateacher: b[j].ateacher,
  13482. wid: b[j].id,
  13483. works: b[j].content,
  13484. sName: b[j].name,
  13485. type: 3,
  13486. time: b[j].time,
  13487. score: b[j].score,
  13488. img: b[j].img,
  13489. likesCount: likesCount,
  13490. commentCount: commentCount,
  13491. isLikes: isLikes,
  13492. commentJson: commentJson,
  13493. };
  13494. if (b[j].ttype == 1) {
  13495. this.worksTeacher[i].push(_works);
  13496. } else {
  13497. this.worksStudent2[i].push(_works);
  13498. }
  13499. this.worksStudent[i].push(_works);
  13500. this.isWorksS[i].push({
  13501. uid: b[j].userid,
  13502. sName: b[j].name,
  13503. });
  13504. } else if (b[j].type == 6 && b[j].atool != 50) {
  13505. let _works = {
  13506. userid: b[j].userid,
  13507. ateacher: b[j].ateacher,
  13508. wid: b[j].id,
  13509. works: b[j].content,
  13510. sName: b[j].name,
  13511. type: 4,
  13512. time: b[j].time,
  13513. score: b[j].score,
  13514. img: b[j].img,
  13515. likesCount: likesCount,
  13516. commentCount: commentCount,
  13517. isLikes: isLikes,
  13518. commentJson: commentJson,
  13519. };
  13520. if (b[j].ttype == 1) {
  13521. this.worksTeacher[i].push(_works);
  13522. } else {
  13523. this.worksStudent2[i].push(_works);
  13524. }
  13525. this.worksStudent[i].push(_works);
  13526. this.isWorksS[i].push({
  13527. uid: b[j].userid,
  13528. sName: b[j].name,
  13529. });
  13530. } else if (b[j].type == 7 && b[j].atool != 50) {
  13531. let _works = {
  13532. userid: b[j].userid,
  13533. ateacher: b[j].ateacher,
  13534. wid: b[j].id,
  13535. works: b[j].content,
  13536. sName: b[j].name,
  13537. type: 5,
  13538. time: b[j].time,
  13539. score: b[j].score,
  13540. img: b[j].img,
  13541. likesCount: likesCount,
  13542. commentCount: commentCount,
  13543. isLikes: isLikes,
  13544. commentJson: commentJson,
  13545. };
  13546. if (b[j].ttype == 1) {
  13547. this.worksTeacher[i].push(_works);
  13548. } else {
  13549. this.worksStudent2[i].push(_works);
  13550. }
  13551. this.worksStudent[i].push(_works);
  13552. this.isWorksS[i].push({
  13553. uid: b[j].userid,
  13554. sName: b[j].name,
  13555. });
  13556. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13557. let _works = {
  13558. userid: b[j].userid,
  13559. ateacher: b[j].ateacher,
  13560. wid: b[j].id,
  13561. works: b[j].content,
  13562. sName: b[j].name,
  13563. type: 12,
  13564. time: b[j].time,
  13565. score: b[j].score,
  13566. img: b[j].img,
  13567. likesCount: likesCount,
  13568. commentCount: commentCount,
  13569. isLikes: isLikes,
  13570. commentJson: commentJson,
  13571. };
  13572. if (b[j].ttype == 1) {
  13573. this.worksTeacher[i].push(_works);
  13574. } else {
  13575. this.worksStudent2[i].push(_works);
  13576. }
  13577. this.worksStudent[i].push(_works);
  13578. this.isWorksS[i].push({
  13579. uid: b[j].userid,
  13580. sName: b[j].name,
  13581. });
  13582. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13583. let _works = {
  13584. userid: b[j].userid,
  13585. ateacher: b[j].ateacher,
  13586. wid: b[j].id,
  13587. works: b[j].content,
  13588. sName: b[j].name,
  13589. type: 0,
  13590. time: b[j].time,
  13591. score: b[j].score,
  13592. img: b[j].img,
  13593. likesCount: likesCount,
  13594. commentCount: commentCount,
  13595. isLikes: isLikes,
  13596. commentJson: commentJson,
  13597. };
  13598. if (b[j].ttype == 1) {
  13599. this.worksTeacher[i].push(_works);
  13600. } else {
  13601. this.worksStudent2[i].push(_works);
  13602. }
  13603. this.worksStudent[i].push(_works);
  13604. this.isWorksS[i].push({
  13605. uid: b[j].userid,
  13606. sName: b[j].name,
  13607. });
  13608. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13609. let _works = {
  13610. userid: b[j].userid,
  13611. ateacher: b[j].ateacher,
  13612. wid: b[j].id,
  13613. works: b[j].content,
  13614. sName: b[j].name,
  13615. type: 0,
  13616. time: b[j].time,
  13617. score: b[j].score,
  13618. img: b[j].img,
  13619. likesCount: likesCount,
  13620. commentCount: commentCount,
  13621. isLikes: isLikes,
  13622. commentJson: commentJson,
  13623. };
  13624. if (b[j].ttype == 1) {
  13625. this.worksTeacher[i].push(_works);
  13626. } else {
  13627. this.worksStudent2[i].push(_works);
  13628. }
  13629. this.worksStudent[i].push(_works);
  13630. this.isWorksS[i].push({
  13631. uid: b[j].userid,
  13632. sName: b[j].name,
  13633. });
  13634. }
  13635. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13636. let _works = {
  13637. userid: b[j].userid,
  13638. ateacher: b[j].ateacher,
  13639. wid: b[j].id,
  13640. works: b[j].content,
  13641. sName: b[j].name,
  13642. type: 2,
  13643. time: b[j].time,
  13644. score: b[j].score,
  13645. img: b[j].img,
  13646. likesCount: likesCount,
  13647. commentCount: commentCount,
  13648. isLikes: isLikes,
  13649. commentJson: commentJson,
  13650. };
  13651. if (b[j].ttype == 1) {
  13652. this.worksTeacher[i].push(_works);
  13653. } else {
  13654. this.worksStudent2[i].push(_works);
  13655. }
  13656. this.worksStudent[i].push(_works);
  13657. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13658. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13659. //问卷
  13660. let _works = {
  13661. userid: b[j].userid,
  13662. ateacher: b[j].ateacher,
  13663. wid: b[j].id,
  13664. works: b[j].content,
  13665. sName: b[j].name,
  13666. type: 2,
  13667. time: b[j].time,
  13668. score: b[j].score,
  13669. img: b[j].img,
  13670. likesCount: likesCount,
  13671. commentCount: commentCount,
  13672. isLikes: isLikes,
  13673. commentJson: commentJson,
  13674. };
  13675. if (b[j].ttype == 1) {
  13676. this.worksTeacher[i].push(_works);
  13677. } else {
  13678. this.worksStudent2[i].push(_works);
  13679. }
  13680. this.worksStudent[i].push(_works);
  13681. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13682. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13683. //选择题
  13684. let _works = {
  13685. userid: b[j].userid,
  13686. ateacher: b[j].ateacher,
  13687. wid: b[j].id,
  13688. works: b[j].content,
  13689. sName: b[j].name,
  13690. type: 8,
  13691. time: b[j].time,
  13692. score: b[j].score,
  13693. img: b[j].img,
  13694. likesCount: likesCount,
  13695. commentCount: commentCount,
  13696. isLikes: isLikes,
  13697. commentJson: commentJson,
  13698. };
  13699. if (b[j].ttype == 1) {
  13700. this.worksTeacher[i].push(_works);
  13701. } else {
  13702. this.worksStudent2[i].push(_works);
  13703. }
  13704. this.worksStudent[i].push(_works);
  13705. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13706. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13707. //选择题
  13708. let _works = {
  13709. userid: b[j].userid,
  13710. ateacher: b[j].ateacher,
  13711. wid: b[j].id,
  13712. works: b[j].content,
  13713. sName: b[j].name,
  13714. type: 9,
  13715. time: b[j].time,
  13716. score: b[j].score,
  13717. img: b[j].img,
  13718. likesCount: likesCount,
  13719. commentCount: commentCount,
  13720. isLikes: isLikes,
  13721. commentJson: commentJson,
  13722. };
  13723. if (b[j].ttype == 1) {
  13724. this.worksTeacher[i].push(_works);
  13725. } else {
  13726. this.worksStudent2[i].push(_works);
  13727. }
  13728. this.worksStudent[i].push(_works);
  13729. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13730. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13731. //选择题
  13732. let _works = {
  13733. userid: b[j].userid,
  13734. ateacher: b[j].ateacher,
  13735. wid: b[j].id,
  13736. works: b[j].content,
  13737. sName: b[j].name,
  13738. type: 10,
  13739. time: b[j].time,
  13740. score: b[j].score,
  13741. img: b[j].img,
  13742. likesCount: likesCount,
  13743. commentCount: commentCount,
  13744. isLikes: isLikes,
  13745. commentJson: commentJson,
  13746. };
  13747. if (b[j].ttype == 1) {
  13748. this.worksTeacher[i].push(_works);
  13749. } else {
  13750. this.worksStudent2[i].push(_works);
  13751. }
  13752. this.worksStudent[i].push(_works);
  13753. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13754. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13755. //选择题
  13756. let _works = {
  13757. userid: b[j].userid,
  13758. ateacher: b[j].ateacher,
  13759. wid: b[j].id,
  13760. works: b[j].content,
  13761. sName: b[j].name,
  13762. type: 13,
  13763. time: b[j].time,
  13764. score: b[j].score,
  13765. img: b[j].img,
  13766. likesCount: likesCount,
  13767. commentCount: commentCount,
  13768. isLikes: isLikes,
  13769. commentJson: commentJson,
  13770. };
  13771. if (b[j].ttype == 1) {
  13772. this.worksTeacher[i].push(_works);
  13773. } else {
  13774. this.worksStudent2[i].push(_works);
  13775. }
  13776. this.worksStudent[i].push(_works);
  13777. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13778. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  13779. let _gindex = JSON.parse(b[j].content);
  13780. if (
  13781. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  13782. b[j].userid
  13783. ) != -1
  13784. ) {
  13785. this.worksStudent[i][_gindex.groupIndex].push({
  13786. userid: b[j].userid,
  13787. ateacher: b[j].ateacher,
  13788. wid: b[j].id,
  13789. works: _gindex.url,
  13790. sName: b[j].name,
  13791. type: _gindex.type,
  13792. time: b[j].time,
  13793. score: b[j].score,
  13794. img: b[j].img,
  13795. likesCount: likesCount,
  13796. commentCount: commentCount,
  13797. isLikes: isLikes,
  13798. commentJson: commentJson,
  13799. });
  13800. }
  13801. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13802. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  13803. let _works = {
  13804. userid: b[j].userid,
  13805. ateacher: b[j].ateacher,
  13806. wid: b[j].id,
  13807. works: b[j].content,
  13808. sName: b[j].name ? b[j].name : b[j].userid,
  13809. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  13810. time: b[j].time,
  13811. score: b[j].score,
  13812. img: b[j].img,
  13813. likesCount: likesCount,
  13814. commentCount: commentCount,
  13815. isLikes: isLikes,
  13816. commentJson: commentJson,
  13817. };
  13818. if (b[j].ttype == 1) {
  13819. this.worksTeacher[i].push(_works);
  13820. } else {
  13821. this.worksStudent2[i].push(_works);
  13822. }
  13823. this.worksStudent[i].push(_works);
  13824. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13825. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  13826. let _works = {
  13827. userid: b[j].userid,
  13828. ateacher: b[j].ateacher,
  13829. wid: b[j].id,
  13830. works: b[j].content,
  13831. sName: b[j].name ? b[j].name : b[j].userid,
  13832. type: 12,
  13833. time: b[j].time,
  13834. score: b[j].score,
  13835. img: b[j].img,
  13836. likesCount: likesCount,
  13837. commentCount: commentCount,
  13838. isLikes: isLikes,
  13839. commentJson: commentJson,
  13840. };
  13841. if (b[j].ttype == 1) {
  13842. this.worksTeacher[i].push(_works);
  13843. } else {
  13844. this.worksStudent2[i].push(_works);
  13845. }
  13846. this.worksStudent[i].push(_works);
  13847. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13848. } else if (
  13849. a[i].tool[0] == 57 &&
  13850. b[j].atool == 57 &&
  13851. b[j].type == 12
  13852. ) {
  13853. let _works = {
  13854. userid: b[j].userid,
  13855. ateacher: b[j].ateacher,
  13856. wid: b[j].id,
  13857. works: b[j].content,
  13858. sName: b[j].name ? b[j].name : b[j].userid,
  13859. type: 12,
  13860. time: b[j].time,
  13861. score: b[j].score,
  13862. img: b[j].img,
  13863. likesCount: likesCount,
  13864. commentCount: commentCount,
  13865. isLikes: isLikes,
  13866. commentJson: commentJson,
  13867. };
  13868. if (b[j].ttype == 1) {
  13869. this.worksTeacher[i].push(_works);
  13870. } else {
  13871. this.worksStudent2[i].push(_works);
  13872. }
  13873. this.worksStudent[i].push(_works);
  13874. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13875. } else if (
  13876. a[i].tool[0] == 57 &&
  13877. b[j].atool == 57 &&
  13878. b[j].type == 15
  13879. ) {
  13880. let _works = {
  13881. userid: b[j].userid,
  13882. ateacher: b[j].ateacher,
  13883. wid: b[j].id,
  13884. works: b[j].content,
  13885. sName: b[j].name ? b[j].name : b[j].userid,
  13886. type: 15,
  13887. time: b[j].time,
  13888. score: b[j].score,
  13889. img: b[j].img,
  13890. likesCount: likesCount,
  13891. commentCount: commentCount,
  13892. isLikes: isLikes,
  13893. commentJson: commentJson,
  13894. };
  13895. if (b[j].ttype == 1) {
  13896. this.worksTeacher[i].push(_works);
  13897. } else {
  13898. this.worksStudent2[i].push(_works);
  13899. }
  13900. this.worksStudent[i].push(_works);
  13901. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13902. }
  13903. }
  13904. }
  13905. if (this.worksStudent[i] && this.worksStudent[i].length) {
  13906. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  13907. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13908. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13909. var scoreA = parseFloat(jscoreA);
  13910. var scoreB = parseFloat(jscoreB);
  13911. if (scoreA == scoreB) {
  13912. return b.likesCount - a.likesCount;
  13913. }
  13914. return scoreB - scoreA;
  13915. });
  13916. }
  13917. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  13918. this.worksStudent2[i] = this.worksStudent2[i].sort(function (
  13919. a,
  13920. b
  13921. ) {
  13922. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13923. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13924. var scoreA = parseFloat(jscoreA);
  13925. var scoreB = parseFloat(jscoreB);
  13926. if (scoreA == scoreB) {
  13927. return b.likesCount - a.likesCount;
  13928. }
  13929. return scoreB - scoreA;
  13930. });
  13931. }
  13932. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  13933. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  13934. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13935. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13936. var scoreA = parseFloat(jscoreA);
  13937. var scoreB = parseFloat(jscoreB);
  13938. if (scoreA == scoreB) {
  13939. return b.likesCount - a.likesCount;
  13940. }
  13941. return scoreB - scoreA;
  13942. });
  13943. }
  13944. }
  13945. for (var i = 0; i < a.length; i++) {
  13946. for (var j = 0; j < b.length; j++) {
  13947. var data = b[j];
  13948. if (i == b[j].tool) {
  13949. if (data.type == 2 || data.type == 8) {
  13950. for (var z = 0; z < this.checkJson[i].length; z++) {
  13951. this.checkJson[i][z].checkPerent = [];
  13952. this.checkJson[i][z].right = Math.round(
  13953. (this.checkJson[i][z].rightPerson.length /
  13954. parseInt(this.worksStudent[i].length)) *
  13955. 100
  13956. );
  13957. let aaaa = this.checkJson[i][z];
  13958. console.log(aaaa);
  13959. for (
  13960. var k = 0;
  13961. k < this.checkJson[i][z].checkCount.length;
  13962. k++
  13963. ) {
  13964. this.checkJson[i][z].checkPerent.push(
  13965. Math.round(
  13966. (this.checkJson[i][z].checkCount[k] /
  13967. parseInt(this.worksStudent[i].length)) *
  13968. 100
  13969. )
  13970. );
  13971. }
  13972. }
  13973. } else if (data.type == 9) {
  13974. for (var z = 0; z < this.checkJson[i].length; z++) {
  13975. this.checkJson[i][z].checkPerent = [];
  13976. this.checkJson[i][z].right = Math.round(
  13977. (this.checkJson[i][z].rightPerson.length /
  13978. this.checkJson[i][z].checkPerson.length) *
  13979. 100
  13980. );
  13981. }
  13982. }
  13983. }
  13984. }
  13985. }
  13986. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  13987. this.joinGroup(gindex);
  13988. }
  13989. this.selectWorksStudent();
  13990. })
  13991. .catch((err) => {
  13992. console.error(err);
  13993. });
  13994. },
  13995. pngToWhiteBg(file) {
  13996. const _file = file;
  13997. let read = new FileReader();
  13998. read.readAsDataURL(file); // 文件转base64
  13999. return new Promise((resolve, reject) => {
  14000. read.onload = (e) => {
  14001. let img = new Image();
  14002. img.src = e.target.result;
  14003. img.onload = async () => {
  14004. // 生成canvas
  14005. let canvas = document.createElement("canvas");
  14006. let context = canvas.getContext("2d");
  14007. // 绘制图片到canvas上
  14008. canvas.width = img.width;
  14009. canvas.height = img.height;
  14010. // 在canvas绘制前填充白色背景
  14011. context.fillStyle = "#fff";
  14012. context.fillRect(0, 0, canvas.width, canvas.height);
  14013. context.drawImage(img, 0, 0);
  14014. let base64 = canvas.toDataURL(file["type"], 1);
  14015. let newFile = this.dataUrlToFile(base64, _file);
  14016. resolve(newFile);
  14017. };
  14018. };
  14019. });
  14020. },
  14021. dataUrlToFile(dataurl, file) {
  14022. let arr = dataurl.split(","),
  14023. mime = arr[0].match(/:(.*?);/)[1],
  14024. bstr = atob(arr[1]),
  14025. n = bstr.length,
  14026. u8arr = new Uint8Array(n);
  14027. while (n--) {
  14028. u8arr[n] = bstr.charCodeAt(n);
  14029. }
  14030. // return new Blob([u8arr], { type: mime });
  14031. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14032. type: mime,
  14033. });
  14034. },
  14035. async beforeUpload1(event, type, i) {
  14036. // this.$message.success('进入上传')
  14037. var file = "";
  14038. if (type == 5) {
  14039. file = event;
  14040. } else {
  14041. file = event.target.files[0];
  14042. }
  14043. var credentials = {
  14044. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14045. secretAccessKey: "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",
  14046. }; //秘钥形式的登录上传
  14047. window.AWS.config.update(credentials);
  14048. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14049. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14050. var _this = this;
  14051. _this.progress = 0;
  14052. _this.proVisible = true;
  14053. _this.isFinishSize = 0;
  14054. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14055. var b = [
  14056. "DOC",
  14057. "DOCX",
  14058. "DOCM",
  14059. "DOTM",
  14060. "DOTX",
  14061. "PPTX",
  14062. "PPSX",
  14063. "PPT",
  14064. "PPS",
  14065. "PPTM",
  14066. "POTM",
  14067. "PPAM",
  14068. "POTX",
  14069. "PPSM",
  14070. ];
  14071. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14072. var photoA = [
  14073. "BMP",
  14074. "GIF",
  14075. "PNG",
  14076. "JPGE",
  14077. "JPG",
  14078. "TIF",
  14079. "PCX",
  14080. "TGA",
  14081. "EXIF",
  14082. "FPX",
  14083. "SVG",
  14084. "APNG",
  14085. ];
  14086. // if (
  14087. // b.indexOf(
  14088. // file.name
  14089. // .split(".")
  14090. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14091. // ) != -1
  14092. // ) {
  14093. // if (file.size / 1024 / 1024 > 10) {
  14094. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14095. // return;
  14096. // }
  14097. // } else if (
  14098. // excelA.indexOf(
  14099. // file.name
  14100. // .split(".")
  14101. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14102. // ) != "-1"
  14103. // ) {
  14104. // if (file.size / 1024 / 1024 > 5) {
  14105. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14106. // return;
  14107. // }
  14108. // }
  14109. if (
  14110. photoA.indexOf(
  14111. file.name
  14112. .split(".")
  14113. [file.name.split(".").length - 1].toLocaleUpperCase()
  14114. ) != -1 &&
  14115. type != 4
  14116. ) {
  14117. // const blob = await imageConversion.compress(file, 0.8)
  14118. file = await this.pngToWhiteBg(file);
  14119. const blob = await imageConversion.compressAccurately(file, 256);
  14120. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14121. file = new File([blob], file.name, { type: file.type });
  14122. }
  14123. if (file) {
  14124. var params = {
  14125. Key:
  14126. file.name.split(".")[0] +
  14127. new Date().getTime() +
  14128. "." +
  14129. file.name.split(".")[file.name.split(".").length - 1],
  14130. ContentType: file.type,
  14131. Body: file,
  14132. "Access-Control-Allow-Credentials": "*",
  14133. ACL: "public-read",
  14134. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14135. var options = {
  14136. // partSize: 2048 * 1024 * 1024,
  14137. partSize: 1024 * 1024 * 1024,
  14138. queueSize: 2,
  14139. leavePartsOnError: true,
  14140. };
  14141. bucket
  14142. .upload(params, options)
  14143. .on("httpUploadProgress", function (evt) {
  14144. //这里可以写进度条
  14145. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14146. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14147. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14148. })
  14149. .send(function (err, data) {
  14150. _this.progress = 100;
  14151. _this.isFinishSize = _this.isAllSize;
  14152. setTimeout(() => {
  14153. _this.proVisible = false;
  14154. }, 1000);
  14155. if (err) {
  14156. var a = _this.$refs.upload1.uploadFiles;
  14157. a.splice(a.length - 1, a.length);
  14158. _this.$message.error("上传失败");
  14159. } else {
  14160. // _this.$message.success('上传成功')
  14161. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14162. var c = [
  14163. "AVI",
  14164. "NAVI",
  14165. "MPEG",
  14166. "ASF",
  14167. "MOV",
  14168. "WMV",
  14169. "3GP",
  14170. "RM",
  14171. "RMVB",
  14172. "FLV",
  14173. "F4V",
  14174. "H.264",
  14175. "H.265",
  14176. "REAL VIDEO",
  14177. "MKV",
  14178. "WebM",
  14179. "HDDVD",
  14180. "MP4",
  14181. "MPG",
  14182. "M4V",
  14183. "MGV",
  14184. "OGV",
  14185. "QTM",
  14186. "STR",
  14187. "AMC",
  14188. "DVX",
  14189. "EVO",
  14190. "DAT",
  14191. "OGG",
  14192. "OGM",
  14193. ];
  14194. if (type == 1) {
  14195. _this.studyJuri[0].cover.push({
  14196. name: file.name,
  14197. url: data.Location,
  14198. uid: file.uid,
  14199. });
  14200. if (
  14201. c.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 = 2;
  14210. } else if (
  14211. b.indexOf(
  14212. _this.studyJuri[0].cover[0].url
  14213. .split(".")
  14214. [
  14215. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14216. ].toLocaleUpperCase()
  14217. ) != -1
  14218. ) {
  14219. _this.fileType = 1;
  14220. } else if (
  14221. photoA.indexOf(
  14222. _this.studyJuri[0].cover[0].url
  14223. .split(".")
  14224. [
  14225. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14226. ].toLocaleUpperCase()
  14227. ) != -1
  14228. ) {
  14229. _this.fileType = 0;
  14230. } else {
  14231. _this.fileType = 3;
  14232. }
  14233. _this.imgChange(null, null, type);
  14234. } else if (type == 2) {
  14235. _this.upToolImg = data.Location;
  14236. _this.imgChange(null, null, type);
  14237. _this.addCourseWorks(i);
  14238. } else if (type == 4) {
  14239. _this.addPz("3", data.Location);
  14240. } else if (type == 5) {
  14241. _this.addImgDrawImG(data.Location);
  14242. } else if (type == 6) {
  14243. var _ftype = 1;
  14244. if (
  14245. c.indexOf(
  14246. data.Location.split(".")[
  14247. data.Location.split(".").length - 1
  14248. ].toLocaleUpperCase()
  14249. ) != -1
  14250. ) {
  14251. _ftype = 5;
  14252. } else if (
  14253. b.indexOf(
  14254. data.Location.split(".")[
  14255. data.Location.split(".").length - 1
  14256. ].toLocaleUpperCase()
  14257. ) != -1
  14258. ) {
  14259. _ftype = 4;
  14260. } else {
  14261. _ftype = 1;
  14262. }
  14263. _this.plworkFile.push({
  14264. name: file.name,
  14265. url: data.Location,
  14266. uid: file.uid,
  14267. fileType: _ftype,
  14268. username:
  14269. _this.plworkFile.length + 1 > 10
  14270. ? _this.plworkFile.length + 1
  14271. : "0" + (_this.plworkFile.length + 1),
  14272. });
  14273. } else if (type == 7) {
  14274. _this.addCourseWorksGong(i, data.Location, 32);
  14275. } else if (type == 8) {
  14276. _this.addCourseWorksGong(i, data.Location, 57);
  14277. }
  14278. _this.imgChange(null, null, type);
  14279. console.log(data.Location);
  14280. // _this.$message.success('上传成功'+data.Location)
  14281. }
  14282. });
  14283. }
  14284. },
  14285. async beforeUpload3(event, type, i) {
  14286. // this.$message.success('进入上传')
  14287. let file = "";
  14288. let cfindex2 = 0;
  14289. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14290. file = event.target.files[cfindex];
  14291. var credentials = {
  14292. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14293. secretAccessKey: "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",
  14294. }; //秘钥形式的登录上传
  14295. window.AWS.config.update(credentials);
  14296. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14297. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14298. var _this = this;
  14299. // _this.progress = 0;
  14300. _this.proVisible2 = true;
  14301. var b = [
  14302. "DOC",
  14303. "DOCX",
  14304. "DOCM",
  14305. "DOTM",
  14306. "DOTX",
  14307. "PPTX",
  14308. "PPSX",
  14309. "PPT",
  14310. "PPS",
  14311. "PPTM",
  14312. "POTM",
  14313. "PPAM",
  14314. "POTX",
  14315. "PPSM",
  14316. ];
  14317. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14318. var photoA = [
  14319. "BMP",
  14320. "GIF",
  14321. "PNG",
  14322. "JPGE",
  14323. "JPG",
  14324. "TIF",
  14325. "PCX",
  14326. "TGA",
  14327. "EXIF",
  14328. "FPX",
  14329. "SVG",
  14330. "APNG",
  14331. ];
  14332. if (
  14333. photoA.indexOf(
  14334. file.name
  14335. .split(".")
  14336. [file.name.split(".").length - 1].toLocaleUpperCase()
  14337. ) != -1 &&
  14338. type != 4
  14339. ) {
  14340. // const blob = await imageConversion.compress(file, 0.8)
  14341. file = await this.pngToWhiteBg(file);
  14342. const blob = await imageConversion.compressAccurately(file, 256);
  14343. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14344. file = new File([blob], file.name, { type: file.type });
  14345. }
  14346. if (file) {
  14347. var params = {
  14348. Key:
  14349. file.name.split(".")[0] +
  14350. new Date().getTime() +
  14351. "." +
  14352. file.name.split(".")[file.name.split(".").length - 1],
  14353. ContentType: file.type,
  14354. Body: file,
  14355. "Access-Control-Allow-Credentials": "*",
  14356. ACL: "public-read",
  14357. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14358. var options = {
  14359. // partSize: 2048 * 1024 * 1024,
  14360. partSize: 1024 * 1024 * 1024,
  14361. queueSize: 2,
  14362. leavePartsOnError: true,
  14363. };
  14364. bucket
  14365. .upload(params, options)
  14366. .on("httpUploadProgress", function (evt) {
  14367. //这里可以写进度条
  14368. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14369. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14370. })
  14371. .send(function (err, data) {
  14372. // _this.progress = 100;
  14373. cfindex2++;
  14374. setTimeout(() => {
  14375. if (
  14376. cfindex2 == event.target.files.length - 1 ||
  14377. cfindex2 > event.target.files.length - 1
  14378. ) {
  14379. _this.proVisible2 = false;
  14380. }
  14381. }, 1000);
  14382. if (err) {
  14383. var a = _this.$refs.upload1.uploadFiles;
  14384. a.splice(a.length - 1, a.length);
  14385. _this.$message.error("上传失败");
  14386. } else {
  14387. // _this.$message.success('上传成功')
  14388. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14389. var c = [
  14390. "AVI",
  14391. "NAVI",
  14392. "MPEG",
  14393. "ASF",
  14394. "MOV",
  14395. "WMV",
  14396. "3GP",
  14397. "RM",
  14398. "RMVB",
  14399. "FLV",
  14400. "F4V",
  14401. "H.264",
  14402. "H.265",
  14403. "REAL VIDEO",
  14404. "MKV",
  14405. "WebM",
  14406. "HDDVD",
  14407. "MP4",
  14408. "MPG",
  14409. "M4V",
  14410. "MGV",
  14411. "OGV",
  14412. "QTM",
  14413. "STR",
  14414. "AMC",
  14415. "DVX",
  14416. "EVO",
  14417. "DAT",
  14418. "OGG",
  14419. "OGM",
  14420. ];
  14421. if (type == 1) {
  14422. _this.studyJuri[0].cover.push({
  14423. name: file.name,
  14424. url: data.Location,
  14425. uid: file.uid,
  14426. });
  14427. if (
  14428. c.indexOf(
  14429. _this.studyJuri[0].cover[0].url
  14430. .split(".")
  14431. [
  14432. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14433. ].toLocaleUpperCase()
  14434. ) != -1
  14435. ) {
  14436. _this.fileType = 2;
  14437. } else if (
  14438. b.indexOf(
  14439. _this.studyJuri[0].cover[0].url
  14440. .split(".")
  14441. [
  14442. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14443. ].toLocaleUpperCase()
  14444. ) != -1
  14445. ) {
  14446. _this.fileType = 1;
  14447. } else {
  14448. _this.fileType = 0;
  14449. }
  14450. _this.imgChange(null, null, type);
  14451. } else if (type == 2) {
  14452. _this.upToolImg = data.Location;
  14453. _this.imgChange(null, null, type);
  14454. _this.addCourseWorks(i);
  14455. } else if (type == 4) {
  14456. _this.addPz("3", data.Location);
  14457. } else if (type == 5) {
  14458. _this.addImgDrawImG(data.Location);
  14459. } else if (type == 6) {
  14460. var _ftype = 1;
  14461. if (
  14462. c.indexOf(
  14463. data.Location.split(".")[
  14464. data.Location.split(".").length - 1
  14465. ].toLocaleUpperCase()
  14466. ) != -1
  14467. ) {
  14468. _ftype = 5;
  14469. } else if (
  14470. b.indexOf(
  14471. data.Location.split(".")[
  14472. data.Location.split(".").length - 1
  14473. ].toLocaleUpperCase()
  14474. ) != -1
  14475. ) {
  14476. _ftype = 4;
  14477. } else {
  14478. _ftype = 1;
  14479. }
  14480. _this.plworkFile.push({
  14481. name: file.name,
  14482. url: data.Location,
  14483. uid: file.uid,
  14484. fileType: _ftype,
  14485. username:
  14486. _this.plworkFile.length + 1 > 9
  14487. ? _this.plworkFile.length + 1
  14488. : "0" + (_this.plworkFile.length + 1),
  14489. });
  14490. }
  14491. _this.imgChange(null, null, type);
  14492. console.log(data.Location);
  14493. // _this.$message.success('上传成功'+data.Location)
  14494. }
  14495. });
  14496. }
  14497. }
  14498. },
  14499. beforeUpload2(event, type) {
  14500. var file = event.target.files[0];
  14501. var credentials = {
  14502. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14503. secretAccessKey: "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",
  14504. }; //秘钥形式的登录上传
  14505. window.AWS.config.update(credentials);
  14506. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14507. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14508. var _this = this;
  14509. _this.progress = 0;
  14510. _this.proVisible = true;
  14511. if (file) {
  14512. var params = {
  14513. Key:
  14514. file.name.split(".")[0] +
  14515. new Date().getTime() +
  14516. "." +
  14517. file.name.split(".")[file.name.split(".").length - 1],
  14518. ContentType: file.type,
  14519. Body: file,
  14520. "Access-Control-Allow-Credentials": "*",
  14521. ACL: "public-read",
  14522. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14523. var options = {
  14524. partSize: 2048 * 1024 * 1024,
  14525. queueSize: 2,
  14526. leavePartsOnError: true,
  14527. };
  14528. bucket
  14529. .upload(params, options)
  14530. .on("httpUploadProgress", function (evt) {
  14531. //这里可以写进度条
  14532. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14533. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14534. })
  14535. .send(function (err, data) {
  14536. _this.progress = 100;
  14537. setTimeout(() => {
  14538. _this.proVisible = false;
  14539. }, 1000);
  14540. if (err) {
  14541. var a = _this.$refs.upload1.uploadFiles;
  14542. a.splice(a.length - 1, a.length);
  14543. _this.$message.error("上传失败");
  14544. } else {
  14545. if (type == 2) {
  14546. _this.studyJuri[0].upVedio.push({
  14547. name: file.name,
  14548. url: data.Location,
  14549. uid: file.uid,
  14550. });
  14551. _this.imgChange(null, null, type);
  14552. } else if (type == 3) {
  14553. _this.studyJuri[0].upFile.push({
  14554. name: file.name,
  14555. url: data.Location,
  14556. uid: file.uid,
  14557. });
  14558. _this.imgChange(null, null, type);
  14559. }
  14560. console.log(data.Location);
  14561. }
  14562. });
  14563. }
  14564. },
  14565. allScrell() {
  14566. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  14567. },
  14568. nextToolindex(type) {
  14569. if (type == "last") {
  14570. if (this.toolIndex == 0) {
  14571. this.$message.error("已经是第一个步骤");
  14572. return;
  14573. }
  14574. this.toolIndex = this.toolIndex - 1;
  14575. this.tool =
  14576. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14577. this.taskCount
  14578. ].toolChoose[this.toolIndex];
  14579. } else if (type == "next") {
  14580. if (
  14581. this.toolIndex ==
  14582. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14583. this.taskCount
  14584. ].toolChoose.length -
  14585. 1
  14586. ) {
  14587. this.$message.error("已经是最后一个步骤");
  14588. return;
  14589. }
  14590. this.toolIndex = this.toolIndex + 1;
  14591. this.tool =
  14592. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14593. this.taskCount
  14594. ].toolChoose[this.toolIndex];
  14595. }
  14596. this.$forceUpdate();
  14597. },
  14598. checkBz(index) {
  14599. this.toolIndex = index;
  14600. this.tool =
  14601. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14602. this.taskCount
  14603. ].toolChoose[this.toolIndex];
  14604. this.isUpdateToolDetail = false;
  14605. this.$forceUpdate();
  14606. },
  14607. nextOrpreSteps(t) {
  14608. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14609. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14610. return;
  14611. }
  14612. var b = this.chapInfoList.length - 1;
  14613. if (t == 0) {
  14614. if (this.courseType == 0) {
  14615. if (this.taskCount == 0) {
  14616. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  14617. if (this.IsLookOpen) {
  14618. if (
  14619. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  14620. ) {
  14621. if (
  14622. this.courseDetail.userid != this.userid &&
  14623. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14624. ) {
  14625. this.$message.error("任务未解锁");
  14626. } else {
  14627. this.$message.error("上一任务未解锁");
  14628. }
  14629. return;
  14630. }
  14631. }
  14632. this.navList[this.courseType].isOpen = false;
  14633. this.courseType = b;
  14634. this.taskCount =
  14635. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14636. .length - 1;
  14637. this.navList[this.courseType].isOpen = true;
  14638. } else {
  14639. this.taskCount--;
  14640. }
  14641. } else {
  14642. if (this.taskCount == 0) {
  14643. this.navList[this.courseType].isOpen = false;
  14644. this.courseType--;
  14645. this.taskCount =
  14646. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14647. .length - 1;
  14648. this.navList[this.courseType].isOpen = true;
  14649. } else {
  14650. this.taskCount--;
  14651. }
  14652. }
  14653. } else {
  14654. if (this.courseType == b) {
  14655. if (
  14656. this.taskCount ==
  14657. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14658. 1
  14659. ) {
  14660. this.navList[this.courseType].isOpen = false;
  14661. this.courseType = 0;
  14662. this.taskCount = 0;
  14663. this.navList[this.courseType].isOpen = true;
  14664. } else {
  14665. var bbb = parseInt(this.taskCount) + 1;
  14666. if (
  14667. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14668. .isLook &&
  14669. this.courseDetail.userid != this.userid &&
  14670. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14671. this.IsLookOpen
  14672. ) {
  14673. this.$message.error("任务未解锁");
  14674. return;
  14675. }
  14676. this.taskCount++;
  14677. if (this.IsLookOpen) {
  14678. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14679. this.taskCount
  14680. ].isLook = true;
  14681. this.addCourseState(3);
  14682. }
  14683. }
  14684. } else {
  14685. if (
  14686. this.taskCount ==
  14687. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14688. 1
  14689. ) {
  14690. var bbb = parseInt(this.courseType) + 1;
  14691. if (
  14692. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  14693. this.courseDetail.userid != this.userid &&
  14694. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14695. this.IsLookOpen
  14696. ) {
  14697. this.$message.error("任务未解锁");
  14698. return;
  14699. }
  14700. this.navList[this.courseType].isOpen = false;
  14701. this.courseType++;
  14702. this.taskCount = 0;
  14703. this.navList[this.courseType].isOpen = true;
  14704. } else {
  14705. var bbb = parseInt(this.taskCount) + 1;
  14706. if (
  14707. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14708. .isLook &&
  14709. this.courseDetail.userid != this.userid &&
  14710. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14711. this.IsLookOpen
  14712. ) {
  14713. this.$message.error("任务未解锁");
  14714. return;
  14715. }
  14716. this.taskCount++;
  14717. }
  14718. if (this.IsLookOpen) {
  14719. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14720. this.taskCount
  14721. ].isLook = true;
  14722. this.addCourseState(3);
  14723. }
  14724. }
  14725. }
  14726. document.scrollingElement.scrollTop = 0;
  14727. // this.showType = 0;
  14728. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14729. this.toolIndex = null;
  14730. this.isNoHomeWork = false;
  14731. (this.studyJuri = [
  14732. {
  14733. content: "",
  14734. cover: [],
  14735. upVedio: [],
  14736. upFile: [],
  14737. },
  14738. ]),
  14739. (this.radio = []);
  14740. // this.isClickNav = "";
  14741. this.selectPz();
  14742. this.getHomeWork();
  14743. this.getCourseDetail(2);
  14744. this.$forceUpdate();
  14745. },
  14746. openTask(s, n, i) {
  14747. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14748. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14749. return;
  14750. }
  14751. if (this.IsLookOpen) {
  14752. if (
  14753. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  14754. this.courseDetail.userid != this.userid &&
  14755. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14756. ) {
  14757. this.$message.error("任务未解锁");
  14758. return;
  14759. }
  14760. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  14761. if (
  14762. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  14763. .isLook
  14764. ) {
  14765. this.$message.error("上一任务未解锁");
  14766. return;
  14767. }
  14768. } else if (s > this.courseType) {
  14769. if (n > 0) {
  14770. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  14771. this.$message.error("上一任务未解锁");
  14772. return;
  14773. }
  14774. } else {
  14775. if (
  14776. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  14777. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  14778. ].isLook
  14779. ) {
  14780. this.$message.error("上一任务未解锁");
  14781. return;
  14782. }
  14783. }
  14784. }
  14785. }
  14786. this.courseType = s;
  14787. this.navId = i;
  14788. this.taskCount = n;
  14789. if (this.IsLookOpen) {
  14790. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14791. this.taskCount
  14792. ].isLook = true;
  14793. this.addCourseState(3);
  14794. }
  14795. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  14796. this.isCloseList[ci].isClose = 0;
  14797. }
  14798. // this.showType = 0;
  14799. this.isNoHomeWork = false;
  14800. (this.studyJuri = [
  14801. {
  14802. content: "",
  14803. cover: [],
  14804. upVedio: [],
  14805. upFile: [],
  14806. },
  14807. ]),
  14808. (this.radio = []);
  14809. document.scrollingElement.scrollTop = 0;
  14810. this.toolIndex = null;
  14811. // setTimeout(() => {
  14812. // let a = document.getElementById(i);
  14813. // if (a.offsetTop - 110 == 0) {
  14814. // window.scrollTo(0, 0);
  14815. // } else {
  14816. // window.scrollTo(0, a.offsetTop);
  14817. // }
  14818. // }, 0);
  14819. this.selectPz();
  14820. this.getHomeWork();
  14821. this.getCourseDetail(2);
  14822. },
  14823. get(i) {
  14824. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14825. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14826. return;
  14827. }
  14828. this.navList[i].isOpen = !this.navList[i].isOpen;
  14829. },
  14830. addQuestion() {
  14831. this.answerList.push({
  14832. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14833. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14834. });
  14835. let params = [
  14836. {
  14837. uid: this.userid,
  14838. cid: this.id,
  14839. stage: this.courseType,
  14840. task: this.taskCount,
  14841. tool: this.toolindex,
  14842. content: JSON.stringify(this.answerList),
  14843. type: 3,
  14844. },
  14845. ];
  14846. this.ajax
  14847. .post(this.$store.state.api + "addCourseWorks", params)
  14848. .then((res) => {
  14849. this.$message({
  14850. message: "提交成功",
  14851. type: "success",
  14852. });
  14853. this.answerList = [];
  14854. this.questionAnswer = "";
  14855. this.answerDialogVisible = false;
  14856. this.selectStudent();
  14857. this.selectSWorks();
  14858. this.selectSLook();
  14859. })
  14860. .catch((err) => {
  14861. this.$message.error("提交失败");
  14862. console.error(err);
  14863. });
  14864. },
  14865. addQuestionTeacher() {
  14866. this.answerList.push({
  14867. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14868. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14869. });
  14870. let params = [
  14871. {
  14872. uid: this.sStudent.userid,
  14873. cid: this.id,
  14874. stage: this.courseType,
  14875. task: this.taskCount,
  14876. tool: this.toolindex,
  14877. content: JSON.stringify(this.answerList),
  14878. type: 3,
  14879. ateacher: this.userid,
  14880. },
  14881. ];
  14882. this.ajax
  14883. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14884. .then((res) => {
  14885. this.$message({
  14886. message: "提交成功",
  14887. type: "success",
  14888. });
  14889. this.answerList = [];
  14890. this.questionAnswer = "";
  14891. this.answerDialogVisibleTeacher = false;
  14892. this.selectStudent();
  14893. this.selectSWorks();
  14894. this.selectSLook();
  14895. })
  14896. .catch((err) => {
  14897. this.$message.error("提交失败");
  14898. console.error(err);
  14899. });
  14900. },
  14901. refreshCourse() {
  14902. this.navList = [];
  14903. this.getCourseDetail(1);
  14904. },
  14905. setPz() {
  14906. if (this.ispzType == 4) {
  14907. this.ispzType = 0;
  14908. this.pzDialog = false;
  14909. return;
  14910. }
  14911. this.ispzType = 4;
  14912. this.pzDialog = true;
  14913. this.selectPz();
  14914. },
  14915. getCourseDetail(type, gindex) {
  14916. let loading;
  14917. if (type != 2) {
  14918. loading = this.$loading.service({
  14919. background: "rgba(255, 255, 255, 0.7)",
  14920. target: document.querySelector(".student_table"),
  14921. });
  14922. }
  14923. let params = {
  14924. courseId: this.id,
  14925. };
  14926. this.ajax
  14927. .get(this.$store.state.api + "selectCourseDetail3", params)
  14928. .then((res) => {
  14929. if (type != 2) {
  14930. loading.close();
  14931. if (
  14932. this.courseType >
  14933. JSON.parse(res.data[0][0].chapters).length - 1
  14934. ) {
  14935. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  14936. }
  14937. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  14938. .chapterInfo[0].taskJson;
  14939. var b = [
  14940. "AVI",
  14941. "NAVI",
  14942. "MPEG",
  14943. "ASF",
  14944. "MOV",
  14945. "WMV",
  14946. "3GP",
  14947. "RM",
  14948. "RMVB",
  14949. "FLV",
  14950. "F4V",
  14951. "H.264",
  14952. "H.265",
  14953. "REAL VIDEO",
  14954. "MKV",
  14955. "WebM",
  14956. "HDDVD",
  14957. "MP4",
  14958. "MPG",
  14959. "M4V",
  14960. "MGV",
  14961. "OGV",
  14962. "QTM",
  14963. "STR",
  14964. "AMC",
  14965. "DVX",
  14966. "EVO",
  14967. "DAT",
  14968. "OGG",
  14969. "OGM",
  14970. "MP3",
  14971. ];
  14972. let _chapterData = [];
  14973. for (var i = 0; i < a.length; i++) {
  14974. var c = a[i].chapterData;
  14975. this.vedio[i] = [];
  14976. this.textList[i] = [];
  14977. this.lineList[i] = [];
  14978. this.chapToolList[i] = [];
  14979. this.file[i] = [];
  14980. this.fileC[i] = [];
  14981. _chapterData[i] = c.filter((el) => {
  14982. return el.type != 12;
  14983. });
  14984. this.fileC[i] = c.filter((el) => {
  14985. return el.type == 12;
  14986. });
  14987. for (var j = 0; j < c.length; j++) {
  14988. if (c[j].type == 7) {
  14989. this.chapToolList[i].push(c[j]);
  14990. } else if (c[j].type == 8) {
  14991. this.lineList[i].push(c[j]);
  14992. } else if (c[j].type == 6) {
  14993. this.textList[i].push(c[j]);
  14994. } else {
  14995. if (
  14996. b.indexOf(
  14997. c[j].url
  14998. .split(".")
  14999. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15000. ) != -1
  15001. ) {
  15002. this.vedio[i].push(c[j]);
  15003. } else {
  15004. this.file[i].push(c[j]);
  15005. }
  15006. }
  15007. }
  15008. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15009. d.sources[0].src =
  15010. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15011. this.playerO[i] = d;
  15012. }
  15013. this.courseDetail = res.data[0][0];
  15014. this.tcid = this.arrayToArray(
  15015. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15016. this.tcid2 ? this.tcid2.split(",") : []
  15017. ).join(",");
  15018. console.log(this.tcid);
  15019. this.evalua = res.data[0][0].evaId;
  15020. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15021. this.courseType
  15022. ];
  15023. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15024. if (this.tcid && res.data[1].length) {
  15025. let _inviteA = [];
  15026. for (var ik = 0; ik < res.data[1].length; ik++) {
  15027. _inviteA.push({
  15028. cid: res.data[1][ik].classid,
  15029. ic: res.data[1][ik].code,
  15030. });
  15031. }
  15032. for (var ik = 0; ik < _inviteA.length; ik++) {
  15033. if (
  15034. this.arrayToArray(
  15035. _inviteA[ik].cid.split(","),
  15036. this.tcid.split(",")
  15037. ).length
  15038. ) {
  15039. this.inviteCode = _inviteA[ik].ic;
  15040. break;
  15041. }
  15042. }
  15043. }
  15044. for (var l = 0; l < this.chapInfoList.length; l++) {
  15045. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15046. for (var m = 0; m < w.length; m++) {
  15047. w[m].id = l + "-" + m;
  15048. }
  15049. }
  15050. let taskCount = 0;
  15051. if (
  15052. _chapterData[taskCount].length &&
  15053. _chapterData[taskCount][0].type == 2
  15054. ) {
  15055. this.showType = 0;
  15056. } else {
  15057. if (_chapterData[taskCount].length > 0) {
  15058. let _url = _chapterData[taskCount][0].url;
  15059. if (_chapterData[taskCount][0].type == 8) {
  15060. this.showType = 2;
  15061. if (
  15062. _url.indexOf("https://") == -1 &&
  15063. _url.indexOf("http://") == -1
  15064. ) {
  15065. _url = "https://" + _url;
  15066. }
  15067. this.pptImgUrl1 = _url;
  15068. } else if (_chapterData[taskCount][0].type == 3) {
  15069. if (
  15070. _url
  15071. .split(".")
  15072. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15073. ) {
  15074. this.showType = 3;
  15075. this.pptImgUrl1 = _url;
  15076. } else if (
  15077. this.isAssetTypeAnImage(
  15078. _url
  15079. .split(".")
  15080. [_url.split(".").length - 1].toLocaleLowerCase()
  15081. )
  15082. ) {
  15083. this.showType = 4;
  15084. this.pptImgUrl1 = _url;
  15085. } else {
  15086. this.showType = 2;
  15087. this.pptImgUrl1 =
  15088. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15089. _url;
  15090. }
  15091. } else if (_chapterData[this.taskCount][0].type == 13) {
  15092. this.showType = 4;
  15093. this.pptImgUrl1 = _url;
  15094. } else if (_chapterData[taskCount][0].type == 6) {
  15095. this.showType = 1;
  15096. this.text = this.textList[taskCount][0];
  15097. }
  15098. }
  15099. }
  15100. this.isClickNav = 0;
  15101. if (
  15102. !_chapterData[taskCount].length ||
  15103. _chapterData[taskCount][0].type == 12
  15104. ) {
  15105. this.isClickNav = "";
  15106. this.showType = "";
  15107. }
  15108. this.vChapterData = _chapterData;
  15109. if (
  15110. this.toolIndex == null &&
  15111. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15112. this.taskCount
  15113. ].toolChoose.length
  15114. ) {
  15115. this.toolIndex = 0;
  15116. this.tool =
  15117. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15118. this.taskCount
  15119. ].toolChoose[this.toolIndex];
  15120. }
  15121. } else {
  15122. if (
  15123. this.toolIndex == null &&
  15124. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15125. this.taskCount
  15126. ].toolChoose.length
  15127. ) {
  15128. this.toolIndex = 0;
  15129. this.tool =
  15130. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15131. this.taskCount
  15132. ].toolChoose[this.toolIndex];
  15133. }
  15134. }
  15135. this.isUpdateToolDetail = false;
  15136. this.$nextTick(() => {
  15137. setTimeout(() => {
  15138. this.checkEva();
  15139. }, 1000);
  15140. });
  15141. let _this = this;
  15142. if (_this.timer) {
  15143. clearInterval(_this.timer);
  15144. _this.timer = null;
  15145. }
  15146. _this.selectSWorks(gindex);
  15147. _this.selectStudent();
  15148. _this.selectSLook();
  15149. _this.getPick();
  15150. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15151. _this.setCTask();
  15152. }
  15153. if (_this.dialogVisibleGroup) {
  15154. _this.groupJson =
  15155. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15156. _this.taskCount
  15157. ].toolChoose[_this.toolindex].groupJson;
  15158. }
  15159. _this.timer = setInterval(function () {
  15160. if (_this.tcid) {
  15161. _this.getCourseGroup(gindex);
  15162. } else {
  15163. _this.selectSWorks(gindex);
  15164. }
  15165. _this.selectStudent();
  15166. _this.selectSLook();
  15167. _this.getPick();
  15168. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15169. _this.setCTask();
  15170. }
  15171. if (_this.dialogVisibleGroup) {
  15172. _this.groupJson =
  15173. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15174. _this.taskCount
  15175. ].toolChoose[_this.toolindex].groupJson;
  15176. }
  15177. if (_this.tType == 4 || _this.ispzType == 4) {
  15178. _this.selectPz();
  15179. }
  15180. }, 5000);
  15181. })
  15182. .catch((err) => {
  15183. loading.close();
  15184. console.error(err);
  15185. });
  15186. },
  15187. getCourseGroup(gindex) {
  15188. let params = {
  15189. cid: this.id,
  15190. classid: this.tcid ? this.tcid : "1",
  15191. };
  15192. this.ajax
  15193. .get(this.$store.state.api + "getCourseGroup", params)
  15194. .then((res) => {
  15195. if (res.data && res.data[0].length) {
  15196. if (!this.isGroup) {
  15197. let courseGroup = JSON.parse(res.data[0][0].group);
  15198. courseGroup.group = courseGroup.group.filter((el) => {
  15199. el.works = [];
  15200. return el;
  15201. });
  15202. this.courseGroup = courseGroup;
  15203. let groupPerson = res.data[1];
  15204. let group = JSON.parse(res.data[0][0].group).group;
  15205. let courseGroupStudent = {};
  15206. let courseGroupStudentUid = {};
  15207. for (var i = 0; i < group.length; i++) {
  15208. courseGroupStudent[group[i].id] = [];
  15209. courseGroupStudentUid[group[i].id] = [];
  15210. for (var j = 0; j < groupPerson.length; j++) {
  15211. if (groupPerson[j].groupCid == group[i].id) {
  15212. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15213. courseGroupStudentUid[group[i].id].push(
  15214. groupPerson[j].userid
  15215. );
  15216. }
  15217. }
  15218. }
  15219. this.courseGroupStudent = courseGroupStudent;
  15220. this.courseGroupStudentUid = courseGroupStudentUid;
  15221. }
  15222. this.isGroup = true;
  15223. this.selectSWorks(gindex);
  15224. } else {
  15225. this.selectSWorks(gindex);
  15226. this.isGroup = false;
  15227. }
  15228. })
  15229. .catch((err) => {
  15230. // this.$message.error("网络不佳");
  15231. console.error(err);
  15232. });
  15233. },
  15234. setOperationTime() {
  15235. let _this = this;
  15236. if (_this.opertimer) {
  15237. clearInterval(_this.opertimer);
  15238. _this.opertimer = null;
  15239. }
  15240. _this.opertimer = setInterval(() => {
  15241. _this.setoTime("600");
  15242. }, 600000);
  15243. },
  15244. setoTime(time) {
  15245. let params = [
  15246. {
  15247. uid: this.userid,
  15248. cid: this.id,
  15249. type: "2",
  15250. time: time,
  15251. },
  15252. ];
  15253. this.ajax
  15254. .post(this.$store.state.api + "addOperationTimeT2", params)
  15255. .then((res) => {})
  15256. .catch((err) => {
  15257. console.error(err);
  15258. });
  15259. },
  15260. addPz(type, content) {
  15261. if (type == "1" && this.pzConText == "") {
  15262. this.$message.error("批注不能为空!");
  15263. return;
  15264. }
  15265. let params = [
  15266. {
  15267. cid: this.id,
  15268. uid: this.userid,
  15269. s: this.courseType,
  15270. t: this.taskCount,
  15271. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15272. type: type,
  15273. },
  15274. ];
  15275. this.ajax
  15276. .post(this.$store.state.api + "addPz2", params)
  15277. .then((res) => {
  15278. this.$message({
  15279. message: "添加成功",
  15280. type: "success",
  15281. });
  15282. this.pzConText = "";
  15283. this.addPzDialog = false;
  15284. this.selectPz();
  15285. })
  15286. .catch((err) => {
  15287. this.$message.error("添加失败");
  15288. console.error(err);
  15289. });
  15290. },
  15291. deletePz(id) {
  15292. this.$confirm("确定删除此批注吗?", "提示", {
  15293. confirmButtonText: "确定",
  15294. cancelButtonText: "取消",
  15295. type: "warning",
  15296. })
  15297. .then(() => {
  15298. let params = [
  15299. {
  15300. id: id,
  15301. },
  15302. ];
  15303. this.ajax
  15304. .post(this.$store.state.api + "deletePz", params)
  15305. .then((res) => {
  15306. this.$message({
  15307. message: "删除成功",
  15308. type: "success",
  15309. });
  15310. this.selectPz();
  15311. })
  15312. .catch((err) => {
  15313. this.$message.error("网络异常");
  15314. console.error(err);
  15315. });
  15316. })
  15317. .catch(() => {});
  15318. },
  15319. selectPz() {
  15320. let params = {
  15321. cid: this.id,
  15322. s: this.courseType,
  15323. t: this.taskCount,
  15324. };
  15325. this.ajax
  15326. .get(this.$store.state.api + "selectPzList", params)
  15327. .then((res) => {
  15328. this.pzList = res.data[0];
  15329. })
  15330. .catch((err) => {
  15331. console.error(err);
  15332. });
  15333. },
  15334. updateSLook() {
  15335. let params = {
  15336. sopen: this.sIsOpen == false ? 1 : 2,
  15337. cid: this.id,
  15338. };
  15339. this.ajax
  15340. .get(this.$store.state.api + "updateCourseSLook", params)
  15341. .then((res) => {
  15342. if (this.sIsOpen == true) {
  15343. this.$message({
  15344. message: "权限设置成功",
  15345. type: "success",
  15346. });
  15347. } else {
  15348. this.$message({
  15349. message: "权限关闭成功",
  15350. type: "success",
  15351. });
  15352. }
  15353. })
  15354. .catch((err) => {
  15355. console.error(err);
  15356. });
  15357. },
  15358. updateFollow() {
  15359. let params = [
  15360. {
  15361. sopen: this.IsFollow == false ? 1 : 2,
  15362. cid: this.id,
  15363. },
  15364. ];
  15365. this.ajax
  15366. .post(this.$store.state.api + "updateCourseFollow", params)
  15367. .then((res) => {
  15368. if (this.IsFollow == true) {
  15369. this.$message({
  15370. message: "开启成功",
  15371. type: "success",
  15372. });
  15373. } else {
  15374. this.$message({
  15375. message: "关闭成功",
  15376. type: "success",
  15377. });
  15378. }
  15379. this.setCTask();
  15380. })
  15381. .catch((err) => {
  15382. console.error(err);
  15383. });
  15384. },
  15385. setCTask() {
  15386. let params = [
  15387. {
  15388. sopen: this.courseType + "-" + this.taskCount,
  15389. cid: this.id,
  15390. },
  15391. ];
  15392. this.ajax
  15393. .post(this.$store.state.api + "updateCourseFollowC", params)
  15394. .then((res) => {})
  15395. .catch((err) => {
  15396. console.error(err);
  15397. });
  15398. },
  15399. updateLookOpen() {
  15400. let params = [
  15401. {
  15402. sopen: this.IsLookOpen == false ? 1 : 2,
  15403. cid: this.id,
  15404. },
  15405. ];
  15406. this.ajax
  15407. .post(this.$store.state.api + "updateCourseLookOpen", params)
  15408. .then((res) => {
  15409. if (this.IsLookOpen == true) {
  15410. // if (this.courseType != 0 && this.taskCount != 0) {
  15411. // this.openTask(0, 0, "0-0");
  15412. // }
  15413. this.$message({
  15414. message: "权限设置成功",
  15415. type: "success",
  15416. });
  15417. } else {
  15418. this.$message({
  15419. message: "权限关闭成功",
  15420. type: "success",
  15421. });
  15422. }
  15423. this.getCourseState(2);
  15424. })
  15425. .catch((err) => {
  15426. console.error(err);
  15427. });
  15428. },
  15429. selectSLook() {
  15430. let params = {
  15431. cid: this.id,
  15432. };
  15433. this.ajax
  15434. .get(this.$store.state.api + "selectCourseSLook", params)
  15435. .then((res) => {
  15436. // this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  15437. this.sIsOpen = true;
  15438. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  15439. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  15440. if (!this.IsLookOpen) {
  15441. this.setNavList();
  15442. } else {
  15443. this.getCourseState(1);
  15444. }
  15445. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15446. let _followC = res.data[0][0].followC.split("-");
  15447. if (
  15448. this.courseType != _followC[0] ||
  15449. this.taskCount != _followC[1]
  15450. ) {
  15451. this.navList[this.courseType].isOpen = false;
  15452. this.courseType = _followC[0];
  15453. this.navList[this.courseType].isOpen = true;
  15454. this.taskCount = parseInt(_followC[1]);
  15455. this.navId = res.data[0][0].followC;
  15456. this.getCourseDetail();
  15457. }
  15458. }
  15459. })
  15460. .catch((err) => {
  15461. console.error(err);
  15462. });
  15463. },
  15464. setNavList() {
  15465. if (this.navList.length == 0) {
  15466. this.navList = [];
  15467. for (var l = 0; l < this.chapInfoList.length; l++) {
  15468. var q = this.chapInfoList[l].dyName;
  15469. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15470. var e;
  15471. this.navList.push({
  15472. dyName: q,
  15473. isOpen: l === 0 ? true : false,
  15474. task: [],
  15475. });
  15476. for (var r = 0; r < w.length; r++) {
  15477. e = w[r].task;
  15478. if (this.chapInfoList[l].easy == 1) {
  15479. this.navList[l].task.push({
  15480. taskName: q,
  15481. id: l + "-" + r,
  15482. isLook: w[r].isLook,
  15483. });
  15484. } else {
  15485. this.navList[l].task.push({
  15486. taskName: e,
  15487. id: l + "-" + r,
  15488. isLook: w[r].isLook,
  15489. });
  15490. }
  15491. // this.navId = this.navId ? this.navId : l + "-" + r;
  15492. // this.navId = l + "-" + r;
  15493. }
  15494. }
  15495. this.navList[0].isOpen = false;
  15496. this.navList[this.courseType].isOpen = true;
  15497. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15498. } else {
  15499. this.setNavList2();
  15500. }
  15501. },
  15502. setNavList2() {
  15503. for (var l = 0; l < this.chapInfoList.length; l++) {
  15504. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15505. for (var r = 0; r < w.length; r++) {
  15506. this.navList[l].task[r].isLook = w[r].isLook;
  15507. }
  15508. }
  15509. if (
  15510. this.IsLookOpen &&
  15511. !this.navList[this.courseType].task[this.taskCount].isLook
  15512. ) {
  15513. this.openTask(0, 0, "0-0");
  15514. }
  15515. this.$forceUpdate();
  15516. },
  15517. getCourseState(type) {
  15518. let params = {
  15519. cid: this.id,
  15520. };
  15521. this.ajax
  15522. .get(this.$store.state.api + "getCourseState", params)
  15523. .then((res) => {
  15524. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  15525. this.chapInfoList = JSON.parse(res.data[0][0].state);
  15526. this.setNavList();
  15527. this.$forceUpdate();
  15528. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  15529. this.addCourseState(2);
  15530. } else {
  15531. this.addCourseState(1);
  15532. }
  15533. })
  15534. .catch((err) => {
  15535. console.error(err);
  15536. });
  15537. },
  15538. addCourseState(type) {
  15539. let _state = this.chapInfoList;
  15540. // this.courseType this.taskCount
  15541. if (type == 1 || type == 2) {
  15542. for (var i = 0; i < _state.length; i++) {
  15543. let el = _state[i].chapterInfo[0].taskJson;
  15544. for (var j = 0; j < el.length; j++) {
  15545. // if (i == 0 && j == 0) {
  15546. // el[j].isLook = true;
  15547. // } else {
  15548. // el[j].isLook = false;
  15549. // }
  15550. if (
  15551. this.courseType > i ||
  15552. (this.courseType == i && this.taskCount + 1 > j)
  15553. ) {
  15554. el[j].isLook = true;
  15555. } else {
  15556. el[j].isLook = false;
  15557. }
  15558. }
  15559. }
  15560. }
  15561. let params = [
  15562. {
  15563. cid: this.id,
  15564. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  15565. },
  15566. ];
  15567. this.ajax
  15568. .post(
  15569. this.$store.state.api +
  15570. (type == 1 ? "addCourseState" : "updateCourseSate"),
  15571. params
  15572. )
  15573. .then((res) => {
  15574. if (this.IsLookOpen) {
  15575. this.setNavList();
  15576. }
  15577. if (type == 3 && type == 2) {
  15578. this.getCourseState(1);
  15579. }
  15580. })
  15581. .catch((err) => {
  15582. console.error(err);
  15583. });
  15584. },
  15585. getHomeWork() {
  15586. let params = {
  15587. cid: this.id,
  15588. stage: this.courseType,
  15589. task: this.taskCount,
  15590. uid: this.userid,
  15591. };
  15592. this.ajax
  15593. .get(this.$store.state.api + "selectWork", params)
  15594. .then((res) => {
  15595. if (res.data[0].length > 0) {
  15596. this.studyJuri = JSON.parse(res.data[0][0].content);
  15597. this.isNoHomeWork = true;
  15598. }
  15599. })
  15600. .catch((err) => {
  15601. console.error(err);
  15602. });
  15603. },
  15604. isAssetTypeAnImage(ext) {
  15605. return (
  15606. [
  15607. "png",
  15608. "jpg",
  15609. "jpeg",
  15610. "bmp",
  15611. "gif",
  15612. "webp",
  15613. "psd",
  15614. "svg",
  15615. "tiff",
  15616. ].indexOf(ext) !== -1
  15617. );
  15618. },
  15619. switchVideo(media) {
  15620. this.playerO = {};
  15621. this.playerOptions.poster = "";
  15622. this.playerOptions.sources[0].src = media;
  15623. this.playerO = this.playerOptions;
  15624. },
  15625. onPlayerPlay() {},
  15626. lookVedio(u, i) {
  15627. this.isClickNav = "";
  15628. // this.playerOptions.sources[0].src = u;
  15629. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15630. d.sources[0].src = u;
  15631. this.playerO[0] = d;
  15632. this.showType = 0;
  15633. // this.isClickNav = "video" + i;
  15634. this.isClickNav = i;
  15635. this.$forceUpdate();
  15636. },
  15637. lookText(i, t) {
  15638. this.isClickNav = "";
  15639. // this.text = this.textList[i][t];
  15640. this.text = this.vChapterData[i][t];
  15641. // this.dialogVisible1 = true;
  15642. this.showType = 1;
  15643. // this.isClickNav = "text" + t;
  15644. this.isClickNav = t;
  15645. },
  15646. lookTools(i, t) {
  15647. this.chapTools = this.chapToolList[i][t];
  15648. this.dialogVisible2 = true;
  15649. },
  15650. openFile(f) {
  15651. this.pptImgUrl = "";
  15652. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15653. if (
  15654. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  15655. -1
  15656. ) {
  15657. this.pptImgUrl =
  15658. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  15659. this.showPDF = false;
  15660. this.dialogVisible3 = true;
  15661. } else if (
  15662. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15663. ) {
  15664. this.pptImgUrl = f;
  15665. this.showPDF = true;
  15666. this.dialogVisible3 = true;
  15667. }
  15668. },
  15669. openTable(f) {
  15670. this.tableJson = JSON.parse(f.works);
  15671. this.$forceUpdate();
  15672. this.dialogVisibleTable2 = true;
  15673. },
  15674. openWord(f) {
  15675. this.tableJson = JSON.parse(f.works);
  15676. this.$forceUpdate();
  15677. this.dialogVisibleTable3 = true;
  15678. },
  15679. doUrl(url, i) {
  15680. this.isClickNav = "";
  15681. this.pptImgUrl1 = "";
  15682. this.showType = 2;
  15683. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  15684. url = "https://" + url;
  15685. }
  15686. this.pptImgUrl1 = url;
  15687. // this.isClickNav = "line" + i;
  15688. this.isClickNav = i;
  15689. },
  15690. checkPhoto(f, i) {
  15691. this.showType = 4;
  15692. this.pptImgUrl1 = f.url;
  15693. this.isClickNav = i;
  15694. this.$forceUpdate();
  15695. },
  15696. downFile(f, i) {
  15697. this.isClickNav = "";
  15698. this.pptImgUrl1 = "";
  15699. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  15700. if (
  15701. a.indexOf(
  15702. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  15703. ) != -1
  15704. ) {
  15705. this.pptImgUrl1 =
  15706. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  15707. // this.dialogVisible3 = true;
  15708. this.showType = 2;
  15709. } else if (
  15710. this.isAssetTypeAnImage(
  15711. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  15712. )
  15713. ) {
  15714. this.showType = 4;
  15715. this.pptImgUrl1 = f.url;
  15716. } else if (
  15717. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  15718. "PDF"
  15719. ) {
  15720. this.pptImgUrl1 = f.url;
  15721. // this.dialogVisible3 = true;
  15722. this.showType = 3;
  15723. } else {
  15724. window.open(this.file[i].url);
  15725. }
  15726. this.isClickNav = i;
  15727. // this.isClickNav = "word" + i;
  15728. },
  15729. downFileList(i) {
  15730. window.open(this.noImgList[i].url);
  15731. },
  15732. openAddWork() {
  15733. this.dialogVisible = true;
  15734. },
  15735. addBzWorks() {
  15736. let params = [
  15737. {
  15738. uid: this.userid,
  15739. cid: this.id,
  15740. stage: this.courseType,
  15741. task: this.taskCount,
  15742. tool: this.toolindex,
  15743. content: JSON.stringify(this.eScore),
  15744. type: 6,
  15745. },
  15746. ];
  15747. this.ajax
  15748. .post(this.$store.state.api + "addCourseWorks", params)
  15749. .then((res) => {
  15750. this.$message({
  15751. message: "提交成功",
  15752. type: "success",
  15753. });
  15754. this.eScore = { eBzText: "", eStar: [] };
  15755. this.studentEvalDialogVisible = false;
  15756. this.selectSWorks();
  15757. })
  15758. .catch((err) => {
  15759. this.$message.error("提交失败");
  15760. console.error(err);
  15761. });
  15762. },
  15763. addBzWorksTeacher() {
  15764. let params = [
  15765. {
  15766. uid: this.sStudent.userid,
  15767. cid: this.id,
  15768. stage: this.courseType,
  15769. task: this.taskCount,
  15770. tool: this.toolindex,
  15771. content: JSON.stringify(this.eScore),
  15772. type: 6,
  15773. },
  15774. ];
  15775. this.ajax
  15776. .post(this.$store.state.api + "addCourseWorks", params)
  15777. .then((res) => {
  15778. this.$message({
  15779. message: "提交成功",
  15780. type: "success",
  15781. });
  15782. this.eScore = { eBzText: "", eStar: [] };
  15783. this.studentEvalDialogVisibleTeacher = false;
  15784. this.selectSWorks();
  15785. })
  15786. .catch((err) => {
  15787. this.$message.error("提交失败");
  15788. console.error(err);
  15789. });
  15790. },
  15791. addStudentAsk() {
  15792. if (!this.radio.length) {
  15793. this.$message.error("请选择选项");
  15794. return;
  15795. }
  15796. for (var i = 0; i < this.askJson.askCount; i++) {
  15797. if (
  15798. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15799. (this.radio[i] !== 0 && !this.radio[i])
  15800. ) {
  15801. this.$message.error("请选择选项");
  15802. return;
  15803. }
  15804. }
  15805. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15806. let params = [
  15807. {
  15808. uid: this.userid,
  15809. cid: this.id,
  15810. stage: this.courseType,
  15811. task: this.taskCount,
  15812. tool: this.toolindex,
  15813. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15814. type: 2,
  15815. },
  15816. ];
  15817. this.ajax
  15818. .post(this.$store.state.api + "addCourseWorks", params)
  15819. .then((res) => {
  15820. this.$message({
  15821. message: "提交成功",
  15822. type: "success",
  15823. });
  15824. this.askList = [];
  15825. this.dialogVisible5 = false;
  15826. this.selectStudent();
  15827. this.selectSWorks();
  15828. this.selectSLook();
  15829. })
  15830. .catch((err) => {
  15831. this.$message.error("提交失败");
  15832. console.error(err);
  15833. });
  15834. },
  15835. addStudentAskTeacher() {
  15836. if (!this.radio.length) {
  15837. this.$message.error("请选择选项");
  15838. return;
  15839. }
  15840. for (var i = 0; i < this.askJson.askCount; i++) {
  15841. if (
  15842. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15843. (this.radio[i] !== 0 && !this.radio[i])
  15844. ) {
  15845. this.$message.error("请选择选项");
  15846. return;
  15847. }
  15848. }
  15849. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15850. let params = [
  15851. {
  15852. uid: this.sStudent.userid,
  15853. cid: this.id,
  15854. stage: this.courseType,
  15855. task: this.taskCount,
  15856. tool: this.toolindex,
  15857. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15858. type: 2,
  15859. },
  15860. ];
  15861. this.ajax
  15862. .post(this.$store.state.api + "addCourseWorks", params)
  15863. .then((res) => {
  15864. this.$message({
  15865. message: "提交成功",
  15866. type: "success",
  15867. });
  15868. this.askList = [];
  15869. this.dialogVisible5Teacher = false;
  15870. this.selectStudent();
  15871. this.selectSWorks();
  15872. this.selectSLook();
  15873. })
  15874. .catch((err) => {
  15875. this.$message.error("提交失败");
  15876. console.error(err);
  15877. });
  15878. },
  15879. addStudentTest() {
  15880. if (!this.radio.length) {
  15881. this.$message.error("请选择选项");
  15882. return;
  15883. }
  15884. for (var i = 0; i < this.testJson.testCount; i++) {
  15885. if (
  15886. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15887. (this.radio[i] !== 0 && !this.radio[i])
  15888. ) {
  15889. this.$message.error("请选择选项");
  15890. return;
  15891. }
  15892. }
  15893. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15894. let params = [
  15895. {
  15896. uid: this.userid,
  15897. cid: this.id,
  15898. stage: this.courseType,
  15899. task: this.taskCount,
  15900. tool: this.toolindex,
  15901. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15902. type: 8,
  15903. },
  15904. ];
  15905. this.ajax
  15906. .post(this.$store.state.api + "addCourseWorks", params)
  15907. .then((res) => {
  15908. this.$message({
  15909. message: "提交成功",
  15910. type: "success",
  15911. });
  15912. this.askList = [];
  15913. this.dialogVisibleChoice = false;
  15914. this.selectStudent();
  15915. this.selectSWorks();
  15916. this.selectSLook();
  15917. })
  15918. .catch((err) => {
  15919. this.$message.error("提交失败");
  15920. console.error(err);
  15921. });
  15922. },
  15923. addStudentTestTeacher() {
  15924. if (!this.radio.length) {
  15925. this.$message.error("请选择选项");
  15926. return;
  15927. }
  15928. for (var i = 0; i < this.testJson.testCount; i++) {
  15929. if (
  15930. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15931. (this.radio[i] !== 0 && !this.radio[i])
  15932. ) {
  15933. this.$message.error("请选择选项");
  15934. return;
  15935. }
  15936. }
  15937. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15938. let params = [
  15939. {
  15940. uid: this.sStudent.userid,
  15941. cid: this.id,
  15942. stage: this.courseType,
  15943. task: this.taskCount,
  15944. tool: this.toolindex,
  15945. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15946. type: 8,
  15947. },
  15948. ];
  15949. this.ajax
  15950. .post(this.$store.state.api + "addCourseWorks", params)
  15951. .then((res) => {
  15952. this.$message({
  15953. message: "提交成功",
  15954. type: "success",
  15955. });
  15956. this.askList = [];
  15957. this.dialogVisibleChoiceTeacher = false;
  15958. this.selectStudent();
  15959. this.selectSWorks();
  15960. this.selectSLook();
  15961. })
  15962. .catch((err) => {
  15963. this.$message.error("提交失败");
  15964. console.error(err);
  15965. });
  15966. },
  15967. addWork() {
  15968. if (this.studyJuri[0].content == "") {
  15969. this.$message.error("请将信息填写完整");
  15970. return;
  15971. } else if (this.studyJuri[0].cover.length == 0) {
  15972. this.$message.error("请将信息填写完整");
  15973. return;
  15974. } else if (this.studyJuri[0].upVedio.length == 0) {
  15975. this.$message.error("请将信息填写完整");
  15976. return;
  15977. }
  15978. if (this.isNoHomeWork) {
  15979. this.$confirm(
  15980. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  15981. "提示",
  15982. {
  15983. confirmButtonText: "确定",
  15984. cancelButtonText: "取消",
  15985. type: "warning",
  15986. }
  15987. )
  15988. .then(() => {
  15989. let params = [
  15990. {
  15991. uid: this.userid,
  15992. cid: this.id,
  15993. stage: this.courseType,
  15994. task: this.taskCount,
  15995. content: JSON.stringify(this.studyJuri),
  15996. },
  15997. ];
  15998. this.ajax
  15999. .post(this.$store.state.api + "addWorks", params)
  16000. .then((res) => {
  16001. this.$message({
  16002. message: "提交成功",
  16003. type: "success",
  16004. });
  16005. this.isNoHomeWork = true;
  16006. this.dialogVisible = false;
  16007. })
  16008. .catch((err) => {
  16009. this.$message.error("提交失败");
  16010. console.error(err);
  16011. });
  16012. })
  16013. .catch(() => {});
  16014. } else {
  16015. let params = [
  16016. {
  16017. uid: this.userid,
  16018. cid: this.id,
  16019. stage: this.courseType,
  16020. task: this.taskCount,
  16021. content: JSON.stringify(this.studyJuri),
  16022. },
  16023. ];
  16024. this.ajax
  16025. .post(this.$store.state.api + "addWorks", params)
  16026. .then((res) => {
  16027. this.$message({
  16028. message: "提交成功",
  16029. type: "success",
  16030. });
  16031. this.isNoHomeWork = true;
  16032. this.dialogVisible = false;
  16033. })
  16034. .catch((err) => {
  16035. this.$message.error("提交失败");
  16036. console.error(err);
  16037. });
  16038. }
  16039. },
  16040. selectCount() {
  16041. let params = {
  16042. cid: this.id,
  16043. chid: this.courseType,
  16044. uid: this.userid,
  16045. };
  16046. this.ajax
  16047. .get(this.$store.state.api + "selectToolsCount", params)
  16048. .then((res) => {
  16049. for (var i = 0; i < res.data[0].length; i++) {
  16050. if (res.data[0][i].tools == 1) {
  16051. this.wbCount = res.data[0][i].count;
  16052. } else if (res.data[0][i].tools == 2) {
  16053. this.wordCount = res.data[0][i].count;
  16054. } else if (res.data[0][i].tools == 3) {
  16055. this.mindCount = res.data[0][i].count;
  16056. } else if (res.data[0][i].tools == 4) {
  16057. this.askCount = res.data[0][i].count;
  16058. } else if (res.data[0][i].tools == 6) {
  16059. this.noteCount = res.data[0][i].count;
  16060. } else if (res.data[0][i].tools == 7) {
  16061. this.mindNetWorkCount = res.data[0][i].count;
  16062. } else if (res.data[0][i].tools == 8) {
  16063. this.libraryCount = res.data[0][i].count;
  16064. } else if (res.data[0][i].tools == 16) {
  16065. this.workCount = res.data[0][i].count;
  16066. } else if (res.data[0][i].tools == 10) {
  16067. this.timeCount = res.data[0][i].count;
  16068. } else if (res.data[0][i].tools == 15) {
  16069. this.answerCount = res.data[0][i].count;
  16070. } else if (res.data[0][i].tools == 18) {
  16071. this.trainCount = res.data[0][i].count;
  16072. }
  16073. }
  16074. })
  16075. .catch((err) => {
  16076. console.error(err);
  16077. });
  16078. },
  16079. openTools(t, i, index, c, sName) {
  16080. var z = JSON.parse(c);
  16081. this.noteName = sName;
  16082. if (t == 4) {
  16083. this.radio = [];
  16084. this.isAnswer = false;
  16085. let b = z[0].anwer;
  16086. this.radio = b;
  16087. this.askJson = z[0].askJson;
  16088. this.isAnswer = true;
  16089. this.dialogVisible5 = true;
  16090. } else if (t == 45) {
  16091. this.radio = [];
  16092. this.isAnswer = false;
  16093. let b = z[0].anwer;
  16094. this.radio = b;
  16095. this.testJson = z[0].testJson;
  16096. this.isAnswer = true;
  16097. this.dialogVisibleChoice = true;
  16098. }
  16099. // else if (t == 15) {
  16100. // this.answerQ = "";
  16101. // this.questionAnswer = "";
  16102. // this.answerQ = z[0].answerTitle;
  16103. // this.questionAnswer = z[0].answer;
  16104. // this.answerDialogVisible = true;
  16105. // }
  16106. },
  16107. fastText(p, t) {
  16108. if (t == 1) {
  16109. this.commentText += p;
  16110. } else {
  16111. this.eScore.eBzText += p;
  16112. }
  16113. },
  16114. addTools(t, i, index) {
  16115. var a = 0;
  16116. // this.taskCount = index;
  16117. this.toolindex = i;
  16118. if (t == 1) {
  16119. if (this.wbCount > 0) {
  16120. this.updateCount(this.wbCount, t);
  16121. } else {
  16122. this.wbCount++;
  16123. a = this.wbCount;
  16124. this.toolsCount(a, t);
  16125. }
  16126. window.parent.postMessage(
  16127. {
  16128. tools: "1",
  16129. cid: this.id,
  16130. stage: this.courseType,
  16131. task: this.taskCount,
  16132. tool: i,
  16133. },
  16134. "*"
  16135. );
  16136. } else if (t == 2) {
  16137. if (this.wordCount > 0) {
  16138. this.updateCount(this.wordCount, t);
  16139. } else {
  16140. this.wordCount++;
  16141. a = this.wordCount;
  16142. this.toolsCount(a, t);
  16143. }
  16144. window.parent.postMessage({ tools: "2" }, "*");
  16145. } else if (t == 3) {
  16146. if (this.mindCount > 0) {
  16147. this.updateCount(this.mindCount, t);
  16148. } else {
  16149. this.mindCount++;
  16150. a = this.mindCount;
  16151. this.toolsCount(a, t);
  16152. }
  16153. window.parent.postMessage(
  16154. {
  16155. tools: "3",
  16156. cid: this.id,
  16157. stage: this.courseType,
  16158. task: this.taskCount,
  16159. tool: i,
  16160. },
  16161. "*"
  16162. );
  16163. } else if (t == 4) {
  16164. this.radio = [];
  16165. this.noteName = "";
  16166. this.isAnswer = false;
  16167. if (this.askCount > 0) {
  16168. this.updateCount(this.askCount, t);
  16169. } else {
  16170. this.askCount++;
  16171. a = this.askCount;
  16172. this.toolsCount(a, t);
  16173. }
  16174. this.askJson.askJson =
  16175. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16176. index
  16177. ].toolChoose[i].askJson;
  16178. this.askJson.askTitle =
  16179. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16180. index
  16181. ].toolChoose[i].askTitle;
  16182. this.askJson.askCount =
  16183. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16184. index
  16185. ].toolChoose[i].askCount;
  16186. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16187. if (this.askJson.askJson[k].type == "2") {
  16188. this.radio.push([]);
  16189. } else {
  16190. this.radio.push("");
  16191. }
  16192. }
  16193. this.dialogVisible5 = true;
  16194. // window.parent.postMessage({ tools: "4" }, "*");
  16195. } else if (t == 45) {
  16196. this.noteName = "";
  16197. this.radio = [];
  16198. this.isAnswer = false;
  16199. if (this.askCount > 0) {
  16200. this.updateCount(this.askCount, t);
  16201. } else {
  16202. this.askCount++;
  16203. a = this.askCount;
  16204. this.toolsCount(a, t);
  16205. }
  16206. this.testJson =
  16207. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16208. index
  16209. ].toolChoose[i].testJson;
  16210. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16211. if (this.testJson.testJson[k].type == "2") {
  16212. this.radio.push([]);
  16213. } else {
  16214. this.radio.push("");
  16215. }
  16216. }
  16217. this.dialogVisibleChoice = true;
  16218. // window.parent.postMessage({ tools: "4" }, "*");
  16219. } else if (t == 5) {
  16220. if (this.scoreCount > 0) {
  16221. this.updateCount(this.scoreCount, t);
  16222. } else {
  16223. this.scoreCount++;
  16224. a = this.scoreCount;
  16225. this.toolsCount(a, t);
  16226. }
  16227. this.dialogVisible4 = true;
  16228. // window.parent.postMessage({ tools: "5" }, "*");
  16229. } else if (t == 6) {
  16230. if (this.noteCount > 0) {
  16231. this.updateCount(this.noteCount, t);
  16232. } else {
  16233. this.noteCount++;
  16234. a = this.noteCount;
  16235. this.toolsCount(a, t);
  16236. }
  16237. window.parent.postMessage(
  16238. {
  16239. tools: "6",
  16240. cid: this.id,
  16241. stage: this.courseType,
  16242. task: this.taskCount,
  16243. tool: i,
  16244. },
  16245. "*"
  16246. );
  16247. } else if (t == 7) {
  16248. if (this.mindNetWorkCount > 0) {
  16249. this.updateCount(this.mindNetWorkCount, t);
  16250. } else {
  16251. this.mindNetWorkCount++;
  16252. a = this.mindNetWorkCount;
  16253. this.toolsCount(a, t);
  16254. }
  16255. window.parent.postMessage(
  16256. {
  16257. tools: "7",
  16258. cid: this.id,
  16259. stage: this.courseType,
  16260. task: this.taskCount,
  16261. tool: i,
  16262. },
  16263. "*"
  16264. );
  16265. } else if (t == 16) {
  16266. if (this.workCount > 0) {
  16267. this.updateCount(this.workCount, t);
  16268. } else {
  16269. this.workCount++;
  16270. a = this.workCount;
  16271. this.toolsCount(a, t);
  16272. }
  16273. this.dialogVisible = true;
  16274. } else if (t == 50) {
  16275. if (this.tType == 2) {
  16276. this.$message.error("不支持学生使用");
  16277. return;
  16278. }
  16279. this.plworkFile = [];
  16280. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16281. if (!this.uploadCid) {
  16282. this.$message.error(
  16283. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16284. );
  16285. return;
  16286. }
  16287. this.selectUploadStudent(2);
  16288. } else if (t == 8) {
  16289. if (this.libraryCount > 0) {
  16290. this.updateCount(this.libraryCount, t);
  16291. } else {
  16292. this.libraryCount++;
  16293. a = this.libraryCount;
  16294. this.toolsCount(a, t);
  16295. }
  16296. window.parent.postMessage({ tools: "8" }, "*");
  16297. } else if (t == 17) {
  16298. if (this.libraryCount > 0) {
  16299. this.updateCount(this.libraryCount, t);
  16300. } else {
  16301. this.libraryCount++;
  16302. a = this.libraryCount;
  16303. this.toolsCount(a, t);
  16304. }
  16305. window.parent.postMessage({ tools: "17" }, "*");
  16306. } else if (t == 18) {
  16307. if (this.trainCount > 0) {
  16308. this.updateCount(this.trainCount, t);
  16309. } else {
  16310. this.trainCount++;
  16311. a = this.trainCount;
  16312. this.toolsCount(a, t);
  16313. }
  16314. window.parent.postMessage({ tools: "18" }, "*");
  16315. } else if (t == 10) {
  16316. if (this.timeCount > 0) {
  16317. this.updateCount(this.timeCount, t);
  16318. } else {
  16319. this.timeCount++;
  16320. a = this.timeCount;
  16321. this.toolsCount(a, t);
  16322. }
  16323. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  16324. .taskJson[index].toolChoose[i].preTime
  16325. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16326. .toolChoose[i].preTime
  16327. : "";
  16328. this.timeDialogVisible = true;
  16329. } else if (t == 15) {
  16330. this.answerQ = "";
  16331. this.questionAnswer = "";
  16332. if (this.answerCount > 0) {
  16333. this.updateCount(this.answerCount, t);
  16334. } else {
  16335. this.answerCount++;
  16336. a = this.answerCount;
  16337. this.toolsCount(a, t);
  16338. }
  16339. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16340. .taskJson[index].toolChoose[i].answerQ
  16341. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16342. .toolChoose[i].answerQ
  16343. : "";
  16344. this.answerDialogVisible = true;
  16345. } else if (t == 21) {
  16346. window.parent.postMessage({ tools: "21" }, "*");
  16347. } else if (t == 22) {
  16348. window.parent.postMessage({ tools: "22" }, "*");
  16349. } else if (t == 23) {
  16350. window.parent.postMessage({ tools: "23" }, "*");
  16351. } else if (t == 24) {
  16352. window.parent.postMessage({ tools: "24" }, "*");
  16353. } else if (t == 25) {
  16354. window.parent.postMessage({ tools: "25" }, "*");
  16355. } else if (t == 31) {
  16356. window.parent.postMessage({ tools: "31" }, "*");
  16357. } else if (t == 28) {
  16358. window.parent.postMessage({ tools: "28" }, "*");
  16359. } else if (t == 37) {
  16360. window.parent.postMessage({ tools: "37" }, "*");
  16361. } else if (t == 38) {
  16362. window.parent.postMessage({ tools: "38" }, "*");
  16363. } else if (t == 39) {
  16364. window.parent.postMessage({ tools: "39" }, "*");
  16365. } else if (t == 32) {
  16366. window.parent.postMessage({ tools: "32" }, "*");
  16367. } else if (t == 57) {
  16368. // window.parent.postMessage({ tools: "57" }, "*");
  16369. window.parent.postMessage(
  16370. {
  16371. tools: "57u",
  16372. cid: this.id,
  16373. stage: this.courseType,
  16374. task: this.taskCount,
  16375. tool: i,
  16376. },
  16377. "*"
  16378. );
  16379. } else if (t == 58) {
  16380. window.parent.postMessage({ tools: "58" }, "*");
  16381. } else if (t == 59) {
  16382. window.parent.postMessage({ tools: "59" }, "*");
  16383. } else if (t == 60) {
  16384. window.parent.postMessage({ tools: "60" }, "*");
  16385. } else if (t == 61) {
  16386. window.parent.postMessage({ tools: "61" }, "*");
  16387. } else if (t == 63) {
  16388. window.parent.postMessage({ tools: "63" }, "*");
  16389. } else if (t == 65) {
  16390. if (this.tType == 2) {
  16391. this.$message.error("不支持学生使用");
  16392. return;
  16393. }
  16394. this.uploadCid = this.tcid;
  16395. if (!this.uploadCid) {
  16396. this.$message.error(
  16397. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  16398. );
  16399. return;
  16400. }
  16401. this.selectPickStudent();
  16402. } else if (t == 26) {
  16403. window.parent.postMessage(
  16404. {
  16405. tools: "26",
  16406. cid: this.id,
  16407. stage: this.courseType,
  16408. task: this.taskCount,
  16409. tool: i,
  16410. },
  16411. "*"
  16412. );
  16413. } else if (t == 40) {
  16414. if (this.evalCount > 0) {
  16415. this.updateCount(this.evalCount, t);
  16416. } else {
  16417. this.evalCount++;
  16418. a = this.evalCount;
  16419. this.toolsCount(a, t);
  16420. }
  16421. this.eScore = { eBzText: "", eStar: [] };
  16422. if (this.worksStudent[i].length) {
  16423. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16424. if (this.userid == this.worksStudent[i][k].userid) {
  16425. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16426. this.rateJson =
  16427. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16428. index
  16429. ].toolChoose[i].rateJson;
  16430. break;
  16431. } else {
  16432. this.rateJson =
  16433. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16434. index
  16435. ].toolChoose[i].rateJson;
  16436. }
  16437. }
  16438. } else {
  16439. this.rateJson =
  16440. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16441. index
  16442. ].toolChoose[i].rateJson;
  16443. }
  16444. this.isStar = false;
  16445. this.studentEvalDialogVisible = true;
  16446. } else if (t == 41) {
  16447. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16448. .taskJson[index].toolChoose[i].selectJson
  16449. ? JSON.parse(
  16450. JSON.stringify(
  16451. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16452. index
  16453. ].toolChoose[i].selectJson
  16454. )
  16455. )
  16456. : { url: "", select: [], answer: [] };
  16457. if (this.worksStudent[i].length) {
  16458. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16459. if (this.userid == this.worksStudent[i][k].userid) {
  16460. var a = this.worksStudent[i][k].works.split(",");
  16461. for (var ki = 0; ki < a.length; ki++) {
  16462. a[ki] = parseInt(a[ki]);
  16463. }
  16464. this.selectAnswer = {
  16465. answer: a,
  16466. stu: this.worksStudent[i][k].sName,
  16467. };
  16468. break;
  16469. } else {
  16470. this.selectAnswer = { answer: [], stu: "" };
  16471. }
  16472. }
  16473. } else {
  16474. this.selectAnswer = { answer: [], stu: "" };
  16475. }
  16476. this.isSelect = false;
  16477. this.dialogVisibleSelect = true;
  16478. } else if (t == 44) {
  16479. window.parent.postMessage({ tools: "44" }, "*");
  16480. } else if (t == 47) {
  16481. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16482. .taskJson[index].toolChoose[i].sentenceList
  16483. ? JSON.parse(
  16484. JSON.stringify(
  16485. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16486. index
  16487. ].toolChoose[i].sentenceList
  16488. )
  16489. )
  16490. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16491. for (var q = 0; q < this.sentenceList.length; q++) {
  16492. this.sentenceList[q].chooseSenList = [];
  16493. this.sentenceList[q].addChangeSen = [];
  16494. this.sentenceList[q].addChangeSen = JSON.parse(
  16495. JSON.stringify(this.sentenceList[q].addSentence)
  16496. );
  16497. this.sentenceList[q].chooseSenList.length =
  16498. this.sentenceList[q].rightAnswer.length;
  16499. }
  16500. this.dialogVisibleSentence = true;
  16501. } else if (t == 48) {
  16502. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16503. .taskJson[index].toolChoose[i].tableJson
  16504. ? JSON.parse(
  16505. JSON.stringify(
  16506. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16507. index
  16508. ].toolChoose[i].tableJson
  16509. )
  16510. )
  16511. : { text: "" };
  16512. if (this.worksStudent[i].length) {
  16513. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16514. if (this.userid == this.worksStudent[i][k].userid) {
  16515. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16516. break;
  16517. }
  16518. }
  16519. }
  16520. this.dialogVisibleTable = true;
  16521. } else if (t == 52) {
  16522. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16523. .taskJson[index].toolChoose[i].wordJson
  16524. ? JSON.parse(
  16525. JSON.stringify(
  16526. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16527. index
  16528. ].toolChoose[i].wordJson
  16529. )
  16530. )
  16531. : { text: "" };
  16532. if (this.worksStudent[i].length) {
  16533. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16534. if (this.userid == this.worksStudent[i][k].userid) {
  16535. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16536. break;
  16537. }
  16538. }
  16539. }
  16540. this.dialogVisibleWord = true;
  16541. } else if (t == 49) {
  16542. this.groupJson =
  16543. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16544. index
  16545. ].toolChoose[i].groupJson;
  16546. this.dialogVisibleGroup = true;
  16547. } else if (t == 62) {
  16548. this.videoJson =
  16549. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16550. index
  16551. ].toolChoose[i].videoJson;
  16552. this.dialogVisibleVideo = true;
  16553. }
  16554. },
  16555. teacherWorkSubmit(t, i, index, s) {
  16556. this.sStudent = s;
  16557. this.sTool = t;
  16558. this.toolindex = i;
  16559. if (this.tType !== "1" && this.tType !== "4") {
  16560. return;
  16561. }
  16562. if (t == 16 || t == 32 || t == 50) {
  16563. this.dialogVisibleWorks = true; //作业提交
  16564. } else if (t == 15) {
  16565. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16566. .taskJson[index].toolChoose[i].answerQ
  16567. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16568. .toolChoose[i].answerQ
  16569. : "";
  16570. this.questionAnswer = "";
  16571. this.answerDialogVisibleTeacher = true; //问答
  16572. } else if (t == 52) {
  16573. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16574. .taskJson[index].toolChoose[i].wordJson
  16575. ? JSON.parse(
  16576. JSON.stringify(
  16577. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16578. index
  16579. ].toolChoose[i].wordJson
  16580. )
  16581. )
  16582. : { text: "" };
  16583. if (this.worksStudent[i].length) {
  16584. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16585. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16586. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16587. break;
  16588. }
  16589. }
  16590. }
  16591. this.dialogVisibleWordTeacher = true; //文档
  16592. } else if (t == 4) {
  16593. this.radio = [];
  16594. this.noteName = "";
  16595. this.isAnswer = false;
  16596. if (this.askCount > 0) {
  16597. this.updateCount(this.askCount, t);
  16598. } else {
  16599. this.askCount++;
  16600. a = this.askCount;
  16601. this.toolsCount(a, t);
  16602. }
  16603. if (!this.dialogVisible2) {
  16604. this.askJson.askJson =
  16605. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16606. index
  16607. ].toolChoose[i].askJson;
  16608. this.askJson.askTitle =
  16609. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16610. index
  16611. ].toolChoose[i].askTitle;
  16612. this.askJson.askCount =
  16613. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16614. index
  16615. ].toolChoose[i].askCount;
  16616. } else {
  16617. this.askJson.askJson = this.chapTools.askJson.askJson;
  16618. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16619. this.askJson.askCount = this.chapTools.askJson.askCount;
  16620. }
  16621. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16622. if (this.askJson.askJson[k].type == "2") {
  16623. this.radio.push([]);
  16624. } else {
  16625. this.radio.push("");
  16626. }
  16627. }
  16628. this.dialogVisible5Teacher = true;
  16629. } else if (t == 45) {
  16630. this.noteName = "";
  16631. this.radio = [];
  16632. this.isAnswer = false;
  16633. if (this.askCount > 0) {
  16634. this.updateCount(this.askCount, t);
  16635. } else {
  16636. this.askCount++;
  16637. a = this.askCount;
  16638. this.toolsCount(a, t);
  16639. }
  16640. this.testJson =
  16641. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16642. index
  16643. ].toolChoose[i].testJson;
  16644. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16645. if (this.testJson.testJson[k].type == "2") {
  16646. this.radio.push([]);
  16647. } else {
  16648. this.radio.push("");
  16649. }
  16650. }
  16651. this.dialogVisibleChoiceTeacher = true;
  16652. } else if (t == 41) {
  16653. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16654. .taskJson[index].toolChoose[i].selectJson
  16655. ? JSON.parse(
  16656. JSON.stringify(
  16657. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16658. index
  16659. ].toolChoose[i].selectJson
  16660. )
  16661. )
  16662. : { url: "", select: [], answer: [] };
  16663. if (this.worksStudent[i].length) {
  16664. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16665. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16666. var a = this.worksStudent[i][k].works.split(",");
  16667. for (var ki = 0; ki < a.length; ki++) {
  16668. a[ki] = parseInt(a[ki]);
  16669. }
  16670. this.selectAnswer = {
  16671. answer: a,
  16672. stu: this.worksStudent[i][k].sName,
  16673. };
  16674. break;
  16675. } else {
  16676. this.selectAnswer = { answer: [], stu: "" };
  16677. }
  16678. }
  16679. } else {
  16680. this.selectAnswer = { answer: [], stu: "" };
  16681. }
  16682. this.isSelect = false;
  16683. this.dialogVisibleSelectTeacher = true;
  16684. } else if (t == 47) {
  16685. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16686. .taskJson[index].toolChoose[i].sentenceList
  16687. ? JSON.parse(
  16688. JSON.stringify(
  16689. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16690. index
  16691. ].toolChoose[i].sentenceList
  16692. )
  16693. )
  16694. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16695. for (var q = 0; q < this.sentenceList.length; q++) {
  16696. this.sentenceList[q].chooseSenList = [];
  16697. this.sentenceList[q].addChangeSen = [];
  16698. this.sentenceList[q].addChangeSen = JSON.parse(
  16699. JSON.stringify(this.sentenceList[q].addSentence)
  16700. );
  16701. this.sentenceList[q].chooseSenList.length =
  16702. this.sentenceList[q].rightAnswer.length;
  16703. }
  16704. this.dialogVisibleSentenceTeacher = true;
  16705. } else if (t == 48) {
  16706. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16707. .taskJson[index].toolChoose[i].tableJson
  16708. ? JSON.parse(
  16709. JSON.stringify(
  16710. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16711. index
  16712. ].toolChoose[i].tableJson
  16713. )
  16714. )
  16715. : { text: "" };
  16716. if (this.worksStudent[i].length) {
  16717. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16718. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16719. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16720. break;
  16721. }
  16722. }
  16723. }
  16724. this.dialogVisibleTableTeacher = true;
  16725. } else if (t == 40) {
  16726. if (this.evalCount > 0) {
  16727. this.updateCount(this.evalCount, t);
  16728. } else {
  16729. this.evalCount++;
  16730. a = this.evalCount;
  16731. this.toolsCount(a, t);
  16732. }
  16733. this.eScore = { eBzText: "", eStar: [] };
  16734. if (this.worksStudent[i].length) {
  16735. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16736. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16737. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16738. this.rateJson =
  16739. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16740. index
  16741. ].toolChoose[i].rateJson;
  16742. break;
  16743. } else {
  16744. this.rateJson =
  16745. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16746. index
  16747. ].toolChoose[i].rateJson;
  16748. }
  16749. }
  16750. } else {
  16751. this.rateJson =
  16752. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16753. index
  16754. ].toolChoose[i].rateJson;
  16755. }
  16756. this.isStar = false;
  16757. this.studentEvalDialogVisibleTeacher = true;
  16758. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  16759. window.parent.postMessage(
  16760. {
  16761. tools: t + "teacher",
  16762. cid: this.id,
  16763. stage: this.courseType,
  16764. task: this.taskCount,
  16765. tool: i,
  16766. student: this.sStudent,
  16767. },
  16768. "*"
  16769. );
  16770. }
  16771. },
  16772. openCocoPi(tool, i, uid, uname) {
  16773. let student = {
  16774. userid: uid,
  16775. student: uname,
  16776. };
  16777. if (tool == 57) {
  16778. window.parent.postMessage(
  16779. {
  16780. tools: tool + "teacher",
  16781. cid: this.id,
  16782. stage: this.courseType,
  16783. task: this.taskCount,
  16784. tool: i,
  16785. student: student,
  16786. },
  16787. "*"
  16788. );
  16789. }
  16790. },
  16791. setRightAnswer(s, i, j) {
  16792. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  16793. if (
  16794. this.sentenceList[i].chooseSenList[q] == undefined ||
  16795. this.sentenceList[i].chooseSenList[q] == ""
  16796. ) {
  16797. this.sentenceList[i].chooseSenList[q] = s;
  16798. this.sentenceList[i].addChangeSen[j] = "";
  16799. break;
  16800. }
  16801. }
  16802. this.$forceUpdate();
  16803. },
  16804. returnCard(r, i, j) {
  16805. var a = this.sentenceList[i].addSentence.indexOf(r);
  16806. this.sentenceList[i].chooseSenList[j] = "";
  16807. this.sentenceList[i].addChangeSen[a] = r;
  16808. this.$forceUpdate();
  16809. },
  16810. // addSentenceTool() {
  16811. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16812. // this.taskCount
  16813. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  16814. // this.sentenceList = [
  16815. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  16816. // ];
  16817. // this.dialogVisibleSentence = false;
  16818. // },
  16819. toolsCount(a, t) {
  16820. let params = {
  16821. cid: this.id,
  16822. chid: this.courseType,
  16823. uid: this.userid,
  16824. tid: t,
  16825. count: a,
  16826. };
  16827. this.ajax
  16828. .get(this.$store.state.api + "insertToolsCount", params)
  16829. .then((res) => {
  16830. this.selectCount();
  16831. })
  16832. .catch((err) => {
  16833. console.error(err);
  16834. });
  16835. },
  16836. updateCount(c, t) {
  16837. c++;
  16838. let params = {
  16839. cid: this.id,
  16840. chid: this.courseType,
  16841. uid: this.userid,
  16842. tid: t,
  16843. count: c,
  16844. };
  16845. this.ajax
  16846. .get(this.$store.state.api + "updateToolsCount", params)
  16847. .then((res) => {
  16848. this.selectCount();
  16849. })
  16850. .catch((err) => {
  16851. console.error(err);
  16852. });
  16853. },
  16854. checkEva() {
  16855. if (this.evalua != "") {
  16856. for (var i = 0; i < this.evaJuri.length; i++) {
  16857. if (this.evalua == this.evaJuri[i].id) {
  16858. this.eTitle = this.evaJuri[i].title;
  16859. this.eJson = JSON.parse(this.evaJuri[i].content);
  16860. }
  16861. }
  16862. this.$forceUpdate();
  16863. setTimeout(() => {
  16864. this.setMindData();
  16865. }, 0);
  16866. }
  16867. },
  16868. selectEva() {
  16869. let params = {
  16870. oid: this.oid,
  16871. };
  16872. this.ajax
  16873. .get(this.$store.state.api + "selectAllEvaluation", params)
  16874. .then((res) => {
  16875. this.evaJuri = res.data[0];
  16876. })
  16877. .catch((err) => {
  16878. console.error(err);
  16879. });
  16880. },
  16881. setMindData() {
  16882. this.data.data = [];
  16883. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  16884. let _eJson = Object.keys(this.eJson);
  16885. let _e = this.eJson;
  16886. for (let i = 0; i < _eJson.length; i++) {
  16887. let element = _e[_eJson[i]];
  16888. this.data.data.push({
  16889. id: element.id,
  16890. parentid: "root",
  16891. topic: element.name,
  16892. });
  16893. let _eJsonc = Object.keys(element.child);
  16894. let _e2 = element.child;
  16895. for (let j = 0; j < _eJsonc.length; j++) {
  16896. let _ec = _e2[_eJsonc[j]];
  16897. this.data.data.push({
  16898. id: _ec.id,
  16899. parentid: element.id,
  16900. topic: _ec.name,
  16901. });
  16902. let _eJsonz = Object.keys(_ec.child);
  16903. let _e3 = _ec.child;
  16904. for (let z = 0; z < _eJsonz.length; z++) {
  16905. let _ez = _e3[_eJsonz[z]];
  16906. this.data.data.push({
  16907. id: _ez.id,
  16908. parentid: _ec.id,
  16909. topic: _ez.name,
  16910. });
  16911. }
  16912. }
  16913. }
  16914. this.$forceUpdate();
  16915. },
  16916. checkFileFull(type, url) {
  16917. this.fullDialogVisible = true;
  16918. this.fulltype = type;
  16919. this.fullUrl = url;
  16920. },
  16921. openSname(n, id, i, uid) {
  16922. this.snameWid = id;
  16923. this.worksSName = n;
  16924. this.worksSid = uid == n ? "" : uid;
  16925. this.toolindex = i;
  16926. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16927. if (!this.uploadCid) {
  16928. this.$message.error(
  16929. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16930. );
  16931. return;
  16932. }
  16933. this.selectUploadStudent(1);
  16934. },
  16935. updateName() {
  16936. let params = {
  16937. n: this.worksSName,
  16938. cid: this.snameWid,
  16939. };
  16940. this.ajax
  16941. .get(this.$store.state.api + "updateCourseWorksName", params)
  16942. .then((res) => {
  16943. this.$message({
  16944. message: "修改成功",
  16945. type: "success",
  16946. });
  16947. this.dialogVisibleSname = false;
  16948. this.getCourseDetail();
  16949. this.snameWid = "";
  16950. this.worksSName = "";
  16951. })
  16952. .catch((err) => {
  16953. console.error(err);
  16954. });
  16955. },
  16956. downloadFile2(f) {
  16957. const loading = this.$loading.service({
  16958. background: "rgba(255, 255, 255, 0.7)",
  16959. target: document.body,
  16960. text: "文件加载中...",
  16961. });
  16962. let url2 = f.url;
  16963. let _url2 = "";
  16964. if (
  16965. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16966. ) {
  16967. _url2 = url2.split(
  16968. "https://view.officeapps.live.com/op/view.aspx?src="
  16969. )[1];
  16970. } else {
  16971. _url2 = url2;
  16972. }
  16973. let params = {
  16974. url: _url2,
  16975. name: f.name,
  16976. };
  16977. this.ajax
  16978. .get(this.$store.state.api + "download", params)
  16979. .then((res) => {
  16980. console.log(res);
  16981. loading.close();
  16982. let content = res.data.data.data;
  16983. let ab = new ArrayBuffer(content.length);
  16984. let view = new Uint8Array(ab);
  16985. for (var i = 0; i < content.length; ++i) {
  16986. view[i] = content[i];
  16987. }
  16988. let elink = document.createElement("a");
  16989. elink.download = f.name;
  16990. elink.style.display = "none";
  16991. let blob = new Blob([ab], {
  16992. type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  16993. });
  16994. elink.href = URL.createObjectURL(blob);
  16995. document.body.appendChild(elink);
  16996. elink.click();
  16997. document.body.removeChild(elink);
  16998. })
  16999. .catch((err) => {
  17000. loading.close();
  17001. console.error(err);
  17002. });
  17003. },
  17004. downloadFile(url) {
  17005. let _this = this;
  17006. let _url = "";
  17007. if (
  17008. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17009. ) {
  17010. _url = url.split(
  17011. "https://view.officeapps.live.com/op/view.aspx?src="
  17012. )[1];
  17013. } else {
  17014. _url = url;
  17015. }
  17016. const x = new XMLHttpRequest();
  17017. x.open("GET", _url, true);
  17018. x.responseType = "blob";
  17019. const loading = _this.$loading.service({
  17020. background: "rgba(255, 255, 255, 0.7)",
  17021. target: document.body,
  17022. text: "文件加载中...",
  17023. });
  17024. // _this.$message.success("文件下载中...");
  17025. x.onload = function (e) {
  17026. loading.close();
  17027. // const url = window.URL.createObjectURL(x.response);
  17028. // const a = document.createElement("a");
  17029. // a.href = url;
  17030. // a.target = "_blank";
  17031. // a.download = url;
  17032. // a.click();
  17033. // a.remove();
  17034. let content = x.response;
  17035. let elink = document.createElement("a");
  17036. elink.download = decodeURI(
  17037. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17038. );
  17039. elink.style.display = "none";
  17040. let blob = new Blob([content]);
  17041. elink.href = URL.createObjectURL(blob);
  17042. document.body.appendChild(elink);
  17043. elink.click();
  17044. document.body.removeChild(elink);
  17045. };
  17046. x.send();
  17047. },
  17048. openLine(url) {
  17049. window.open(url);
  17050. },
  17051. resize() {
  17052. if (document.getElementsByClassName("box_course").length) {
  17053. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17054. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17055. if (this.showType == 2 || this.showType == 3) {
  17056. document.getElementsByClassName("navBox")[0].style.height =
  17057. a - 40 + 46 + "px";
  17058. } else {
  17059. document.getElementsByClassName("navBox")[0].style.height =
  17060. a - 40 + "px";
  17061. }
  17062. }
  17063. this.Stbodywidth =
  17064. document.getElementsByClassName("student_body").length &&
  17065. document.getElementsByClassName("student_body")[0].offsetWidth;
  17066. },
  17067. closeDraw() {
  17068. this.bg = null;
  17069. this.drawShow = false;
  17070. },
  17071. showPicturePaint(url) {
  17072. let params = {
  17073. img: url,
  17074. };
  17075. this.ajax
  17076. .get(this.$store.state.api + "imgToBase64", params)
  17077. .then((res) => {
  17078. console.log(res);
  17079. this.drawShow = true;
  17080. this.bg = res.data[0].img;
  17081. })
  17082. .catch((err) => {
  17083. console.error(err);
  17084. });
  17085. },
  17086. addImgDraw(base64) {
  17087. let file = { name: "批注图.png" };
  17088. let img = this.dataUrlToFile(base64, file);
  17089. this.beforeUpload1(img, 5);
  17090. },
  17091. addImgDrawImG(url) {
  17092. // console.log(url);
  17093. let params = [
  17094. {
  17095. wid: this.commentDetail.wid,
  17096. img: url,
  17097. },
  17098. ];
  17099. this.ajax
  17100. .post(this.$store.state.api + "updateCourseWorks", params)
  17101. .then((res) => {
  17102. this.$message({
  17103. message: "提交成功",
  17104. type: "success",
  17105. });
  17106. this.drawShow = false;
  17107. this.bg = "";
  17108. this.selectSWorks();
  17109. this.selectStudent();
  17110. })
  17111. .catch((err) => {
  17112. this.$message.error("提交失败");
  17113. console.error(err);
  17114. });
  17115. },
  17116. deletePicturePaint() {
  17117. this.$confirm("确定删除此批注吗?", "提示", {
  17118. confirmButtonText: "确定",
  17119. cancelButtonText: "取消",
  17120. type: "warning",
  17121. })
  17122. .then(() => {
  17123. let params = [
  17124. {
  17125. wid: this.commentDetail.wid,
  17126. img: "",
  17127. },
  17128. ];
  17129. this.ajax
  17130. .post(this.$store.state.api + "updateCourseWorks", params)
  17131. .then((res) => {
  17132. this.$message({
  17133. message: "删除成功",
  17134. type: "success",
  17135. });
  17136. this.selectSWorks();
  17137. this.selectStudent();
  17138. })
  17139. .catch((err) => {
  17140. this.$message.error("删除失败");
  17141. console.error(err);
  17142. });
  17143. })
  17144. .catch(() => {});
  17145. },
  17146. getAudioVideo(constraintsData) {
  17147. if (navigator.mediaDevices === undefined) {
  17148. navigator.mediaDevices = {};
  17149. }
  17150. if (navigator.mediaDevices.getUserMedia === undefined) {
  17151. navigator.mediaDevices.getUserMedia = function (constraints) {
  17152. // 首先,如果有getUserMedia的话,就获得它
  17153. var getUserMedia =
  17154. navigator.getUserMedia ||
  17155. navigator.webkitGetUserMedia ||
  17156. navigator.mozGetUserMedia ||
  17157. navigator.msGetUserMedia;
  17158. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  17159. if (!getUserMedia) {
  17160. return Promise.reject({ code: 404 });
  17161. }
  17162. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  17163. return new Promise(function (resolve, reject) {
  17164. getUserMedia.call(navigator, constraints, resolve, reject);
  17165. });
  17166. };
  17167. }
  17168. return navigator.mediaDevices.getUserMedia(constraintsData);
  17169. },
  17170. /**
  17171. * 开始录制
  17172. */
  17173. startRecording(callback) {
  17174. let _function = (screenStream) => {
  17175. this.addStreamStopListener(screenStream, () => {
  17176. console.log("流停止监听");
  17177. this.stopRecording();
  17178. this.$emit("streamStop", {});
  17179. // this.stopRecording();
  17180. });
  17181. var options = {
  17182. type: "video",
  17183. mimeType: "video/webm",
  17184. disableLogs: false,
  17185. getNativeBlob: false, // enable it for longer recordings
  17186. ignoreMutedMedia: false,
  17187. };
  17188. // this.video.srcObject = screenStream;
  17189. this.recorder = RecordRTC(screenStream, options);
  17190. this.recorder.startRecording();
  17191. this.recorder.screen = screenStream;
  17192. this.videoStart = true;
  17193. // callback(true);
  17194. };
  17195. this.getAudioVideo({ audio: true })
  17196. .then((res) => {
  17197. this.captureScreen(_function, true);
  17198. console.log("已点击允许,开启成功");
  17199. })
  17200. .catch((err) => {
  17201. // console.log('浏览器不支持,请更换浏览器')
  17202. // } else {
  17203. this.captureScreen(_function, false);
  17204. console.log("请检查是否存在麦克风");
  17205. });
  17206. },
  17207. /**
  17208. * 停止录制
  17209. */
  17210. stopRecording(callback) {
  17211. this.recorder.stopRecording(() => {
  17212. // this.video.src = this.video.srcObject = null;
  17213. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  17214. const url = URL.createObjectURL(this.recorder.getBlob());
  17215. const a = document.createElement("a"); //this.fileName+
  17216. let videoFile = new File(
  17217. [this.recorder.getBlob()],
  17218. this.courseDetail.title + "录屏.mp4",
  17219. {
  17220. type: "video/mp4",
  17221. }
  17222. );
  17223. let downloadUrl = URL.createObjectURL(videoFile);
  17224. document.body.appendChild(a);
  17225. a.style.display = "none";
  17226. a.href = url;
  17227. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  17228. a.click();
  17229. this.recorder.screen.stop();
  17230. this.recorder.destroy();
  17231. this.recorder = null;
  17232. this.videoStart = false;
  17233. // callback(false);
  17234. });
  17235. },
  17236. //初始化
  17237. captureScreen(callback, type) {
  17238. if (navigator.getDisplayMedia) {
  17239. //录制结束,文件下载
  17240. navigator
  17241. .getDisplayMedia({
  17242. video: true,
  17243. })
  17244. .then((screenStream) => {
  17245. if (type) {
  17246. navigator.mediaDevices
  17247. .getUserMedia({ audio: true })
  17248. .then((mic) => {
  17249. screenStream.addTrack(mic.getTracks()[0]);
  17250. callback(screenStream);
  17251. });
  17252. } else {
  17253. callback(screenStream);
  17254. }
  17255. })
  17256. .catch(function (error) {
  17257. console.log("error", error);
  17258. });
  17259. } else if (navigator.mediaDevices.getDisplayMedia) {
  17260. navigator.mediaDevices
  17261. .getDisplayMedia({
  17262. video: true,
  17263. })
  17264. .then((screenStream) => {
  17265. if (type) {
  17266. navigator.mediaDevices
  17267. .getUserMedia({ audio: true })
  17268. .then((mic) => {
  17269. screenStream.addTrack(mic.getTracks()[0]);
  17270. callback(screenStream);
  17271. });
  17272. } else {
  17273. callback(screenStream);
  17274. }
  17275. })
  17276. .catch(function (error) {
  17277. console.log("error", error);
  17278. });
  17279. } else {
  17280. var error = "getDisplayMedia API are not supported in this browser.";
  17281. console.log("error", error);
  17282. alert(error);
  17283. }
  17284. },
  17285. //流监听
  17286. addStreamStopListener(stream, callback) {
  17287. stream.addEventListener(
  17288. "ended",
  17289. function () {
  17290. callback();
  17291. callback = function () {};
  17292. },
  17293. false
  17294. );
  17295. stream.addEventListener(
  17296. "inactive",
  17297. function () {
  17298. callback();
  17299. callback = function () {};
  17300. },
  17301. false
  17302. );
  17303. stream.getTracks().forEach(function (track) {
  17304. track.addEventListener(
  17305. "ended",
  17306. function () {
  17307. callback();
  17308. callback = function () {};
  17309. },
  17310. false
  17311. );
  17312. track.addEventListener(
  17313. "inactive",
  17314. function () {
  17315. callback();
  17316. callback = function () {};
  17317. },
  17318. false
  17319. );
  17320. });
  17321. },
  17322. updateGroup() {
  17323. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17324. this.dialogVisibleGroup2 = true;
  17325. },
  17326. updateGroupJson() {
  17327. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  17328. if (
  17329. this.groupStudentUid[this.toolindex][i].length >
  17330. this.groupJson2.number
  17331. ) {
  17332. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  17333. return;
  17334. }
  17335. }
  17336. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  17337. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17338. this.taskCount
  17339. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  17340. let params = [
  17341. {
  17342. cid: this.id,
  17343. chapters: JSON.stringify(this.chapInfoList),
  17344. uid: this.userid,
  17345. unitIndex: this.courseType,
  17346. },
  17347. ];
  17348. this.ajax
  17349. .post(this.$store.state.api + "updateWorkNew4", params)
  17350. .then((res) => {
  17351. this.$message.success("设置成功");
  17352. this.getCourseDetail(2);
  17353. this.dialogVisibleGroup2 = false;
  17354. this.groupJson2 = {};
  17355. this.$forceUpdate();
  17356. })
  17357. .catch((err) => {
  17358. this.$message.error("网络不佳");
  17359. console.error(err);
  17360. });
  17361. },
  17362. lockChair() {
  17363. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17364. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  17365. this.updateGroupJson();
  17366. },
  17367. selectGroup(index) {
  17368. this.getCourseDetail(2, index);
  17369. },
  17370. joinGroup(index) {
  17371. if (this.groupJson.islock == 2) {
  17372. this.$message.error("位置已被锁定,无法加入");
  17373. return;
  17374. }
  17375. if (
  17376. this.groupStudent[this.toolindex][index].length >
  17377. this.groupJson.number ||
  17378. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  17379. ) {
  17380. this.$message.error("位置已满,无法加入");
  17381. return;
  17382. }
  17383. let params = [
  17384. {
  17385. cid: this.id,
  17386. stage: this.courseType,
  17387. task: this.taskCount,
  17388. tool: this.toolindex,
  17389. g: index,
  17390. uid: this.userid,
  17391. },
  17392. ];
  17393. this.ajax
  17394. .post(this.$store.state.api + "joinGroup", params)
  17395. .then((res) => {
  17396. this.$message.success("加入成功");
  17397. this.getCourseDetail();
  17398. })
  17399. .catch((err) => {
  17400. this.$message.error("网络不佳");
  17401. console.error(err);
  17402. });
  17403. },
  17404. exitGroup(id) {
  17405. if (this.groupJson.islock == 2) {
  17406. this.$message.error("位置已被锁定,无法退出");
  17407. return;
  17408. }
  17409. let params = [
  17410. {
  17411. gid: id,
  17412. },
  17413. ];
  17414. this.ajax
  17415. .post(this.$store.state.api + "exitGroup", params)
  17416. .then((res) => {
  17417. this.$message.success("退出成功");
  17418. this.getCourseDetail();
  17419. })
  17420. .catch((err) => {
  17421. this.$message.error("网络不佳");
  17422. console.error(err);
  17423. });
  17424. },
  17425. groupUpload(index, task, gindex) {
  17426. this.taskCount = task;
  17427. this.toolindex = index;
  17428. this.groupIndex = gindex;
  17429. this.dialogVisibleGroupWork = true;
  17430. },
  17431. updateGroupChair(user) {
  17432. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  17433. el.label = index;
  17434. return index != user.group;
  17435. });
  17436. this.updateGroupUser = user;
  17437. this.dialogVisibleUpdateGroup = true;
  17438. },
  17439. updateChair() {
  17440. if (
  17441. this.groupStudent[this.toolindex][this.checkChair].length >
  17442. this.groupJson.number ||
  17443. this.groupStudent[this.toolindex][this.checkChair].length ==
  17444. this.groupJson.number
  17445. ) {
  17446. this.$message.error("位置已满,无法加入");
  17447. return;
  17448. }
  17449. let params = [
  17450. {
  17451. cid: this.id,
  17452. stage: this.courseType,
  17453. task: this.taskCount,
  17454. tool: this.toolindex,
  17455. g: this.checkChair,
  17456. uid: this.updateGroupUser.userid,
  17457. },
  17458. ];
  17459. this.ajax
  17460. .post(this.$store.state.api + "joinGroup", params)
  17461. .then((res) => {
  17462. this.$message.success("修改成功");
  17463. this.updateGroupUser = {};
  17464. this.checkChair = "";
  17465. this.updateGroupArray = {};
  17466. this.dialogVisibleUpdateGroup = false;
  17467. this.getCourseDetail();
  17468. })
  17469. .catch((err) => {
  17470. this.$message.error("网络不佳");
  17471. console.error(err);
  17472. });
  17473. },
  17474. deleteGroupChair(gindex) {
  17475. this.checkDeleteGroup = [];
  17476. this.deleteGroupUser = JSON.parse(
  17477. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  17478. );
  17479. this.deleteGroupArray = this.groupJson.group[gindex];
  17480. this.groupIndex = gindex;
  17481. this.dialogVisibleDeleteGroup = true;
  17482. },
  17483. async deleteChair() {
  17484. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  17485. const gid =
  17486. this.groupStudent[this.toolindex][this.groupIndex][
  17487. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  17488. this.checkDeleteGroup[i]
  17489. )
  17490. ];
  17491. let params = [
  17492. {
  17493. gid: gid.id,
  17494. },
  17495. ];
  17496. var a = await this.deleteChairA(params);
  17497. if (i == this.checkDeleteGroup.length - 1) {
  17498. this.$message.success("退出成功");
  17499. this.dialogVisibleDeleteGroup = false;
  17500. this.deleteGroupUser = [];
  17501. this.deleteGroupArray = {};
  17502. this.groupIndex = "";
  17503. this.checkDeleteGroup = [];
  17504. this.getCourseDetail();
  17505. }
  17506. }
  17507. },
  17508. deleteChairA(params) {
  17509. return new Promise((resolve, reject) => {
  17510. this.ajax
  17511. .post(this.$store.state.api + "exitGroup", params)
  17512. .then((res) => {
  17513. resolve(1);
  17514. })
  17515. .catch((err) => {
  17516. this.$message.error("网络不佳");
  17517. console.error(err);
  17518. });
  17519. });
  17520. },
  17521. contract(i) {
  17522. if (this.isCloseList[i].isClose == 0) {
  17523. this.isCloseList[i].isClose = 1;
  17524. } else {
  17525. this.isCloseList[i].isClose = 0;
  17526. }
  17527. this.$forceUpdate();
  17528. },
  17529. openTools2(i) {
  17530. this.$message.error("暂未开放");
  17531. return;
  17532. },
  17533. addTools2(i) {
  17534. if (i == 4) {
  17535. // this.openTools2(4);
  17536. this.$message.error("暂未开放");
  17537. return;
  17538. }
  17539. if (i == 45) {
  17540. // this.openTools2(45);
  17541. this.$message.error("暂未开放");
  17542. return;
  17543. }
  17544. if (i == 47) {
  17545. // this.openTools2(47);
  17546. this.$message.error("暂未开放");
  17547. return;
  17548. }
  17549. if (i == 49) {
  17550. // this.openTools2(49);
  17551. this.$message.error("暂未开放");
  17552. return;
  17553. }
  17554. if (i == 62) {
  17555. // this.openTools(itemTaskIndex, 62, toolIndex);
  17556. this.$message.error("暂未开放");
  17557. return;
  17558. }
  17559. if (i == 15) {
  17560. // this.openTools(itemTaskIndex, 15, toolIndex);
  17561. this.$message.error("暂未开放");
  17562. return;
  17563. }
  17564. if (i == 40) {
  17565. // this.openTools(itemTaskIndex, 40, toolIndex);
  17566. this.$message.error("暂未开放");
  17567. return;
  17568. }
  17569. if (i == 41) {
  17570. // this.openTools(itemTaskIndex, 41, toolIndex);
  17571. this.$message.error("暂未开放");
  17572. return;
  17573. }
  17574. if (i == 42) {
  17575. // this.openTools(itemTaskIndex, 42, toolIndex);
  17576. this.$message.error("暂未开放");
  17577. return;
  17578. }
  17579. if (this.checktoolArray.length > 0) {
  17580. if (this.checktoolArray.indexOf(i) != -1) {
  17581. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17582. } else {
  17583. this.checktoolArray = [];
  17584. this.checktoolArray.push(i);
  17585. }
  17586. } else {
  17587. this.checktoolArray.push(i);
  17588. }
  17589. this.$forceUpdate();
  17590. },
  17591. addToolChoose() {
  17592. if (!this.checktoolArray.length) {
  17593. this.$message.error("请选择要添加的任务");
  17594. return;
  17595. }
  17596. if (
  17597. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17598. this.taskCount
  17599. ].toolChoose[0].tool.length
  17600. ) {
  17601. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17602. this.taskCount
  17603. ].toolChoose[0].tool = this.checktoolArray;
  17604. } else {
  17605. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17606. this.taskCount
  17607. ].toolChoose.push({
  17608. tool: this.checktoolArray,
  17609. toolDetail: "",
  17610. toolType: 0,
  17611. askCount: 1,
  17612. askTitle: "",
  17613. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  17614. });
  17615. }
  17616. let params = [
  17617. {
  17618. cid: this.id,
  17619. chapters: JSON.stringify(this.chapInfoList),
  17620. uid: this.userid,
  17621. unitIndex: this.courseType,
  17622. },
  17623. ];
  17624. this.ajax
  17625. .post(this.$store.state.api + "updateWorkNew4", params)
  17626. .then((res) => {
  17627. this.$message({
  17628. message: "添加成功",
  17629. type: "success",
  17630. });
  17631. this.checktoolArray = [];
  17632. this.getCourseDetail(2);
  17633. this.checkBz(
  17634. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17635. this.taskCount
  17636. ].toolChoose.length - 1
  17637. );
  17638. this.$forceUpdate();
  17639. })
  17640. .catch((err) => {
  17641. console.error(err);
  17642. });
  17643. },
  17644. updateToolDetail() {
  17645. if (!this.isUpdateToolDetail) {
  17646. this.isUpdateToolDetail = true;
  17647. this.updateToolDetailInner = JSON.parse(
  17648. JSON.stringify(this.tool.toolDetail)
  17649. );
  17650. } else {
  17651. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17652. this.taskCount
  17653. ].toolChoose[this.toolIndex].toolDetail = JSON.parse(
  17654. JSON.stringify(this.updateToolDetailInner)
  17655. );
  17656. let params = [
  17657. {
  17658. cid: this.id,
  17659. chapters: JSON.stringify(this.chapInfoList),
  17660. uid: this.userid,
  17661. unitIndex: this.courseType,
  17662. },
  17663. ];
  17664. this.ajax
  17665. .post(this.$store.state.api + "updateWorkNew4", params)
  17666. .then((res) => {
  17667. this.isUpdateToolDetail = false;
  17668. this.$message({
  17669. message: "修改成功",
  17670. type: "success",
  17671. });
  17672. this.updateToolDetailInner = "";
  17673. this.getCourseDetail(2);
  17674. this.$forceUpdate();
  17675. })
  17676. .catch((err) => {
  17677. console.error(err);
  17678. });
  17679. }
  17680. },
  17681. openWordCloud(toolindex) {
  17682. let array = [];
  17683. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  17684. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  17685. array.push({ name: works });
  17686. }
  17687. if (this.isGroup) {
  17688. for (var i = 0; i < this.courseGroup.group.length; i++) {
  17689. let works = this.courseGroup.group[i].works[toolindex];
  17690. for (var j = 0; j < works.length; j++) {
  17691. let answer = JSON.parse(works[j].works)[0].answer;
  17692. array.push({ name: answer });
  17693. }
  17694. }
  17695. }
  17696. this.wordCloudData = array;
  17697. this.dialogVisibleWordCloud = true;
  17698. },
  17699. pickStudent(stu) {
  17700. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  17701. return;
  17702. }
  17703. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  17704. confirmButtonText: "确定",
  17705. cancelButtonText: "取消",
  17706. type: "warning",
  17707. })
  17708. .then(() => {
  17709. let params = [
  17710. {
  17711. uid: stu.userid,
  17712. cid: this.id,
  17713. stage: this.courseType,
  17714. task: this.taskCount,
  17715. tool: this.toolindex,
  17716. },
  17717. ];
  17718. this.ajax
  17719. .post(this.$store.state.api + "updateCoursePick", params)
  17720. .then((res) => {
  17721. this.$message.success("操作成功");
  17722. this.getPick();
  17723. })
  17724. .catch((err) => {
  17725. this.$message.error("网络不佳");
  17726. console.error(err);
  17727. });
  17728. })
  17729. .catch(() => {});
  17730. },
  17731. getPick() {
  17732. let params = {
  17733. cid: this.id,
  17734. };
  17735. this.ajax
  17736. .get(this.$store.state.api + "getPick", params)
  17737. .then((res) => {
  17738. let array = [];
  17739. for (var i = 0; i < res.data[0].length; i++) {
  17740. array.push(res.data[0][i].userid);
  17741. }
  17742. this.isPickStudent = array;
  17743. if (array.indexOf(this.userid) !== -1) {
  17744. this.$confirm("你被老师选到啦!", "提示", {
  17745. confirmButtonText: "确定",
  17746. showCancelButton: false,
  17747. closeOnClickModal: false,
  17748. type: "warning",
  17749. })
  17750. .then(() => {
  17751. let pa = [
  17752. {
  17753. uid: this.userid,
  17754. cid: this.id,
  17755. },
  17756. ];
  17757. this.ajax
  17758. .post(this.$store.state.api + "deletePick", pa)
  17759. .then((res) => {
  17760. this.getPick();
  17761. })
  17762. .catch((err) => {
  17763. this.$message.error("网络不佳");
  17764. console.error(err);
  17765. });
  17766. })
  17767. .catch(() => {});
  17768. }
  17769. })
  17770. .catch((err) => {
  17771. this.$message.error("网络不佳");
  17772. console.error(err);
  17773. });
  17774. },
  17775. },
  17776. directives: {
  17777. // 使用局部注册指令的方式
  17778. resize: {
  17779. // 指令的名称
  17780. bind(el, binding) {
  17781. // el为绑定的元素,binding为绑定给指令的对象
  17782. let width = "",
  17783. height = "";
  17784. function isReize() {
  17785. const style = document.defaultView.getComputedStyle(el);
  17786. if (width !== style.width || height !== style.height) {
  17787. binding.value(); // 关键
  17788. }
  17789. width = style.width;
  17790. height = style.height;
  17791. }
  17792. el.__vueSetInterval__ = setInterval(isReize, 300);
  17793. },
  17794. unbind(el) {
  17795. clearInterval(el.__vueSetInterval__);
  17796. },
  17797. },
  17798. },
  17799. beforeDestroy() {
  17800. window.onresize = null;
  17801. clearInterval(this.timer);
  17802. this.timer = null;
  17803. clearInterval(this.opertimer);
  17804. this.opertimer = null;
  17805. },
  17806. computed: {
  17807. contentConvent() {
  17808. return function (c) {
  17809. return c
  17810. ? c
  17811. .replaceAll(/\r\n/g, "<br/>")
  17812. .replaceAll(/\n/g, "<br/>")
  17813. .replaceAll(/\s/g, " &nbsp")
  17814. : "";
  17815. };
  17816. },
  17817. checkUpload() {
  17818. return function () {
  17819. var studentK = [];
  17820. if (this.plworkFile.length > 0) {
  17821. for (var z = 0; z < this.plworkFile.length; z++) {
  17822. studentK.push(this.plworkFile[z].username);
  17823. }
  17824. studentK = studentK.join(",");
  17825. }
  17826. var a = this.uploadStudentJuri.filter((el) => {
  17827. return studentK.indexOf(el.userid) == -1;
  17828. });
  17829. return a;
  17830. };
  17831. },
  17832. getSName() {
  17833. return function (name) {
  17834. var check = name;
  17835. this.uploadStudentJuri.forEach((el) => {
  17836. if (el.userid == check) {
  17837. check = el.name ? el.name : el.username;
  17838. }
  17839. });
  17840. return check;
  17841. };
  17842. },
  17843. getImgList() {
  17844. return function (val) {
  17845. let srcList = []; // 定义一个数组用来接收后面的img地址
  17846. val.replace(
  17847. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  17848. function (match, capture) {
  17849. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  17850. srcList.push(capture);
  17851. }
  17852. );
  17853. return srcList;
  17854. };
  17855. },
  17856. },
  17857. mounted() {
  17858. if (this.screenType == 2) {
  17859. window.parent.postMessage({ allScreen: 4 }, "*");
  17860. } else if (this.screenType == 3) {
  17861. window.parent.postMessage({ allScreen: 5 }, "*");
  17862. } else if (this.screenType == 1) {
  17863. window.parent.postMessage({ allScreen: 6 }, "*");
  17864. }
  17865. this.setOperationTime();
  17866. this.selectEva();
  17867. this.getCourseDetail();
  17868. this.selectCount();
  17869. this.getHomeWork();
  17870. this.toolIndex = null;
  17871. this.contentDialog = true;
  17872. this.setContent2(true);
  17873. if (this.tType == 4) {
  17874. this.pzDialog = true;
  17875. this.selectPz();
  17876. }
  17877. document.scrollingElement.scrollTop = 0;
  17878. window.addEventListener("resize", () => {
  17879. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17880. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17881. if (this.showType == 2 || this.showType == 3) {
  17882. document.getElementsByClassName("navBox")[0].style.height =
  17883. a - 40 + 46 + "px";
  17884. } else {
  17885. document.getElementsByClassName("navBox")[0].style.height =
  17886. a - 40 + "px";
  17887. }
  17888. });
  17889. let _this = this;
  17890. setTimeout(() => {
  17891. // _this.vedioTime = [];
  17892. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17893. // _this.vedioTime[i] = document.getElementsByClassName(
  17894. // "vjs-duration-display"
  17895. // )[i].textContent;
  17896. // }
  17897. }, 1000);
  17898. },
  17899. };
  17900. </script>
  17901. <style scoped>
  17902. @media screen and (max-width: 1280px) {
  17903. /* .courseIndex > div:first-child(2) {
  17904. width: 15% !important;
  17905. } */
  17906. /* .navText {
  17907. width: 120px !important;
  17908. } */
  17909. .evaCss {
  17910. flex-direction: column !important;
  17911. align-items: center !important;
  17912. }
  17913. .dialog_diy1 >>> .el-dialog {
  17914. width: 100% !important;
  17915. }
  17916. .rightWidthCss {
  17917. width: 100% !important;
  17918. }
  17919. .dialog_diy3 >>> .el-dialog {
  17920. width: 100% !important;
  17921. }
  17922. /* .textTitle >>> .el-form-item__label {
  17923. width: 150px !important;
  17924. } */
  17925. }
  17926. .evaCssMax {
  17927. flex-direction: column !important;
  17928. align-items: center !important;
  17929. }
  17930. .dialog_diy >>> .el-dialog {
  17931. margin-top: 10vh !important;
  17932. }
  17933. .body_student {
  17934. width: 77%;
  17935. height: 100%;
  17936. position: absolute;
  17937. left: 22%;
  17938. top: 0;
  17939. }
  17940. .student_head {
  17941. width: 100%;
  17942. margin: 20px auto 0;
  17943. padding-bottom: 20px;
  17944. display: flex;
  17945. flex-direction: column;
  17946. flex-wrap: nowrap;
  17947. align-items: flex-start;
  17948. justify-content: flex-start;
  17949. }
  17950. .pb_left {
  17951. width: 20%;
  17952. margin-right: 10px;
  17953. background: rgb(255, 255, 255);
  17954. position: fixed;
  17955. height: calc(100% - 40px);
  17956. border-radius: 20px;
  17957. padding-bottom: 15px;
  17958. box-sizing: border-box;
  17959. }
  17960. .wheel > img,
  17961. .project > img,
  17962. .star > img,
  17963. .evaluate > img,
  17964. .up_photo > img,
  17965. .chapter_add > img,
  17966. .deleteWord > img,
  17967. .question > img,
  17968. .homework > img {
  17969. width: 100%;
  17970. height: 100%;
  17971. }
  17972. .upCover > img {
  17973. width: 131px;
  17974. height: 69px;
  17975. object-fit: cover;
  17976. }
  17977. .upCover {
  17978. width: calc(100% / 3.5);
  17979. position: relative;
  17980. margin: 0 15px 10px 0;
  17981. display: flex;
  17982. flex-direction: column;
  17983. flex-wrap: nowrap;
  17984. justify-content: center;
  17985. align-content: center;
  17986. align-items: center;
  17987. height: fit-content;
  17988. }
  17989. .upCover2 {
  17990. width: 100%;
  17991. position: relative;
  17992. margin: 0 15px 10px 0;
  17993. display: flex;
  17994. flex-direction: column;
  17995. flex-wrap: nowrap;
  17996. justify-content: center;
  17997. align-content: center;
  17998. align-items: center;
  17999. }
  18000. .upCover2 > img {
  18001. width: 100%;
  18002. height: 90px;
  18003. object-fit: contain;
  18004. }
  18005. .chapter_add {
  18006. width: 120px;
  18007. position: relative;
  18008. text-align: center;
  18009. }
  18010. .isAddThings {
  18011. margin-top: 20px;
  18012. position: relative;
  18013. text-align: center;
  18014. background: #f7f8fa;
  18015. height: 90px;
  18016. width: 90px;
  18017. display: flex;
  18018. flex-direction: column;
  18019. justify-content: center;
  18020. }
  18021. .deleteWord {
  18022. width: 22px;
  18023. height: 22px;
  18024. position: absolute;
  18025. right: -5px;
  18026. top: -5px;
  18027. cursor: pointer;
  18028. }
  18029. .box_course {
  18030. /* width: 60%; */
  18031. width: calc(100% - 300px);
  18032. }
  18033. .wheel {
  18034. width: 100%;
  18035. /* height: 100%; */
  18036. height: 650px;
  18037. }
  18038. .right_box {
  18039. display: flex;
  18040. flex-direction: column;
  18041. margin-left: 30px;
  18042. justify-content: space-around;
  18043. }
  18044. .right_box_title {
  18045. font-size: 23px;
  18046. }
  18047. .people {
  18048. display: flex;
  18049. }
  18050. .student_body {
  18051. width: 100%;
  18052. margin: 0 auto;
  18053. margin-top: 10px;
  18054. padding: 0 0 20px;
  18055. background: #fff;
  18056. border-radius: 20px;
  18057. }
  18058. .study_top {
  18059. margin-top: 100px;
  18060. width: 100%;
  18061. /* overflow: auto; */
  18062. height: auto;
  18063. padding-bottom: 20px;
  18064. }
  18065. .study_top .checkbox {
  18066. display: flex;
  18067. align-items: center;
  18068. padding: 15px 0 15px 30px;
  18069. flex: 0 0 auto;
  18070. font-weight: bold;
  18071. border-bottom: 1px solid #eee;
  18072. }
  18073. .study_top .check {
  18074. padding-bottom: 5px;
  18075. text-align: center;
  18076. cursor: pointer;
  18077. height: 30px;
  18078. box-sizing: border-box;
  18079. display: flex;
  18080. }
  18081. .study_top .checked {
  18082. border-bottom: 4px solid #3fc6a0;
  18083. padding-bottom: 5px;
  18084. color: #3fc6a0;
  18085. display: flex;
  18086. height: 35px;
  18087. }
  18088. .study_top .checked > div,
  18089. .study_top .check > div {
  18090. margin-right: 5px;
  18091. }
  18092. .videoTop {
  18093. display: flex;
  18094. flex-direction: row;
  18095. justify-content: space-between;
  18096. background: #fff;
  18097. align-items: center;
  18098. width: 95%;
  18099. padding: 20px;
  18100. }
  18101. .upbtn {
  18102. margin: 25px;
  18103. background: #70afdb;
  18104. color: #fff;
  18105. width: 120px;
  18106. text-align: center;
  18107. height: 30px;
  18108. line-height: 30px;
  18109. font-size: 13px;
  18110. border-radius: 5px;
  18111. cursor: pointer;
  18112. }
  18113. .filebox {
  18114. display: flex;
  18115. flex-wrap: wrap;
  18116. flex-direction: column;
  18117. padding: 0 0 5px;
  18118. }
  18119. .filebox .tooldetail {
  18120. width: 100%;
  18121. margin: 0px 12px;
  18122. background: rgb(247, 247, 247);
  18123. padding: 20px;
  18124. line-height: 30px;
  18125. word-break: break-word;
  18126. }
  18127. .file {
  18128. display: flex;
  18129. flex-direction: column;
  18130. align-items: center;
  18131. justify-content: center;
  18132. cursor: pointer;
  18133. width: 200px;
  18134. }
  18135. .file div {
  18136. margin-top: 10px;
  18137. width: 150px;
  18138. text-align: center;
  18139. overflow: hidden;
  18140. white-space: nowrap;
  18141. text-overflow: ellipsis;
  18142. }
  18143. .media {
  18144. display: flex;
  18145. flex-direction: column;
  18146. align-items: center;
  18147. justify-content: center;
  18148. margin: 0 20px 20px 0;
  18149. cursor: pointer;
  18150. margin: 12px 0 5px 15px;
  18151. overflow: hidden;
  18152. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  18153. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  18154. box-sizing: border-box;
  18155. }
  18156. .media img {
  18157. height: 90px;
  18158. width: 160px;
  18159. object-fit: cover;
  18160. }
  18161. .media .title {
  18162. padding: 5px;
  18163. text-align: left;
  18164. width: 100%;
  18165. box-sizing: border-box;
  18166. }
  18167. .media .btn {
  18168. width: 100%;
  18169. height: 35px;
  18170. line-height: 35px;
  18171. color: #fff;
  18172. background: #606060;
  18173. text-align: center;
  18174. overflow: hidden;
  18175. white-space: nowrap;
  18176. text-overflow: ellipsis;
  18177. }
  18178. .detail_content_top {
  18179. width: 100%;
  18180. padding: 25px 0 25px 0;
  18181. }
  18182. .detail_title {
  18183. text-align: center;
  18184. font-size: 24px;
  18185. }
  18186. .detail_time {
  18187. font-size: 13px;
  18188. padding: 15px 0 0 40px;
  18189. }
  18190. .detail_content {
  18191. line-height: 2pc;
  18192. width: 90%;
  18193. margin: 0 auto;
  18194. padding-top: 30px;
  18195. text-indent: 30px;
  18196. overflow: auto;
  18197. height: 200px;
  18198. }
  18199. .score_box >>> .el-rate {
  18200. margin-left: 10px;
  18201. }
  18202. .dialog_change >>> .el-dialog {
  18203. border-radius: 5px;
  18204. }
  18205. .dialog_change >>> .el-dialog__header {
  18206. background: #f2f2f2;
  18207. text-align: center;
  18208. }
  18209. .dialog_change >>> .el-dialog__title {
  18210. line-height: 5px;
  18211. }
  18212. .dialog_change >>> .el-dialog__body {
  18213. background: #fff;
  18214. padding: 10px 20px;
  18215. }
  18216. .score_box {
  18217. display: flex;
  18218. align-items: center;
  18219. margin-bottom: 18px;
  18220. margin-top: 20px;
  18221. }
  18222. .up_photo {
  18223. width: 120px;
  18224. cursor: pointer;
  18225. margin-top: 10px;
  18226. }
  18227. .up_photo2 {
  18228. width: 180px;
  18229. box-sizing: border-box;
  18230. min-width: 180px;
  18231. height: 180px;
  18232. max-height: 180px;
  18233. min-height: 180px;
  18234. cursor: pointer;
  18235. display: flex;
  18236. flex-direction: column;
  18237. align-items: center;
  18238. justify-content: center;
  18239. background: rgb(242, 246, 255);
  18240. /* padding: 25px; */
  18241. margin-bottom: 10px;
  18242. }
  18243. .up_photo2 img {
  18244. width: 50%;
  18245. height: auto;
  18246. }
  18247. .up_photo2 span {
  18248. color: #898989;
  18249. }
  18250. .plworkBox {
  18251. display: flex;
  18252. align-items: center;
  18253. margin-top: 10px;
  18254. flex-wrap: wrap;
  18255. }
  18256. .upload_send {
  18257. margin: 30px auto 30px;
  18258. width: 60%;
  18259. background: #169bd6;
  18260. text-align: center;
  18261. height: 35px;
  18262. line-height: 35px;
  18263. color: #fff;
  18264. border-radius: 5px;
  18265. cursor: pointer;
  18266. }
  18267. .marginT {
  18268. margin-top: 20px;
  18269. }
  18270. .cd_content_steps {
  18271. display: flex;
  18272. width: 90%;
  18273. justify-content: space-around;
  18274. border-top: 1px solid #eeeeee;
  18275. }
  18276. .cd_steps_box {
  18277. display: flex;
  18278. justify-content: center;
  18279. align-items: center;
  18280. flex-direction: column;
  18281. cursor: pointer;
  18282. }
  18283. .first {
  18284. display: flex;
  18285. align-items: center;
  18286. margin: 15px 0 20px 0;
  18287. font-size: 20px;
  18288. }
  18289. .first > div:nth-child(2) {
  18290. font-size: 16px !important;
  18291. padding-left: 10px;
  18292. line-height: 26px;
  18293. box-sizing: border-box;
  18294. }
  18295. .blue_box_one {
  18296. text-align: center;
  18297. color: #fff;
  18298. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  18299. border-radius: 7px;
  18300. margin: 10px;
  18301. cursor: pointer;
  18302. width: 95%;
  18303. height: 45px;
  18304. display: flex;
  18305. flex-direction: row;
  18306. justify-content: flex-start;
  18307. align-items: center;
  18308. }
  18309. .blue_box_one > div:nth-child(1) {
  18310. line-height: 30px;
  18311. margin: 0 5px 0 10px;
  18312. width: 30%;
  18313. min-width: 70px;
  18314. border-radius: 4px;
  18315. }
  18316. .blue_box_one > div:nth-child(2) {
  18317. white-space: nowrap;
  18318. text-overflow: ellipsis;
  18319. overflow: hidden;
  18320. word-break: break-all;
  18321. width: 70%;
  18322. text-align: left;
  18323. margin-right: 10px;
  18324. max-width: calc(100% - 85px);
  18325. }
  18326. .blue_box_one > div:nth-child(2):hover {
  18327. overflow: hidden;
  18328. text-overflow: ellipsis;
  18329. white-space: nowrap;
  18330. cursor: pointer;
  18331. }
  18332. .upFile {
  18333. margin: 0 auto;
  18334. width: 120px;
  18335. background: #70afdb;
  18336. color: #fff;
  18337. height: 30px;
  18338. text-align: center;
  18339. line-height: 30px;
  18340. border-radius: 5px;
  18341. font-size: 14px;
  18342. cursor: pointer;
  18343. }
  18344. .courseTitle {
  18345. width: 85%;
  18346. margin: 10px auto;
  18347. display: flex;
  18348. flex-direction: row;
  18349. align-items: center;
  18350. justify-content: space-between;
  18351. text-align: center;
  18352. }
  18353. .courseTitle .ctitle {
  18354. font-size: 24px;
  18355. font-weight: bold;
  18356. color: #0e1e33;
  18357. white-space: nowrap;
  18358. overflow: hidden;
  18359. text-overflow: ellipsis;
  18360. }
  18361. .courseTitle .inviteBox {
  18362. font-size: 14px;
  18363. margin-top: 5px;
  18364. color: #a6cbff;
  18365. }
  18366. .courseTitle >>> .el-tooltip {
  18367. width: 100%;
  18368. white-space: nowrap;
  18369. overflow: hidden;
  18370. text-overflow: ellipsis;
  18371. word-break: break-word;
  18372. }
  18373. .ml {
  18374. margin-left: 20px;
  18375. color: #5b7dba;
  18376. border-left: 3px solid #5b7dba;
  18377. padding-left: 5px;
  18378. font-weight: bold;
  18379. }
  18380. .return {
  18381. width: 2rem;
  18382. height: 2rem;
  18383. cursor: pointer;
  18384. }
  18385. .return > img {
  18386. width: 100%;
  18387. height: 100%;
  18388. }
  18389. .returnBtn {
  18390. width: 86px;
  18391. height: 36px;
  18392. background: #3681fc;
  18393. border-radius: 4px;
  18394. color: #fff;
  18395. text-align: center;
  18396. line-height: 36px;
  18397. margin-right: 20px;
  18398. cursor: pointer;
  18399. font-size: 14px;
  18400. font-weight: 400;
  18401. display: flex;
  18402. flex-direction: row;
  18403. flex-wrap: nowrap;
  18404. align-items: center;
  18405. justify-content: center;
  18406. }
  18407. .commentIcon::before,
  18408. .vedioIcon::before,
  18409. .lockIcon::before,
  18410. .returnIcon::before {
  18411. content: "";
  18412. display: block;
  18413. background-size: 100% 100%;
  18414. background-repeat: no-repeat;
  18415. width: 20px;
  18416. height: 20px;
  18417. margin-right: 5px;
  18418. }
  18419. .commentIcon::before {
  18420. background-image: url("../../assets/icon/newIcon/comment.png");
  18421. }
  18422. .vedioIcon::before {
  18423. background-image: url("../../assets/icon/newIcon/vedio.png");
  18424. }
  18425. .lockIcon::before {
  18426. background-image: url("../../assets/icon/newIcon/lock.png");
  18427. }
  18428. .returnIcon::before {
  18429. background-image: url("../../assets/icon/newIcon/return.png");
  18430. }
  18431. .tool {
  18432. display: flex;
  18433. flex-direction: column;
  18434. flex-wrap: nowrap;
  18435. width: 13%;
  18436. margin: 0 30px;
  18437. align-items: center;
  18438. }
  18439. .whiteBIcon {
  18440. width: 150px;
  18441. cursor: pointer;
  18442. }
  18443. .whiteBIcon > img {
  18444. width: 100%;
  18445. height: 100%;
  18446. }
  18447. .mask {
  18448. background-color: rgba(0, 0, 0, 0);
  18449. position: fixed;
  18450. top: 0;
  18451. left: 0;
  18452. width: 100%;
  18453. height: 100%;
  18454. z-index: 20000;
  18455. display: flex;
  18456. align-items: center;
  18457. justify-content: center;
  18458. }
  18459. .progressBox {
  18460. width: 500px;
  18461. height: 180px;
  18462. background: #fff;
  18463. border-radius: 10px;
  18464. box-shadow: 0 0 6px 1px #bfbfbf;
  18465. display: flex;
  18466. align-items: center;
  18467. justify-content: center;
  18468. flex-direction: column;
  18469. position: relative;
  18470. color: #6c6c6c;
  18471. }
  18472. .progressBox >>> .el-progress-bar__outer {
  18473. background-color: #d1dfff !important;
  18474. }
  18475. .progressBox .lbox {
  18476. height: 50px;
  18477. font-size: 19px;
  18478. display: flex;
  18479. align-items: center;
  18480. color: #747474;
  18481. }
  18482. .progressBox .lbox img {
  18483. width: 40px;
  18484. margin-right: 20px;
  18485. }
  18486. .closeCss {
  18487. position: absolute;
  18488. top: 8px;
  18489. right: 8px;
  18490. cursor: pointer;
  18491. width: 20px;
  18492. height: 20px;
  18493. }
  18494. .closeCss > img {
  18495. width: 100%;
  18496. height: 100%;
  18497. }
  18498. .uploadVedio {
  18499. display: flex;
  18500. flex-direction: column;
  18501. flex-wrap: nowrap;
  18502. justify-content: center;
  18503. align-items: center;
  18504. margin: 0 15px 10px 0;
  18505. }
  18506. .uploadVedio > img {
  18507. width: 30px;
  18508. height: 30px;
  18509. }
  18510. .uploadVedio > span {
  18511. white-space: nowrap;
  18512. overflow: hidden;
  18513. text-overflow: ellipsis;
  18514. width: 75px;
  18515. margin-top: 7px;
  18516. }
  18517. .picName {
  18518. white-space: nowrap;
  18519. overflow: hidden;
  18520. text-overflow: ellipsis;
  18521. width: 75px;
  18522. margin-top: 7px;
  18523. }
  18524. .new_top {
  18525. display: flex;
  18526. background: #fff;
  18527. flex-direction: row;
  18528. justify-content: flex-start;
  18529. align-items: center;
  18530. height: 60px;
  18531. position: relative;
  18532. }
  18533. .new_top::before {
  18534. content: "";
  18535. width: 100%;
  18536. height: 20px;
  18537. position: absolute;
  18538. top: -20px;
  18539. display: block;
  18540. background: #f2f2f2;
  18541. }
  18542. .before {
  18543. position: absolute;
  18544. background: #c3dad4;
  18545. width: 6px;
  18546. height: 100%;
  18547. }
  18548. .courseIndex {
  18549. display: flex;
  18550. flex-direction: row;
  18551. align-items: center;
  18552. width: calc(100% - 600px);
  18553. }
  18554. .courseIndex > div:nth-child(1) {
  18555. margin: 0 0 0 10px;
  18556. font-size: 24px;
  18557. min-width: 100px;
  18558. font-weight: bold;
  18559. border-left: 4px solid #3363b9;
  18560. height: 35px;
  18561. text-align: center;
  18562. line-height: 35px;
  18563. }
  18564. .courseIndex > div:nth-child(2) {
  18565. font-size: 23px;
  18566. /* width: 300px; */
  18567. max-width: calc(100% - 180px);
  18568. white-space: nowrap;
  18569. overflow: hidden;
  18570. text-overflow: ellipsis;
  18571. }
  18572. .courseIndex > div:nth-child(3) {
  18573. border-bottom: 1px solid #d7d7d7;
  18574. padding-bottom: 5px;
  18575. background: #49a0f0;
  18576. width: 55px;
  18577. min-width: 55px;
  18578. border-radius: 5px;
  18579. color: #fff;
  18580. text-align: center;
  18581. height: 20px;
  18582. line-height: 26px;
  18583. font-size: 14px;
  18584. margin: 0 0 0 10px;
  18585. }
  18586. .course_text {
  18587. padding: 20px 0 0 15px;
  18588. text-indent: 30px;
  18589. width: 80%;
  18590. min-height: 20px;
  18591. }
  18592. .vedioList {
  18593. background: #f2f2f2;
  18594. border: 1px solid #ececec;
  18595. /* width: 38.8%; */
  18596. width: 300px;
  18597. height: 445px;
  18598. border-radius: 10px;
  18599. overflow: hidden;
  18600. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  18601. }
  18602. .vedioNav {
  18603. margin: 10px 0 0 15px;
  18604. border-bottom: 1px solid #d7d7d7;
  18605. padding-bottom: 5px;
  18606. background: #96d1ff;
  18607. width: 55px;
  18608. min-width: 55px;
  18609. border-radius: 5px;
  18610. color: #fff;
  18611. text-align: center;
  18612. height: 20px;
  18613. line-height: 26px;
  18614. font-size: 14px;
  18615. }
  18616. .queTop {
  18617. display: flex;
  18618. padding: 20px 0 20px 30px;
  18619. width: 100%;
  18620. flex-direction: row;
  18621. justify-content: flex-start;
  18622. align-items: center;
  18623. box-sizing: border-box;
  18624. }
  18625. .queTopTitle {
  18626. display: flex;
  18627. flex-direction: row;
  18628. flex-wrap: nowrap;
  18629. align-items: center;
  18630. font-weight: bold;
  18631. font-size: 20px;
  18632. color: rgb(14, 30, 51);
  18633. }
  18634. .queTopTitle::before {
  18635. content: "";
  18636. width: 2px;
  18637. height: 22px;
  18638. background: #3681fc;
  18639. border-radius: 3px;
  18640. display: block;
  18641. margin: 2px 6px 0 0;
  18642. }
  18643. .queTopRight {
  18644. display: flex;
  18645. flex-direction: row;
  18646. flex-wrap: nowrap;
  18647. align-items: center;
  18648. }
  18649. .queTopClose {
  18650. margin-right: 20px;
  18651. cursor: pointer;
  18652. position: relative;
  18653. display: flex;
  18654. }
  18655. .closeImg,
  18656. .openImg {
  18657. width: 25px;
  18658. height: 25px;
  18659. position: absolute;
  18660. left: -20px;
  18661. top: -1px;
  18662. }
  18663. .closeImg > img,
  18664. .openImg > img {
  18665. width: 100%;
  18666. height: 100%;
  18667. }
  18668. .question {
  18669. width: 40px;
  18670. margin-right: 10px;
  18671. margin-top: 7px;
  18672. }
  18673. .queTitle {
  18674. margin-left: 5px;
  18675. font-size: 25px;
  18676. display: flex;
  18677. align-items: center;
  18678. }
  18679. .addEditor {
  18680. width: 100px;
  18681. height: 30px;
  18682. background: #42cda6;
  18683. color: #fff;
  18684. border-radius: 5px;
  18685. text-align: center;
  18686. line-height: 30px;
  18687. box-shadow: 1px 3px 6px 1px #bfbfbf;
  18688. cursor: pointer;
  18689. }
  18690. .vedioName {
  18691. /* text-overflow: ellipsis;
  18692. top: 8px;
  18693. font-size: 14px;
  18694. overflow: hidden;
  18695. width: 100%;
  18696. word-break: break-all;
  18697. white-space: nowrap; */
  18698. cursor: pointer;
  18699. margin: 0px 0px 10px 5px;
  18700. white-space: nowrap;
  18701. overflow: hidden;
  18702. text-overflow: ellipsis;
  18703. width: 100%;
  18704. }
  18705. .vedioTime {
  18706. width: 35px;
  18707. position: absolute;
  18708. color: #fff;
  18709. bottom: 0px;
  18710. right: 0px;
  18711. text-align: center;
  18712. background: #46411f;
  18713. height: 20px;
  18714. font-size: 14px;
  18715. line-height: 20px;
  18716. }
  18717. .homework {
  18718. width: 200px;
  18719. display: flex;
  18720. flex-direction: column;
  18721. flex-wrap: nowrap;
  18722. align-items: center;
  18723. cursor: pointer;
  18724. }
  18725. .homebox {
  18726. display: flex;
  18727. flex-wrap: wrap;
  18728. flex-direction: row;
  18729. justify-content: flex-start;
  18730. align-items: center;
  18731. padding: 15px 0;
  18732. }
  18733. .chooseWho {
  18734. display: flex;
  18735. width: 100%;
  18736. flex-direction: row;
  18737. flex-wrap: nowrap;
  18738. justify-content: flex-start;
  18739. padding-bottom: 10px;
  18740. }
  18741. .chooseWho > div {
  18742. cursor: pointer;
  18743. padding-bottom: 10px;
  18744. margin: 0 30px 0 0;
  18745. font-weight: 400;
  18746. color: #0e1e33;
  18747. }
  18748. .addPoint > div > img {
  18749. cursor: pointer;
  18750. margin: 0 10px;
  18751. width: 85px;
  18752. border-radius: 15px;
  18753. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  18754. }
  18755. .addPoint > div {
  18756. display: flex;
  18757. flex-direction: column;
  18758. flex-wrap: nowrap;
  18759. align-items: center;
  18760. }
  18761. .isBorder > div {
  18762. margin: 0 0 10px 0;
  18763. align-items: flex-start !important;
  18764. }
  18765. .noiframeBox {
  18766. display: flex;
  18767. flex-wrap: wrap;
  18768. }
  18769. .iframeBox iframe {
  18770. width: 100%;
  18771. height: 800px;
  18772. border: none;
  18773. margin-bottom: 20px;
  18774. border: 1px solid #ccc;
  18775. }
  18776. .upload_toolBtn {
  18777. background: #6b92c9;
  18778. color: #fff;
  18779. width: 110px;
  18780. text-align: center;
  18781. height: 35px;
  18782. line-height: 35px;
  18783. font-size: 14px;
  18784. border-radius: 5px;
  18785. cursor: pointer;
  18786. position: absolute;
  18787. right: 10px;
  18788. bottom: 0;
  18789. }
  18790. .binfo_input,
  18791. .pj {
  18792. font: inherit;
  18793. color: currentColor;
  18794. width: 100%;
  18795. margin: 0;
  18796. padding: 15px 14px;
  18797. display: block;
  18798. min-width: 0;
  18799. outline: none;
  18800. box-sizing: content-box;
  18801. background: none;
  18802. -webkit-tap-highlight-color: transparent;
  18803. border: 1px solid rgba(0, 0, 0, 0.23);
  18804. border-radius: 4px;
  18805. box-sizing: border-box;
  18806. resize: none;
  18807. }
  18808. .binfo_input:focus-visible {
  18809. border: 1px solid rgba(61, 103, 188);
  18810. }
  18811. .dialog_diy >>> .el-dialog__header,
  18812. .dialog_diy1 >>> .el-dialog__header {
  18813. background: #454545 !important;
  18814. padding: 15px 20px;
  18815. }
  18816. .dialog_diy >>> .el-dialog__title,
  18817. .dialog_diy1 >>> .el-dialog__title {
  18818. color: #fff;
  18819. }
  18820. .dialog_diy >>> .el-dialog__headerbtn,
  18821. .dialog_diy1 >>> .el-dialog__headerbtn {
  18822. top: 19px;
  18823. }
  18824. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  18825. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  18826. color: #fff;
  18827. }
  18828. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  18829. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  18830. color: #fff;
  18831. }
  18832. .dialog_diy1 >>> .el-dialog__body {
  18833. padding: 0;
  18834. }
  18835. .dialog_diy >>> .el-dialog__body,
  18836. .dialog_diy >>> .el-dialog__footer,
  18837. .dialog_diy1 >>> .el-dialog__footer {
  18838. background: #fafafa;
  18839. }
  18840. .a_addBox {
  18841. margin: 10px 0;
  18842. background: #fff;
  18843. padding: 15px;
  18844. }
  18845. .a_add_box {
  18846. border-bottom: 2px solid #eee;
  18847. padding-bottom: 10px;
  18848. }
  18849. .a_add_head {
  18850. display: flex;
  18851. align-items: flex-start;
  18852. /* justify-content: space-between; */
  18853. flex-direction: column;
  18854. /* flex-direction: row; */
  18855. margin: 10px 0 20px 0;
  18856. font-size: 18px;
  18857. width: 100%;
  18858. }
  18859. .a_add_head .a_add_head_input {
  18860. width: 300px;
  18861. }
  18862. .a_add_head .a_add_head_div {
  18863. display: flex;
  18864. align-items: center;
  18865. justify-content: space-between;
  18866. }
  18867. .a_add_body {
  18868. display: flex;
  18869. align-items: center;
  18870. }
  18871. .a_add_input {
  18872. display: flex;
  18873. align-items: center;
  18874. flex-wrap: wrap;
  18875. }
  18876. .a_add_input >>> el-radio-group {
  18877. margin: 10px 0;
  18878. }
  18879. .a_add_input >>> .el-radio,
  18880. .a_add_input >>> .el-checkbox {
  18881. margin-bottom: 10px;
  18882. display: flex;
  18883. flex-direction: row;
  18884. flex-wrap: nowrap;
  18885. align-items: center;
  18886. }
  18887. .redioStyle >>> .el-radio__label {
  18888. font-size: 18px;
  18889. }
  18890. .redioStyle >>> .el-radio__label > span,
  18891. .redioStyle >>> .el-checkbox__label > span {
  18892. word-break: break-all;
  18893. white-space: normal;
  18894. }
  18895. .redioStyle >>> .el-checkbox__label {
  18896. font-size: 18px;
  18897. }
  18898. .toolHeng2 {
  18899. width: 100%;
  18900. box-sizing: border-box;
  18901. }
  18902. .toolHeng {
  18903. display: flex;
  18904. flex-direction: row;
  18905. flex-wrap: wrap;
  18906. justify-content: flex-start;
  18907. align-items: center;
  18908. width: 100%;
  18909. }
  18910. .toolHeng > div {
  18911. padding-left: 20px;
  18912. }
  18913. .isWidth {
  18914. width: 20%;
  18915. }
  18916. .textTitle {
  18917. display: flex;
  18918. flex-direction: row;
  18919. flex-wrap: nowrap;
  18920. align-items: center;
  18921. width: 95%;
  18922. }
  18923. .textTitle >>> .el-form-item__label {
  18924. font-size: 22px;
  18925. color: #918f8f;
  18926. width: 100px;
  18927. }
  18928. .textTitle >>> .el-form-item__content {
  18929. width: calc(100% - 100px);
  18930. }
  18931. .textCss >>> .el-dialog {
  18932. width: 800px !important;
  18933. height: 400px;
  18934. background: #fafafa;
  18935. }
  18936. .textCss >>> .el-dialog__body {
  18937. margin: 55px 8% 0 8%;
  18938. padding: 0 !important;
  18939. }
  18940. .textCss >>> .el-dialog__footer {
  18941. padding-top: 38px;
  18942. }
  18943. .toolsCss >>> .el-dialog__body {
  18944. padding: 20px;
  18945. }
  18946. .lineCss >>> .el-dialog__body {
  18947. display: flex;
  18948. flex-direction: row;
  18949. align-items: center;
  18950. justify-content: center;
  18951. }
  18952. .newNav {
  18953. display: flex;
  18954. flex-direction: row;
  18955. align-items: baseline;
  18956. justify-content: flex-start;
  18957. }
  18958. .navText {
  18959. cursor: pointer;
  18960. white-space: nowrap;
  18961. overflow: hidden;
  18962. text-overflow: ellipsis;
  18963. width: 220px;
  18964. padding: 0 10px;
  18965. font-weight: 400;
  18966. color: #0e1e33;
  18967. }
  18968. .noVedio {
  18969. display: flex;
  18970. flex-direction: row;
  18971. justify-content: center;
  18972. align-content: center;
  18973. }
  18974. .noNavText {
  18975. cursor: pointer;
  18976. margin: 0px 0px 10px 5px;
  18977. width: 112px;
  18978. }
  18979. .listNoVedio {
  18980. margin: 0 0 0 30px;
  18981. width: 97%;
  18982. }
  18983. .video-player >>> .video-js {
  18984. height: 100%;
  18985. }
  18986. .hangVedioList {
  18987. width: 90% !important;
  18988. height: 150px !important;
  18989. margin: 20px 0 0 30px;
  18990. }
  18991. .hangVedio {
  18992. width: 100%;
  18993. height: 170px !important;
  18994. align-items: flex-start !important;
  18995. }
  18996. .hangHand {
  18997. height: 150px !important;
  18998. }
  18999. .twoChild {
  19000. width: 95%;
  19001. margin: 10px;
  19002. border-radius: 5px;
  19003. background: #f2f2f2;
  19004. display: flex;
  19005. flex-direction: column;
  19006. flex-wrap: nowrap;
  19007. justify-content: flex-start;
  19008. align-items: flex-start;
  19009. transition: all 0.5s;
  19010. overflow: hidden;
  19011. height: 0;
  19012. background: #e7f3ff;
  19013. }
  19014. .twoChild > div:nth-child(1) {
  19015. margin-top: 5px;
  19016. }
  19017. .navChild {
  19018. width: 100%;
  19019. cursor: pointer;
  19020. margin-bottom: 10px;
  19021. position: relative;
  19022. }
  19023. .navChild img {
  19024. position: absolute;
  19025. right: 11px;
  19026. width: 15px;
  19027. top: 50%;
  19028. transform: translateY(-50%);
  19029. }
  19030. .navActive {
  19031. height: auto !important;
  19032. overflow: auto !important;
  19033. padding-bottom: 10px;
  19034. }
  19035. .navTask {
  19036. display: flex;
  19037. flex-direction: row;
  19038. flex-wrap: nowrap;
  19039. align-items: center;
  19040. align-content: flex-start;
  19041. height: 40px;
  19042. justify-content: flex-start;
  19043. padding: 0 10px;
  19044. width: 100%;
  19045. box-sizing: border-box;
  19046. }
  19047. .navTaskname {
  19048. white-space: nowrap;
  19049. text-overflow: ellipsis;
  19050. overflow: hidden;
  19051. word-break: break-all;
  19052. padding-left: 5px;
  19053. }
  19054. .openTaskActive {
  19055. color: #4386e6;
  19056. }
  19057. .iframeName {
  19058. margin: 5px 0;
  19059. border-left: 4px solid #41c4a4;
  19060. padding-left: 4px;
  19061. }
  19062. .toolTitle {
  19063. margin: 0px 0px 20px;
  19064. font-size: 20px;
  19065. font-weight: 500;
  19066. border-left: 4px solid #41c4a4;
  19067. padding-left: 4px;
  19068. }
  19069. .cru_selectBox {
  19070. overflow: auto;
  19071. width: 95%;
  19072. margin: 17px auto 0;
  19073. height: calc(100% - 40px - 21px - 20px - 17px);
  19074. }
  19075. .cru_selectBox::-webkit-scrollbar,
  19076. .study_top::-webkit-scrollbar,
  19077. .textContent::-webkit-scrollbar {
  19078. /*滚动条整体样式*/
  19079. width: 6px;
  19080. /*高宽分别对应横竖滚动条的尺寸*/
  19081. height: 6px;
  19082. }
  19083. /*定义滚动条轨道 内阴影+圆角*/
  19084. .cru_selectBox::-webkit-scrollbar-track,
  19085. .study_top::-webkit-scrollbar-track,
  19086. .textContent::-webkit-scrollbar {
  19087. border-radius: 10px;
  19088. background-color: #b8bdc9;
  19089. }
  19090. /*定义滑块 内阴影+圆角*/
  19091. .cru_selectBox::-webkit-scrollbar-thumb,
  19092. .study_top::-webkit-scrollbar-thumb,
  19093. .textContent::-webkit-scrollbar-thumb {
  19094. border-radius: 10px;
  19095. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  19096. background-color: #2c5ab3;
  19097. }
  19098. .vedioBox {
  19099. border-radius: 0 0 20px 20px;
  19100. background: #fff;
  19101. overflow: auto;
  19102. }
  19103. .taskBox {
  19104. width: 95%;
  19105. margin: 0 auto;
  19106. }
  19107. .vedioTaskBox {
  19108. width: 100%;
  19109. display: flex;
  19110. flex-direction: row;
  19111. flex-wrap: nowrap;
  19112. align-items: flex-start;
  19113. position: relative;
  19114. }
  19115. .toolBox {
  19116. padding: 30px 60px 15px;
  19117. display: flex;
  19118. position: relative;
  19119. }
  19120. .btnAll {
  19121. position: absolute;
  19122. right: 0;
  19123. display: flex;
  19124. flex-direction: row;
  19125. flex-wrap: nowrap;
  19126. align-items: center;
  19127. }
  19128. .btnAllNT {
  19129. position: fixed;
  19130. bottom: 50px;
  19131. right: 40px;
  19132. z-index: 999;
  19133. display: flex;
  19134. flex-direction: row;
  19135. }
  19136. .btnAllNT > img {
  19137. cursor: pointer;
  19138. width: 80px;
  19139. }
  19140. /* .vedioTimeBox {
  19141. display: flex;
  19142. flex-direction: row;
  19143. align-items: center;
  19144. flex-wrap: nowrap;
  19145. position: relative;
  19146. } */
  19147. .navBox {
  19148. background: #fff;
  19149. height: calc(100% - 40px);
  19150. overflow-y: auto;
  19151. overflow-x: hidden;
  19152. }
  19153. .tool_work_box {
  19154. width: 100%;
  19155. padding: 0 37px 0;
  19156. box-sizing: border-box;
  19157. }
  19158. .worksBox {
  19159. padding: 5px 0;
  19160. border-bottom: 1px solid #eeeeee;
  19161. }
  19162. .worksBTitle {
  19163. font-size: 20px;
  19164. padding-bottom: 15px;
  19165. border-bottom: 1px solid #eeeeee;
  19166. display: flex;
  19167. align-items: center;
  19168. }
  19169. .greenBox {
  19170. width: 5px;
  19171. height: 30px;
  19172. background: #63b6fa;
  19173. margin-right: 5px;
  19174. }
  19175. .worksDetailBox {
  19176. display: flex;
  19177. width: 100%;
  19178. flex-direction: row;
  19179. flex-wrap: wrap;
  19180. align-items: flex-end;
  19181. justify-content: flex-start;
  19182. padding: 15px 0;
  19183. }
  19184. .works {
  19185. display: flex;
  19186. flex-direction: column;
  19187. flex-wrap: nowrap;
  19188. align-items: flex-start;
  19189. justify-content: flex-start;
  19190. align-content: center;
  19191. max-width: 240px;
  19192. width: calc(100% / 3 - 10px);
  19193. height: auto;
  19194. margin-right: 10px;
  19195. margin-bottom: 10px;
  19196. overflow: hidden;
  19197. height: 140px;
  19198. box-shadow: 0 0 6px 1px #dfdada;
  19199. border-radius: 15px;
  19200. }
  19201. .workImg {
  19202. width: 100%;
  19203. /* height: calc(100% - 40px); */
  19204. height: 105px;
  19205. position: relative;
  19206. }
  19207. .workImg > img {
  19208. width: 100%;
  19209. height: 100%;
  19210. object-fit: contain;
  19211. cursor: pointer;
  19212. }
  19213. .worksName {
  19214. height: 40px;
  19215. line-height: 40px;
  19216. display: flex;
  19217. width: 100%;
  19218. flex-direction: row;
  19219. flex-wrap: nowrap;
  19220. justify-content: space-between;
  19221. align-items: center;
  19222. margin: 0 0 0 10px;
  19223. }
  19224. .worksName > div:nth-child(1) {
  19225. width: 110px;
  19226. white-space: nowrap;
  19227. overflow: hidden;
  19228. text-overflow: ellipsis;
  19229. }
  19230. .worksName > div:nth-child(2) {
  19231. color: #b7b4b5;
  19232. }
  19233. .noWorksS {
  19234. padding: 15px 0 0;
  19235. display: flex;
  19236. flex-direction: row;
  19237. flex-wrap: wrap;
  19238. align-items: center;
  19239. justify-content: flex-start;
  19240. }
  19241. .noWorksS > div {
  19242. cursor: pointer;
  19243. }
  19244. .noWorksName,
  19245. .isWorksName {
  19246. background: #e1e9fb;
  19247. color: #3383fa;
  19248. width: 90px;
  19249. height: 25px;
  19250. text-align: center;
  19251. line-height: 25px;
  19252. border-radius: 4px;
  19253. margin: 10px 15px 10px 0;
  19254. white-space: nowrap;
  19255. overflow: hidden;
  19256. padding: 5px;
  19257. text-overflow: ellipsis;
  19258. cursor: pointer;
  19259. border: 1px solid #3681fc;
  19260. }
  19261. .noWorksName.isWork {
  19262. background: #e7ebf1 !important;
  19263. border: 1px solid #cad1dc !important;
  19264. color: #acb4bf !important;
  19265. }
  19266. .isWorksName {
  19267. cursor: pointer;
  19268. background: #46a1eb !important;
  19269. width: 100px;
  19270. height: 40px;
  19271. line-height: 40px;
  19272. position: relative;
  19273. }
  19274. .isSelectName,
  19275. .noWorksName:hover {
  19276. background: #3383fa;
  19277. color: #fff;
  19278. border: 1px solid #3383fa;
  19279. }
  19280. .title {
  19281. background: #1e5cc9;
  19282. /* width: 98%; */
  19283. height: 45px;
  19284. color: #fff;
  19285. line-height: 45px;
  19286. padding-left: 20px;
  19287. box-sizing: border-box;
  19288. }
  19289. .textBox {
  19290. font-size: 20px;
  19291. width: 90%;
  19292. display: flex;
  19293. flex-direction: column;
  19294. align-items: center;
  19295. margin: 20px auto 0;
  19296. max-height: 500px;
  19297. overflow: auto;
  19298. }
  19299. .textContent {
  19300. font-size: 18px;
  19301. width: 95%;
  19302. max-width: 95%;
  19303. }
  19304. .answerBg {
  19305. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  19306. background-size: 100% 100%;
  19307. width: 100%;
  19308. height: 100%;
  19309. color: #fff;
  19310. text-align: center;
  19311. display: flex;
  19312. flex-direction: column;
  19313. flex-wrap: nowrap;
  19314. align-items: center;
  19315. position: relative;
  19316. justify-content: center;
  19317. }
  19318. .answerBg > div:nth-child(1) {
  19319. /* font-size: 22px;
  19320. padding: 25px 0 10px; */
  19321. }
  19322. .answerContent {
  19323. width: 215px;
  19324. max-height: 60px;
  19325. word-break: break-all;
  19326. text-align: center;
  19327. /* white-space: nowrap; */
  19328. overflow: hidden;
  19329. text-overflow: ellipsis;
  19330. /* padding: 23px 0 0; */
  19331. -webkit-line-clamp: 3;
  19332. -webkit-box-orient: vertical;
  19333. display: -webkit-box;
  19334. font-size: 15px;
  19335. cursor: pointer;
  19336. }
  19337. .elist_input_box {
  19338. display: flex;
  19339. align-items: flex-start;
  19340. flex-wrap: nowrap;
  19341. padding: 10px 0 15px 30px;
  19342. flex-direction: column;
  19343. }
  19344. .elist_input {
  19345. /* width: 40%; */
  19346. width: 100%;
  19347. }
  19348. .elist_input .elist_input_box input {
  19349. font: inherit;
  19350. color: currentColor;
  19351. width: 200px;
  19352. padding: 8px 14px;
  19353. display: block;
  19354. min-width: 0;
  19355. outline: none;
  19356. border: 1px solid rgba(0, 0, 0, 0.23);
  19357. border-radius: 4px;
  19358. box-sizing: border-box;
  19359. background: #fff;
  19360. margin: 0 20px 0 0;
  19361. }
  19362. .elist_input .elist_input_box span {
  19363. height: 36px;
  19364. line-height: 36px;
  19365. color: rgb(82, 82, 82);
  19366. }
  19367. .elist_input .elist_input_box .remove {
  19368. height: 20px;
  19369. width: 20px;
  19370. background-size: 100% 100%;
  19371. background-position: unset;
  19372. margin-left: 5px;
  19373. }
  19374. .elist_input_box >>> .el-rate {
  19375. display: flex;
  19376. height: 36px;
  19377. align-items: center;
  19378. }
  19379. .elist_input_box .elist_inptu_text {
  19380. min-height: 50px;
  19381. /* width: 500px;
  19382. max-height: 150px; */
  19383. width: 100%;
  19384. line-height: 50px;
  19385. color: rgb(82, 82, 82);
  19386. overflow: auto;
  19387. text-indent: 5px;
  19388. background: #f7f6f9;
  19389. border-radius: 10px;
  19390. }
  19391. .elist_input_box .elist_inptu_text input {
  19392. width: 500px;
  19393. }
  19394. .elist_input_box >>> .el-rate__icon {
  19395. font-size: 24px;
  19396. }
  19397. .isClick {
  19398. background: #4d9def;
  19399. }
  19400. /*定义滚动条轨道 内阴影+圆角*/
  19401. .bzTypeBox::-webkit-scrollbar {
  19402. /*滚动条整体样式*/
  19403. width: 6px;
  19404. /*高宽分别对应横竖滚动条的尺寸*/
  19405. height: 6px;
  19406. }
  19407. /*定义滚动条轨道 内阴影+圆角*/
  19408. .bzTypeBox::-webkit-scrollbar-track {
  19409. border-radius: 10px;
  19410. background-color: rgba(0, 0, 0, 0.1);
  19411. }
  19412. /*定义滑块 内阴影+圆角*/
  19413. .bzTypeBox::-webkit-scrollbar-thumb {
  19414. border-radius: 10px;
  19415. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  19416. background-color: rgba(0, 0, 0, 0.1);
  19417. }
  19418. .choiceBox {
  19419. display: flex;
  19420. margin: 20px 0;
  19421. width: 100%;
  19422. }
  19423. .bzTypeBox {
  19424. display: flex;
  19425. width: 100%;
  19426. overflow: auto;
  19427. white-space: nowrap;
  19428. }
  19429. .bzChild {
  19430. cursor: pointer;
  19431. box-sizing: border-box;
  19432. padding-bottom: 10px;
  19433. font-weight: bold;
  19434. min-width: fit-content;
  19435. }
  19436. .bzChild.active {
  19437. color: #3e88f4;
  19438. border-bottom: 2px solid #2f80f3;
  19439. }
  19440. .bzChild + .bzChild {
  19441. margin-left: 25px;
  19442. }
  19443. .bzBox {
  19444. display: flex;
  19445. flex-direction: row;
  19446. align-items: center;
  19447. }
  19448. .bzBox .yCss {
  19449. width: 14px;
  19450. height: 14px;
  19451. background: #3681fc;
  19452. margin: 0 16px 0 7px;
  19453. border-radius: 50%;
  19454. }
  19455. .bzBox > div:nth-child(2) {
  19456. font-size: 18px;
  19457. font-weight: bold;
  19458. color: #0e1e33;
  19459. }
  19460. .navTitile {
  19461. padding: 0 0px 0 15px;
  19462. font-size: 16px;
  19463. font-weight: bold;
  19464. color: #0e1e33;
  19465. height: 40px;
  19466. line-height: 40px;
  19467. }
  19468. .isTypeOne {
  19469. width: 240px;
  19470. height: 170px;
  19471. /* border: 1px solid #f8f8f8; */
  19472. border-radius: 10px;
  19473. box-shadow: 0 0 6px 1px #dfdada;
  19474. }
  19475. .e_add_top {
  19476. display: flex;
  19477. justify-content: space-between;
  19478. padding: 20px 20px 0 20px;
  19479. border-radius: 3px;
  19480. background: #fff;
  19481. }
  19482. .e_add_title2 {
  19483. display: flex;
  19484. align-items: center;
  19485. }
  19486. .e_add_title2 span {
  19487. width: 40px;
  19488. }
  19489. .e_add_title {
  19490. display: flex;
  19491. align-items: center;
  19492. color: #b8b8b8;
  19493. font-size: 18px;
  19494. position: relative;
  19495. height: 40px;
  19496. }
  19497. .e_add_title span {
  19498. margin-right: 10px;
  19499. }
  19500. .e_add_title .el_input {
  19501. width: 300px;
  19502. }
  19503. .e_add_title >>> .el-input__inner {
  19504. width: 400px;
  19505. }
  19506. .e_add_btn {
  19507. }
  19508. .e_add_content {
  19509. display: flex;
  19510. width: 100%;
  19511. max-width: 650px;
  19512. height: 550px;
  19513. }
  19514. .e_add_list {
  19515. background: #fff;
  19516. height: 500px;
  19517. width: 210px;
  19518. position: relative;
  19519. margin: 15px 5px 0 0;
  19520. flex-shrink: 0;
  19521. display: flex;
  19522. flex-direction: column;
  19523. }
  19524. .e_add_list_title {
  19525. font-size: 20px;
  19526. width: 100%;
  19527. box-sizing: border-box;
  19528. padding: 15px 40px;
  19529. text-align: center;
  19530. border-bottom: 1px solid #eaeaea;
  19531. position: relative;
  19532. display: flex;
  19533. align-items: center;
  19534. justify-content: center;
  19535. height: 57px;
  19536. background: #f6f6f6;
  19537. }
  19538. .e_add_list_title span {
  19539. overflow: hidden;
  19540. white-space: nowrap;
  19541. text-overflow: ellipsis;
  19542. }
  19543. .e_add_list_title img {
  19544. position: absolute;
  19545. right: 15px;
  19546. width: 25px;
  19547. cursor: pointer;
  19548. top: 50%;
  19549. transform: translateY(-50%);
  19550. }
  19551. .e_add_list_body {
  19552. height: calc(100% - 187px);
  19553. overflow: auto;
  19554. }
  19555. .e_add_list_child {
  19556. width: 100%;
  19557. display: flex;
  19558. align-items: center;
  19559. justify-content: center;
  19560. position: relative;
  19561. box-sizing: border-box;
  19562. padding: 15px 40px;
  19563. text-align: center;
  19564. }
  19565. .e_add_list_child span {
  19566. overflow: hidden;
  19567. white-space: nowrap;
  19568. text-overflow: ellipsis;
  19569. cursor: pointer;
  19570. }
  19571. .e_add_list_child img {
  19572. position: absolute;
  19573. right: 10px;
  19574. width: 21px;
  19575. cursor: pointer;
  19576. top: 50%;
  19577. transform: translateY(-50%);
  19578. }
  19579. .e_add_list_child + .e_add_list_child {
  19580. border-top: 1px solid #eaeaea;
  19581. }
  19582. .e_add_list_child .active {
  19583. color: #409eff;
  19584. }
  19585. .e_add_list_btn {
  19586. position: absolute;
  19587. bottom: 0;
  19588. height: 50px;
  19589. background: rgb(120, 120, 254);
  19590. width: 100%;
  19591. color: #fff;
  19592. font-size: 16px;
  19593. text-align: center;
  19594. line-height: 50px;
  19595. cursor: pointer;
  19596. }
  19597. .e_add_list_detail {
  19598. position: absolute;
  19599. bottom: 0;
  19600. height: 130px;
  19601. background: rgb(120, 120, 254);
  19602. width: 100%;
  19603. color: #fff;
  19604. font-size: 16px;
  19605. display: flex;
  19606. align-items: center;
  19607. justify-content: center;
  19608. }
  19609. .e_add_list_detail textarea {
  19610. height: 90%;
  19611. width: 95%;
  19612. border: none;
  19613. resize: none;
  19614. outline: none;
  19615. padding: 5px;
  19616. box-sizing: border-box;
  19617. }
  19618. .e_add_list_pbox {
  19619. width: 100%;
  19620. max-width: 650px;
  19621. /* height: 600px; */
  19622. }
  19623. .e_add_list_pbox_title {
  19624. height: 50px;
  19625. background: #fff;
  19626. display: flex;
  19627. align-items: center;
  19628. width: 100%;
  19629. box-sizing: border-box;
  19630. padding: 0 20px;
  19631. }
  19632. .type_title {
  19633. font-size: 18px;
  19634. font-weight: 700;
  19635. }
  19636. .type_content {
  19637. font-size: 16px;
  19638. margin-left: 30px;
  19639. }
  19640. .type_content span + span {
  19641. margin-left: 20px;
  19642. }
  19643. .type_content span {
  19644. cursor: pointer;
  19645. padding-bottom: 5px;
  19646. box-sizing: border-box;
  19647. }
  19648. .type_content .active {
  19649. color: #409eff;
  19650. border-bottom: 2px solid #409eff;
  19651. }
  19652. .e_add_list_pbox_content {
  19653. height: calc(100% - 50px);
  19654. display: flex;
  19655. align-items: center;
  19656. width: 100%;
  19657. background: #fff;
  19658. }
  19659. .evaCss {
  19660. display: flex;
  19661. flex-direction: row;
  19662. flex-wrap: nowrap;
  19663. align-items: flex-start;
  19664. }
  19665. .cru_line {
  19666. position: absolute;
  19667. bottom: 0px;
  19668. transition: all 0.5s;
  19669. left: 0px;
  19670. width: 125px;
  19671. margin-left: -25px;
  19672. }
  19673. .isNoMessage {
  19674. width: 20%;
  19675. margin: 25% auto 0;
  19676. }
  19677. .isNoMessage > img {
  19678. width: 100%;
  19679. height: 100%;
  19680. }
  19681. .fullStyle >>> .el-dialog__body {
  19682. height: 100% !important;
  19683. }
  19684. .fullStyle >>> .el-dialog,
  19685. .fullStyle {
  19686. width: 100% !important;
  19687. max-width: 100% !important;
  19688. height: 100% !important;
  19689. margin: 0 !important;
  19690. }
  19691. .full_diy >>> .el-dialog {
  19692. margin: 0 !important;
  19693. height: 100%;
  19694. padding: 4px;
  19695. }
  19696. .full_diy >>> .el-dialog__body {
  19697. height: calc(100% - 100px);
  19698. }
  19699. .full_diy2 >>> .el-dialog__body {
  19700. height: calc(100% - 50px);
  19701. padding: 0;
  19702. }
  19703. .switchCss {
  19704. /* width: 100%; */
  19705. display: flex;
  19706. flex-direction: row;
  19707. flex-wrap: nowrap;
  19708. align-items: center;
  19709. /* justify-content: center; */
  19710. }
  19711. .isClickNav {
  19712. color: #499eef;
  19713. }
  19714. .commentImg {
  19715. width: 25px;
  19716. height: 25px;
  19717. cursor: pointer;
  19718. }
  19719. .commentImg > img {
  19720. width: 100%;
  19721. height: 100%;
  19722. }
  19723. .comment {
  19724. background: #f9f9f9;
  19725. border-radius: 0 0 15px 15px;
  19726. display: flex;
  19727. flex-direction: row;
  19728. flex-wrap: nowrap;
  19729. align-items: center;
  19730. justify-content: flex-end;
  19731. height: 35px;
  19732. }
  19733. .commentList {
  19734. display: flex;
  19735. flex-direction: row;
  19736. flex-wrap: nowrap;
  19737. align-items: center;
  19738. justify-content: center;
  19739. align-content: center;
  19740. /* margin-left: 15px; */
  19741. /* margin-left: 8px; */
  19742. }
  19743. .scoreImg {
  19744. width: 17px;
  19745. height: 17px;
  19746. }
  19747. .studentDetail {
  19748. display: flex;
  19749. flex-direction: row;
  19750. flex-wrap: nowrap;
  19751. /* align-items: center; */
  19752. align-items: flex-start;
  19753. }
  19754. .tx {
  19755. width: 50px;
  19756. }
  19757. .tx > img {
  19758. width: 100%;
  19759. height: 100%;
  19760. }
  19761. .nameAndTime {
  19762. display: flex;
  19763. flex-direction: column;
  19764. flex-wrap: nowrap;
  19765. align-items: flex-start;
  19766. margin-left: 10px;
  19767. }
  19768. .worksAnswer {
  19769. color: #4078dd;
  19770. margin: 10px 0;
  19771. font-size: 16px;
  19772. position: relative;
  19773. }
  19774. .worksAnswer > img {
  19775. width: 500px;
  19776. height: 300px;
  19777. object-fit: contain;
  19778. margin: 0 auto;
  19779. display: block;
  19780. }
  19781. .commentTop {
  19782. border-bottom: 1px solid #eaeaea;
  19783. padding-bottom: 10px;
  19784. }
  19785. .commentBox {
  19786. padding-top: 15px;
  19787. }
  19788. .pl {
  19789. font-size: 18px;
  19790. }
  19791. .plPerson {
  19792. width: 100%;
  19793. }
  19794. .plName {
  19795. display: flex;
  19796. flex-direction: row;
  19797. flex-wrap: nowrap;
  19798. align-items: baseline;
  19799. color: #78787a;
  19800. width: 100%;
  19801. }
  19802. .deleteComment {
  19803. cursor: pointer;
  19804. margin-left: auto;
  19805. color: #237ade;
  19806. }
  19807. .plContent {
  19808. margin-top: 5px;
  19809. }
  19810. .evalCss {
  19811. background: #fff;
  19812. font-size: 18px;
  19813. }
  19814. .nav {
  19815. color: #9d9d9d;
  19816. padding: 5px 0 15px 20px;
  19817. }
  19818. .middleBox {
  19819. padding: 5px 0 15px 20px;
  19820. }
  19821. .pfBox {
  19822. padding-bottom: 30px;
  19823. }
  19824. .nameAndrate {
  19825. display: flex;
  19826. flex-direction: row;
  19827. flex-wrap: nowrap;
  19828. align-items: center;
  19829. padding-bottom: 10px;
  19830. height: 30px;
  19831. line-height: 30px;
  19832. }
  19833. .nameAndrate > div {
  19834. margin-left: 10px;
  19835. color: #000;
  19836. height: 30px;
  19837. }
  19838. .nameAndrate >>> .el-rate__icon {
  19839. font-size: 28px !important;
  19840. }
  19841. .pfBox > div:nth-child(2) {
  19842. background: #f7f6f9;
  19843. width: 400px;
  19844. min-height: 45px;
  19845. border-radius: 10px;
  19846. font-size: 16px;
  19847. display: flex;
  19848. flex-wrap: wrap;
  19849. align-items: center;
  19850. padding: 10px 20px;
  19851. box-sizing: border-box;
  19852. color: #000;
  19853. }
  19854. .bz {
  19855. display: flex;
  19856. flex-direction: row;
  19857. flex-wrap: nowrap;
  19858. align-items: flex-start;
  19859. }
  19860. .bz > div {
  19861. padding: 0 10px;
  19862. }
  19863. .select_box2_title {
  19864. background: #fff;
  19865. border-radius: 5px;
  19866. padding: 15px 10px;
  19867. box-sizing: border-box;
  19868. margin-bottom: 10px;
  19869. display: flex;
  19870. flex-direction: row;
  19871. flex-wrap: nowrap;
  19872. align-items: center;
  19873. }
  19874. .select_box2_title > div:nth-child(2) {
  19875. margin-left: 10px;
  19876. color: #c4c4c4;
  19877. }
  19878. .select_box2_box {
  19879. display: flex;
  19880. height: 500px;
  19881. }
  19882. .select_box2_img {
  19883. width: calc(100% - 310px);
  19884. height: 100%;
  19885. overflow: auto;
  19886. background: #fff;
  19887. border-radius: 5px;
  19888. }
  19889. .select_box2_img img {
  19890. width: 100%;
  19891. }
  19892. .select_box2_answer {
  19893. background: #fff;
  19894. margin-left: 10px;
  19895. border-radius: 5px;
  19896. width: 300px;
  19897. overflow: auto;
  19898. height: 90%;
  19899. display: flex;
  19900. flex-direction: column;
  19901. align-items: flex-start;
  19902. padding-top: 10px;
  19903. box-sizing: border-box;
  19904. position: relative;
  19905. }
  19906. .select_answer_title {
  19907. padding: 0 0 15px 20px;
  19908. color: #c4c4c4;
  19909. }
  19910. .select_box2_answer_box {
  19911. margin: 0 0 10px 20px;
  19912. width: 85%;
  19913. display: flex;
  19914. flex-direction: row;
  19915. flex-wrap: nowrap;
  19916. align-items: center;
  19917. }
  19918. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  19919. color: #000;
  19920. }
  19921. .upAnswerCss {
  19922. position: absolute;
  19923. bottom: 15px;
  19924. right: 15px;
  19925. }
  19926. .upAnswerCss >>> .el-button {
  19927. width: 95px;
  19928. height: 35px;
  19929. line-height: 35px;
  19930. padding: 0;
  19931. }
  19932. .rightWidthCss {
  19933. width: 60%;
  19934. display: flex;
  19935. flex-direction: row;
  19936. align-items: flex-start;
  19937. }
  19938. .rightAnswer {
  19939. display: flex;
  19940. flex-direction: row;
  19941. flex-wrap: nowrap;
  19942. align-items: center;
  19943. color: red;
  19944. margin-bottom: 31px;
  19945. }
  19946. .rightAnswerCss {
  19947. display: flex;
  19948. flex-direction: column;
  19949. flex-wrap: nowrap;
  19950. padding-top: 60px;
  19951. }
  19952. .blueCss {
  19953. color: #767de1;
  19954. margin-left: 10px;
  19955. }
  19956. .redCss {
  19957. color: red;
  19958. }
  19959. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  19960. color: rgb(0 123 255) !important;
  19961. }
  19962. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  19963. color: rgb(0 123 255) !important;
  19964. }
  19965. .zuoyeYulan {
  19966. padding-top: 15px;
  19967. font-size: 18px;
  19968. display: flex;
  19969. align-items: flex-end;
  19970. }
  19971. .buttonA {
  19972. margin-left: 10px;
  19973. padding: 0;
  19974. }
  19975. .displayBox {
  19976. margin-bottom: 10px;
  19977. display: block;
  19978. border-bottom: 3px solid #eee;
  19979. display: flex;
  19980. align-items: center;
  19981. }
  19982. .easy_comment {
  19983. width: calc(100% - 90px);
  19984. margin-left: 10px;
  19985. display: flex;
  19986. flex-wrap: wrap;
  19987. }
  19988. .easy_comment > div {
  19989. border: 1px solid #4a4a4a;
  19990. color: #666;
  19991. border-radius: 15px;
  19992. padding: 5px 10px;
  19993. font-size: 16px;
  19994. margin-bottom: 10px;
  19995. margin-right: 5px;
  19996. cursor: pointer;
  19997. }
  19998. .easy_comment div:hover {
  19999. border: 1px solid #f7ba2a;
  20000. color: #c69217;
  20001. }
  20002. .xuan_right_box {
  20003. padding: 10px;
  20004. background: rgb(247, 247, 247);
  20005. margin: 10px 12px;
  20006. border-radius: 5px;
  20007. }
  20008. .tool_right_box {
  20009. display: flex;
  20010. align-items: center;
  20011. }
  20012. .tool_right_box + .tool_right_box {
  20013. margin-top: 10px;
  20014. }
  20015. .right_box_xuan {
  20016. background: rgb(0 123 255);
  20017. color: #fff;
  20018. border-radius: 5px;
  20019. padding: 5px;
  20020. margin-left: 10px;
  20021. min-width: 95px;
  20022. }
  20023. .pButton:hover {
  20024. opacity: 1 !important;
  20025. }
  20026. .pButton {
  20027. position: fixed;
  20028. /* right: 5%; */
  20029. /* bottom: 5%; */
  20030. color: #fff;
  20031. /* width: 50px;
  20032. height: 50px; */
  20033. /* border-radius: 50%; */
  20034. text-align: center;
  20035. /* line-height: 50px; */
  20036. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  20037. cursor: pointer;
  20038. z-index: 999;
  20039. right: 20px;
  20040. top: 110px;
  20041. width: 50px;
  20042. height: 50px;
  20043. background: #fff;
  20044. display: flex;
  20045. align-items: center;
  20046. justify-content: center;
  20047. box-shadow: 0px 0 8px 2px #c5c5c5;
  20048. border-radius: 5px;
  20049. }
  20050. .pzClass {
  20051. width: calc(100% - 340px);
  20052. }
  20053. .newDialogCss {
  20054. /* position: fixed;
  20055. right: 5%;
  20056. top: 50%;
  20057. width: 340px;
  20058. transform: translateY(-50%);
  20059. height: 60%;
  20060. box-shadow: 0px 0 8px 0px #555555;
  20061. border-radius: 15px;
  20062. z-index: 999; */
  20063. position: fixed;
  20064. right: 20px;
  20065. top: 101px;
  20066. width: 330px;
  20067. height: calc(100% - 80px);
  20068. z-index: 999;
  20069. background: #fff;
  20070. border-top-right-radius: 0px;
  20071. border-bottom-right-radius: 0px;
  20072. overflow: hidden;
  20073. }
  20074. .pzTop {
  20075. color: #fff;
  20076. background: #000;
  20077. display: flex;
  20078. flex-direction: row;
  20079. flex-wrap: nowrap;
  20080. align-items: center;
  20081. justify-content: space-between;
  20082. height: 40px;
  20083. border-radius: 15px 15px 0 0;
  20084. }
  20085. .pzTop2 .checkbox {
  20086. display: flex;
  20087. align-items: center;
  20088. padding: 5px 30px;
  20089. flex: 0 0 auto;
  20090. font-weight: bold;
  20091. border-bottom: 1px solid #eee;
  20092. justify-content: space-between;
  20093. }
  20094. .pzTop2 .check {
  20095. text-align: center;
  20096. cursor: pointer;
  20097. box-sizing: border-box;
  20098. display: flex;
  20099. }
  20100. .pzTop2 img {
  20101. width: 25px;
  20102. cursor: pointer;
  20103. }
  20104. .pzTop > div:nth-child(1) {
  20105. padding-left: 10px;
  20106. }
  20107. .pzTop > div:nth-child(2) {
  20108. width: 15px;
  20109. height: 15px;
  20110. padding-right: 10px;
  20111. cursor: pointer;
  20112. }
  20113. .pzTop > div:nth-child(2) > img {
  20114. width: 100%;
  20115. height: 100%;
  20116. }
  20117. .pzBox,
  20118. .noPzBox {
  20119. height: calc(100% - 60px);
  20120. /* background: #ededed; */
  20121. background: #fff;
  20122. /* border-radius: 0 0 15px 15px; */
  20123. }
  20124. .noPzBox {
  20125. display: flex;
  20126. flex-direction: column;
  20127. flex-wrap: nowrap;
  20128. justify-content: center;
  20129. align-items: center;
  20130. }
  20131. .pzList {
  20132. background: #f7f7f7;
  20133. width: 90%;
  20134. margin: 0 auto 15px;
  20135. border-radius: 5px;
  20136. }
  20137. .pzNavTop {
  20138. display: flex;
  20139. flex-direction: row;
  20140. flex-wrap: nowrap;
  20141. padding: 10px 10px 0 10px;
  20142. align-items: center;
  20143. }
  20144. .pzDelete {
  20145. cursor: pointer;
  20146. margin-left: auto;
  20147. font-size: 14px;
  20148. color: #afafaf;
  20149. }
  20150. .pzNavTop > div:nth-child(1) {
  20151. background: #3760af;
  20152. width: 35px;
  20153. height: 35px;
  20154. color: #fff;
  20155. text-align: center;
  20156. line-height: 35px;
  20157. border-radius: 50%;
  20158. font-size: 14px;
  20159. }
  20160. .pzNavTop > div:nth-child(2) {
  20161. font-size: 18px;
  20162. color: #959595;
  20163. margin-left: 5px;
  20164. }
  20165. .pzContent {
  20166. padding: 10px;
  20167. word-break: break-word;
  20168. }
  20169. .pzContent audio {
  20170. width: 100%;
  20171. }
  20172. .pzContent audio::-webkit-media-controls-panel {
  20173. background: #fff;
  20174. }
  20175. .pzContent >>> img {
  20176. max-width: 100%;
  20177. }
  20178. .pzListBox {
  20179. padding-top: 15px;
  20180. height: calc(100% - 100px);
  20181. overflow: auto;
  20182. }
  20183. .addPzButton {
  20184. position: relative;
  20185. margin-top: 3px;
  20186. width: 100%;
  20187. }
  20188. .addPzButton .img1 {
  20189. position: absolute;
  20190. top: 50%;
  20191. right: 25px;
  20192. transform: translateY(-50%);
  20193. height: 100%;
  20194. display: flex;
  20195. align-items: center;
  20196. }
  20197. .addPzButton .img1 div {
  20198. display: flex;
  20199. }
  20200. .addPzButton .img1 div img {
  20201. width: 28px;
  20202. margin-left: 10px;
  20203. cursor: pointer;
  20204. }
  20205. .addPzButton .img1 div span {
  20206. font-size: 14px;
  20207. margin: 4px 0 0 3px;
  20208. color: #afafaf;
  20209. }
  20210. .addPz {
  20211. background: #4b79ce;
  20212. width: 100px;
  20213. color: #fff;
  20214. font-size: 12px;
  20215. height: 30px;
  20216. margin: 0 auto;
  20217. text-align: center;
  20218. line-height: 30px;
  20219. border-radius: 10px;
  20220. cursor: pointer;
  20221. }
  20222. .addDialogCss {
  20223. position: fixed;
  20224. right: 37%;
  20225. top: 50%;
  20226. width: 600px;
  20227. transform: translateY(-50%);
  20228. height: 70%;
  20229. min-height: 450px;
  20230. box-shadow: 0px 0 8px 0px #555555;
  20231. border-radius: 15px;
  20232. z-index: 999;
  20233. }
  20234. .teacherPz {
  20235. display: flex;
  20236. flex-direction: row;
  20237. align-items: center;
  20238. flex-wrap: nowrap;
  20239. }
  20240. .teacherPzImg {
  20241. width: 30px;
  20242. height: 30px;
  20243. }
  20244. .teacherPzImg > img {
  20245. width: 100%;
  20246. height: 100%;
  20247. }
  20248. .addPzBox {
  20249. height: calc(100% - 40px);
  20250. background: #ededed;
  20251. }
  20252. .pzAudioClass {
  20253. margin: 15px 14px;
  20254. background: #fff;
  20255. height: 100%;
  20256. display: flex;
  20257. justify-content: center;
  20258. align-items: center;
  20259. }
  20260. .pzConText {
  20261. width: 95%;
  20262. height: 100%;
  20263. margin: 10px auto 0;
  20264. border: none;
  20265. background: #fff;
  20266. border-radius: 0px;
  20267. }
  20268. .pzConText >>> .text {
  20269. height: calc(100% - 82px);
  20270. }
  20271. .addTextCss {
  20272. background: #4b79ce;
  20273. width: 80px;
  20274. height: 30px;
  20275. text-align: center;
  20276. color: #fff;
  20277. line-height: 30px;
  20278. border-radius: 10px;
  20279. margin: 10px auto 0;
  20280. cursor: pointer;
  20281. }
  20282. .pzConText:focus-visible {
  20283. border: none !important;
  20284. }
  20285. .maxWidth {
  20286. width: 1000px;
  20287. }
  20288. .noPz {
  20289. width: 150px;
  20290. margin: 0 auto 20%;
  20291. }
  20292. .noPz > img {
  20293. width: 100%;
  20294. height: 100%;
  20295. }
  20296. .pzList .time {
  20297. text-align: right;
  20298. box-sizing: border-box;
  20299. padding: 0 10px 10px 0px;
  20300. color: #949494;
  20301. font-size: 14px;
  20302. }
  20303. /* table 样式 */
  20304. .addPzCheck {
  20305. display: flex;
  20306. flex-direction: row;
  20307. flex-wrap: nowrap;
  20308. padding: 10px 15px 0;
  20309. }
  20310. .addPzCheck span {
  20311. cursor: pointer;
  20312. padding-bottom: 5px;
  20313. font-weight: bold;
  20314. }
  20315. .addPzCheck span + span {
  20316. margin-left: 10px;
  20317. }
  20318. .addPzCheck .isChooseActive {
  20319. color: #3e88f4;
  20320. border-bottom: 2px solid #2f80f3;
  20321. }
  20322. /* code 样式 */
  20323. .scoreBox,
  20324. .scoreDetailBox {
  20325. display: flex;
  20326. align-items: center;
  20327. justify-content: flex-start;
  20328. margin-top: 20px;
  20329. font-size: 18px;
  20330. width: 100%;
  20331. }
  20332. .scoreBox .t,
  20333. .scoreDetailBox .t {
  20334. margin-right: 10px;
  20335. width: 100px;
  20336. text-align: right;
  20337. }
  20338. .scoreDetailBox {
  20339. align-items: flex-start;
  20340. }
  20341. .scoreDetailBox >>> .el-textarea {
  20342. width: calc(100% - 200px);
  20343. }
  20344. .scoreBox >>> .el-input {
  20345. width: 130px;
  20346. font-size: 38px;
  20347. }
  20348. .scoreBox >>> .el-input__inner {
  20349. height: 60px;
  20350. }
  20351. .answerScore {
  20352. position: absolute;
  20353. top: 10px;
  20354. right: 10px;
  20355. background: #0000008f;
  20356. border-radius: 5px;
  20357. padding: 3px 5px;
  20358. font-size: 14px;
  20359. color: #fff;
  20360. cursor: pointer;
  20361. }
  20362. .open_box .switch_box {
  20363. width: 100%;
  20364. margin: 0 auto;
  20365. display: flex;
  20366. justify-content: space-between;
  20367. }
  20368. .open_box .switch_box + .switch_box {
  20369. margin-top: 10px;
  20370. }
  20371. .deleteImg {
  20372. width: 25px !important;
  20373. height: 25px !important;
  20374. cursor: pointer;
  20375. position: absolute;
  20376. top: 10px;
  20377. right: 10px;
  20378. }
  20379. .deleteImg2 {
  20380. width: 15px !important;
  20381. height: 15px !important;
  20382. top: 5px;
  20383. right: 5px;
  20384. }
  20385. .rightW {
  20386. right: 40px;
  20387. }
  20388. .drawPBox {
  20389. display: flex;
  20390. flex-direction: column;
  20391. position: relative;
  20392. }
  20393. .drawPBox span {
  20394. font-size: 18px;
  20395. color: #606266;
  20396. padding-bottom: 10px;
  20397. margin: 10px 0;
  20398. border-bottom: 1px solid #eaeaea;
  20399. }
  20400. .drawPBox img {
  20401. width: 500px;
  20402. height: 300px;
  20403. object-fit: contain;
  20404. cursor: pointer;
  20405. margin: 0 auto;
  20406. }
  20407. .sentenBox {
  20408. background: #fff;
  20409. height: 450px;
  20410. overflow: auto;
  20411. background-image: url("../../assets/icon/conSentences/stuBg.png");
  20412. background-position: 102%;
  20413. background-repeat: no-repeat;
  20414. background-size: 60%;
  20415. }
  20416. .addSen {
  20417. background: #409efe;
  20418. width: 90px;
  20419. color: #fff;
  20420. height: 35px;
  20421. text-align: center;
  20422. line-height: 35px;
  20423. border-radius: 5px;
  20424. float: right;
  20425. margin: 10px 20px 0 0;
  20426. cursor: pointer;
  20427. }
  20428. .sentenTop {
  20429. display: flex;
  20430. flex-direction: row;
  20431. flex-wrap: nowrap;
  20432. align-items: center;
  20433. padding: 55px 0 0 20px;
  20434. box-sizing: border-box;
  20435. }
  20436. .sentenTop > div:nth-child(2) {
  20437. width: 300px;
  20438. margin: 0 15px;
  20439. }
  20440. .sentenTop > div:nth-child(3) {
  20441. background: #409efe;
  20442. color: #fff;
  20443. width: 65px;
  20444. height: 35px;
  20445. text-align: center;
  20446. line-height: 35px;
  20447. border-radius: 5px;
  20448. cursor: pointer;
  20449. }
  20450. .cardList,
  20451. .cardList1 {
  20452. padding: 10px 0 10px 0;
  20453. display: flex;
  20454. flex-direction: row;
  20455. flex-wrap: wrap;
  20456. align-items: center;
  20457. box-sizing: border-box;
  20458. border-bottom: 1px solid #f4f4f4;
  20459. width: 98%;
  20460. margin: 0 auto;
  20461. min-width: 60%;
  20462. max-width: 85%;
  20463. }
  20464. .cardList1 {
  20465. padding: 10px 0 10px 10px !important;
  20466. margin: 0 !important;
  20467. }
  20468. .cardBox {
  20469. display: flex;
  20470. flex-direction: row;
  20471. flex-wrap: wrap;
  20472. align-items: center;
  20473. align-content: center;
  20474. }
  20475. .cardBox > div {
  20476. margin-bottom: 10px;
  20477. }
  20478. .isCard,
  20479. .isChooseCard,
  20480. .noCard,
  20481. .isCard1 {
  20482. width: 130px;
  20483. height: 60px;
  20484. text-align: center;
  20485. line-height: 60px;
  20486. font-size: 20px;
  20487. cursor: pointer;
  20488. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  20489. background-size: cover;
  20490. transition: all 2s;
  20491. margin-right: 20px;
  20492. }
  20493. .isCard > div,
  20494. .noCard > div,
  20495. .isCard1 > div {
  20496. white-space: nowrap;
  20497. overflow: hidden;
  20498. text-overflow: ellipsis;
  20499. width: 75%;
  20500. margin: 0 auto;
  20501. }
  20502. .noCard {
  20503. background-image: none;
  20504. }
  20505. .isCard1 {
  20506. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  20507. }
  20508. .isChooseCard {
  20509. background-image: none;
  20510. border: 1px dashed #b9b9b9;
  20511. border-radius: 10px;
  20512. }
  20513. .card {
  20514. width: 130px;
  20515. height: 60px;
  20516. }
  20517. .card > img {
  20518. width: 100%;
  20519. height: 100%;
  20520. }
  20521. .rightCardBox {
  20522. margin: 10px 0 0 10px;
  20523. }
  20524. .rightCardBox > div:nth-child(1) {
  20525. margin-bottom: 10px;
  20526. }
  20527. .cardCss {
  20528. display: flex;
  20529. flex-direction: column;
  20530. flex-wrap: nowrap;
  20531. align-items: center;
  20532. border-bottom: 3px solid #b4c3d3;
  20533. padding: 0 0 5px 0;
  20534. margin-right: 10px;
  20535. }
  20536. .cardCss > div:nth-child(2) {
  20537. background: #5b7b9d;
  20538. color: #fff;
  20539. width: 20px;
  20540. height: 20px;
  20541. border-radius: 50%;
  20542. text-align: center;
  20543. line-height: 20px;
  20544. }
  20545. .isWrong {
  20546. display: flex;
  20547. flex-direction: row;
  20548. flex-wrap: nowrap;
  20549. align-content: center;
  20550. align-items: center;
  20551. }
  20552. .answerRight {
  20553. width: 25%;
  20554. }
  20555. .isTj {
  20556. display: flex;
  20557. flex-direction: row;
  20558. flex-wrap: nowrap;
  20559. align-items: center;
  20560. }
  20561. .isTj > div:nth-child(2) {
  20562. color: #727070;
  20563. margin-left: 10px;
  20564. }
  20565. .isTjImg {
  20566. width: 30px;
  20567. height: 30px;
  20568. }
  20569. .isTjImg > img {
  20570. width: 100%;
  20571. height: 100%;
  20572. }
  20573. .cardAnswerBox {
  20574. font-size: 18px;
  20575. width: 97%;
  20576. border: 5px;
  20577. padding: 0;
  20578. border-radius: 5px;
  20579. margin: 10px auto;
  20580. word-break: break-word;
  20581. }
  20582. .w_name {
  20583. margin-bottom: 10px;
  20584. }
  20585. .w_name span {
  20586. font-size: 16px;
  20587. }
  20588. .w_teachert {
  20589. width: 50px !important;
  20590. position: absolute;
  20591. height: auto !important;
  20592. z-index: 10;
  20593. right: 25px;
  20594. top: -25px;
  20595. }
  20596. .group_workBox {
  20597. }
  20598. .group_workBox + .group_workBox {
  20599. margin-top: 20px;
  20600. }
  20601. .group_box {
  20602. padding-bottom: 20px;
  20603. border-bottom: 2px solid #f0f0f0;
  20604. }
  20605. .group_title {
  20606. display: flex;
  20607. align-items: center;
  20608. justify-content: space-between;
  20609. }
  20610. .group_name {
  20611. background-image: url(../../assets/icon/groupN.png);
  20612. width: 220px;
  20613. background-size: 100% 100%;
  20614. height: 67px;
  20615. padding: 0 20px 0 43px;
  20616. box-sizing: border-box;
  20617. line-height: 63px;
  20618. color: #fff;
  20619. overflow: hidden;
  20620. white-space: nowrap;
  20621. text-overflow: ellipsis;
  20622. }
  20623. .group_work {
  20624. width: 100%;
  20625. padding: 0 10px;
  20626. box-sizing: border-box;
  20627. display: flex;
  20628. flex-wrap: wrap;
  20629. }
  20630. .g_d_box {
  20631. display: flex;
  20632. flex-flow: wrap;
  20633. justify-content: space-around;
  20634. }
  20635. .g_d_box .isChair {
  20636. background-image: url(../../assets/avatar.png) !important;
  20637. }
  20638. .g_d_group {
  20639. width: 500px;
  20640. margin-bottom: 80px;
  20641. }
  20642. .g_d_group_chair {
  20643. display: flex;
  20644. align-items: center;
  20645. justify-content: center;
  20646. }
  20647. .g_d_group_chair > div + div {
  20648. margin-left: 30px;
  20649. }
  20650. .g_d_group_chair > div,
  20651. .g_d_group_chair2 > div {
  20652. display: flex;
  20653. flex-direction: column;
  20654. align-items: center;
  20655. }
  20656. .g_d_group_chair > div > span:nth-child(1),
  20657. .g_d_group_chair2 > div > span:nth-child(1) {
  20658. background-image: url(../../assets/icon/chair.png);
  20659. width: 50px;
  20660. height: 50px;
  20661. display: block;
  20662. background-size: 100% 100%;
  20663. }
  20664. .g_d_group_tableBox {
  20665. display: flex;
  20666. align-items: center;
  20667. justify-content: center;
  20668. }
  20669. .g_d_group_chair2 {
  20670. display: flex;
  20671. flex-direction: column;
  20672. align-items: center;
  20673. justify-content: center;
  20674. }
  20675. .g_d_group_chair2 > div + div {
  20676. margin-top: 10px;
  20677. }
  20678. .g_d_group_table {
  20679. background-image: url(../../assets/icon/groupBg.png);
  20680. width: 354px;
  20681. height: 196px;
  20682. background-size: 100% 100%;
  20683. display: flex;
  20684. align-items: center;
  20685. justify-content: center;
  20686. flex-direction: column;
  20687. color: #fff;
  20688. }
  20689. .g_d_group_table > div:nth-child(1) {
  20690. font-size: 24px;
  20691. margin-bottom: 5px;
  20692. }
  20693. .g_d_group_table > div:nth-child(2) div {
  20694. cursor: pointer;
  20695. background: #2e77bf;
  20696. padding: 4px 10px;
  20697. border-radius: 5px;
  20698. }
  20699. .groupBox {
  20700. }
  20701. .groupContent + .groupContent {
  20702. margin-top: 30px;
  20703. }
  20704. .groupTitle {
  20705. font-size: 24px;
  20706. color: rgb(80, 80, 80);
  20707. margin-bottom: 20px;
  20708. }
  20709. .groupName {
  20710. display: flex;
  20711. align-items: center;
  20712. }
  20713. .groupn {
  20714. font-size: 15px;
  20715. margin-right: 10px;
  20716. }
  20717. .groupName + .groupName {
  20718. margin-top: 15px;
  20719. }
  20720. .groupBtn {
  20721. margin-left: 10px;
  20722. }
  20723. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  20724. text-align: left;
  20725. }
  20726. .g_d_btnBox {
  20727. display: flex;
  20728. justify-content: flex-end;
  20729. align-items: flex-end;
  20730. margin-bottom: 20px;
  20731. }
  20732. .updateChair {
  20733. position: relative;
  20734. }
  20735. .updateChairBtn {
  20736. position: absolute;
  20737. width: 50px;
  20738. height: 50px;
  20739. overflow: hidden;
  20740. /* display: flex; */
  20741. align-items: center;
  20742. justify-content: center;
  20743. background: #00000087;
  20744. color: #fff;
  20745. border-radius: 50px;
  20746. display: none;
  20747. cursor: pointer;
  20748. }
  20749. .updateChair:hover .updateChairBtn {
  20750. display: flex;
  20751. }
  20752. .group_staic_box {
  20753. display: flex;
  20754. padding: 30px 40px 10px;
  20755. flex-wrap: wrap;
  20756. }
  20757. .group_staic {
  20758. /* width: 50%; */
  20759. margin-bottom: 20px;
  20760. display: flex;
  20761. align-items: center;
  20762. }
  20763. .group_staic span:nth-child(1) {
  20764. width: 150px;
  20765. text-align: right;
  20766. margin-right: 15px;
  20767. }
  20768. .group_staic span:nth-child(2) {
  20769. background: rgb(0 123 255);
  20770. color: #fff;
  20771. border-radius: 5px;
  20772. padding: 5px;
  20773. }
  20774. .codeFileBox {
  20775. height: 300px;
  20776. background: #fff;
  20777. display: flex;
  20778. align-items: center;
  20779. justify-content: center;
  20780. }
  20781. .codeFileBox img {
  20782. width: 200px;
  20783. margin: 0;
  20784. height: auto;
  20785. }
  20786. .codeFileBox div {
  20787. background: rgb(80, 142, 226);
  20788. color: #fff;
  20789. padding: 10px 20px;
  20790. border-radius: 25px;
  20791. cursor: pointer;
  20792. margin-left: 15px;
  20793. }
  20794. .radioBox {
  20795. display: flex;
  20796. flex-direction: column;
  20797. flex-wrap: nowrap;
  20798. align-items: flex-start;
  20799. }
  20800. .radioBox > div {
  20801. margin: 10px 0 0 10px;
  20802. }
  20803. /* .radioBox >>> .el-radio__input,
  20804. .radioBox >>> .el-checkbox__inner {
  20805. margin-left: 10px;
  20806. } */
  20807. .radioBox >>> .el-radio__label,
  20808. .radioBox >>> .el-checkbox__label {
  20809. display: flex;
  20810. align-items: center;
  20811. }
  20812. .radioBox >>> .el-radio__label > span {
  20813. width: 100%;
  20814. display: -webkit-box;
  20815. overflow: hidden;
  20816. white-space: normal !important;
  20817. text-overflow: ellipsis;
  20818. word-wrap: break-word;
  20819. }
  20820. .inImg {
  20821. width: 100px;
  20822. cursor: pointer;
  20823. }
  20824. .inImg > img {
  20825. width: 100%;
  20826. height: 100%;
  20827. object-fit: cover;
  20828. }
  20829. .timuImgBox {
  20830. margin: 10px 0;
  20831. display: flex;
  20832. flex-direction: column;
  20833. flex-wrap: wrap;
  20834. align-items: flex-start;
  20835. }
  20836. .timuImg {
  20837. width: 150px;
  20838. margin: 5px 0;
  20839. cursor: pointer;
  20840. }
  20841. .timuImg > img {
  20842. width: 100%;
  20843. height: 100%;
  20844. object-fit: cover;
  20845. }
  20846. .worksTop {
  20847. display: flex;
  20848. flex-direction: row;
  20849. align-items: flex-end;
  20850. }
  20851. .corOpen {
  20852. margin: 0 0 0 10px;
  20853. font-size: 14px;
  20854. cursor: pointer;
  20855. color: #505050;
  20856. }
  20857. .corOpen:hover {
  20858. color: #499eef;
  20859. }
  20860. .navCorOpenBox {
  20861. display: flex;
  20862. flex-direction: row;
  20863. align-items: center;
  20864. justify-content: space-between;
  20865. height: 55px;
  20866. background: #ffffff;
  20867. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  20868. border-radius: 8px 8px 0px 0px;
  20869. z-index: 9;
  20870. position: relative;
  20871. }
  20872. .navCorOpen {
  20873. padding-right: 15px;
  20874. cursor: pointer;
  20875. width: 20px;
  20876. display: flex;
  20877. }
  20878. .navCorOpen > img {
  20879. width: 100%;
  20880. height: 100%;
  20881. }
  20882. .mlImg {
  20883. width: 25px !important;
  20884. min-width: 25px;
  20885. cursor: pointer;
  20886. margin-top: 5px;
  20887. }
  20888. .mlImg > img {
  20889. width: 100%;
  20890. height: 100%;
  20891. }
  20892. .navLeftCss {
  20893. width: 100% !important;
  20894. left: 0 !important;
  20895. }
  20896. .isContentCss {
  20897. width: 100% !important;
  20898. }
  20899. .isAllWidth {
  20900. width: 100% !important;
  20901. }
  20902. .toolBoxSteps {
  20903. position: absolute;
  20904. top: 50%;
  20905. transform: translateY(-50%);
  20906. cursor: pointer;
  20907. width: 60px;
  20908. display: flex;
  20909. align-items: center;
  20910. justify-content: center;
  20911. }
  20912. .toolBoxSteps:nth-child(1) > img,
  20913. .toolBoxSteps:nth-child(2) > img {
  20914. width: 24px;
  20915. }
  20916. .toolBoxSteps:nth-child(1) {
  20917. left: 0;
  20918. }
  20919. .toolBoxSteps:nth-child(2) {
  20920. right: 0;
  20921. }
  20922. .isChooseActive {
  20923. color: #3681fc !important;
  20924. font-weight: bold !important;
  20925. }
  20926. .tool_box {
  20927. width: 100%;
  20928. }
  20929. .tool_type_box {
  20930. display: flex;
  20931. flex-direction: row;
  20932. align-items: baseline;
  20933. flex-wrap: nowrap;
  20934. justify-content: flex-start;
  20935. position: relative;
  20936. }
  20937. .toolSort {
  20938. display: flex;
  20939. flex-direction: row;
  20940. flex-wrap: wrap;
  20941. justify-content: flex-start;
  20942. align-items: flex-start;
  20943. }
  20944. .toolSort > div {
  20945. margin: 0 45px 0 0;
  20946. width: auto;
  20947. }
  20948. .tools {
  20949. width: 100%;
  20950. display: flex;
  20951. flex-direction: column;
  20952. flex-wrap: nowrap;
  20953. align-items: flex-start;
  20954. }
  20955. .whiteBIcon {
  20956. width: 80px;
  20957. cursor: pointer;
  20958. display: flex;
  20959. flex-direction: column;
  20960. flex-wrap: nowrap;
  20961. align-items: center;
  20962. }
  20963. .whiteBIcon > img {
  20964. width: 100%;
  20965. height: 100%;
  20966. }
  20967. .whiteBIcon > img {
  20968. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  20969. border-radius: 15px;
  20970. }
  20971. .dia_tool_box {
  20972. display: flex;
  20973. flex-wrap: wrap;
  20974. width: 100%;
  20975. }
  20976. .dia_tool_box > div {
  20977. margin-right: 40px;
  20978. }
  20979. .check {
  20980. /* width: 20px;
  20981. height: 20px; */
  20982. cursor: pointer;
  20983. margin: 10px 0;
  20984. }
  20985. .checkDiv {
  20986. display: flex;
  20987. align-items: center;
  20988. }
  20989. .checkDiv span {
  20990. margin-left: 5px;
  20991. color: #858585;
  20992. }
  20993. .check img {
  20994. width: 20px;
  20995. height: 20px;
  20996. }
  20997. /* code 样式 */
  20998. .cont {
  20999. /* -webkit-user-modify: read-write; */
  21000. overflow-wrap: break-word;
  21001. -webkit-line-break: after-white-space;
  21002. }
  21003. /* table 样式 */
  21004. .cont >>> table {
  21005. border-top: 1px solid #ccc;
  21006. border-left: 1px solid #ccc;
  21007. }
  21008. .cont >>> table td,
  21009. .cont >>> table th {
  21010. border-bottom: 1px solid #ccc;
  21011. border-right: 1px solid #ccc;
  21012. /* padding: 20px 5px; */
  21013. padding: 5px 10px;
  21014. max-width: 0px;
  21015. height: 30px;
  21016. vertical-align: baseline;
  21017. box-sizing: border-box;
  21018. }
  21019. .cont >>> table th {
  21020. border-bottom: 2px solid #ccc;
  21021. text-align: center;
  21022. }
  21023. /* blockquote 样式 */
  21024. .cont >>> blockquote {
  21025. display: block;
  21026. border-left: 8px solid #d0e5f2;
  21027. padding: 5px 10px;
  21028. margin: 10px 0;
  21029. line-height: 1.4;
  21030. font-size: 100%;
  21031. background-color: #f1f1f1;
  21032. }
  21033. /* code 样式 */
  21034. .cont >>> code {
  21035. display: inline-block;
  21036. /* *display: inline; */
  21037. zoom: 1;
  21038. background-color: #f1f1f1;
  21039. border-radius: 3px;
  21040. padding: 3px 5px;
  21041. margin: 0 3px;
  21042. }
  21043. .cont >>> pre code {
  21044. display: block;
  21045. }
  21046. /* ul ol 样式 */
  21047. .cont >>> ul,
  21048. ol {
  21049. margin: 10px 0 10px 20px;
  21050. }
  21051. .fileC_box > .fileC_title {
  21052. padding: 10px 5px;
  21053. border-top: 1px solid #cdcdcd;
  21054. font-size: 14px;
  21055. color: #868686;
  21056. width: 88%;
  21057. margin: 0 auto;
  21058. }
  21059. .pl_select_box {
  21060. height: 40px;
  21061. line-height: 40px;
  21062. width: 100%;
  21063. cursor: pointer;
  21064. padding: 0 20px;
  21065. box-sizing: border-box;
  21066. border-radius: 5px;
  21067. border: 1px solid #d6d6d6;
  21068. white-space: nowrap;
  21069. overflow: hidden;
  21070. text-overflow: ellipsis;
  21071. background: #fff;
  21072. text-align: left;
  21073. }
  21074. .stageBoxCss {
  21075. display: flex;
  21076. flex-direction: row;
  21077. flex-wrap: nowrap;
  21078. align-items: center;
  21079. height: 50px;
  21080. border-bottom: 1px solid #e2f5fc;
  21081. cursor: pointer;
  21082. }
  21083. .stageItemTitle {
  21084. display: flex;
  21085. flex-direction: row;
  21086. flex-wrap: nowrap;
  21087. align-items: center;
  21088. margin-left: 6px;
  21089. }
  21090. .stageItemTitle > div:first-child {
  21091. color: #0e1e33;
  21092. font-size: 16px;
  21093. font-weight: bold;
  21094. }
  21095. .stageItemTitle > div:last-child {
  21096. margin-left: 10px;
  21097. font-size: 14px;
  21098. font-weight: 400;
  21099. color: #acb4bf;
  21100. }
  21101. .stageChild {
  21102. height: 0;
  21103. overflow: hidden;
  21104. transition: all 0.5s;
  21105. }
  21106. .navItem {
  21107. background: #f0f4fa;
  21108. border-radius: 8px;
  21109. width: 90%;
  21110. margin: 10px auto 0;
  21111. display: flex;
  21112. flex-direction: row;
  21113. flex-wrap: nowrap;
  21114. justify-content: flex-start;
  21115. align-items: center;
  21116. }
  21117. .navItemList {
  21118. display: flex;
  21119. flex-direction: row;
  21120. flex-wrap: nowrap;
  21121. align-items: center;
  21122. padding: 18px 13px;
  21123. cursor: pointer;
  21124. font-size: 16px;
  21125. font-weight: 400;
  21126. color: #0e1e33;
  21127. justify-content: flex-start;
  21128. width: 100%;
  21129. border-radius: 8px;
  21130. }
  21131. .navItemList > div {
  21132. font-size: 16px;
  21133. font-weight: 400;
  21134. color: #0e1e33;
  21135. }
  21136. .navItemList > div:first-child {
  21137. min-width: 60px;
  21138. }
  21139. .navItemList > div:last-child {
  21140. display: -webkit-box;
  21141. overflow: hidden;
  21142. white-space: normal !important;
  21143. text-overflow: ellipsis;
  21144. word-wrap: break-word;
  21145. -webkit-line-clamp: 2;
  21146. -webkit-box-orient: vertical;
  21147. }
  21148. .isItemList {
  21149. background: #3681fc;
  21150. }
  21151. .isItemList > div {
  21152. color: #fff;
  21153. }
  21154. .navListItem {
  21155. width: 280px;
  21156. height: 50px;
  21157. margin: 0px auto 10px;
  21158. display: flex;
  21159. flex-direction: row;
  21160. flex-wrap: nowrap;
  21161. align-items: center;
  21162. justify-content: space-between;
  21163. background: #f0f4fa;
  21164. border-radius: 6px 6px 6px 6px;
  21165. }
  21166. .downIcon {
  21167. width: 20px;
  21168. height: 20px;
  21169. margin-right: 15px;
  21170. cursor: pointer;
  21171. }
  21172. .downIcon > img {
  21173. width: 100%;
  21174. height: 100%;
  21175. }
  21176. .newButton {
  21177. width: 102px;
  21178. height: 36px;
  21179. background: #e7ebf1;
  21180. border-radius: 4px;
  21181. color: #0e1e33;
  21182. font-weight: 400;
  21183. font-size: 14px;
  21184. border: none;
  21185. float: right;
  21186. margin-left: 10px;
  21187. }
  21188. .pick_box {
  21189. display: flex;
  21190. align-items: flex-start;
  21191. flex-wrap: wrap;
  21192. }
  21193. </style>