studyStudent.vue 711 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913
  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="
  236. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  237. .taskDetail != '' ||
  238. vChapterData[taskCount].length > 0 ||
  239. fileC[taskCount].length > 0
  240. "
  241. >
  242. <div
  243. class="taskBox"
  244. v-if="
  245. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  246. .taskDetail != ''
  247. "
  248. >
  249. <div
  250. style="
  251. display: flex;
  252. flex-wrap: nowrap;
  253. flex-direction: column;
  254. position: relative;
  255. "
  256. >
  257. <div
  258. style="
  259. padding: 20px 0px 15px 0;
  260. line-height: 29px;
  261. font-size: 18px;
  262. "
  263. class="cont"
  264. v-if="
  265. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  266. .taskDetail != ''
  267. "
  268. v-html="
  269. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  270. .taskDetail
  271. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  272. taskCount
  273. ].taskDetail
  274. : '暂无描述'
  275. "
  276. ></div>
  277. </div>
  278. </div>
  279. <div
  280. class="student_head"
  281. v-if="
  282. vChapterData[taskCount].length > 0 ||
  283. fileC[taskCount].length > 0
  284. "
  285. >
  286. <div class="vedioTaskBox">
  287. <div
  288. :class="
  289. contentDialog == false
  290. ? 'box_course isContentCss'
  291. : 'box_course'
  292. "
  293. v-if="
  294. vChapterData.length > 0 &&
  295. vChapterData[taskCount] &&
  296. showType !== ''
  297. "
  298. >
  299. <div class="wheel" style="height: auto" v-if="showType === 0">
  300. <div
  301. class="workd_media"
  302. style="height: 650px; width: calc(100% - 50px)"
  303. >
  304. <video-player
  305. class="video-player vjs-custom-skin"
  306. :class="contentDialog == false ? 'isAllWidth' : ''"
  307. :playsinline="true"
  308. :options="playerO[taskCount]"
  309. @play="onPlayerPlay($event)"
  310. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  311. ></video-player>
  312. </div>
  313. </div>
  314. <div
  315. class="wheel"
  316. v-if="showType == 1"
  317. style="
  318. box-shadow: 0 0 6px 1px #f2f2f2;
  319. width: 95%;
  320. margin: 0 auto;
  321. background: #f1f1f1;
  322. "
  323. >
  324. <div class="title">查看文档</div>
  325. <el-form class="textBox">
  326. <el-form-item class="textTitle">
  327. <div style="font-size: 22px">
  328. {{ text.name }}
  329. </div>
  330. </el-form-item>
  331. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  332. <div v-html="text.url" class="textContent cont"></div>
  333. </el-form>
  334. </div>
  335. <div
  336. class="wheel"
  337. v-if="
  338. pptImgUrl1.indexOf(
  339. 'https://view.officeapps.live.com/op/view.aspx?src='
  340. ) != -1 && showType == 2
  341. "
  342. style="width: 95%; margin: 0 auto"
  343. >
  344. <iframe
  345. style="width: 100%; height: 100%; border: none"
  346. :src="pptImgUrl1"
  347. ></iframe>
  348. </div>
  349. <div
  350. class="wheel"
  351. v-else-if="showType == 2"
  352. style="width: 95%; margin: 0 auto"
  353. >
  354. <iframe
  355. style="width: 100%; height: 100%; border: none"
  356. security="restricted"
  357. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  358. :src="pptImgUrl1"
  359. ></iframe>
  360. </div>
  361. <div
  362. class="wheel"
  363. v-if="showType == 3"
  364. style="width: 95%; margin: 0 auto"
  365. >
  366. <pdf
  367. :pdfUrl="pptImgUrl1"
  368. style="width: 100%; height: 100%; overflow: auto"
  369. ></pdf>
  370. </div>
  371. <div
  372. class="wheel"
  373. v-if="showType == 4"
  374. style="width: 95%; margin: 0 auto"
  375. >
  376. <el-image
  377. :src="pptImgUrl1"
  378. fit="contain"
  379. style="width: 100%; height: 100%; cursor: pointer"
  380. @click="previewImg(pptImgUrl1)"
  381. ></el-image>
  382. </div>
  383. </div>
  384. <div
  385. class="pButton"
  386. style="
  387. position: absolute;
  388. right: 20px;
  389. top: 0;
  390. background: #205cc6;
  391. z-index: 998;
  392. opacity: 0.8;
  393. "
  394. v-if="!contentDialog"
  395. @click="setContent(true)"
  396. >
  397. <!-- 批 -->
  398. <img
  399. src="../../assets/mlBtn.png"
  400. style="width: 25px"
  401. alt=""
  402. />
  403. </div>
  404. <div
  405. v-if="contentDialog == true"
  406. :style="{
  407. width:
  408. (vChapterData[taskCount].length > 0 ||
  409. fileC[taskCount].length > 0) &&
  410. showType === ''
  411. ? 'calc(100%)'
  412. : '300px',
  413. margin:
  414. (vChapterData[taskCount].length > 0 ||
  415. fileC[taskCount].length > 0) &&
  416. showType === ''
  417. ? '0 15px'
  418. : '0 15px 0 0',
  419. }"
  420. >
  421. <div
  422. class="vedioList"
  423. v-if="
  424. vChapterData[taskCount].length > 0 ||
  425. fileC[taskCount].length > 0
  426. "
  427. style="height: 650px"
  428. >
  429. <div class="navCorOpenBox">
  430. <div class="navTitile">内容列表:</div>
  431. <div class="navCorOpen" @click="setContent(false)">
  432. <img src="../../assets/icon/newIcon/mlBtn.png" alt="" />
  433. </div>
  434. </div>
  435. <div class="navBox">
  436. <div
  437. v-show="
  438. vChapterData[taskCount].length > 0 ||
  439. fileC[taskCount].length > 0
  440. "
  441. style="padding: 10px 0 25px 0"
  442. >
  443. <div
  444. class="vedioTimeBox"
  445. v-for="(vitem, vindex) in vChapterData[taskCount]"
  446. :key="vindex + '1'"
  447. >
  448. <div class="navListItem" v-if="vitem.type == 2">
  449. <div
  450. @click="lookVedio(vitem.url, vindex)"
  451. class="navText"
  452. :class="isClickNav == vindex ? 'isClickNav' : ''"
  453. >
  454. <span v-if="vitem.text">{{ vitem.text }}-</span
  455. >{{ vitem.name }}
  456. </div>
  457. <div class="downIcon" @click="downloadFile2(vitem)">
  458. <img
  459. src="../../assets/icon/newIcon/down.png"
  460. alt
  461. />
  462. </div>
  463. </div>
  464. <div class="navListItem" v-if="vitem.type == 6">
  465. <div
  466. @click="lookText(taskCount, vindex)"
  467. class="navText"
  468. :class="isClickNav == vindex ? 'isClickNav' : ''"
  469. >
  470. {{ vitem.name }}.doc
  471. </div>
  472. <!-- <div
  473. class="downIcon"
  474. @click="downloadFile(vitem.url)"
  475. >
  476. <img
  477. src="../../assets/icon/newIcon/down.png"
  478. alt
  479. />
  480. </div> -->
  481. </div>
  482. <div class="navListItem" v-if="vitem.type == 8">
  483. <div
  484. @click="doUrl(vitem.url, vindex)"
  485. class="navText"
  486. :class="isClickNav == vindex ? 'isClickNav' : ''"
  487. >
  488. {{ vitem.title ? vitem.title : vitem.url }}
  489. </div>
  490. <!-- <div
  491. class="downIcon"
  492. @click="downloadFile(vitem.url)"
  493. >
  494. <img
  495. src="../../assets/icon/newIcon/down.png"
  496. alt
  497. />
  498. </div> -->
  499. </div>
  500. <div class="navListItem" v-if="vitem.type == 3">
  501. <div
  502. @click="downFile(vitem, vindex)"
  503. class="navText"
  504. :class="isClickNav == vindex ? 'isClickNav' : ''"
  505. >
  506. <span v-if="vitem.text">{{ vitem.text }}-</span
  507. >{{ vitem.name }}
  508. </div>
  509. <div class="downIcon" @click="downloadFile2(vitem)">
  510. <img
  511. src="../../assets/icon/newIcon/down.png"
  512. alt
  513. />
  514. </div>
  515. </div>
  516. <div class="navListItem" v-if="vitem.type == 12">
  517. <div class="navText" @click="downloadFile2(vitem)">
  518. <span v-if="vitem.text">{{ vitem.text }}-</span
  519. >{{ vitem.name }}
  520. </div>
  521. <div class="downIcon" @click="downloadFile2(vitem)">
  522. <img
  523. src="../../assets/icon/newIcon/down.png"
  524. alt
  525. />
  526. </div>
  527. </div>
  528. <div class="navListItem" v-if="vitem.type == 13">
  529. <div
  530. class="navText"
  531. @click="checkPhoto(vitem, vindex)"
  532. :class="isClickNav == vindex ? 'isClickNav' : ''"
  533. >
  534. {{ vitem.name }}
  535. </div>
  536. <div class="downIcon" @click="downloadFile2(vitem)">
  537. <img
  538. src="../../assets/icon/newIcon/down.png"
  539. alt
  540. />
  541. </div>
  542. </div>
  543. </div>
  544. <div
  545. class="fileC_box"
  546. v-if="fileC[taskCount].length > 0"
  547. >
  548. <div class="fileC_title">以下文件不支持预览</div>
  549. <div
  550. class="vedioTimeBox"
  551. v-for="(vitem, vindex) in fileC[taskCount]"
  552. :key="vindex + '1'"
  553. >
  554. <div class="navListItem" v-if="vitem.type == 12">
  555. <div class="navText" style="color: #acb4bf">
  556. <span v-if="vitem.text">{{ vitem.text }}-</span
  557. >{{ vitem.name }}
  558. </div>
  559. <div
  560. class="downIcon"
  561. @click="downloadFile2(vitem)"
  562. >
  563. <img
  564. src="../../assets/icon/newIcon/down.png"
  565. alt
  566. />
  567. </div>
  568. </div>
  569. </div>
  570. </div>
  571. </div>
  572. </div>
  573. </div>
  574. </div>
  575. </div>
  576. <div style="width: calc(100% - 315px)">
  577. <div
  578. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  579. v-if="showType == 2 || showType == 3"
  580. >
  581. <el-button
  582. type="primary"
  583. class="newButton"
  584. @click="checkFileFull(showType, pptImgUrl1)"
  585. >全屏查看</el-button
  586. >
  587. <el-button
  588. type="primary"
  589. class="newButton"
  590. @click="downloadFile(pptImgUrl1)"
  591. v-if="showType != 2"
  592. >文件下载</el-button
  593. >
  594. <el-button
  595. v-if="
  596. showType == 2 &&
  597. pptImgUrl1.indexOf(
  598. 'https://view.officeapps.live.com/op/view.aspx?src='
  599. ) == -1
  600. "
  601. type="primary"
  602. class="newButton"
  603. @click="openLine(pptImgUrl1)"
  604. >打开链接
  605. </el-button>
  606. </div>
  607. <div
  608. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  609. v-if="showType == 1"
  610. >
  611. <el-button
  612. type="primary"
  613. class="newButton"
  614. @click="checkFileFull(showType, text)"
  615. >全屏查看</el-button
  616. >
  617. </div>
  618. </div>
  619. </div>
  620. </div>
  621. <div
  622. class="student_body"
  623. v-resize="resize"
  624. :style="{
  625. borderRadius:
  626. vChapterData[taskCount].length == 0 &&
  627. fileC[taskCount].length == 0
  628. ? '0 0 20px 20px'
  629. : '20px',
  630. }"
  631. v-if="
  632. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  633. .toolChoose[0].tool &&
  634. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  635. .toolChoose[0].tool.length > 0) ||
  636. courseDetail.userid == userid ||
  637. (courseDetail.course_teacher &&
  638. courseDetail.course_teacher.indexOf(userid) != -1)
  639. "
  640. >
  641. <div
  642. class="vedioBox"
  643. v-if="
  644. courseDetail.userid == userid ||
  645. (courseDetail.course_teacher &&
  646. courseDetail.course_teacher.indexOf(userid) != -1)
  647. "
  648. >
  649. <div
  650. class="queTop"
  651. style="
  652. padding: 15px 0 15px 37px;
  653. justify-content: space-between;
  654. "
  655. >
  656. <div class="queTopTitle">工具栏</div>
  657. <div class="queTopRight">
  658. <div
  659. class="queTopClose"
  660. v-if="isClose == 0"
  661. @click="isClose = 1"
  662. >
  663. 展开
  664. <div class="closeImg">
  665. <img src="../../assets/icon/newIcon/close.png" alt="" />
  666. </div>
  667. </div>
  668. <div
  669. class="queTopClose"
  670. v-if="isClose == 1"
  671. @click="isClose = 0"
  672. >
  673. 收缩
  674. <div class="openImg">
  675. <img src="../../assets/icon/newIcon/open.png" alt="" />
  676. </div>
  677. </div>
  678. <el-button
  679. style="margin: 0 30px 0 auto"
  680. type="primary"
  681. size="small"
  682. @click="addToolChoose"
  683. >确定</el-button
  684. >
  685. </div>
  686. </div>
  687. <div
  688. class="tool_work_box"
  689. :style="isClose == 0 ? 'display:none' : 'display:block'"
  690. >
  691. <div class="tool_box">
  692. <div class="tool_type_box">
  693. <div class="chooseWho">
  694. <div
  695. :class="toolType == 0 ? 'isChooseActive' : ''"
  696. @click="(toolType = 0), $forceUpdate()"
  697. >
  698. 互动类
  699. </div>
  700. <div
  701. :class="toolType == 1 ? 'isChooseActive' : ''"
  702. @click="(toolType = 1), $forceUpdate()"
  703. >
  704. 思维类
  705. </div>
  706. <!-- <div
  707. :class="toolType == 6 ? 'isChooseActive' : ''"
  708. @click="(toolType = 6), $forceUpdate()"
  709. >
  710. 协作类
  711. </div> -->
  712. <div
  713. :class="toolType == 2 ? 'isChooseActive' : ''"
  714. @click="(toolType = 2), $forceUpdate()"
  715. >
  716. 测评类
  717. </div>
  718. <!-- <div
  719. :class="toolType == 7 ? 'isChooseActive' : ''"
  720. @click="(toolType = 7), $forceUpdate()"
  721. >
  722. 评价类
  723. </div> -->
  724. <div
  725. :class="toolType == 3 ? 'isChooseActive' : ''"
  726. @click="(toolType = 3), $forceUpdate()"
  727. >
  728. 学科类
  729. </div>
  730. <!-- <div :class="toolType == 5 ? 'isChooseActive' : ''
  731. " @click="(toolType = 5), $forceUpdate()">
  732. 学科类
  733. </div>
  734. <div :class="toolType == 4 ? 'isChooseActive' : ''
  735. " @click="(toolType = 4), $forceUpdate()">
  736. 其他
  737. </div> -->
  738. </div>
  739. </div>
  740. <div>
  741. <div class="toolSort" v-if="toolType == 0">
  742. <div class="tool">
  743. <div class="whiteBIcon" @click="addTools2(10)">
  744. <img
  745. src="../../assets/icon/thirdToolList/time.png"
  746. alt
  747. />
  748. <div style="margin: 5px 0">倒计时</div>
  749. </div>
  750. <div class="check" @click="addTools2(10)">
  751. <img
  752. src="../../assets/icon/checkNo.png"
  753. alt
  754. v-if="checktoolArray.indexOf(10) == -1"
  755. />
  756. <div class="checkDiv" v-else>
  757. <img
  758. src="../../assets/icon/checkedIs.png"
  759. alt
  760. /><span>已选择</span>
  761. </div>
  762. </div>
  763. </div>
  764. <div class="tool">
  765. <div class="whiteBIcon" @click="addTools2(65)">
  766. <img
  767. src="../../assets/icon/firstToolList/pickPeople.png"
  768. alt
  769. />
  770. <div style="margin: 5px 0">挑人</div>
  771. </div>
  772. <div class="check" @click="addTools2(65)">
  773. <img
  774. src="../../assets/icon/checkNo.png"
  775. alt
  776. v-if="checktoolArray.indexOf(65) == -1"
  777. />
  778. <div class="checkDiv" v-else>
  779. <img
  780. src="../../assets/icon/checkedIs.png"
  781. alt
  782. /><span>已选择</span>
  783. </div>
  784. </div>
  785. </div>
  786. </div>
  787. <div class="toolSort" v-if="toolType == 1">
  788. <div class="tool">
  789. <div class="whiteBIcon" @click="addTools2(7)">
  790. <img
  791. src="../../assets/icon/secondToolList/mindNetwork.png"
  792. alt
  793. />
  794. <div style="margin: 5px 0">思维网格</div>
  795. </div>
  796. <div class="check" @click="addTools2(7)">
  797. <img
  798. src="../../assets/icon/checkNo.png"
  799. alt
  800. v-if="checktoolArray.indexOf(7) == -1"
  801. />
  802. <div class="checkDiv" v-else>
  803. <img
  804. src="../../assets/icon/checkedIs.png"
  805. alt
  806. /><span>已选择</span>
  807. </div>
  808. </div>
  809. </div>
  810. <div class="tool">
  811. <div class="whiteBIcon" @click="addTools2(1)">
  812. <img
  813. src="../../assets/icon/secondToolList/whiteBoard.png"
  814. alt
  815. />
  816. <div style="margin: 5px 0">电子白板</div>
  817. </div>
  818. <div class="check" @click="addTools2(1)">
  819. <img
  820. src="../../assets/icon/checkNo.png"
  821. alt
  822. v-if="checktoolArray.indexOf(1) == -1"
  823. />
  824. <div class="checkDiv" v-else>
  825. <img
  826. src="../../assets/icon/checkedIs.png"
  827. alt
  828. /><span>已选择</span>
  829. </div>
  830. </div>
  831. </div>
  832. <div class="tool">
  833. <div class="whiteBIcon" @click="addTools2(52)">
  834. <img
  835. src="../../assets/icon/fourthToolList/text.png"
  836. alt
  837. />
  838. <div style="margin: 5px 0">文档</div>
  839. </div>
  840. <div class="check" @click="addTools2(52)">
  841. <img
  842. src="../../assets/icon/checkNo.png"
  843. alt
  844. v-if="checktoolArray.indexOf(52) == -1"
  845. />
  846. <div class="checkDiv" v-else>
  847. <img
  848. src="../../assets/icon/checkedIs.png"
  849. alt
  850. /><span>已选择</span>
  851. </div>
  852. </div>
  853. </div>
  854. <div class="tool">
  855. <div class="whiteBIcon" @click="addTools2(3)">
  856. <img
  857. src="../../assets/icon/secondToolList/mindMapping.png"
  858. alt
  859. />
  860. <div style="margin: 5px 0">思维导图</div>
  861. </div>
  862. <div class="check" @click="addTools2(3)">
  863. <img
  864. src="../../assets/icon/checkNo.png"
  865. alt
  866. v-if="checktoolArray.indexOf(3) == -1"
  867. />
  868. <div class="checkDiv" v-else>
  869. <img
  870. src="../../assets/icon/checkedIs.png"
  871. alt
  872. /><span>已选择</span>
  873. </div>
  874. </div>
  875. </div>
  876. <div class="tool">
  877. <div class="whiteBIcon" @click="addTools2(48)">
  878. <img
  879. src="../../assets/icon/fourthToolList/table.png"
  880. alt
  881. />
  882. <div style="margin: 5px 0">表格</div>
  883. </div>
  884. <div class="check" @click="addTools2(48)">
  885. <img
  886. src="../../assets/icon/checkNo.png"
  887. alt
  888. v-if="checktoolArray.indexOf(48) == -1"
  889. />
  890. <div class="checkDiv" v-else>
  891. <img
  892. src="../../assets/icon/checkedIs.png"
  893. alt
  894. /><span>已选择</span>
  895. </div>
  896. </div>
  897. </div>
  898. </div>
  899. <div class="toolSort" v-if="toolType == 6">
  900. <div v-show="tooC == 49">
  901. <img
  902. @click="addTools(tooC, toolIndex, taskCount)"
  903. src="../../assets/icon/fourthToolList/group.png"
  904. alt
  905. />
  906. <div style="margin: 5px 0">学生分组</div>
  907. </div>
  908. </div>
  909. <div class="toolSort" v-if="toolType == 2">
  910. <div class="tool">
  911. <div class="whiteBIcon" @click="addTools2(16)">
  912. <img
  913. src="../../assets/icon/thirdToolList/work.png"
  914. alt
  915. />
  916. <div style="margin: 5px 0">作业提交</div>
  917. </div>
  918. <div class="check" @click="addTools2(16)">
  919. <img
  920. src="../../assets/icon/checkNo.png"
  921. alt
  922. v-if="checktoolArray.indexOf(16) == -1"
  923. />
  924. <div class="checkDiv" v-else>
  925. <img
  926. src="../../assets/icon/checkedIs.png"
  927. alt
  928. /><span>已选择</span>
  929. </div>
  930. </div>
  931. </div>
  932. <div class="tool">
  933. <div class="whiteBIcon" @click="addTools2(50)">
  934. <img
  935. src="../../assets/icon/thirdToolList/plwork.png"
  936. alt
  937. />
  938. <div style="margin: 5px 0">批量上传</div>
  939. </div>
  940. <div class="check" @click="addTools2(50)">
  941. <img
  942. src="../../assets/icon/checkNo.png"
  943. alt
  944. v-if="checktoolArray.indexOf(50) == -1"
  945. />
  946. <div class="checkDiv" v-else>
  947. <img
  948. src="../../assets/icon/checkedIs.png"
  949. alt
  950. /><span>已选择</span>
  951. </div>
  952. </div>
  953. </div>
  954. </div>
  955. <div class="toolSort" v-if="toolType == 3">
  956. <div class="tool">
  957. <div class="whiteBIcon" @click="addTools2(18)">
  958. <img
  959. src="../../assets/icon/thirdToolList/trainPlatform.png"
  960. alt
  961. />
  962. <div style="margin: 5px 0">训练平台</div>
  963. </div>
  964. <div class="check" @click="addTools2(18)">
  965. <img
  966. src="../../assets/icon/checkNo.png"
  967. alt
  968. v-if="checktoolArray.indexOf(18) == -1"
  969. />
  970. <div class="checkDiv" v-else>
  971. <img
  972. src="../../assets/icon/checkedIs.png"
  973. alt
  974. /><span>已选择</span>
  975. </div>
  976. </div>
  977. </div>
  978. <div class="tool">
  979. <div class="whiteBIcon" @click="addTools2(21)">
  980. <img
  981. src="../../assets/icon/fourthToolList/program.png"
  982. alt
  983. />
  984. <div style="margin: 5px 0">编程平台</div>
  985. </div>
  986. <div class="check" @click="addTools2(21)">
  987. <img
  988. src="../../assets/icon/checkNo.png"
  989. alt
  990. v-if="checktoolArray.indexOf(21) == -1"
  991. />
  992. <div class="checkDiv" v-else>
  993. <img
  994. src="../../assets/icon/checkedIs.png"
  995. alt
  996. /><span>已选择</span>
  997. </div>
  998. </div>
  999. </div>
  1000. <div class="tool">
  1001. <div class="whiteBIcon" @click="addTools2(22)">
  1002. <img
  1003. src="../../assets/icon/fourthToolList/AIprogram2.png"
  1004. alt
  1005. />
  1006. <div style="margin: 5px 0">AI体验</div>
  1007. </div>
  1008. <div class="check" @click="addTools2(22)">
  1009. <img
  1010. src="../../assets/icon/checkNo.png"
  1011. alt
  1012. v-if="checktoolArray.indexOf(22) == -1"
  1013. />
  1014. <div class="checkDiv" v-else>
  1015. <img
  1016. src="../../assets/icon/checkedIs.png"
  1017. alt
  1018. /><span>已选择</span>
  1019. </div>
  1020. </div>
  1021. </div>
  1022. <div class="tool">
  1023. <div class="whiteBIcon" @click="addTools2(23)">
  1024. <img
  1025. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1026. alt
  1027. />
  1028. <div style="margin: 5px 0">Python</div>
  1029. </div>
  1030. <div class="check" @click="addTools2(23)">
  1031. <img
  1032. src="../../assets/icon/checkNo.png"
  1033. alt
  1034. v-if="checktoolArray.indexOf(23) == -1"
  1035. />
  1036. <div class="checkDiv" v-else>
  1037. <img
  1038. src="../../assets/icon/checkedIs.png"
  1039. alt
  1040. /><span>已选择</span>
  1041. </div>
  1042. </div>
  1043. </div>
  1044. <div class="tool">
  1045. <div class="whiteBIcon" @click="addTools2(24)">
  1046. <img
  1047. src="../../assets/icon/fourthToolList/AIprogram.png"
  1048. alt
  1049. />
  1050. <div style="margin: 5px 0">AI平台</div>
  1051. </div>
  1052. <div class="check" @click="addTools2(24)">
  1053. <img
  1054. src="../../assets/icon/checkNo.png"
  1055. alt
  1056. v-if="checktoolArray.indexOf(24) == -1"
  1057. />
  1058. <div class="checkDiv" v-else>
  1059. <img
  1060. src="../../assets/icon/checkedIs.png"
  1061. alt
  1062. /><span>已选择</span>
  1063. </div>
  1064. </div>
  1065. </div>
  1066. <div class="tool">
  1067. <div class="whiteBIcon" @click="addTools2(32)">
  1068. <img
  1069. src="../../assets/icon/thirdToolList/code.png"
  1070. alt
  1071. />
  1072. <div style="margin: 5px 0">源码编辑</div>
  1073. </div>
  1074. <div class="check" @click="addTools2(32)">
  1075. <img
  1076. src="../../assets/icon/checkNo.png"
  1077. alt
  1078. v-if="checktoolArray.indexOf(32) == -1"
  1079. />
  1080. <div class="checkDiv" v-else>
  1081. <img
  1082. src="../../assets/icon/checkedIs.png"
  1083. alt
  1084. /><span>已选择</span>
  1085. </div>
  1086. </div>
  1087. </div>
  1088. <div class="tool">
  1089. <div class="whiteBIcon" @click="addTools2(57)">
  1090. <img
  1091. src="../../assets/icon/fourthToolList/cocopi.png"
  1092. alt
  1093. />
  1094. <div style="margin: 5px 0">CocoPi</div>
  1095. </div>
  1096. <div class="check" @click="addTools2(57)">
  1097. <img
  1098. src="../../assets/icon/checkNo.png"
  1099. alt
  1100. v-if="checktoolArray.indexOf(57) == -1"
  1101. />
  1102. <div class="checkDiv" v-else>
  1103. <img
  1104. src="../../assets/icon/checkedIs.png"
  1105. alt
  1106. /><span>已选择</span>
  1107. </div>
  1108. </div>
  1109. </div>
  1110. <div class="tool">
  1111. <div class="whiteBIcon" @click="addTools2(63)">
  1112. <img
  1113. src="../../assets/icon/fourthToolList/Wood.png"
  1114. alt
  1115. />
  1116. <div style="margin: 5px 0">海龟编程</div>
  1117. </div>
  1118. <div class="check" @click="addTools2(63)">
  1119. <img
  1120. src="../../assets/icon/checkNo.png"
  1121. alt
  1122. v-if="checktoolArray.indexOf(63) == -1"
  1123. />
  1124. <div class="checkDiv" v-else>
  1125. <img
  1126. src="../../assets/icon/checkedIs.png"
  1127. alt
  1128. /><span>已选择</span>
  1129. </div>
  1130. </div>
  1131. </div>
  1132. </div>
  1133. <div class="toolSort" v-if="toolType == 7">
  1134. <div class="tool">
  1135. <div class="whiteBIcon" @click="addTools2(40)">
  1136. <img
  1137. src="../../assets/icon/secondToolList/eval.png"
  1138. alt
  1139. />
  1140. <div style="margin: 5px 0">个人评价</div>
  1141. </div>
  1142. <div class="check" @click="addTools2(40)">
  1143. <img
  1144. src="../../assets/icon/checkNo.png"
  1145. alt
  1146. v-if="checktoolArray.indexOf(40) == -1"
  1147. />
  1148. <div class="checkDiv" v-else>
  1149. <img
  1150. src="../../assets/icon/checkedIs.png"
  1151. alt
  1152. /><span>已选择</span>
  1153. </div>
  1154. </div>
  1155. </div>
  1156. </div>
  1157. <div class="toolSort" v-if="toolType == 5">
  1158. <div class="tool">
  1159. <div class="whiteBIcon" @click="addTools2(28)">
  1160. <img
  1161. src="../../assets/icon/secondToolList/translation.png"
  1162. alt
  1163. />
  1164. <div style="margin: 5px 0">翻译</div>
  1165. </div>
  1166. <div class="check" @click="addTools2(28)">
  1167. <img
  1168. src="../../assets/icon/checkNo.png"
  1169. alt
  1170. v-if="checktoolArray.indexOf(28) == -1"
  1171. />
  1172. <div class="checkDiv" v-else>
  1173. <img
  1174. src="../../assets/icon/checkedIs.png"
  1175. alt
  1176. /><span>已选择</span>
  1177. </div>
  1178. </div>
  1179. </div>
  1180. <div class="tool">
  1181. <div class="whiteBIcon" @click="addTools2(37)">
  1182. <img
  1183. src="../../assets/icon/secondToolList/mohe.png"
  1184. alt
  1185. />
  1186. <div style="margin: 5px 0">魔盒识字</div>
  1187. </div>
  1188. <div class="check" @click="addTools2(37)">
  1189. <img
  1190. src="../../assets/icon/checkNo.png"
  1191. alt
  1192. v-if="checktoolArray.indexOf(37) == -1"
  1193. />
  1194. <div class="checkDiv" v-else>
  1195. <img
  1196. src="../../assets/icon/checkedIs.png"
  1197. alt
  1198. /><span>已选择</span>
  1199. </div>
  1200. </div>
  1201. </div>
  1202. <div class="tool">
  1203. <div class="whiteBIcon" @click="addTools2(38)">
  1204. <img
  1205. src="../../assets/icon/secondToolList/24game.png"
  1206. alt
  1207. />
  1208. <div style="margin: 5px 0">24点</div>
  1209. </div>
  1210. <div class="check" @click="addTools2(38)">
  1211. <img
  1212. src="../../assets/icon/checkNo.png"
  1213. alt
  1214. v-if="checktoolArray.indexOf(38) == -1"
  1215. />
  1216. <div class="checkDiv" v-else>
  1217. <img
  1218. src="../../assets/icon/checkedIs.png"
  1219. alt
  1220. /><span>已选择</span>
  1221. </div>
  1222. </div>
  1223. </div>
  1224. <div class="tool">
  1225. <div class="whiteBIcon" @click="addTools2(31)">
  1226. <img
  1227. src="../../assets/icon/secondToolList/networkPanel.png"
  1228. alt
  1229. />
  1230. <div style="margin: 5px 0">数学画板</div>
  1231. </div>
  1232. <div class="check" @click="addTools2(31)">
  1233. <img
  1234. src="../../assets/icon/checkNo.png"
  1235. alt
  1236. v-if="checktoolArray.indexOf(31) == -1"
  1237. />
  1238. <div class="checkDiv" v-else>
  1239. <img
  1240. src="../../assets/icon/checkedIs.png"
  1241. alt
  1242. /><span>已选择</span>
  1243. </div>
  1244. </div>
  1245. </div>
  1246. <div class="tool">
  1247. <div class="whiteBIcon" @click="addTools2(39)">
  1248. <img
  1249. src="../../assets/icon/secondToolList/GeoGebra.png"
  1250. alt
  1251. />
  1252. <div style="margin: 5px 0">GeoGebra</div>
  1253. </div>
  1254. <div class="check" @click="addTools2(39)">
  1255. <img
  1256. src="../../assets/icon/checkNo.png"
  1257. alt
  1258. v-if="checktoolArray.indexOf(39) == -1"
  1259. />
  1260. <div class="checkDiv" v-else>
  1261. <img
  1262. src="../../assets/icon/checkedIs.png"
  1263. alt
  1264. /><span>已选择</span>
  1265. </div>
  1266. </div>
  1267. </div>
  1268. <div class="tool">
  1269. <div class="whiteBIcon" @click="addTools2(58)">
  1270. <img
  1271. src="../../assets/icon/fourthToolList/car.png"
  1272. alt
  1273. />
  1274. <div style="margin: 5px 0">模拟驾驶</div>
  1275. </div>
  1276. <div class="check" @click="addTools2(58)">
  1277. <img
  1278. src="../../assets/icon/checkNo.png"
  1279. alt
  1280. v-if="checktoolArray.indexOf(58) == -1"
  1281. />
  1282. <div class="checkDiv" v-else>
  1283. <img
  1284. src="../../assets/icon/checkedIs.png"
  1285. alt
  1286. /><span>已选择</span>
  1287. </div>
  1288. </div>
  1289. </div>
  1290. <div class="tool">
  1291. <div class="whiteBIcon" @click="addTools2(59)">
  1292. <img
  1293. src="../../assets/icon/fourthToolList/lineSearch.png"
  1294. alt
  1295. />
  1296. <div style="margin: 5px 0">路径搜索</div>
  1297. </div>
  1298. <div class="check" @click="addTools2(59)">
  1299. <img
  1300. src="../../assets/icon/checkNo.png"
  1301. alt
  1302. v-if="checktoolArray.indexOf(59) == -1"
  1303. />
  1304. <div class="checkDiv" v-else>
  1305. <img
  1306. src="../../assets/icon/checkedIs.png"
  1307. alt
  1308. /><span>已选择</span>
  1309. </div>
  1310. </div>
  1311. </div>
  1312. <div class="tool">
  1313. <div class="whiteBIcon" @click="addTools2(60)">
  1314. <img
  1315. src="../../assets/icon/fourthToolList/deepLearning.png"
  1316. alt
  1317. />
  1318. <div style="margin: 5px 0">深度学习</div>
  1319. </div>
  1320. <div class="check" @click="addTools2(60)">
  1321. <img
  1322. src="../../assets/icon/checkNo.png"
  1323. alt
  1324. v-if="checktoolArray.indexOf(60) == -1"
  1325. />
  1326. <div class="checkDiv" v-else>
  1327. <img
  1328. src="../../assets/icon/checkedIs.png"
  1329. alt
  1330. /><span>已选择</span>
  1331. </div>
  1332. </div>
  1333. </div>
  1334. <div class="tool">
  1335. <div class="whiteBIcon" @click="addTools2(61)">
  1336. <img
  1337. src="../../assets/icon/fourthToolList/allHistory.png"
  1338. alt
  1339. />
  1340. <div style="margin: 5px 0">全历史</div>
  1341. </div>
  1342. <div class="check" @click="addTools2(61)">
  1343. <img
  1344. src="../../assets/icon/checkNo.png"
  1345. alt
  1346. v-if="checktoolArray.indexOf(61) == -1"
  1347. />
  1348. <div class="checkDiv" v-else>
  1349. <img
  1350. src="../../assets/icon/checkedIs.png"
  1351. alt
  1352. /><span>已选择</span>
  1353. </div>
  1354. </div>
  1355. </div>
  1356. </div>
  1357. <div class="toolSort" v-if="toolType == 4">
  1358. <div class="tool">
  1359. <div class="whiteBIcon" @click="addTools2(26)">
  1360. <img
  1361. src="../../assets/icon/thirdToolList/courseDesign.png"
  1362. alt
  1363. />
  1364. <div style="margin: 5px 0">课程设计</div>
  1365. </div>
  1366. <div class="check" @click="addTools2(26)">
  1367. <img
  1368. src="../../assets/icon/checkNo.png"
  1369. alt
  1370. v-if="checktoolArray.indexOf(26) == -1"
  1371. />
  1372. <div class="checkDiv" v-else>
  1373. <img
  1374. src="../../assets/icon/checkedIs.png"
  1375. alt
  1376. /><span>已选择</span>
  1377. </div>
  1378. </div>
  1379. </div>
  1380. <div class="tool">
  1381. <div class="whiteBIcon" @click="addTools2(25)">
  1382. <img
  1383. src="../../assets/icon/thirdToolList/evalua.png"
  1384. alt
  1385. />
  1386. <div style="margin: 5px 0">目标管理</div>
  1387. </div>
  1388. <div class="check" @click="addTools2(25)">
  1389. <img
  1390. src="../../assets/icon/checkNo.png"
  1391. alt
  1392. v-if="checktoolArray.indexOf(25) == -1"
  1393. />
  1394. <div class="checkDiv" v-else>
  1395. <img
  1396. src="../../assets/icon/checkedIs.png"
  1397. alt
  1398. /><span>已选择</span>
  1399. </div>
  1400. </div>
  1401. </div>
  1402. </div>
  1403. </div>
  1404. </div>
  1405. </div>
  1406. </div>
  1407. <div
  1408. class="vedioBox"
  1409. v-if="
  1410. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1411. .toolChoose[0].tool &&
  1412. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1413. .toolChoose[0].tool.length &&
  1414. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1415. .toolChoose[0].tool.length > 0
  1416. "
  1417. style="padding: 0 37px"
  1418. >
  1419. <div
  1420. class="queTop"
  1421. style="
  1422. font-size: 20px;
  1423. padding: 15px 0 15px 0;
  1424. font-weight: bold;
  1425. "
  1426. >
  1427. 发布区
  1428. </div>
  1429. <div
  1430. class="toolHeng2"
  1431. style="
  1432. position: relative;
  1433. border-bottom: 1px solid rgb(215, 219, 225);
  1434. "
  1435. >
  1436. <div
  1437. class="filebox"
  1438. style="flex-wrap: nowrap"
  1439. v-if="
  1440. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1441. .toolChoose.length
  1442. "
  1443. >
  1444. <div class="choiceBox">
  1445. <div class="bzChild" style="margin-right: 20px">
  1446. <span>步骤选择:</span>
  1447. </div>
  1448. <div class="bzTypeBox">
  1449. <div
  1450. class="bzChild"
  1451. v-for="(bz, bzIndex) in chapInfoList[courseType]
  1452. .chapterInfo[0].taskJson[taskCount].toolChoose"
  1453. :key="bzIndex"
  1454. :class="{ active: toolIndex == bzIndex }"
  1455. @click="checkBz(bzIndex)"
  1456. >
  1457. <span>步骤{{ bzIndex + 1 }}</span>
  1458. </div>
  1459. </div>
  1460. </div>
  1461. <div class="bzBox">
  1462. <!-- <div class="yCss"></div>
  1463. <div>步骤{{ toolIndex + 1 }}</div> -->
  1464. <div
  1465. style="margin: 0 72px 0 auto"
  1466. v-if="courseDetail.userid == userid || tool.tool[0] == 15"
  1467. >
  1468. <el-button
  1469. type="primary"
  1470. size="mini"
  1471. @click="openWordCloud(toolIndex)"
  1472. v-if="tool.tool[0] == 15"
  1473. >生成词云</el-button
  1474. >
  1475. <el-button
  1476. v-if="courseDetail.userid == userid"
  1477. type="primary"
  1478. size="mini"
  1479. @click="updateToolDetail"
  1480. >{{
  1481. !isUpdateToolDetail ? "编辑" : "确认修改"
  1482. }}</el-button
  1483. >
  1484. </div>
  1485. </div>
  1486. <div class="toolBox">
  1487. <div class="toolBoxSteps" @click="nextToolindex('last')">
  1488. <img src="../../assets/icon/leftIcon.png" />
  1489. </div>
  1490. <div class="toolBoxSteps" @click="nextToolindex('next')">
  1491. <img src="../../assets/icon/rightIcon.png" />
  1492. </div>
  1493. <div>
  1494. <div class="noiframeBox">
  1495. <div
  1496. class="addPoint"
  1497. v-for="(tooC, toolCIndex) in tool.tool"
  1498. :key="toolCIndex"
  1499. >
  1500. <div v-show="tooC == 1">
  1501. <img
  1502. src="../../assets/icon/secondToolList/whiteBoard.png"
  1503. alt
  1504. @click="addTools(tooC, toolIndex, taskCount)"
  1505. />
  1506. <div style="margin: 5px 0">电子白板</div>
  1507. </div>
  1508. <div v-show="tooC == 3">
  1509. <img
  1510. src="../../assets/icon/secondToolList/mindMapping.png"
  1511. alt
  1512. @click="addTools(tooC, toolIndex, taskCount)"
  1513. />
  1514. <div style="margin: 5px 0">思维导图</div>
  1515. </div>
  1516. <div v-show="tooC == 6">
  1517. <img
  1518. src="../../assets/icon/secondToolList/doc.png"
  1519. alt
  1520. @click="addTools(tooC, toolIndex, taskCount)"
  1521. />
  1522. <div style="margin: 5px 0">协同文档</div>
  1523. </div>
  1524. <div v-show="tooC == 7">
  1525. <img
  1526. src="../../assets/icon/secondToolList/mindNetwork.png"
  1527. alt
  1528. @click="addTools(tooC, toolIndex, taskCount)"
  1529. />
  1530. <div style="margin: 5px 0">思维网格</div>
  1531. </div>
  1532. <div v-show="tooC == 8">
  1533. <img
  1534. src="../../assets/icon/secondToolList/library.png"
  1535. alt
  1536. @click="addTools(tooC, toolIndex, taskCount)"
  1537. />
  1538. <div style="margin: 5px 0">素材库</div>
  1539. </div>
  1540. <div v-show="tooC == 17">
  1541. <img
  1542. src="../../assets/icon/secondToolList/library.png"
  1543. alt
  1544. @click="addTools(tooC, toolIndex, taskCount)"
  1545. />
  1546. <div style="margin: 5px 0">学习资料</div>
  1547. </div>
  1548. <div v-show="tooC == 2">
  1549. <img
  1550. @click="addTools(tooC, toolIndex, taskCount)"
  1551. src="../../assets/icon/secondToolList/note.png"
  1552. alt
  1553. />
  1554. <div style="margin: 5px 0">便签</div>
  1555. </div>
  1556. <div v-show="tooC == 4">
  1557. <img
  1558. @click="addTools(tooC, toolIndex, taskCount)"
  1559. src="../../assets/icon/thirdToolList/ask.png"
  1560. alt
  1561. />
  1562. <div style="margin: 5px 0">问卷调查</div>
  1563. </div>
  1564. <div v-show="tooC == 45">
  1565. <img
  1566. @click="addTools(tooC, toolIndex, taskCount)"
  1567. src="../../assets/icon/thirdToolList/choose.png"
  1568. alt
  1569. />
  1570. <div style="margin: 5px 0">选择题</div>
  1571. </div>
  1572. <!-- <div v-show="tooC == 5">
  1573. <img
  1574. @click="addTools(tooC, toolIndex, taskCount)"
  1575. src="../../assets/icon/thirdToolList/score.png"
  1576. alt
  1577. />
  1578. <div style="margin: 5px 0">量规评分</div>
  1579. </div> -->
  1580. <div v-show="tooC == 10">
  1581. <img
  1582. @click="addTools(tooC, toolIndex, taskCount)"
  1583. src="../../assets/icon/thirdToolList/time.png"
  1584. alt
  1585. />
  1586. <div style="margin: 5px 0">倒计时</div>
  1587. </div>
  1588. <div v-show="tooC == 15">
  1589. <img
  1590. @click="addTools(tooC, toolIndex, taskCount)"
  1591. src="../../assets/icon/thirdToolList/answer.png"
  1592. alt
  1593. />
  1594. <div style="margin: 5px 0">问答工具</div>
  1595. </div>
  1596. <div v-show="tooC == 26">
  1597. <img
  1598. @click="addTools(tooC, toolIndex, taskCount)"
  1599. src="../../assets/icon/thirdToolList/courseDesign.png"
  1600. alt
  1601. />
  1602. <div style="margin: 5px 0">课程设计</div>
  1603. </div>
  1604. <div v-show="tooC == 18">
  1605. <img
  1606. @click="addTools(tooC, toolIndex, taskCount)"
  1607. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1608. alt
  1609. />
  1610. <div style="margin: 5px 0">训练服务器</div>
  1611. </div>
  1612. <div v-show="tooC == 16">
  1613. <img
  1614. @click="addTools(tooC, toolIndex, taskCount)"
  1615. src="../../assets/icon/thirdToolList/work.png"
  1616. alt
  1617. />
  1618. <div style="margin: 5px 0">作业提交</div>
  1619. </div>
  1620. <div v-show="tooC == 50">
  1621. <img
  1622. @click="addTools(tooC, toolIndex, taskCount)"
  1623. src="../../assets/icon/thirdToolList/plwork.png"
  1624. alt
  1625. />
  1626. <div style="margin: 5px 0">批量上传</div>
  1627. </div>
  1628. <div v-show="tooC == 21">
  1629. <img
  1630. @click="addTools(tooC, toolIndex, taskCount)"
  1631. src="../../assets/icon/fourthToolList/program.png"
  1632. alt
  1633. />
  1634. <div style="margin: 5px 0">编程平台</div>
  1635. </div>
  1636. <div v-show="tooC == 22">
  1637. <img
  1638. @click="addTools(tooC, toolIndex, taskCount)"
  1639. src="../../assets/icon/fourthToolList/program.png"
  1640. alt
  1641. />
  1642. <div style="margin: 5px 0">AI体验</div>
  1643. </div>
  1644. <div v-show="tooC == 23">
  1645. <img
  1646. @click="addTools(tooC, toolIndex, taskCount)"
  1647. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1648. alt
  1649. />
  1650. <div style="margin: 5px 0">Python</div>
  1651. </div>
  1652. <div v-show="tooC == 24">
  1653. <img
  1654. @click="addTools(tooC, toolIndex, taskCount)"
  1655. src="../../assets/icon/fourthToolList/AIprogram.png"
  1656. alt
  1657. />
  1658. <div style="margin: 5px 0">AI平台</div>
  1659. </div>
  1660. <div v-show="tooC == 25">
  1661. <img
  1662. @click="addTools(tooC, toolIndex, taskCount)"
  1663. src="../../assets/icon/thirdToolList/evalua.png"
  1664. alt
  1665. />
  1666. <div style="margin: 5px 0">目标管理</div>
  1667. </div>
  1668. <div v-show="tooC == 31">
  1669. <img
  1670. @click="addTools(tooC, toolIndex, taskCount)"
  1671. src="../../assets/icon/secondToolList/networkPanel.png"
  1672. alt
  1673. />
  1674. <div style="margin: 5px 0">数学画板</div>
  1675. </div>
  1676. <div v-show="tooC == 28">
  1677. <img
  1678. @click="addTools(tooC, toolIndex, taskCount)"
  1679. src="../../assets/icon/secondToolList/translation.png"
  1680. alt
  1681. />
  1682. <div style="margin: 5px 0">翻译</div>
  1683. </div>
  1684. <div v-show="tooC == 37">
  1685. <img
  1686. @click="addTools(tooC, toolIndex, taskCount)"
  1687. src="../../assets/icon/secondToolList/mohe.png"
  1688. alt
  1689. />
  1690. <div style="margin: 5px 0">魔盒识字</div>
  1691. </div>
  1692. <div v-show="tooC == 38">
  1693. <img
  1694. @click="addTools(tooC, toolIndex, taskCount)"
  1695. src="../../assets/icon/secondToolList/24game.png"
  1696. alt
  1697. />
  1698. <div style="margin: 5px 0">24点</div>
  1699. </div>
  1700. <div v-show="tooC == 39">
  1701. <img
  1702. @click="addTools(tooC, toolIndex, taskCount)"
  1703. src="../../assets/icon/secondToolList/GeoGebra.png"
  1704. alt
  1705. />
  1706. <div style="margin: 5px 0">GeoGebra</div>
  1707. </div>
  1708. <div v-show="tooC == 32">
  1709. <img
  1710. @click="addTools(tooC, toolIndex, taskCount)"
  1711. src="../../assets/icon/thirdToolList/code.png"
  1712. alt
  1713. />
  1714. <div style="margin: 5px 0">源码编辑</div>
  1715. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1716. style="position: absolute;left: 110px;bottom: 30px;">
  1717. 上传文件
  1718. <input type="file" accept="*" style="display: none"
  1719. @change="beforeUpload1($event, 7, toolIndex)" />
  1720. </div> -->
  1721. </div>
  1722. <!-- <div v-show="tooC == 40">
  1723. <img
  1724. @click="addTools(tooC, toolIndex, taskCount)"
  1725. src="../../assets/icon/secondToolList/eval.png"
  1726. alt
  1727. />
  1728. <div style="margin: 5px 0">个人评价</div>
  1729. </div> -->
  1730. <div v-show="tooC == 41">
  1731. <img
  1732. @click="addTools(tooC, toolIndex, taskCount)"
  1733. src="../../assets/icon/thirdToolList/select.png"
  1734. alt
  1735. />
  1736. <div style="margin: 5px 0">选择填空</div>
  1737. </div>
  1738. <div v-show="tooC == 44">
  1739. <img
  1740. @click="addTools(tooC, toolIndex, taskCount)"
  1741. src="../../assets/icon/thirdToolList/hanClass.png"
  1742. alt
  1743. />
  1744. <div style="margin: 5px 0">汉字宫</div>
  1745. </div>
  1746. <div v-show="tooC == 47">
  1747. <img
  1748. @click="addTools(tooC, toolIndex, taskCount)"
  1749. src="../../assets/icon/fourthToolList/conSentences.png"
  1750. alt
  1751. />
  1752. <div style="margin: 5px 0">连词成句</div>
  1753. </div>
  1754. <div v-show="tooC == 48">
  1755. <img
  1756. @click="addTools(tooC, toolIndex, taskCount)"
  1757. src="../../assets/icon/fourthToolList/table.png"
  1758. alt
  1759. />
  1760. <div style="margin: 5px 0">表格</div>
  1761. </div>
  1762. <div v-show="tooC == 52">
  1763. <img
  1764. @click="addTools(tooC, toolIndex, taskCount)"
  1765. src="../../assets/icon/fourthToolList/text.png"
  1766. alt
  1767. />
  1768. <div style="margin: 5px 0">文档</div>
  1769. </div>
  1770. <!-- <div v-show="tooC == 49">
  1771. <img @click="addTools(tooC, toolIndex, taskCount)"
  1772. src="../../assets/icon/fourthToolList/group.png" alt />
  1773. <div style="margin: 5px 0">学生分组</div>
  1774. </div> -->
  1775. <div v-show="tooC == 57">
  1776. <img
  1777. @click="addTools(tooC, toolIndex, taskCount)"
  1778. src="../../assets/icon/fourthToolList/cocopi.png"
  1779. alt
  1780. />
  1781. <div style="margin: 5px 0">CocoPi</div>
  1782. </div>
  1783. <div v-show="tooC == 58">
  1784. <img
  1785. @click="addTools(tooC, toolIndex, taskCount)"
  1786. src="../../assets/icon/fourthToolList/car.png"
  1787. alt
  1788. />
  1789. <div style="margin: 5px 0">模拟驾驶</div>
  1790. </div>
  1791. <div v-show="tooC == 59">
  1792. <img
  1793. @click="addTools(tooC, toolIndex, taskCount)"
  1794. src="../../assets/icon/fourthToolList/lineSearch.png"
  1795. alt
  1796. />
  1797. <div style="margin: 5px 0">路径搜索</div>
  1798. </div>
  1799. <div v-show="tooC == 60">
  1800. <img
  1801. @click="addTools(tooC, toolIndex, taskCount)"
  1802. src="../../assets/icon/fourthToolList/deepLearning.png"
  1803. alt
  1804. />
  1805. <div style="margin: 5px 0">深度学习</div>
  1806. </div>
  1807. <div v-show="tooC == 61">
  1808. <img
  1809. @click="addTools(tooC, toolIndex, taskCount)"
  1810. src="../../assets/icon/fourthToolList/allHistory.png"
  1811. alt
  1812. />
  1813. <div style="margin: 5px 0">全历史</div>
  1814. </div>
  1815. <div v-show="tooC == 62">
  1816. <img
  1817. @click="addTools(tooC, toolIndex, taskCount)"
  1818. src="../../assets/icon/fourthToolList/interVideo.png"
  1819. alt
  1820. />
  1821. <div style="margin: 5px 0">交互视频</div>
  1822. </div>
  1823. <div v-show="tooC == 63">
  1824. <img
  1825. @click="addTools(tooC, toolIndex, taskCount)"
  1826. src="../../assets/icon/fourthToolList/Wood.png"
  1827. alt
  1828. />
  1829. <div style="margin: 5px 0">海龟编程</div>
  1830. </div>
  1831. <div v-if="tooC == 65">
  1832. <img
  1833. @click="addTools(tooC, toolIndex, taskCount)"
  1834. src="../../assets/icon/firstToolList/pickPeople.png"
  1835. alt
  1836. />
  1837. <div style="margin: 5px 0">挑人</div>
  1838. </div>
  1839. </div>
  1840. </div>
  1841. </div>
  1842. <div class="tooldetail">
  1843. <!-- <div class="toolTitle">工具描述</div> -->
  1844. <div
  1845. style="height: 100%"
  1846. v-html="
  1847. contentConvent(
  1848. tool.toolDetail ? tool.toolDetail : '暂无描述'
  1849. )
  1850. "
  1851. v-if="!isUpdateToolDetail"
  1852. @click="updateToolDetail"
  1853. ></div>
  1854. <div v-else>
  1855. <el-input
  1856. type="textarea"
  1857. :rows="3"
  1858. resize="none"
  1859. v-model="updateToolDetailInner"
  1860. placeholder="请输入任务描述"
  1861. ></el-input>
  1862. </div>
  1863. </div>
  1864. <el-button
  1865. type="primary"
  1866. v-if="tool.tool[0] == 32"
  1867. style="
  1868. position: absolute;
  1869. right: 30px;
  1870. transform: translateY(-130%);
  1871. "
  1872. @click="addImg($event)"
  1873. >上传作业<input
  1874. type="file"
  1875. accept="*"
  1876. style="display: none"
  1877. @change="beforeUpload1($event, 7, toolIndex)"
  1878. /></el-button>
  1879. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1880. position: absolute;
  1881. right: 30px;
  1882. transform: translateY(-130%);
  1883. " @click="addImg($event)">上传作业<input type="file" accept="*"
  1884. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1885. </div>
  1886. </div>
  1887. </div>
  1888. </div>
  1889. <div
  1890. class="vedioBox"
  1891. v-if="
  1892. arrayToArray(tool.tool, isWorkTool).length &&
  1893. worksTeacher.length &&
  1894. worksTeacher[toolIndex].length &&
  1895. false
  1896. "
  1897. >
  1898. <div
  1899. class="queTop"
  1900. style="
  1901. font-size: 20px;
  1902. padding: 15px 0 15px 30px;
  1903. font-weight: bold;
  1904. "
  1905. >
  1906. 教师工作区
  1907. </div>
  1908. <div class="tool_work_box">
  1909. <div
  1910. v-if="
  1911. tType &&
  1912. ((tType == 2 && sIsOpen == true) ||
  1913. tType == 1 ||
  1914. tType == 4) &&
  1915. tool.tool.indexOf(16) != -1
  1916. "
  1917. class="worksBox"
  1918. >
  1919. <div
  1920. class="zuoyeYulan"
  1921. v-if="
  1922. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1923. "
  1924. >
  1925. <div class="worksTop">
  1926. <div>作业预览</div>
  1927. </div>
  1928. </div>
  1929. <div
  1930. class="worksDetailBox"
  1931. v-if="
  1932. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1933. "
  1934. >
  1935. <div
  1936. class="works"
  1937. style="
  1938. width: 200px;
  1939. height: 140px;
  1940. margin: 10px 10px 10px 0;
  1941. border-radius: 15px;
  1942. box-shadow: 0 0 6px 1px #dfdada;
  1943. "
  1944. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1945. :key="wIndex"
  1946. :class="w.type == 1 ? 'isTypeOne' : ''"
  1947. >
  1948. <div class="workImg" v-if="w.type == 0">
  1949. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1950. <img :src="w.works" @click="previewImg(w.works)" alt />
  1951. <div
  1952. class="answerScore"
  1953. v-if="w.score"
  1954. @click.stop="openScore(w)"
  1955. :class="{
  1956. rightW:
  1957. w.userid == userid ||
  1958. tType == 1 ||
  1959. tType == 4 ||
  1960. w.ateacher == userid,
  1961. }"
  1962. >
  1963. {{ JSON.parse(w.score).wScore }}分
  1964. </div>
  1965. <div
  1966. class="answerScore"
  1967. @click.stop="openScore(w)"
  1968. v-else-if="courseDetail.userid == userid"
  1969. :class="{
  1970. rightW:
  1971. w.userid == userid ||
  1972. tType == 1 ||
  1973. tType == 4 ||
  1974. w.ateacher == userid,
  1975. }"
  1976. >
  1977. 评分
  1978. </div>
  1979. <img
  1980. class="deleteImg"
  1981. src="../../assets/deleteworks.png"
  1982. v-if="w.userid == userid || tType == 1 || tType == 4"
  1983. @click.stop="deleteWorks(w.wid)"
  1984. alt
  1985. />
  1986. </div>
  1987. <div class="workImg" v-if="w.type == 1">
  1988. <img :src="word" @click="openFile(w.works)" alt />
  1989. <!-- @click="openFile(w.works)" -->
  1990. <div
  1991. class="answerScore"
  1992. v-if="w.score"
  1993. @click.stop="openScore(w)"
  1994. :class="{
  1995. rightW:
  1996. w.userid == userid ||
  1997. tType == 1 ||
  1998. tType == 4 ||
  1999. w.ateacher == userid,
  2000. }"
  2001. >
  2002. {{ JSON.parse(w.score).wScore }}分
  2003. </div>
  2004. <div
  2005. class="answerScore"
  2006. @click.stop="openScore(w)"
  2007. v-else-if="courseDetail.userid == userid"
  2008. :class="{
  2009. rightW:
  2010. w.userid == userid ||
  2011. tType == 1 ||
  2012. tType == 4 ||
  2013. w.ateacher == userid,
  2014. }"
  2015. >
  2016. 评分
  2017. </div>
  2018. <img
  2019. class="deleteImg"
  2020. src="../../assets/deleteworks.png"
  2021. v-if="w.userid == userid || tType == 1 || tType == 4"
  2022. @click.stop="deleteWorks(w.wid)"
  2023. alt
  2024. />
  2025. </div>
  2026. <div class="workImg" v-if="w.type == 3">
  2027. <img
  2028. style="cursor: pointer"
  2029. :src="video"
  2030. @click="openVideo(w)"
  2031. alt
  2032. />
  2033. <!-- @click="openVideo(w.works)" -->
  2034. <div
  2035. class="answerScore"
  2036. v-if="w.score"
  2037. @click.stop="openScore(w)"
  2038. :class="{
  2039. rightW:
  2040. w.userid == userid ||
  2041. tType == 1 ||
  2042. tType == 4 ||
  2043. w.ateacher == userid,
  2044. }"
  2045. >
  2046. {{ JSON.parse(w.score).wScore }}分
  2047. </div>
  2048. <div
  2049. class="answerScore"
  2050. @click.stop="openScore(w)"
  2051. v-else-if="courseDetail.userid == userid"
  2052. :class="{
  2053. rightW:
  2054. w.userid == userid ||
  2055. tType == 1 ||
  2056. tType == 4 ||
  2057. w.ateacher == userid,
  2058. }"
  2059. >
  2060. 评分
  2061. </div>
  2062. <img
  2063. class="deleteImg"
  2064. src="../../assets/deleteworks.png"
  2065. v-if="w.userid == userid || tType == 1 || tType == 4"
  2066. @click.stop="deleteWorks(w.wid)"
  2067. alt
  2068. />
  2069. </div>
  2070. <div class="workImg" v-if="w.type == 12">
  2071. <img
  2072. style="cursor: pointer"
  2073. :src="word2"
  2074. @click="downloadFile(w.works)"
  2075. alt
  2076. />
  2077. <!-- @click="openVideo(w.works)" -->
  2078. <div
  2079. class="answerScore"
  2080. v-if="w.score"
  2081. @click.stop="openScore(w)"
  2082. :class="{
  2083. rightW:
  2084. w.userid == userid ||
  2085. tType == 1 ||
  2086. tType == 4 ||
  2087. w.ateacher == userid,
  2088. }"
  2089. >
  2090. {{ JSON.parse(w.score).wScore }}分
  2091. </div>
  2092. <div
  2093. class="answerScore"
  2094. @click.stop="openScore(w)"
  2095. v-else-if="courseDetail.userid == userid"
  2096. :class="{
  2097. rightW:
  2098. w.userid == userid ||
  2099. tType == 1 ||
  2100. tType == 4 ||
  2101. w.ateacher == userid,
  2102. }"
  2103. >
  2104. 评分
  2105. </div>
  2106. <img
  2107. class="deleteImg"
  2108. src="../../assets/deleteworks.png"
  2109. v-if="w.userid == userid || tType == 1 || tType == 4"
  2110. @click.stop="deleteWorks(w.wid)"
  2111. alt
  2112. />
  2113. </div>
  2114. <div class="comment" style="min-width: 200px">
  2115. <div class="worksName">
  2116. <div>{{ w.sName }}</div>
  2117. </div>
  2118. <div class="commentList">
  2119. <div class="commentList">
  2120. <div
  2121. class="commentImg"
  2122. @click="
  2123. isLikes(w.wid, userid, 1, null, w.isLikes)
  2124. "
  2125. >
  2126. <img
  2127. :src="w.isLikes == true ? likes : noLikes"
  2128. alt=""
  2129. />
  2130. </div>
  2131. <div>{{ w.likesCount }}</div>
  2132. </div>
  2133. <div class="commentList" style="margin-right: 15px">
  2134. <div
  2135. class="commentImg"
  2136. @click="commentOther(w, toolIndex, wIndex)"
  2137. >
  2138. <img
  2139. src="../../assets/icon/comment/comment.png"
  2140. alt=""
  2141. />
  2142. </div>
  2143. <div>{{ w.commentCount }}</div>
  2144. </div>
  2145. </div>
  2146. </div>
  2147. </div>
  2148. </div>
  2149. </div>
  2150. <div
  2151. v-if="
  2152. tType &&
  2153. ((tType == 2 && sIsOpen == true) ||
  2154. tType == 1 ||
  2155. tType == 4) &&
  2156. tool.tool.indexOf(32) != -1
  2157. "
  2158. class="worksBox"
  2159. >
  2160. <div
  2161. class="zuoyeYulan"
  2162. v-if="
  2163. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2164. "
  2165. >
  2166. <div class="worksTop">
  2167. <div>作业预览</div>
  2168. </div>
  2169. </div>
  2170. <div
  2171. class="worksDetailBox"
  2172. v-if="
  2173. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2174. "
  2175. >
  2176. <div
  2177. class="works"
  2178. style="
  2179. width: 200px;
  2180. height: 140px;
  2181. margin: 10px 10px 10px 0;
  2182. border-radius: 15px;
  2183. box-shadow: 0 0 6px 1px #dfdada;
  2184. "
  2185. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2186. :key="wIndex"
  2187. :class="w.type == 1 ? 'isTypeOne' : ''"
  2188. >
  2189. <div class="workImg">
  2190. <img :src="word2" @click="downloadFile(w.works)" alt />
  2191. <div
  2192. class="answerScore"
  2193. v-if="w.score"
  2194. @click.stop="openScore(w)"
  2195. :class="{
  2196. rightW:
  2197. w.userid == userid ||
  2198. tType == 1 ||
  2199. tType == 4 ||
  2200. w.ateacher == userid,
  2201. }"
  2202. >
  2203. {{ JSON.parse(w.score).wScore }}分
  2204. </div>
  2205. <div
  2206. class="answerScore"
  2207. @click.stop="openScore(w)"
  2208. v-else-if="courseDetail.userid == userid"
  2209. :class="{
  2210. rightW:
  2211. w.userid == userid ||
  2212. tType == 1 ||
  2213. tType == 4 ||
  2214. w.ateacher == userid,
  2215. }"
  2216. >
  2217. 评分
  2218. </div>
  2219. <img
  2220. class="deleteImg"
  2221. src="../../assets/deleteworks.png"
  2222. v-if="w.userid == userid || tType == 1 || tType == 4"
  2223. @click.stop="deleteWorks(w.wid)"
  2224. alt
  2225. />
  2226. </div>
  2227. <div class="comment" style="min-width: 200px">
  2228. <div class="worksName">
  2229. <div>{{ w.sName }}</div>
  2230. </div>
  2231. <div class="commentList">
  2232. <div class="commentList">
  2233. <div
  2234. class="commentImg"
  2235. @click="
  2236. isLikes(w.wid, userid, 1, null, w.isLikes)
  2237. "
  2238. >
  2239. <img
  2240. :src="w.isLikes == true ? likes : noLikes"
  2241. alt=""
  2242. />
  2243. </div>
  2244. <div>{{ w.likesCount }}</div>
  2245. </div>
  2246. <div class="commentList" style="margin-right: 15px">
  2247. <div
  2248. class="commentImg"
  2249. @click="commentOther(w, toolIndex, wIndex)"
  2250. >
  2251. <img
  2252. src="../../assets/icon/comment/comment.png"
  2253. alt=""
  2254. />
  2255. </div>
  2256. <div>{{ w.commentCount }}</div>
  2257. </div>
  2258. </div>
  2259. </div>
  2260. </div>
  2261. </div>
  2262. </div>
  2263. <div
  2264. v-if="
  2265. tType &&
  2266. ((tType == 2 && sIsOpen == true) ||
  2267. tType == 1 ||
  2268. tType == 4) &&
  2269. tool.tool.indexOf(57) != -1
  2270. "
  2271. class="worksBox"
  2272. >
  2273. <div
  2274. class="zuoyeYulan"
  2275. v-if="
  2276. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2277. "
  2278. >
  2279. <div class="worksTop">
  2280. <div>作业预览</div>
  2281. </div>
  2282. </div>
  2283. <div
  2284. class="worksDetailBox"
  2285. v-if="
  2286. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2287. "
  2288. >
  2289. <div
  2290. class="works"
  2291. style="
  2292. width: 200px;
  2293. height: 140px;
  2294. margin: 10px 10px 10px 0;
  2295. border-radius: 15px;
  2296. box-shadow: 0 0 6px 1px #dfdada;
  2297. "
  2298. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2299. :key="wIndex"
  2300. :class="w.type == 1 ? 'isTypeOne' : ''"
  2301. >
  2302. <div class="workImg">
  2303. <img
  2304. :src="word2"
  2305. @click="downloadFile(w.works)"
  2306. v-if="w.type == 12"
  2307. alt
  2308. />
  2309. <img
  2310. :src="word2"
  2311. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  2312. v-else-if="w.type == 15"
  2313. alt
  2314. />
  2315. <div
  2316. class="answerScore"
  2317. v-if="w.score"
  2318. @click.stop="openScore(w)"
  2319. :class="{
  2320. rightW:
  2321. w.userid == userid ||
  2322. tType == 1 ||
  2323. tType == 4 ||
  2324. w.ateacher == userid,
  2325. }"
  2326. >
  2327. {{ JSON.parse(w.score).wScore }}分
  2328. </div>
  2329. <div
  2330. class="answerScore"
  2331. @click.stop="openScore(w)"
  2332. v-else-if="courseDetail.userid == userid"
  2333. :class="{
  2334. rightW:
  2335. w.userid == userid ||
  2336. tType == 1 ||
  2337. tType == 4 ||
  2338. w.ateacher == userid,
  2339. }"
  2340. >
  2341. 评分
  2342. </div>
  2343. <img
  2344. class="deleteImg"
  2345. src="../../assets/deleteworks.png"
  2346. v-if="w.userid == userid || tType == 1 || tType == 4"
  2347. @click.stop="deleteWorks(w.wid)"
  2348. alt
  2349. />
  2350. </div>
  2351. <div class="comment" style="min-width: 200px">
  2352. <div class="worksName">
  2353. <div>{{ w.sName }}</div>
  2354. </div>
  2355. <div class="commentList">
  2356. <div class="commentList">
  2357. <div
  2358. class="commentImg"
  2359. @click="
  2360. isLikes(w.wid, userid, 1, null, w.isLikes)
  2361. "
  2362. >
  2363. <img
  2364. :src="w.isLikes == true ? likes : noLikes"
  2365. alt=""
  2366. />
  2367. </div>
  2368. <div>{{ w.likesCount }}</div>
  2369. </div>
  2370. <div class="commentList" style="margin-right: 15px">
  2371. <div
  2372. class="commentImg"
  2373. @click="commentOther(w, toolIndex, wIndex)"
  2374. >
  2375. <img
  2376. src="../../assets/icon/comment/comment.png"
  2377. alt=""
  2378. />
  2379. </div>
  2380. <div>{{ w.commentCount }}</div>
  2381. </div>
  2382. </div>
  2383. </div>
  2384. </div>
  2385. </div>
  2386. </div>
  2387. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  2388. <div
  2389. class="zuoyeYulan"
  2390. v-if="
  2391. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2392. "
  2393. >
  2394. <span>作业预览</span>
  2395. </div>
  2396. <div
  2397. class="worksDetailBox"
  2398. v-if="
  2399. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2400. "
  2401. >
  2402. <div
  2403. class="works"
  2404. style="
  2405. width: 200px;
  2406. height: 140px;
  2407. margin: 10px 10px 10px 0;
  2408. border-radius: 15px;
  2409. box-shadow: 0 0 6px 1px #dfdada;
  2410. "
  2411. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2412. :key="wIndex"
  2413. :class="w.type == 1 ? 'isTypeOne' : ''"
  2414. >
  2415. <div class="workImg" v-if="w.type == 0">
  2416. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2417. <img :src="w.works" @click="previewImg(w.works)" alt />
  2418. <div
  2419. class="answerScore"
  2420. v-if="w.score"
  2421. @click.stop="openScore(w)"
  2422. :class="{
  2423. rightW:
  2424. w.userid == userid ||
  2425. tType == 1 ||
  2426. tType == 4 ||
  2427. w.ateacher == userid,
  2428. }"
  2429. >
  2430. {{ JSON.parse(w.score).wScore }}分
  2431. </div>
  2432. <div
  2433. class="answerScore"
  2434. @click.stop="openScore(w)"
  2435. v-else-if="courseDetail.userid == userid"
  2436. :class="{
  2437. rightW:
  2438. w.userid == userid ||
  2439. tType == 1 ||
  2440. tType == 4 ||
  2441. w.ateacher == userid,
  2442. }"
  2443. >
  2444. 评分
  2445. </div>
  2446. <img
  2447. class="deleteImg"
  2448. src="../../assets/deleteworks.png"
  2449. v-if="w.userid == userid || tType == 1 || tType == 4"
  2450. @click.stop="deleteWorks(w.wid)"
  2451. alt
  2452. />
  2453. </div>
  2454. <div
  2455. class="workImg"
  2456. style="cursor: pointer"
  2457. v-if="w.type == 1"
  2458. >
  2459. <img :src="word" @click="openFile(w.works)" alt />
  2460. <!-- @click="openFile(w.works)" -->
  2461. <div
  2462. class="answerScore"
  2463. v-if="w.score"
  2464. @click.stop="openScore(w)"
  2465. :class="{
  2466. rightW:
  2467. w.userid == userid ||
  2468. tType == 1 ||
  2469. tType == 4 ||
  2470. w.ateacher == userid,
  2471. }"
  2472. >
  2473. {{ JSON.parse(w.score).wScore }}分
  2474. </div>
  2475. <div
  2476. class="answerScore"
  2477. @click.stop="openScore(w)"
  2478. v-else-if="courseDetail.userid == userid"
  2479. :class="{
  2480. rightW:
  2481. w.userid == userid ||
  2482. tType == 1 ||
  2483. tType == 4 ||
  2484. w.ateacher == userid,
  2485. }"
  2486. >
  2487. 评分
  2488. </div>
  2489. <img
  2490. class="deleteImg"
  2491. src="../../assets/deleteworks.png"
  2492. v-if="w.userid == userid || tType == 1 || tType == 4"
  2493. @click.stop="deleteWorks(w.wid)"
  2494. alt
  2495. />
  2496. </div>
  2497. <div class="workImg" v-if="w.type == 3">
  2498. <img
  2499. style="cursor: pointer"
  2500. :src="video"
  2501. @click="openVideo(w)"
  2502. alt
  2503. />
  2504. <!-- @click="openVideo(w.works)" -->
  2505. <div
  2506. class="answerScore"
  2507. v-if="w.score"
  2508. @click.stop="openScore(w)"
  2509. :class="{
  2510. rightW:
  2511. w.userid == userid ||
  2512. tType == 1 ||
  2513. tType == 4 ||
  2514. w.ateacher == userid,
  2515. }"
  2516. >
  2517. {{ JSON.parse(w.score).wScore }}分
  2518. </div>
  2519. <div
  2520. class="answerScore"
  2521. @click.stop="openScore(w)"
  2522. v-else-if="courseDetail.userid == userid"
  2523. :class="{
  2524. rightW:
  2525. w.userid == userid ||
  2526. tType == 1 ||
  2527. tType == 4 ||
  2528. w.ateacher == userid,
  2529. }"
  2530. >
  2531. 评分
  2532. </div>
  2533. <img
  2534. class="deleteImg"
  2535. src="../../assets/deleteworks.png"
  2536. v-if="w.userid == userid || tType == 1 || tType == 4"
  2537. @click.stop="deleteWorks(w.wid)"
  2538. alt
  2539. />
  2540. </div>
  2541. <div class="comment" style="min-width: 200px">
  2542. <div class="worksName">
  2543. <div
  2544. style="cursor: pointer"
  2545. @click="
  2546. openSname(w.sName, w.wid, toolIndex, w.userid)
  2547. "
  2548. >
  2549. {{ w.sName }}
  2550. </div>
  2551. </div>
  2552. <div class="commentList">
  2553. <div class="commentList">
  2554. <div
  2555. class="commentImg"
  2556. @click="
  2557. isLikes(w.wid, userid, 1, null, w.isLikes)
  2558. "
  2559. >
  2560. <img
  2561. :src="w.isLikes == true ? likes : noLikes"
  2562. alt=""
  2563. />
  2564. </div>
  2565. <div>{{ w.likesCount }}</div>
  2566. </div>
  2567. <div class="commentList" style="margin-right: 15px">
  2568. <div
  2569. class="commentImg"
  2570. @click="commentOther(w, toolIndex, wIndex)"
  2571. >
  2572. <img
  2573. src="../../assets/icon/comment/comment.png"
  2574. alt=""
  2575. />
  2576. </div>
  2577. <div>{{ w.commentCount }}</div>
  2578. </div>
  2579. </div>
  2580. </div>
  2581. </div>
  2582. </div>
  2583. </div>
  2584. <div
  2585. v-if="
  2586. tType &&
  2587. ((tType == 2 && sIsOpen == true) ||
  2588. tType == 1 ||
  2589. tType == 4) &&
  2590. tool.tool.indexOf(4) != -1
  2591. "
  2592. class="worksBox"
  2593. >
  2594. <div
  2595. class="zuoyeYulan"
  2596. v-if="
  2597. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2598. "
  2599. >
  2600. <div class="worksTop">
  2601. <div>作业预览</div>
  2602. </div>
  2603. </div>
  2604. <div>
  2605. <div
  2606. class="worksDetailBox"
  2607. v-if="
  2608. worksTeacher.length &&
  2609. worksTeacher[toolIndex].length > 0
  2610. "
  2611. >
  2612. <div
  2613. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2614. :key="wIndex"
  2615. class="isWorksName"
  2616. @click="
  2617. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2618. "
  2619. >
  2620. {{ w.sName }}
  2621. <img
  2622. class="deleteImg deleteImg2"
  2623. src="../../assets/deleteworks.png"
  2624. v-if="w.userid == userid || tType == 1 || tType == 4"
  2625. @click.stop="deleteWorks(w.wid)"
  2626. alt
  2627. />
  2628. </div>
  2629. </div>
  2630. </div>
  2631. </div>
  2632. <div
  2633. v-if="
  2634. tType &&
  2635. ((tType == 2 && sIsOpen == true) ||
  2636. tType == 1 ||
  2637. tType == 4) &&
  2638. tool.tool.indexOf(45) != -1
  2639. "
  2640. class="worksBox"
  2641. >
  2642. <div
  2643. class="zuoyeYulan"
  2644. v-if="
  2645. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2646. "
  2647. >
  2648. <div class="worksTop">
  2649. <div>作业预览</div>
  2650. </div>
  2651. </div>
  2652. <div>
  2653. <div
  2654. class="worksDetailBox"
  2655. v-if="
  2656. worksTeacher.length &&
  2657. worksTeacher[toolIndex].length > 0
  2658. "
  2659. >
  2660. <div
  2661. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2662. :key="wIndex"
  2663. class="isWorksName"
  2664. @click="
  2665. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2666. "
  2667. >
  2668. {{ w.sName }}
  2669. <img
  2670. class="deleteImg deleteImg2"
  2671. src="../../assets/deleteworks.png"
  2672. v-if="w.userid == userid || tType == 1 || tType == 4"
  2673. @click.stop="deleteWorks(w.wid)"
  2674. alt
  2675. />
  2676. </div>
  2677. </div>
  2678. </div>
  2679. </div>
  2680. <div
  2681. v-if="
  2682. tType &&
  2683. ((tType == 2 && sIsOpen == true) ||
  2684. tType == 1 ||
  2685. tType == 4) &&
  2686. tool.tool.indexOf(15) != -1
  2687. "
  2688. class="worksBox"
  2689. >
  2690. <div
  2691. class="zuoyeYulan"
  2692. v-if="
  2693. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2694. "
  2695. >
  2696. <div class="worksTop">
  2697. <div>作业预览</div>
  2698. </div>
  2699. </div>
  2700. <div
  2701. class="worksDetailBox"
  2702. v-if="
  2703. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2704. "
  2705. >
  2706. <div
  2707. class="works"
  2708. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2709. :key="wIndex"
  2710. >
  2711. <div
  2712. class="workImg"
  2713. style="
  2714. border-radius: 15px;
  2715. box-shadow: #eee 0px 0px 5px 5px;
  2716. "
  2717. >
  2718. <!-- <img
  2719. src="../../assets/icon/works/noImg.png"
  2720. @click="openTools(15, toolIndex, taskCount, w.works)"
  2721. alt=""
  2722. />-->
  2723. <div
  2724. class="answerBg"
  2725. style="border-radius: 15px 15px 0 0"
  2726. @click="commentOther(w, toolIndex, wIndex)"
  2727. >
  2728. <!-- <div>{{ w.sName }}</div> -->
  2729. <div class="answerContent">
  2730. {{ JSON.parse(w.works)[0].answer }}
  2731. </div>
  2732. <div
  2733. class="answerScore"
  2734. v-if="w.score"
  2735. @click.stop="openScore(w)"
  2736. :class="{
  2737. rightW:
  2738. w.userid == userid || tType == 1 || tType == 4,
  2739. }"
  2740. >
  2741. {{ JSON.parse(w.score).wScore }}分
  2742. </div>
  2743. <div
  2744. class="answerScore"
  2745. @click.stop="openScore(w)"
  2746. v-else-if="courseDetail.userid == userid"
  2747. :class="{
  2748. rightW:
  2749. w.userid == userid || tType == 1 || tType == 4,
  2750. }"
  2751. >
  2752. 评分
  2753. </div>
  2754. <img
  2755. class="deleteImg"
  2756. src="../../assets/deleteworks.png"
  2757. v-if="
  2758. w.userid == userid || tType == 1 || tType == 4
  2759. "
  2760. @click.stop="deleteWorks(w.wid)"
  2761. alt
  2762. />
  2763. </div>
  2764. <div class="comment">
  2765. <div class="worksName">
  2766. <div>{{ w.sName }}</div>
  2767. </div>
  2768. <div class="commentList">
  2769. <div
  2770. class="commentImg"
  2771. @click="
  2772. isLikes(w.wid, userid, 1, null, w.isLikes)
  2773. "
  2774. >
  2775. <img
  2776. :src="w.isLikes == true ? likes : noLikes"
  2777. alt=""
  2778. />
  2779. </div>
  2780. <div>{{ w.likesCount }}</div>
  2781. </div>
  2782. <div class="commentList" style="margin-right: 15px">
  2783. <div
  2784. class="commentImg"
  2785. @click="commentOther(w, toolIndex, wIndex)"
  2786. >
  2787. <img
  2788. src="../../assets/icon/comment/comment.png"
  2789. alt=""
  2790. />
  2791. </div>
  2792. <div>{{ w.commentCount }}</div>
  2793. </div>
  2794. </div>
  2795. </div>
  2796. </div>
  2797. </div>
  2798. </div>
  2799. <div
  2800. v-if="
  2801. tType &&
  2802. ((tType == 2 && sIsOpen == true) ||
  2803. tType == 1 ||
  2804. tType == 4) &&
  2805. tool.tool.indexOf(1) != -1
  2806. "
  2807. class="worksBox"
  2808. >
  2809. <div
  2810. class="zuoyeYulan"
  2811. v-if="
  2812. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2813. "
  2814. >
  2815. <div class="worksTop">
  2816. <div>作业预览</div>
  2817. </div>
  2818. </div>
  2819. <div
  2820. class="worksDetailBox"
  2821. v-if="
  2822. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2823. "
  2824. >
  2825. <div
  2826. class="works"
  2827. style="
  2828. width: 200px;
  2829. height: 140px;
  2830. margin: 10px 10px 10px 0;
  2831. border-radius: 15px;
  2832. box-shadow: 0 0 6px 1px #dfdada;
  2833. "
  2834. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2835. :key="wIndex"
  2836. >
  2837. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2838. <div class="workImg">
  2839. <img :src="w.works" @click="previewImg(w.works)" alt />
  2840. <div
  2841. class="answerScore"
  2842. v-if="w.score"
  2843. @click.stop="openScore(w)"
  2844. :class="{
  2845. rightW:
  2846. w.userid == userid || tType == 1 || tType == 4,
  2847. }"
  2848. >
  2849. {{ JSON.parse(w.score).wScore }}分
  2850. </div>
  2851. <div
  2852. class="answerScore"
  2853. @click.stop="openScore(w)"
  2854. v-else-if="courseDetail.userid == userid"
  2855. :class="{
  2856. rightW:
  2857. w.userid == userid || tType == 1 || tType == 4,
  2858. }"
  2859. >
  2860. 评分
  2861. </div>
  2862. <img
  2863. class="deleteImg"
  2864. src="../../assets/deleteworks.png"
  2865. v-if="w.userid == userid || tType == 1 || tType == 4"
  2866. @click.stop="deleteWorks(w.wid)"
  2867. alt
  2868. />
  2869. </div>
  2870. <div class="comment" style="min-width: 200px">
  2871. <div class="worksName">
  2872. <div>{{ w.sName }}</div>
  2873. </div>
  2874. <div class="commentList">
  2875. <div class="commentList">
  2876. <div
  2877. class="commentImg"
  2878. @click="
  2879. isLikes(w.wid, userid, 1, null, w.isLikes)
  2880. "
  2881. >
  2882. <img
  2883. :src="w.isLikes == true ? likes : noLikes"
  2884. alt=""
  2885. />
  2886. </div>
  2887. <div>{{ w.likesCount }}</div>
  2888. </div>
  2889. <div class="commentList" style="margin-right: 15px">
  2890. <div
  2891. class="commentImg"
  2892. @click="commentOther(w, toolIndex, wIndex)"
  2893. >
  2894. <img
  2895. src="../../assets/icon/comment/comment.png"
  2896. alt=""
  2897. />
  2898. </div>
  2899. <div>{{ w.commentCount }}</div>
  2900. </div>
  2901. </div>
  2902. </div>
  2903. </div>
  2904. </div>
  2905. </div>
  2906. <div
  2907. v-if="
  2908. tType &&
  2909. ((tType == 2 && sIsOpen == true) ||
  2910. tType == 1 ||
  2911. tType == 4) &&
  2912. tool.tool.indexOf(3) != -1
  2913. "
  2914. class="worksBox"
  2915. >
  2916. <div
  2917. class="zuoyeYulan"
  2918. v-if="
  2919. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2920. "
  2921. >
  2922. <div class="worksTop">
  2923. <div>作业预览</div>
  2924. </div>
  2925. </div>
  2926. <div
  2927. class="worksDetailBox"
  2928. v-if="
  2929. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2930. "
  2931. >
  2932. <div
  2933. class="works"
  2934. style="
  2935. width: 200px;
  2936. height: 140px;
  2937. margin: 10px 10px 10px 0;
  2938. border-radius: 15px;
  2939. box-shadow: 0 0 6px 1px #dfdada;
  2940. "
  2941. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2942. :key="wIndex"
  2943. >
  2944. <!-- @click="previewImg(w.works)" -->
  2945. <div class="workImg">
  2946. <img :src="w.works" @click="previewImg(w.works)" alt />
  2947. <div
  2948. class="answerScore"
  2949. v-if="w.score"
  2950. @click.stop="openScore(w)"
  2951. :class="{
  2952. rightW:
  2953. w.userid == userid || tType == 1 || tType == 4,
  2954. }"
  2955. >
  2956. {{ JSON.parse(w.score).wScore }}分
  2957. </div>
  2958. <div
  2959. class="answerScore"
  2960. @click.stop="openScore(w)"
  2961. v-else-if="courseDetail.userid == userid"
  2962. :class="{
  2963. rightW:
  2964. w.userid == userid || tType == 1 || tType == 4,
  2965. }"
  2966. >
  2967. 评分
  2968. </div>
  2969. <img
  2970. class="deleteImg"
  2971. src="../../assets/deleteworks.png"
  2972. v-if="w.userid == userid || tType == 1 || tType == 4"
  2973. @click.stop="deleteWorks(w.wid)"
  2974. alt
  2975. />
  2976. </div>
  2977. <div class="comment" style="min-width: 200px">
  2978. <div class="worksName">
  2979. <div>{{ w.sName }}</div>
  2980. </div>
  2981. <div class="commentList">
  2982. <div class="commentList">
  2983. <div
  2984. class="commentImg"
  2985. @click="
  2986. isLikes(w.wid, userid, 1, null, w.isLikes)
  2987. "
  2988. >
  2989. <img
  2990. :src="w.isLikes == true ? likes : noLikes"
  2991. alt=""
  2992. />
  2993. </div>
  2994. <div>{{ w.likesCount }}</div>
  2995. </div>
  2996. <div class="commentList" style="margin-right: 15px">
  2997. <div
  2998. class="commentImg"
  2999. @click="commentOther(w, toolIndex, wIndex)"
  3000. >
  3001. <img
  3002. src="../../assets/icon/comment/comment.png"
  3003. alt=""
  3004. />
  3005. </div>
  3006. <div>{{ w.commentCount }}</div>
  3007. </div>
  3008. </div>
  3009. </div>
  3010. </div>
  3011. </div>
  3012. </div>
  3013. <div
  3014. v-if="
  3015. tType &&
  3016. ((tType == 2 && sIsOpen == true) ||
  3017. tType == 1 ||
  3018. tType == 4) &&
  3019. tool.tool.indexOf(6) != -1
  3020. "
  3021. class="worksBox"
  3022. >
  3023. <div
  3024. class="zuoyeYulan"
  3025. v-if="
  3026. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3027. "
  3028. >
  3029. <div class="worksTop">
  3030. <div>作业预览</div>
  3031. </div>
  3032. </div>
  3033. <div
  3034. class="worksDetailBox"
  3035. v-if="
  3036. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3037. "
  3038. >
  3039. <div
  3040. class="works"
  3041. style="
  3042. width: 200px;
  3043. height: 140px;
  3044. margin: 10px 10px 10px 0;
  3045. border-radius: 15px;
  3046. box-shadow: 0 0 6px 1px #dfdada;
  3047. "
  3048. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3049. :key="wIndex"
  3050. >
  3051. <!-- @click="previewImg(w.works)" -->
  3052. <div class="workImg">
  3053. <img :src="w.works" @click="previewImg(w.works)" alt />
  3054. <div
  3055. class="answerScore"
  3056. v-if="w.score"
  3057. @click.stop="openScore(w)"
  3058. :class="{
  3059. rightW:
  3060. w.userid == userid || tType == 1 || tType == 4,
  3061. }"
  3062. >
  3063. {{ JSON.parse(w.score).wScore }}分
  3064. </div>
  3065. <div
  3066. class="answerScore"
  3067. @click.stop="openScore(w)"
  3068. v-else-if="courseDetail.userid == userid"
  3069. :class="{
  3070. rightW:
  3071. w.userid == userid || tType == 1 || tType == 4,
  3072. }"
  3073. >
  3074. 评分
  3075. </div>
  3076. <img
  3077. class="deleteImg"
  3078. src="../../assets/deleteworks.png"
  3079. v-if="w.userid == userid || tType == 1 || tType == 4"
  3080. @click.stop="deleteWorks(w.wid)"
  3081. alt
  3082. />
  3083. </div>
  3084. <div class="comment" style="min-width: 200px">
  3085. <div class="worksName">
  3086. <div>{{ w.sName }}</div>
  3087. </div>
  3088. <div class="commentList">
  3089. <div class="commentList">
  3090. <div
  3091. class="commentImg"
  3092. @click="
  3093. isLikes(w.wid, userid, 1, null, w.isLikes)
  3094. "
  3095. >
  3096. <img
  3097. :src="w.isLikes == true ? likes : noLikes"
  3098. alt=""
  3099. />
  3100. </div>
  3101. <div>{{ w.likesCount }}</div>
  3102. </div>
  3103. <div class="commentList" style="margin-right: 15px">
  3104. <div
  3105. class="commentImg"
  3106. @click="commentOther(w, toolIndex, wIndex)"
  3107. >
  3108. <img
  3109. src="../../assets/icon/comment/comment.png"
  3110. alt=""
  3111. />
  3112. </div>
  3113. <div>{{ w.commentCount }}</div>
  3114. </div>
  3115. </div>
  3116. </div>
  3117. </div>
  3118. </div>
  3119. </div>
  3120. <div
  3121. v-if="
  3122. tType &&
  3123. ((tType == 2 && sIsOpen == true) ||
  3124. tType == 1 ||
  3125. tType == 4) &&
  3126. tool.tool.indexOf(7) != -1
  3127. "
  3128. class="worksBox"
  3129. >
  3130. <div
  3131. class="zuoyeYulan"
  3132. v-if="
  3133. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3134. "
  3135. >
  3136. <div class="worksTop">
  3137. <div>作业预览</div>
  3138. </div>
  3139. </div>
  3140. <div
  3141. class="worksDetailBox"
  3142. v-if="
  3143. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3144. "
  3145. >
  3146. <div
  3147. class="works"
  3148. style="
  3149. width: 200px;
  3150. height: 140px;
  3151. margin: 10px 10px 10px 0;
  3152. border-radius: 15px;
  3153. box-shadow: 0 0 6px 1px #dfdada;
  3154. "
  3155. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3156. :key="wIndex"
  3157. >
  3158. <!-- @click="previewImg(w.works)" -->
  3159. <div class="workImg">
  3160. <img :src="w.works" @click="previewImg(w.works)" alt />
  3161. <div
  3162. class="answerScore"
  3163. v-if="w.score"
  3164. @click.stop="openScore(w)"
  3165. :class="{
  3166. rightW:
  3167. w.userid == userid || tType == 1 || tType == 4,
  3168. }"
  3169. >
  3170. {{ JSON.parse(w.score).wScore }}分
  3171. </div>
  3172. <div
  3173. class="answerScore"
  3174. @click.stop="openScore(w)"
  3175. v-else-if="courseDetail.userid == userid"
  3176. :class="{
  3177. rightW:
  3178. w.userid == userid || tType == 1 || tType == 4,
  3179. }"
  3180. >
  3181. 评分
  3182. </div>
  3183. <img
  3184. class="deleteImg"
  3185. src="../../assets/deleteworks.png"
  3186. v-if="w.userid == userid || tType == 1 || tType == 4"
  3187. @click.stop="deleteWorks(w.wid)"
  3188. alt
  3189. />
  3190. </div>
  3191. <div class="comment" style="min-width: 200px">
  3192. <div class="worksName">
  3193. <div>{{ w.sName }}</div>
  3194. </div>
  3195. <div class="commentList">
  3196. <div class="commentList">
  3197. <div
  3198. class="commentImg"
  3199. @click="
  3200. isLikes(w.wid, userid, 1, null, w.isLikes)
  3201. "
  3202. >
  3203. <img
  3204. :src="w.isLikes == true ? likes : noLikes"
  3205. alt=""
  3206. />
  3207. </div>
  3208. <div>{{ w.likesCount }}</div>
  3209. </div>
  3210. <div class="commentList" style="margin-right: 15px">
  3211. <div
  3212. class="commentImg"
  3213. @click="commentOther(w, toolIndex, wIndex)"
  3214. >
  3215. <img
  3216. src="../../assets/icon/comment/comment.png"
  3217. alt=""
  3218. />
  3219. </div>
  3220. <div>{{ w.commentCount }}</div>
  3221. </div>
  3222. </div>
  3223. </div>
  3224. </div>
  3225. </div>
  3226. </div>
  3227. <div
  3228. v-if="
  3229. tType &&
  3230. ((tType == 2 && sIsOpen == true) ||
  3231. tType == 1 ||
  3232. tType == 4) &&
  3233. tool.tool.indexOf(26) != -1
  3234. "
  3235. class="worksBox"
  3236. >
  3237. <div
  3238. class="zuoyeYulan"
  3239. v-if="
  3240. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3241. "
  3242. >
  3243. <div class="worksTop">
  3244. <div>作业预览</div>
  3245. </div>
  3246. </div>
  3247. <div
  3248. class="worksDetailBox"
  3249. v-if="
  3250. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3251. "
  3252. >
  3253. <div
  3254. class="works"
  3255. style="width: 240px; height: 140px; overflow: hidden"
  3256. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3257. :key="wIndex"
  3258. :class="w.type == 1 ? 'isTypeOne' : ''"
  3259. >
  3260. <div class="workImg" v-if="w.type == 0">
  3261. <img :src="w.works" @click="previewImg(w.works)" alt />
  3262. <img
  3263. class="deleteImg"
  3264. src="../../assets/deleteworks.png"
  3265. v-if="w.userid == userid || tType == 1 || tType == 4"
  3266. @click.stop="deleteWorks(w.wid)"
  3267. alt
  3268. />
  3269. </div>
  3270. <div class="workImg" v-if="w.type == 1">
  3271. <img :src="word" @click="openFile(w.works)" alt />
  3272. <img
  3273. class="deleteImg"
  3274. src="../../assets/deleteworks.png"
  3275. v-if="w.userid == userid || tType == 1 || tType == 4"
  3276. @click.stop="deleteWorks(w.wid)"
  3277. alt
  3278. />
  3279. </div>
  3280. <div class="worksName">
  3281. <div>{{ w.sName }}</div>
  3282. </div>
  3283. </div>
  3284. </div>
  3285. </div>
  3286. <div
  3287. v-if="
  3288. tType &&
  3289. ((tType == 2 && sIsOpen == true) ||
  3290. tType == 1 ||
  3291. tType == 4) &&
  3292. tool.tool.indexOf(40) != -1
  3293. "
  3294. class="worksBox"
  3295. >
  3296. <div
  3297. class="zuoyeYulan"
  3298. v-if="
  3299. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3300. "
  3301. >
  3302. <div class="worksTop">
  3303. <div>作业预览</div>
  3304. </div>
  3305. </div>
  3306. <div
  3307. class="worksDetailBox"
  3308. v-if="
  3309. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3310. "
  3311. >
  3312. <div
  3313. class="works"
  3314. style="
  3315. width: 200px;
  3316. height: 140px;
  3317. margin: 10px 10px 10px 0;
  3318. border-radius: 15px;
  3319. box-shadow: 0 0 6px 1px #dfdada;
  3320. "
  3321. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3322. :key="wIndex"
  3323. :class="w.type == 1 ? 'isTypeOne' : ''"
  3324. >
  3325. <div class="workImg">
  3326. <img
  3327. src="../../assets/icon/works/noImg.png"
  3328. @click="openPj(w.works, toolIndex)"
  3329. alt
  3330. />
  3331. <img
  3332. class="deleteImg"
  3333. src="../../assets/deleteworks.png"
  3334. v-if="w.userid == userid || tType == 1 || tType == 4"
  3335. @click.stop="deleteWorks(w.wid)"
  3336. alt
  3337. />
  3338. </div>
  3339. <div class="comment" style="min-width: 200px">
  3340. <div class="worksName">
  3341. <div>{{ w.sName }}</div>
  3342. </div>
  3343. <div class="commentList">
  3344. <div class="commentList">
  3345. <div
  3346. class="commentImg"
  3347. @click="
  3348. isLikes(w.wid, userid, 1, null, w.isLikes)
  3349. "
  3350. >
  3351. <img
  3352. :src="w.isLikes == true ? likes : noLikes"
  3353. alt=""
  3354. />
  3355. </div>
  3356. <div>{{ w.likesCount }}</div>
  3357. </div>
  3358. <div class="commentList" style="margin-right: 15px">
  3359. <div
  3360. class="commentImg"
  3361. @click="commentOther(w, toolIndex, wIndex)"
  3362. >
  3363. <img
  3364. src="../../assets/icon/comment/comment.png"
  3365. alt=""
  3366. />
  3367. </div>
  3368. <div>{{ w.commentCount }}</div>
  3369. </div>
  3370. </div>
  3371. </div>
  3372. </div>
  3373. </div>
  3374. </div>
  3375. <div
  3376. v-if="
  3377. tType &&
  3378. ((tType == 2 && sIsOpen == true) ||
  3379. tType == 1 ||
  3380. tType == 4) &&
  3381. tool.tool.indexOf(41) != -1
  3382. "
  3383. class="worksBox"
  3384. >
  3385. <div
  3386. class="zuoyeYulan"
  3387. v-if="
  3388. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3389. "
  3390. >
  3391. <div class="worksTop">
  3392. <div>作业预览</div>
  3393. </div>
  3394. </div>
  3395. <div
  3396. class="worksDetailBox"
  3397. v-if="
  3398. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3399. "
  3400. >
  3401. <div
  3402. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3403. :key="wIndex"
  3404. class="isWorksName"
  3405. @click="openXz(w, toolIndex)"
  3406. >
  3407. {{ w.sName }}
  3408. <img
  3409. class="deleteImg deleteImg2"
  3410. src="../../assets/deleteworks.png"
  3411. v-if="w.userid == userid || tType == 1 || tType == 4"
  3412. @click.stop="deleteWorks(w.wid)"
  3413. alt
  3414. />
  3415. </div>
  3416. </div>
  3417. </div>
  3418. <div
  3419. v-if="
  3420. tType &&
  3421. ((tType == 2 && sIsOpen == true) ||
  3422. tType == 1 ||
  3423. tType == 4) &&
  3424. tool.tool.indexOf(47) != -1
  3425. "
  3426. class="worksBox"
  3427. >
  3428. <div
  3429. class="zuoyeYulan"
  3430. v-if="
  3431. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3432. "
  3433. >
  3434. <div class="worksTop">
  3435. <div>作业预览</div>
  3436. </div>
  3437. </div>
  3438. <div
  3439. class="worksDetailBox"
  3440. v-if="
  3441. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3442. "
  3443. >
  3444. <!-- @click="openXz(w, toolIndex)" -->
  3445. <div
  3446. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3447. :key="wIndex"
  3448. class="isWorksName"
  3449. @click="openSen(w, toolIndex)"
  3450. >
  3451. {{ w.sName }}
  3452. <img
  3453. class="deleteImg deleteImg2"
  3454. src="../../assets/deleteworks.png"
  3455. v-if="w.userid == userid || tType == 1 || tType == 4"
  3456. @click.stop="deleteWorks(w.wid)"
  3457. alt
  3458. />
  3459. </div>
  3460. </div>
  3461. </div>
  3462. <div
  3463. v-if="
  3464. tType &&
  3465. ((tType == 2 && sIsOpen == true) ||
  3466. tType == 1 ||
  3467. tType == 4) &&
  3468. tool.tool.indexOf(48) != -1
  3469. "
  3470. class="worksBox"
  3471. >
  3472. <div
  3473. class="zuoyeYulan"
  3474. v-if="
  3475. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3476. "
  3477. >
  3478. <div class="worksTop">
  3479. <div>作业预览</div>
  3480. </div>
  3481. </div>
  3482. <div
  3483. class="worksDetailBox"
  3484. v-if="
  3485. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3486. "
  3487. >
  3488. <div
  3489. class="works"
  3490. style="
  3491. width: 200px;
  3492. height: 140px;
  3493. margin: 10px 10px 10px 0;
  3494. border-radius: 15px;
  3495. box-shadow: 0 0 6px 1px #dfdada;
  3496. "
  3497. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3498. :key="wIndex"
  3499. :class="w.type == 1 ? 'isTypeOne' : ''"
  3500. >
  3501. <div class="workImg">
  3502. <img :src="word" @click="openTable(w)" alt />
  3503. <!-- @click="openFile(w.works)" -->
  3504. <div
  3505. class="answerScore"
  3506. v-if="w.score"
  3507. @click.stop="openScore(w)"
  3508. :class="{
  3509. rightW:
  3510. w.userid == userid ||
  3511. tType == 1 ||
  3512. tType == 4 ||
  3513. w.ateacher == userid,
  3514. }"
  3515. >
  3516. {{ JSON.parse(w.score).wScore }}分
  3517. </div>
  3518. <div
  3519. class="answerScore"
  3520. @click.stop="openScore(w)"
  3521. v-else-if="courseDetail.userid == userid"
  3522. :class="{
  3523. rightW:
  3524. w.userid == userid ||
  3525. tType == 1 ||
  3526. tType == 4 ||
  3527. w.ateacher == userid,
  3528. }"
  3529. >
  3530. 评分
  3531. </div>
  3532. <img
  3533. class="deleteImg"
  3534. src="../../assets/deleteworks.png"
  3535. v-if="w.userid == userid || tType == 1 || tType == 4"
  3536. @click.stop="deleteWorks(w.wid)"
  3537. alt
  3538. />
  3539. </div>
  3540. <div class="comment" style="min-width: 200px">
  3541. <div class="worksName">
  3542. <div>{{ w.sName }}</div>
  3543. </div>
  3544. <div class="commentList">
  3545. <div class="commentList">
  3546. <div
  3547. class="commentImg"
  3548. @click="
  3549. isLikes(w.wid, userid, 1, null, w.isLikes)
  3550. "
  3551. >
  3552. <img
  3553. :src="w.isLikes == true ? likes : noLikes"
  3554. alt=""
  3555. />
  3556. </div>
  3557. <div>{{ w.likesCount }}</div>
  3558. </div>
  3559. <div class="commentList" style="margin-right: 15px">
  3560. <div
  3561. class="commentImg"
  3562. @click="commentOther(w, toolIndex, wIndex)"
  3563. >
  3564. <img
  3565. src="../../assets/icon/comment/comment.png"
  3566. alt=""
  3567. />
  3568. </div>
  3569. <div>{{ w.commentCount }}</div>
  3570. </div>
  3571. </div>
  3572. </div>
  3573. </div>
  3574. </div>
  3575. </div>
  3576. <div
  3577. v-if="
  3578. tType &&
  3579. ((tType == 2 && sIsOpen == true) ||
  3580. tType == 1 ||
  3581. tType == 4) &&
  3582. tool.tool.indexOf(52) != -1
  3583. "
  3584. class="worksBox"
  3585. >
  3586. <div
  3587. class="zuoyeYulan"
  3588. v-if="
  3589. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3590. "
  3591. >
  3592. <div class="worksTop">
  3593. <div>作业预览</div>
  3594. </div>
  3595. </div>
  3596. <div
  3597. class="worksDetailBox"
  3598. v-if="
  3599. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3600. "
  3601. >
  3602. <div
  3603. class="works"
  3604. style="
  3605. width: 200px;
  3606. height: 140px;
  3607. margin: 10px 10px 10px 0;
  3608. border-radius: 15px;
  3609. box-shadow: 0 0 6px 1px #dfdada;
  3610. "
  3611. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3612. :key="wIndex"
  3613. :class="w.type == 1 ? 'isTypeOne' : ''"
  3614. >
  3615. <div class="workImg">
  3616. <img :src="word" @click="openWord(w)" alt />
  3617. <!-- @click="openFile(w.works)" -->
  3618. <div
  3619. class="answerScore"
  3620. v-if="w.score"
  3621. @click.stop="openScore(w)"
  3622. :class="{
  3623. rightW:
  3624. w.userid == userid ||
  3625. tType == 1 ||
  3626. tType == 4 ||
  3627. w.ateacher == userid,
  3628. }"
  3629. >
  3630. {{ JSON.parse(w.score).wScore }}分
  3631. </div>
  3632. <div
  3633. class="answerScore"
  3634. @click.stop="openScore(w)"
  3635. v-else-if="courseDetail.userid == userid"
  3636. :class="{
  3637. rightW:
  3638. w.userid == userid ||
  3639. tType == 1 ||
  3640. tType == 4 ||
  3641. w.ateacher == userid,
  3642. }"
  3643. >
  3644. 评分
  3645. </div>
  3646. <img
  3647. class="deleteImg"
  3648. src="../../assets/deleteworks.png"
  3649. v-if="w.userid == userid || tType == 1 || tType == 4"
  3650. @click.stop="deleteWorks(w.wid)"
  3651. alt
  3652. />
  3653. </div>
  3654. <div class="comment" style="min-width: 200px">
  3655. <div class="worksName">
  3656. <div>{{ w.sName }}</div>
  3657. </div>
  3658. <div class="commentList">
  3659. <div class="commentList">
  3660. <div
  3661. class="commentImg"
  3662. @click="
  3663. isLikes(w.wid, userid, 1, null, w.isLikes)
  3664. "
  3665. >
  3666. <img
  3667. :src="w.isLikes == true ? likes : noLikes"
  3668. alt=""
  3669. />
  3670. </div>
  3671. <div>{{ w.likesCount }}</div>
  3672. </div>
  3673. <div class="commentList" style="margin-right: 15px">
  3674. <div
  3675. class="commentImg"
  3676. @click="commentOther(w, toolIndex, wIndex)"
  3677. >
  3678. <img
  3679. src="../../assets/icon/comment/comment.png"
  3680. alt=""
  3681. />
  3682. </div>
  3683. <div>{{ w.commentCount }}</div>
  3684. </div>
  3685. </div>
  3686. </div>
  3687. </div>
  3688. </div>
  3689. </div>
  3690. </div>
  3691. </div>
  3692. <div class="vedioBox">
  3693. <div
  3694. v-if="
  3695. tType &&
  3696. ((tType == 2 && sIsOpen == true) ||
  3697. tType == 1 ||
  3698. tType == 4) &&
  3699. tool.tool.indexOf(4) != -1 &&
  3700. worksStudent.length &&
  3701. worksStudent[toolIndex].length &&
  3702. (tool.askJson[0].answer || tool.askJson[0].answer === 0) &&
  3703. checkJson[toolIndex].length
  3704. "
  3705. class="xuan_right_box"
  3706. >
  3707. <div
  3708. class="tool_right_box"
  3709. v-for="(item, index) in tool.askJson"
  3710. :key="index"
  3711. >
  3712. <div>
  3713. <span style="word-break: break-all; white-space: normal">{{
  3714. index + 1 + "、" + item.askstitle
  3715. }}</span>
  3716. </div>
  3717. <div class="right_box_xuan">
  3718. <span>正确率</span>
  3719. <span>{{
  3720. (checkJson[toolIndex][index].right
  3721. ? checkJson[toolIndex][index].right
  3722. : 0) + "%"
  3723. }}</span>
  3724. </div>
  3725. </div>
  3726. </div>
  3727. <div
  3728. class="xuan_right_box"
  3729. style="background: unset"
  3730. v-if="
  3731. tType &&
  3732. ((tType == 2 && sIsOpen == true) ||
  3733. tType == 1 ||
  3734. tType == 4) &&
  3735. tool.tool.indexOf(4) != -1 &&
  3736. worksStudent.length &&
  3737. worksStudent[toolIndex].length
  3738. "
  3739. >
  3740. <AskStatic
  3741. v-if="
  3742. worksStudent.length && worksStudent[toolIndex].length > 0
  3743. "
  3744. :askJSON="tool"
  3745. :checkJson="checkJson[toolIndex]"
  3746. ></AskStatic>
  3747. </div>
  3748. <div
  3749. v-if="
  3750. tType &&
  3751. ((tType == 2 && sIsOpen == true) ||
  3752. tType == 1 ||
  3753. tType == 4) &&
  3754. tool.tool.indexOf(45) != -1 &&
  3755. worksStudent.length &&
  3756. worksStudent[toolIndex].length &&
  3757. (tool.testJson.testJson[0].answer ||
  3758. tool.testJson.testJson[0].answer === 0) &&
  3759. checkJson[toolIndex].length
  3760. "
  3761. class="xuan_right_box"
  3762. >
  3763. <div
  3764. class="tool_right_box"
  3765. v-for="(item, index) in tool.testJson.testJson"
  3766. :key="index"
  3767. >
  3768. <div class="right_box_xuan" style="margin-right: 10px">
  3769. <span>正确率</span>
  3770. <span>{{
  3771. (checkJson[toolIndex][index].right
  3772. ? checkJson[toolIndex][index].right
  3773. : 0) + "%"
  3774. }}</span>
  3775. </div>
  3776. <div>
  3777. <span style="word-break: break-all; white-space: normal">{{
  3778. index + 1 + "、" + item.teststitle
  3779. }}</span>
  3780. </div>
  3781. </div>
  3782. </div>
  3783. <div
  3784. class="xuan_right_box"
  3785. style="background: unset"
  3786. v-if="
  3787. tType &&
  3788. ((tType == 2 && sIsOpen == true) ||
  3789. tType == 1 ||
  3790. tType == 4) &&
  3791. tool.tool.indexOf(45) != -1 &&
  3792. worksStudent.length &&
  3793. worksStudent[toolIndex].length
  3794. "
  3795. >
  3796. <AskStatic2
  3797. v-if="
  3798. worksStudent.length && worksStudent[toolIndex].length > 0
  3799. "
  3800. :askJSON="tool"
  3801. :checkJson="checkJson[toolIndex]"
  3802. ></AskStatic2>
  3803. </div>
  3804. <div
  3805. v-if="
  3806. tType &&
  3807. ((tType == 2 && sIsOpen == true) ||
  3808. tType == 1 ||
  3809. tType == 4) &&
  3810. tool.tool.indexOf(41) != -1
  3811. "
  3812. >
  3813. <AnswerData2
  3814. v-if="
  3815. worksStudent.length && worksStudent[toolIndex].length > 0
  3816. "
  3817. :problemJson="tool.selectJson.answer"
  3818. :people="worksStudent[toolIndex]"
  3819. ></AnswerData2>
  3820. </div>
  3821. <div
  3822. v-if="
  3823. tType &&
  3824. ((tType == 2 && sIsOpen == true) ||
  3825. tType == 1 ||
  3826. tType == 4) &&
  3827. tool.tool.indexOf(47) != -1
  3828. "
  3829. >
  3830. <AnswerData
  3831. v-if="
  3832. checkJson[toolIndex].length &&
  3833. (tool.sentenceList || tool.sentenceList.length > 0)
  3834. "
  3835. :people="checkJson[toolIndex]"
  3836. ></AnswerData>
  3837. </div>
  3838. </div>
  3839. <div
  3840. class="vedioBox"
  3841. v-if="
  3842. noWorksS[toolIndex].length &&
  3843. arrayToArray(tool.tool, isWorkTool).length &&
  3844. false
  3845. "
  3846. >
  3847. <div
  3848. class="queTop"
  3849. style="
  3850. font-size: 20px;
  3851. padding: 15px 0 15px 30px;
  3852. font-weight: bold;
  3853. "
  3854. >
  3855. 学生工作区
  3856. </div>
  3857. <div class="tool_work_box">
  3858. <div
  3859. v-if="
  3860. tType &&
  3861. ((tType == 2 && sIsOpen == true) ||
  3862. tType == 1 ||
  3863. tType == 4) &&
  3864. tool.tool.indexOf(16) != -1
  3865. "
  3866. class="worksBox"
  3867. >
  3868. <div
  3869. class="zuoyeYulan"
  3870. v-if="
  3871. worksStudent2.length &&
  3872. worksStudent2[toolIndex].length > 0
  3873. "
  3874. >
  3875. <div class="worksTop">
  3876. <div>作业预览</div>
  3877. <div
  3878. class="corOpen"
  3879. @click="contract(toolIndex)"
  3880. v-if="
  3881. worksStudent2[toolIndex].length > 6 &&
  3882. isCloseList[toolIndex].isClose == 0
  3883. "
  3884. >
  3885. 收缩
  3886. </div>
  3887. <div
  3888. class="corOpen"
  3889. @click="contract(toolIndex)"
  3890. v-if="isCloseList[toolIndex].isClose == 1"
  3891. >
  3892. 展开
  3893. </div>
  3894. </div>
  3895. </div>
  3896. <div
  3897. class="worksDetailBox"
  3898. v-if="
  3899. worksStudent2.length &&
  3900. worksStudent2[toolIndex].length > 0
  3901. "
  3902. >
  3903. <div
  3904. class="works"
  3905. style="
  3906. width: 200px;
  3907. height: 140px;
  3908. margin: 10px 10px 10px 0;
  3909. border-radius: 15px;
  3910. box-shadow: 0 0 6px 1px #dfdada;
  3911. "
  3912. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3913. ? worksStudent2[toolIndex]
  3914. : worksStudent2[toolIndex].slice(0, 6)"
  3915. :key="wIndex"
  3916. :class="w.type == 1 ? 'isTypeOne' : ''"
  3917. >
  3918. <div class="workImg" v-if="w.type == 0">
  3919. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3920. <img :src="w.works" @click="previewImg(w.works)" alt />
  3921. <div
  3922. class="answerScore"
  3923. v-if="w.score"
  3924. @click.stop="openScore(w)"
  3925. :class="{
  3926. rightW:
  3927. w.userid == userid ||
  3928. tType == 1 ||
  3929. tType == 4 ||
  3930. w.ateacher == userid,
  3931. }"
  3932. >
  3933. {{ JSON.parse(w.score).wScore }}分
  3934. </div>
  3935. <div
  3936. class="answerScore"
  3937. @click.stop="openScore(w)"
  3938. v-else-if="courseDetail.userid == userid"
  3939. :class="{
  3940. rightW:
  3941. w.userid == userid ||
  3942. tType == 1 ||
  3943. tType == 4 ||
  3944. w.ateacher == userid,
  3945. }"
  3946. >
  3947. 评分
  3948. </div>
  3949. <img
  3950. class="deleteImg"
  3951. src="../../assets/deleteworks.png"
  3952. v-if="w.userid == userid || tType == 1 || tType == 4"
  3953. @click.stop="deleteWorks(w.wid)"
  3954. alt
  3955. />
  3956. </div>
  3957. <div class="workImg" v-if="w.type == 1">
  3958. <img :src="word" @click="openFile(w.works)" alt />
  3959. <!-- @click="openFile(w.works)" -->
  3960. <div
  3961. class="answerScore"
  3962. v-if="w.score"
  3963. @click.stop="openScore(w)"
  3964. :class="{
  3965. rightW:
  3966. w.userid == userid ||
  3967. tType == 1 ||
  3968. tType == 4 ||
  3969. w.ateacher == userid,
  3970. }"
  3971. >
  3972. {{ JSON.parse(w.score).wScore }}分
  3973. </div>
  3974. <div
  3975. class="answerScore"
  3976. @click.stop="openScore(w)"
  3977. v-else-if="courseDetail.userid == userid"
  3978. :class="{
  3979. rightW:
  3980. w.userid == userid ||
  3981. tType == 1 ||
  3982. tType == 4 ||
  3983. w.ateacher == userid,
  3984. }"
  3985. >
  3986. 评分
  3987. </div>
  3988. <img
  3989. class="deleteImg"
  3990. src="../../assets/deleteworks.png"
  3991. v-if="w.userid == userid || tType == 1 || tType == 4"
  3992. @click.stop="deleteWorks(w.wid)"
  3993. alt
  3994. />
  3995. </div>
  3996. <div class="workImg" v-if="w.type == 3">
  3997. <img
  3998. style="cursor: pointer"
  3999. :src="video"
  4000. @click="openVideo(w)"
  4001. alt
  4002. />
  4003. <!-- @click="openVideo(w.works)" -->
  4004. <div
  4005. class="answerScore"
  4006. v-if="w.score"
  4007. @click.stop="openScore(w)"
  4008. :class="{
  4009. rightW:
  4010. w.userid == userid ||
  4011. tType == 1 ||
  4012. tType == 4 ||
  4013. w.ateacher == userid,
  4014. }"
  4015. >
  4016. {{ JSON.parse(w.score).wScore }}分
  4017. </div>
  4018. <div
  4019. class="answerScore"
  4020. @click.stop="openScore(w)"
  4021. v-else-if="courseDetail.userid == userid"
  4022. :class="{
  4023. rightW:
  4024. w.userid == userid ||
  4025. tType == 1 ||
  4026. tType == 4 ||
  4027. w.ateacher == userid,
  4028. }"
  4029. >
  4030. 评分
  4031. </div>
  4032. <img
  4033. class="deleteImg"
  4034. src="../../assets/deleteworks.png"
  4035. v-if="w.userid == userid || tType == 1 || tType == 4"
  4036. @click.stop="deleteWorks(w.wid)"
  4037. alt
  4038. />
  4039. </div>
  4040. <div class="workImg" v-if="w.type == 12">
  4041. <img
  4042. style="cursor: pointer"
  4043. :src="word2"
  4044. @click="downloadFile(w.works)"
  4045. alt
  4046. />
  4047. <!-- @click="openVideo(w.works)" -->
  4048. <div
  4049. class="answerScore"
  4050. v-if="w.score"
  4051. @click.stop="openScore(w)"
  4052. :class="{
  4053. rightW:
  4054. w.userid == userid ||
  4055. tType == 1 ||
  4056. tType == 4 ||
  4057. w.ateacher == userid,
  4058. }"
  4059. >
  4060. {{ JSON.parse(w.score).wScore }}分
  4061. </div>
  4062. <div
  4063. class="answerScore"
  4064. @click.stop="openScore(w)"
  4065. v-else-if="courseDetail.userid == userid"
  4066. :class="{
  4067. rightW:
  4068. w.userid == userid ||
  4069. tType == 1 ||
  4070. tType == 4 ||
  4071. w.ateacher == userid,
  4072. }"
  4073. >
  4074. 评分
  4075. </div>
  4076. <img
  4077. class="deleteImg"
  4078. src="../../assets/deleteworks.png"
  4079. v-if="w.userid == userid || tType == 1 || tType == 4"
  4080. @click.stop="deleteWorks(w.wid)"
  4081. alt
  4082. />
  4083. </div>
  4084. <div class="comment" style="min-width: 200px">
  4085. <div class="worksName">
  4086. <div>{{ w.sName }}</div>
  4087. </div>
  4088. <div class="commentList">
  4089. <div class="commentList">
  4090. <div
  4091. class="commentImg"
  4092. @click="
  4093. isLikes(w.wid, userid, 1, null, w.isLikes)
  4094. "
  4095. >
  4096. <img
  4097. :src="w.isLikes == true ? likes : noLikes"
  4098. alt=""
  4099. />
  4100. </div>
  4101. <div>{{ w.likesCount }}</div>
  4102. </div>
  4103. <div class="commentList" style="margin-right: 15px">
  4104. <div
  4105. class="commentImg"
  4106. @click="commentOther(w, toolIndex, wIndex)"
  4107. >
  4108. <img
  4109. src="../../assets/icon/comment/comment.png"
  4110. alt=""
  4111. />
  4112. </div>
  4113. <div>{{ w.commentCount }}</div>
  4114. </div>
  4115. </div>
  4116. </div>
  4117. </div>
  4118. </div>
  4119. <div class="noWorksS">
  4120. <div
  4121. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4122. :key="sIndex"
  4123. class="noWorksName"
  4124. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4125. :class="{ isWork: s.type == '2' }"
  4126. >
  4127. {{ s.student }}
  4128. </div>
  4129. </div>
  4130. </div>
  4131. <div
  4132. v-if="
  4133. tType &&
  4134. ((tType == 2 && sIsOpen == true) ||
  4135. tType == 1 ||
  4136. tType == 4) &&
  4137. tool.tool.indexOf(32) != -1
  4138. "
  4139. class="worksBox"
  4140. >
  4141. <div
  4142. class="zuoyeYulan"
  4143. v-if="
  4144. worksStudent2.length &&
  4145. worksStudent2[toolIndex].length > 0
  4146. "
  4147. >
  4148. <div class="worksTop">
  4149. <div>作业预览</div>
  4150. <div
  4151. class="corOpen"
  4152. @click="contract(toolIndex)"
  4153. v-if="
  4154. worksStudent2[toolIndex].length > 6 &&
  4155. isCloseList[toolIndex].isClose == 0
  4156. "
  4157. >
  4158. 收缩
  4159. </div>
  4160. <div
  4161. class="corOpen"
  4162. @click="contract(toolIndex)"
  4163. v-if="isCloseList[toolIndex].isClose == 1"
  4164. >
  4165. 展开
  4166. </div>
  4167. </div>
  4168. </div>
  4169. <div
  4170. class="worksDetailBox"
  4171. v-if="
  4172. worksStudent2.length &&
  4173. worksStudent2[toolIndex].length > 0
  4174. "
  4175. >
  4176. <div
  4177. class="works"
  4178. style="
  4179. width: 200px;
  4180. height: 140px;
  4181. margin: 10px 10px 10px 0;
  4182. border-radius: 15px;
  4183. box-shadow: 0 0 6px 1px #dfdada;
  4184. "
  4185. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4186. ? worksStudent2[toolIndex]
  4187. : worksStudent2[toolIndex].slice(0, 6)"
  4188. :key="wIndex"
  4189. :class="w.type == 1 ? 'isTypeOne' : ''"
  4190. >
  4191. <div class="workImg">
  4192. <img :src="word2" @click="downloadFile(w.works)" alt />
  4193. <div
  4194. class="answerScore"
  4195. v-if="w.score"
  4196. @click.stop="openScore(w)"
  4197. :class="{
  4198. rightW:
  4199. w.userid == userid ||
  4200. tType == 1 ||
  4201. tType == 4 ||
  4202. w.ateacher == userid,
  4203. }"
  4204. >
  4205. {{ JSON.parse(w.score).wScore }}分
  4206. </div>
  4207. <div
  4208. class="answerScore"
  4209. @click.stop="openScore(w)"
  4210. v-else-if="courseDetail.userid == userid"
  4211. :class="{
  4212. rightW:
  4213. w.userid == userid ||
  4214. tType == 1 ||
  4215. tType == 4 ||
  4216. w.ateacher == userid,
  4217. }"
  4218. >
  4219. 评分
  4220. </div>
  4221. <img
  4222. class="deleteImg"
  4223. src="../../assets/deleteworks.png"
  4224. v-if="w.userid == userid || tType == 1 || tType == 4"
  4225. @click.stop="deleteWorks(w.wid)"
  4226. alt
  4227. />
  4228. </div>
  4229. <div class="comment" style="min-width: 200px">
  4230. <div class="worksName">
  4231. <div>{{ w.sName }}</div>
  4232. </div>
  4233. <div class="commentList">
  4234. <div class="commentList">
  4235. <div
  4236. class="commentImg"
  4237. @click="
  4238. isLikes(w.wid, userid, 1, null, w.isLikes)
  4239. "
  4240. >
  4241. <img
  4242. :src="w.isLikes == true ? likes : noLikes"
  4243. alt=""
  4244. />
  4245. </div>
  4246. <div>{{ w.likesCount }}</div>
  4247. </div>
  4248. <div class="commentList" style="margin-right: 15px">
  4249. <div
  4250. class="commentImg"
  4251. @click="commentOther(w, toolIndex, wIndex)"
  4252. >
  4253. <img
  4254. src="../../assets/icon/comment/comment.png"
  4255. alt=""
  4256. />
  4257. </div>
  4258. <div>{{ w.commentCount }}</div>
  4259. </div>
  4260. </div>
  4261. </div>
  4262. </div>
  4263. </div>
  4264. <div class="noWorksS">
  4265. <div
  4266. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4267. :key="sIndex"
  4268. class="noWorksName"
  4269. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4270. :class="{ isWork: s.type == '2' }"
  4271. >
  4272. {{ s.student }}
  4273. </div>
  4274. </div>
  4275. </div>
  4276. <div
  4277. v-if="
  4278. tType &&
  4279. ((tType == 2 && sIsOpen == true) ||
  4280. tType == 1 ||
  4281. tType == 4) &&
  4282. tool.tool.indexOf(57) != -1
  4283. "
  4284. class="worksBox"
  4285. >
  4286. <div
  4287. class="zuoyeYulan"
  4288. v-if="
  4289. worksStudent2.length &&
  4290. worksStudent2[toolIndex].length > 0
  4291. "
  4292. >
  4293. <div class="worksTop">
  4294. <div>作业预览</div>
  4295. <div
  4296. class="corOpen"
  4297. @click="contract(toolIndex)"
  4298. v-if="
  4299. worksStudent2[toolIndex].length > 6 &&
  4300. isCloseList[toolIndex].isClose == 0
  4301. "
  4302. >
  4303. 收缩
  4304. </div>
  4305. <div
  4306. class="corOpen"
  4307. @click="contract(toolIndex)"
  4308. v-if="isCloseList[toolIndex].isClose == 1"
  4309. >
  4310. 展开
  4311. </div>
  4312. </div>
  4313. </div>
  4314. <div
  4315. class="worksDetailBox"
  4316. v-if="
  4317. worksStudent2.length &&
  4318. worksStudent2[toolIndex].length > 0
  4319. "
  4320. >
  4321. <div
  4322. class="works"
  4323. style="
  4324. width: 200px;
  4325. height: 140px;
  4326. margin: 10px 10px 10px 0;
  4327. border-radius: 15px;
  4328. box-shadow: 0 0 6px 1px #dfdada;
  4329. "
  4330. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4331. ? worksStudent2[toolIndex]
  4332. : worksStudent2[toolIndex].slice(0, 6)"
  4333. :key="wIndex"
  4334. :class="w.type == 1 ? 'isTypeOne' : ''"
  4335. >
  4336. <div class="workImg">
  4337. <img
  4338. :src="word2"
  4339. @click="downloadFile(w.works)"
  4340. v-if="w.type == 12"
  4341. alt
  4342. />
  4343. <img
  4344. :src="word2"
  4345. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  4346. v-else-if="w.type == 15"
  4347. alt
  4348. />
  4349. <div
  4350. class="answerScore"
  4351. v-if="w.score"
  4352. @click.stop="openScore(w)"
  4353. :class="{
  4354. rightW:
  4355. w.userid == userid ||
  4356. tType == 1 ||
  4357. tType == 4 ||
  4358. w.ateacher == userid,
  4359. }"
  4360. >
  4361. {{ JSON.parse(w.score).wScore }}分
  4362. </div>
  4363. <div
  4364. class="answerScore"
  4365. @click.stop="openScore(w)"
  4366. v-else-if="courseDetail.userid == userid"
  4367. :class="{
  4368. rightW:
  4369. w.userid == userid ||
  4370. tType == 1 ||
  4371. tType == 4 ||
  4372. w.ateacher == userid,
  4373. }"
  4374. >
  4375. 评分
  4376. </div>
  4377. <img
  4378. class="deleteImg"
  4379. src="../../assets/deleteworks.png"
  4380. v-if="w.userid == userid || tType == 1 || tType == 4"
  4381. @click.stop="deleteWorks(w.wid)"
  4382. alt
  4383. />
  4384. </div>
  4385. <div class="comment" style="min-width: 200px">
  4386. <div class="worksName">
  4387. <div>{{ w.sName }}</div>
  4388. </div>
  4389. <div class="commentList">
  4390. <div class="commentList">
  4391. <div
  4392. class="commentImg"
  4393. @click="
  4394. isLikes(w.wid, userid, 1, null, w.isLikes)
  4395. "
  4396. >
  4397. <img
  4398. :src="w.isLikes == true ? likes : noLikes"
  4399. alt=""
  4400. />
  4401. </div>
  4402. <div>{{ w.likesCount }}</div>
  4403. </div>
  4404. <div class="commentList" style="margin-right: 15px">
  4405. <div
  4406. class="commentImg"
  4407. @click="commentOther(w, toolIndex, wIndex)"
  4408. >
  4409. <img
  4410. src="../../assets/icon/comment/comment.png"
  4411. alt=""
  4412. />
  4413. </div>
  4414. <div>{{ w.commentCount }}</div>
  4415. </div>
  4416. </div>
  4417. </div>
  4418. </div>
  4419. </div>
  4420. <div class="noWorksS">
  4421. <div
  4422. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4423. :key="sIndex"
  4424. class="noWorksName"
  4425. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4426. :class="{ isWork: s.type == '2' }"
  4427. >
  4428. {{ s.student }}
  4429. </div>
  4430. </div>
  4431. </div>
  4432. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4433. <div
  4434. class="zuoyeYulan"
  4435. v-if="
  4436. worksStudent2.length &&
  4437. worksStudent2[toolIndex].length > 0
  4438. "
  4439. >
  4440. <span>作业预览</span>
  4441. <div
  4442. class="corOpen"
  4443. @click="contract(toolIndex)"
  4444. v-if="
  4445. worksStudent2[toolIndex].length > 6 &&
  4446. isCloseList[toolIndex].isClose == 0
  4447. "
  4448. >
  4449. 收缩
  4450. </div>
  4451. <div
  4452. class="corOpen"
  4453. @click="contract(toolIndex)"
  4454. v-if="isCloseList[toolIndex].isClose == 1"
  4455. >
  4456. 展开
  4457. </div>
  4458. </div>
  4459. <div
  4460. class="worksDetailBox"
  4461. v-if="
  4462. worksStudent2.length &&
  4463. worksStudent2[toolIndex].length > 0
  4464. "
  4465. >
  4466. <div
  4467. class="works"
  4468. style="
  4469. width: 200px;
  4470. height: 140px;
  4471. margin: 10px 10px 10px 0;
  4472. border-radius: 15px;
  4473. box-shadow: 0 0 6px 1px #dfdada;
  4474. "
  4475. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4476. ? worksStudent2[toolIndex]
  4477. : worksStudent2[toolIndex].slice(0, 6)"
  4478. :key="wIndex"
  4479. :class="w.type == 1 ? 'isTypeOne' : ''"
  4480. >
  4481. <div class="workImg" v-if="w.type == 0">
  4482. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4483. <img :src="w.works" @click="previewImg(w.works)" alt />
  4484. <div
  4485. class="answerScore"
  4486. v-if="w.score"
  4487. @click.stop="openScore(w)"
  4488. :class="{
  4489. rightW:
  4490. w.userid == userid ||
  4491. tType == 1 ||
  4492. tType == 4 ||
  4493. w.ateacher == userid,
  4494. }"
  4495. >
  4496. {{ JSON.parse(w.score).wScore }}分
  4497. </div>
  4498. <div
  4499. class="answerScore"
  4500. @click.stop="openScore(w)"
  4501. v-else-if="courseDetail.userid == userid"
  4502. :class="{
  4503. rightW:
  4504. w.userid == userid ||
  4505. tType == 1 ||
  4506. tType == 4 ||
  4507. w.ateacher == userid,
  4508. }"
  4509. >
  4510. 评分
  4511. </div>
  4512. <img
  4513. class="deleteImg"
  4514. src="../../assets/deleteworks.png"
  4515. v-if="w.userid == userid || tType == 1 || tType == 4"
  4516. @click.stop="deleteWorks(w.wid)"
  4517. alt
  4518. />
  4519. </div>
  4520. <div
  4521. class="workImg"
  4522. style="cursor: pointer"
  4523. v-if="w.type == 1"
  4524. >
  4525. <img :src="word" @click="openFile(w.works)" alt />
  4526. <!-- @click="openFile(w.works)" -->
  4527. <div
  4528. class="answerScore"
  4529. v-if="w.score"
  4530. @click.stop="openScore(w)"
  4531. :class="{
  4532. rightW:
  4533. w.userid == userid ||
  4534. tType == 1 ||
  4535. tType == 4 ||
  4536. w.ateacher == userid,
  4537. }"
  4538. >
  4539. {{ JSON.parse(w.score).wScore }}分
  4540. </div>
  4541. <div
  4542. class="answerScore"
  4543. @click.stop="openScore(w)"
  4544. v-else-if="courseDetail.userid == userid"
  4545. :class="{
  4546. rightW:
  4547. w.userid == userid ||
  4548. tType == 1 ||
  4549. tType == 4 ||
  4550. w.ateacher == userid,
  4551. }"
  4552. >
  4553. 评分
  4554. </div>
  4555. <img
  4556. class="deleteImg"
  4557. src="../../assets/deleteworks.png"
  4558. v-if="w.userid == userid || tType == 1 || tType == 4"
  4559. @click.stop="deleteWorks(w.wid)"
  4560. alt
  4561. />
  4562. </div>
  4563. <div class="workImg" v-if="w.type == 3">
  4564. <img
  4565. style="cursor: pointer"
  4566. :src="video"
  4567. @click="openVideo(w)"
  4568. alt
  4569. />
  4570. <!-- @click="openVideo(w.works)" -->
  4571. <div
  4572. class="answerScore"
  4573. v-if="w.score"
  4574. @click.stop="openScore(w)"
  4575. :class="{
  4576. rightW:
  4577. w.userid == userid ||
  4578. tType == 1 ||
  4579. tType == 4 ||
  4580. w.ateacher == userid,
  4581. }"
  4582. >
  4583. {{ JSON.parse(w.score).wScore }}分
  4584. </div>
  4585. <div
  4586. class="answerScore"
  4587. @click.stop="openScore(w)"
  4588. v-else-if="courseDetail.userid == userid"
  4589. :class="{
  4590. rightW:
  4591. w.userid == userid ||
  4592. tType == 1 ||
  4593. tType == 4 ||
  4594. w.ateacher == userid,
  4595. }"
  4596. >
  4597. 评分
  4598. </div>
  4599. <img
  4600. class="deleteImg"
  4601. src="../../assets/deleteworks.png"
  4602. v-if="w.userid == userid || tType == 1 || tType == 4"
  4603. @click.stop="deleteWorks(w.wid)"
  4604. alt
  4605. />
  4606. </div>
  4607. <div class="comment" style="min-width: 200px">
  4608. <div class="worksName">
  4609. <div
  4610. style="cursor: pointer"
  4611. @click="
  4612. openSname(w.sName, w.wid, toolIndex, w.userid)
  4613. "
  4614. >
  4615. {{ w.sName }}
  4616. </div>
  4617. </div>
  4618. <div class="commentList">
  4619. <div class="commentList">
  4620. <div
  4621. class="commentImg"
  4622. @click="
  4623. isLikes(w.wid, userid, 1, null, w.isLikes)
  4624. "
  4625. >
  4626. <img
  4627. :src="w.isLikes == true ? likes : noLikes"
  4628. alt=""
  4629. />
  4630. </div>
  4631. <div>{{ w.likesCount }}</div>
  4632. </div>
  4633. <div class="commentList" style="margin-right: 15px">
  4634. <div
  4635. class="commentImg"
  4636. @click="commentOther(w, toolIndex, wIndex)"
  4637. >
  4638. <img
  4639. src="../../assets/icon/comment/comment.png"
  4640. alt=""
  4641. />
  4642. </div>
  4643. <div>{{ w.commentCount }}</div>
  4644. </div>
  4645. </div>
  4646. </div>
  4647. </div>
  4648. </div>
  4649. <div class="noWorksS">
  4650. <div
  4651. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4652. :key="sIndex"
  4653. class="noWorksName"
  4654. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4655. :class="{ isWork: s.type == '2' }"
  4656. >
  4657. {{ s.student }}
  4658. </div>
  4659. </div>
  4660. </div>
  4661. <div
  4662. v-if="
  4663. tType &&
  4664. ((tType == 2 && sIsOpen == true) ||
  4665. tType == 1 ||
  4666. tType == 4) &&
  4667. tool.tool.indexOf(4) != -1
  4668. "
  4669. class="worksBox"
  4670. >
  4671. <div
  4672. class="zuoyeYulan"
  4673. v-if="
  4674. worksStudent2.length &&
  4675. worksStudent2[toolIndex].length > 0
  4676. "
  4677. >
  4678. <div class="worksTop">
  4679. <div>作业预览</div>
  4680. <div
  4681. class="corOpen"
  4682. @click="contract(toolIndex)"
  4683. v-if="
  4684. worksStudent2[toolIndex].length > 6 &&
  4685. isCloseList[toolIndex].isClose == 0
  4686. "
  4687. >
  4688. 收缩
  4689. </div>
  4690. <div
  4691. class="corOpen"
  4692. @click="contract(toolIndex)"
  4693. v-if="isCloseList[toolIndex].isClose == 1"
  4694. >
  4695. 展开
  4696. </div>
  4697. </div>
  4698. </div>
  4699. <div>
  4700. <div
  4701. class="worksDetailBox"
  4702. v-if="
  4703. worksStudent2.length &&
  4704. worksStudent2[toolIndex].length > 0
  4705. "
  4706. >
  4707. <div
  4708. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4709. 0
  4710. ? worksStudent2[toolIndex]
  4711. : worksStudent2[toolIndex].slice(0, 6)"
  4712. :key="wIndex"
  4713. class="isWorksName"
  4714. @click="
  4715. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4716. "
  4717. >
  4718. {{ w.sName }}
  4719. <img
  4720. class="deleteImg deleteImg2"
  4721. src="../../assets/deleteworks.png"
  4722. v-if="w.userid == userid || tType == 1 || tType == 4"
  4723. @click.stop="deleteWorks(w.wid)"
  4724. alt
  4725. />
  4726. </div>
  4727. </div>
  4728. </div>
  4729. <div class="noWorksS">
  4730. <div
  4731. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4732. :key="sIndex"
  4733. class="noWorksName"
  4734. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4735. :class="{ isWork: s.type == '2' }"
  4736. >
  4737. {{ s.student }}
  4738. </div>
  4739. </div>
  4740. </div>
  4741. <div
  4742. v-if="
  4743. tType &&
  4744. ((tType == 2 && sIsOpen == true) ||
  4745. tType == 1 ||
  4746. tType == 4) &&
  4747. tool.tool.indexOf(45) != -1
  4748. "
  4749. class="worksBox"
  4750. >
  4751. <div
  4752. class="zuoyeYulan"
  4753. v-if="
  4754. worksStudent2.length &&
  4755. worksStudent2[toolIndex].length > 0
  4756. "
  4757. >
  4758. <div class="worksTop">
  4759. <div>作业预览</div>
  4760. <div
  4761. class="corOpen"
  4762. @click="contract(toolIndex)"
  4763. v-if="
  4764. worksStudent2[toolIndex].length > 6 &&
  4765. isCloseList[toolIndex].isClose == 0
  4766. "
  4767. >
  4768. 收缩
  4769. </div>
  4770. <div
  4771. class="corOpen"
  4772. @click="contract(toolIndex)"
  4773. v-if="isCloseList[toolIndex].isClose == 1"
  4774. >
  4775. 展开
  4776. </div>
  4777. </div>
  4778. </div>
  4779. <div>
  4780. <div
  4781. class="worksDetailBox"
  4782. v-if="
  4783. worksStudent2.length &&
  4784. worksStudent2[toolIndex].length > 0
  4785. "
  4786. >
  4787. <div
  4788. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4789. 0
  4790. ? worksStudent2[toolIndex]
  4791. : worksStudent2[toolIndex].slice(0, 6)"
  4792. :key="wIndex"
  4793. class="isWorksName"
  4794. @click="
  4795. openTools(45, toolIndex, taskCount, w.works, w.sName)
  4796. "
  4797. >
  4798. {{ w.sName }}
  4799. <img
  4800. class="deleteImg deleteImg2"
  4801. src="../../assets/deleteworks.png"
  4802. v-if="w.userid == userid || tType == 1 || tType == 4"
  4803. @click.stop="deleteWorks(w.wid)"
  4804. alt
  4805. />
  4806. </div>
  4807. </div>
  4808. </div>
  4809. <div class="noWorksS">
  4810. <div
  4811. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4812. :key="sIndex"
  4813. class="noWorksName"
  4814. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4815. :class="{ isWork: s.type == '2' }"
  4816. >
  4817. {{ s.student }}
  4818. </div>
  4819. </div>
  4820. </div>
  4821. <div
  4822. v-if="
  4823. tType &&
  4824. ((tType == 2 && sIsOpen == true) ||
  4825. tType == 1 ||
  4826. tType == 4) &&
  4827. tool.tool.indexOf(15) != -1
  4828. "
  4829. class="worksBox"
  4830. >
  4831. <div
  4832. class="zuoyeYulan"
  4833. v-if="
  4834. worksStudent2.length &&
  4835. worksStudent2[toolIndex].length > 0
  4836. "
  4837. >
  4838. <div class="worksTop">
  4839. <div>作业预览</div>
  4840. <div
  4841. class="corOpen"
  4842. @click="contract(toolIndex)"
  4843. v-if="
  4844. worksStudent2[toolIndex].length > 6 &&
  4845. isCloseList[toolIndex].isClose == 0
  4846. "
  4847. >
  4848. 收缩
  4849. </div>
  4850. <div
  4851. class="corOpen"
  4852. @click="contract(toolIndex)"
  4853. v-if="isCloseList[toolIndex].isClose == 1"
  4854. >
  4855. 展开
  4856. </div>
  4857. </div>
  4858. </div>
  4859. <div
  4860. class="worksDetailBox"
  4861. v-if="
  4862. worksStudent2.length &&
  4863. worksStudent2[toolIndex].length > 0
  4864. "
  4865. >
  4866. <div
  4867. class="works"
  4868. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4869. ? worksStudent2[toolIndex]
  4870. : worksStudent2[toolIndex].slice(0, 6)"
  4871. :key="wIndex"
  4872. >
  4873. <div
  4874. class="workImg"
  4875. style="
  4876. border-radius: 15px;
  4877. box-shadow: #eee 0px 0px 5px 5px;
  4878. "
  4879. >
  4880. <!-- <img
  4881. src="../../assets/icon/works/noImg.png"
  4882. @click="openTools(15, toolIndex, taskCount, w.works)"
  4883. alt=""
  4884. />-->
  4885. <div
  4886. class="answerBg"
  4887. style="border-radius: 15px 15px 0 0"
  4888. @click="commentOther(w, toolIndex, wIndex)"
  4889. >
  4890. <!-- <div>{{ w.sName }}</div> -->
  4891. <div class="answerContent">
  4892. {{ JSON.parse(w.works)[0].answer }}
  4893. </div>
  4894. <div
  4895. class="answerScore"
  4896. v-if="w.score"
  4897. @click.stop="openScore(w)"
  4898. :class="{
  4899. rightW:
  4900. w.userid == userid || tType == 1 || tType == 4,
  4901. }"
  4902. >
  4903. {{ JSON.parse(w.score).wScore }}分
  4904. </div>
  4905. <div
  4906. class="answerScore"
  4907. @click.stop="openScore(w)"
  4908. v-else-if="courseDetail.userid == userid"
  4909. :class="{
  4910. rightW:
  4911. w.userid == userid || tType == 1 || tType == 4,
  4912. }"
  4913. >
  4914. 评分
  4915. </div>
  4916. <img
  4917. class="deleteImg"
  4918. src="../../assets/deleteworks.png"
  4919. v-if="
  4920. w.userid == userid || tType == 1 || tType == 4
  4921. "
  4922. @click.stop="deleteWorks(w.wid)"
  4923. alt
  4924. />
  4925. </div>
  4926. <div class="comment">
  4927. <div class="worksName">
  4928. <div>{{ w.sName }}</div>
  4929. </div>
  4930. <div class="commentList">
  4931. <div
  4932. class="commentImg"
  4933. @click="
  4934. isLikes(w.wid, userid, 1, null, w.isLikes)
  4935. "
  4936. >
  4937. <img
  4938. :src="w.isLikes == true ? likes : noLikes"
  4939. alt=""
  4940. />
  4941. </div>
  4942. <div>{{ w.likesCount }}</div>
  4943. </div>
  4944. <div class="commentList" style="margin-right: 15px">
  4945. <div
  4946. class="commentImg"
  4947. @click="commentOther(w, toolIndex, wIndex)"
  4948. >
  4949. <img
  4950. src="../../assets/icon/comment/comment.png"
  4951. alt=""
  4952. />
  4953. </div>
  4954. <div>{{ w.commentCount }}</div>
  4955. </div>
  4956. </div>
  4957. </div>
  4958. </div>
  4959. </div>
  4960. <div class="noWorksS">
  4961. <div
  4962. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4963. :key="sIndex"
  4964. class="noWorksName"
  4965. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4966. :class="{ isWork: s.type == '2' }"
  4967. >
  4968. {{ s.student }}
  4969. </div>
  4970. </div>
  4971. </div>
  4972. <div
  4973. v-if="
  4974. tType &&
  4975. ((tType == 2 && sIsOpen == true) ||
  4976. tType == 1 ||
  4977. tType == 4) &&
  4978. tool.tool.indexOf(1) != -1
  4979. "
  4980. class="worksBox"
  4981. >
  4982. <div
  4983. class="zuoyeYulan"
  4984. v-if="
  4985. worksStudent2.length &&
  4986. worksStudent2[toolIndex].length > 0
  4987. "
  4988. >
  4989. <div class="worksTop">
  4990. <div>作业预览</div>
  4991. <div
  4992. class="corOpen"
  4993. @click="contract(toolIndex)"
  4994. v-if="
  4995. worksStudent2[toolIndex].length > 6 &&
  4996. isCloseList[toolIndex].isClose == 0
  4997. "
  4998. >
  4999. 收缩
  5000. </div>
  5001. <div
  5002. class="corOpen"
  5003. @click="contract(toolIndex)"
  5004. v-if="isCloseList[toolIndex].isClose == 1"
  5005. >
  5006. 展开
  5007. </div>
  5008. </div>
  5009. </div>
  5010. <div
  5011. class="worksDetailBox"
  5012. v-if="
  5013. worksStudent2.length &&
  5014. worksStudent2[toolIndex].length > 0
  5015. "
  5016. >
  5017. <div
  5018. class="works"
  5019. style="
  5020. width: 200px;
  5021. height: 140px;
  5022. margin: 10px 10px 10px 0;
  5023. border-radius: 15px;
  5024. box-shadow: 0 0 6px 1px #dfdada;
  5025. "
  5026. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5027. ? worksStudent2[toolIndex]
  5028. : worksStudent2[toolIndex].slice(0, 6)"
  5029. :key="wIndex"
  5030. >
  5031. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5032. <div class="workImg">
  5033. <img :src="w.works" @click="previewImg(w.works)" alt />
  5034. <div
  5035. class="answerScore"
  5036. v-if="w.score"
  5037. @click.stop="openScore(w)"
  5038. :class="{
  5039. rightW:
  5040. w.userid == userid || tType == 1 || tType == 4,
  5041. }"
  5042. >
  5043. {{ JSON.parse(w.score).wScore }}分
  5044. </div>
  5045. <div
  5046. class="answerScore"
  5047. @click.stop="openScore(w)"
  5048. v-else-if="courseDetail.userid == userid"
  5049. :class="{
  5050. rightW:
  5051. w.userid == userid || tType == 1 || tType == 4,
  5052. }"
  5053. >
  5054. 评分
  5055. </div>
  5056. <img
  5057. class="deleteImg"
  5058. src="../../assets/deleteworks.png"
  5059. v-if="w.userid == userid || tType == 1 || tType == 4"
  5060. @click.stop="deleteWorks(w.wid)"
  5061. alt
  5062. />
  5063. </div>
  5064. <div class="comment" style="min-width: 200px">
  5065. <div class="worksName">
  5066. <div>{{ w.sName }}</div>
  5067. </div>
  5068. <div class="commentList">
  5069. <div class="commentList">
  5070. <div
  5071. class="commentImg"
  5072. @click="
  5073. isLikes(w.wid, userid, 1, null, w.isLikes)
  5074. "
  5075. >
  5076. <img
  5077. :src="w.isLikes == true ? likes : noLikes"
  5078. alt=""
  5079. />
  5080. </div>
  5081. <div>{{ w.likesCount }}</div>
  5082. </div>
  5083. <div class="commentList" style="margin-right: 15px">
  5084. <div
  5085. class="commentImg"
  5086. @click="commentOther(w, toolIndex, wIndex)"
  5087. >
  5088. <img
  5089. src="../../assets/icon/comment/comment.png"
  5090. alt=""
  5091. />
  5092. </div>
  5093. <div>{{ w.commentCount }}</div>
  5094. </div>
  5095. </div>
  5096. </div>
  5097. </div>
  5098. </div>
  5099. <div class="noWorksS">
  5100. <div
  5101. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5102. :key="sIndex"
  5103. class="noWorksName"
  5104. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5105. :class="{ isWork: s.type == '2' }"
  5106. >
  5107. {{ s.student }}
  5108. </div>
  5109. </div>
  5110. </div>
  5111. <div
  5112. v-if="
  5113. tType &&
  5114. ((tType == 2 && sIsOpen == true) ||
  5115. tType == 1 ||
  5116. tType == 4) &&
  5117. tool.tool.indexOf(3) != -1
  5118. "
  5119. class="worksBox"
  5120. >
  5121. <div
  5122. class="zuoyeYulan"
  5123. v-if="
  5124. worksStudent2.length &&
  5125. worksStudent2[toolIndex].length > 0
  5126. "
  5127. >
  5128. <div class="worksTop">
  5129. <div>作业预览</div>
  5130. <div
  5131. class="corOpen"
  5132. @click="contract(toolIndex)"
  5133. v-if="
  5134. worksStudent2[toolIndex].length > 6 &&
  5135. isCloseList[toolIndex].isClose == 0
  5136. "
  5137. >
  5138. 收缩
  5139. </div>
  5140. <div
  5141. class="corOpen"
  5142. @click="contract(toolIndex)"
  5143. v-if="isCloseList[toolIndex].isClose == 1"
  5144. >
  5145. 展开
  5146. </div>
  5147. </div>
  5148. </div>
  5149. <div
  5150. class="worksDetailBox"
  5151. v-if="
  5152. worksStudent2.length &&
  5153. worksStudent2[toolIndex].length > 0
  5154. "
  5155. >
  5156. <div
  5157. class="works"
  5158. style="
  5159. width: 200px;
  5160. height: 140px;
  5161. margin: 10px 10px 10px 0;
  5162. border-radius: 15px;
  5163. box-shadow: 0 0 6px 1px #dfdada;
  5164. "
  5165. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5166. ? worksStudent2[toolIndex]
  5167. : worksStudent2[toolIndex].slice(0, 6)"
  5168. :key="wIndex"
  5169. >
  5170. <!-- @click="previewImg(w.works)" -->
  5171. <div class="workImg">
  5172. <img :src="w.works" @click="previewImg(w.works)" alt />
  5173. <div
  5174. class="answerScore"
  5175. v-if="w.score"
  5176. @click.stop="openScore(w)"
  5177. :class="{
  5178. rightW:
  5179. w.userid == userid || tType == 1 || tType == 4,
  5180. }"
  5181. >
  5182. {{ JSON.parse(w.score).wScore }}分
  5183. </div>
  5184. <div
  5185. class="answerScore"
  5186. @click.stop="openScore(w)"
  5187. v-else-if="courseDetail.userid == userid"
  5188. :class="{
  5189. rightW:
  5190. w.userid == userid || tType == 1 || tType == 4,
  5191. }"
  5192. >
  5193. 评分
  5194. </div>
  5195. <img
  5196. class="deleteImg"
  5197. src="../../assets/deleteworks.png"
  5198. v-if="w.userid == userid || tType == 1 || tType == 4"
  5199. @click.stop="deleteWorks(w.wid)"
  5200. alt
  5201. />
  5202. </div>
  5203. <div class="comment" style="min-width: 200px">
  5204. <div class="worksName">
  5205. <div>{{ w.sName }}</div>
  5206. </div>
  5207. <div class="commentList">
  5208. <div class="commentList">
  5209. <div
  5210. class="commentImg"
  5211. @click="
  5212. isLikes(w.wid, userid, 1, null, w.isLikes)
  5213. "
  5214. >
  5215. <img
  5216. :src="w.isLikes == true ? likes : noLikes"
  5217. alt=""
  5218. />
  5219. </div>
  5220. <div>{{ w.likesCount }}</div>
  5221. </div>
  5222. <div class="commentList" style="margin-right: 15px">
  5223. <div
  5224. class="commentImg"
  5225. @click="commentOther(w, toolIndex, wIndex)"
  5226. >
  5227. <img
  5228. src="../../assets/icon/comment/comment.png"
  5229. alt=""
  5230. />
  5231. </div>
  5232. <div>{{ w.commentCount }}</div>
  5233. </div>
  5234. </div>
  5235. </div>
  5236. </div>
  5237. </div>
  5238. <div class="noWorksS">
  5239. <div
  5240. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5241. :key="sIndex"
  5242. class="noWorksName"
  5243. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5244. :class="{ isWork: s.type == '2' }"
  5245. >
  5246. {{ s.student }}
  5247. </div>
  5248. </div>
  5249. </div>
  5250. <div
  5251. v-if="
  5252. tType &&
  5253. ((tType == 2 && sIsOpen == true) ||
  5254. tType == 1 ||
  5255. tType == 4) &&
  5256. tool.tool.indexOf(6) != -1
  5257. "
  5258. class="worksBox"
  5259. >
  5260. <div
  5261. class="zuoyeYulan"
  5262. v-if="
  5263. worksStudent2.length &&
  5264. worksStudent2[toolIndex].length > 0
  5265. "
  5266. >
  5267. <div class="worksTop">
  5268. <div>作业预览</div>
  5269. <div
  5270. class="corOpen"
  5271. @click="contract(toolIndex)"
  5272. v-if="
  5273. worksStudent[toolIndex].length > 6 &&
  5274. isCloseList[toolIndex].isClose == 0
  5275. "
  5276. >
  5277. 收缩
  5278. </div>
  5279. <div
  5280. class="corOpen"
  5281. @click="contract(toolIndex)"
  5282. v-if="isCloseList[toolIndex].isClose == 1"
  5283. >
  5284. 展开
  5285. </div>
  5286. </div>
  5287. </div>
  5288. <div
  5289. class="worksDetailBox"
  5290. v-if="
  5291. worksStudent2.length &&
  5292. worksStudent2[toolIndex].length > 0
  5293. "
  5294. >
  5295. <div
  5296. class="works"
  5297. style="
  5298. width: 200px;
  5299. height: 140px;
  5300. margin: 10px 10px 10px 0;
  5301. border-radius: 15px;
  5302. box-shadow: 0 0 6px 1px #dfdada;
  5303. "
  5304. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5305. ? worksStudent2[toolIndex]
  5306. : worksStudent2[toolIndex].slice(0, 6)"
  5307. :key="wIndex"
  5308. >
  5309. <!-- @click="previewImg(w.works)" -->
  5310. <div class="workImg">
  5311. <img :src="w.works" @click="previewImg(w.works)" alt />
  5312. <div
  5313. class="answerScore"
  5314. v-if="w.score"
  5315. @click.stop="openScore(w)"
  5316. :class="{
  5317. rightW:
  5318. w.userid == userid || tType == 1 || tType == 4,
  5319. }"
  5320. >
  5321. {{ JSON.parse(w.score).wScore }}分
  5322. </div>
  5323. <div
  5324. class="answerScore"
  5325. @click.stop="openScore(w)"
  5326. v-else-if="courseDetail.userid == userid"
  5327. :class="{
  5328. rightW:
  5329. w.userid == userid || tType == 1 || tType == 4,
  5330. }"
  5331. >
  5332. 评分
  5333. </div>
  5334. <img
  5335. class="deleteImg"
  5336. src="../../assets/deleteworks.png"
  5337. v-if="w.userid == userid || tType == 1 || tType == 4"
  5338. @click.stop="deleteWorks(w.wid)"
  5339. alt
  5340. />
  5341. </div>
  5342. <div class="comment" style="min-width: 200px">
  5343. <div class="worksName">
  5344. <div>{{ w.sName }}</div>
  5345. </div>
  5346. <div class="commentList">
  5347. <div class="commentList">
  5348. <div
  5349. class="commentImg"
  5350. @click="
  5351. isLikes(w.wid, userid, 1, null, w.isLikes)
  5352. "
  5353. >
  5354. <img
  5355. :src="w.isLikes == true ? likes : noLikes"
  5356. alt=""
  5357. />
  5358. </div>
  5359. <div>{{ w.likesCount }}</div>
  5360. </div>
  5361. <div class="commentList" style="margin-right: 15px">
  5362. <div
  5363. class="commentImg"
  5364. @click="commentOther(w, toolIndex, wIndex)"
  5365. >
  5366. <img
  5367. src="../../assets/icon/comment/comment.png"
  5368. alt=""
  5369. />
  5370. </div>
  5371. <div>{{ w.commentCount }}</div>
  5372. </div>
  5373. </div>
  5374. </div>
  5375. </div>
  5376. </div>
  5377. <div class="noWorksS">
  5378. <div
  5379. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5380. :key="sIndex"
  5381. class="noWorksName"
  5382. :class="{ isWork: s.type == '2' }"
  5383. >
  5384. {{ s.student }}
  5385. </div>
  5386. </div>
  5387. </div>
  5388. <div
  5389. v-if="
  5390. tType &&
  5391. ((tType == 2 && sIsOpen == true) ||
  5392. tType == 1 ||
  5393. tType == 4) &&
  5394. tool.tool.indexOf(7) != -1
  5395. "
  5396. class="worksBox"
  5397. >
  5398. <div
  5399. class="zuoyeYulan"
  5400. v-if="
  5401. worksStudent2.length &&
  5402. worksStudent2[toolIndex].length > 0
  5403. "
  5404. >
  5405. <div class="worksTop">
  5406. <div>作业预览</div>
  5407. <div
  5408. class="corOpen"
  5409. @click="contract(toolIndex)"
  5410. v-if="
  5411. worksStudent2[toolIndex].length > 6 &&
  5412. isCloseList[toolIndex].isClose == 0
  5413. "
  5414. >
  5415. 收缩
  5416. </div>
  5417. <div
  5418. class="corOpen"
  5419. @click="contract(toolIndex)"
  5420. v-if="isCloseList[toolIndex].isClose == 1"
  5421. >
  5422. 展开
  5423. </div>
  5424. </div>
  5425. </div>
  5426. <div
  5427. class="worksDetailBox"
  5428. v-if="
  5429. worksStudent2.length &&
  5430. worksStudent2[toolIndex].length > 0
  5431. "
  5432. >
  5433. <div
  5434. class="works"
  5435. style="
  5436. width: 200px;
  5437. height: 140px;
  5438. margin: 10px 10px 10px 0;
  5439. border-radius: 15px;
  5440. box-shadow: 0 0 6px 1px #dfdada;
  5441. "
  5442. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5443. ? worksStudent2[toolIndex]
  5444. : worksStudent2[toolIndex].slice(0, 6)"
  5445. :key="wIndex"
  5446. >
  5447. <!-- @click="previewImg(w.works)" -->
  5448. <div class="workImg">
  5449. <img :src="w.works" @click="previewImg(w.works)" alt />
  5450. <div
  5451. class="answerScore"
  5452. v-if="w.score"
  5453. @click.stop="openScore(w)"
  5454. :class="{
  5455. rightW:
  5456. w.userid == userid || tType == 1 || tType == 4,
  5457. }"
  5458. >
  5459. {{ JSON.parse(w.score).wScore }}分
  5460. </div>
  5461. <div
  5462. class="answerScore"
  5463. @click.stop="openScore(w)"
  5464. v-else-if="courseDetail.userid == userid"
  5465. :class="{
  5466. rightW:
  5467. w.userid == userid || tType == 1 || tType == 4,
  5468. }"
  5469. >
  5470. 评分
  5471. </div>
  5472. <img
  5473. class="deleteImg"
  5474. src="../../assets/deleteworks.png"
  5475. v-if="w.userid == userid || tType == 1 || tType == 4"
  5476. @click.stop="deleteWorks(w.wid)"
  5477. alt
  5478. />
  5479. </div>
  5480. <div class="comment" style="min-width: 200px">
  5481. <div class="worksName">
  5482. <div>{{ w.sName }}</div>
  5483. </div>
  5484. <div class="commentList">
  5485. <div class="commentList">
  5486. <div
  5487. class="commentImg"
  5488. @click="
  5489. isLikes(w.wid, userid, 1, null, w.isLikes)
  5490. "
  5491. >
  5492. <img
  5493. :src="w.isLikes == true ? likes : noLikes"
  5494. alt=""
  5495. />
  5496. </div>
  5497. <div>{{ w.likesCount }}</div>
  5498. </div>
  5499. <div class="commentList" style="margin-right: 15px">
  5500. <div
  5501. class="commentImg"
  5502. @click="commentOther(w, toolIndex, wIndex)"
  5503. >
  5504. <img
  5505. src="../../assets/icon/comment/comment.png"
  5506. alt=""
  5507. />
  5508. </div>
  5509. <div>{{ w.commentCount }}</div>
  5510. </div>
  5511. </div>
  5512. </div>
  5513. </div>
  5514. </div>
  5515. <div class="noWorksS">
  5516. <div
  5517. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5518. :key="sIndex"
  5519. class="noWorksName"
  5520. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5521. :class="{ isWork: s.type == '2' }"
  5522. >
  5523. {{ s.student }}
  5524. </div>
  5525. </div>
  5526. </div>
  5527. <div
  5528. v-if="
  5529. tType &&
  5530. ((tType == 2 && sIsOpen == true) ||
  5531. tType == 1 ||
  5532. tType == 4) &&
  5533. tool.tool.indexOf(26) != -1
  5534. "
  5535. class="worksBox"
  5536. >
  5537. <div
  5538. class="zuoyeYulan"
  5539. v-if="
  5540. worksStudent2.length &&
  5541. worksStudent2[toolIndex].length > 0
  5542. "
  5543. >
  5544. <div class="worksTop">
  5545. <div>作业预览</div>
  5546. <div
  5547. class="corOpen"
  5548. @click="contract(toolIndex)"
  5549. v-if="
  5550. worksStudent2[toolIndex].length > 6 &&
  5551. isCloseList[toolIndex].isClose == 0
  5552. "
  5553. >
  5554. 收缩
  5555. </div>
  5556. <div
  5557. class="corOpen"
  5558. @click="contract(toolIndex)"
  5559. v-if="isCloseList[toolIndex].isClose == 1"
  5560. >
  5561. 展开
  5562. </div>
  5563. </div>
  5564. </div>
  5565. <div
  5566. class="worksDetailBox"
  5567. v-if="
  5568. worksStudent2.length &&
  5569. worksStudent2[toolIndex].length > 0
  5570. "
  5571. >
  5572. <div
  5573. class="works"
  5574. style="width: 240px; height: 140px; overflow: hidden"
  5575. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5576. ? worksStudent2[toolIndex]
  5577. : worksStudent2[toolIndex].slice(0, 6)"
  5578. :key="wIndex"
  5579. :class="w.type == 1 ? 'isTypeOne' : ''"
  5580. >
  5581. <div class="workImg" v-if="w.type == 0">
  5582. <img :src="w.works" @click="previewImg(w.works)" alt />
  5583. <img
  5584. class="deleteImg"
  5585. src="../../assets/deleteworks.png"
  5586. v-if="w.userid == userid || tType == 1 || tType == 4"
  5587. @click.stop="deleteWorks(w.wid)"
  5588. alt
  5589. />
  5590. </div>
  5591. <div class="workImg" v-if="w.type == 1">
  5592. <img :src="word" @click="openFile(w.works)" alt />
  5593. <img
  5594. class="deleteImg"
  5595. src="../../assets/deleteworks.png"
  5596. v-if="w.userid == userid || tType == 1 || tType == 4"
  5597. @click.stop="deleteWorks(w.wid)"
  5598. alt
  5599. />
  5600. </div>
  5601. <div class="worksName">
  5602. <div>{{ w.sName }}</div>
  5603. </div>
  5604. </div>
  5605. </div>
  5606. <div class="noWorksS">
  5607. <div
  5608. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5609. :key="sIndex"
  5610. class="noWorksName"
  5611. :class="{ isWork: s.type == '2' }"
  5612. >
  5613. {{ s.student }}
  5614. </div>
  5615. </div>
  5616. </div>
  5617. <div
  5618. v-if="
  5619. tType &&
  5620. ((tType == 2 && sIsOpen == true) ||
  5621. tType == 1 ||
  5622. tType == 4) &&
  5623. tool.tool.indexOf(40) != -1
  5624. "
  5625. class="worksBox"
  5626. >
  5627. <div
  5628. class="zuoyeYulan"
  5629. v-if="
  5630. worksStudent2.length &&
  5631. worksStudent2[toolIndex].length > 0
  5632. "
  5633. >
  5634. <div class="worksTop">
  5635. <div>作业预览</div>
  5636. <div
  5637. class="corOpen"
  5638. @click="contract(toolIndex)"
  5639. v-if="
  5640. worksStudent2[toolIndex].length > 6 &&
  5641. isCloseList[toolIndex].isClose == 0
  5642. "
  5643. >
  5644. 收缩
  5645. </div>
  5646. <div
  5647. class="corOpen"
  5648. @click="contract(toolIndex)"
  5649. v-if="isCloseList[toolIndex].isClose == 1"
  5650. >
  5651. 展开
  5652. </div>
  5653. </div>
  5654. </div>
  5655. <div
  5656. class="worksDetailBox"
  5657. v-if="
  5658. worksStudent2.length &&
  5659. worksStudent2[toolIndex].length > 0
  5660. "
  5661. >
  5662. <div
  5663. class="works"
  5664. style="
  5665. width: 200px;
  5666. height: 140px;
  5667. margin: 10px 10px 10px 0;
  5668. border-radius: 15px;
  5669. box-shadow: 0 0 6px 1px #dfdada;
  5670. "
  5671. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5672. ? worksStudent2[toolIndex]
  5673. : worksStudent2[toolIndex].slice(0, 6)"
  5674. :key="wIndex"
  5675. :class="w.type == 1 ? 'isTypeOne' : ''"
  5676. >
  5677. <div class="workImg">
  5678. <img
  5679. src="../../assets/icon/works/noImg.png"
  5680. @click="openPj(w.works, toolIndex)"
  5681. alt
  5682. />
  5683. <img
  5684. class="deleteImg"
  5685. src="../../assets/deleteworks.png"
  5686. v-if="w.userid == userid || tType == 1 || tType == 4"
  5687. @click.stop="deleteWorks(w.wid)"
  5688. alt
  5689. />
  5690. </div>
  5691. <div class="comment" style="min-width: 200px">
  5692. <div class="worksName">
  5693. <div>{{ w.sName }}</div>
  5694. </div>
  5695. <div class="commentList">
  5696. <div class="commentList">
  5697. <div
  5698. class="commentImg"
  5699. @click="
  5700. isLikes(w.wid, userid, 1, null, w.isLikes)
  5701. "
  5702. >
  5703. <img
  5704. :src="w.isLikes == true ? likes : noLikes"
  5705. alt=""
  5706. />
  5707. </div>
  5708. <div>{{ w.likesCount }}</div>
  5709. </div>
  5710. <div class="commentList" style="margin-right: 15px">
  5711. <div
  5712. class="commentImg"
  5713. @click="commentOther(w, toolIndex, wIndex)"
  5714. >
  5715. <img
  5716. src="../../assets/icon/comment/comment.png"
  5717. alt=""
  5718. />
  5719. </div>
  5720. <div>{{ w.commentCount }}</div>
  5721. </div>
  5722. </div>
  5723. </div>
  5724. </div>
  5725. </div>
  5726. <div class="noWorksS">
  5727. <div
  5728. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5729. :key="sIndex"
  5730. class="noWorksName"
  5731. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5732. :class="{ isWork: s.type == '2' }"
  5733. >
  5734. {{ s.student }}
  5735. </div>
  5736. </div>
  5737. </div>
  5738. <div
  5739. v-if="
  5740. tType &&
  5741. ((tType == 2 && sIsOpen == true) ||
  5742. tType == 1 ||
  5743. tType == 4) &&
  5744. tool.tool.indexOf(41) != -1
  5745. "
  5746. class="worksBox"
  5747. >
  5748. <div class="noWorksS">
  5749. <div
  5750. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5751. :key="sIndex"
  5752. class="noWorksName"
  5753. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5754. :class="{ isWork: s.type == '2' }"
  5755. >
  5756. {{ s.student }}
  5757. </div>
  5758. </div>
  5759. <div
  5760. class="zuoyeYulan"
  5761. v-if="
  5762. worksStudent2.length &&
  5763. worksStudent2[toolIndex].length > 0
  5764. "
  5765. >
  5766. <div class="worksTop">
  5767. <div>作业预览</div>
  5768. <div
  5769. class="corOpen"
  5770. @click="contract(toolIndex)"
  5771. v-if="
  5772. worksStudent2[toolIndex].length > 6 &&
  5773. isCloseList[toolIndex].isClose == 0
  5774. "
  5775. >
  5776. 收缩
  5777. </div>
  5778. <div
  5779. class="corOpen"
  5780. @click="contract(toolIndex)"
  5781. v-if="isCloseList[toolIndex].isClose == 1"
  5782. >
  5783. 展开
  5784. </div>
  5785. </div>
  5786. </div>
  5787. <div
  5788. class="worksDetailBox"
  5789. v-if="
  5790. worksStudent2.length &&
  5791. worksStudent2[toolIndex].length > 0
  5792. "
  5793. >
  5794. <div
  5795. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5796. ? worksStudent2[toolIndex]
  5797. : worksStudent2[toolIndex].slice(0, 6)"
  5798. :key="wIndex"
  5799. class="isWorksName"
  5800. @click="openXz(w, toolIndex)"
  5801. >
  5802. {{ w.sName }}
  5803. <img
  5804. class="deleteImg deleteImg2"
  5805. src="../../assets/deleteworks.png"
  5806. v-if="w.userid == userid || tType == 1 || tType == 4"
  5807. @click.stop="deleteWorks(w.wid)"
  5808. alt
  5809. />
  5810. </div>
  5811. </div>
  5812. </div>
  5813. <div
  5814. v-if="
  5815. tType &&
  5816. ((tType == 2 && sIsOpen == true) ||
  5817. tType == 1 ||
  5818. tType == 4) &&
  5819. tool.tool.indexOf(47) != -1
  5820. "
  5821. class="worksBox"
  5822. >
  5823. <div class="noWorksS">
  5824. <div
  5825. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5826. :key="sIndex"
  5827. class="noWorksName"
  5828. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5829. :class="{ isWork: s.type == '2' }"
  5830. >
  5831. {{ s.student }}
  5832. </div>
  5833. </div>
  5834. <div
  5835. class="zuoyeYulan"
  5836. v-if="
  5837. worksStudent2.length &&
  5838. worksStudent2[toolIndex].length > 0
  5839. "
  5840. >
  5841. <div class="worksTop">
  5842. <div>作业预览</div>
  5843. <div
  5844. class="corOpen"
  5845. @click="contract(toolIndex)"
  5846. v-if="
  5847. worksStudent2[toolIndex].length > 6 &&
  5848. isCloseList[toolIndex].isClose == 0
  5849. "
  5850. >
  5851. 收缩
  5852. </div>
  5853. <div
  5854. class="corOpen"
  5855. @click="contract(toolIndex)"
  5856. v-if="isCloseList[toolIndex].isClose == 1"
  5857. >
  5858. 展开
  5859. </div>
  5860. </div>
  5861. </div>
  5862. <div
  5863. class="worksDetailBox"
  5864. v-if="
  5865. worksStudent2.length &&
  5866. worksStudent2[toolIndex].length > 0
  5867. "
  5868. >
  5869. <!-- @click="openXz(w, toolIndex)" -->
  5870. <div
  5871. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5872. ? worksStudent2[toolIndex]
  5873. : worksStudent2[toolIndex].slice(0, 6)"
  5874. :key="wIndex"
  5875. class="isWorksName"
  5876. @click="openSen(w, toolIndex)"
  5877. >
  5878. {{ w.sName }}
  5879. <img
  5880. class="deleteImg deleteImg2"
  5881. src="../../assets/deleteworks.png"
  5882. v-if="w.userid == userid || tType == 1 || tType == 4"
  5883. @click.stop="deleteWorks(w.wid)"
  5884. alt
  5885. />
  5886. </div>
  5887. </div>
  5888. </div>
  5889. <div
  5890. v-if="
  5891. tType &&
  5892. ((tType == 2 && sIsOpen == true) ||
  5893. tType == 1 ||
  5894. tType == 4) &&
  5895. tool.tool.indexOf(48) != -1
  5896. "
  5897. class="worksBox"
  5898. >
  5899. <div
  5900. class="zuoyeYulan"
  5901. v-if="
  5902. worksStudent2.length &&
  5903. worksStudent2[toolIndex].length > 0
  5904. "
  5905. >
  5906. <div class="worksTop">
  5907. <div>作业预览</div>
  5908. <div
  5909. class="corOpen"
  5910. @click="contract(toolIndex)"
  5911. v-if="
  5912. worksStudent2[toolIndex].length > 6 &&
  5913. isCloseList[toolIndex].isClose == 0
  5914. "
  5915. >
  5916. 收缩
  5917. </div>
  5918. <div
  5919. class="corOpen"
  5920. @click="contract(toolIndex)"
  5921. v-if="isCloseList[toolIndex].isClose == 1"
  5922. >
  5923. 展开
  5924. </div>
  5925. </div>
  5926. </div>
  5927. <div
  5928. class="worksDetailBox"
  5929. v-if="
  5930. worksStudent2.length &&
  5931. worksStudent2[toolIndex].length > 0
  5932. "
  5933. >
  5934. <div
  5935. class="works"
  5936. style="
  5937. width: 200px;
  5938. height: 140px;
  5939. margin: 10px 10px 10px 0;
  5940. border-radius: 15px;
  5941. box-shadow: 0 0 6px 1px #dfdada;
  5942. "
  5943. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5944. ? worksStudent2[toolIndex]
  5945. : worksStudent2[toolIndex].slice(0, 6)"
  5946. :key="wIndex"
  5947. :class="w.type == 1 ? 'isTypeOne' : ''"
  5948. >
  5949. <div class="workImg">
  5950. <img :src="word" @click="openTable(w)" alt />
  5951. <!-- @click="openFile(w.works)" -->
  5952. <div
  5953. class="answerScore"
  5954. v-if="w.score"
  5955. @click.stop="openScore(w)"
  5956. :class="{
  5957. rightW:
  5958. w.userid == userid ||
  5959. tType == 1 ||
  5960. tType == 4 ||
  5961. w.ateacher == userid,
  5962. }"
  5963. >
  5964. {{ JSON.parse(w.score).wScore }}分
  5965. </div>
  5966. <div
  5967. class="answerScore"
  5968. @click.stop="openScore(w)"
  5969. v-else-if="courseDetail.userid == userid"
  5970. :class="{
  5971. rightW:
  5972. w.userid == userid ||
  5973. tType == 1 ||
  5974. tType == 4 ||
  5975. w.ateacher == userid,
  5976. }"
  5977. >
  5978. 评分
  5979. </div>
  5980. <img
  5981. class="deleteImg"
  5982. src="../../assets/deleteworks.png"
  5983. v-if="w.userid == userid || tType == 1 || tType == 4"
  5984. @click.stop="deleteWorks(w.wid)"
  5985. alt
  5986. />
  5987. </div>
  5988. <div class="comment" style="min-width: 200px">
  5989. <div class="worksName">
  5990. <div>{{ w.sName }}</div>
  5991. </div>
  5992. <div class="commentList">
  5993. <div class="commentList">
  5994. <div
  5995. class="commentImg"
  5996. @click="
  5997. isLikes(w.wid, userid, 1, null, w.isLikes)
  5998. "
  5999. >
  6000. <img
  6001. :src="w.isLikes == true ? likes : noLikes"
  6002. alt=""
  6003. />
  6004. </div>
  6005. <div>{{ w.likesCount }}</div>
  6006. </div>
  6007. <div class="commentList" style="margin-right: 15px">
  6008. <div
  6009. class="commentImg"
  6010. @click="commentOther(w, toolIndex, wIndex)"
  6011. >
  6012. <img
  6013. src="../../assets/icon/comment/comment.png"
  6014. alt=""
  6015. />
  6016. </div>
  6017. <div>{{ w.commentCount }}</div>
  6018. </div>
  6019. </div>
  6020. </div>
  6021. </div>
  6022. </div>
  6023. <div class="noWorksS">
  6024. <div
  6025. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6026. :key="sIndex"
  6027. class="noWorksName"
  6028. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6029. :class="{ isWork: s.type == '2' }"
  6030. >
  6031. {{ s.student }}
  6032. </div>
  6033. </div>
  6034. </div>
  6035. <div
  6036. v-if="
  6037. tType &&
  6038. ((tType == 2 && sIsOpen == true) ||
  6039. tType == 1 ||
  6040. tType == 4) &&
  6041. tool.tool.indexOf(52) != -1
  6042. "
  6043. class="worksBox"
  6044. >
  6045. <div
  6046. class="zuoyeYulan"
  6047. v-if="
  6048. worksStudent2.length &&
  6049. worksStudent2[toolIndex].length > 0
  6050. "
  6051. >
  6052. <div class="worksTop">
  6053. <div>作业预览</div>
  6054. <div
  6055. class="corOpen"
  6056. @click="contract(toolIndex)"
  6057. v-if="
  6058. worksStudent2[toolIndex].length > 6 &&
  6059. isCloseList[toolIndex].isClose == 0
  6060. "
  6061. >
  6062. 收缩
  6063. </div>
  6064. <div
  6065. class="corOpen"
  6066. @click="contract(toolIndex)"
  6067. v-if="isCloseList[toolIndex].isClose == 1"
  6068. >
  6069. 展开
  6070. </div>
  6071. </div>
  6072. </div>
  6073. <div
  6074. class="worksDetailBox"
  6075. v-if="
  6076. worksStudent2.length &&
  6077. worksStudent2[toolIndex].length > 0
  6078. "
  6079. >
  6080. <div
  6081. class="works"
  6082. style="
  6083. width: 200px;
  6084. height: 140px;
  6085. margin: 10px 10px 10px 0;
  6086. border-radius: 15px;
  6087. box-shadow: 0 0 6px 1px #dfdada;
  6088. "
  6089. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6090. ? worksStudent2[toolIndex]
  6091. : worksStudent2[toolIndex].slice(0, 6)"
  6092. :key="wIndex"
  6093. :class="w.type == 1 ? 'isTypeOne' : ''"
  6094. >
  6095. <div class="workImg">
  6096. <img :src="word" @click="openWord(w)" alt />
  6097. <!-- @click="openFile(w.works)" -->
  6098. <div
  6099. class="answerScore"
  6100. v-if="w.score"
  6101. @click.stop="openScore(w)"
  6102. :class="{
  6103. rightW:
  6104. w.userid == userid ||
  6105. tType == 1 ||
  6106. tType == 4 ||
  6107. w.ateacher == userid,
  6108. }"
  6109. >
  6110. {{ JSON.parse(w.score).wScore }}分
  6111. </div>
  6112. <div
  6113. class="answerScore"
  6114. @click.stop="openScore(w)"
  6115. v-else-if="courseDetail.userid == userid"
  6116. :class="{
  6117. rightW:
  6118. w.userid == userid ||
  6119. tType == 1 ||
  6120. tType == 4 ||
  6121. w.ateacher == userid,
  6122. }"
  6123. >
  6124. 评分
  6125. </div>
  6126. <img
  6127. class="deleteImg"
  6128. src="../../assets/deleteworks.png"
  6129. v-if="w.userid == userid || tType == 1 || tType == 4"
  6130. @click.stop="deleteWorks(w.wid)"
  6131. alt
  6132. />
  6133. </div>
  6134. <div class="comment" style="min-width: 200px">
  6135. <div class="worksName">
  6136. <div>{{ w.sName }}</div>
  6137. </div>
  6138. <div class="commentList">
  6139. <div class="commentList">
  6140. <div
  6141. class="commentImg"
  6142. @click="
  6143. isLikes(w.wid, userid, 1, null, w.isLikes)
  6144. "
  6145. >
  6146. <img
  6147. :src="w.isLikes == true ? likes : noLikes"
  6148. alt=""
  6149. />
  6150. </div>
  6151. <div>{{ w.likesCount }}</div>
  6152. </div>
  6153. <div class="commentList" style="margin-right: 15px">
  6154. <div
  6155. class="commentImg"
  6156. @click="commentOther(w, toolIndex, wIndex)"
  6157. >
  6158. <img
  6159. src="../../assets/icon/comment/comment.png"
  6160. alt=""
  6161. />
  6162. </div>
  6163. <div>{{ w.commentCount }}</div>
  6164. </div>
  6165. </div>
  6166. </div>
  6167. </div>
  6168. </div>
  6169. <div class="noWorksS">
  6170. <div
  6171. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6172. :key="sIndex"
  6173. class="noWorksName"
  6174. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6175. :class="{ isWork: s.type == '2' }"
  6176. >
  6177. {{ s.student }}
  6178. </div>
  6179. </div>
  6180. </div>
  6181. </div>
  6182. </div>
  6183. <div
  6184. class="vedioBox"
  6185. v-if="
  6186. arrayToArray(tool.tool, isWorkTool).length &&
  6187. (noWorksS[toolIndex].length || worksStudent[toolIndex].length)
  6188. "
  6189. >
  6190. <div
  6191. class="queTop"
  6192. style="
  6193. font-size: 20px;
  6194. padding: 15px 0 15px 30px;
  6195. font-weight: bold;
  6196. "
  6197. >
  6198. 工作区
  6199. </div>
  6200. <div class="tool_work_box">
  6201. <div
  6202. v-if="
  6203. tType &&
  6204. ((tType == 2 && sIsOpen == true) ||
  6205. tType == 1 ||
  6206. tType == 4) &&
  6207. tool.tool.indexOf(16) != -1
  6208. "
  6209. class="worksBox"
  6210. >
  6211. <div
  6212. class="zuoyeYulan"
  6213. v-if="
  6214. worksStudent.length && worksStudent[toolIndex].length > 0
  6215. "
  6216. >
  6217. <div class="worksTop">
  6218. <div>作业预览</div>
  6219. <div
  6220. class="corOpen"
  6221. @click="contract(toolIndex)"
  6222. v-if="
  6223. worksStudent[toolIndex].length > 6 &&
  6224. isCloseList[toolIndex].isClose == 0
  6225. "
  6226. >
  6227. 收缩
  6228. </div>
  6229. <div
  6230. class="corOpen"
  6231. @click="contract(toolIndex)"
  6232. v-if="isCloseList[toolIndex].isClose == 1"
  6233. >
  6234. 展开
  6235. </div>
  6236. </div>
  6237. </div>
  6238. <div
  6239. class="worksDetailBox"
  6240. v-if="
  6241. worksStudent.length && worksStudent[toolIndex].length > 0
  6242. "
  6243. >
  6244. <div
  6245. class="works"
  6246. style="
  6247. width: 200px;
  6248. height: 140px;
  6249. margin: 10px 10px 10px 0;
  6250. border-radius: 15px;
  6251. box-shadow: 0 0 6px 1px #dfdada;
  6252. "
  6253. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6254. ? worksStudent[toolIndex]
  6255. : worksStudent[toolIndex].slice(0, 6)"
  6256. :key="wIndex"
  6257. :class="w.type == 1 ? 'isTypeOne' : ''"
  6258. >
  6259. <div class="workImg" v-if="w.type == 0">
  6260. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6261. <img :src="w.works" @click="previewImg(w.works)" alt />
  6262. <div
  6263. class="answerScore"
  6264. v-if="w.score"
  6265. @click.stop="openScore(w)"
  6266. :class="{
  6267. rightW:
  6268. w.userid == userid ||
  6269. tType == 1 ||
  6270. tType == 4 ||
  6271. w.ateacher == userid,
  6272. }"
  6273. >
  6274. {{ JSON.parse(w.score).wScore }}分
  6275. </div>
  6276. <div
  6277. class="answerScore"
  6278. @click.stop="openScore(w)"
  6279. v-else-if="courseDetail.userid == userid"
  6280. :class="{
  6281. rightW:
  6282. w.userid == userid ||
  6283. tType == 1 ||
  6284. tType == 4 ||
  6285. w.ateacher == userid,
  6286. }"
  6287. >
  6288. 评分
  6289. </div>
  6290. <img
  6291. class="deleteImg"
  6292. src="../../assets/deleteworks.png"
  6293. v-if="w.userid == userid || tType == 1 || tType == 4"
  6294. @click.stop="deleteWorks(w.wid)"
  6295. alt
  6296. />
  6297. </div>
  6298. <div class="workImg" v-if="w.type == 1">
  6299. <img :src="word" @click="openFile(w.works)" alt />
  6300. <!-- @click="openFile(w.works)" -->
  6301. <div
  6302. class="answerScore"
  6303. v-if="w.score"
  6304. @click.stop="openScore(w)"
  6305. :class="{
  6306. rightW:
  6307. w.userid == userid ||
  6308. tType == 1 ||
  6309. tType == 4 ||
  6310. w.ateacher == userid,
  6311. }"
  6312. >
  6313. {{ JSON.parse(w.score).wScore }}分
  6314. </div>
  6315. <div
  6316. class="answerScore"
  6317. @click.stop="openScore(w)"
  6318. v-else-if="courseDetail.userid == userid"
  6319. :class="{
  6320. rightW:
  6321. w.userid == userid ||
  6322. tType == 1 ||
  6323. tType == 4 ||
  6324. w.ateacher == userid,
  6325. }"
  6326. >
  6327. 评分
  6328. </div>
  6329. <img
  6330. class="deleteImg"
  6331. src="../../assets/deleteworks.png"
  6332. v-if="w.userid == userid || tType == 1 || tType == 4"
  6333. @click.stop="deleteWorks(w.wid)"
  6334. alt
  6335. />
  6336. </div>
  6337. <div class="workImg" v-if="w.type == 3">
  6338. <img
  6339. style="cursor: pointer"
  6340. :src="video"
  6341. @click="openVideo(w)"
  6342. alt
  6343. />
  6344. <!-- @click="openVideo(w.works)" -->
  6345. <div
  6346. class="answerScore"
  6347. v-if="w.score"
  6348. @click.stop="openScore(w)"
  6349. :class="{
  6350. rightW:
  6351. w.userid == userid ||
  6352. tType == 1 ||
  6353. tType == 4 ||
  6354. w.ateacher == userid,
  6355. }"
  6356. >
  6357. {{ JSON.parse(w.score).wScore }}分
  6358. </div>
  6359. <div
  6360. class="answerScore"
  6361. @click.stop="openScore(w)"
  6362. v-else-if="courseDetail.userid == userid"
  6363. :class="{
  6364. rightW:
  6365. w.userid == userid ||
  6366. tType == 1 ||
  6367. tType == 4 ||
  6368. w.ateacher == userid,
  6369. }"
  6370. >
  6371. 评分
  6372. </div>
  6373. <img
  6374. class="deleteImg"
  6375. src="../../assets/deleteworks.png"
  6376. v-if="w.userid == userid || tType == 1 || tType == 4"
  6377. @click.stop="deleteWorks(w.wid)"
  6378. alt
  6379. />
  6380. </div>
  6381. <div class="workImg" v-if="w.type == 12">
  6382. <img
  6383. style="cursor: pointer"
  6384. :src="word2"
  6385. @click="downloadFile(w.works)"
  6386. alt
  6387. />
  6388. <!-- @click="openVideo(w.works)" -->
  6389. <div
  6390. class="answerScore"
  6391. v-if="w.score"
  6392. @click.stop="openScore(w)"
  6393. :class="{
  6394. rightW:
  6395. w.userid == userid ||
  6396. tType == 1 ||
  6397. tType == 4 ||
  6398. w.ateacher == userid,
  6399. }"
  6400. >
  6401. {{ JSON.parse(w.score).wScore }}分
  6402. </div>
  6403. <div
  6404. class="answerScore"
  6405. @click.stop="openScore(w)"
  6406. v-else-if="courseDetail.userid == userid"
  6407. :class="{
  6408. rightW:
  6409. w.userid == userid ||
  6410. tType == 1 ||
  6411. tType == 4 ||
  6412. w.ateacher == userid,
  6413. }"
  6414. >
  6415. 评分
  6416. </div>
  6417. <img
  6418. class="deleteImg"
  6419. src="../../assets/deleteworks.png"
  6420. v-if="w.userid == userid || tType == 1 || tType == 4"
  6421. @click.stop="deleteWorks(w.wid)"
  6422. alt
  6423. />
  6424. </div>
  6425. <div class="comment" style="min-width: 200px">
  6426. <div class="worksName">
  6427. <div>{{ w.sName }}</div>
  6428. </div>
  6429. <div class="commentList">
  6430. <div class="commentList">
  6431. <div
  6432. class="commentImg"
  6433. @click="
  6434. isLikes(w.wid, userid, 1, null, w.isLikes)
  6435. "
  6436. >
  6437. <img
  6438. :src="w.isLikes == true ? likes : noLikes"
  6439. alt=""
  6440. />
  6441. </div>
  6442. <div>{{ w.likesCount }}</div>
  6443. </div>
  6444. <div class="commentList" style="margin-right: 15px">
  6445. <div
  6446. class="commentImg"
  6447. @click="commentOther(w, toolIndex, wIndex)"
  6448. >
  6449. <img
  6450. src="../../assets/icon/comment/comment.png"
  6451. alt=""
  6452. />
  6453. </div>
  6454. <div>{{ w.commentCount }}</div>
  6455. </div>
  6456. </div>
  6457. </div>
  6458. </div>
  6459. </div>
  6460. <div class="noWorksS">
  6461. <div
  6462. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6463. :key="sIndex"
  6464. class="noWorksName"
  6465. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  6466. :class="{ isWork: s.type == '2' }"
  6467. >
  6468. {{ s.student }}
  6469. </div>
  6470. </div>
  6471. </div>
  6472. <div
  6473. v-if="
  6474. tType &&
  6475. ((tType == 2 && sIsOpen == true) ||
  6476. tType == 1 ||
  6477. tType == 4) &&
  6478. tool.tool.indexOf(32) != -1
  6479. "
  6480. class="worksBox"
  6481. >
  6482. <div
  6483. class="zuoyeYulan"
  6484. v-if="
  6485. worksStudent.length && worksStudent[toolIndex].length > 0
  6486. "
  6487. >
  6488. <div class="worksTop">
  6489. <div>作业预览</div>
  6490. <div
  6491. class="corOpen"
  6492. @click="contract(toolIndex)"
  6493. v-if="
  6494. worksStudent[toolIndex].length > 6 &&
  6495. isCloseList[toolIndex].isClose == 0
  6496. "
  6497. >
  6498. 收缩
  6499. </div>
  6500. <div
  6501. class="corOpen"
  6502. @click="contract(toolIndex)"
  6503. v-if="isCloseList[toolIndex].isClose == 1"
  6504. >
  6505. 展开
  6506. </div>
  6507. </div>
  6508. </div>
  6509. <div
  6510. class="worksDetailBox"
  6511. v-if="
  6512. worksStudent.length && worksStudent[toolIndex].length > 0
  6513. "
  6514. >
  6515. <div
  6516. class="works"
  6517. style="
  6518. width: 200px;
  6519. height: 140px;
  6520. margin: 10px 10px 10px 0;
  6521. border-radius: 15px;
  6522. box-shadow: 0 0 6px 1px #dfdada;
  6523. "
  6524. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6525. ? worksStudent[toolIndex]
  6526. : worksStudent[toolIndex].slice(0, 6)"
  6527. :key="wIndex"
  6528. :class="w.type == 1 ? 'isTypeOne' : ''"
  6529. >
  6530. <div class="workImg">
  6531. <img :src="word2" @click="downloadFile(w.works)" alt />
  6532. <div
  6533. class="answerScore"
  6534. v-if="w.score"
  6535. @click.stop="openScore(w)"
  6536. :class="{
  6537. rightW:
  6538. w.userid == userid ||
  6539. tType == 1 ||
  6540. tType == 4 ||
  6541. w.ateacher == userid,
  6542. }"
  6543. >
  6544. {{ JSON.parse(w.score).wScore }}分
  6545. </div>
  6546. <div
  6547. class="answerScore"
  6548. @click.stop="openScore(w)"
  6549. v-else-if="courseDetail.userid == userid"
  6550. :class="{
  6551. rightW:
  6552. w.userid == userid ||
  6553. tType == 1 ||
  6554. tType == 4 ||
  6555. w.ateacher == userid,
  6556. }"
  6557. >
  6558. 评分
  6559. </div>
  6560. <img
  6561. class="deleteImg"
  6562. src="../../assets/deleteworks.png"
  6563. v-if="w.userid == userid || tType == 1 || tType == 4"
  6564. @click.stop="deleteWorks(w.wid)"
  6565. alt
  6566. />
  6567. </div>
  6568. <div class="comment" style="min-width: 200px">
  6569. <div class="worksName">
  6570. <div>{{ w.sName }}</div>
  6571. </div>
  6572. <div class="commentList">
  6573. <div class="commentList">
  6574. <div
  6575. class="commentImg"
  6576. @click="
  6577. isLikes(w.wid, userid, 1, null, w.isLikes)
  6578. "
  6579. >
  6580. <img
  6581. :src="w.isLikes == true ? likes : noLikes"
  6582. alt=""
  6583. />
  6584. </div>
  6585. <div>{{ w.likesCount }}</div>
  6586. </div>
  6587. <div class="commentList" style="margin-right: 15px">
  6588. <div
  6589. class="commentImg"
  6590. @click="commentOther(w, toolIndex, wIndex)"
  6591. >
  6592. <img
  6593. src="../../assets/icon/comment/comment.png"
  6594. alt=""
  6595. />
  6596. </div>
  6597. <div>{{ w.commentCount }}</div>
  6598. </div>
  6599. </div>
  6600. </div>
  6601. </div>
  6602. </div>
  6603. <div class="noWorksS">
  6604. <div
  6605. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6606. :key="sIndex"
  6607. class="noWorksName"
  6608. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  6609. :class="{ isWork: s.type == '2' }"
  6610. >
  6611. {{ s.student }}
  6612. </div>
  6613. </div>
  6614. </div>
  6615. <div
  6616. v-if="
  6617. tType &&
  6618. ((tType == 2 && sIsOpen == true) ||
  6619. tType == 1 ||
  6620. tType == 4) &&
  6621. tool.tool.indexOf(57) != -1
  6622. "
  6623. class="worksBox"
  6624. >
  6625. <div
  6626. class="zuoyeYulan"
  6627. v-if="
  6628. worksStudent.length && worksStudent[toolIndex].length > 0
  6629. "
  6630. >
  6631. <div class="worksTop">
  6632. <div>作业预览</div>
  6633. <div
  6634. class="corOpen"
  6635. @click="contract(toolIndex)"
  6636. v-if="
  6637. worksStudent[toolIndex].length > 6 &&
  6638. isCloseList[toolIndex].isClose == 0
  6639. "
  6640. >
  6641. 收缩
  6642. </div>
  6643. <div
  6644. class="corOpen"
  6645. @click="contract(toolIndex)"
  6646. v-if="isCloseList[toolIndex].isClose == 1"
  6647. >
  6648. 展开
  6649. </div>
  6650. </div>
  6651. </div>
  6652. <div
  6653. class="worksDetailBox"
  6654. v-if="
  6655. worksStudent.length && worksStudent[toolIndex].length > 0
  6656. "
  6657. >
  6658. <div
  6659. class="works"
  6660. style="
  6661. width: 200px;
  6662. height: 140px;
  6663. margin: 10px 10px 10px 0;
  6664. border-radius: 15px;
  6665. box-shadow: 0 0 6px 1px #dfdada;
  6666. "
  6667. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6668. ? worksStudent[toolIndex]
  6669. : worksStudent[toolIndex].slice(0, 6)"
  6670. :key="wIndex"
  6671. :class="w.type == 1 ? 'isTypeOne' : ''"
  6672. >
  6673. <div class="workImg">
  6674. <img
  6675. :src="word2"
  6676. @click="downloadFile(w.works)"
  6677. v-if="w.type == 12"
  6678. alt
  6679. />
  6680. <img
  6681. :src="word2"
  6682. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  6683. v-else-if="w.type == 15"
  6684. alt
  6685. />
  6686. <div
  6687. class="answerScore"
  6688. v-if="w.score"
  6689. @click.stop="openScore(w)"
  6690. :class="{
  6691. rightW:
  6692. w.userid == userid ||
  6693. tType == 1 ||
  6694. tType == 4 ||
  6695. w.ateacher == userid,
  6696. }"
  6697. >
  6698. {{ JSON.parse(w.score).wScore }}分
  6699. </div>
  6700. <div
  6701. class="answerScore"
  6702. @click.stop="openScore(w)"
  6703. v-else-if="courseDetail.userid == userid"
  6704. :class="{
  6705. rightW:
  6706. w.userid == userid ||
  6707. tType == 1 ||
  6708. tType == 4 ||
  6709. w.ateacher == userid,
  6710. }"
  6711. >
  6712. 评分
  6713. </div>
  6714. <img
  6715. class="deleteImg"
  6716. src="../../assets/deleteworks.png"
  6717. v-if="w.userid == userid || tType == 1 || tType == 4"
  6718. @click.stop="deleteWorks(w.wid)"
  6719. alt
  6720. />
  6721. </div>
  6722. <div class="comment" style="min-width: 200px">
  6723. <div class="worksName">
  6724. <div>{{ w.sName }}</div>
  6725. </div>
  6726. <div class="commentList">
  6727. <div class="commentList">
  6728. <div
  6729. class="commentImg"
  6730. @click="
  6731. isLikes(w.wid, userid, 1, null, w.isLikes)
  6732. "
  6733. >
  6734. <img
  6735. :src="w.isLikes == true ? likes : noLikes"
  6736. alt=""
  6737. />
  6738. </div>
  6739. <div>{{ w.likesCount }}</div>
  6740. </div>
  6741. <div class="commentList" style="margin-right: 15px">
  6742. <div
  6743. class="commentImg"
  6744. @click="commentOther(w, toolIndex, wIndex)"
  6745. >
  6746. <img
  6747. src="../../assets/icon/comment/comment.png"
  6748. alt=""
  6749. />
  6750. </div>
  6751. <div>{{ w.commentCount }}</div>
  6752. </div>
  6753. </div>
  6754. </div>
  6755. </div>
  6756. </div>
  6757. <div class="noWorksS">
  6758. <div
  6759. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6760. :key="sIndex"
  6761. class="noWorksName"
  6762. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  6763. :class="{ isWork: s.type == '2' }"
  6764. >
  6765. {{ s.student }}
  6766. </div>
  6767. </div>
  6768. </div>
  6769. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  6770. <div
  6771. class="zuoyeYulan"
  6772. v-if="
  6773. worksStudent.length && worksStudent[toolIndex].length > 0
  6774. "
  6775. >
  6776. <span>作业预览</span>
  6777. <div
  6778. class="corOpen"
  6779. @click="contract(toolIndex)"
  6780. v-if="
  6781. worksStudent[toolIndex].length > 6 &&
  6782. isCloseList[toolIndex].isClose == 0
  6783. "
  6784. >
  6785. 收缩
  6786. </div>
  6787. <div
  6788. class="corOpen"
  6789. @click="contract(toolIndex)"
  6790. v-if="isCloseList[toolIndex].isClose == 1"
  6791. >
  6792. 展开
  6793. </div>
  6794. </div>
  6795. <div
  6796. class="worksDetailBox"
  6797. v-if="
  6798. worksStudent.length && worksStudent[toolIndex].length > 0
  6799. "
  6800. >
  6801. <div
  6802. class="works"
  6803. style="
  6804. width: 200px;
  6805. height: 140px;
  6806. margin: 10px 10px 10px 0;
  6807. border-radius: 15px;
  6808. box-shadow: 0 0 6px 1px #dfdada;
  6809. "
  6810. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6811. ? worksStudent[toolIndex]
  6812. : worksStudent[toolIndex].slice(0, 6)"
  6813. :key="wIndex"
  6814. :class="w.type == 1 ? 'isTypeOne' : ''"
  6815. >
  6816. <div class="workImg" v-if="w.type == 0">
  6817. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6818. <img :src="w.works" @click="previewImg(w.works)" alt />
  6819. <div
  6820. class="answerScore"
  6821. v-if="w.score"
  6822. @click.stop="openScore(w)"
  6823. :class="{
  6824. rightW:
  6825. w.userid == userid ||
  6826. tType == 1 ||
  6827. tType == 4 ||
  6828. w.ateacher == userid,
  6829. }"
  6830. >
  6831. {{ JSON.parse(w.score).wScore }}分
  6832. </div>
  6833. <div
  6834. class="answerScore"
  6835. @click.stop="openScore(w)"
  6836. v-else-if="courseDetail.userid == userid"
  6837. :class="{
  6838. rightW:
  6839. w.userid == userid ||
  6840. tType == 1 ||
  6841. tType == 4 ||
  6842. w.ateacher == userid,
  6843. }"
  6844. >
  6845. 评分
  6846. </div>
  6847. <img
  6848. class="deleteImg"
  6849. src="../../assets/deleteworks.png"
  6850. v-if="w.userid == userid || tType == 1 || tType == 4"
  6851. @click.stop="deleteWorks(w.wid)"
  6852. alt
  6853. />
  6854. </div>
  6855. <div
  6856. class="workImg"
  6857. style="cursor: pointer"
  6858. v-if="w.type == 1"
  6859. >
  6860. <img :src="word" @click="openFile(w.works)" alt />
  6861. <!-- @click="openFile(w.works)" -->
  6862. <div
  6863. class="answerScore"
  6864. v-if="w.score"
  6865. @click.stop="openScore(w)"
  6866. :class="{
  6867. rightW:
  6868. w.userid == userid ||
  6869. tType == 1 ||
  6870. tType == 4 ||
  6871. w.ateacher == userid,
  6872. }"
  6873. >
  6874. {{ JSON.parse(w.score).wScore }}分
  6875. </div>
  6876. <div
  6877. class="answerScore"
  6878. @click.stop="openScore(w)"
  6879. v-else-if="courseDetail.userid == userid"
  6880. :class="{
  6881. rightW:
  6882. w.userid == userid ||
  6883. tType == 1 ||
  6884. tType == 4 ||
  6885. w.ateacher == userid,
  6886. }"
  6887. >
  6888. 评分
  6889. </div>
  6890. <img
  6891. class="deleteImg"
  6892. src="../../assets/deleteworks.png"
  6893. v-if="w.userid == userid || tType == 1 || tType == 4"
  6894. @click.stop="deleteWorks(w.wid)"
  6895. alt
  6896. />
  6897. </div>
  6898. <div class="workImg" v-if="w.type == 3">
  6899. <img
  6900. style="cursor: pointer"
  6901. :src="video"
  6902. @click="openVideo(w)"
  6903. alt
  6904. />
  6905. <!-- @click="openVideo(w.works)" -->
  6906. <div
  6907. class="answerScore"
  6908. v-if="w.score"
  6909. @click.stop="openScore(w)"
  6910. :class="{
  6911. rightW:
  6912. w.userid == userid ||
  6913. tType == 1 ||
  6914. tType == 4 ||
  6915. w.ateacher == userid,
  6916. }"
  6917. >
  6918. {{ JSON.parse(w.score).wScore }}分
  6919. </div>
  6920. <div
  6921. class="answerScore"
  6922. @click.stop="openScore(w)"
  6923. v-else-if="courseDetail.userid == userid"
  6924. :class="{
  6925. rightW:
  6926. w.userid == userid ||
  6927. tType == 1 ||
  6928. tType == 4 ||
  6929. w.ateacher == userid,
  6930. }"
  6931. >
  6932. 评分
  6933. </div>
  6934. <img
  6935. class="deleteImg"
  6936. src="../../assets/deleteworks.png"
  6937. v-if="w.userid == userid || tType == 1 || tType == 4"
  6938. @click.stop="deleteWorks(w.wid)"
  6939. alt
  6940. />
  6941. </div>
  6942. <div class="comment" style="min-width: 200px">
  6943. <div class="worksName">
  6944. <div
  6945. style="cursor: pointer"
  6946. @click="
  6947. openSname(w.sName, w.wid, toolIndex, w.userid)
  6948. "
  6949. >
  6950. {{ w.sName }}
  6951. </div>
  6952. </div>
  6953. <div class="commentList">
  6954. <div class="commentList">
  6955. <div
  6956. class="commentImg"
  6957. @click="
  6958. isLikes(w.wid, userid, 1, null, w.isLikes)
  6959. "
  6960. >
  6961. <img
  6962. :src="w.isLikes == true ? likes : noLikes"
  6963. alt=""
  6964. />
  6965. </div>
  6966. <div>{{ w.likesCount }}</div>
  6967. </div>
  6968. <div class="commentList" style="margin-right: 15px">
  6969. <div
  6970. class="commentImg"
  6971. @click="commentOther(w, toolIndex, wIndex)"
  6972. >
  6973. <img
  6974. src="../../assets/icon/comment/comment.png"
  6975. alt=""
  6976. />
  6977. </div>
  6978. <div>{{ w.commentCount }}</div>
  6979. </div>
  6980. </div>
  6981. </div>
  6982. </div>
  6983. </div>
  6984. <div class="noWorksS">
  6985. <div
  6986. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6987. :key="sIndex"
  6988. class="noWorksName"
  6989. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  6990. :class="{ isWork: s.type == '2' }"
  6991. >
  6992. {{ s.student }}
  6993. </div>
  6994. </div>
  6995. </div>
  6996. <div
  6997. v-if="
  6998. tType &&
  6999. ((tType == 2 && sIsOpen == true) ||
  7000. tType == 1 ||
  7001. tType == 4) &&
  7002. tool.tool.indexOf(4) != -1
  7003. "
  7004. class="worksBox"
  7005. >
  7006. <div
  7007. class="zuoyeYulan"
  7008. v-if="
  7009. worksStudent.length && worksStudent[toolIndex].length > 0
  7010. "
  7011. >
  7012. <div class="worksTop">
  7013. <div>作业预览</div>
  7014. <div
  7015. class="corOpen"
  7016. @click="contract(toolIndex)"
  7017. v-if="
  7018. worksStudent[toolIndex].length > 6 &&
  7019. isCloseList[toolIndex].isClose == 0
  7020. "
  7021. >
  7022. 收缩
  7023. </div>
  7024. <div
  7025. class="corOpen"
  7026. @click="contract(toolIndex)"
  7027. v-if="isCloseList[toolIndex].isClose == 1"
  7028. >
  7029. 展开
  7030. </div>
  7031. </div>
  7032. </div>
  7033. <div>
  7034. <div
  7035. class="worksDetailBox"
  7036. v-if="
  7037. worksStudent.length &&
  7038. worksStudent[toolIndex].length > 0
  7039. "
  7040. >
  7041. <div
  7042. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  7043. 0
  7044. ? worksStudent[toolIndex]
  7045. : worksStudent[toolIndex].slice(0, 6)"
  7046. :key="wIndex"
  7047. class="isWorksName"
  7048. @click="
  7049. openTools(4, toolIndex, taskCount, w.works, w.sName)
  7050. "
  7051. >
  7052. {{ w.sName }}
  7053. <img
  7054. class="deleteImg deleteImg2"
  7055. src="../../assets/deleteworks.png"
  7056. v-if="w.userid == userid || tType == 1 || tType == 4"
  7057. @click.stop="deleteWorks(w.wid)"
  7058. alt
  7059. />
  7060. </div>
  7061. </div>
  7062. </div>
  7063. <div class="noWorksS">
  7064. <div
  7065. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7066. :key="sIndex"
  7067. class="noWorksName"
  7068. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  7069. :class="{ isWork: s.type == '2' }"
  7070. >
  7071. {{ s.student }}
  7072. </div>
  7073. </div>
  7074. </div>
  7075. <div
  7076. v-if="
  7077. tType &&
  7078. ((tType == 2 && sIsOpen == true) ||
  7079. tType == 1 ||
  7080. tType == 4) &&
  7081. tool.tool.indexOf(45) != -1
  7082. "
  7083. class="worksBox"
  7084. >
  7085. <div
  7086. class="zuoyeYulan"
  7087. v-if="
  7088. worksStudent.length && worksStudent[toolIndex].length > 0
  7089. "
  7090. >
  7091. <div class="worksTop">
  7092. <div>作业预览</div>
  7093. <div
  7094. class="corOpen"
  7095. @click="contract(toolIndex)"
  7096. v-if="
  7097. worksStudent[toolIndex].length > 6 &&
  7098. isCloseList[toolIndex].isClose == 0
  7099. "
  7100. >
  7101. 收缩
  7102. </div>
  7103. <div
  7104. class="corOpen"
  7105. @click="contract(toolIndex)"
  7106. v-if="isCloseList[toolIndex].isClose == 1"
  7107. >
  7108. 展开
  7109. </div>
  7110. </div>
  7111. </div>
  7112. <div>
  7113. <div
  7114. class="worksDetailBox"
  7115. v-if="
  7116. worksStudent.length &&
  7117. worksStudent[toolIndex].length > 0
  7118. "
  7119. >
  7120. <div
  7121. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  7122. 0
  7123. ? worksStudent[toolIndex]
  7124. : worksStudent[toolIndex].slice(0, 6)"
  7125. :key="wIndex"
  7126. class="isWorksName"
  7127. @click="
  7128. openTools(45, toolIndex, taskCount, w.works, w.sName)
  7129. "
  7130. >
  7131. {{ w.sName }}
  7132. <img
  7133. class="deleteImg deleteImg2"
  7134. src="../../assets/deleteworks.png"
  7135. v-if="w.userid == userid || tType == 1 || tType == 4"
  7136. @click.stop="deleteWorks(w.wid)"
  7137. alt
  7138. />
  7139. </div>
  7140. </div>
  7141. </div>
  7142. <div class="noWorksS">
  7143. <div
  7144. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7145. :key="sIndex"
  7146. class="noWorksName"
  7147. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  7148. :class="{ isWork: s.type == '2' }"
  7149. >
  7150. {{ s.student }}
  7151. </div>
  7152. </div>
  7153. </div>
  7154. <div
  7155. v-if="
  7156. tType &&
  7157. ((tType == 2 && sIsOpen == true) ||
  7158. tType == 1 ||
  7159. tType == 4) &&
  7160. tool.tool.indexOf(15) != -1
  7161. "
  7162. class="worksBox"
  7163. >
  7164. <div
  7165. class="zuoyeYulan"
  7166. v-if="
  7167. worksStudent.length && worksStudent[toolIndex].length > 0
  7168. "
  7169. >
  7170. <div class="worksTop">
  7171. <div>作业预览</div>
  7172. <div
  7173. class="corOpen"
  7174. @click="contract(toolIndex)"
  7175. v-if="
  7176. worksStudent[toolIndex].length > 6 &&
  7177. isCloseList[toolIndex].isClose == 0
  7178. "
  7179. >
  7180. 收缩
  7181. </div>
  7182. <div
  7183. class="corOpen"
  7184. @click="contract(toolIndex)"
  7185. v-if="isCloseList[toolIndex].isClose == 1"
  7186. >
  7187. 展开
  7188. </div>
  7189. </div>
  7190. </div>
  7191. <div
  7192. class="worksDetailBox"
  7193. v-if="
  7194. worksStudent.length && worksStudent[toolIndex].length > 0
  7195. "
  7196. >
  7197. <div
  7198. class="works"
  7199. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7200. ? worksStudent[toolIndex]
  7201. : worksStudent[toolIndex].slice(0, 6)"
  7202. :key="wIndex"
  7203. >
  7204. <div
  7205. class="workImg"
  7206. style="
  7207. border-radius: 15px;
  7208. box-shadow: #eee 0px 0px 5px 5px;
  7209. "
  7210. >
  7211. <!-- <img
  7212. src="../../assets/icon/works/noImg.png"
  7213. @click="openTools(15, toolIndex, taskCount, w.works)"
  7214. alt=""
  7215. />-->
  7216. <div
  7217. class="answerBg"
  7218. style="border-radius: 15px 15px 0 0"
  7219. @click="commentOther(w, toolIndex, wIndex)"
  7220. >
  7221. <!-- <div>{{ w.sName }}</div> -->
  7222. <div class="answerContent">
  7223. {{ JSON.parse(w.works)[0].answer }}
  7224. </div>
  7225. <div
  7226. class="answerScore"
  7227. v-if="w.score"
  7228. @click.stop="openScore(w)"
  7229. :class="{
  7230. rightW:
  7231. w.userid == userid || tType == 1 || tType == 4,
  7232. }"
  7233. >
  7234. {{ JSON.parse(w.score).wScore }}分
  7235. </div>
  7236. <div
  7237. class="answerScore"
  7238. @click.stop="openScore(w)"
  7239. v-else-if="courseDetail.userid == userid"
  7240. :class="{
  7241. rightW:
  7242. w.userid == userid || tType == 1 || tType == 4,
  7243. }"
  7244. >
  7245. 评分
  7246. </div>
  7247. <img
  7248. class="deleteImg"
  7249. src="../../assets/deleteworks.png"
  7250. v-if="
  7251. w.userid == userid || tType == 1 || tType == 4
  7252. "
  7253. @click.stop="deleteWorks(w.wid)"
  7254. alt
  7255. />
  7256. </div>
  7257. <div class="comment">
  7258. <div class="worksName">
  7259. <div>{{ w.sName }}</div>
  7260. </div>
  7261. <div class="commentList">
  7262. <div
  7263. class="commentImg"
  7264. @click="
  7265. isLikes(w.wid, userid, 1, null, w.isLikes)
  7266. "
  7267. >
  7268. <img
  7269. :src="w.isLikes == true ? likes : noLikes"
  7270. alt=""
  7271. />
  7272. </div>
  7273. <div>{{ w.likesCount }}</div>
  7274. </div>
  7275. <div class="commentList" style="margin-right: 15px">
  7276. <div
  7277. class="commentImg"
  7278. @click="commentOther(w, toolIndex, wIndex)"
  7279. >
  7280. <img
  7281. src="../../assets/icon/comment/comment.png"
  7282. alt=""
  7283. />
  7284. </div>
  7285. <div>{{ w.commentCount }}</div>
  7286. </div>
  7287. </div>
  7288. </div>
  7289. </div>
  7290. </div>
  7291. <div class="noWorksS">
  7292. <div
  7293. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7294. :key="sIndex"
  7295. class="noWorksName"
  7296. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  7297. :class="{ isWork: s.type == '2' }"
  7298. >
  7299. {{ s.student }}
  7300. </div>
  7301. </div>
  7302. </div>
  7303. <div
  7304. v-if="
  7305. tType &&
  7306. ((tType == 2 && sIsOpen == true) ||
  7307. tType == 1 ||
  7308. tType == 4) &&
  7309. tool.tool.indexOf(1) != -1
  7310. "
  7311. class="worksBox"
  7312. >
  7313. <div
  7314. class="zuoyeYulan"
  7315. v-if="
  7316. worksStudent.length && worksStudent[toolIndex].length > 0
  7317. "
  7318. >
  7319. <div class="worksTop">
  7320. <div>作业预览</div>
  7321. <div
  7322. class="corOpen"
  7323. @click="contract(toolIndex)"
  7324. v-if="
  7325. worksStudent[toolIndex].length > 6 &&
  7326. isCloseList[toolIndex].isClose == 0
  7327. "
  7328. >
  7329. 收缩
  7330. </div>
  7331. <div
  7332. class="corOpen"
  7333. @click="contract(toolIndex)"
  7334. v-if="isCloseList[toolIndex].isClose == 1"
  7335. >
  7336. 展开
  7337. </div>
  7338. </div>
  7339. </div>
  7340. <div
  7341. class="worksDetailBox"
  7342. v-if="
  7343. worksStudent.length && worksStudent[toolIndex].length > 0
  7344. "
  7345. >
  7346. <div
  7347. class="works"
  7348. style="
  7349. width: 200px;
  7350. height: 140px;
  7351. margin: 10px 10px 10px 0;
  7352. border-radius: 15px;
  7353. box-shadow: 0 0 6px 1px #dfdada;
  7354. "
  7355. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7356. ? worksStudent[toolIndex]
  7357. : worksStudent[toolIndex].slice(0, 6)"
  7358. :key="wIndex"
  7359. >
  7360. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  7361. <div class="workImg">
  7362. <img :src="w.works" @click="previewImg(w.works)" alt />
  7363. <div
  7364. class="answerScore"
  7365. v-if="w.score"
  7366. @click.stop="openScore(w)"
  7367. :class="{
  7368. rightW:
  7369. w.userid == userid || tType == 1 || tType == 4,
  7370. }"
  7371. >
  7372. {{ JSON.parse(w.score).wScore }}分
  7373. </div>
  7374. <div
  7375. class="answerScore"
  7376. @click.stop="openScore(w)"
  7377. v-else-if="courseDetail.userid == userid"
  7378. :class="{
  7379. rightW:
  7380. w.userid == userid || tType == 1 || tType == 4,
  7381. }"
  7382. >
  7383. 评分
  7384. </div>
  7385. <img
  7386. class="deleteImg"
  7387. src="../../assets/deleteworks.png"
  7388. v-if="w.userid == userid || tType == 1 || tType == 4"
  7389. @click.stop="deleteWorks(w.wid)"
  7390. alt
  7391. />
  7392. </div>
  7393. <div class="comment" style="min-width: 200px">
  7394. <div class="worksName">
  7395. <div>{{ w.sName }}</div>
  7396. </div>
  7397. <div class="commentList">
  7398. <div class="commentList">
  7399. <div
  7400. class="commentImg"
  7401. @click="
  7402. isLikes(w.wid, userid, 1, null, w.isLikes)
  7403. "
  7404. >
  7405. <img
  7406. :src="w.isLikes == true ? likes : noLikes"
  7407. alt=""
  7408. />
  7409. </div>
  7410. <div>{{ w.likesCount }}</div>
  7411. </div>
  7412. <div class="commentList" style="margin-right: 15px">
  7413. <div
  7414. class="commentImg"
  7415. @click="commentOther(w, toolIndex, wIndex)"
  7416. >
  7417. <img
  7418. src="../../assets/icon/comment/comment.png"
  7419. alt=""
  7420. />
  7421. </div>
  7422. <div>{{ w.commentCount }}</div>
  7423. </div>
  7424. </div>
  7425. </div>
  7426. </div>
  7427. </div>
  7428. <div class="noWorksS">
  7429. <div
  7430. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7431. :key="sIndex"
  7432. class="noWorksName"
  7433. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7434. :class="{ isWork: s.type == '2' }"
  7435. >
  7436. {{ s.student }}
  7437. </div>
  7438. </div>
  7439. </div>
  7440. <div
  7441. v-if="
  7442. tType &&
  7443. ((tType == 2 && sIsOpen == true) ||
  7444. tType == 1 ||
  7445. tType == 4) &&
  7446. tool.tool.indexOf(3) != -1
  7447. "
  7448. class="worksBox"
  7449. >
  7450. <div
  7451. class="zuoyeYulan"
  7452. v-if="
  7453. worksStudent.length && worksStudent[toolIndex].length > 0
  7454. "
  7455. >
  7456. <div class="worksTop">
  7457. <div>作业预览</div>
  7458. <div
  7459. class="corOpen"
  7460. @click="contract(toolIndex)"
  7461. v-if="
  7462. worksStudent[toolIndex].length > 6 &&
  7463. isCloseList[toolIndex].isClose == 0
  7464. "
  7465. >
  7466. 收缩
  7467. </div>
  7468. <div
  7469. class="corOpen"
  7470. @click="contract(toolIndex)"
  7471. v-if="isCloseList[toolIndex].isClose == 1"
  7472. >
  7473. 展开
  7474. </div>
  7475. </div>
  7476. </div>
  7477. <div
  7478. class="worksDetailBox"
  7479. v-if="
  7480. worksStudent.length && worksStudent[toolIndex].length > 0
  7481. "
  7482. >
  7483. <div
  7484. class="works"
  7485. style="
  7486. width: 200px;
  7487. height: 140px;
  7488. margin: 10px 10px 10px 0;
  7489. border-radius: 15px;
  7490. box-shadow: 0 0 6px 1px #dfdada;
  7491. "
  7492. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7493. ? worksStudent[toolIndex]
  7494. : worksStudent[toolIndex].slice(0, 6)"
  7495. :key="wIndex"
  7496. >
  7497. <!-- @click="previewImg(w.works)" -->
  7498. <div class="workImg">
  7499. <img :src="w.works" @click="previewImg(w.works)" alt />
  7500. <div
  7501. class="answerScore"
  7502. v-if="w.score"
  7503. @click.stop="openScore(w)"
  7504. :class="{
  7505. rightW:
  7506. w.userid == userid || tType == 1 || tType == 4,
  7507. }"
  7508. >
  7509. {{ JSON.parse(w.score).wScore }}分
  7510. </div>
  7511. <div
  7512. class="answerScore"
  7513. @click.stop="openScore(w)"
  7514. v-else-if="courseDetail.userid == userid"
  7515. :class="{
  7516. rightW:
  7517. w.userid == userid || tType == 1 || tType == 4,
  7518. }"
  7519. >
  7520. 评分
  7521. </div>
  7522. <img
  7523. class="deleteImg"
  7524. src="../../assets/deleteworks.png"
  7525. v-if="w.userid == userid || tType == 1 || tType == 4"
  7526. @click.stop="deleteWorks(w.wid)"
  7527. alt
  7528. />
  7529. </div>
  7530. <div class="comment" style="min-width: 200px">
  7531. <div class="worksName">
  7532. <div>{{ w.sName }}</div>
  7533. </div>
  7534. <div class="commentList">
  7535. <div class="commentList">
  7536. <div
  7537. class="commentImg"
  7538. @click="
  7539. isLikes(w.wid, userid, 1, null, w.isLikes)
  7540. "
  7541. >
  7542. <img
  7543. :src="w.isLikes == true ? likes : noLikes"
  7544. alt=""
  7545. />
  7546. </div>
  7547. <div>{{ w.likesCount }}</div>
  7548. </div>
  7549. <div class="commentList" style="margin-right: 15px">
  7550. <div
  7551. class="commentImg"
  7552. @click="commentOther(w, toolIndex, wIndex)"
  7553. >
  7554. <img
  7555. src="../../assets/icon/comment/comment.png"
  7556. alt=""
  7557. />
  7558. </div>
  7559. <div>{{ w.commentCount }}</div>
  7560. </div>
  7561. </div>
  7562. </div>
  7563. </div>
  7564. </div>
  7565. <div class="noWorksS">
  7566. <div
  7567. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7568. :key="sIndex"
  7569. class="noWorksName"
  7570. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7571. :class="{ isWork: s.type == '2' }"
  7572. >
  7573. {{ s.student }}
  7574. </div>
  7575. </div>
  7576. </div>
  7577. <div
  7578. v-if="
  7579. tType &&
  7580. ((tType == 2 && sIsOpen == true) ||
  7581. tType == 1 ||
  7582. tType == 4) &&
  7583. tool.tool.indexOf(6) != -1
  7584. "
  7585. class="worksBox"
  7586. >
  7587. <div
  7588. class="zuoyeYulan"
  7589. v-if="
  7590. worksStudent.length && worksStudent[toolIndex].length > 0
  7591. "
  7592. >
  7593. <div class="worksTop">
  7594. <div>作业预览</div>
  7595. <div
  7596. class="corOpen"
  7597. @click="contract(toolIndex)"
  7598. v-if="
  7599. worksStudent[toolIndex].length > 6 &&
  7600. isCloseList[toolIndex].isClose == 0
  7601. "
  7602. >
  7603. 收缩
  7604. </div>
  7605. <div
  7606. class="corOpen"
  7607. @click="contract(toolIndex)"
  7608. v-if="isCloseList[toolIndex].isClose == 1"
  7609. >
  7610. 展开
  7611. </div>
  7612. </div>
  7613. </div>
  7614. <div
  7615. class="worksDetailBox"
  7616. v-if="
  7617. worksStudent.length && worksStudent[toolIndex].length > 0
  7618. "
  7619. >
  7620. <div
  7621. class="works"
  7622. style="
  7623. width: 200px;
  7624. height: 140px;
  7625. margin: 10px 10px 10px 0;
  7626. border-radius: 15px;
  7627. box-shadow: 0 0 6px 1px #dfdada;
  7628. "
  7629. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7630. ? worksStudent[toolIndex]
  7631. : worksStudent[toolIndex].slice(0, 6)"
  7632. :key="wIndex"
  7633. >
  7634. <!-- @click="previewImg(w.works)" -->
  7635. <div class="workImg">
  7636. <img :src="w.works" @click="previewImg(w.works)" alt />
  7637. <div
  7638. class="answerScore"
  7639. v-if="w.score"
  7640. @click.stop="openScore(w)"
  7641. :class="{
  7642. rightW:
  7643. w.userid == userid || tType == 1 || tType == 4,
  7644. }"
  7645. >
  7646. {{ JSON.parse(w.score).wScore }}分
  7647. </div>
  7648. <div
  7649. class="answerScore"
  7650. @click.stop="openScore(w)"
  7651. v-else-if="courseDetail.userid == userid"
  7652. :class="{
  7653. rightW:
  7654. w.userid == userid || tType == 1 || tType == 4,
  7655. }"
  7656. >
  7657. 评分
  7658. </div>
  7659. <img
  7660. class="deleteImg"
  7661. src="../../assets/deleteworks.png"
  7662. v-if="w.userid == userid || tType == 1 || tType == 4"
  7663. @click.stop="deleteWorks(w.wid)"
  7664. alt
  7665. />
  7666. </div>
  7667. <div class="comment" style="min-width: 200px">
  7668. <div class="worksName">
  7669. <div>{{ w.sName }}</div>
  7670. </div>
  7671. <div class="commentList">
  7672. <div class="commentList">
  7673. <div
  7674. class="commentImg"
  7675. @click="
  7676. isLikes(w.wid, userid, 1, null, w.isLikes)
  7677. "
  7678. >
  7679. <img
  7680. :src="w.isLikes == true ? likes : noLikes"
  7681. alt=""
  7682. />
  7683. </div>
  7684. <div>{{ w.likesCount }}</div>
  7685. </div>
  7686. <div class="commentList" style="margin-right: 15px">
  7687. <div
  7688. class="commentImg"
  7689. @click="commentOther(w, toolIndex, wIndex)"
  7690. >
  7691. <img
  7692. src="../../assets/icon/comment/comment.png"
  7693. alt=""
  7694. />
  7695. </div>
  7696. <div>{{ w.commentCount }}</div>
  7697. </div>
  7698. </div>
  7699. </div>
  7700. </div>
  7701. </div>
  7702. <div class="noWorksS">
  7703. <div
  7704. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7705. :key="sIndex"
  7706. class="noWorksName"
  7707. :class="{ isWork: s.type == '2' }"
  7708. >
  7709. {{ s.student }}
  7710. </div>
  7711. </div>
  7712. </div>
  7713. <div
  7714. v-if="
  7715. tType &&
  7716. ((tType == 2 && sIsOpen == true) ||
  7717. tType == 1 ||
  7718. tType == 4) &&
  7719. tool.tool.indexOf(7) != -1
  7720. "
  7721. class="worksBox"
  7722. >
  7723. <div
  7724. class="zuoyeYulan"
  7725. v-if="
  7726. worksStudent.length && worksStudent[toolIndex].length > 0
  7727. "
  7728. >
  7729. <div class="worksTop">
  7730. <div>作业预览</div>
  7731. <div
  7732. class="corOpen"
  7733. @click="contract(toolIndex)"
  7734. v-if="
  7735. worksStudent[toolIndex].length > 6 &&
  7736. isCloseList[toolIndex].isClose == 0
  7737. "
  7738. >
  7739. 收缩
  7740. </div>
  7741. <div
  7742. class="corOpen"
  7743. @click="contract(toolIndex)"
  7744. v-if="isCloseList[toolIndex].isClose == 1"
  7745. >
  7746. 展开
  7747. </div>
  7748. </div>
  7749. </div>
  7750. <div
  7751. class="worksDetailBox"
  7752. v-if="
  7753. worksStudent.length && worksStudent[toolIndex].length > 0
  7754. "
  7755. >
  7756. <div
  7757. class="works"
  7758. style="
  7759. width: 200px;
  7760. height: 140px;
  7761. margin: 10px 10px 10px 0;
  7762. border-radius: 15px;
  7763. box-shadow: 0 0 6px 1px #dfdada;
  7764. "
  7765. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7766. ? worksStudent[toolIndex]
  7767. : worksStudent[toolIndex].slice(0, 6)"
  7768. :key="wIndex"
  7769. >
  7770. <!-- @click="previewImg(w.works)" -->
  7771. <div class="workImg">
  7772. <img :src="w.works" @click="previewImg(w.works)" alt />
  7773. <div
  7774. class="answerScore"
  7775. v-if="w.score"
  7776. @click.stop="openScore(w)"
  7777. :class="{
  7778. rightW:
  7779. w.userid == userid || tType == 1 || tType == 4,
  7780. }"
  7781. >
  7782. {{ JSON.parse(w.score).wScore }}分
  7783. </div>
  7784. <div
  7785. class="answerScore"
  7786. @click.stop="openScore(w)"
  7787. v-else-if="courseDetail.userid == userid"
  7788. :class="{
  7789. rightW:
  7790. w.userid == userid || tType == 1 || tType == 4,
  7791. }"
  7792. >
  7793. 评分
  7794. </div>
  7795. <img
  7796. class="deleteImg"
  7797. src="../../assets/deleteworks.png"
  7798. v-if="w.userid == userid || tType == 1 || tType == 4"
  7799. @click.stop="deleteWorks(w.wid)"
  7800. alt
  7801. />
  7802. </div>
  7803. <div class="comment" style="min-width: 200px">
  7804. <div class="worksName">
  7805. <div>{{ w.sName }}</div>
  7806. </div>
  7807. <div class="commentList">
  7808. <div class="commentList">
  7809. <div
  7810. class="commentImg"
  7811. @click="
  7812. isLikes(w.wid, userid, 1, null, w.isLikes)
  7813. "
  7814. >
  7815. <img
  7816. :src="w.isLikes == true ? likes : noLikes"
  7817. alt=""
  7818. />
  7819. </div>
  7820. <div>{{ w.likesCount }}</div>
  7821. </div>
  7822. <div class="commentList" style="margin-right: 15px">
  7823. <div
  7824. class="commentImg"
  7825. @click="commentOther(w, toolIndex, wIndex)"
  7826. >
  7827. <img
  7828. src="../../assets/icon/comment/comment.png"
  7829. alt=""
  7830. />
  7831. </div>
  7832. <div>{{ w.commentCount }}</div>
  7833. </div>
  7834. </div>
  7835. </div>
  7836. </div>
  7837. </div>
  7838. <div class="noWorksS">
  7839. <div
  7840. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7841. :key="sIndex"
  7842. class="noWorksName"
  7843. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  7844. :class="{ isWork: s.type == '2' }"
  7845. >
  7846. {{ s.student }}
  7847. </div>
  7848. </div>
  7849. </div>
  7850. <div
  7851. v-if="
  7852. tType &&
  7853. ((tType == 2 && sIsOpen == true) ||
  7854. tType == 1 ||
  7855. tType == 4) &&
  7856. tool.tool.indexOf(26) != -1
  7857. "
  7858. class="worksBox"
  7859. >
  7860. <div
  7861. class="zuoyeYulan"
  7862. v-if="
  7863. worksStudent.length && worksStudent[toolIndex].length > 0
  7864. "
  7865. >
  7866. <div class="worksTop">
  7867. <div>作业预览</div>
  7868. <div
  7869. class="corOpen"
  7870. @click="contract(toolIndex)"
  7871. v-if="
  7872. worksStudent[toolIndex].length > 6 &&
  7873. isCloseList[toolIndex].isClose == 0
  7874. "
  7875. >
  7876. 收缩
  7877. </div>
  7878. <div
  7879. class="corOpen"
  7880. @click="contract(toolIndex)"
  7881. v-if="isCloseList[toolIndex].isClose == 1"
  7882. >
  7883. 展开
  7884. </div>
  7885. </div>
  7886. </div>
  7887. <div
  7888. class="worksDetailBox"
  7889. v-if="
  7890. worksStudent.length && worksStudent[toolIndex].length > 0
  7891. "
  7892. >
  7893. <div
  7894. class="works"
  7895. style="width: 240px; height: 140px; overflow: hidden"
  7896. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7897. ? worksStudent[toolIndex]
  7898. : worksStudent[toolIndex].slice(0, 6)"
  7899. :key="wIndex"
  7900. :class="w.type == 1 ? 'isTypeOne' : ''"
  7901. >
  7902. <div class="workImg" v-if="w.type == 0">
  7903. <img :src="w.works" @click="previewImg(w.works)" alt />
  7904. <img
  7905. class="deleteImg"
  7906. src="../../assets/deleteworks.png"
  7907. v-if="w.userid == userid || tType == 1 || tType == 4"
  7908. @click.stop="deleteWorks(w.wid)"
  7909. alt
  7910. />
  7911. </div>
  7912. <div class="workImg" v-if="w.type == 1">
  7913. <img :src="word" @click="openFile(w.works)" alt />
  7914. <img
  7915. class="deleteImg"
  7916. src="../../assets/deleteworks.png"
  7917. v-if="w.userid == userid || tType == 1 || tType == 4"
  7918. @click.stop="deleteWorks(w.wid)"
  7919. alt
  7920. />
  7921. </div>
  7922. <div class="worksName">
  7923. <div>{{ w.sName }}</div>
  7924. </div>
  7925. </div>
  7926. </div>
  7927. <div class="noWorksS">
  7928. <div
  7929. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7930. :key="sIndex"
  7931. class="noWorksName"
  7932. :class="{ isWork: s.type == '2' }"
  7933. >
  7934. {{ s.student }}
  7935. </div>
  7936. </div>
  7937. </div>
  7938. <div
  7939. v-if="
  7940. tType &&
  7941. ((tType == 2 && sIsOpen == true) ||
  7942. tType == 1 ||
  7943. tType == 4) &&
  7944. tool.tool.indexOf(40) != -1
  7945. "
  7946. class="worksBox"
  7947. >
  7948. <div
  7949. class="zuoyeYulan"
  7950. v-if="
  7951. worksStudent.length && worksStudent[toolIndex].length > 0
  7952. "
  7953. >
  7954. <div class="worksTop">
  7955. <div>作业预览</div>
  7956. <div
  7957. class="corOpen"
  7958. @click="contract(toolIndex)"
  7959. v-if="
  7960. worksStudent[toolIndex].length > 6 &&
  7961. isCloseList[toolIndex].isClose == 0
  7962. "
  7963. >
  7964. 收缩
  7965. </div>
  7966. <div
  7967. class="corOpen"
  7968. @click="contract(toolIndex)"
  7969. v-if="isCloseList[toolIndex].isClose == 1"
  7970. >
  7971. 展开
  7972. </div>
  7973. </div>
  7974. </div>
  7975. <div
  7976. class="worksDetailBox"
  7977. v-if="
  7978. worksStudent.length && worksStudent[toolIndex].length > 0
  7979. "
  7980. >
  7981. <div
  7982. class="works"
  7983. style="
  7984. width: 200px;
  7985. height: 140px;
  7986. margin: 10px 10px 10px 0;
  7987. border-radius: 15px;
  7988. box-shadow: 0 0 6px 1px #dfdada;
  7989. "
  7990. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7991. ? worksStudent[toolIndex]
  7992. : worksStudent[toolIndex].slice(0, 6)"
  7993. :key="wIndex"
  7994. :class="w.type == 1 ? 'isTypeOne' : ''"
  7995. >
  7996. <div class="workImg">
  7997. <img
  7998. src="../../assets/icon/works/noImg.png"
  7999. @click="openPj(w.works, toolIndex)"
  8000. alt
  8001. />
  8002. <img
  8003. class="deleteImg"
  8004. src="../../assets/deleteworks.png"
  8005. v-if="w.userid == userid || tType == 1 || tType == 4"
  8006. @click.stop="deleteWorks(w.wid)"
  8007. alt
  8008. />
  8009. </div>
  8010. <div class="comment" style="min-width: 200px">
  8011. <div class="worksName">
  8012. <div>{{ w.sName }}</div>
  8013. </div>
  8014. <div class="commentList">
  8015. <div class="commentList">
  8016. <div
  8017. class="commentImg"
  8018. @click="
  8019. isLikes(w.wid, userid, 1, null, w.isLikes)
  8020. "
  8021. >
  8022. <img
  8023. :src="w.isLikes == true ? likes : noLikes"
  8024. alt=""
  8025. />
  8026. </div>
  8027. <div>{{ w.likesCount }}</div>
  8028. </div>
  8029. <div class="commentList" style="margin-right: 15px">
  8030. <div
  8031. class="commentImg"
  8032. @click="commentOther(w, toolIndex, wIndex)"
  8033. >
  8034. <img
  8035. src="../../assets/icon/comment/comment.png"
  8036. alt=""
  8037. />
  8038. </div>
  8039. <div>{{ w.commentCount }}</div>
  8040. </div>
  8041. </div>
  8042. </div>
  8043. </div>
  8044. </div>
  8045. <div class="noWorksS">
  8046. <div
  8047. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8048. :key="sIndex"
  8049. class="noWorksName"
  8050. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8051. :class="{ isWork: s.type == '2' }"
  8052. >
  8053. {{ s.student }}
  8054. </div>
  8055. </div>
  8056. </div>
  8057. <div
  8058. v-if="
  8059. tType &&
  8060. ((tType == 2 && sIsOpen == true) ||
  8061. tType == 1 ||
  8062. tType == 4) &&
  8063. tool.tool.indexOf(41) != -1
  8064. "
  8065. class="worksBox"
  8066. >
  8067. <div class="noWorksS">
  8068. <div
  8069. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8070. :key="sIndex"
  8071. class="noWorksName"
  8072. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  8073. :class="{ isWork: s.type == '2' }"
  8074. >
  8075. {{ s.student }}
  8076. </div>
  8077. </div>
  8078. <div
  8079. class="zuoyeYulan"
  8080. v-if="
  8081. worksStudent.length && worksStudent[toolIndex].length > 0
  8082. "
  8083. >
  8084. <div class="worksTop">
  8085. <div>作业预览</div>
  8086. <div
  8087. class="corOpen"
  8088. @click="contract(toolIndex)"
  8089. v-if="
  8090. worksStudent[toolIndex].length > 6 &&
  8091. isCloseList[toolIndex].isClose == 0
  8092. "
  8093. >
  8094. 收缩
  8095. </div>
  8096. <div
  8097. class="corOpen"
  8098. @click="contract(toolIndex)"
  8099. v-if="isCloseList[toolIndex].isClose == 1"
  8100. >
  8101. 展开
  8102. </div>
  8103. </div>
  8104. </div>
  8105. <div
  8106. class="worksDetailBox"
  8107. v-if="
  8108. worksStudent.length && worksStudent[toolIndex].length > 0
  8109. "
  8110. >
  8111. <div
  8112. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8113. ? worksStudent[toolIndex]
  8114. : worksStudent[toolIndex].slice(0, 6)"
  8115. :key="wIndex"
  8116. class="isWorksName"
  8117. @click="openXz(w, toolIndex)"
  8118. >
  8119. {{ w.sName }}
  8120. <img
  8121. class="deleteImg deleteImg2"
  8122. src="../../assets/deleteworks.png"
  8123. v-if="w.userid == userid || tType == 1 || tType == 4"
  8124. @click.stop="deleteWorks(w.wid)"
  8125. alt
  8126. />
  8127. </div>
  8128. </div>
  8129. </div>
  8130. <div
  8131. v-if="
  8132. tType &&
  8133. ((tType == 2 && sIsOpen == true) ||
  8134. tType == 1 ||
  8135. tType == 4) &&
  8136. tool.tool.indexOf(47) != -1
  8137. "
  8138. class="worksBox"
  8139. >
  8140. <div class="noWorksS">
  8141. <div
  8142. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8143. :key="sIndex"
  8144. class="noWorksName"
  8145. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  8146. :class="{ isWork: s.type == '2' }"
  8147. >
  8148. {{ s.student }}
  8149. </div>
  8150. </div>
  8151. <div
  8152. class="zuoyeYulan"
  8153. v-if="
  8154. worksStudent.length && worksStudent[toolIndex].length > 0
  8155. "
  8156. >
  8157. <div class="worksTop">
  8158. <div>作业预览</div>
  8159. <div
  8160. class="corOpen"
  8161. @click="contract(toolIndex)"
  8162. v-if="
  8163. worksStudent[toolIndex].length > 6 &&
  8164. isCloseList[toolIndex].isClose == 0
  8165. "
  8166. >
  8167. 收缩
  8168. </div>
  8169. <div
  8170. class="corOpen"
  8171. @click="contract(toolIndex)"
  8172. v-if="isCloseList[toolIndex].isClose == 1"
  8173. >
  8174. 展开
  8175. </div>
  8176. </div>
  8177. </div>
  8178. <div
  8179. class="worksDetailBox"
  8180. v-if="
  8181. worksStudent.length && worksStudent[toolIndex].length > 0
  8182. "
  8183. >
  8184. <!-- @click="openXz(w, toolIndex)" -->
  8185. <div
  8186. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8187. ? worksStudent[toolIndex]
  8188. : worksStudent[toolIndex].slice(0, 6)"
  8189. :key="wIndex"
  8190. class="isWorksName"
  8191. @click="openSen(w, toolIndex)"
  8192. >
  8193. {{ w.sName }}
  8194. <img
  8195. class="deleteImg deleteImg2"
  8196. src="../../assets/deleteworks.png"
  8197. v-if="w.userid == userid || tType == 1 || tType == 4"
  8198. @click.stop="deleteWorks(w.wid)"
  8199. alt
  8200. />
  8201. </div>
  8202. </div>
  8203. </div>
  8204. <div
  8205. v-if="
  8206. tType &&
  8207. ((tType == 2 && sIsOpen == true) ||
  8208. tType == 1 ||
  8209. tType == 4) &&
  8210. tool.tool.indexOf(48) != -1
  8211. "
  8212. class="worksBox"
  8213. >
  8214. <div
  8215. class="zuoyeYulan"
  8216. v-if="
  8217. worksStudent.length && worksStudent[toolIndex].length > 0
  8218. "
  8219. >
  8220. <div class="worksTop">
  8221. <div>作业预览</div>
  8222. <div
  8223. class="corOpen"
  8224. @click="contract(toolIndex)"
  8225. v-if="
  8226. worksStudent[toolIndex].length > 6 &&
  8227. isCloseList[toolIndex].isClose == 0
  8228. "
  8229. >
  8230. 收缩
  8231. </div>
  8232. <div
  8233. class="corOpen"
  8234. @click="contract(toolIndex)"
  8235. v-if="isCloseList[toolIndex].isClose == 1"
  8236. >
  8237. 展开
  8238. </div>
  8239. </div>
  8240. </div>
  8241. <div
  8242. class="worksDetailBox"
  8243. v-if="
  8244. worksStudent.length && worksStudent[toolIndex].length > 0
  8245. "
  8246. >
  8247. <div
  8248. class="works"
  8249. style="
  8250. width: 200px;
  8251. height: 140px;
  8252. margin: 10px 10px 10px 0;
  8253. border-radius: 15px;
  8254. box-shadow: 0 0 6px 1px #dfdada;
  8255. "
  8256. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8257. ? worksStudent[toolIndex]
  8258. : worksStudent[toolIndex].slice(0, 6)"
  8259. :key="wIndex"
  8260. :class="w.type == 1 ? 'isTypeOne' : ''"
  8261. >
  8262. <div class="workImg">
  8263. <img :src="word" @click="openTable(w)" alt />
  8264. <!-- @click="openFile(w.works)" -->
  8265. <div
  8266. class="answerScore"
  8267. v-if="w.score"
  8268. @click.stop="openScore(w)"
  8269. :class="{
  8270. rightW:
  8271. w.userid == userid ||
  8272. tType == 1 ||
  8273. tType == 4 ||
  8274. w.ateacher == userid,
  8275. }"
  8276. >
  8277. {{ JSON.parse(w.score).wScore }}分
  8278. </div>
  8279. <div
  8280. class="answerScore"
  8281. @click.stop="openScore(w)"
  8282. v-else-if="courseDetail.userid == userid"
  8283. :class="{
  8284. rightW:
  8285. w.userid == userid ||
  8286. tType == 1 ||
  8287. tType == 4 ||
  8288. w.ateacher == userid,
  8289. }"
  8290. >
  8291. 评分
  8292. </div>
  8293. <img
  8294. class="deleteImg"
  8295. src="../../assets/deleteworks.png"
  8296. v-if="w.userid == userid || tType == 1 || tType == 4"
  8297. @click.stop="deleteWorks(w.wid)"
  8298. alt
  8299. />
  8300. </div>
  8301. <div class="comment" style="min-width: 200px">
  8302. <div class="worksName">
  8303. <div>{{ w.sName }}</div>
  8304. </div>
  8305. <div class="commentList">
  8306. <div class="commentList">
  8307. <div
  8308. class="commentImg"
  8309. @click="
  8310. isLikes(w.wid, userid, 1, null, w.isLikes)
  8311. "
  8312. >
  8313. <img
  8314. :src="w.isLikes == true ? likes : noLikes"
  8315. alt=""
  8316. />
  8317. </div>
  8318. <div>{{ w.likesCount }}</div>
  8319. </div>
  8320. <div class="commentList" style="margin-right: 15px">
  8321. <div
  8322. class="commentImg"
  8323. @click="commentOther(w, toolIndex, wIndex)"
  8324. >
  8325. <img
  8326. src="../../assets/icon/comment/comment.png"
  8327. alt=""
  8328. />
  8329. </div>
  8330. <div>{{ w.commentCount }}</div>
  8331. </div>
  8332. </div>
  8333. </div>
  8334. </div>
  8335. </div>
  8336. <div class="noWorksS">
  8337. <div
  8338. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8339. :key="sIndex"
  8340. class="noWorksName"
  8341. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  8342. :class="{ isWork: s.type == '2' }"
  8343. >
  8344. {{ s.student }}
  8345. </div>
  8346. </div>
  8347. </div>
  8348. <div
  8349. v-if="
  8350. tType &&
  8351. ((tType == 2 && sIsOpen == true) ||
  8352. tType == 1 ||
  8353. tType == 4) &&
  8354. tool.tool.indexOf(52) != -1
  8355. "
  8356. class="worksBox"
  8357. >
  8358. <div
  8359. class="zuoyeYulan"
  8360. v-if="
  8361. worksStudent.length && worksStudent[toolIndex].length > 0
  8362. "
  8363. >
  8364. <div class="worksTop">
  8365. <div>作业预览</div>
  8366. <div
  8367. class="corOpen"
  8368. @click="contract(toolIndex)"
  8369. v-if="
  8370. worksStudent[toolIndex].length > 6 &&
  8371. isCloseList[toolIndex].isClose == 0
  8372. "
  8373. >
  8374. 收缩
  8375. </div>
  8376. <div
  8377. class="corOpen"
  8378. @click="contract(toolIndex)"
  8379. v-if="isCloseList[toolIndex].isClose == 1"
  8380. >
  8381. 展开
  8382. </div>
  8383. </div>
  8384. </div>
  8385. <div
  8386. class="worksDetailBox"
  8387. v-if="
  8388. worksStudent.length && worksStudent[toolIndex].length > 0
  8389. "
  8390. >
  8391. <div
  8392. class="works"
  8393. style="
  8394. width: 200px;
  8395. height: 140px;
  8396. margin: 10px 10px 10px 0;
  8397. border-radius: 15px;
  8398. box-shadow: 0 0 6px 1px #dfdada;
  8399. "
  8400. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8401. ? worksStudent[toolIndex]
  8402. : worksStudent[toolIndex].slice(0, 6)"
  8403. :key="wIndex"
  8404. :class="w.type == 1 ? 'isTypeOne' : ''"
  8405. >
  8406. <div class="workImg">
  8407. <img :src="word" @click="openWord(w)" alt />
  8408. <!-- @click="openFile(w.works)" -->
  8409. <div
  8410. class="answerScore"
  8411. v-if="w.score"
  8412. @click.stop="openScore(w)"
  8413. :class="{
  8414. rightW:
  8415. w.userid == userid ||
  8416. tType == 1 ||
  8417. tType == 4 ||
  8418. w.ateacher == userid,
  8419. }"
  8420. >
  8421. {{ JSON.parse(w.score).wScore }}分
  8422. </div>
  8423. <div
  8424. class="answerScore"
  8425. @click.stop="openScore(w)"
  8426. v-else-if="courseDetail.userid == userid"
  8427. :class="{
  8428. rightW:
  8429. w.userid == userid ||
  8430. tType == 1 ||
  8431. tType == 4 ||
  8432. w.ateacher == userid,
  8433. }"
  8434. >
  8435. 评分
  8436. </div>
  8437. <img
  8438. class="deleteImg"
  8439. src="../../assets/deleteworks.png"
  8440. v-if="w.userid == userid || tType == 1 || tType == 4"
  8441. @click.stop="deleteWorks(w.wid)"
  8442. alt
  8443. />
  8444. </div>
  8445. <div class="comment" style="min-width: 200px">
  8446. <div class="worksName">
  8447. <div>{{ w.sName }}</div>
  8448. </div>
  8449. <div class="commentList">
  8450. <div class="commentList">
  8451. <div
  8452. class="commentImg"
  8453. @click="
  8454. isLikes(w.wid, userid, 1, null, w.isLikes)
  8455. "
  8456. >
  8457. <img
  8458. :src="w.isLikes == true ? likes : noLikes"
  8459. alt=""
  8460. />
  8461. </div>
  8462. <div>{{ w.likesCount }}</div>
  8463. </div>
  8464. <div class="commentList" style="margin-right: 15px">
  8465. <div
  8466. class="commentImg"
  8467. @click="commentOther(w, toolIndex, wIndex)"
  8468. >
  8469. <img
  8470. src="../../assets/icon/comment/comment.png"
  8471. alt=""
  8472. />
  8473. </div>
  8474. <div>{{ w.commentCount }}</div>
  8475. </div>
  8476. </div>
  8477. </div>
  8478. </div>
  8479. </div>
  8480. <div class="noWorksS">
  8481. <div
  8482. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8483. :key="sIndex"
  8484. class="noWorksName"
  8485. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  8486. :class="{ isWork: s.type == '2' }"
  8487. >
  8488. {{ s.student }}
  8489. </div>
  8490. </div>
  8491. </div>
  8492. </div>
  8493. </div>
  8494. <div class="vedioBox" v-if="false">
  8495. <div
  8496. class="queTop"
  8497. style="
  8498. font-size: 20px;
  8499. padding: 15px 0 15px 30px;
  8500. font-weight: bold;
  8501. "
  8502. >
  8503. 评一评
  8504. </div>
  8505. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8506. <div class="elist_input">
  8507. <div
  8508. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8509. .chapterInfo[0].taskJson[taskCount].eList"
  8510. :key="eIndex"
  8511. class="elist_input_box"
  8512. >
  8513. <div style="width: 95%">
  8514. <div
  8515. style="
  8516. display: flex;
  8517. flex-direction: row;
  8518. flex-wrap: nowrap;
  8519. align-items: center;
  8520. "
  8521. >
  8522. <div style="max-width: calc(100% - 285px)">
  8523. <span>{{ eItem.value }}</span>
  8524. </div>
  8525. <div
  8526. style="
  8527. padding-left: 25px;
  8528. display: flex;
  8529. flex-direction: row;
  8530. align-items: center;
  8531. "
  8532. >
  8533. <el-rate
  8534. v-model="eItem.score"
  8535. :colors="colors"
  8536. disabled
  8537. ></el-rate>
  8538. </div>
  8539. </div>
  8540. <div class="elist_inptu_text" style="padding-left: 10px">
  8541. <span v-if="eItem.detail != ''">{{
  8542. eItem.detail
  8543. }}</span>
  8544. <span v-else style="color: #b2b1b3; font-size: 14px"
  8545. >暂无描述...</span
  8546. >
  8547. </div>
  8548. </div>
  8549. </div>
  8550. </div>
  8551. <div
  8552. v-if="evalua"
  8553. style="
  8554. border: 1px solid #e5e5e5;
  8555. max-width: 650px;
  8556. width: 100%;
  8557. margin-top: 20px;
  8558. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8559. "
  8560. >
  8561. <div class="e_add_top">
  8562. <div class="e_add_title">
  8563. <span>目标管理名称</span>
  8564. <span>{{ eTitle }}</span>
  8565. <img
  8566. src="../../assets/line.png"
  8567. class="cru_line"
  8568. style="
  8569. width: 125px;
  8570. height: 20px;
  8571. bottom: -10px;
  8572. left: 120px;
  8573. "
  8574. />
  8575. <!-- <el-input
  8576. v-model="eTitle"
  8577. placeholder="请输入名称"
  8578. @change="setMindData"
  8579. ></el-input>-->
  8580. </div>
  8581. </div>
  8582. <div class="e_add_content">
  8583. <div class="e_add_list_pbox">
  8584. <div class="e_add_list_pbox_title">
  8585. <span class="type_title">切换模式</span>
  8586. <div class="type_content">
  8587. <span
  8588. :class="{ active: typeMode == 1 }"
  8589. @click="typeMode = 1"
  8590. >目标树</span
  8591. >
  8592. <span
  8593. :class="{ active: typeMode == 2 }"
  8594. @click="typeMode = 2"
  8595. >目标罗盘</span
  8596. >
  8597. <span
  8598. :class="{ active: typeMode == 3 }"
  8599. @click="typeMode = 3"
  8600. >目标看板</span
  8601. >
  8602. </div>
  8603. </div>
  8604. <div class="e_add_list_pbox_content">
  8605. <Mind
  8606. :showBar="false"
  8607. :mindData="data"
  8608. style="width: 100%"
  8609. v-show="typeMode == 1"
  8610. ></Mind>
  8611. <Sunburst
  8612. :Josn="eJson"
  8613. :num="eJSONNum"
  8614. style="width: 100%"
  8615. v-if="typeMode == 2"
  8616. ></Sunburst>
  8617. <SeeBoard
  8618. :Josn="eJson"
  8619. :num="eJSONNum"
  8620. :ename="eTitle"
  8621. style="width: 100%"
  8622. v-if="typeMode == 3"
  8623. >
  8624. </SeeBoard>
  8625. </div>
  8626. </div>
  8627. </div>
  8628. </div>
  8629. </div>
  8630. </div>
  8631. </div>
  8632. </div>
  8633. <el-dialog
  8634. title="作业提交"
  8635. :visible.sync="dialogVisible"
  8636. :append-to-body="true"
  8637. width="500px"
  8638. :before-close="handleClose"
  8639. class="dialog_change"
  8640. >
  8641. <div class="marginT">
  8642. <div>上传文件</div>
  8643. <div
  8644. class="chapter_add"
  8645. @click="addImg($event)"
  8646. v-if="studyJuri[0].cover.length == 0"
  8647. >
  8648. <div class="up_photo">
  8649. <img src="../../assets/icon/uploadImg.png" alt />
  8650. </div>
  8651. <!-- <input
  8652. type="file"
  8653. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8654. style="display: none"
  8655. @change="beforeUpload1($event, 1)"
  8656. /> -->
  8657. <input
  8658. type="file"
  8659. accept="*"
  8660. style="display: none"
  8661. @change="beforeUpload1($event, 1)"
  8662. />
  8663. <!-- <input
  8664. type="file"
  8665. accept="image/*"
  8666. capture="camera"
  8667. style="display: none"
  8668. @change="beforeUpload1($event, 1)"
  8669. /> -->
  8670. </div>
  8671. <div
  8672. class="chapter_add"
  8673. style="
  8674. display: flex;
  8675. width: 100%;
  8676. flex-direction: row;
  8677. flex-wrap: wrap;
  8678. justify-content: flex-start;
  8679. padding: 15px 0;
  8680. "
  8681. v-if="studyJuri[0].cover.length > 0"
  8682. >
  8683. <div class="upCover">
  8684. <img
  8685. :src="studyJuri[0].cover[0].url"
  8686. alt
  8687. v-if="fileType == 0"
  8688. />
  8689. <img :src="word" alt v-else-if="fileType == 1" />
  8690. <img :src="video" alt v-else-if="fileType == 2" />
  8691. <img :src="word2" alt v-else-if="fileType == 3" />
  8692. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8693. <div class="deleteWord" @click="clean(1)">
  8694. <img src="../../assets/icon/deleteWorks.png" alt />
  8695. </div>
  8696. </div>
  8697. </div>
  8698. </div>
  8699. <div
  8700. class="upload_send"
  8701. @click="addCourseWorks(taskCount)"
  8702. v-if="!proVisible"
  8703. >
  8704. 提交
  8705. </div>
  8706. </el-dialog>
  8707. </div>
  8708. </div>
  8709. <div
  8710. class="pButton"
  8711. @click="(pzDialog = true), selectPz()"
  8712. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8713. >
  8714. <!-- 批 -->
  8715. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  8716. </div>
  8717. <div v-if="pzDialog == true" class="newDialogCss">
  8718. <div class="pzTop2">
  8719. <!-- <div>批注</div>
  8720. <div @click="pzDialog = false">
  8721. <img src="../../assets/close1.png" alt="" />
  8722. </div> -->
  8723. <div class="checkbox">
  8724. <div class="check" style="font-size: 25px">评课笔记</div>
  8725. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8726. </div>
  8727. </div>
  8728. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  8729. <div class="pzListBox" v-if="pzList && pzList.length">
  8730. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8731. <div class="pzNavTop">
  8732. <div>批</div>
  8733. <div>
  8734. {{
  8735. pz.username && pz.username.length > 5
  8736. ? pz.username.substring(0, 5) + "..."
  8737. : pz.username
  8738. }}的批注
  8739. </div>
  8740. <div
  8741. class="pzDelete"
  8742. v-if="pz.userid == userid"
  8743. @click="deletePz(pz.id)"
  8744. >
  8745. 删除
  8746. </div>
  8747. </div>
  8748. <div
  8749. @click="checkImg(getImgList(pz.content))"
  8750. class="pzContent cont"
  8751. v-html="pz.content"
  8752. v-if="pz.type == '1'"
  8753. ></div>
  8754. <div class="pzContent" v-if="pz.type == '2'">
  8755. <audio :src="pz.content" controls="controls" ref="audio">
  8756. Your browser does not support the audio element.
  8757. </audio>
  8758. </div>
  8759. <div class="pzContent" v-if="pz.type == '3'">
  8760. <img
  8761. :src="pz.content"
  8762. style="width: 90%; margin: 0 auto; display: block"
  8763. @click="previewImg(pz.content)"
  8764. />
  8765. </div>
  8766. <div class="time">
  8767. {{ pz.time }}
  8768. </div>
  8769. </div>
  8770. </div>
  8771. <div class="noPz" v-else>
  8772. <img src="../../assets/icon/noPz.png" alt="" />
  8773. </div>
  8774. <div class="addPzButton">
  8775. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8776. 添加批注
  8777. </div>
  8778. <!-- <div class="img1">
  8779. <div @click="(addPzDialog = true), (pzType = 2)">
  8780. <img src="../../assets/audio.png" /><span>音频</span>
  8781. </div>
  8782. </div> -->
  8783. </div>
  8784. </div>
  8785. </div>
  8786. <div v-if="addPzDialog == true" class="addDialogCss">
  8787. <div class="pzTop">
  8788. <div class="teacherPz">
  8789. <div class="teacherPzImg">
  8790. <img src="../../assets/icon/teacherPz.png" alt="" />
  8791. </div>
  8792. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8793. </div>
  8794. <div @click="addPzDialog = false">
  8795. <img src="../../assets/close1.png" alt="" />
  8796. </div>
  8797. </div>
  8798. <div class="addPzBox">
  8799. <div class="addPzCheck">
  8800. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8801. >文本</span
  8802. >
  8803. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8804. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8805. >音频</span
  8806. >
  8807. </div>
  8808. <div style="height: calc(100% - 95px)">
  8809. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8810. v-if="pzType == 1"></textarea> -->
  8811. <editor-bar
  8812. class="binfo_input pzConText"
  8813. style="width: 100% !important"
  8814. placeholder="请输入任务描述"
  8815. v-model="pzConText"
  8816. @change="change"
  8817. v-if="pzType == 1"
  8818. ></editor-bar>
  8819. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8820. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8821. <div @click="addImg($event)">
  8822. <el-button type="primary">上传图片</el-button>
  8823. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8824. @change="beforeUpload1($event, 4)" />
  8825. </div>
  8826. </div> -->
  8827. </div>
  8828. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8829. 确定
  8830. </div>
  8831. </div>
  8832. </div>
  8833. <div v-if="proVisible" class="mask">
  8834. <div class="progressBox">
  8835. <!-- <div id="closePro" class="closeCss">
  8836. <img src="../../assets/icon/close.png" alt />
  8837. </div> -->
  8838. <div class="lbox">
  8839. <img src="../../assets/loading.gif" />上传中,请稍后
  8840. </div>
  8841. <div style="margin-bottom: 10px">
  8842. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8843. </div>
  8844. <el-progress
  8845. :text-inside="true"
  8846. :stroke-width="20"
  8847. :percentage="progress"
  8848. style="width: 80%"
  8849. ></el-progress>
  8850. </div>
  8851. </div>
  8852. <div v-if="proVisible2" class="mask">
  8853. <div class="progressBox">
  8854. <div class="lbox">
  8855. <img src="../../assets/loading.gif" />上传中,请稍后
  8856. </div>
  8857. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8858. </div>
  8859. </div>
  8860. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8861. <img width="100%" :src="dialogImageUrl" alt />
  8862. </el-dialog>
  8863. <el-dialog
  8864. :title="noteName != '' ? noteName : '查看问卷'"
  8865. :visible.sync="dialogVisible5"
  8866. :append-to-body="true"
  8867. width="1000px"
  8868. :before-close="handleClose"
  8869. class="dialog_diy dialog_diy3"
  8870. >
  8871. <div>
  8872. <div
  8873. class="a_add_title"
  8874. style="
  8875. display: flex;
  8876. flex-direction: row;
  8877. align-items: center;
  8878. justify-content: center;
  8879. "
  8880. >
  8881. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8882. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8883. </div>
  8884. <div class="a_addBox">
  8885. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8886. <div
  8887. class="a_add_box"
  8888. v-for="(item1, index1) in askJson.askCount"
  8889. :key="index1"
  8890. >
  8891. <div class="a_add_head">
  8892. <div style="display: flex">
  8893. {{ index1 + 1 + "、" }}
  8894. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8895. </div>
  8896. <img
  8897. v-if="askJson.askJson[index1].img"
  8898. :src="askJson.askJson[index1].img"
  8899. style="height: 300px; margin-top: 10px; max-width: 100%"
  8900. />
  8901. </div>
  8902. <div class="a_add_body">
  8903. <div class="a_add_input">
  8904. <el-radio-group
  8905. v-model="radio[index1]"
  8906. v-if="
  8907. askJson.askJson[index1].type == '1' ||
  8908. !askJson.askJson[index1].type
  8909. "
  8910. >
  8911. <el-radio
  8912. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8913. .checkList"
  8914. :key="checkIndex"
  8915. :label="checkIndex"
  8916. :disabled="isAnswer"
  8917. class="redioStyle"
  8918. ><span v-html="item2"></span
  8919. ></el-radio>
  8920. </el-radio-group>
  8921. <el-checkbox-group
  8922. v-model="radio[index1]"
  8923. v-if="askJson.askJson[index1].type == '2'"
  8924. >
  8925. <el-checkbox
  8926. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8927. .checkList"
  8928. :key="checkIndex1"
  8929. :label="checkIndex1"
  8930. :disabled="isAnswer"
  8931. class="redioStyle"
  8932. ><span v-html="item2"></span>
  8933. </el-checkbox>
  8934. </el-checkbox-group>
  8935. </div>
  8936. </div>
  8937. </div>
  8938. </div>
  8939. </div>
  8940. <span slot="footer" class="dialog-footer">
  8941. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8942. >取 消</el-button
  8943. >
  8944. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8945. >确 定</el-button
  8946. >
  8947. </span>
  8948. </el-dialog>
  8949. <el-dialog
  8950. :title="noteName != '' ? noteName : '查看问卷'"
  8951. :visible.sync="dialogVisible5Teacher"
  8952. :append-to-body="true"
  8953. width="1000px"
  8954. :before-close="handleClose"
  8955. class="dialog_diy dialog_diy3"
  8956. >
  8957. <div>
  8958. <div class="w_name">
  8959. 学生姓名:<span>{{ sStudent.student }}</span>
  8960. </div>
  8961. <div
  8962. class="a_add_title"
  8963. style="
  8964. display: flex;
  8965. flex-direction: row;
  8966. align-items: center;
  8967. justify-content: center;
  8968. "
  8969. >
  8970. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8971. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8972. </div>
  8973. <div class="a_addBox">
  8974. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8975. <div
  8976. class="a_add_box"
  8977. v-for="(item1, index1) in askJson.askCount"
  8978. :key="index1"
  8979. >
  8980. <div class="a_add_head">
  8981. <div style="display: flex">
  8982. {{ index1 + 1 + "、" }}
  8983. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8984. </div>
  8985. <img
  8986. v-if="askJson.askJson[index1].img"
  8987. :src="askJson.askJson[index1].img"
  8988. style="height: 300px; margin-top: 10px; max-width: 100%"
  8989. />
  8990. </div>
  8991. <div class="a_add_body">
  8992. <div class="a_add_input">
  8993. <el-radio-group
  8994. v-model="radio[index1]"
  8995. v-if="
  8996. askJson.askJson[index1].type == '1' ||
  8997. !askJson.askJson[index1].type
  8998. "
  8999. >
  9000. <el-radio
  9001. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9002. .checkList"
  9003. :key="checkIndex"
  9004. :label="checkIndex"
  9005. :disabled="isAnswer"
  9006. class="redioStyle"
  9007. ><span v-html="item2"></span
  9008. ></el-radio>
  9009. </el-radio-group>
  9010. <el-checkbox-group
  9011. v-model="radio[index1]"
  9012. v-if="askJson.askJson[index1].type == '2'"
  9013. >
  9014. <el-checkbox
  9015. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9016. .checkList"
  9017. :key="checkIndex1"
  9018. :label="checkIndex1"
  9019. :disabled="isAnswer"
  9020. class="redioStyle"
  9021. ><span v-html="item2"></span>
  9022. </el-checkbox>
  9023. </el-checkbox-group>
  9024. </div>
  9025. </div>
  9026. </div>
  9027. </div>
  9028. </div>
  9029. <span slot="footer" class="dialog-footer">
  9030. <el-button
  9031. @click="dialogVisible5Teacher = false"
  9032. v-show="noteName == ''"
  9033. >取 消</el-button
  9034. >
  9035. <el-button
  9036. type="primary"
  9037. @click="addStudentAskTeacher"
  9038. v-show="noteName == ''"
  9039. >确 定</el-button
  9040. >
  9041. </span>
  9042. </el-dialog>
  9043. <el-dialog
  9044. :title="noteName != '' ? noteName : '查看选择题'"
  9045. :visible.sync="dialogVisibleChoice"
  9046. :append-to-body="true"
  9047. width="1000px"
  9048. :before-close="handleClose"
  9049. class="dialog_diy dialog_diy3"
  9050. >
  9051. <div>
  9052. <div class="a_addBox">
  9053. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  9054. <div
  9055. class="a_add_box"
  9056. v-for="(item1, index1) in testJson.testCount"
  9057. :key="index1"
  9058. >
  9059. <div class="a_add_head">
  9060. <div style="display: flex">
  9061. {{ index1 + 1 + "、" }}
  9062. <div
  9063. v-if="testJson.testJson[index1].type == '1'"
  9064. style="margin-right: 5px; min-width: 70px"
  9065. >
  9066. (单选题)
  9067. </div>
  9068. <div
  9069. v-if="testJson.testJson[index1].type == '2'"
  9070. style="margin-right: 5px; min-width: 70px"
  9071. >
  9072. (多选题)
  9073. </div>
  9074. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9075. </div>
  9076. <img
  9077. v-if="testJson.testJson[index1].img"
  9078. :src="testJson.testJson[index1].img"
  9079. style="height: 300px; margin-top: 10px; max-width: 100%"
  9080. />
  9081. </div>
  9082. <div
  9083. class="timuImgBox"
  9084. v-if="
  9085. testJson.testJson[index1].timuList &&
  9086. testJson.testJson[index1].timuList.length
  9087. "
  9088. >
  9089. <div
  9090. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9091. :key="tIndex"
  9092. class="timuImg"
  9093. @click.stop="previewImg(timg.src)"
  9094. >
  9095. <img :src="timg.src" alt="" />
  9096. </div>
  9097. </div>
  9098. <div class="a_add_body">
  9099. <div class="a_add_input">
  9100. <el-radio-group
  9101. v-model="radio[index1]"
  9102. v-if="testJson.testJson[index1].type == '1'"
  9103. >
  9104. <div class="radioBox">
  9105. <el-radio
  9106. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9107. .checkList"
  9108. :key="checkIndex"
  9109. :label="checkIndex"
  9110. :disabled="isAnswer"
  9111. class="redioStyle"
  9112. >
  9113. <div
  9114. style="margin-right: 10px"
  9115. v-if="item2 && item2.imgType && item2.imgType == 1"
  9116. >
  9117. <div class="inImg" @click.stop="previewImg(item2.src)">
  9118. <img :src="item2.src" alt="" />
  9119. </div>
  9120. </div>
  9121. <span v-else v-html="item2"></span>
  9122. </el-radio>
  9123. </div>
  9124. </el-radio-group>
  9125. <el-checkbox-group
  9126. v-model="radio[index1]"
  9127. v-if="testJson.testJson[index1].type == '2'"
  9128. >
  9129. <div class="radioBox">
  9130. <el-checkbox
  9131. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9132. .checkList"
  9133. :key="checkIndex"
  9134. :label="checkIndex"
  9135. :disabled="isAnswer"
  9136. class="redioStyle"
  9137. >
  9138. <div
  9139. style="margin-right: 10px"
  9140. v-if="item2 && item2.imgType && item2.imgType == 1"
  9141. >
  9142. <div class="inImg" @click.stop="previewImg(item2.src)">
  9143. <img :src="item2.src" alt="" />
  9144. </div>
  9145. </div>
  9146. <span v-else v-html="item2"></span>
  9147. </el-checkbox>
  9148. </div>
  9149. </el-checkbox-group>
  9150. </div>
  9151. </div>
  9152. </div>
  9153. </div>
  9154. </div>
  9155. <span slot="footer" class="dialog-footer">
  9156. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9157. >取 消</el-button
  9158. >
  9159. <el-button
  9160. type="primary"
  9161. @click="addStudentTest"
  9162. v-show="noteName == ''"
  9163. >确 定</el-button
  9164. >
  9165. </span>
  9166. </el-dialog>
  9167. <el-dialog
  9168. :title="noteName != '' ? noteName : '查看选择题'"
  9169. :visible.sync="dialogVisibleChoiceTeacher"
  9170. :append-to-body="true"
  9171. width="1000px"
  9172. :before-close="handleClose"
  9173. class="dialog_diy dialog_diy3"
  9174. >
  9175. <div>
  9176. <div class="w_name">
  9177. 学生姓名:<span>{{ sStudent.student }}</span>
  9178. </div>
  9179. <div class="a_addBox">
  9180. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  9181. <div
  9182. class="a_add_box"
  9183. v-for="(item1, index1) in testJson.testCount"
  9184. :key="index1"
  9185. >
  9186. <div class="a_add_head">
  9187. <div style="display: flex">
  9188. {{ index1 + 1 + "、" }}
  9189. <div
  9190. v-if="testJson.testJson[index1].type == '1'"
  9191. style="margin-right: 5px; min-width: 70px"
  9192. >
  9193. (单选题)
  9194. </div>
  9195. <div
  9196. v-if="testJson.testJson[index1].type == '2'"
  9197. style="margin-right: 5px; min-width: 70px"
  9198. >
  9199. (多选题)
  9200. </div>
  9201. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9202. </div>
  9203. <img
  9204. v-if="testJson.testJson[index1].img"
  9205. :src="testJson.testJson[index1].img"
  9206. style="height: 300px; margin-top: 10px; max-width: 100%"
  9207. />
  9208. </div>
  9209. <div
  9210. class="timuImgBox"
  9211. v-if="
  9212. testJson.testJson[index1].timuList &&
  9213. testJson.testJson[index1].timuList.length
  9214. "
  9215. >
  9216. <div
  9217. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9218. :key="tIndex"
  9219. class="timuImg"
  9220. @click.stop="previewImg(timg.src)"
  9221. >
  9222. <img :src="timg.src" alt="" />
  9223. </div>
  9224. </div>
  9225. <div class="a_add_body">
  9226. <div class="a_add_input">
  9227. <el-radio-group
  9228. v-model="radio[index1]"
  9229. v-if="testJson.testJson[index1].type == '1'"
  9230. >
  9231. <div class="radioBox">
  9232. <el-radio
  9233. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9234. .checkList"
  9235. :key="checkIndex"
  9236. :label="checkIndex"
  9237. :disabled="isAnswer"
  9238. class="redioStyle"
  9239. >
  9240. <div
  9241. style="margin-right: 10px"
  9242. v-if="item2 && item2.imgType && item2.imgType == 1"
  9243. >
  9244. <div class="inImg" @click.stop="previewImg(item2.src)">
  9245. <img :src="item2.src" alt="" />
  9246. </div>
  9247. </div>
  9248. <span v-else v-html="item2"></span>
  9249. </el-radio>
  9250. </div>
  9251. </el-radio-group>
  9252. <el-checkbox-group
  9253. v-model="radio[index1]"
  9254. v-if="testJson.testJson[index1].type == '2'"
  9255. >
  9256. <div class="radioBox">
  9257. <el-checkbox
  9258. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9259. .checkList"
  9260. :key="checkIndex"
  9261. :label="checkIndex"
  9262. :disabled="isAnswer"
  9263. class="redioStyle"
  9264. >
  9265. <div
  9266. style="margin-right: 10px"
  9267. v-if="item2 && item2.imgType && item2.imgType == 1"
  9268. >
  9269. <div class="inImg" @click.stop="previewImg(item2.src)">
  9270. <img :src="item2.src" alt="" />
  9271. </div>
  9272. </div>
  9273. <span v-else v-html="item2"></span>
  9274. </el-checkbox>
  9275. </div>
  9276. </el-checkbox-group>
  9277. </div>
  9278. </div>
  9279. </div>
  9280. </div>
  9281. </div>
  9282. <span slot="footer" class="dialog-footer">
  9283. <el-button
  9284. @click="dialogVisibleChoiceTeacher = false"
  9285. v-show="noteName == ''"
  9286. >取 消</el-button
  9287. >
  9288. <el-button
  9289. type="primary"
  9290. @click="addStudentTestTeacher"
  9291. v-show="noteName == ''"
  9292. >确 定</el-button
  9293. >
  9294. </span>
  9295. </el-dialog>
  9296. <el-dialog
  9297. title="查看富文本"
  9298. :visible.sync="dialogVisible1"
  9299. :append-to-body="true"
  9300. width="500px"
  9301. :before-close="handleClose"
  9302. class="dialog_diy textCss"
  9303. >
  9304. <el-form style="font-size: 20px">
  9305. <el-form-item label="文本标题" class="textTitle">
  9306. <div style="font-size: 20px">{{ text.name }}</div>
  9307. </el-form-item>
  9308. <div>富文本内容</div>
  9309. <div
  9310. v-html="text.url"
  9311. style="font-size: 18px; padding: 40px 0 0 0"
  9312. ></div>
  9313. </el-form>
  9314. <span slot="footer" class="dialog-footer">
  9315. <el-button type="primary" @click="dialogVisible1 = false"
  9316. >确定</el-button
  9317. >
  9318. </span>
  9319. </el-dialog>
  9320. <el-dialog
  9321. title="文件预览"
  9322. :visible.sync="dialogVisible3"
  9323. width="50%"
  9324. :before-close="handleClose"
  9325. class="dialog_diy"
  9326. :class="{ fullStyle: full }"
  9327. >
  9328. <div slot="title" class="header-title">
  9329. <div style="color: #fff">文件预览</div>
  9330. <div style="position: absolute; top: 19px; right: 50px">
  9331. <img
  9332. src="../../assets/full.png"
  9333. style="height: 16px; cursor: pointer"
  9334. alt=""
  9335. @click="fullTools"
  9336. />
  9337. </div>
  9338. </div>
  9339. <pdf
  9340. v-if="showPDF"
  9341. :pdfUrl="pptImgUrl"
  9342. style="width: 100%; height: 520px; overflow: auto"
  9343. :class="{ fullStyle: full }"
  9344. ></pdf>
  9345. <iframe
  9346. v-else
  9347. :src="pptImgUrl"
  9348. frameborder="0"
  9349. width="100%"
  9350. height="600"
  9351. :class="{ fullStyle: full }"
  9352. ></iframe>
  9353. </el-dialog>
  9354. <el-dialog
  9355. title="文件预览"
  9356. :visible.sync="dialogVisible6"
  9357. width="50%"
  9358. :before-close="handleClose"
  9359. class="dialog_diy"
  9360. >
  9361. <iframe
  9362. :src="pptImgUrl1"
  9363. frameborder="0"
  9364. width="100%"
  9365. height="600"
  9366. ></iframe>
  9367. </el-dialog>
  9368. <el-dialog
  9369. title="提示"
  9370. :visible.sync="dialogVisible4"
  9371. :append-to-body="true"
  9372. width="800px"
  9373. :before-close="handleClose"
  9374. class="dialog_diy notice"
  9375. >
  9376. <div>此功能暂未开放!</div>
  9377. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9378. </el-dialog>
  9379. <el-dialog
  9380. title="问答"
  9381. :visible.sync="answerDialogVisible"
  9382. :append-to-body="true"
  9383. width="800px"
  9384. :before-close="handleClose"
  9385. class="dialog_diy"
  9386. >
  9387. <div>
  9388. <div
  9389. style="
  9390. display: flex;
  9391. flex-wrap: nowrap;
  9392. flex-direction: column;
  9393. position: relative;
  9394. "
  9395. >
  9396. <div class="queTop" style="padding: 20px 0 20px 0">
  9397. <div class="question">
  9398. <img src="../../assets/icon/question.png" alt />
  9399. </div>
  9400. <div class="queTitle">
  9401. <div style="width: 90px; min-width: 90px">提问:</div>
  9402. <div>{{ answerQ }}</div>
  9403. </div>
  9404. </div>
  9405. <div class="ediBottom">
  9406. <textarea
  9407. rows="6"
  9408. class="binfo_input"
  9409. cols
  9410. style="width: 95%; height: 120px"
  9411. v-model="questionAnswer"
  9412. ></textarea>
  9413. </div>
  9414. </div>
  9415. </div>
  9416. <div slot="footer">
  9417. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9418. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9419. </div>
  9420. </el-dialog>
  9421. <el-dialog
  9422. title="倒计时"
  9423. :visible.sync="timeDialogVisible"
  9424. :append-to-body="true"
  9425. width="800px"
  9426. :before-close="handleClose"
  9427. class="dialog_diy"
  9428. >
  9429. <div>
  9430. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9431. </div>
  9432. <div slot="footer">
  9433. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9434. </div>
  9435. </el-dialog>
  9436. <el-dialog
  9437. title="权限设置"
  9438. :visible.sync="juriVisible"
  9439. :append-to-body="true"
  9440. width="400px"
  9441. :before-close="handleClose"
  9442. class="dialog_diy"
  9443. >
  9444. <div>
  9445. <div class="open_box">
  9446. <div class="switch_box">
  9447. <span>允许学生查看所有作业</span>
  9448. <el-switch
  9449. v-model="sIsOpen"
  9450. active-text=""
  9451. class="switchCss"
  9452. @change="updateSLook"
  9453. ></el-switch>
  9454. </div>
  9455. <div
  9456. class="switch_box"
  9457. v-if="
  9458. courseDetail.userid == userid ||
  9459. (courseDetail.course_teacher &&
  9460. courseDetail.course_teacher.indexOf(userid) != -1)
  9461. "
  9462. >
  9463. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9464. <span>禁止学生查看所有阶段</span>
  9465. <el-switch
  9466. v-model="IsLookOpen"
  9467. active-text=""
  9468. class="switchCss"
  9469. @change="updateLookOpen"
  9470. ></el-switch>
  9471. </div>
  9472. <div class="switch_box" v-if="courseDetail.userid == userid">
  9473. <span>开启跟随模式</span>
  9474. <el-switch
  9475. v-model="IsFollow"
  9476. active-text=""
  9477. class="switchCss"
  9478. @change="updateFollow"
  9479. ></el-switch>
  9480. </div>
  9481. </div>
  9482. </div>
  9483. <div slot="footer">
  9484. <el-button
  9485. style="background: #409efe; color: #fff"
  9486. @click="juriVisible = false"
  9487. >关 闭</el-button
  9488. >
  9489. </div>
  9490. </el-dialog>
  9491. <el-dialog
  9492. title="查看视频"
  9493. :visible.sync="videoVisible"
  9494. :append-to-body="true"
  9495. width="1000px"
  9496. :before-close="handleClose"
  9497. class="dialog_diy1"
  9498. >
  9499. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9500. <video-player
  9501. class="video-player vjs-custom-skin"
  9502. :playsinline="true"
  9503. :options="videoDetail"
  9504. @play="onPlayerPlay($event)"
  9505. style="width: 100%; height: 100%"
  9506. ></video-player>
  9507. </div>
  9508. <div slot="footer">
  9509. <el-button
  9510. style="background: #409efe; color: #fff"
  9511. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9512. >
  9513. 关 闭</el-button
  9514. >
  9515. </div>
  9516. </el-dialog>
  9517. <el-dialog
  9518. title="查看详情"
  9519. :visible.sync="commentDialogVisible"
  9520. :append-to-body="true"
  9521. width="800px"
  9522. :before-close="handleClose"
  9523. class="dialog_diy"
  9524. >
  9525. <div class="commentTop">
  9526. <div class="studentDetail">
  9527. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9528. <div class="nameAndTime">
  9529. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9530. <div>{{ commentDetail.time }}</div>
  9531. </div>
  9532. <div
  9533. class="returnBtn"
  9534. style="margin-left: auto; width: 80px"
  9535. v-if="
  9536. commentDetail.works &&
  9537. commentDetail.type == 0 &&
  9538. (tType == 1 || tType == 4)
  9539. "
  9540. @click="
  9541. showPicturePaint(
  9542. commentDetail.img ? commentDetail.img : commentDetail.works
  9543. )
  9544. "
  9545. >
  9546. 教师批注
  9547. </div>
  9548. </div>
  9549. <div
  9550. class="worksAnswer"
  9551. v-if="commentDetail.works && commentDetail.type == 2"
  9552. >
  9553. {{ JSON.parse(commentDetail.works)[0].answer }}
  9554. </div>
  9555. <div
  9556. class="worksAnswer"
  9557. v-if="commentDetail.works && commentDetail.type == 1"
  9558. >
  9559. <img
  9560. src="../../assets/teacherWork.png"
  9561. v-if="commentDetail.ateacher"
  9562. class="w_teachert"
  9563. />
  9564. <pdf
  9565. v-if="showPDF"
  9566. :pdfUrl="pptImgUrl"
  9567. style="width: 100%; height: 520px; overflow: auto"
  9568. :class="{ fullStyle: full }"
  9569. ></pdf>
  9570. <iframe
  9571. v-else
  9572. :src="pptImgUrl"
  9573. frameborder="0"
  9574. width="100%"
  9575. height="600"
  9576. :class="{ fullStyle: full }"
  9577. ></iframe>
  9578. </div>
  9579. <div
  9580. class="worksAnswer"
  9581. v-if="commentDetail.works && commentDetail.type == 0"
  9582. >
  9583. <img
  9584. src="../../assets/teacherWork.png"
  9585. v-if="commentDetail.ateacher"
  9586. class="w_teachert"
  9587. style="right: 105px"
  9588. />
  9589. <img
  9590. :src="commentDetail.works"
  9591. alt=""
  9592. @click="previewImg(commentDetail.works)"
  9593. />
  9594. </div>
  9595. <div
  9596. class="worksAnswer"
  9597. v-if="commentDetail.works && commentDetail.type == 3"
  9598. >
  9599. <img
  9600. src="../../assets/teacherWork.png"
  9601. v-if="commentDetail.ateacher"
  9602. class="w_teachert"
  9603. />
  9604. <video-player
  9605. class="video-player vjs-custom-skin"
  9606. :playsinline="true"
  9607. :options="videoDetail"
  9608. @play="onPlayerPlay($event)"
  9609. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9610. ></video-player>
  9611. </div>
  9612. <div
  9613. class="worksAnswer"
  9614. v-if="commentDetail.works && commentDetail.type == 10"
  9615. >
  9616. <div class="cont" v-html="commentDetail.works.text"></div>
  9617. </div>
  9618. <div
  9619. class="worksAnswer codeFileBox"
  9620. v-if="commentDetail.works && commentDetail.type == 12"
  9621. @click="downloadFile(commentDetail.works)"
  9622. >
  9623. <img src="../../assets/icon/codeFile.png" />
  9624. <div>点击下载文件</div>
  9625. </div>
  9626. <div
  9627. class="worksAnswer codeFileBox"
  9628. v-if="commentDetail.works && commentDetail.type == 15"
  9629. @click="
  9630. openCocoPi(
  9631. 57,
  9632. commentIndexJson.toolIndex,
  9633. commentDetail.userid,
  9634. commentDetail.sName
  9635. )
  9636. "
  9637. >
  9638. <img src="../../assets/icon/codeFile.png" />
  9639. <div>点击打开CocoPi</div>
  9640. </div>
  9641. <div
  9642. class="worksAnswer"
  9643. v-if="commentDetail.works && commentDetail.type == 13"
  9644. >
  9645. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9646. </div>
  9647. <div
  9648. class="worksAnswer"
  9649. v-if="commentDetail.works && commentDetail.type == 4"
  9650. >
  9651. <div class="evalCss">
  9652. <div class="nav">请选择星星进行评分</div>
  9653. <div class="middleBox" v-if="eScore.eStar">
  9654. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9655. <div class="nameAndrate">
  9656. <div>{{ e.value }}</div>
  9657. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9658. </div>
  9659. <div v-if="e.detail">{{ e.detail }}</div>
  9660. </div>
  9661. <div class="bz">
  9662. <textarea
  9663. disabled
  9664. rows="4"
  9665. class="pj"
  9666. style="
  9667. padding: 10px 5px;
  9668. width: 70%;
  9669. background: #f7f6f9;
  9670. font-size: 14px;
  9671. text-indent: 10px;
  9672. color: #000;
  9673. "
  9674. cols
  9675. v-model="eScore.eBzText"
  9676. placeholder="请输入评价内容..."
  9677. ></textarea>
  9678. </div>
  9679. </div>
  9680. </div>
  9681. </div>
  9682. <div class="comment">
  9683. <div class="commentList">
  9684. <div class="commentImg">
  9685. <img
  9686. @click="
  9687. isLikes(
  9688. commentDetail.wid,
  9689. userid,
  9690. 1,
  9691. null,
  9692. commentDetail.isLikes
  9693. )
  9694. "
  9695. :src="commentDetail.isLikes == true ? likes : noLikes"
  9696. alt=""
  9697. />
  9698. </div>
  9699. <div>{{ commentDetail.likesCount }}</div>
  9700. </div>
  9701. <div class="commentList">
  9702. <div class="commentImg">
  9703. <img src="../../assets/icon/comment/comment.png" alt="" />
  9704. </div>
  9705. <div>{{ commentDetail.commentCount }}</div>
  9706. </div>
  9707. </div>
  9708. <div class="drawPBox" v-if="commentDetail.img">
  9709. <span>教师批注</span>
  9710. <img
  9711. :src="commentDetail.img"
  9712. alt=""
  9713. @click="previewImg(commentDetail.img)"
  9714. />
  9715. <span
  9716. class="deleteImg"
  9717. v-if="tType == 1 || tType == 4"
  9718. @click.stop="deletePicturePaint(commentDetail.wid)"
  9719. style="
  9720. font-size: 14px;
  9721. width: auto !important;
  9722. color: #b4b4b4;
  9723. top: unset;
  9724. bottom: 0;
  9725. border: none;
  9726. padding: 0;
  9727. height: auto !important;
  9728. margin: 0;
  9729. "
  9730. >删除</span
  9731. >
  9732. </div>
  9733. </div>
  9734. <div class="commentBox">
  9735. <div class="pl">评论:</div>
  9736. <div style="max-height: 200px; overflow: auto">
  9737. <div
  9738. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9739. style="padding: 10px 0 0 0"
  9740. >
  9741. <div
  9742. class="studentDetail"
  9743. style="padding-top: 10px"
  9744. v-for="(co, coIndex) in commentDetail.commentJson"
  9745. :key="coIndex"
  9746. >
  9747. <div class="tx" style="min-width: 50px">
  9748. <img src="../../assets/avatar.png" alt="" />
  9749. </div>
  9750. <div class="plPerson">
  9751. <div class="plName">
  9752. <div>{{ co.commentPeople }}</div>
  9753. <div style="margin-left: 5px">
  9754. {{ co.commentTime }}
  9755. </div>
  9756. <div
  9757. class="deleteComment"
  9758. v-if="userid == co.userid"
  9759. @click="deleteComment(co.wid)"
  9760. >
  9761. 删除
  9762. </div>
  9763. </div>
  9764. <div class="plContent">{{ co.commentText }}</div>
  9765. </div>
  9766. </div>
  9767. </div>
  9768. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9769. </div>
  9770. </div>
  9771. <div style="margin-top: 10px">
  9772. <div class="displayBox">
  9773. <div
  9774. style="
  9775. color: #556db4;
  9776. font-size: 14px;
  9777. font-weight: bold;
  9778. padding-bottom: 10px;
  9779. "
  9780. >
  9781. 评价
  9782. </div>
  9783. <div class="easy_comment" v-if="false">
  9784. <div
  9785. v-for="(p, pIndex) in PlTextList"
  9786. :key="pIndex"
  9787. @click="fastText(p, 1)"
  9788. >
  9789. {{ p }}
  9790. </div>
  9791. </div>
  9792. </div>
  9793. <div>
  9794. <textarea
  9795. rows="3"
  9796. class="pj"
  9797. style="padding: 10px 5px"
  9798. cols
  9799. v-model="commentText"
  9800. placeholder="请输入评论"
  9801. ></textarea>
  9802. </div>
  9803. </div>
  9804. <div slot="footer">
  9805. <el-button
  9806. @click="
  9807. (commentDialogVisible = false),
  9808. (commentIndexJson = {}),
  9809. videoDetail.sources && videoDetail.sources[0]
  9810. ? (videoDetail.sources[0].src = '')
  9811. : ''
  9812. "
  9813. >取 消</el-button
  9814. >
  9815. <el-button
  9816. type="primary"
  9817. @click="addComment(commentDetail.wid, userid, 2)"
  9818. >确 定</el-button
  9819. >
  9820. </div>
  9821. </el-dialog>
  9822. <el-dialog
  9823. title="查看文档"
  9824. :visible.sync="fullDialogVisible"
  9825. :append-to-body="true"
  9826. width="100%"
  9827. :before-close="handleClose"
  9828. :show-close="false"
  9829. class="dialog_diy full_diy"
  9830. :class="{ full_diy2: fulltype == 3 }"
  9831. >
  9832. <div slot="title" class="header-title">
  9833. <div style="color: #fff">查看文档</div>
  9834. <div
  9835. @click="fullDialogVisible = false"
  9836. style="
  9837. cursor: pointer;
  9838. position: absolute;
  9839. top: 20px;
  9840. right: 20px;
  9841. color: #fff;
  9842. "
  9843. >
  9844. 退出全屏
  9845. </div>
  9846. </div>
  9847. <div style="height: 100%">
  9848. <div
  9849. class="wheel"
  9850. v-if="
  9851. fullUrl.indexOf(
  9852. 'https://view.officeapps.live.com/op/view.aspx?src='
  9853. ) != -1 && fulltype == 2
  9854. "
  9855. style="width: 95%; margin: 0 auto"
  9856. >
  9857. <iframe
  9858. style="width: 100%; height: 100%; border: none"
  9859. :src="fullUrl"
  9860. ></iframe>
  9861. </div>
  9862. <iframe
  9863. v-else-if="fulltype == 2"
  9864. style="width: 100%; height: 100%; border: none"
  9865. :src="fullUrl"
  9866. security="restricted"
  9867. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9868. ></iframe>
  9869. <pdf
  9870. v-else-if="fulltype == 3"
  9871. :pdfUrl="fullUrl"
  9872. style="width: 100%; height: 100%; overflow: auto"
  9873. ></pdf>
  9874. <div
  9875. class="wheel"
  9876. v-if="fulltype == 1"
  9877. style="
  9878. box-shadow: 0 0 6px 1px #f2f2f2;
  9879. width: 100%;
  9880. background: #f1f1f1;
  9881. "
  9882. >
  9883. <div class="title" style="width: 100%; box-sizing: border-box">
  9884. 查看文档
  9885. </div>
  9886. <el-form class="textBox" style="height: 90%">
  9887. <el-form-item class="textTitle">
  9888. <div style="font-size: 22px">
  9889. {{ fullUrl.name }}
  9890. </div>
  9891. </el-form-item>
  9892. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9893. <div
  9894. v-html="fullUrl.url"
  9895. class="textContent"
  9896. style="height: auto"
  9897. ></div>
  9898. </el-form>
  9899. </div>
  9900. </div>
  9901. <!-- <div slot="footer">
  9902. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9903. </div> -->
  9904. </el-dialog>
  9905. <el-dialog
  9906. title="个人评价"
  9907. :visible.sync="studentEvalDialogVisible"
  9908. :append-to-body="true"
  9909. width="800px"
  9910. :before-close="handleClose"
  9911. class="dialog_diy"
  9912. >
  9913. <div class="evalCss">
  9914. <div class="nav">请选择星星进行评分</div>
  9915. <div class="middleBox" v-if="eScore.eStar">
  9916. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9917. <div class="nameAndrate">
  9918. <div>{{ e.value }}</div>
  9919. <el-rate
  9920. v-model="eScore.eStar[eIndex]"
  9921. :disabled="isStar"
  9922. ></el-rate>
  9923. </div>
  9924. <div v-if="e.detail">{{ e.detail }}</div>
  9925. </div>
  9926. <div class="easy_comment" v-if="false">
  9927. <div
  9928. v-for="(p, pIndex) in PlTextList"
  9929. :key="pIndex"
  9930. @click="fastText(p, 2)"
  9931. >
  9932. {{ p }}
  9933. </div>
  9934. </div>
  9935. <div class="bz">
  9936. <textarea
  9937. :disabled="isStar"
  9938. rows="4"
  9939. class="pj"
  9940. style="
  9941. padding: 10px 5px;
  9942. width: 70%;
  9943. background: #f7f6f9;
  9944. font-size: 14px;
  9945. text-indent: 10px;
  9946. "
  9947. cols
  9948. v-model="eScore.eBzText"
  9949. placeholder="请输入评价内容..."
  9950. ></textarea>
  9951. </div>
  9952. </div>
  9953. </div>
  9954. <div slot="footer">
  9955. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9956. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9957. >确 定</el-button
  9958. >
  9959. </div>
  9960. </el-dialog>
  9961. <el-dialog
  9962. title="个人评价"
  9963. :visible.sync="studentEvalDialogVisibleTeacher"
  9964. :append-to-body="true"
  9965. width="800px"
  9966. :before-close="handleClose"
  9967. class="dialog_diy"
  9968. >
  9969. <div class="w_name">
  9970. 学生姓名:<span>{{ sStudent.student }}</span>
  9971. </div>
  9972. <div class="evalCss">
  9973. <div class="nav">请选择星星进行评分</div>
  9974. <div class="middleBox" v-if="eScore.eStar">
  9975. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9976. <div class="nameAndrate">
  9977. <div>{{ e.value }}</div>
  9978. <el-rate
  9979. v-model="eScore.eStar[eIndex]"
  9980. :disabled="isStar"
  9981. ></el-rate>
  9982. </div>
  9983. <div v-if="e.detail">{{ e.detail }}</div>
  9984. </div>
  9985. <div class="easy_comment" v-if="false">
  9986. <div
  9987. v-for="(p, pIndex) in PlTextList"
  9988. :key="pIndex"
  9989. @click="fastText(p, 2)"
  9990. >
  9991. {{ p }}
  9992. </div>
  9993. </div>
  9994. <div class="bz">
  9995. <textarea
  9996. :disabled="isStar"
  9997. rows="4"
  9998. class="pj"
  9999. style="
  10000. padding: 10px 5px;
  10001. width: 70%;
  10002. background: #f7f6f9;
  10003. font-size: 14px;
  10004. text-indent: 10px;
  10005. "
  10006. cols
  10007. v-model="eScore.eBzText"
  10008. placeholder="请输入评价内容..."
  10009. ></textarea>
  10010. </div>
  10011. </div>
  10012. </div>
  10013. <div slot="footer">
  10014. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10015. >取 消</el-button
  10016. >
  10017. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10018. >确 定</el-button
  10019. >
  10020. </div>
  10021. </el-dialog>
  10022. <el-dialog
  10023. title="选择填空"
  10024. :visible.sync="dialogVisibleSelect"
  10025. :append-to-body="true"
  10026. width="90%"
  10027. :before-close="handleClose"
  10028. class="dialog_diy dialog_diy3"
  10029. >
  10030. <div v-if="selectJson">
  10031. <div class="select_box2">
  10032. <div class="select_box2_title">
  10033. <div>选择填空</div>
  10034. <div>请选择对应的答案进行答题!</div>
  10035. </div>
  10036. <div class="select_box2_box">
  10037. <div class="select_box2_img">
  10038. <img
  10039. :src="selectJson.url"
  10040. @click="previewImg(selectJson.url)"
  10041. alt=""
  10042. />
  10043. </div>
  10044. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10045. <div style="padding-top: 15px">
  10046. <div class="select_answer_title" v-if="isSelect">
  10047. {{ selectAnswer.stu }}
  10048. </div>
  10049. <div class="select_answer_title" v-else>
  10050. 根据题目选择对应答案
  10051. </div>
  10052. <div
  10053. class="select_box2_answer_box"
  10054. v-for="(item2, checkIndex) in selectJson.select"
  10055. :key="checkIndex"
  10056. >
  10057. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10058. <el-select
  10059. :disabled="isSelect"
  10060. v-model="selectAnswer.answer[checkIndex]"
  10061. placeholder="请选择正确答案"
  10062. >
  10063. <el-option
  10064. v-for="(e, eIndex) in selectJson.select"
  10065. :key="eIndex"
  10066. :label="e"
  10067. :value="eIndex"
  10068. >
  10069. </el-option>
  10070. </el-select>
  10071. </div>
  10072. </div>
  10073. <div
  10074. class="rightAnswerCss"
  10075. v-if="isSelect && (tType == 1 || tType == 4)"
  10076. >
  10077. <div
  10078. v-for="(a, aIndex) in selectJson.answer"
  10079. :key="aIndex"
  10080. class="rightAnswer"
  10081. >
  10082. <div
  10083. v-if="selectAnswer.answer[aIndex] === a"
  10084. style="color: #767de1"
  10085. >
  10086. 回答正确
  10087. </div>
  10088. <div v-else>回答错误</div>
  10089. <div
  10090. style="margin-left: 10px"
  10091. v-if="selectAnswer.answer[aIndex] !== a"
  10092. >
  10093. 正确答案:
  10094. </div>
  10095. <div
  10096. :class="
  10097. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10098. "
  10099. >
  10100. {{ selectJson.select[a] }}
  10101. </div>
  10102. </div>
  10103. </div>
  10104. </div>
  10105. <div class="upAnswerCss">
  10106. <el-button
  10107. type="primary"
  10108. @click="addSelectAnswer"
  10109. v-if="!isSelect"
  10110. >提交答案</el-button
  10111. >
  10112. </div>
  10113. </div>
  10114. </div>
  10115. </div>
  10116. </el-dialog>
  10117. <el-dialog
  10118. title="选择填空"
  10119. :visible.sync="dialogVisibleSelectTeacher"
  10120. :append-to-body="true"
  10121. width="90%"
  10122. :before-close="handleClose"
  10123. class="dialog_diy dialog_diy3"
  10124. >
  10125. <div v-if="selectJson">
  10126. <div class="w_name">
  10127. 学生姓名:<span>{{ sStudent.student }}</span>
  10128. </div>
  10129. <div class="select_box2">
  10130. <div class="select_box2_title">
  10131. <div>选择填空</div>
  10132. <div>请选择对应的答案进行答题!</div>
  10133. </div>
  10134. <div class="select_box2_box">
  10135. <div class="select_box2_img">
  10136. <img
  10137. :src="selectJson.url"
  10138. @click="previewImg(selectJson.url)"
  10139. alt=""
  10140. />
  10141. </div>
  10142. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10143. <div style="padding-top: 15px">
  10144. <div class="select_answer_title" v-if="isSelect">
  10145. {{ selectAnswer.stu }}
  10146. </div>
  10147. <div class="select_answer_title" v-else>
  10148. 根据题目选择对应答案
  10149. </div>
  10150. <div
  10151. class="select_box2_answer_box"
  10152. v-for="(item2, checkIndex) in selectJson.select"
  10153. :key="checkIndex"
  10154. >
  10155. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10156. <el-select
  10157. :disabled="isSelect"
  10158. v-model="selectAnswer.answer[checkIndex]"
  10159. placeholder="请选择正确答案"
  10160. >
  10161. <el-option
  10162. v-for="(e, eIndex) in selectJson.select"
  10163. :key="eIndex"
  10164. :label="e"
  10165. :value="eIndex"
  10166. >
  10167. </el-option>
  10168. </el-select>
  10169. </div>
  10170. </div>
  10171. <div
  10172. class="rightAnswerCss"
  10173. v-if="isSelect && (tType == 1 || tType == 4)"
  10174. >
  10175. <div
  10176. v-for="(a, aIndex) in selectJson.answer"
  10177. :key="aIndex"
  10178. class="rightAnswer"
  10179. >
  10180. <div
  10181. v-if="selectAnswer.answer[aIndex] === a"
  10182. style="color: #767de1"
  10183. >
  10184. 回答正确
  10185. </div>
  10186. <div v-else>回答错误</div>
  10187. <div
  10188. style="margin-left: 10px"
  10189. v-if="selectAnswer.answer[aIndex] !== a"
  10190. >
  10191. 正确答案:
  10192. </div>
  10193. <div
  10194. :class="
  10195. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10196. "
  10197. >
  10198. {{ selectJson.select[a] }}
  10199. </div>
  10200. </div>
  10201. </div>
  10202. </div>
  10203. <div class="upAnswerCss">
  10204. <el-button
  10205. type="primary"
  10206. @click="addSelectAnswerTeacher"
  10207. v-if="!isSelect"
  10208. >提交答案</el-button
  10209. >
  10210. </div>
  10211. </div>
  10212. </div>
  10213. </div>
  10214. </el-dialog>
  10215. <el-dialog
  10216. title="教师评分"
  10217. :visible.sync="dialogVisibleScore"
  10218. :append-to-body="true"
  10219. width="800px"
  10220. :before-close="handleClose"
  10221. class="dialog_diy"
  10222. >
  10223. <div>
  10224. <div class="studentDetail">
  10225. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10226. <div class="nameAndTime">
  10227. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10228. <div>{{ commentDetail.time }}</div>
  10229. </div>
  10230. </div>
  10231. <div
  10232. class="worksAnswer"
  10233. v-if="commentDetail.works && commentDetail.type == 2"
  10234. >
  10235. {{ JSON.parse(commentDetail.works)[0].answer }}
  10236. </div>
  10237. <div
  10238. class="worksAnswer"
  10239. v-if="commentDetail.works && commentDetail.type == 1"
  10240. >
  10241. <pdf
  10242. v-if="showPDF"
  10243. :pdfUrl="pptImgUrl"
  10244. style="width: 100%; height: 520px; overflow: auto"
  10245. :class="{ fullStyle: full }"
  10246. ></pdf>
  10247. <iframe
  10248. v-else
  10249. :src="pptImgUrl"
  10250. frameborder="0"
  10251. width="100%"
  10252. height="600"
  10253. :class="{ fullStyle: full }"
  10254. ></iframe>
  10255. </div>
  10256. <div
  10257. class="worksAnswer"
  10258. v-if="commentDetail.works && commentDetail.type == 0"
  10259. >
  10260. <img
  10261. :src="commentDetail.works"
  10262. alt=""
  10263. @click="previewImg(commentDetail.works)"
  10264. />
  10265. </div>
  10266. <div
  10267. class="worksAnswer"
  10268. v-if="commentDetail.works && commentDetail.type == 3"
  10269. >
  10270. <video-player
  10271. class="video-player vjs-custom-skin"
  10272. :playsinline="true"
  10273. :options="videoDetail"
  10274. @play="onPlayerPlay($event)"
  10275. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10276. ></video-player>
  10277. </div>
  10278. <div
  10279. class="worksAnswer codeFileBox"
  10280. v-if="commentDetail.works && commentDetail.type == 12"
  10281. @click="downloadFile(commentDetail.works)"
  10282. >
  10283. <img src="../../assets/icon/codeFile.png" />
  10284. <div>点击下载文件</div>
  10285. </div>
  10286. <div
  10287. class="worksAnswer codeFileBox"
  10288. v-if="commentDetail.works && commentDetail.type == 15"
  10289. @click="
  10290. openCocoPi(
  10291. 57,
  10292. commentIndexJson.toolIndex,
  10293. commentDetail.userid,
  10294. commentDetail.sName
  10295. )
  10296. "
  10297. >
  10298. <img src="../../assets/icon/codeFile.png" />
  10299. <div>点击打开CocoPi</div>
  10300. </div>
  10301. <div
  10302. class="worksAnswer"
  10303. v-if="commentDetail.works && commentDetail.type == 13"
  10304. >
  10305. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10306. </div>
  10307. <div class="scoreBox">
  10308. <span class="t">请输入分数</span>
  10309. <el-input-number
  10310. :disabled="courseDetail.userid != userid"
  10311. v-model="wScore"
  10312. :controls="false"
  10313. :min="0"
  10314. :max="100"
  10315. ></el-input-number>
  10316. </div>
  10317. <div class="scoreDetailBox">
  10318. <span class="t">评分评论</span>
  10319. <el-input
  10320. type="textarea"
  10321. :rows="5"
  10322. :disabled="courseDetail.userid != userid"
  10323. resize="none"
  10324. v-model="scoreDetail"
  10325. placeholder="请输入对学生的评价"
  10326. >
  10327. </el-input>
  10328. </div>
  10329. </div>
  10330. <span slot="footer" class="dialog-footer">
  10331. <el-button
  10332. @click="
  10333. (dialogVisibleScore = false),
  10334. (commentIndexJson = {}),
  10335. videoDetail.sources && videoDetail.sources[0]
  10336. ? (videoDetail.sources[0].src = '')
  10337. : ''
  10338. "
  10339. >取 消</el-button
  10340. >
  10341. <el-button
  10342. type="primary"
  10343. v-if="courseDetail.userid == userid"
  10344. @click="scoreWork(commentDetail.wid)"
  10345. >确 定
  10346. </el-button>
  10347. </span>
  10348. </el-dialog>
  10349. <el-dialog
  10350. title="连词成句"
  10351. :visible.sync="dialogVisibleSentence"
  10352. :append-to-body="true"
  10353. width="1000px"
  10354. :before-close="handleClose"
  10355. class="dialog_diy dialog_diy3"
  10356. >
  10357. <div>
  10358. <div class="sentenBox">
  10359. <div
  10360. v-for="(st, stIndex) in sentenceList"
  10361. :key="stIndex"
  10362. style="padding-bottom: 20px"
  10363. >
  10364. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10365. <div class="cardList" v-if="st.chooseSenList">
  10366. <div class="cardBox">
  10367. <div
  10368. v-for="(r, rIndex) in st.chooseSenList"
  10369. :key="rIndex"
  10370. @click="returnCard(r, stIndex, rIndex)"
  10371. >
  10372. <el-tooltip
  10373. class="item"
  10374. effect="light"
  10375. :content="r"
  10376. placement="top"
  10377. v-if="r != '' && r != undefined"
  10378. >
  10379. <div
  10380. :class="{
  10381. isCard: r,
  10382. isChooseCard: r == '' || r == undefined,
  10383. }"
  10384. >
  10385. <div>{{ r }}</div>
  10386. </div>
  10387. </el-tooltip>
  10388. <div
  10389. :class="{
  10390. isCard: r,
  10391. isChooseCard: r == '' || r == undefined,
  10392. }"
  10393. v-else
  10394. >
  10395. <div>{{ r }}</div>
  10396. </div>
  10397. </div>
  10398. </div>
  10399. </div>
  10400. <div class="cardList" v-if="st.addChangeSen">
  10401. <div class="cardBox">
  10402. <div
  10403. v-for="(s, sIndex) in st.addChangeSen"
  10404. :key="sIndex"
  10405. @click="setRightAnswer(s, stIndex, sIndex)"
  10406. >
  10407. <el-tooltip
  10408. class="item"
  10409. effect="light"
  10410. :content="s"
  10411. placement="top"
  10412. v-if="s != '' && s != undefined"
  10413. >
  10414. <div
  10415. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10416. >
  10417. <div>{{ s }}</div>
  10418. </div>
  10419. </el-tooltip>
  10420. <div
  10421. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10422. v-else
  10423. >
  10424. <div>{{ s }}</div>
  10425. </div>
  10426. </div>
  10427. </div>
  10428. </div>
  10429. </div>
  10430. </div>
  10431. </div>
  10432. <span slot="footer" class="dialog-footer">
  10433. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10434. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10435. </span>
  10436. </el-dialog>
  10437. <el-dialog
  10438. title="连词成句"
  10439. :visible.sync="dialogVisibleSentenceTeacher"
  10440. :append-to-body="true"
  10441. width="1000px"
  10442. :before-close="handleClose"
  10443. class="dialog_diy dialog_diy3"
  10444. >
  10445. <div>
  10446. <div class="w_name">
  10447. 学生姓名:<span>{{ sStudent.student }}</span>
  10448. </div>
  10449. <div class="sentenBox">
  10450. <div
  10451. v-for="(st, stIndex) in sentenceList"
  10452. :key="stIndex"
  10453. style="padding-bottom: 20px"
  10454. >
  10455. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10456. <div class="cardList" v-if="st.chooseSenList">
  10457. <div class="cardBox">
  10458. <div
  10459. v-for="(r, rIndex) in st.chooseSenList"
  10460. :key="rIndex"
  10461. @click="returnCard(r, stIndex, rIndex)"
  10462. >
  10463. <el-tooltip
  10464. class="item"
  10465. effect="light"
  10466. :content="r"
  10467. placement="top"
  10468. v-if="r != '' && r != undefined"
  10469. >
  10470. <div
  10471. :class="{
  10472. isCard: r,
  10473. isChooseCard: r == '' || r == undefined,
  10474. }"
  10475. >
  10476. <div>{{ r }}</div>
  10477. </div>
  10478. </el-tooltip>
  10479. <div
  10480. :class="{
  10481. isCard: r,
  10482. isChooseCard: r == '' || r == undefined,
  10483. }"
  10484. v-else
  10485. >
  10486. <div>{{ r }}</div>
  10487. </div>
  10488. </div>
  10489. </div>
  10490. </div>
  10491. <div class="cardList" v-if="st.addChangeSen">
  10492. <div class="cardBox">
  10493. <div
  10494. v-for="(s, sIndex) in st.addChangeSen"
  10495. :key="sIndex"
  10496. @click="setRightAnswer(s, stIndex, sIndex)"
  10497. >
  10498. <el-tooltip
  10499. class="item"
  10500. effect="light"
  10501. :content="s"
  10502. placement="top"
  10503. v-if="s != '' && s != undefined"
  10504. >
  10505. <div
  10506. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10507. >
  10508. <div>{{ s }}</div>
  10509. </div>
  10510. </el-tooltip>
  10511. <div
  10512. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10513. v-else
  10514. >
  10515. <div>{{ s }}</div>
  10516. </div>
  10517. </div>
  10518. </div>
  10519. </div>
  10520. </div>
  10521. </div>
  10522. </div>
  10523. <span slot="footer" class="dialog-footer">
  10524. <el-button @click="dialogVisibleSentenceTeacher = false"
  10525. >取 消</el-button
  10526. >
  10527. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10528. </span>
  10529. </el-dialog>
  10530. <el-dialog
  10531. title="连词成句"
  10532. :visible.sync="dialogVisibleSentence1"
  10533. :append-to-body="true"
  10534. width="1000px"
  10535. :before-close="handleClose"
  10536. class="dialog_diy dialog_diy3"
  10537. >
  10538. <div>
  10539. <div class="sentenBox">
  10540. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10541. {{ sentenceList1.stuName }}的作业
  10542. </div>
  10543. <div
  10544. v-for="(st, stIndex) in sentenceList1"
  10545. :key="stIndex"
  10546. style="padding-bottom: 20px"
  10547. >
  10548. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10549. 第{{ stIndex + 1 }}题
  10550. </div>
  10551. <div class="isWrong">
  10552. <div class="cardList1" v-if="st.chooseSenList">
  10553. <div class="cardBox">
  10554. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10555. <el-tooltip
  10556. class="item"
  10557. effect="light"
  10558. :content="s"
  10559. placement="top"
  10560. >
  10561. <div class="isCard">
  10562. <div>{{ s }}</div>
  10563. </div>
  10564. </el-tooltip>
  10565. </div>
  10566. </div>
  10567. <div class="cardAnswerBox">
  10568. 组成句子:{{ st.chooseSenList.join(" ") }}
  10569. </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/right.png" alt="" />
  10580. </div>
  10581. <div>回答正确</div>
  10582. </div>
  10583. <div
  10584. class="answerRight isTj"
  10585. v-if="
  10586. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10587. (tType == 1 || tType == 4)
  10588. "
  10589. >
  10590. <div class="isTjImg">
  10591. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10592. </div>
  10593. <div>回答错误</div>
  10594. </div>
  10595. </div>
  10596. <div
  10597. v-if="
  10598. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10599. (tType == 1 || tType == 4)
  10600. "
  10601. >
  10602. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10603. <div
  10604. class="cardList"
  10605. v-if="st.rightAnswer"
  10606. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10607. >
  10608. <div class="cardBox">
  10609. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10610. <el-tooltip
  10611. class="item"
  10612. effect="light"
  10613. :content="r"
  10614. placement="top"
  10615. >
  10616. <div class="isCard1">
  10617. <div>{{ r }}</div>
  10618. </div>
  10619. </el-tooltip>
  10620. </div>
  10621. </div>
  10622. <div class="cardAnswerBox">
  10623. 组成句子:{{ st.rightAnswer.join(" ") }}
  10624. </div>
  10625. </div>
  10626. </div>
  10627. </div>
  10628. </div>
  10629. </div>
  10630. <span slot="footer" class="dialog-footer">
  10631. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10632. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10633. >确 定</el-button
  10634. >
  10635. </span>
  10636. </el-dialog>
  10637. <el-dialog
  10638. title="提交作业"
  10639. :visible.sync="dialogVisibleWorks"
  10640. :append-to-body="true"
  10641. width="500px"
  10642. :before-close="handleClose"
  10643. class="dialog_change"
  10644. >
  10645. <div class="marginT">
  10646. <div class="w_name">
  10647. 学生姓名:<span>{{ sStudent.student }}</span>
  10648. </div>
  10649. <div>上传文件</div>
  10650. <div
  10651. class="chapter_add"
  10652. @click="addImg($event)"
  10653. v-if="studyJuri[0].cover.length == 0"
  10654. >
  10655. <div class="up_photo">
  10656. <img src="../../assets/uploadImg2.png" alt />
  10657. </div>
  10658. <!-- <input
  10659. type="file"
  10660. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10661. style="display: none"
  10662. @change="beforeUpload1($event, 1)"
  10663. /> -->
  10664. <input
  10665. type="file"
  10666. accept="*"
  10667. style="display: none"
  10668. @change="beforeUpload1($event, 1)"
  10669. />
  10670. </div>
  10671. <!-- capture="camera" -->
  10672. <div
  10673. class="chapter_add"
  10674. style="
  10675. display: flex;
  10676. width: 100%;
  10677. flex-direction: row;
  10678. flex-wrap: wrap;
  10679. justify-content: flex-start;
  10680. padding: 15px 0;
  10681. "
  10682. v-if="studyJuri[0].cover.length > 0"
  10683. >
  10684. <div class="upCover">
  10685. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10686. <img :src="word" alt v-else-if="fileType == 1" />
  10687. <img :src="video" alt v-else-if="fileType == 2" />
  10688. <img :src="word2" alt v-else-if="fileType == 3" />
  10689. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10690. <div class="deleteWord" @click="clean(1)">
  10691. <img src="../../assets/icon/deleteWorks.png" alt />
  10692. </div>
  10693. </div>
  10694. </div>
  10695. </div>
  10696. <div
  10697. class="upload_send"
  10698. @click="addCourseWorksTeacher(taskCount)"
  10699. v-if="!proVisible"
  10700. >
  10701. 提交
  10702. </div>
  10703. </el-dialog>
  10704. <el-dialog
  10705. title="问答"
  10706. :visible.sync="answerDialogVisibleTeacher"
  10707. :append-to-body="true"
  10708. width="800px"
  10709. :before-close="handleClose"
  10710. class="dialog_diy"
  10711. >
  10712. <div>
  10713. <div class="w_name">
  10714. 学生姓名:<span>{{ sStudent.student }}</span>
  10715. </div>
  10716. <div
  10717. style="
  10718. display: flex;
  10719. flex-wrap: nowrap;
  10720. flex-direction: column;
  10721. position: relative;
  10722. "
  10723. >
  10724. <div class="queTop" style="padding: 20px 0 20px 0">
  10725. <div class="question">
  10726. <img src="../../assets/icon/question.png" alt />
  10727. </div>
  10728. <div class="queTitle">
  10729. <div style="width: 90px; min-width: 90px">提问:</div>
  10730. <div>{{ answerQ }}</div>
  10731. </div>
  10732. </div>
  10733. <div class="ediBottom">
  10734. <textarea
  10735. rows="6"
  10736. class="binfo_input"
  10737. cols
  10738. style="width: 95%; height: 120px"
  10739. v-model="questionAnswer"
  10740. ></textarea>
  10741. </div>
  10742. </div>
  10743. </div>
  10744. <div slot="footer">
  10745. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10746. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10747. </div>
  10748. </el-dialog>
  10749. <ImgDraw
  10750. :drawShow="drawShow"
  10751. @closeDraw="closeDraw"
  10752. @addImgDraw="addImgDraw"
  10753. :bg="bg"
  10754. ></ImgDraw>
  10755. <el-dialog
  10756. title="表格"
  10757. :visible.sync="dialogVisibleTable"
  10758. :append-to-body="true"
  10759. width="95%"
  10760. :before-close="handleClose"
  10761. class="dialog_diy"
  10762. >
  10763. <el-form>
  10764. <div>表格内容</div>
  10765. <Table
  10766. v-model="tableJson.text"
  10767. @change="change"
  10768. v-if="dialogVisibleTable"
  10769. ></Table>
  10770. </el-form>
  10771. <span slot="footer" class="dialog-footer">
  10772. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10773. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10774. </span>
  10775. </el-dialog>
  10776. <el-dialog
  10777. title="表格"
  10778. :visible.sync="dialogVisibleTableTeacher"
  10779. :append-to-body="true"
  10780. width="95%"
  10781. :before-close="handleClose"
  10782. class="dialog_diy"
  10783. >
  10784. <el-form>
  10785. <div class="w_name">
  10786. 学生姓名:<span>{{ sStudent.student }}</span>
  10787. </div>
  10788. <div>表格内容</div>
  10789. <Table
  10790. v-model="tableJson.text"
  10791. @change="change"
  10792. v-if="dialogVisibleTableTeacher"
  10793. ></Table>
  10794. </el-form>
  10795. <span slot="footer" class="dialog-footer">
  10796. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10797. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10798. </span>
  10799. </el-dialog>
  10800. <el-dialog
  10801. title="文档"
  10802. :visible.sync="dialogVisibleWord"
  10803. :append-to-body="true"
  10804. width="95%"
  10805. :before-close="handleClose"
  10806. class="dialog_diy"
  10807. >
  10808. <el-form>
  10809. <div>文档内容</div>
  10810. <editor-bar
  10811. v-model="wordJson.text"
  10812. v-if="dialogVisibleWord"
  10813. ></editor-bar>
  10814. </el-form>
  10815. <span slot="footer" class="dialog-footer">
  10816. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10817. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10818. </span>
  10819. </el-dialog>
  10820. <el-dialog
  10821. title="文档"
  10822. :visible.sync="dialogVisibleWordTeacher"
  10823. :append-to-body="true"
  10824. width="95%"
  10825. :before-close="handleClose"
  10826. class="dialog_diy"
  10827. >
  10828. <el-form>
  10829. <div class="w_name">
  10830. 学生姓名:<span>{{ sStudent.student }}</span>
  10831. </div>
  10832. <div>文档内容</div>
  10833. <editor-bar
  10834. v-model="wordJson.text"
  10835. v-if="dialogVisibleWordTeacher"
  10836. ></editor-bar>
  10837. </el-form>
  10838. <span slot="footer" class="dialog-footer">
  10839. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10840. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10841. </span>
  10842. </el-dialog>
  10843. <el-dialog
  10844. title="表格"
  10845. :visible.sync="dialogVisibleTable2"
  10846. :append-to-body="true"
  10847. width="95%"
  10848. :before-close="handleClose"
  10849. class="dialog_diy"
  10850. >
  10851. <el-form>
  10852. <div class="cont" v-html="tableJson.text"></div>
  10853. </el-form>
  10854. <span slot="footer" class="dialog-footer">
  10855. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10856. </span>
  10857. </el-dialog>
  10858. <el-dialog
  10859. title="文档"
  10860. :visible.sync="dialogVisibleTable3"
  10861. :append-to-body="true"
  10862. width="95%"
  10863. :before-close="handleClose"
  10864. class="dialog_diy"
  10865. >
  10866. <el-form>
  10867. <div class="cont" v-html="tableJson.text"></div>
  10868. </el-form>
  10869. <span slot="footer" class="dialog-footer">
  10870. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10871. </span>
  10872. </el-dialog>
  10873. <el-dialog
  10874. title="分组设置"
  10875. :visible.sync="dialogVisibleGroup"
  10876. :append-to-body="true"
  10877. width="95%"
  10878. :before-close="handleClose"
  10879. class="dialog_diy"
  10880. >
  10881. <div v-if="dialogVisibleGroup">
  10882. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10883. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10884. 提示:需要锁定位置,才能点击头像修改座位。
  10885. </div>
  10886. <div
  10887. type="primary"
  10888. v-if="groupJson.islock == 1"
  10889. class="returnBtn"
  10890. style="background-color: #225bc7"
  10891. @click="lockChair"
  10892. >
  10893. 锁定位置
  10894. </div>
  10895. <div
  10896. type="primary"
  10897. v-else
  10898. class="returnBtn"
  10899. style="background-color: #225bc7"
  10900. @click="lockChair"
  10901. >
  10902. 解锁位置
  10903. </div>
  10904. <div
  10905. type="primary"
  10906. @click="updateGroup"
  10907. class="returnBtn"
  10908. style="background-color: #225bc7"
  10909. >
  10910. 分组设置
  10911. </div>
  10912. </div>
  10913. <div>
  10914. <div
  10915. class="g_d_box"
  10916. v-if="groupJson.group && groupStudent[toolindex]"
  10917. >
  10918. <div
  10919. class="g_d_group"
  10920. v-for="(g, gindex) in groupJson.group"
  10921. :key="gindex"
  10922. >
  10923. <div class="g_d_group_chair">
  10924. <div v-if="groupJson.number > 1">
  10925. <span
  10926. :class="{
  10927. isChair:
  10928. groupStudent[toolindex][gindex] &&
  10929. groupStudent[toolindex][gindex][0],
  10930. updateChair:
  10931. courseDetail.userid == userid &&
  10932. groupStudent[toolindex][gindex] &&
  10933. groupStudent[toolindex][gindex][0] &&
  10934. groupJson.islock == 2,
  10935. }"
  10936. ><span
  10937. class="updateChairBtn"
  10938. @click="
  10939. updateGroupChair(
  10940. groupStudent[toolindex][gindex] &&
  10941. groupStudent[toolindex][gindex][0]
  10942. )
  10943. "
  10944. >修改</span
  10945. ></span
  10946. ><span>{{
  10947. groupStudent[toolindex][gindex] &&
  10948. groupStudent[toolindex][gindex][0]
  10949. ? groupStudent[toolindex][gindex] &&
  10950. groupStudent[toolindex][gindex][0].name
  10951. : "空位置"
  10952. }}</span>
  10953. </div>
  10954. <div v-if="groupJson.number > 4">
  10955. <span
  10956. :class="{
  10957. isChair:
  10958. groupStudent[toolindex][gindex] &&
  10959. groupStudent[toolindex][gindex][4],
  10960. updateChair:
  10961. courseDetail.userid == userid &&
  10962. groupStudent[toolindex][gindex] &&
  10963. groupStudent[toolindex][gindex][4] &&
  10964. groupJson.islock == 2,
  10965. }"
  10966. ><span
  10967. class="updateChairBtn"
  10968. @click="
  10969. updateGroupChair(
  10970. groupStudent[toolindex][gindex] &&
  10971. groupStudent[toolindex][gindex][4]
  10972. )
  10973. "
  10974. >修改</span
  10975. ></span
  10976. ><span>{{
  10977. groupStudent[toolindex][gindex] &&
  10978. groupStudent[toolindex][gindex][4]
  10979. ? groupStudent[toolindex][gindex] &&
  10980. groupStudent[toolindex][gindex][4].name
  10981. : "空位置"
  10982. }}</span>
  10983. </div>
  10984. <div v-if="groupJson.number > 8">
  10985. <span
  10986. :class="{
  10987. isChair:
  10988. groupStudent[toolindex][gindex] &&
  10989. groupStudent[toolindex][gindex][8],
  10990. updateChair:
  10991. courseDetail.userid == userid &&
  10992. groupStudent[toolindex][gindex] &&
  10993. groupStudent[toolindex][gindex][8] &&
  10994. groupJson.islock == 2,
  10995. }"
  10996. ><span
  10997. class="updateChairBtn"
  10998. @click="
  10999. updateGroupChair(
  11000. groupStudent[toolindex][gindex] &&
  11001. groupStudent[toolindex][gindex][8]
  11002. )
  11003. "
  11004. >修改</span
  11005. ></span
  11006. ><span>{{
  11007. groupStudent[toolindex][gindex] &&
  11008. groupStudent[toolindex][gindex][8]
  11009. ? groupStudent[toolindex][gindex] &&
  11010. groupStudent[toolindex][gindex][8].name
  11011. : "空位置"
  11012. }}</span>
  11013. </div>
  11014. </div>
  11015. <div class="g_d_group_tableBox">
  11016. <div class="g_d_group_chair2">
  11017. <div v-if="groupJson.number > 2">
  11018. <span
  11019. :class="{
  11020. isChair:
  11021. groupStudent[toolindex][gindex] &&
  11022. groupStudent[toolindex][gindex][2],
  11023. updateChair:
  11024. courseDetail.userid == userid &&
  11025. groupStudent[toolindex][gindex] &&
  11026. groupStudent[toolindex][gindex][2] &&
  11027. groupJson.islock == 2,
  11028. }"
  11029. ><span
  11030. class="updateChairBtn"
  11031. @click="
  11032. updateGroupChair(
  11033. groupStudent[toolindex][gindex] &&
  11034. groupStudent[toolindex][gindex][2]
  11035. )
  11036. "
  11037. >修改</span
  11038. ></span
  11039. ><span>{{
  11040. groupStudent[toolindex][gindex] &&
  11041. groupStudent[toolindex][gindex][2]
  11042. ? groupStudent[toolindex][gindex] &&
  11043. groupStudent[toolindex][gindex][2].name
  11044. : "空位置"
  11045. }}</span>
  11046. </div>
  11047. <div v-if="groupJson.number > 6">
  11048. <span
  11049. :class="{
  11050. isChair:
  11051. groupStudent[toolindex][gindex] &&
  11052. groupStudent[toolindex][gindex][6],
  11053. updateChair:
  11054. courseDetail.userid == userid &&
  11055. groupStudent[toolindex][gindex] &&
  11056. groupStudent[toolindex][gindex][6] &&
  11057. groupJson.islock == 2,
  11058. }"
  11059. ><span
  11060. class="updateChairBtn"
  11061. @click="
  11062. updateGroupChair(
  11063. groupStudent[toolindex][gindex] &&
  11064. groupStudent[toolindex][gindex][6]
  11065. )
  11066. "
  11067. >修改</span
  11068. ></span
  11069. ><span>{{
  11070. groupStudent[toolindex][gindex] &&
  11071. groupStudent[toolindex][gindex][6]
  11072. ? groupStudent[toolindex][gindex] &&
  11073. groupStudent[toolindex][gindex][6].name
  11074. : "空位置"
  11075. }}</span>
  11076. </div>
  11077. </div>
  11078. <div class="g_d_group_table">
  11079. <div>
  11080. {{ g.name }}
  11081. </div>
  11082. <div>
  11083. <div
  11084. v-if="
  11085. courseDetail.userid == userid && groupJson.islock == 2
  11086. "
  11087. @click="deleteGroupChair(gindex)"
  11088. >
  11089. 移除组员
  11090. </div>
  11091. <div
  11092. @click="selectGroup(gindex)"
  11093. v-else-if="
  11094. groupStudentUid[toolindex] &&
  11095. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11096. "
  11097. >
  11098. 加入分组
  11099. </div>
  11100. <div
  11101. @click="
  11102. exitGroup(
  11103. groupStudent[toolindex][gindex] &&
  11104. groupStudent[toolindex][gindex][
  11105. groupStudentUid[toolindex][gindex].indexOf(userid)
  11106. ].id
  11107. )
  11108. "
  11109. v-else-if="
  11110. groupStudentUid[toolindex] &&
  11111. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11112. "
  11113. >
  11114. 退出分组
  11115. </div>
  11116. </div>
  11117. </div>
  11118. <div class="g_d_group_chair2">
  11119. <div v-if="groupJson.number > 3">
  11120. <span
  11121. :class="{
  11122. isChair:
  11123. groupStudent[toolindex][gindex] &&
  11124. groupStudent[toolindex][gindex][3],
  11125. updateChair:
  11126. courseDetail.userid == userid &&
  11127. groupStudent[toolindex][gindex] &&
  11128. groupStudent[toolindex][gindex][3] &&
  11129. groupJson.islock == 2,
  11130. }"
  11131. ><span
  11132. class="updateChairBtn"
  11133. @click="
  11134. updateGroupChair(
  11135. groupStudent[toolindex][gindex] &&
  11136. groupStudent[toolindex][gindex][3]
  11137. )
  11138. "
  11139. >修改</span
  11140. ></span
  11141. ><span>{{
  11142. groupStudent[toolindex][gindex] &&
  11143. groupStudent[toolindex][gindex][3]
  11144. ? groupStudent[toolindex][gindex] &&
  11145. groupStudent[toolindex][gindex][3].name
  11146. : "空位置"
  11147. }}</span>
  11148. </div>
  11149. <div v-if="groupJson.number > 7">
  11150. <span
  11151. :class="{
  11152. isChair:
  11153. groupStudent[toolindex][gindex] &&
  11154. groupStudent[toolindex][gindex][7],
  11155. updateChair:
  11156. courseDetail.userid == userid &&
  11157. groupStudent[toolindex][gindex] &&
  11158. groupStudent[toolindex][gindex][7] &&
  11159. groupJson.islock == 2,
  11160. }"
  11161. ><span
  11162. class="updateChairBtn"
  11163. @click="
  11164. updateGroupChair(
  11165. groupStudent[toolindex][gindex] &&
  11166. groupStudent[toolindex][gindex][7]
  11167. )
  11168. "
  11169. >修改</span
  11170. ></span
  11171. ><span>{{
  11172. groupStudent[toolindex][gindex] &&
  11173. groupStudent[toolindex][gindex][7]
  11174. ? groupStudent[toolindex][gindex] &&
  11175. groupStudent[toolindex][gindex][7].name
  11176. : "空位置"
  11177. }}</span>
  11178. </div>
  11179. </div>
  11180. </div>
  11181. <div class="g_d_group_chair">
  11182. <div v-if="groupJson.number > 1">
  11183. <span
  11184. :class="{
  11185. isChair:
  11186. groupStudent[toolindex][gindex] &&
  11187. groupStudent[toolindex][gindex][1],
  11188. updateChair:
  11189. courseDetail.userid == userid &&
  11190. groupStudent[toolindex][gindex] &&
  11191. groupStudent[toolindex][gindex][1] &&
  11192. groupJson.islock == 2,
  11193. }"
  11194. ><span
  11195. class="updateChairBtn"
  11196. @click="
  11197. updateGroupChair(
  11198. groupStudent[toolindex][gindex] &&
  11199. groupStudent[toolindex][gindex][1]
  11200. )
  11201. "
  11202. >修改</span
  11203. ></span
  11204. ><span>{{
  11205. groupStudent[toolindex][gindex] &&
  11206. groupStudent[toolindex][gindex][1]
  11207. ? groupStudent[toolindex][gindex] &&
  11208. groupStudent[toolindex][gindex][1].name
  11209. : "空位置"
  11210. }}</span>
  11211. </div>
  11212. <div v-if="groupJson.number > 5">
  11213. <span
  11214. :class="{
  11215. isChair:
  11216. groupStudent[toolindex][gindex] &&
  11217. groupStudent[toolindex][gindex][5],
  11218. updateChair:
  11219. courseDetail.userid == userid &&
  11220. groupStudent[toolindex][gindex] &&
  11221. groupStudent[toolindex][gindex][5] &&
  11222. groupJson.islock == 2,
  11223. }"
  11224. ><span
  11225. class="updateChairBtn"
  11226. @click="
  11227. updateGroupChair(
  11228. groupStudent[toolindex][gindex] &&
  11229. groupStudent[toolindex][gindex][5]
  11230. )
  11231. "
  11232. >修改</span
  11233. ></span
  11234. ><span>{{
  11235. groupStudent[toolindex][gindex] &&
  11236. groupStudent[toolindex][gindex][5]
  11237. ? groupStudent[toolindex][gindex] &&
  11238. groupStudent[toolindex][gindex][5].name
  11239. : "空位置"
  11240. }}</span>
  11241. </div>
  11242. <div v-if="groupJson.number > 9">
  11243. <span
  11244. :class="{
  11245. isChair:
  11246. groupStudent[toolindex][gindex] &&
  11247. groupStudent[toolindex][gindex][9],
  11248. updateChair:
  11249. courseDetail.userid == userid &&
  11250. groupStudent[toolindex][gindex] &&
  11251. groupStudent[toolindex][gindex][9] &&
  11252. groupJson.islock == 2,
  11253. }"
  11254. ><span
  11255. class="updateChairBtn"
  11256. @click="
  11257. updateGroupChair(
  11258. groupStudent[toolindex][gindex] &&
  11259. groupStudent[toolindex][gindex][9]
  11260. )
  11261. "
  11262. >修改</span
  11263. ></span
  11264. ><span>{{
  11265. groupStudent[toolindex][gindex] &&
  11266. groupStudent[toolindex][gindex][9]
  11267. ? groupStudent[toolindex][gindex] &&
  11268. groupStudent[toolindex][gindex][9].name
  11269. : "空位置"
  11270. }}</span>
  11271. </div>
  11272. </div>
  11273. </div>
  11274. </div>
  11275. </div>
  11276. </div>
  11277. <span slot="footer" class="dialog-footer">
  11278. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11279. </span>
  11280. </el-dialog>
  11281. <el-dialog
  11282. title="分组设置"
  11283. :visible.sync="dialogVisibleGroup2"
  11284. :append-to-body="true"
  11285. width="650px"
  11286. :before-close="handleClose"
  11287. class="dialog_diy"
  11288. >
  11289. <div class="groupBox">
  11290. <div v-if="groupJson2.group" class="groupContent">
  11291. <div class="groupTitle">请设置小组数量</div>
  11292. <div
  11293. v-for="(item, index) in groupJson2.group"
  11294. :key="index"
  11295. class="groupName"
  11296. >
  11297. <span class="groupn">组{{ index + 1 }}名称:</span>
  11298. <el-input
  11299. v-model="item.name"
  11300. placeholder="请输入名称..."
  11301. style="width: 250px"
  11302. ></el-input>
  11303. <!-- <div class="groupBtn">
  11304. <el-button type="primary" size="small" @click="addGroup(index)">
  11305. 添加</el-button>
  11306. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11307. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11308. </div> -->
  11309. </div>
  11310. </div>
  11311. <div class="groupContent">
  11312. <div class="groupTitle">请设置每组人数数量</div>
  11313. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11314. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11315. <el-input-number
  11316. v-model="groupJson2.number"
  11317. :controls="false"
  11318. :min="2"
  11319. :max="10"
  11320. placeholder="2-10人以内"
  11321. ></el-input-number>
  11322. </div>
  11323. </div>
  11324. <span slot="footer" class="dialog-footer">
  11325. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11326. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11327. </span>
  11328. </el-dialog>
  11329. <el-dialog
  11330. title="作业提交"
  11331. :visible.sync="dialogVisibleGroupWork"
  11332. :append-to-body="true"
  11333. width="500px"
  11334. :before-close="handleClose"
  11335. class="dialog_change"
  11336. >
  11337. <div class="marginT">
  11338. <div>上传文件</div>
  11339. <div
  11340. class="chapter_add"
  11341. @click="addImg($event)"
  11342. v-if="studyJuri[0].cover.length == 0"
  11343. >
  11344. <div class="up_photo">
  11345. <img src="../../assets/icon/uploadImg.png" alt />
  11346. </div>
  11347. <!-- <input
  11348. type="file"
  11349. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11350. style="display: none"
  11351. @change="beforeUpload1($event, 1)"
  11352. /> -->
  11353. <input
  11354. type="file"
  11355. accept="*"
  11356. style="display: none"
  11357. @change="beforeUpload1($event, 1)"
  11358. />
  11359. </div>
  11360. <!-- capture="camera" -->
  11361. <div
  11362. class="chapter_add"
  11363. style="
  11364. display: flex;
  11365. width: 100%;
  11366. flex-direction: row;
  11367. flex-wrap: wrap;
  11368. justify-content: flex-start;
  11369. padding: 15px 0;
  11370. "
  11371. v-if="studyJuri[0].cover.length > 0"
  11372. >
  11373. <div class="upCover">
  11374. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11375. <img :src="word" alt v-else-if="fileType == 1" />
  11376. <img :src="video" alt v-else-if="fileType == 2" />
  11377. <img :src="word2" alt v-else-if="fileType == 3" />
  11378. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11379. <div class="deleteWord" @click="clean(1)">
  11380. <img src="../../assets/icon/deleteWorks.png" alt />
  11381. </div>
  11382. </div>
  11383. </div>
  11384. </div>
  11385. <div
  11386. class="upload_send"
  11387. @click="addCourseWorks2(taskCount)"
  11388. v-if="!proVisible"
  11389. >
  11390. 提交
  11391. </div>
  11392. </el-dialog>
  11393. <el-dialog
  11394. title="修改分组"
  11395. :visible.sync="dialogVisibleUpdateGroup"
  11396. :append-to-body="true"
  11397. width="350px"
  11398. :before-close="handleClose"
  11399. class="dialog_diy"
  11400. >
  11401. <div>
  11402. <h2>
  11403. {{ this.updateGroupUser.name }}
  11404. </h2>
  11405. <div style="color: rgb(171 171 171); margin-top: 10px">
  11406. 请选择要进入的分组
  11407. </div>
  11408. <el-radio-group v-model="checkChair">
  11409. <el-radio
  11410. style="display: block; margin-top: 20px"
  11411. v-for="(item, index) in updateGroupArray"
  11412. :label="item.label"
  11413. :key="index"
  11414. >{{ item.name }}</el-radio
  11415. >
  11416. </el-radio-group>
  11417. </div>
  11418. <span slot="footer" class="dialog-footer">
  11419. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11420. <el-button type="primary" @click="updateChair">确定</el-button>
  11421. </span>
  11422. </el-dialog>
  11423. <el-dialog
  11424. title="移除组员"
  11425. :visible.sync="dialogVisibleDeleteGroup"
  11426. :append-to-body="true"
  11427. width="350px"
  11428. :before-close="handleClose"
  11429. class="dialog_diy"
  11430. >
  11431. <div>
  11432. <h2>
  11433. {{ this.deleteGroupArray.name }}
  11434. </h2>
  11435. <div style="color: rgb(171 171 171); margin-top: 10px">
  11436. 请选择要删除的组员
  11437. </div>
  11438. <el-checkbox-group v-model="checkDeleteGroup">
  11439. <el-checkbox
  11440. style="display: block; margin-top: 20px"
  11441. v-for="(item, index) in deleteGroupUser"
  11442. :label="item.userid"
  11443. :key="index"
  11444. >{{ item.name }}</el-checkbox
  11445. >
  11446. </el-checkbox-group>
  11447. </div>
  11448. <span slot="footer" class="dialog-footer">
  11449. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11450. <el-button type="primary" @click="deleteChair">确定</el-button>
  11451. </span>
  11452. </el-dialog>
  11453. <el-dialog
  11454. title="批量上传"
  11455. :visible.sync="dialogVisiblePl"
  11456. :append-to-body="true"
  11457. width="700px"
  11458. :before-close="handleClose"
  11459. class="dialog_change"
  11460. >
  11461. <div class="marginT">
  11462. <div class="plworkBox">
  11463. <div
  11464. class="chapter_add"
  11465. style="
  11466. display: flex;
  11467. width: 150px;
  11468. flex-direction: row;
  11469. flex-wrap: wrap;
  11470. justify-content: flex-start;
  11471. margin: 0 10px 10px 0;
  11472. "
  11473. v-for="(item, index) in plworkFile"
  11474. :key="index"
  11475. >
  11476. <div class="upCover2">
  11477. <img
  11478. :src="item.url"
  11479. alt
  11480. v-if="item.fileType == 1"
  11481. @click="previewImg(item.url)"
  11482. />
  11483. <img :src="word" alt v-else-if="item.fileType == 4" />
  11484. <img :src="video" alt v-else />
  11485. <!-- <span class="picName">{{ item.name }}</span> -->
  11486. <!-- <el-input
  11487. v-model="item.username"
  11488. placeholder="请输入学生名字"
  11489. style="margin-top: 10px"
  11490. ></el-input> -->
  11491. <div
  11492. class="pl_select_box"
  11493. @click="
  11494. getUpdateMore(true, checkUpload(), item.username, index)
  11495. "
  11496. >
  11497. {{ getSName(item.username) }}
  11498. </div>
  11499. <!-- <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  11500. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  11501. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  11502. </el-option>
  11503. </el-select> -->
  11504. <div class="deleteWord" @click="clean2(index)">
  11505. <img src="../../assets/icon/deleteWorks.png" alt />
  11506. </div>
  11507. </div>
  11508. </div>
  11509. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11510. <div class="up_photo2">
  11511. <img src="../../assets/icon/plwork.png" alt />
  11512. <span>点击上传文件</span>
  11513. </div>
  11514. <input
  11515. type="file"
  11516. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11517. multiple="multiple"
  11518. style="display: none"
  11519. @change="beforeUpload3($event, 6)"
  11520. />
  11521. </div>
  11522. </div>
  11523. </div>
  11524. <!-- capture="camera" -->
  11525. <div
  11526. class="upload_send"
  11527. @click="addCourseWorksPl(taskCount)"
  11528. v-if="!proVisible2"
  11529. >
  11530. 提交
  11531. </div>
  11532. </el-dialog>
  11533. <el-dialog
  11534. title="修改名称"
  11535. :visible.sync="dialogVisibleSname"
  11536. width="500px"
  11537. :before-close="handleClose"
  11538. class="dialog_diy"
  11539. center
  11540. >
  11541. <div
  11542. style="
  11543. text-align: center;
  11544. display: flex;
  11545. align-items: center;
  11546. justify-content: center;
  11547. "
  11548. >
  11549. <span class="tian1">名称</span>
  11550. <div
  11551. class="pl_select_box"
  11552. style="margin-left: 10px; width: 200px"
  11553. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11554. >
  11555. {{ getSName(worksSName) }}
  11556. </div>
  11557. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11558. placeholder="请选择学生">
  11559. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11560. :value="item.userid">
  11561. </el-option>
  11562. </el-select> -->
  11563. <!-- <el-input
  11564. v-model="worksSName"
  11565. style="width: 250px; margin: 15px 0px"
  11566. ></el-input> -->
  11567. </div>
  11568. <span slot="footer" class="dialog-footer">
  11569. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11570. <el-button type="primary" @click="updateName">确 定</el-button>
  11571. </span>
  11572. </el-dialog>
  11573. <interVideo
  11574. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11575. :videoJson="videoJson"
  11576. :userid="userid"
  11577. :id="id"
  11578. :courseType="courseType"
  11579. :taskCount="taskCount"
  11580. :toolindex="toolindex"
  11581. ></interVideo>
  11582. <UpdateMore
  11583. :dialogVisibleMember.sync="dialogVisibleMember"
  11584. :cList="uploadStudentJuri"
  11585. :userid="userid"
  11586. :searchTN="worksSName2"
  11587. @setPlname="setPlname"
  11588. ></UpdateMore>
  11589. <wordCloud
  11590. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11591. :data="wordCloudData"
  11592. ></wordCloud>
  11593. <el-dialog
  11594. title="挑人"
  11595. :visible.sync="dialogVisiblePickPeople"
  11596. width="650px"
  11597. :before-close="handleClose"
  11598. class="dialog_diy"
  11599. center
  11600. >
  11601. <div class="pick_box">
  11602. <div
  11603. class="noWorksName"
  11604. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11605. v-for="(item, index) in uploadStudentJuri"
  11606. :key="index"
  11607. @click="pickStudent(item)"
  11608. >
  11609. {{ item.name }}
  11610. </div>
  11611. </div>
  11612. </el-dialog>
  11613. </div>
  11614. </template>
  11615. <script>
  11616. import "../../common/aws-sdk-2.235.1.min.js";
  11617. // import pdf from "../components/pdf3";
  11618. import pdf from "../components/vpdf";
  11619. import AskStatic from "../components/askStatic";
  11620. import AskStatic2 from "../components/askStatic2";
  11621. import AnswerData2 from "../components/answerData2";
  11622. import AnswerData from "../components/answerData";
  11623. import EditorBar from "../tools/wangEnduit.vue";
  11624. import Table from "../tools/table.vue";
  11625. import Time from "../tools/time.vue";
  11626. import Mind from "../tools/jsmind.vue";
  11627. import Sunburst from "../tools/sunburst";
  11628. import SeeBoard from "../tools/seeBoard";
  11629. import * as imageConversion from "image-conversion";
  11630. import Audio from "../components/audio.vue";
  11631. import ImgDraw from "../tools/imgDraw/imgDraw";
  11632. import { Empty } from "element-ui";
  11633. import RecordRTC from "recordrtc";
  11634. import interVideo from "../interVideo/index.vue";
  11635. import UpdateMore from "../updateMore/updateMore.vue";
  11636. import wordCloud from "../wordCloud/index.vue";
  11637. export default {
  11638. components: {
  11639. EditorBar,
  11640. Time,
  11641. pdf,
  11642. AskStatic,
  11643. AskStatic2,
  11644. Mind,
  11645. Sunburst,
  11646. SeeBoard,
  11647. AnswerData2,
  11648. AnswerData,
  11649. Audio,
  11650. ImgDraw,
  11651. Table,
  11652. interVideo,
  11653. UpdateMore,
  11654. wordCloud,
  11655. },
  11656. data() {
  11657. return {
  11658. bg: null,
  11659. drawShow: false,
  11660. dialogVisible: false,
  11661. dialogVisiblePl: false,
  11662. commentDialogVisible: false,
  11663. videoVisible: false,
  11664. isStar: false,
  11665. studentEvalDialogVisible: false,
  11666. studentEvalDialogVisibleTeacher: false,
  11667. dialogVisibleSelect: false,
  11668. dialogVisibleSelectTeacher: false,
  11669. dialogVisibleScore: false,
  11670. dialogVisibleSentence: false,
  11671. dialogVisibleSentenceTeacher: false,
  11672. dialogVisibleSentence1: false,
  11673. dialogVisibleWorks: false,
  11674. answerDialogVisibleTeacher: false,
  11675. dialogVisibleTable: false,
  11676. dialogVisibleTableTeacher: false,
  11677. dialogVisibleWord: false,
  11678. dialogVisibleWordTeacher: false,
  11679. dialogVisibleTable2: false,
  11680. dialogVisibleTable3: false,
  11681. dialogVisibleGroupWork: false,
  11682. dialogVisibleUpdateGroup: false,
  11683. dialogVisibleDeleteGroup: false,
  11684. dialogVisibleSname: false,
  11685. dialogVisibleVideo: false,
  11686. dialogVisiblePickPeople: false,
  11687. worksSName: "",
  11688. classJuri: [],
  11689. uploadStudentJuri: [],
  11690. uploadCid: "",
  11691. snameWid: "",
  11692. sStudent: {},
  11693. sTool: "",
  11694. bzText: "",
  11695. commentDetail: [],
  11696. selectAnswer: [],
  11697. videoDetail: {},
  11698. selectJson: {},
  11699. eScore: { eBzText: "", eStar: [] },
  11700. id: this.$route.query.courseId,
  11701. userid: this.$route.query.userid,
  11702. classId: this.$route.query.cid,
  11703. // courseTypeLine: this.$route.query.type,
  11704. oid: this.$route.query.oid,
  11705. org: this.$route.query.org,
  11706. tType: this.$route.query.tType,
  11707. courseType: this.$route.query.type,
  11708. screenType: this.$route.query.screenType,
  11709. tcid2: this.$route.query.tcid,
  11710. tcid: "",
  11711. pptImgUrl: "",
  11712. pptImgUrl1: "",
  11713. commentText: "",
  11714. full: false,
  11715. sIsOpen: false,
  11716. IsLookOpen: false,
  11717. IsFollow: false,
  11718. pzDialog: false,
  11719. contentDialog: false,
  11720. mlDialog: false,
  11721. type: 1,
  11722. isClose: 0,
  11723. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11724. sentenceList1: [],
  11725. tableJson: [],
  11726. wordJson: [],
  11727. vedio: [],
  11728. text: [],
  11729. textList: [],
  11730. line: [],
  11731. lineList: [],
  11732. chapTools: [],
  11733. chapToolList: [],
  11734. file: [],
  11735. fileC: [],
  11736. vedioTime: [],
  11737. upToolImg: "",
  11738. preTime: 0,
  11739. rateList: {
  11740. ca: 0,
  11741. },
  11742. rateParams: [],
  11743. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11744. studyJuri: [
  11745. {
  11746. content: "",
  11747. cover: [],
  11748. upVedio: [],
  11749. upFile: [],
  11750. },
  11751. ],
  11752. plworkFile: [],
  11753. mr: require("../../assets/vedioPic.png"),
  11754. word: require("../../assets/icon/isWord.png"),
  11755. word2: require("../../assets/icon/word2.png"),
  11756. video: require("../../assets/icon/isVideo.png"),
  11757. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11758. likes: require("../../assets/icon/comment/likes.png"),
  11759. scoreImg: require("../../assets/score.png"),
  11760. courseDetail: {},
  11761. isSelect: false,
  11762. chapInfo: [],
  11763. chapInfoList: [],
  11764. taskCount: 0,
  11765. imgList: [],
  11766. noImgList: [],
  11767. pzList: [],
  11768. PlTextList: [
  11769. "Excellent!",
  11770. "nice!",
  11771. "很有创意!",
  11772. "还不错哦~",
  11773. "继续努力哦~",
  11774. ],
  11775. isClickNav: "",
  11776. navId: "",
  11777. playerOptions: {
  11778. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11779. autoplay: false, //如果true,浏览器准备好时开始回放。
  11780. muted: false, // 默认情况下将会消除任何音频。
  11781. loop: false, // 导致视频一结束就重新开始。
  11782. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11783. language: "zh-CN",
  11784. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11785. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11786. sources: [
  11787. {
  11788. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11789. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11790. },
  11791. ],
  11792. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11793. // poster: dataRes.imgUrl, //你的封面地址
  11794. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11795. controlBar: {
  11796. timeDivider: true, //当前时间和持续时间的分隔符
  11797. durationDisplay: true, //显示持续时间
  11798. remainingTimeDisplay: false, //是否显示剩余时间功能
  11799. fullscreenToggle: true, //全屏按钮
  11800. },
  11801. },
  11802. playerOptions1: {
  11803. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11804. autoplay: false, //如果true,浏览器准备好时开始回放。
  11805. muted: false, // 默认情况下将会消除任何音频。
  11806. loop: false, // 导致视频一结束就重新开始。
  11807. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11808. language: "zh-CN",
  11809. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11810. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11811. sources: [
  11812. {
  11813. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11814. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11815. },
  11816. ],
  11817. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11818. // poster: dataRes.imgUrl, //你的封面地址
  11819. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11820. controlBar: {
  11821. timeDivider: true, //当前时间和持续时间的分隔符
  11822. durationDisplay: true, //显示持续时间
  11823. remainingTimeDisplay: false, //是否显示剩余时间功能
  11824. fullscreenToggle: true, //全屏按钮
  11825. },
  11826. },
  11827. playerO: {},
  11828. noneBtnImg: false,
  11829. proVisible: false,
  11830. proVisible2: false,
  11831. progress: 0,
  11832. isFinishSize: 0,
  11833. isAllSize: 0,
  11834. questionAnswer: "",
  11835. answerQ: "", //问答标题
  11836. rateJson: [],
  11837. wbCount: 0,
  11838. wordCount: 0,
  11839. mindCount: 0,
  11840. askCount: 0,
  11841. noteCount: 0,
  11842. mindNetWorkCount: 0,
  11843. libraryCount: 0,
  11844. workCount: 0,
  11845. timeCount: 0,
  11846. answerCount: 0,
  11847. trainCount: 0,
  11848. evalCount: 0,
  11849. dialogImageUrl: "",
  11850. pictureDialog: false,
  11851. toolTypeList: [],
  11852. dialogVisible1: false,
  11853. dialogVisible2: false,
  11854. dialogVisible3: false,
  11855. dialogVisible6: false,
  11856. dialogVisible4: false,
  11857. isNoHomeWork: false,
  11858. dialogVisible5: false,
  11859. dialogVisible5Teacher: false,
  11860. dialogVisibleChoice: false,
  11861. dialogVisibleChoiceTeacher: false,
  11862. answerDialogVisible: false,
  11863. juriVisible: false,
  11864. timeDialogVisible: false,
  11865. radio: [],
  11866. isAsk: false,
  11867. askJson: {
  11868. askCount: 1,
  11869. askTitle: "",
  11870. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11871. },
  11872. testJson: {},
  11873. checkJson: [],
  11874. askList: [],
  11875. answerList: [],
  11876. navList: [],
  11877. addPzDialog: false,
  11878. ispzType: 1,
  11879. pzConText: "",
  11880. worksStudent: [],
  11881. worksStudent2: [],
  11882. worksTeacher: [],
  11883. isCloseList: [],
  11884. workStudent: [],
  11885. groupStudent: [],
  11886. groupStudentUid: [],
  11887. noWorksS: [],
  11888. isWorksS: [],
  11889. noWorksStudent: [],
  11890. toolindex: 0,
  11891. groupIndex: 0,
  11892. workTypeB: false,
  11893. workTypeC: false,
  11894. isAnswer: false,
  11895. timer: null,
  11896. opertimer: null,
  11897. showType: 0,
  11898. fileType: 0,
  11899. showPDF: false,
  11900. noteName: "",
  11901. evaJuri: [],
  11902. evalua: "",
  11903. eTitle: "",
  11904. eName: "",
  11905. eJson: {},
  11906. fid: "", //一级
  11907. sid: "", //二级
  11908. tid: "", //二级
  11909. typeMode: 1,
  11910. eJSONNum: 0,
  11911. Etype: 1,
  11912. data: {
  11913. meta: {
  11914. name: "example",
  11915. author: "dd@163.com",
  11916. version: "0.2",
  11917. },
  11918. format: "node_array",
  11919. data: [{ id: "root", isroot: true, topic: "" }],
  11920. },
  11921. fullDialogVisible: false,
  11922. fulltype: "",
  11923. fullUrl: "",
  11924. commentIndexJson: {},
  11925. Stbodywidth: 0,
  11926. pzType: 1,
  11927. wScore: 0,
  11928. scoreDetail: "",
  11929. videoStart: false,
  11930. recorder: null,
  11931. groupJson: {},
  11932. groupJson2: {},
  11933. dialogVisibleGroup: false,
  11934. dialogVisibleGroup2: false,
  11935. updateGroupArray: [],
  11936. updateGroupUser: {},
  11937. deleteGroupUser: [],
  11938. deleteGroupArray: {},
  11939. checkChair: "",
  11940. checkDeleteGroup: [],
  11941. inviteCode: "",
  11942. courseGroupStudent: [],
  11943. courseGroupStudentUid: [],
  11944. courseGroup: {},
  11945. isGroup: false,
  11946. toolIndex: null,
  11947. tool: {},
  11948. isWorkTool: [
  11949. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11950. ], //, 40
  11951. videoJson: {},
  11952. toolType: 0,
  11953. checktoolArray: [],
  11954. vChapterData: [],
  11955. isUpdateToolDetail: false,
  11956. updateToolDetailInner: "",
  11957. plIndex: "",
  11958. worksSName2: "",
  11959. worksSid: "",
  11960. dialogVisibleWordCloud: false,
  11961. wordCloudData: [],
  11962. isPickStudent: [],
  11963. };
  11964. },
  11965. methods: {
  11966. jump() {
  11967. window.parent.postMessage({ tools: "43" }, "*");
  11968. },
  11969. getUpdateMore(f, checkboxList, searchTN, index) {
  11970. this.dialogVisibleMember = f;
  11971. this.checkboxList = checkboxList;
  11972. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  11973. this.plIndex = index;
  11974. },
  11975. setPlname(a) {
  11976. if (this.plworkFile.length) {
  11977. this.plworkFile[this.plIndex].username = a;
  11978. } else {
  11979. this.worksSName = a;
  11980. }
  11981. this.dialogVisibleMember = false;
  11982. },
  11983. previewImg(url) {
  11984. this.$hevueImgPreview(url);
  11985. },
  11986. checkImg(list) {
  11987. if (!list.length) {
  11988. return;
  11989. }
  11990. this.$hevueImgPreview({
  11991. multiple: true, // 开启多图预览模式
  11992. imgList: list, // 需要预览的多图数组
  11993. });
  11994. },
  11995. change(val) {
  11996. console.log(val);
  11997. },
  11998. goTo(path) {
  11999. this.$router.push(path);
  12000. },
  12001. handlePictureCardPreview(url) {
  12002. this.dialogImageUrl = url;
  12003. this.pictureDialog = true;
  12004. },
  12005. clean(type) {
  12006. if (type == 1) {
  12007. this.studyJuri[0].cover.splice(0, 1);
  12008. } else if (type == 2) {
  12009. this.studyJuri[0].upVedio.splice(0, 1);
  12010. } else {
  12011. this.studyJuri[0].upFile.splice(0, 1);
  12012. }
  12013. },
  12014. clean2(index) {
  12015. this.plworkFile.splice(index, 1);
  12016. },
  12017. handleClose(done) {
  12018. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12019. this.videoDetail.sources[0].src = "";
  12020. }
  12021. this.commentIndexJson = {};
  12022. done();
  12023. },
  12024. fullTools() {
  12025. this.full = !this.full;
  12026. },
  12027. imgChange(file, fileList, type) {
  12028. if (type == 1) {
  12029. var _tmp = this.studyJuri[0].cover;
  12030. } else if (type == 2) {
  12031. var _tmp = this.studyJuri[0].upVedio;
  12032. } else {
  12033. var _tmp = this.studyJuri[0].upFile;
  12034. }
  12035. this.noneBtnImg = _tmp.length >= 1;
  12036. },
  12037. setContent(bool) {
  12038. this.contentDialog = bool;
  12039. if (bool && this.mlDialog) {
  12040. document.querySelector(".workd_media").style.height = "650px";
  12041. } else {
  12042. document.querySelector(".workd_media").style.height = "auto";
  12043. }
  12044. },
  12045. setContent2(bool) {
  12046. this.mlDialog = bool;
  12047. if (bool && this.contentDialog) {
  12048. document.querySelector(".workd_media").style.height = "650px";
  12049. } else {
  12050. document.querySelector(".workd_media").style.height = "auto";
  12051. }
  12052. },
  12053. addImg(e) {
  12054. var el = e.currentTarget;
  12055. // this.$message.success('触发上传')
  12056. el.getElementsByTagName("input")[0].click();
  12057. e.target.value = "";
  12058. },
  12059. addSelectAnswer() {
  12060. let params = [
  12061. {
  12062. uid: this.userid,
  12063. cid: this.id,
  12064. stage: this.courseType,
  12065. task: this.taskCount,
  12066. tool: this.toolindex,
  12067. content: this.selectAnswer.answer,
  12068. type: 7,
  12069. },
  12070. ];
  12071. this.ajax
  12072. .post(this.$store.state.api + "addCourseWorks", params)
  12073. .then((res) => {
  12074. this.$message({
  12075. message: "提交成功",
  12076. type: "success",
  12077. });
  12078. this.dialogVisibleSelect = false;
  12079. // this.selectAnswer = {};
  12080. this.selectSWorks();
  12081. this.selectStudent();
  12082. })
  12083. .catch((err) => {
  12084. this.$message.error("提交失败");
  12085. console.error(err);
  12086. });
  12087. },
  12088. addSelectAnswerTeacher() {
  12089. let params = [
  12090. {
  12091. uid: this.sStudent.userid,
  12092. cid: this.id,
  12093. stage: this.courseType,
  12094. task: this.taskCount,
  12095. tool: this.toolindex,
  12096. content: this.selectAnswer.answer,
  12097. type: 7,
  12098. },
  12099. ];
  12100. this.ajax
  12101. .post(this.$store.state.api + "addCourseWorks", params)
  12102. .then((res) => {
  12103. this.$message({
  12104. message: "提交成功",
  12105. type: "success",
  12106. });
  12107. this.dialogVisibleSelectTeacher = false;
  12108. // this.selectAnswer = {};
  12109. this.selectSWorks();
  12110. this.selectStudent();
  12111. })
  12112. .catch((err) => {
  12113. this.$message.error("提交失败");
  12114. console.error(err);
  12115. });
  12116. },
  12117. addSenWorks() {
  12118. for (var i = 0; i < this.sentenceList.length; i++) {
  12119. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12120. if (
  12121. this.sentenceList[i].chooseSenList[j] == undefined ||
  12122. this.sentenceList[i].chooseSenList[j] == ""
  12123. ) {
  12124. this.$message.error("请将答案填写完整!");
  12125. return;
  12126. }
  12127. }
  12128. }
  12129. let params = [
  12130. {
  12131. uid: this.userid,
  12132. cid: this.id,
  12133. stage: this.courseType,
  12134. task: this.taskCount,
  12135. tool: this.toolindex,
  12136. content: JSON.stringify(this.sentenceList),
  12137. type: 9,
  12138. },
  12139. ];
  12140. this.ajax
  12141. .post(this.$store.state.api + "addCourseWorks", params)
  12142. .then((res) => {
  12143. this.$message({
  12144. message: "提交成功",
  12145. type: "success",
  12146. });
  12147. this.dialogVisibleSentence = false;
  12148. // this.selectAnswer = {};
  12149. this.selectSWorks();
  12150. this.selectStudent();
  12151. })
  12152. .catch((err) => {
  12153. this.$message.error("提交失败");
  12154. console.error(err);
  12155. });
  12156. },
  12157. addSenWorksTeacher() {
  12158. for (var i = 0; i < this.sentenceList.length; i++) {
  12159. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12160. if (
  12161. this.sentenceList[i].chooseSenList[j] == undefined ||
  12162. this.sentenceList[i].chooseSenList[j] == ""
  12163. ) {
  12164. this.$message.error("请将答案填写完整!");
  12165. return;
  12166. }
  12167. }
  12168. }
  12169. let params = [
  12170. {
  12171. uid: this.sStudent.userid,
  12172. cid: this.id,
  12173. stage: this.courseType,
  12174. task: this.taskCount,
  12175. tool: this.toolindex,
  12176. content: JSON.stringify(this.sentenceList),
  12177. type: 9,
  12178. },
  12179. ];
  12180. this.ajax
  12181. .post(this.$store.state.api + "addCourseWorks", params)
  12182. .then((res) => {
  12183. this.$message({
  12184. message: "提交成功",
  12185. type: "success",
  12186. });
  12187. this.dialogVisibleSentenceTeacher = false;
  12188. // this.selectAnswer = {};
  12189. this.selectSWorks();
  12190. this.selectStudent();
  12191. })
  12192. .catch((err) => {
  12193. this.$message.error("提交失败");
  12194. console.error(err);
  12195. });
  12196. },
  12197. addTableWorks() {
  12198. let params = [
  12199. {
  12200. uid: this.userid,
  12201. cid: this.id,
  12202. stage: this.courseType,
  12203. task: this.taskCount,
  12204. tool: this.toolindex,
  12205. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12206. type: 10,
  12207. },
  12208. ];
  12209. this.ajax
  12210. .post(this.$store.state.api + "addCourseWorks", params)
  12211. .then((res) => {
  12212. this.$message({
  12213. message: "提交成功",
  12214. type: "success",
  12215. });
  12216. this.dialogVisibleTable = false;
  12217. // this.selectAnswer = {};
  12218. this.selectSWorks();
  12219. this.selectStudent();
  12220. })
  12221. .catch((err) => {
  12222. this.$message.error("提交失败");
  12223. console.error(err);
  12224. });
  12225. },
  12226. addTableWorksTeacher() {
  12227. let params = [
  12228. {
  12229. uid: this.sStudent.userid,
  12230. cid: this.id,
  12231. stage: this.courseType,
  12232. task: this.taskCount,
  12233. tool: this.toolindex,
  12234. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12235. type: 10,
  12236. },
  12237. ];
  12238. this.ajax
  12239. .post(this.$store.state.api + "addCourseWorks", params)
  12240. .then((res) => {
  12241. this.$message({
  12242. message: "提交成功",
  12243. type: "success",
  12244. });
  12245. this.dialogVisibleTableTeacher = false;
  12246. // this.selectAnswer = {};
  12247. this.selectSWorks();
  12248. this.selectStudent();
  12249. })
  12250. .catch((err) => {
  12251. this.$message.error("提交失败");
  12252. console.error(err);
  12253. });
  12254. },
  12255. addWordWorks() {
  12256. let params = [
  12257. {
  12258. uid: this.userid,
  12259. cid: this.id,
  12260. stage: this.courseType,
  12261. task: this.taskCount,
  12262. tool: this.toolindex,
  12263. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12264. type: 13,
  12265. atool: 52,
  12266. },
  12267. ];
  12268. console.log(params);
  12269. this.ajax
  12270. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12271. .then((res) => {
  12272. this.$message({
  12273. message: "提交成功",
  12274. type: "success",
  12275. });
  12276. this.dialogVisibleWord = false;
  12277. // this.selectAnswer = {};
  12278. this.selectSWorks();
  12279. this.selectStudent();
  12280. })
  12281. .catch((err) => {
  12282. this.$message.error("提交失败");
  12283. console.error(err);
  12284. });
  12285. },
  12286. addWordWorksTeacher() {
  12287. let params = [
  12288. {
  12289. uid: this.sStudent.userid,
  12290. cid: this.id,
  12291. stage: this.courseType,
  12292. task: this.taskCount,
  12293. tool: this.toolindex,
  12294. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12295. type: 13,
  12296. atool: 52,
  12297. },
  12298. ];
  12299. console.log(params);
  12300. this.ajax
  12301. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12302. .then((res) => {
  12303. this.$message({
  12304. message: "提交成功",
  12305. type: "success",
  12306. });
  12307. this.dialogVisibleWordTeacher = false;
  12308. // this.selectAnswer = {};
  12309. this.selectSWorks();
  12310. this.selectStudent();
  12311. })
  12312. .catch((err) => {
  12313. this.$message.error("提交失败");
  12314. console.error(err);
  12315. });
  12316. },
  12317. addCourseWorks(i) {
  12318. var typesql;
  12319. if (this.fileType === 0) {
  12320. typesql = 1;
  12321. } else if (this.fileType === 1) {
  12322. typesql = 4;
  12323. } else if (this.fileType === 2) {
  12324. typesql = 5;
  12325. } else if (this.fileType === 3) {
  12326. typesql = 12;
  12327. }
  12328. if (!this.studyJuri[0].cover[0].url) {
  12329. this.$message.error("请上传文件");
  12330. return;
  12331. }
  12332. let params = [
  12333. {
  12334. uid: this.userid,
  12335. cid: this.id,
  12336. stage: this.courseType,
  12337. task: i,
  12338. tool: this.toolindex,
  12339. content: this.studyJuri[0].cover[0].url,
  12340. type: typesql,
  12341. },
  12342. ];
  12343. this.ajax
  12344. .post(this.$store.state.api + "addCourseWorksR", params)
  12345. .then((res) => {
  12346. this.$message({
  12347. message: "提交成功",
  12348. type: "success",
  12349. });
  12350. this.studyJuri[0].cover = [];
  12351. this.dialogVisible = false;
  12352. this.getCourseDetail();
  12353. })
  12354. .catch((err) => {
  12355. this.$message.error("提交失败");
  12356. console.error(err);
  12357. });
  12358. },
  12359. addCourseWorksPl(i) {
  12360. let _files = this.plworkFile;
  12361. var c = 1;
  12362. for (var k = 0; k < _files.length; k++) {
  12363. if (!_files[k].username) {
  12364. c = 2;
  12365. }
  12366. }
  12367. if (c == 2) {
  12368. this.$message.error("请填写学生姓名");
  12369. return;
  12370. }
  12371. let params = [
  12372. {
  12373. ateacher: this.userid,
  12374. cid: this.id,
  12375. stage: this.courseType,
  12376. task: i,
  12377. tool: this.toolindex,
  12378. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12379. },
  12380. ];
  12381. this.ajax
  12382. .post(this.$store.state.api + "addCourseWorksPl", params)
  12383. .then((res) => {
  12384. this.$message({
  12385. message: "提交成功",
  12386. type: "success",
  12387. });
  12388. this.plworkFile = [];
  12389. this.dialogVisiblePl = false;
  12390. this.getCourseDetail();
  12391. })
  12392. .catch((err) => {
  12393. this.$message.error("提交失败");
  12394. console.error(err);
  12395. });
  12396. },
  12397. addCourseWorks2(i) {
  12398. var typesql;
  12399. if (this.fileType === 0) {
  12400. typesql = 0;
  12401. } else if (this.fileType === 1) {
  12402. typesql = 1;
  12403. } else if (this.fileType === 2) {
  12404. typesql = 3;
  12405. } else if (this.fileType === 3) {
  12406. typesql = 12;
  12407. }
  12408. if (!this.studyJuri[0].cover[0].url) {
  12409. this.$message.error("请上传文件");
  12410. return;
  12411. }
  12412. let params = [
  12413. {
  12414. uid: this.userid,
  12415. cid: this.id,
  12416. stage: this.courseType,
  12417. task: i,
  12418. tool: this.toolindex,
  12419. content: JSON.stringify({
  12420. type: typesql,
  12421. groupIndex: this.groupIndex,
  12422. url: this.studyJuri[0].cover[0].url,
  12423. }).replaceAll(/%/g, "%25"),
  12424. type: 11,
  12425. atool: 49,
  12426. text: "",
  12427. },
  12428. ];
  12429. this.ajax
  12430. .post(this.$store.state.api + "addCourseWorks5", params)
  12431. .then((res) => {
  12432. this.$message({
  12433. message: "提交成功",
  12434. type: "success",
  12435. });
  12436. this.studyJuri[0].cover = [];
  12437. this.dialogVisibleGroupWork = false;
  12438. this.getCourseDetail();
  12439. })
  12440. .catch((err) => {
  12441. this.$message.error("提交失败");
  12442. console.error(err);
  12443. });
  12444. },
  12445. addCourseWorksGong(i, data, tool) {
  12446. let params = [
  12447. {
  12448. uid: this.userid,
  12449. cid: this.id,
  12450. stage: this.courseType,
  12451. task: this.taskCount,
  12452. tool: i,
  12453. content: data,
  12454. type: 12,
  12455. atool: tool,
  12456. text: "",
  12457. },
  12458. ];
  12459. this.ajax
  12460. .post(this.$store.state.api + "addCourseWorks5", params)
  12461. .then((res) => {
  12462. this.$message({
  12463. message: "提交成功",
  12464. type: "success",
  12465. });
  12466. this.studyJuri[0].cover = [];
  12467. this.selectSWorks();
  12468. this.selectStudent();
  12469. })
  12470. .catch((err) => {
  12471. this.$message.error("提交失败");
  12472. console.error(err);
  12473. });
  12474. },
  12475. addCourseWorksGongTeacher(i, data, tool) {
  12476. let params = [
  12477. {
  12478. uid: this.sStudent.userid,
  12479. cid: this.id,
  12480. stage: this.courseType,
  12481. task: this.taskCount,
  12482. tool: i,
  12483. content: data,
  12484. type: 12,
  12485. atool: tool,
  12486. text: "",
  12487. },
  12488. ];
  12489. this.ajax
  12490. .post(this.$store.state.api + "addCourseWorks5", params)
  12491. .then((res) => {
  12492. this.$message({
  12493. message: "提交成功",
  12494. type: "success",
  12495. });
  12496. this.studyJuri[0].cover = [];
  12497. this.dialogVisibleWorks = false;
  12498. this.selectSWorks();
  12499. this.selectStudent();
  12500. })
  12501. .catch((err) => {
  12502. this.$message.error("提交失败");
  12503. console.error(err);
  12504. });
  12505. },
  12506. addCourseWorksGongPl(i, data, tool, type) {
  12507. let params = [
  12508. {
  12509. uid: this.sStudent.userid,
  12510. cid: this.id,
  12511. stage: this.courseType,
  12512. task: this.taskCount,
  12513. tool: i,
  12514. content: data,
  12515. type: type,
  12516. atool: tool,
  12517. text: "",
  12518. },
  12519. ];
  12520. this.ajax
  12521. .post(this.$store.state.api + "addCourseWorks5", params)
  12522. .then((res) => {
  12523. this.$message({
  12524. message: "提交成功",
  12525. type: "success",
  12526. });
  12527. this.studyJuri[0].cover = [];
  12528. this.dialogVisibleWorks = false;
  12529. this.selectSWorks();
  12530. this.selectStudent();
  12531. })
  12532. .catch((err) => {
  12533. this.$message.error("提交失败");
  12534. console.error(err);
  12535. });
  12536. },
  12537. addCourseWorksTeacher(i) {
  12538. var typesql;
  12539. if (this.sTool == 32) {
  12540. this.addCourseWorksGongTeacher(
  12541. this.toolindex,
  12542. this.studyJuri[0].cover[0].url,
  12543. this.sTool
  12544. );
  12545. return;
  12546. }
  12547. if (this.fileType === 0) {
  12548. typesql = 1;
  12549. } else if (this.fileType === 1) {
  12550. typesql = 4;
  12551. } else if (this.fileType === 2) {
  12552. typesql = 5;
  12553. } else if (this.fileType === 3) {
  12554. typesql = 12;
  12555. }
  12556. if (this.sTool == 50) {
  12557. this.addCourseWorksGongPl(
  12558. this.toolindex,
  12559. this.studyJuri[0].cover[0].url,
  12560. this.sTool,
  12561. typesql
  12562. );
  12563. return;
  12564. }
  12565. if (!this.studyJuri[0].cover[0].url) {
  12566. this.$message.error("请上传文件");
  12567. return;
  12568. }
  12569. let params = [
  12570. {
  12571. uid: this.sStudent.userid,
  12572. cid: this.id,
  12573. stage: this.courseType,
  12574. task: i,
  12575. tool: this.toolindex,
  12576. content: this.studyJuri[0].cover[0].url,
  12577. type: typesql,
  12578. ateacher: this.userid,
  12579. },
  12580. ];
  12581. this.ajax
  12582. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12583. .then((res) => {
  12584. this.$message({
  12585. message: "提交成功",
  12586. type: "success",
  12587. });
  12588. this.studyJuri[0].cover = [];
  12589. this.dialogVisibleWorks = false;
  12590. this.getCourseDetail();
  12591. })
  12592. .catch((err) => {
  12593. this.$message.error("提交失败");
  12594. console.error(err);
  12595. });
  12596. },
  12597. selectUploadStudent(type) {
  12598. const loading = this.$loading.service({
  12599. background: "rgba(255, 255, 255, 0.7)",
  12600. target: document.body,
  12601. });
  12602. let params = {
  12603. cid: this.uploadCid,
  12604. oid: this.oid,
  12605. cn: "",
  12606. };
  12607. this.ajax
  12608. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12609. .then((res) => {
  12610. loading.close();
  12611. var studentK = [];
  12612. if (this.isWorksS[this.toolindex].length > 0) {
  12613. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12614. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12615. }
  12616. studentK = studentK.join(",");
  12617. }
  12618. this.uploadStudentJuri = res.data[0].filter((el) => {
  12619. return studentK.indexOf(el.userid) == -1;
  12620. });
  12621. if (this.worksSName && this.worksSid) {
  12622. this.uploadStudentJuri.push({
  12623. userid: this.worksSid,
  12624. name: this.worksSName,
  12625. });
  12626. }
  12627. if (type == 1) {
  12628. this.plworkFile = [];
  12629. this.dialogVisibleSname = true;
  12630. } else if (type == 2) {
  12631. this.dialogVisiblePl = true;
  12632. }
  12633. })
  12634. .catch((err) => {
  12635. loading.close();
  12636. console.error(err);
  12637. });
  12638. },
  12639. selectPickStudent() {
  12640. const loading = this.$loading.service({
  12641. background: "rgba(255, 255, 255, 0.7)",
  12642. target: document.body,
  12643. });
  12644. let params = {
  12645. cid: this.uploadCid,
  12646. oid: this.oid,
  12647. cn: "",
  12648. };
  12649. this.ajax
  12650. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12651. .then((res) => {
  12652. loading.close();
  12653. this.uploadStudentJuri = res.data[0];
  12654. this.dialogVisiblePickPeople = true;
  12655. })
  12656. .catch((err) => {
  12657. loading.close();
  12658. console.error(err);
  12659. });
  12660. },
  12661. arrayToArray(arrayo, arrayt) {
  12662. let array1 = arrayo;
  12663. let array2 = arrayt;
  12664. let commonElements = [];
  12665. for (let i = 0; i < array1.length; i++) {
  12666. for (let j = 0; j < array2.length; j++) {
  12667. if (array1[i] === array2[j]) {
  12668. commonElements.push(array1[i]);
  12669. }
  12670. }
  12671. }
  12672. return commonElements;
  12673. },
  12674. selectWorksStudent() {
  12675. let params = {
  12676. oid: this.oid,
  12677. cid: this.courseDetail.juri,
  12678. };
  12679. this.ajax
  12680. .get(this.$store.state.api + "selectWorksStudent", params)
  12681. .then((res) => {
  12682. var a = res.data[0];
  12683. for (var i = 0; i < this.isWorksS.length; i++) {
  12684. this.noWorksS[i] = [];
  12685. var studentK = [];
  12686. if (this.isWorksS[i].length > 0) {
  12687. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12688. studentK.push(this.isWorksS[i][z].uid);
  12689. }
  12690. studentK = studentK.join(",");
  12691. for (var j = 0; j < a.length; j++) {
  12692. // if (studentK.indexOf(a[j].userid) == -1) {
  12693. if (this.tcid) {
  12694. // a[j].classid.indexOf(this.tcid) != -1
  12695. if (
  12696. this.arrayToArray(
  12697. a[j].classid.split(","),
  12698. this.tcid.split(",")
  12699. ).length
  12700. ) {
  12701. this.noWorksS[i].push({
  12702. student: a[j].name,
  12703. userid: a[j].userid,
  12704. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12705. });
  12706. }
  12707. } else {
  12708. this.noWorksS[i].push({
  12709. student: a[j].name,
  12710. userid: a[j].userid,
  12711. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12712. });
  12713. }
  12714. // }
  12715. }
  12716. } else {
  12717. for (var k = 0; k < a.length; k++) {
  12718. if (this.tcid) {
  12719. if (
  12720. this.arrayToArray(
  12721. a[k].classid.split(","),
  12722. this.tcid.split(",")
  12723. ).length
  12724. ) {
  12725. this.noWorksS[i].push({
  12726. student: a[k].name,
  12727. userid: a[k].userid,
  12728. type: "1",
  12729. });
  12730. }
  12731. } else {
  12732. this.noWorksS[i].push({
  12733. student: a[k].name,
  12734. userid: a[k].userid,
  12735. type: "1",
  12736. });
  12737. }
  12738. }
  12739. }
  12740. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  12741. // let jscoreA = parseInt(a.type);
  12742. // let jscoreB = parseInt(b.type);
  12743. // return jscoreB - jscoreA;
  12744. // });
  12745. }
  12746. this.$forceUpdate();
  12747. if (
  12748. Object.keys(this.commentDetail).length &&
  12749. Object.keys(this.commentIndexJson).length &&
  12750. !this.dialogVisibleScore
  12751. ) {
  12752. let a = 1;
  12753. let c = this.commentIndexJson;
  12754. console.log(c);
  12755. if (
  12756. this.commentIndexJson.gindex ||
  12757. this.commentIndexJson.gindex === 0
  12758. ) {
  12759. for (
  12760. var i = 0;
  12761. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12762. i++
  12763. ) {
  12764. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12765. groupA: for (var k = 0; k < _el.length; k++) {
  12766. let el = _el[k];
  12767. if (el.wid == this.commentDetail.wid) {
  12768. a = 2;
  12769. this.commentOther(
  12770. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12771. this.commentIndexJson.toolIndex,
  12772. k,
  12773. this.commentIndexJson.gindex
  12774. );
  12775. break groupA;
  12776. }
  12777. }
  12778. }
  12779. if (a === 1) {
  12780. this.commentDetail = [];
  12781. this.commentIndexJson = {};
  12782. this.commentDialogVisible = false;
  12783. this.$message("此作业已被删除");
  12784. }
  12785. } else {
  12786. if (this.isGroup && this.commentIndexJson.gid) {
  12787. groupA: for (
  12788. var i = 0;
  12789. i < this.courseGroup.group.length;
  12790. i++
  12791. ) {
  12792. let _group = this.courseGroup.group[i];
  12793. if (_group.id == this.commentIndexJson.gid) {
  12794. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12795. for (var k = 0; k < _el2.length; k++) {
  12796. let el2 = _el2[k];
  12797. if (el2.wid == this.commentDetail.wid) {
  12798. a = 2;
  12799. this.commentOther(
  12800. _el2[k],
  12801. this.commentIndexJson.toolIndex,
  12802. k,
  12803. null,
  12804. this.commentIndexJson.gid
  12805. );
  12806. break groupA;
  12807. }
  12808. }
  12809. }
  12810. }
  12811. }
  12812. if (a == 1) {
  12813. for (
  12814. var i = 0;
  12815. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12816. i++
  12817. ) {
  12818. let el =
  12819. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12820. if (el.wid == this.commentDetail.wid) {
  12821. a = 2;
  12822. this.commentOther(
  12823. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12824. this.commentIndexJson.toolIndex,
  12825. i
  12826. );
  12827. break;
  12828. }
  12829. }
  12830. }
  12831. if (a === 1) {
  12832. this.commentDetail = [];
  12833. this.commentIndexJson = {};
  12834. this.commentDialogVisible = false;
  12835. this.$message("此作业已被删除");
  12836. }
  12837. }
  12838. }
  12839. })
  12840. .catch((err) => {
  12841. console.error(err);
  12842. });
  12843. },
  12844. selectStudent() {},
  12845. openVideo(w) {
  12846. this.videoDetail = {};
  12847. this.playerOptions1.sources[0].src = w.works;
  12848. this.videoDetail = this.playerOptions1;
  12849. this.videoVisible = true;
  12850. },
  12851. isLikes(wid, uid, t, c, isLikes) {
  12852. if (isLikes == false) {
  12853. let params = [
  12854. {
  12855. wid: wid,
  12856. lid: uid,
  12857. t: t,
  12858. c: c,
  12859. },
  12860. ];
  12861. this.ajax
  12862. .post(this.$store.state.api + "insertComment", params)
  12863. .then((res) => {
  12864. this.$message({
  12865. message: "点赞成功",
  12866. type: "success",
  12867. });
  12868. this.selectSWorks();
  12869. this.selectStudent();
  12870. })
  12871. .catch((err) => {
  12872. this.$message.error("点赞失败");
  12873. console.error(err);
  12874. });
  12875. } else {
  12876. let params = {
  12877. wid: wid,
  12878. lid: uid,
  12879. type: t,
  12880. };
  12881. this.ajax
  12882. .get(this.$store.state.api + "deleteComment", params)
  12883. .then((res) => {
  12884. this.$message({
  12885. message: "取消点赞成功",
  12886. type: "success",
  12887. });
  12888. this.selectSWorks();
  12889. this.selectStudent();
  12890. })
  12891. .catch((err) => {
  12892. console.error(err);
  12893. });
  12894. }
  12895. },
  12896. deleteComment(wid) {
  12897. this.$confirm("确定删除此评论吗?", "提示", {
  12898. confirmButtonText: "确定",
  12899. cancelButtonText: "取消",
  12900. type: "warning",
  12901. })
  12902. .then(() => {
  12903. let params = {
  12904. id: wid,
  12905. };
  12906. this.ajax
  12907. .get(this.$store.state.api + "deleteComment2", params)
  12908. .then((res) => {
  12909. this.$message({
  12910. message: "删除评论成功",
  12911. type: "success",
  12912. });
  12913. this.selectSWorks();
  12914. this.selectStudent();
  12915. })
  12916. .catch((err) => {
  12917. console.error(err);
  12918. });
  12919. })
  12920. .catch(() => {});
  12921. },
  12922. commentOther(w, toolIndex, wIndex, gindex, gid) {
  12923. this.commentIndexJson = {
  12924. toolIndex: toolIndex,
  12925. wIndex: wIndex,
  12926. gindex: gindex,
  12927. gid: gid,
  12928. };
  12929. this.commentDetail = [];
  12930. this.commentDialogVisible = true;
  12931. this.commentDetail = w;
  12932. if (w.works && w.type == 1) {
  12933. this.pptImgUrl = "";
  12934. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12935. if (
  12936. a.indexOf(
  12937. w.works
  12938. .split(".")
  12939. [w.works.split(".").length - 1].toLocaleUpperCase()
  12940. ) != -1
  12941. ) {
  12942. this.pptImgUrl =
  12943. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12944. this.showPDF = false;
  12945. } else if (
  12946. w.works
  12947. .split(".")
  12948. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12949. ) {
  12950. this.pptImgUrl = w.works;
  12951. this.showPDF = true;
  12952. }
  12953. } else if (w.works && w.type == 3) {
  12954. this.videoDetail = {};
  12955. this.playerOptions1.sources[0].src = w.works;
  12956. this.videoDetail = this.playerOptions1;
  12957. // this.videoVisible = true;
  12958. } else if (w.works && w.type == 4) {
  12959. this.eScore = JSON.parse(w.works);
  12960. this.rateJson =
  12961. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12962. this.taskCount
  12963. ].toolChoose[toolIndex].rateJson;
  12964. } else if (w.works && w.type == 10) {
  12965. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  12966. } else if (w.works && w.type == 13) {
  12967. this.wordJson =
  12968. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12969. this.taskCount
  12970. ].toolChoose[toolIndex].wordJson;
  12971. }
  12972. },
  12973. openScore(w) {
  12974. this.wScore = 0;
  12975. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  12976. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  12977. this.commentDetail = [];
  12978. this.dialogVisibleScore = true;
  12979. this.commentDetail = w;
  12980. if (w.works && w.type == 1) {
  12981. this.pptImgUrl = "";
  12982. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12983. if (
  12984. a.indexOf(
  12985. w.works
  12986. .split(".")
  12987. [w.works.split(".").length - 1].toLocaleUpperCase()
  12988. ) != -1
  12989. ) {
  12990. this.pptImgUrl =
  12991. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12992. this.showPDF = false;
  12993. } else if (
  12994. w.works
  12995. .split(".")
  12996. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12997. ) {
  12998. this.pptImgUrl = w.works;
  12999. this.showPDF = true;
  13000. }
  13001. } else if (w.works && w.type == 3) {
  13002. this.videoDetail = {};
  13003. this.playerOptions1.sources[0].src = w.works;
  13004. this.videoDetail = this.playerOptions1;
  13005. }
  13006. },
  13007. addComment(wid, uid, t) {
  13008. if (this.commentText == "") {
  13009. this.$message.error("请输入评论");
  13010. return;
  13011. }
  13012. let params2 = [
  13013. {
  13014. wid: wid,
  13015. lid: uid,
  13016. t: t,
  13017. },
  13018. ];
  13019. this.ajax
  13020. .post(this.$store.state.api + "getComment", params2)
  13021. .then((res) => {
  13022. if (res.data[0].length > 0) {
  13023. this.$message.error("一个作业只能评论一条");
  13024. } else {
  13025. let params = [
  13026. {
  13027. wid: wid,
  13028. lid: uid,
  13029. t: t,
  13030. c: this.commentText,
  13031. },
  13032. ];
  13033. this.ajax
  13034. .post(this.$store.state.api + "insertComment", params)
  13035. .then((res) => {
  13036. this.$message({
  13037. message: "评论成功",
  13038. type: "success",
  13039. });
  13040. this.commentText = "";
  13041. this.selectSWorks();
  13042. this.selectStudent();
  13043. })
  13044. .catch((err) => {
  13045. this.$message.error("评论失败");
  13046. console.error(err);
  13047. });
  13048. }
  13049. })
  13050. .catch((err) => {
  13051. // this.$message.error("评论失败");
  13052. console.error(err);
  13053. });
  13054. },
  13055. scoreWork(wid) {
  13056. if (this.wScore == 0) {
  13057. this.$message.error("请评分");
  13058. return;
  13059. }
  13060. let params = [
  13061. {
  13062. wid: wid,
  13063. score: JSON.stringify({
  13064. wScore: this.wScore,
  13065. detail: this.scoreDetail,
  13066. }),
  13067. },
  13068. ];
  13069. this.ajax
  13070. .post(this.$store.state.api + "scoreWork", params)
  13071. .then((res) => {
  13072. this.$message({
  13073. message: "评分成功",
  13074. type: "success",
  13075. });
  13076. this.wScore = 0;
  13077. this.scoreDetail = "";
  13078. this.dialogVisibleScore = false;
  13079. this.selectSWorks();
  13080. this.selectStudent();
  13081. })
  13082. .catch((err) => {
  13083. this.$message.error("评分失败");
  13084. console.error(err);
  13085. });
  13086. },
  13087. openXz(w, i) {
  13088. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13089. .taskJson[this.taskCount].toolChoose[i].selectJson
  13090. ? JSON.parse(
  13091. JSON.stringify(
  13092. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13093. this.taskCount
  13094. ].toolChoose[i].selectJson
  13095. )
  13096. )
  13097. : { url: "", select: [], answer: [] };
  13098. var a = w.works.split(",");
  13099. for (var k = 0; k < a.length; k++) {
  13100. a[k] = parseInt(a[k]);
  13101. }
  13102. this.selectAnswer = { answer: a, stu: w.sName };
  13103. this.isSelect = true;
  13104. this.dialogVisibleSelect = true;
  13105. },
  13106. openSen(w, i) {
  13107. this.sentenceList1 = JSON.parse(w.works);
  13108. this.sentenceList1.stuName = w.sName;
  13109. this.dialogVisibleSentence1 = true;
  13110. },
  13111. openPj(w, toolindex) {
  13112. this.isStar = true;
  13113. this.eScore = JSON.parse(w);
  13114. this.rateJson =
  13115. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13116. this.taskCount
  13117. ].toolChoose[toolindex].rateJson;
  13118. this.studentEvalDialogVisible = true;
  13119. },
  13120. deleteWorks(id) {
  13121. this.$confirm("确定删除此作业吗?", "提示", {
  13122. confirmButtonText: "确定",
  13123. cancelButtonText: "取消",
  13124. type: "warning",
  13125. })
  13126. .then(() => {
  13127. let params = [
  13128. {
  13129. id: id,
  13130. },
  13131. ];
  13132. this.ajax
  13133. .post(this.$store.state.api + "deleteCourseWork", params)
  13134. .then((res) => {
  13135. this.$message({
  13136. message: "删除成功",
  13137. type: "success",
  13138. });
  13139. this.selectStudent();
  13140. this.selectSWorks();
  13141. this.selectSLook();
  13142. })
  13143. .catch((err) => {
  13144. this.$message.error("网络异常");
  13145. console.error(err);
  13146. });
  13147. })
  13148. .catch(() => {});
  13149. },
  13150. selectSWorks(gindex) {
  13151. //教师查看全部作业
  13152. let params = {
  13153. cid: this.id,
  13154. s: this.courseType,
  13155. t: this.taskCount,
  13156. };
  13157. this.ajax
  13158. .get(this.$store.state.api + "selectSWorks", params)
  13159. .then((res) => {
  13160. var a =
  13161. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13162. this.taskCount
  13163. ].toolChoose;
  13164. var b = res.data[0];
  13165. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13166. var y = [
  13167. "AVI",
  13168. "NAVI",
  13169. "MPEG",
  13170. "ASF",
  13171. "MOV",
  13172. "WMV",
  13173. "3GP",
  13174. "RM",
  13175. "RMVB",
  13176. "FLV",
  13177. "F4V",
  13178. "H.264",
  13179. "H.265",
  13180. "REAL VIDEO",
  13181. "MKV",
  13182. "WebM",
  13183. "HDDVD",
  13184. "MP4",
  13185. "MPG",
  13186. "M4V",
  13187. "MGV",
  13188. "OGV",
  13189. "QTM",
  13190. "STR",
  13191. "AMC",
  13192. "DVX",
  13193. "EVO",
  13194. "DAT",
  13195. "OGG",
  13196. "OGM",
  13197. ];
  13198. var d = res.data[1];
  13199. var e = res.data[2];
  13200. var f = res.data[3];
  13201. for (var i = 0; i < a.length; i++) {
  13202. this.worksStudent[i] = [];
  13203. this.worksTeacher[i] = [];
  13204. this.worksStudent2[i] = [];
  13205. if (
  13206. !this.isCloseList[i] ||
  13207. this.isCloseList[i].isClose == undefined
  13208. ) {
  13209. this.isCloseList[i] = { isClose: 0 };
  13210. }
  13211. this.groupStudent[i] = [];
  13212. this.groupStudentUid[i] = [];
  13213. this.isWorksS[i] = [];
  13214. this.checkJson[i] = [];
  13215. if (a[i].tool[0] == 49) {
  13216. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13217. this.groupStudent[i][gA] = [];
  13218. this.groupStudentUid[i][gA] = [];
  13219. this.worksStudent[i][gA] = [];
  13220. this.isCloseList[i][gA] = [];
  13221. for (var g = 0; g < f.length; g++) {
  13222. if (
  13223. f[g].ttype == 2 &&
  13224. this.tcid &&
  13225. this.arrayToArray(
  13226. f[g].classid.split(","),
  13227. this.tcid.split(",")
  13228. ).length == 0
  13229. ) {
  13230. continue;
  13231. }
  13232. if (gA == f[g].group && f[g].tool == i) {
  13233. this.groupStudent[i][gA].push(f[g]);
  13234. this.groupStudentUid[i][gA].push(f[g].userid);
  13235. }
  13236. }
  13237. }
  13238. this.$forceUpdate();
  13239. }
  13240. for (var j = 0; j < b.length; j++) {
  13241. if (
  13242. b[j].ttype == 2 &&
  13243. this.tcid &&
  13244. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13245. .length == 0
  13246. ) {
  13247. continue;
  13248. }
  13249. var likesCount = 0;
  13250. var commentCount = 0;
  13251. var isLikes = false;
  13252. var commentJson = [];
  13253. var data = b[j];
  13254. if (i == b[j].tool) {
  13255. if (data.type == 2 && a[i].tool[0] == 4) {
  13256. // if(JSON.parse(data.content)[0].anwer){
  13257. var checkL =
  13258. JSON.parse(data.content)[0].anwer instanceof Array
  13259. ? JSON.parse(data.content)[0].anwer
  13260. : JSON.parse(data.content)[0].anwer.split(",");
  13261. for (var z = 0; z < checkL.length; z++) {
  13262. if (!this.checkJson[i][z]) {
  13263. this.checkJson[i].push({
  13264. checkCount: [],
  13265. checkPerson: [],
  13266. rightPerson: [],
  13267. });
  13268. }
  13269. if (!this.checkJson[i][z].checkCount.length) {
  13270. this.checkJson[i][z].checkCount = [];
  13271. let _askItemCount = JSON.parse(data.content)[0].askJson
  13272. .askJson[z].askItem;
  13273. for (var aic = 0; aic < _askItemCount; aic++) {
  13274. this.checkJson[i][z].checkCount.push(0);
  13275. }
  13276. }
  13277. if (checkL[z] instanceof Array) {
  13278. if (
  13279. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13280. checkL[z].sort().join(",")
  13281. ) {
  13282. this.checkJson[i][z].rightPerson.push(data.name);
  13283. }
  13284. for (var q = 0; q < checkL[z].length; q++) {
  13285. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13286. ? this.checkJson[i][z].checkPerson[
  13287. parseInt(checkL[z][q])
  13288. ].push(data.name)
  13289. : (this.checkJson[i][z].checkPerson[
  13290. parseInt(checkL[z][q])
  13291. ] = [data.name]);
  13292. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13293. ? this.checkJson[i][z].checkCount[
  13294. parseInt(checkL[z][q])
  13295. ]++
  13296. : (this.checkJson[i][z].checkCount[
  13297. parseInt(checkL[z][q])
  13298. ] = 1);
  13299. }
  13300. } else {
  13301. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13302. this.checkJson[i][z].rightPerson.push(data.name);
  13303. }
  13304. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13305. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13306. ? this.checkJson[i][z].checkPerson[
  13307. parseInt(checkL[z])
  13308. ].push(data.name)
  13309. : (this.checkJson[i][z].checkPerson[
  13310. parseInt(checkL[z])
  13311. ] = [data.name]);
  13312. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13313. ? this.checkJson[i][z].checkCount[
  13314. parseInt(checkL[z])
  13315. ]++
  13316. : (this.checkJson[i][z].checkCount[
  13317. parseInt(checkL[z])
  13318. ] = 1);
  13319. }
  13320. }
  13321. }
  13322. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13323. var checkL = JSON.parse(data.content)[0].anwer;
  13324. for (var z = 0; z < checkL.length; z++) {
  13325. if (!this.checkJson[i][z]) {
  13326. this.checkJson[i].push({
  13327. checkCount: [],
  13328. checkPerson: [],
  13329. rightPerson: [],
  13330. });
  13331. }
  13332. if (!this.checkJson[i][z].checkCount.length) {
  13333. this.checkJson[i][z].checkCount = [];
  13334. let _askItemCount = JSON.parse(data.content)[0].testJson
  13335. .testJson[z].testItem;
  13336. console.log(_askItemCount);
  13337. for (var aic = 0; aic < _askItemCount; aic++) {
  13338. this.checkJson[i][z].checkCount.push(0);
  13339. }
  13340. }
  13341. if (checkL[z] instanceof Array) {
  13342. if (
  13343. JSON.parse(data.content)[0]
  13344. .testJson.testJson[z].answer.sort()
  13345. .join(",") == checkL[z].sort().join(",")
  13346. ) {
  13347. this.checkJson[i][z].rightPerson.push(data.name);
  13348. }
  13349. for (var q = 0; q < checkL[z].length; q++) {
  13350. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13351. ? this.checkJson[i][z].checkPerson[
  13352. parseInt(checkL[z][q])
  13353. ].push(data.name)
  13354. : (this.checkJson[i][z].checkPerson[
  13355. parseInt(checkL[z][q])
  13356. ] = [data.name]);
  13357. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13358. ? this.checkJson[i][z].checkCount[
  13359. parseInt(checkL[z][q])
  13360. ]++
  13361. : (this.checkJson[i][z].checkCount[
  13362. parseInt(checkL[z][q])
  13363. ] = 1);
  13364. }
  13365. } else {
  13366. if (
  13367. JSON.parse(data.content)[0].testJson.testJson[z]
  13368. .answer == checkL[z]
  13369. ) {
  13370. this.checkJson[i][z].rightPerson.push(data.name);
  13371. }
  13372. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13373. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13374. ? this.checkJson[i][z].checkPerson[
  13375. parseInt(checkL[z])
  13376. ].push(data.name)
  13377. : (this.checkJson[i][z].checkPerson[
  13378. parseInt(checkL[z])
  13379. ] = [data.name]);
  13380. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13381. ? this.checkJson[i][z].checkCount[
  13382. parseInt(checkL[z])
  13383. ]++
  13384. : (this.checkJson[i][z].checkCount[
  13385. parseInt(checkL[z])
  13386. ] = 1);
  13387. }
  13388. }
  13389. }
  13390. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13391. var checkL = JSON.parse(data.content);
  13392. for (var z = 0; z < checkL.length; z++) {
  13393. if (!this.checkJson[i][z]) {
  13394. this.checkJson[i].push({
  13395. checkCount: [],
  13396. checkPerson: [],
  13397. rightPerson: [],
  13398. });
  13399. }
  13400. this.checkJson[i][z].checkPerson.push(data.name);
  13401. if (
  13402. checkL[z].chooseSenList.toString() ==
  13403. checkL[z].rightAnswer.toString()
  13404. ) {
  13405. this.checkJson[i][z].rightPerson.push(data.name);
  13406. }
  13407. }
  13408. }
  13409. for (var k = 0; k < d.length; k++) {
  13410. //点赞
  13411. if (d[k].workId == b[j].id) {
  13412. likesCount++;
  13413. if (d[k].likesId == this.userid) {
  13414. isLikes = true;
  13415. }
  13416. }
  13417. }
  13418. for (var l = 0; l < e.length; l++) {
  13419. //评论
  13420. if (e[l].workId == b[j].id) {
  13421. if (e[l].comment != "") {
  13422. commentCount++;
  13423. commentJson.push({
  13424. commentText: e[l].comment,
  13425. commentTime: e[l].commentTime,
  13426. commentPeople: e[l].commentPeople,
  13427. userid: e[l].userid,
  13428. wid: e[l].id,
  13429. });
  13430. }
  13431. }
  13432. }
  13433. if (
  13434. (b[j].type == 1 ||
  13435. b[j].type == 4 ||
  13436. b[j].type == 5 ||
  13437. b[j].type == 6 ||
  13438. b[j].type == 12 ||
  13439. b[j].type == 7) &&
  13440. a[i].tool[0] != 15 &&
  13441. a[i].tool[0] != 4 &&
  13442. a[i].tool[0] != 45 &&
  13443. a[i].tool[0] != 50 &&
  13444. a[i].tool[0] != 32 &&
  13445. a[i].tool[0] != 57 &&
  13446. a[i].tool[0] != 52
  13447. ) {
  13448. if (
  13449. c.indexOf(
  13450. b[j].content
  13451. .split(".")
  13452. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13453. ) != -1 &&
  13454. a[i].tool[0] == 16 &&
  13455. b[j].atool != 50
  13456. ) {
  13457. let _works = {
  13458. userid: b[j].userid,
  13459. ateacher: b[j].ateacher,
  13460. wid: b[j].id,
  13461. works: b[j].content,
  13462. sName: b[j].name,
  13463. type: 1,
  13464. time: b[j].time,
  13465. score: b[j].score,
  13466. img: b[j].img,
  13467. likesCount: likesCount,
  13468. commentCount: commentCount,
  13469. isLikes: isLikes,
  13470. commentJson: commentJson,
  13471. };
  13472. if (b[j].ttype == 1) {
  13473. this.worksTeacher[i].push(_works);
  13474. } else {
  13475. this.worksStudent2[i].push(_works);
  13476. }
  13477. this.worksStudent[i].push(_works);
  13478. this.isWorksS[i].push({
  13479. uid: b[j].userid,
  13480. sName: b[j].name,
  13481. });
  13482. } else if (
  13483. y.indexOf(
  13484. b[j].content
  13485. .split(".")
  13486. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13487. ) != -1 &&
  13488. a[i].tool[0] == 16 &&
  13489. b[j].atool != 50
  13490. ) {
  13491. let _works = {
  13492. userid: b[j].userid,
  13493. ateacher: b[j].ateacher,
  13494. wid: b[j].id,
  13495. works: b[j].content,
  13496. sName: b[j].name,
  13497. type: 3,
  13498. time: b[j].time,
  13499. score: b[j].score,
  13500. img: b[j].img,
  13501. likesCount: likesCount,
  13502. commentCount: commentCount,
  13503. isLikes: isLikes,
  13504. commentJson: commentJson,
  13505. };
  13506. if (b[j].ttype == 1) {
  13507. this.worksTeacher[i].push(_works);
  13508. } else {
  13509. this.worksStudent2[i].push(_works);
  13510. }
  13511. this.worksStudent[i].push(_works);
  13512. this.isWorksS[i].push({
  13513. uid: b[j].userid,
  13514. sName: b[j].name,
  13515. });
  13516. } else if (b[j].type == 6 && b[j].atool != 50) {
  13517. let _works = {
  13518. userid: b[j].userid,
  13519. ateacher: b[j].ateacher,
  13520. wid: b[j].id,
  13521. works: b[j].content,
  13522. sName: b[j].name,
  13523. type: 4,
  13524. time: b[j].time,
  13525. score: b[j].score,
  13526. img: b[j].img,
  13527. likesCount: likesCount,
  13528. commentCount: commentCount,
  13529. isLikes: isLikes,
  13530. commentJson: commentJson,
  13531. };
  13532. if (b[j].ttype == 1) {
  13533. this.worksTeacher[i].push(_works);
  13534. } else {
  13535. this.worksStudent2[i].push(_works);
  13536. }
  13537. this.worksStudent[i].push(_works);
  13538. this.isWorksS[i].push({
  13539. uid: b[j].userid,
  13540. sName: b[j].name,
  13541. });
  13542. } else if (b[j].type == 7 && b[j].atool != 50) {
  13543. let _works = {
  13544. userid: b[j].userid,
  13545. ateacher: b[j].ateacher,
  13546. wid: b[j].id,
  13547. works: b[j].content,
  13548. sName: b[j].name,
  13549. type: 5,
  13550. time: b[j].time,
  13551. score: b[j].score,
  13552. img: b[j].img,
  13553. likesCount: likesCount,
  13554. commentCount: commentCount,
  13555. isLikes: isLikes,
  13556. commentJson: commentJson,
  13557. };
  13558. if (b[j].ttype == 1) {
  13559. this.worksTeacher[i].push(_works);
  13560. } else {
  13561. this.worksStudent2[i].push(_works);
  13562. }
  13563. this.worksStudent[i].push(_works);
  13564. this.isWorksS[i].push({
  13565. uid: b[j].userid,
  13566. sName: b[j].name,
  13567. });
  13568. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13569. let _works = {
  13570. userid: b[j].userid,
  13571. ateacher: b[j].ateacher,
  13572. wid: b[j].id,
  13573. works: b[j].content,
  13574. sName: b[j].name,
  13575. type: 12,
  13576. time: b[j].time,
  13577. score: b[j].score,
  13578. img: b[j].img,
  13579. likesCount: likesCount,
  13580. commentCount: commentCount,
  13581. isLikes: isLikes,
  13582. commentJson: commentJson,
  13583. };
  13584. if (b[j].ttype == 1) {
  13585. this.worksTeacher[i].push(_works);
  13586. } else {
  13587. this.worksStudent2[i].push(_works);
  13588. }
  13589. this.worksStudent[i].push(_works);
  13590. this.isWorksS[i].push({
  13591. uid: b[j].userid,
  13592. sName: b[j].name,
  13593. });
  13594. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13595. let _works = {
  13596. userid: b[j].userid,
  13597. ateacher: b[j].ateacher,
  13598. wid: b[j].id,
  13599. works: b[j].content,
  13600. sName: b[j].name,
  13601. type: 0,
  13602. time: b[j].time,
  13603. score: b[j].score,
  13604. img: b[j].img,
  13605. likesCount: likesCount,
  13606. commentCount: commentCount,
  13607. isLikes: isLikes,
  13608. commentJson: commentJson,
  13609. };
  13610. if (b[j].ttype == 1) {
  13611. this.worksTeacher[i].push(_works);
  13612. } else {
  13613. this.worksStudent2[i].push(_works);
  13614. }
  13615. this.worksStudent[i].push(_works);
  13616. this.isWorksS[i].push({
  13617. uid: b[j].userid,
  13618. sName: b[j].name,
  13619. });
  13620. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13621. let _works = {
  13622. userid: b[j].userid,
  13623. ateacher: b[j].ateacher,
  13624. wid: b[j].id,
  13625. works: b[j].content,
  13626. sName: b[j].name,
  13627. type: 0,
  13628. time: b[j].time,
  13629. score: b[j].score,
  13630. img: b[j].img,
  13631. likesCount: likesCount,
  13632. commentCount: commentCount,
  13633. isLikes: isLikes,
  13634. commentJson: commentJson,
  13635. };
  13636. if (b[j].ttype == 1) {
  13637. this.worksTeacher[i].push(_works);
  13638. } else {
  13639. this.worksStudent2[i].push(_works);
  13640. }
  13641. this.worksStudent[i].push(_works);
  13642. this.isWorksS[i].push({
  13643. uid: b[j].userid,
  13644. sName: b[j].name,
  13645. });
  13646. }
  13647. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13648. let _works = {
  13649. userid: b[j].userid,
  13650. ateacher: b[j].ateacher,
  13651. wid: b[j].id,
  13652. works: b[j].content,
  13653. sName: b[j].name,
  13654. type: 2,
  13655. time: b[j].time,
  13656. score: b[j].score,
  13657. img: b[j].img,
  13658. likesCount: likesCount,
  13659. commentCount: commentCount,
  13660. isLikes: isLikes,
  13661. commentJson: commentJson,
  13662. };
  13663. if (b[j].ttype == 1) {
  13664. this.worksTeacher[i].push(_works);
  13665. } else {
  13666. this.worksStudent2[i].push(_works);
  13667. }
  13668. this.worksStudent[i].push(_works);
  13669. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13670. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13671. //问卷
  13672. let _works = {
  13673. userid: b[j].userid,
  13674. ateacher: b[j].ateacher,
  13675. wid: b[j].id,
  13676. works: b[j].content,
  13677. sName: b[j].name,
  13678. type: 2,
  13679. time: b[j].time,
  13680. score: b[j].score,
  13681. img: b[j].img,
  13682. likesCount: likesCount,
  13683. commentCount: commentCount,
  13684. isLikes: isLikes,
  13685. commentJson: commentJson,
  13686. };
  13687. if (b[j].ttype == 1) {
  13688. this.worksTeacher[i].push(_works);
  13689. } else {
  13690. this.worksStudent2[i].push(_works);
  13691. }
  13692. this.worksStudent[i].push(_works);
  13693. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13694. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13695. //选择题
  13696. let _works = {
  13697. userid: b[j].userid,
  13698. ateacher: b[j].ateacher,
  13699. wid: b[j].id,
  13700. works: b[j].content,
  13701. sName: b[j].name,
  13702. type: 8,
  13703. time: b[j].time,
  13704. score: b[j].score,
  13705. img: b[j].img,
  13706. likesCount: likesCount,
  13707. commentCount: commentCount,
  13708. isLikes: isLikes,
  13709. commentJson: commentJson,
  13710. };
  13711. if (b[j].ttype == 1) {
  13712. this.worksTeacher[i].push(_works);
  13713. } else {
  13714. this.worksStudent2[i].push(_works);
  13715. }
  13716. this.worksStudent[i].push(_works);
  13717. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13718. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13719. //选择题
  13720. let _works = {
  13721. userid: b[j].userid,
  13722. ateacher: b[j].ateacher,
  13723. wid: b[j].id,
  13724. works: b[j].content,
  13725. sName: b[j].name,
  13726. type: 9,
  13727. time: b[j].time,
  13728. score: b[j].score,
  13729. img: b[j].img,
  13730. likesCount: likesCount,
  13731. commentCount: commentCount,
  13732. isLikes: isLikes,
  13733. commentJson: commentJson,
  13734. };
  13735. if (b[j].ttype == 1) {
  13736. this.worksTeacher[i].push(_works);
  13737. } else {
  13738. this.worksStudent2[i].push(_works);
  13739. }
  13740. this.worksStudent[i].push(_works);
  13741. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13742. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13743. //选择题
  13744. let _works = {
  13745. userid: b[j].userid,
  13746. ateacher: b[j].ateacher,
  13747. wid: b[j].id,
  13748. works: b[j].content,
  13749. sName: b[j].name,
  13750. type: 10,
  13751. time: b[j].time,
  13752. score: b[j].score,
  13753. img: b[j].img,
  13754. likesCount: likesCount,
  13755. commentCount: commentCount,
  13756. isLikes: isLikes,
  13757. commentJson: commentJson,
  13758. };
  13759. if (b[j].ttype == 1) {
  13760. this.worksTeacher[i].push(_works);
  13761. } else {
  13762. this.worksStudent2[i].push(_works);
  13763. }
  13764. this.worksStudent[i].push(_works);
  13765. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13766. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13767. //选择题
  13768. let _works = {
  13769. userid: b[j].userid,
  13770. ateacher: b[j].ateacher,
  13771. wid: b[j].id,
  13772. works: b[j].content,
  13773. sName: b[j].name,
  13774. type: 13,
  13775. time: b[j].time,
  13776. score: b[j].score,
  13777. img: b[j].img,
  13778. likesCount: likesCount,
  13779. commentCount: commentCount,
  13780. isLikes: isLikes,
  13781. commentJson: commentJson,
  13782. };
  13783. if (b[j].ttype == 1) {
  13784. this.worksTeacher[i].push(_works);
  13785. } else {
  13786. this.worksStudent2[i].push(_works);
  13787. }
  13788. this.worksStudent[i].push(_works);
  13789. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13790. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  13791. let _gindex = JSON.parse(b[j].content);
  13792. if (
  13793. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  13794. b[j].userid
  13795. ) != -1
  13796. ) {
  13797. this.worksStudent[i][_gindex.groupIndex].push({
  13798. userid: b[j].userid,
  13799. ateacher: b[j].ateacher,
  13800. wid: b[j].id,
  13801. works: _gindex.url,
  13802. sName: b[j].name,
  13803. type: _gindex.type,
  13804. time: b[j].time,
  13805. score: b[j].score,
  13806. img: b[j].img,
  13807. likesCount: likesCount,
  13808. commentCount: commentCount,
  13809. isLikes: isLikes,
  13810. commentJson: commentJson,
  13811. });
  13812. }
  13813. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13814. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  13815. let _works = {
  13816. userid: b[j].userid,
  13817. ateacher: b[j].ateacher,
  13818. wid: b[j].id,
  13819. works: b[j].content,
  13820. sName: b[j].name ? b[j].name : b[j].userid,
  13821. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  13822. time: b[j].time,
  13823. score: b[j].score,
  13824. img: b[j].img,
  13825. likesCount: likesCount,
  13826. commentCount: commentCount,
  13827. isLikes: isLikes,
  13828. commentJson: commentJson,
  13829. };
  13830. if (b[j].ttype == 1) {
  13831. this.worksTeacher[i].push(_works);
  13832. } else {
  13833. this.worksStudent2[i].push(_works);
  13834. }
  13835. this.worksStudent[i].push(_works);
  13836. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13837. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  13838. let _works = {
  13839. userid: b[j].userid,
  13840. ateacher: b[j].ateacher,
  13841. wid: b[j].id,
  13842. works: b[j].content,
  13843. sName: b[j].name ? b[j].name : b[j].userid,
  13844. type: 12,
  13845. time: b[j].time,
  13846. score: b[j].score,
  13847. img: b[j].img,
  13848. likesCount: likesCount,
  13849. commentCount: commentCount,
  13850. isLikes: isLikes,
  13851. commentJson: commentJson,
  13852. };
  13853. if (b[j].ttype == 1) {
  13854. this.worksTeacher[i].push(_works);
  13855. } else {
  13856. this.worksStudent2[i].push(_works);
  13857. }
  13858. this.worksStudent[i].push(_works);
  13859. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13860. } else if (
  13861. a[i].tool[0] == 57 &&
  13862. b[j].atool == 57 &&
  13863. b[j].type == 12
  13864. ) {
  13865. let _works = {
  13866. userid: b[j].userid,
  13867. ateacher: b[j].ateacher,
  13868. wid: b[j].id,
  13869. works: b[j].content,
  13870. sName: b[j].name ? b[j].name : b[j].userid,
  13871. type: 12,
  13872. time: b[j].time,
  13873. score: b[j].score,
  13874. img: b[j].img,
  13875. likesCount: likesCount,
  13876. commentCount: commentCount,
  13877. isLikes: isLikes,
  13878. commentJson: commentJson,
  13879. };
  13880. if (b[j].ttype == 1) {
  13881. this.worksTeacher[i].push(_works);
  13882. } else {
  13883. this.worksStudent2[i].push(_works);
  13884. }
  13885. this.worksStudent[i].push(_works);
  13886. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13887. } else if (
  13888. a[i].tool[0] == 57 &&
  13889. b[j].atool == 57 &&
  13890. b[j].type == 15
  13891. ) {
  13892. let _works = {
  13893. userid: b[j].userid,
  13894. ateacher: b[j].ateacher,
  13895. wid: b[j].id,
  13896. works: b[j].content,
  13897. sName: b[j].name ? b[j].name : b[j].userid,
  13898. type: 15,
  13899. time: b[j].time,
  13900. score: b[j].score,
  13901. img: b[j].img,
  13902. likesCount: likesCount,
  13903. commentCount: commentCount,
  13904. isLikes: isLikes,
  13905. commentJson: commentJson,
  13906. };
  13907. if (b[j].ttype == 1) {
  13908. this.worksTeacher[i].push(_works);
  13909. } else {
  13910. this.worksStudent2[i].push(_works);
  13911. }
  13912. this.worksStudent[i].push(_works);
  13913. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13914. }
  13915. }
  13916. }
  13917. if (this.worksStudent[i] && this.worksStudent[i].length) {
  13918. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  13919. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13920. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13921. var scoreA = parseFloat(jscoreA);
  13922. var scoreB = parseFloat(jscoreB);
  13923. if (scoreA == scoreB) {
  13924. return b.likesCount - a.likesCount;
  13925. }
  13926. return scoreB - scoreA;
  13927. });
  13928. }
  13929. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  13930. this.worksStudent2[i] = this.worksStudent2[i].sort(function (
  13931. a,
  13932. b
  13933. ) {
  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. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  13945. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  13946. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13947. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13948. var scoreA = parseFloat(jscoreA);
  13949. var scoreB = parseFloat(jscoreB);
  13950. if (scoreA == scoreB) {
  13951. return b.likesCount - a.likesCount;
  13952. }
  13953. return scoreB - scoreA;
  13954. });
  13955. }
  13956. }
  13957. for (var i = 0; i < a.length; i++) {
  13958. for (var j = 0; j < b.length; j++) {
  13959. var data = b[j];
  13960. if (i == b[j].tool) {
  13961. if (data.type == 2 || data.type == 8) {
  13962. for (var z = 0; z < this.checkJson[i].length; z++) {
  13963. this.checkJson[i][z].checkPerent = [];
  13964. this.checkJson[i][z].right = Math.round(
  13965. (this.checkJson[i][z].rightPerson.length /
  13966. parseInt(this.worksStudent[i].length)) *
  13967. 100
  13968. );
  13969. let aaaa = this.checkJson[i][z];
  13970. console.log(aaaa);
  13971. for (
  13972. var k = 0;
  13973. k < this.checkJson[i][z].checkCount.length;
  13974. k++
  13975. ) {
  13976. this.checkJson[i][z].checkPerent.push(
  13977. Math.round(
  13978. (this.checkJson[i][z].checkCount[k] /
  13979. parseInt(this.worksStudent[i].length)) *
  13980. 100
  13981. )
  13982. );
  13983. }
  13984. }
  13985. } else if (data.type == 9) {
  13986. for (var z = 0; z < this.checkJson[i].length; z++) {
  13987. this.checkJson[i][z].checkPerent = [];
  13988. this.checkJson[i][z].right = Math.round(
  13989. (this.checkJson[i][z].rightPerson.length /
  13990. this.checkJson[i][z].checkPerson.length) *
  13991. 100
  13992. );
  13993. }
  13994. }
  13995. }
  13996. }
  13997. }
  13998. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  13999. this.joinGroup(gindex);
  14000. }
  14001. this.selectWorksStudent();
  14002. })
  14003. .catch((err) => {
  14004. console.error(err);
  14005. });
  14006. },
  14007. pngToWhiteBg(file) {
  14008. const _file = file;
  14009. let read = new FileReader();
  14010. read.readAsDataURL(file); // 文件转base64
  14011. return new Promise((resolve, reject) => {
  14012. read.onload = (e) => {
  14013. let img = new Image();
  14014. img.src = e.target.result;
  14015. img.onload = async () => {
  14016. // 生成canvas
  14017. let canvas = document.createElement("canvas");
  14018. let context = canvas.getContext("2d");
  14019. // 绘制图片到canvas上
  14020. canvas.width = img.width;
  14021. canvas.height = img.height;
  14022. // 在canvas绘制前填充白色背景
  14023. context.fillStyle = "#fff";
  14024. context.fillRect(0, 0, canvas.width, canvas.height);
  14025. context.drawImage(img, 0, 0);
  14026. let base64 = canvas.toDataURL(file["type"], 1);
  14027. let newFile = this.dataUrlToFile(base64, _file);
  14028. resolve(newFile);
  14029. };
  14030. };
  14031. });
  14032. },
  14033. dataUrlToFile(dataurl, file) {
  14034. let arr = dataurl.split(","),
  14035. mime = arr[0].match(/:(.*?);/)[1],
  14036. bstr = atob(arr[1]),
  14037. n = bstr.length,
  14038. u8arr = new Uint8Array(n);
  14039. while (n--) {
  14040. u8arr[n] = bstr.charCodeAt(n);
  14041. }
  14042. // return new Blob([u8arr], { type: mime });
  14043. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14044. type: mime,
  14045. });
  14046. },
  14047. async beforeUpload1(event, type, i) {
  14048. // this.$message.success('进入上传')
  14049. var file = "";
  14050. if (type == 5) {
  14051. file = event;
  14052. } else {
  14053. file = event.target.files[0];
  14054. }
  14055. var credentials = {
  14056. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14057. secretAccessKey: "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",
  14058. }; //秘钥形式的登录上传
  14059. window.AWS.config.update(credentials);
  14060. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14061. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14062. var _this = this;
  14063. _this.progress = 0;
  14064. _this.proVisible = true;
  14065. _this.isFinishSize = 0;
  14066. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14067. var b = [
  14068. "DOC",
  14069. "DOCX",
  14070. "DOCM",
  14071. "DOTM",
  14072. "DOTX",
  14073. "PPTX",
  14074. "PPSX",
  14075. "PPT",
  14076. "PPS",
  14077. "PPTM",
  14078. "POTM",
  14079. "PPAM",
  14080. "POTX",
  14081. "PPSM",
  14082. ];
  14083. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14084. var photoA = [
  14085. "BMP",
  14086. "GIF",
  14087. "PNG",
  14088. "JPGE",
  14089. "JPG",
  14090. "TIF",
  14091. "PCX",
  14092. "TGA",
  14093. "EXIF",
  14094. "FPX",
  14095. "SVG",
  14096. "APNG",
  14097. ];
  14098. // if (
  14099. // b.indexOf(
  14100. // file.name
  14101. // .split(".")
  14102. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14103. // ) != -1
  14104. // ) {
  14105. // if (file.size / 1024 / 1024 > 10) {
  14106. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14107. // return;
  14108. // }
  14109. // } else if (
  14110. // excelA.indexOf(
  14111. // file.name
  14112. // .split(".")
  14113. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14114. // ) != "-1"
  14115. // ) {
  14116. // if (file.size / 1024 / 1024 > 5) {
  14117. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14118. // return;
  14119. // }
  14120. // }
  14121. if (
  14122. photoA.indexOf(
  14123. file.name
  14124. .split(".")
  14125. [file.name.split(".").length - 1].toLocaleUpperCase()
  14126. ) != -1 &&
  14127. type != 4
  14128. ) {
  14129. // const blob = await imageConversion.compress(file, 0.8)
  14130. file = await this.pngToWhiteBg(file);
  14131. const blob = await imageConversion.compressAccurately(file, 256);
  14132. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14133. file = new File([blob], file.name, { type: file.type });
  14134. }
  14135. if (file) {
  14136. var params = {
  14137. Key:
  14138. file.name.split(".")[0] +
  14139. new Date().getTime() +
  14140. "." +
  14141. file.name.split(".")[file.name.split(".").length - 1],
  14142. ContentType: file.type,
  14143. Body: file,
  14144. "Access-Control-Allow-Credentials": "*",
  14145. ACL: "public-read",
  14146. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14147. var options = {
  14148. // partSize: 2048 * 1024 * 1024,
  14149. partSize: 1024 * 1024 * 1024,
  14150. queueSize: 2,
  14151. leavePartsOnError: true,
  14152. };
  14153. bucket
  14154. .upload(params, options)
  14155. .on("httpUploadProgress", function (evt) {
  14156. //这里可以写进度条
  14157. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14158. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14159. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14160. })
  14161. .send(function (err, data) {
  14162. _this.progress = 100;
  14163. _this.isFinishSize = _this.isAllSize;
  14164. setTimeout(() => {
  14165. _this.proVisible = false;
  14166. }, 1000);
  14167. if (err) {
  14168. var a = _this.$refs.upload1.uploadFiles;
  14169. a.splice(a.length - 1, a.length);
  14170. _this.$message.error("上传失败");
  14171. } else {
  14172. // _this.$message.success('上传成功')
  14173. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14174. var c = [
  14175. "AVI",
  14176. "NAVI",
  14177. "MPEG",
  14178. "ASF",
  14179. "MOV",
  14180. "WMV",
  14181. "3GP",
  14182. "RM",
  14183. "RMVB",
  14184. "FLV",
  14185. "F4V",
  14186. "H.264",
  14187. "H.265",
  14188. "REAL VIDEO",
  14189. "MKV",
  14190. "WebM",
  14191. "HDDVD",
  14192. "MP4",
  14193. "MPG",
  14194. "M4V",
  14195. "MGV",
  14196. "OGV",
  14197. "QTM",
  14198. "STR",
  14199. "AMC",
  14200. "DVX",
  14201. "EVO",
  14202. "DAT",
  14203. "OGG",
  14204. "OGM",
  14205. ];
  14206. if (type == 1) {
  14207. _this.studyJuri[0].cover.push({
  14208. name: file.name,
  14209. url: data.Location,
  14210. uid: file.uid,
  14211. });
  14212. if (
  14213. c.indexOf(
  14214. _this.studyJuri[0].cover[0].url
  14215. .split(".")
  14216. [
  14217. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14218. ].toLocaleUpperCase()
  14219. ) != -1
  14220. ) {
  14221. _this.fileType = 2;
  14222. } else if (
  14223. b.indexOf(
  14224. _this.studyJuri[0].cover[0].url
  14225. .split(".")
  14226. [
  14227. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14228. ].toLocaleUpperCase()
  14229. ) != -1
  14230. ) {
  14231. _this.fileType = 1;
  14232. } else if (
  14233. photoA.indexOf(
  14234. _this.studyJuri[0].cover[0].url
  14235. .split(".")
  14236. [
  14237. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14238. ].toLocaleUpperCase()
  14239. ) != -1
  14240. ) {
  14241. _this.fileType = 0;
  14242. } else {
  14243. _this.fileType = 3;
  14244. }
  14245. _this.imgChange(null, null, type);
  14246. } else if (type == 2) {
  14247. _this.upToolImg = data.Location;
  14248. _this.imgChange(null, null, type);
  14249. _this.addCourseWorks(i);
  14250. } else if (type == 4) {
  14251. _this.addPz("3", data.Location);
  14252. } else if (type == 5) {
  14253. _this.addImgDrawImG(data.Location);
  14254. } else if (type == 6) {
  14255. var _ftype = 1;
  14256. if (
  14257. c.indexOf(
  14258. data.Location.split(".")[
  14259. data.Location.split(".").length - 1
  14260. ].toLocaleUpperCase()
  14261. ) != -1
  14262. ) {
  14263. _ftype = 5;
  14264. } else if (
  14265. b.indexOf(
  14266. data.Location.split(".")[
  14267. data.Location.split(".").length - 1
  14268. ].toLocaleUpperCase()
  14269. ) != -1
  14270. ) {
  14271. _ftype = 4;
  14272. } else {
  14273. _ftype = 1;
  14274. }
  14275. _this.plworkFile.push({
  14276. name: file.name,
  14277. url: data.Location,
  14278. uid: file.uid,
  14279. fileType: _ftype,
  14280. username:
  14281. _this.plworkFile.length + 1 > 10
  14282. ? _this.plworkFile.length + 1
  14283. : "0" + (_this.plworkFile.length + 1),
  14284. });
  14285. } else if (type == 7) {
  14286. _this.addCourseWorksGong(i, data.Location, 32);
  14287. } else if (type == 8) {
  14288. _this.addCourseWorksGong(i, data.Location, 57);
  14289. }
  14290. _this.imgChange(null, null, type);
  14291. console.log(data.Location);
  14292. // _this.$message.success('上传成功'+data.Location)
  14293. }
  14294. });
  14295. }
  14296. },
  14297. async beforeUpload3(event, type, i) {
  14298. // this.$message.success('进入上传')
  14299. let file = "";
  14300. let cfindex2 = 0;
  14301. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14302. file = event.target.files[cfindex];
  14303. var credentials = {
  14304. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14305. secretAccessKey: "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",
  14306. }; //秘钥形式的登录上传
  14307. window.AWS.config.update(credentials);
  14308. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14309. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14310. var _this = this;
  14311. // _this.progress = 0;
  14312. _this.proVisible2 = true;
  14313. var b = [
  14314. "DOC",
  14315. "DOCX",
  14316. "DOCM",
  14317. "DOTM",
  14318. "DOTX",
  14319. "PPTX",
  14320. "PPSX",
  14321. "PPT",
  14322. "PPS",
  14323. "PPTM",
  14324. "POTM",
  14325. "PPAM",
  14326. "POTX",
  14327. "PPSM",
  14328. ];
  14329. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14330. var photoA = [
  14331. "BMP",
  14332. "GIF",
  14333. "PNG",
  14334. "JPGE",
  14335. "JPG",
  14336. "TIF",
  14337. "PCX",
  14338. "TGA",
  14339. "EXIF",
  14340. "FPX",
  14341. "SVG",
  14342. "APNG",
  14343. ];
  14344. if (
  14345. photoA.indexOf(
  14346. file.name
  14347. .split(".")
  14348. [file.name.split(".").length - 1].toLocaleUpperCase()
  14349. ) != -1 &&
  14350. type != 4
  14351. ) {
  14352. // const blob = await imageConversion.compress(file, 0.8)
  14353. file = await this.pngToWhiteBg(file);
  14354. const blob = await imageConversion.compressAccurately(file, 256);
  14355. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14356. file = new File([blob], file.name, { type: file.type });
  14357. }
  14358. if (file) {
  14359. var params = {
  14360. Key:
  14361. file.name.split(".")[0] +
  14362. new Date().getTime() +
  14363. "." +
  14364. file.name.split(".")[file.name.split(".").length - 1],
  14365. ContentType: file.type,
  14366. Body: file,
  14367. "Access-Control-Allow-Credentials": "*",
  14368. ACL: "public-read",
  14369. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14370. var options = {
  14371. // partSize: 2048 * 1024 * 1024,
  14372. partSize: 1024 * 1024 * 1024,
  14373. queueSize: 2,
  14374. leavePartsOnError: true,
  14375. };
  14376. bucket
  14377. .upload(params, options)
  14378. .on("httpUploadProgress", function (evt) {
  14379. //这里可以写进度条
  14380. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14381. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14382. })
  14383. .send(function (err, data) {
  14384. // _this.progress = 100;
  14385. cfindex2++;
  14386. setTimeout(() => {
  14387. if (
  14388. cfindex2 == event.target.files.length - 1 ||
  14389. cfindex2 > event.target.files.length - 1
  14390. ) {
  14391. _this.proVisible2 = false;
  14392. }
  14393. }, 1000);
  14394. if (err) {
  14395. var a = _this.$refs.upload1.uploadFiles;
  14396. a.splice(a.length - 1, a.length);
  14397. _this.$message.error("上传失败");
  14398. } else {
  14399. // _this.$message.success('上传成功')
  14400. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14401. var c = [
  14402. "AVI",
  14403. "NAVI",
  14404. "MPEG",
  14405. "ASF",
  14406. "MOV",
  14407. "WMV",
  14408. "3GP",
  14409. "RM",
  14410. "RMVB",
  14411. "FLV",
  14412. "F4V",
  14413. "H.264",
  14414. "H.265",
  14415. "REAL VIDEO",
  14416. "MKV",
  14417. "WebM",
  14418. "HDDVD",
  14419. "MP4",
  14420. "MPG",
  14421. "M4V",
  14422. "MGV",
  14423. "OGV",
  14424. "QTM",
  14425. "STR",
  14426. "AMC",
  14427. "DVX",
  14428. "EVO",
  14429. "DAT",
  14430. "OGG",
  14431. "OGM",
  14432. ];
  14433. if (type == 1) {
  14434. _this.studyJuri[0].cover.push({
  14435. name: file.name,
  14436. url: data.Location,
  14437. uid: file.uid,
  14438. });
  14439. if (
  14440. c.indexOf(
  14441. _this.studyJuri[0].cover[0].url
  14442. .split(".")
  14443. [
  14444. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14445. ].toLocaleUpperCase()
  14446. ) != -1
  14447. ) {
  14448. _this.fileType = 2;
  14449. } else if (
  14450. b.indexOf(
  14451. _this.studyJuri[0].cover[0].url
  14452. .split(".")
  14453. [
  14454. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14455. ].toLocaleUpperCase()
  14456. ) != -1
  14457. ) {
  14458. _this.fileType = 1;
  14459. } else {
  14460. _this.fileType = 0;
  14461. }
  14462. _this.imgChange(null, null, type);
  14463. } else if (type == 2) {
  14464. _this.upToolImg = data.Location;
  14465. _this.imgChange(null, null, type);
  14466. _this.addCourseWorks(i);
  14467. } else if (type == 4) {
  14468. _this.addPz("3", data.Location);
  14469. } else if (type == 5) {
  14470. _this.addImgDrawImG(data.Location);
  14471. } else if (type == 6) {
  14472. var _ftype = 1;
  14473. if (
  14474. c.indexOf(
  14475. data.Location.split(".")[
  14476. data.Location.split(".").length - 1
  14477. ].toLocaleUpperCase()
  14478. ) != -1
  14479. ) {
  14480. _ftype = 5;
  14481. } else if (
  14482. b.indexOf(
  14483. data.Location.split(".")[
  14484. data.Location.split(".").length - 1
  14485. ].toLocaleUpperCase()
  14486. ) != -1
  14487. ) {
  14488. _ftype = 4;
  14489. } else {
  14490. _ftype = 1;
  14491. }
  14492. _this.plworkFile.push({
  14493. name: file.name,
  14494. url: data.Location,
  14495. uid: file.uid,
  14496. fileType: _ftype,
  14497. username:
  14498. _this.plworkFile.length + 1 > 9
  14499. ? _this.plworkFile.length + 1
  14500. : "0" + (_this.plworkFile.length + 1),
  14501. });
  14502. }
  14503. _this.imgChange(null, null, type);
  14504. console.log(data.Location);
  14505. // _this.$message.success('上传成功'+data.Location)
  14506. }
  14507. });
  14508. }
  14509. }
  14510. },
  14511. beforeUpload2(event, type) {
  14512. var file = event.target.files[0];
  14513. var credentials = {
  14514. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14515. secretAccessKey: "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",
  14516. }; //秘钥形式的登录上传
  14517. window.AWS.config.update(credentials);
  14518. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14519. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14520. var _this = this;
  14521. _this.progress = 0;
  14522. _this.proVisible = true;
  14523. if (file) {
  14524. var params = {
  14525. Key:
  14526. file.name.split(".")[0] +
  14527. new Date().getTime() +
  14528. "." +
  14529. file.name.split(".")[file.name.split(".").length - 1],
  14530. ContentType: file.type,
  14531. Body: file,
  14532. "Access-Control-Allow-Credentials": "*",
  14533. ACL: "public-read",
  14534. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14535. var options = {
  14536. partSize: 2048 * 1024 * 1024,
  14537. queueSize: 2,
  14538. leavePartsOnError: true,
  14539. };
  14540. bucket
  14541. .upload(params, options)
  14542. .on("httpUploadProgress", function (evt) {
  14543. //这里可以写进度条
  14544. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14545. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14546. })
  14547. .send(function (err, data) {
  14548. _this.progress = 100;
  14549. setTimeout(() => {
  14550. _this.proVisible = false;
  14551. }, 1000);
  14552. if (err) {
  14553. var a = _this.$refs.upload1.uploadFiles;
  14554. a.splice(a.length - 1, a.length);
  14555. _this.$message.error("上传失败");
  14556. } else {
  14557. if (type == 2) {
  14558. _this.studyJuri[0].upVedio.push({
  14559. name: file.name,
  14560. url: data.Location,
  14561. uid: file.uid,
  14562. });
  14563. _this.imgChange(null, null, type);
  14564. } else if (type == 3) {
  14565. _this.studyJuri[0].upFile.push({
  14566. name: file.name,
  14567. url: data.Location,
  14568. uid: file.uid,
  14569. });
  14570. _this.imgChange(null, null, type);
  14571. }
  14572. console.log(data.Location);
  14573. }
  14574. });
  14575. }
  14576. },
  14577. allScrell() {
  14578. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  14579. },
  14580. nextToolindex(type) {
  14581. if (type == "last") {
  14582. if (this.toolIndex == 0) {
  14583. this.$message.error("已经是第一个步骤");
  14584. return;
  14585. }
  14586. this.toolIndex = this.toolIndex - 1;
  14587. this.tool =
  14588. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14589. this.taskCount
  14590. ].toolChoose[this.toolIndex];
  14591. } else if (type == "next") {
  14592. if (
  14593. this.toolIndex ==
  14594. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14595. this.taskCount
  14596. ].toolChoose.length -
  14597. 1
  14598. ) {
  14599. this.$message.error("已经是最后一个步骤");
  14600. return;
  14601. }
  14602. this.toolIndex = this.toolIndex + 1;
  14603. this.tool =
  14604. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14605. this.taskCount
  14606. ].toolChoose[this.toolIndex];
  14607. }
  14608. this.$forceUpdate();
  14609. },
  14610. checkBz(index) {
  14611. this.toolIndex = index;
  14612. this.tool =
  14613. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14614. this.taskCount
  14615. ].toolChoose[this.toolIndex];
  14616. this.isUpdateToolDetail = false;
  14617. this.$forceUpdate();
  14618. },
  14619. nextOrpreSteps(t) {
  14620. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14621. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14622. return;
  14623. }
  14624. var b = this.chapInfoList.length - 1;
  14625. if (t == 0) {
  14626. if (this.courseType == 0) {
  14627. if (this.taskCount == 0) {
  14628. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  14629. if (this.IsLookOpen) {
  14630. if (
  14631. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  14632. ) {
  14633. if (
  14634. this.courseDetail.userid != this.userid &&
  14635. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14636. ) {
  14637. this.$message.error("任务未解锁");
  14638. } else {
  14639. this.$message.error("上一任务未解锁");
  14640. }
  14641. return;
  14642. }
  14643. }
  14644. this.navList[this.courseType].isOpen = false;
  14645. this.courseType = b;
  14646. this.taskCount =
  14647. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14648. .length - 1;
  14649. this.navList[this.courseType].isOpen = true;
  14650. } else {
  14651. this.taskCount--;
  14652. }
  14653. } else {
  14654. if (this.taskCount == 0) {
  14655. this.navList[this.courseType].isOpen = false;
  14656. this.courseType--;
  14657. this.taskCount =
  14658. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14659. .length - 1;
  14660. this.navList[this.courseType].isOpen = true;
  14661. } else {
  14662. this.taskCount--;
  14663. }
  14664. }
  14665. } else {
  14666. if (this.courseType == b) {
  14667. if (
  14668. this.taskCount ==
  14669. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14670. 1
  14671. ) {
  14672. this.navList[this.courseType].isOpen = false;
  14673. this.courseType = 0;
  14674. this.taskCount = 0;
  14675. this.navList[this.courseType].isOpen = true;
  14676. } else {
  14677. var bbb = parseInt(this.taskCount) + 1;
  14678. if (
  14679. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14680. .isLook &&
  14681. this.courseDetail.userid != this.userid &&
  14682. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14683. this.IsLookOpen
  14684. ) {
  14685. this.$message.error("任务未解锁");
  14686. return;
  14687. }
  14688. this.taskCount++;
  14689. if (this.IsLookOpen) {
  14690. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14691. this.taskCount
  14692. ].isLook = true;
  14693. this.addCourseState(3);
  14694. }
  14695. }
  14696. } else {
  14697. if (
  14698. this.taskCount ==
  14699. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14700. 1
  14701. ) {
  14702. var bbb = parseInt(this.courseType) + 1;
  14703. if (
  14704. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  14705. this.courseDetail.userid != this.userid &&
  14706. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14707. this.IsLookOpen
  14708. ) {
  14709. this.$message.error("任务未解锁");
  14710. return;
  14711. }
  14712. this.navList[this.courseType].isOpen = false;
  14713. this.courseType++;
  14714. this.taskCount = 0;
  14715. this.navList[this.courseType].isOpen = true;
  14716. } else {
  14717. var bbb = parseInt(this.taskCount) + 1;
  14718. if (
  14719. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14720. .isLook &&
  14721. this.courseDetail.userid != this.userid &&
  14722. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14723. this.IsLookOpen
  14724. ) {
  14725. this.$message.error("任务未解锁");
  14726. return;
  14727. }
  14728. this.taskCount++;
  14729. }
  14730. if (this.IsLookOpen) {
  14731. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14732. this.taskCount
  14733. ].isLook = true;
  14734. this.addCourseState(3);
  14735. }
  14736. }
  14737. }
  14738. document.scrollingElement.scrollTop = 0;
  14739. this.showType = 0;
  14740. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14741. this.toolIndex = null;
  14742. this.isNoHomeWork = false;
  14743. (this.studyJuri = [
  14744. {
  14745. content: "",
  14746. cover: [],
  14747. upVedio: [],
  14748. upFile: [],
  14749. },
  14750. ]),
  14751. (this.radio = []);
  14752. this.isClickNav = "";
  14753. this.selectPz();
  14754. this.getHomeWork();
  14755. this.getCourseDetail();
  14756. this.$forceUpdate();
  14757. },
  14758. openTask(s, n, i) {
  14759. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14760. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14761. return;
  14762. }
  14763. if (this.IsLookOpen) {
  14764. if (
  14765. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  14766. this.courseDetail.userid != this.userid &&
  14767. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14768. ) {
  14769. this.$message.error("任务未解锁");
  14770. return;
  14771. }
  14772. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  14773. if (
  14774. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  14775. .isLook
  14776. ) {
  14777. this.$message.error("上一任务未解锁");
  14778. return;
  14779. }
  14780. } else if (s > this.courseType) {
  14781. if (n > 0) {
  14782. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  14783. this.$message.error("上一任务未解锁");
  14784. return;
  14785. }
  14786. } else {
  14787. if (
  14788. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  14789. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  14790. ].isLook
  14791. ) {
  14792. this.$message.error("上一任务未解锁");
  14793. return;
  14794. }
  14795. }
  14796. }
  14797. }
  14798. this.courseType = s;
  14799. this.navId = i;
  14800. this.taskCount = n;
  14801. if (this.IsLookOpen) {
  14802. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14803. this.taskCount
  14804. ].isLook = true;
  14805. this.addCourseState(3);
  14806. }
  14807. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  14808. this.isCloseList[ci].isClose = 0;
  14809. }
  14810. this.showType = 0;
  14811. this.isNoHomeWork = false;
  14812. (this.studyJuri = [
  14813. {
  14814. content: "",
  14815. cover: [],
  14816. upVedio: [],
  14817. upFile: [],
  14818. },
  14819. ]),
  14820. (this.radio = []);
  14821. document.scrollingElement.scrollTop = 0;
  14822. this.toolIndex = null;
  14823. // setTimeout(() => {
  14824. // let a = document.getElementById(i);
  14825. // if (a.offsetTop - 110 == 0) {
  14826. // window.scrollTo(0, 0);
  14827. // } else {
  14828. // window.scrollTo(0, a.offsetTop);
  14829. // }
  14830. // }, 0);
  14831. this.selectPz();
  14832. this.getHomeWork();
  14833. this.getCourseDetail();
  14834. },
  14835. get(i) {
  14836. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14837. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14838. return;
  14839. }
  14840. this.navList[i].isOpen = !this.navList[i].isOpen;
  14841. },
  14842. addQuestion() {
  14843. this.answerList.push({
  14844. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14845. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14846. });
  14847. let params = [
  14848. {
  14849. uid: this.userid,
  14850. cid: this.id,
  14851. stage: this.courseType,
  14852. task: this.taskCount,
  14853. tool: this.toolindex,
  14854. content: JSON.stringify(this.answerList),
  14855. type: 3,
  14856. },
  14857. ];
  14858. this.ajax
  14859. .post(this.$store.state.api + "addCourseWorks", params)
  14860. .then((res) => {
  14861. this.$message({
  14862. message: "提交成功",
  14863. type: "success",
  14864. });
  14865. this.answerList = [];
  14866. this.questionAnswer = "";
  14867. this.answerDialogVisible = false;
  14868. this.selectStudent();
  14869. this.selectSWorks();
  14870. this.selectSLook();
  14871. })
  14872. .catch((err) => {
  14873. this.$message.error("提交失败");
  14874. console.error(err);
  14875. });
  14876. },
  14877. addQuestionTeacher() {
  14878. this.answerList.push({
  14879. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14880. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14881. });
  14882. let params = [
  14883. {
  14884. uid: this.sStudent.userid,
  14885. cid: this.id,
  14886. stage: this.courseType,
  14887. task: this.taskCount,
  14888. tool: this.toolindex,
  14889. content: JSON.stringify(this.answerList),
  14890. type: 3,
  14891. ateacher: this.userid,
  14892. },
  14893. ];
  14894. this.ajax
  14895. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14896. .then((res) => {
  14897. this.$message({
  14898. message: "提交成功",
  14899. type: "success",
  14900. });
  14901. this.answerList = [];
  14902. this.questionAnswer = "";
  14903. this.answerDialogVisibleTeacher = false;
  14904. this.selectStudent();
  14905. this.selectSWorks();
  14906. this.selectSLook();
  14907. })
  14908. .catch((err) => {
  14909. this.$message.error("提交失败");
  14910. console.error(err);
  14911. });
  14912. },
  14913. refreshCourse() {
  14914. this.navList = [];
  14915. this.getCourseDetail(1);
  14916. },
  14917. setPz() {
  14918. if (this.ispzType == 4) {
  14919. this.ispzType = 0;
  14920. this.pzDialog = false;
  14921. return;
  14922. }
  14923. this.ispzType = 4;
  14924. this.pzDialog = true;
  14925. this.selectPz();
  14926. },
  14927. getCourseDetail(type, gindex) {
  14928. let loading;
  14929. if (type != 2 && type != 3) {
  14930. loading = this.$loading.service({
  14931. background: "rgba(255, 255, 255, 0.7)",
  14932. target: document.querySelector(".student_table"),
  14933. });
  14934. }
  14935. let params = {
  14936. courseId: this.id,
  14937. };
  14938. this.ajax
  14939. .get(this.$store.state.api + "selectCourseDetail3", params)
  14940. .then((res) => {
  14941. if (type != 2 && type != 3) {
  14942. loading.close();
  14943. if (
  14944. this.courseType >
  14945. JSON.parse(res.data[0][0].chapters).length - 1
  14946. ) {
  14947. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  14948. }
  14949. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  14950. .chapterInfo[0].taskJson;
  14951. var b = [
  14952. "AVI",
  14953. "NAVI",
  14954. "MPEG",
  14955. "ASF",
  14956. "MOV",
  14957. "WMV",
  14958. "3GP",
  14959. "RM",
  14960. "RMVB",
  14961. "FLV",
  14962. "F4V",
  14963. "H.264",
  14964. "H.265",
  14965. "REAL VIDEO",
  14966. "MKV",
  14967. "WebM",
  14968. "HDDVD",
  14969. "MP4",
  14970. "MPG",
  14971. "M4V",
  14972. "MGV",
  14973. "OGV",
  14974. "QTM",
  14975. "STR",
  14976. "AMC",
  14977. "DVX",
  14978. "EVO",
  14979. "DAT",
  14980. "OGG",
  14981. "OGM",
  14982. "MP3",
  14983. ];
  14984. let _chapterData = [];
  14985. for (var i = 0; i < a.length; i++) {
  14986. var c = a[i].chapterData;
  14987. this.vedio[i] = [];
  14988. this.textList[i] = [];
  14989. this.lineList[i] = [];
  14990. this.chapToolList[i] = [];
  14991. this.file[i] = [];
  14992. this.fileC[i] = [];
  14993. _chapterData[i] = c.filter((el) => {
  14994. return el.type != 12;
  14995. });
  14996. this.fileC[i] = c.filter((el) => {
  14997. return el.type == 12;
  14998. });
  14999. for (var j = 0; j < c.length; j++) {
  15000. if (c[j].type == 7) {
  15001. this.chapToolList[i].push(c[j]);
  15002. } else if (c[j].type == 8) {
  15003. this.lineList[i].push(c[j]);
  15004. } else if (c[j].type == 6) {
  15005. this.textList[i].push(c[j]);
  15006. } else {
  15007. if (
  15008. b.indexOf(
  15009. c[j].url
  15010. .split(".")
  15011. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15012. ) != -1
  15013. ) {
  15014. this.vedio[i].push(c[j]);
  15015. } else {
  15016. this.file[i].push(c[j]);
  15017. }
  15018. }
  15019. }
  15020. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15021. d.sources[0].src =
  15022. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15023. this.playerO[i] = d;
  15024. }
  15025. this.courseDetail = res.data[0][0];
  15026. this.tcid = this.arrayToArray(
  15027. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15028. this.tcid2 ? this.tcid2.split(",") : []
  15029. ).join(",");
  15030. console.log(this.tcid);
  15031. this.evalua = res.data[0][0].evaId;
  15032. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15033. this.courseType
  15034. ];
  15035. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15036. if (this.tcid && res.data[1].length) {
  15037. let _inviteA = [];
  15038. for (var ik = 0; ik < res.data[1].length; ik++) {
  15039. _inviteA.push({
  15040. cid: res.data[1][ik].classid,
  15041. ic: res.data[1][ik].code,
  15042. });
  15043. }
  15044. for (var ik = 0; ik < _inviteA.length; ik++) {
  15045. if (
  15046. this.arrayToArray(
  15047. _inviteA[ik].cid.split(","),
  15048. this.tcid.split(",")
  15049. ).length
  15050. ) {
  15051. this.inviteCode = _inviteA[ik].ic;
  15052. break;
  15053. }
  15054. }
  15055. }
  15056. for (var l = 0; l < this.chapInfoList.length; l++) {
  15057. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15058. for (var m = 0; m < w.length; m++) {
  15059. w[m].id = l + "-" + m;
  15060. }
  15061. }
  15062. if (
  15063. _chapterData[this.taskCount].length &&
  15064. _chapterData[this.taskCount][0].type == 2
  15065. ) {
  15066. this.showType = 0;
  15067. } else {
  15068. if (_chapterData[this.taskCount].length > 0) {
  15069. let _url = _chapterData[this.taskCount][0].url;
  15070. if (_chapterData[this.taskCount][0].type == 8) {
  15071. this.showType = 2;
  15072. if (
  15073. _url.indexOf("https://") == -1 &&
  15074. _url.indexOf("http://") == -1
  15075. ) {
  15076. _url = "https://" + _url;
  15077. }
  15078. this.pptImgUrl1 = _url;
  15079. } else if (_chapterData[this.taskCount][0].type == 3) {
  15080. if (
  15081. _url
  15082. .split(".")
  15083. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15084. ) {
  15085. this.showType = 3;
  15086. this.pptImgUrl1 = _url;
  15087. } else if (
  15088. this.isAssetTypeAnImage(
  15089. _url
  15090. .split(".")
  15091. [_url.split(".").length - 1].toLocaleLowerCase()
  15092. )
  15093. ) {
  15094. this.showType = 4;
  15095. this.pptImgUrl1 = _url;
  15096. } else {
  15097. this.showType = 2;
  15098. this.pptImgUrl1 =
  15099. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15100. _url;
  15101. }
  15102. } else if (_chapterData[this.taskCount][0].type == 13) {
  15103. this.showType = 4;
  15104. this.pptImgUrl1 = _url;
  15105. } else if (_chapterData[this.taskCount][0].type == 6) {
  15106. this.showType = 1;
  15107. this.text = this.textList[this.taskCount][0];
  15108. }
  15109. }
  15110. }
  15111. this.isClickNav = 0;
  15112. if (
  15113. !_chapterData[this.taskCount].length ||
  15114. _chapterData[this.taskCount][0].type == 12
  15115. ) {
  15116. this.isClickNav = "";
  15117. this.showType = "";
  15118. }
  15119. this.vChapterData = _chapterData;
  15120. if (
  15121. this.toolIndex == null &&
  15122. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15123. this.taskCount
  15124. ].toolChoose.length
  15125. ) {
  15126. this.toolIndex = 0;
  15127. this.tool =
  15128. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15129. this.taskCount
  15130. ].toolChoose[this.toolIndex];
  15131. }
  15132. } else if (type != 3) {
  15133. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15134. .chapterInfo[0].taskJson;
  15135. var b = [
  15136. "AVI",
  15137. "NAVI",
  15138. "MPEG",
  15139. "ASF",
  15140. "MOV",
  15141. "WMV",
  15142. "3GP",
  15143. "RM",
  15144. "RMVB",
  15145. "FLV",
  15146. "F4V",
  15147. "H.264",
  15148. "H.265",
  15149. "REAL VIDEO",
  15150. "MKV",
  15151. "WebM",
  15152. "HDDVD",
  15153. "MP4",
  15154. "MPG",
  15155. "M4V",
  15156. "MGV",
  15157. "OGV",
  15158. "QTM",
  15159. "STR",
  15160. "AMC",
  15161. "DVX",
  15162. "EVO",
  15163. "DAT",
  15164. "OGG",
  15165. "OGM",
  15166. "MP3",
  15167. ];
  15168. let _chapterData = [];
  15169. for (var i = 0; i < a.length; i++) {
  15170. var c = a[i].chapterData;
  15171. this.vedio[i] = [];
  15172. this.textList[i] = [];
  15173. this.lineList[i] = [];
  15174. this.chapToolList[i] = [];
  15175. this.file[i] = [];
  15176. this.fileC[i] = [];
  15177. _chapterData[i] = c.filter((el) => {
  15178. return el.type != 12;
  15179. });
  15180. this.fileC[i] = c.filter((el) => {
  15181. return el.type == 12;
  15182. });
  15183. for (var j = 0; j < c.length; j++) {
  15184. if (c[j].type == 7) {
  15185. this.chapToolList[i].push(c[j]);
  15186. } else if (c[j].type == 8) {
  15187. this.lineList[i].push(c[j]);
  15188. } else if (c[j].type == 6) {
  15189. this.textList[i].push(c[j]);
  15190. } else {
  15191. if (
  15192. b.indexOf(
  15193. c[j].url
  15194. .split(".")
  15195. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15196. ) != -1
  15197. ) {
  15198. this.vedio[i].push(c[j]);
  15199. } else {
  15200. this.file[i].push(c[j]);
  15201. }
  15202. }
  15203. }
  15204. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15205. d.sources[0].src =
  15206. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15207. this.playerO[i] = d;
  15208. }
  15209. if (
  15210. _chapterData[this.taskCount].length &&
  15211. _chapterData[this.taskCount][0].type == 2
  15212. ) {
  15213. this.showType = 0;
  15214. } else {
  15215. if (_chapterData[this.taskCount].length > 0) {
  15216. let _url = _chapterData[this.taskCount][0].url;
  15217. if (_chapterData[this.taskCount][0].type == 8) {
  15218. this.showType = 2;
  15219. if (
  15220. _url.indexOf("https://") == -1 &&
  15221. _url.indexOf("http://") == -1
  15222. ) {
  15223. _url = "https://" + _url;
  15224. }
  15225. this.pptImgUrl1 = _url;
  15226. } else if (_chapterData[this.taskCount][0].type == 3) {
  15227. if (
  15228. _url
  15229. .split(".")
  15230. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15231. ) {
  15232. this.showType = 3;
  15233. this.pptImgUrl1 = _url;
  15234. } else if (
  15235. this.isAssetTypeAnImage(
  15236. _url
  15237. .split(".")
  15238. [_url.split(".").length - 1].toLocaleLowerCase()
  15239. )
  15240. ) {
  15241. this.showType = 4;
  15242. this.pptImgUrl1 = _url;
  15243. } else {
  15244. this.showType = 2;
  15245. this.pptImgUrl1 =
  15246. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15247. _url;
  15248. }
  15249. } else if (_chapterData[this.taskCount][0].type == 13) {
  15250. this.showType = 4;
  15251. this.pptImgUrl1 = _url;
  15252. } else if (_chapterData[this.taskCount][0].type == 6) {
  15253. this.showType = 1;
  15254. this.text = this.textList[this.taskCount][0];
  15255. }
  15256. }
  15257. }
  15258. this.isClickNav = 0;
  15259. if (
  15260. !_chapterData[this.taskCount].length ||
  15261. _chapterData[this.taskCount][0].type == 12
  15262. ) {
  15263. this.isClickNav = "";
  15264. this.showType = "";
  15265. }
  15266. this.vChapterData = _chapterData;
  15267. this.$forceUpdate();
  15268. }
  15269. this.isUpdateToolDetail = false;
  15270. this.$nextTick(() => {
  15271. setTimeout(() => {
  15272. this.checkEva();
  15273. }, 1000);
  15274. });
  15275. let _this = this;
  15276. if (_this.timer) {
  15277. clearInterval(_this.timer);
  15278. _this.timer = null;
  15279. }
  15280. _this.selectSWorks(gindex);
  15281. _this.selectStudent();
  15282. _this.selectSLook();
  15283. _this.getPick();
  15284. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15285. _this.setCTask();
  15286. }
  15287. if (_this.dialogVisibleGroup) {
  15288. _this.groupJson =
  15289. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15290. _this.taskCount
  15291. ].toolChoose[_this.toolindex].groupJson;
  15292. }
  15293. _this.timer = setInterval(function () {
  15294. if (_this.tcid) {
  15295. _this.getCourseGroup(gindex);
  15296. } else {
  15297. _this.selectSWorks(gindex);
  15298. }
  15299. _this.selectStudent();
  15300. _this.selectSLook();
  15301. _this.getPick();
  15302. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15303. _this.setCTask();
  15304. }
  15305. if (_this.dialogVisibleGroup) {
  15306. _this.groupJson =
  15307. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15308. _this.taskCount
  15309. ].toolChoose[_this.toolindex].groupJson;
  15310. }
  15311. if (_this.tType == 4 || _this.ispzType == 4) {
  15312. _this.selectPz();
  15313. }
  15314. }, 5000);
  15315. })
  15316. .catch((err) => {
  15317. loading.close();
  15318. console.error(err);
  15319. });
  15320. },
  15321. getCourseGroup(gindex) {
  15322. let params = {
  15323. cid: this.id,
  15324. classid: this.tcid ? this.tcid : "1",
  15325. };
  15326. this.ajax
  15327. .get(this.$store.state.api + "getCourseGroup", params)
  15328. .then((res) => {
  15329. if (res.data && res.data[0].length) {
  15330. if (!this.isGroup) {
  15331. let courseGroup = JSON.parse(res.data[0][0].group);
  15332. courseGroup.group = courseGroup.group.filter((el) => {
  15333. el.works = [];
  15334. return el;
  15335. });
  15336. this.courseGroup = courseGroup;
  15337. let groupPerson = res.data[1];
  15338. let group = JSON.parse(res.data[0][0].group).group;
  15339. let courseGroupStudent = {};
  15340. let courseGroupStudentUid = {};
  15341. for (var i = 0; i < group.length; i++) {
  15342. courseGroupStudent[group[i].id] = [];
  15343. courseGroupStudentUid[group[i].id] = [];
  15344. for (var j = 0; j < groupPerson.length; j++) {
  15345. if (groupPerson[j].groupCid == group[i].id) {
  15346. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15347. courseGroupStudentUid[group[i].id].push(
  15348. groupPerson[j].userid
  15349. );
  15350. }
  15351. }
  15352. }
  15353. this.courseGroupStudent = courseGroupStudent;
  15354. this.courseGroupStudentUid = courseGroupStudentUid;
  15355. }
  15356. this.isGroup = true;
  15357. this.selectSWorks(gindex);
  15358. } else {
  15359. this.selectSWorks(gindex);
  15360. this.isGroup = false;
  15361. }
  15362. })
  15363. .catch((err) => {
  15364. // this.$message.error("网络不佳");
  15365. console.error(err);
  15366. });
  15367. },
  15368. setOperationTime() {
  15369. let _this = this;
  15370. if (_this.opertimer) {
  15371. clearInterval(_this.opertimer);
  15372. _this.opertimer = null;
  15373. }
  15374. _this.opertimer = setInterval(() => {
  15375. _this.setoTime("600");
  15376. }, 600000);
  15377. },
  15378. setoTime(time) {
  15379. let params = [
  15380. {
  15381. uid: this.userid,
  15382. cid: this.id,
  15383. type: "2",
  15384. time: time,
  15385. },
  15386. ];
  15387. this.ajax
  15388. .post(this.$store.state.api + "addOperationTimeT2", params)
  15389. .then((res) => {})
  15390. .catch((err) => {
  15391. console.error(err);
  15392. });
  15393. },
  15394. addPz(type, content) {
  15395. if (type == "1" && this.pzConText == "") {
  15396. this.$message.error("批注不能为空!");
  15397. return;
  15398. }
  15399. let params = [
  15400. {
  15401. cid: this.id,
  15402. uid: this.userid,
  15403. s: this.courseType,
  15404. t: this.taskCount,
  15405. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15406. type: type,
  15407. },
  15408. ];
  15409. this.ajax
  15410. .post(this.$store.state.api + "addPz2", params)
  15411. .then((res) => {
  15412. this.$message({
  15413. message: "添加成功",
  15414. type: "success",
  15415. });
  15416. this.pzConText = "";
  15417. this.addPzDialog = false;
  15418. this.selectPz();
  15419. })
  15420. .catch((err) => {
  15421. this.$message.error("添加失败");
  15422. console.error(err);
  15423. });
  15424. },
  15425. deletePz(id) {
  15426. this.$confirm("确定删除此批注吗?", "提示", {
  15427. confirmButtonText: "确定",
  15428. cancelButtonText: "取消",
  15429. type: "warning",
  15430. })
  15431. .then(() => {
  15432. let params = [
  15433. {
  15434. id: id,
  15435. },
  15436. ];
  15437. this.ajax
  15438. .post(this.$store.state.api + "deletePz", params)
  15439. .then((res) => {
  15440. this.$message({
  15441. message: "删除成功",
  15442. type: "success",
  15443. });
  15444. this.selectPz();
  15445. })
  15446. .catch((err) => {
  15447. this.$message.error("网络异常");
  15448. console.error(err);
  15449. });
  15450. })
  15451. .catch(() => {});
  15452. },
  15453. selectPz() {
  15454. let params = {
  15455. cid: this.id,
  15456. s: this.courseType,
  15457. t: this.taskCount,
  15458. };
  15459. this.ajax
  15460. .get(this.$store.state.api + "selectPzList", params)
  15461. .then((res) => {
  15462. this.pzList = res.data[0];
  15463. })
  15464. .catch((err) => {
  15465. console.error(err);
  15466. });
  15467. },
  15468. updateSLook() {
  15469. let params = {
  15470. sopen: this.sIsOpen == false ? 1 : 2,
  15471. cid: this.id,
  15472. };
  15473. this.ajax
  15474. .get(this.$store.state.api + "updateCourseSLook", params)
  15475. .then((res) => {
  15476. if (this.sIsOpen == true) {
  15477. this.$message({
  15478. message: "权限设置成功",
  15479. type: "success",
  15480. });
  15481. } else {
  15482. this.$message({
  15483. message: "权限关闭成功",
  15484. type: "success",
  15485. });
  15486. }
  15487. })
  15488. .catch((err) => {
  15489. console.error(err);
  15490. });
  15491. },
  15492. updateFollow() {
  15493. let params = [
  15494. {
  15495. sopen: this.IsFollow == false ? 1 : 2,
  15496. cid: this.id,
  15497. },
  15498. ];
  15499. this.ajax
  15500. .post(this.$store.state.api + "updateCourseFollow", params)
  15501. .then((res) => {
  15502. if (this.IsFollow == true) {
  15503. this.$message({
  15504. message: "开启成功",
  15505. type: "success",
  15506. });
  15507. } else {
  15508. this.$message({
  15509. message: "关闭成功",
  15510. type: "success",
  15511. });
  15512. }
  15513. this.setCTask();
  15514. })
  15515. .catch((err) => {
  15516. console.error(err);
  15517. });
  15518. },
  15519. setCTask() {
  15520. let params = [
  15521. {
  15522. sopen: this.courseType + "-" + this.taskCount,
  15523. cid: this.id,
  15524. },
  15525. ];
  15526. this.ajax
  15527. .post(this.$store.state.api + "updateCourseFollowC", params)
  15528. .then((res) => {})
  15529. .catch((err) => {
  15530. console.error(err);
  15531. });
  15532. },
  15533. updateLookOpen() {
  15534. let params = [
  15535. {
  15536. sopen: this.IsLookOpen == false ? 1 : 2,
  15537. cid: this.id,
  15538. },
  15539. ];
  15540. this.ajax
  15541. .post(this.$store.state.api + "updateCourseLookOpen", params)
  15542. .then((res) => {
  15543. if (this.IsLookOpen == true) {
  15544. // if (this.courseType != 0 && this.taskCount != 0) {
  15545. // this.openTask(0, 0, "0-0");
  15546. // }
  15547. this.$message({
  15548. message: "权限设置成功",
  15549. type: "success",
  15550. });
  15551. } else {
  15552. this.$message({
  15553. message: "权限关闭成功",
  15554. type: "success",
  15555. });
  15556. }
  15557. this.getCourseState(2);
  15558. })
  15559. .catch((err) => {
  15560. console.error(err);
  15561. });
  15562. },
  15563. selectSLook() {
  15564. let params = {
  15565. cid: this.id,
  15566. };
  15567. this.ajax
  15568. .get(this.$store.state.api + "selectCourseSLook", params)
  15569. .then((res) => {
  15570. // this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  15571. this.sIsOpen = true;
  15572. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  15573. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  15574. if (!this.IsLookOpen) {
  15575. this.setNavList();
  15576. } else {
  15577. this.getCourseState(1);
  15578. }
  15579. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15580. let _followC = res.data[0][0].followC.split("-");
  15581. if (
  15582. this.courseType != _followC[0] ||
  15583. this.taskCount != _followC[1]
  15584. ) {
  15585. this.navList[this.courseType].isOpen = false;
  15586. this.courseType = _followC[0];
  15587. this.navList[this.courseType].isOpen = true;
  15588. this.taskCount = parseInt(_followC[1]);
  15589. this.navId = res.data[0][0].followC;
  15590. this.getCourseDetail();
  15591. }
  15592. }
  15593. })
  15594. .catch((err) => {
  15595. console.error(err);
  15596. });
  15597. },
  15598. setNavList() {
  15599. if (this.navList.length == 0) {
  15600. this.navList = [];
  15601. for (var l = 0; l < this.chapInfoList.length; l++) {
  15602. var q = this.chapInfoList[l].dyName;
  15603. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15604. var e;
  15605. this.navList.push({
  15606. dyName: q,
  15607. isOpen: l === 0 ? true : false,
  15608. task: [],
  15609. });
  15610. for (var r = 0; r < w.length; r++) {
  15611. e = w[r].task;
  15612. if (this.chapInfoList[l].easy == 1) {
  15613. this.navList[l].task.push({
  15614. taskName: q,
  15615. id: l + "-" + r,
  15616. isLook: w[r].isLook,
  15617. });
  15618. } else {
  15619. this.navList[l].task.push({
  15620. taskName: e,
  15621. id: l + "-" + r,
  15622. isLook: w[r].isLook,
  15623. });
  15624. }
  15625. // this.navId = this.navId ? this.navId : l + "-" + r;
  15626. // this.navId = l + "-" + r;
  15627. }
  15628. }
  15629. this.navList[0].isOpen = false;
  15630. this.navList[this.courseType].isOpen = true;
  15631. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15632. } else {
  15633. this.setNavList2();
  15634. }
  15635. },
  15636. setNavList2() {
  15637. for (var l = 0; l < this.chapInfoList.length; l++) {
  15638. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15639. for (var r = 0; r < w.length; r++) {
  15640. this.navList[l].task[r].isLook = w[r].isLook;
  15641. }
  15642. }
  15643. if (
  15644. this.IsLookOpen &&
  15645. !this.navList[this.courseType].task[this.taskCount].isLook
  15646. ) {
  15647. this.openTask(0, 0, "0-0");
  15648. }
  15649. this.$forceUpdate();
  15650. },
  15651. getCourseState(type) {
  15652. let params = {
  15653. cid: this.id,
  15654. };
  15655. this.ajax
  15656. .get(this.$store.state.api + "getCourseState", params)
  15657. .then((res) => {
  15658. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  15659. this.chapInfoList = JSON.parse(res.data[0][0].state);
  15660. this.setNavList();
  15661. this.$forceUpdate();
  15662. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  15663. this.addCourseState(2);
  15664. } else {
  15665. this.addCourseState(1);
  15666. }
  15667. })
  15668. .catch((err) => {
  15669. console.error(err);
  15670. });
  15671. },
  15672. addCourseState(type) {
  15673. let _state = this.chapInfoList;
  15674. // this.courseType this.taskCount
  15675. if (type == 1 || type == 2) {
  15676. for (var i = 0; i < _state.length; i++) {
  15677. let el = _state[i].chapterInfo[0].taskJson;
  15678. for (var j = 0; j < el.length; j++) {
  15679. // if (i == 0 && j == 0) {
  15680. // el[j].isLook = true;
  15681. // } else {
  15682. // el[j].isLook = false;
  15683. // }
  15684. if (
  15685. this.courseType > i ||
  15686. (this.courseType == i && this.taskCount + 1 > j)
  15687. ) {
  15688. el[j].isLook = true;
  15689. } else {
  15690. el[j].isLook = false;
  15691. }
  15692. }
  15693. }
  15694. }
  15695. let params = [
  15696. {
  15697. cid: this.id,
  15698. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  15699. },
  15700. ];
  15701. this.ajax
  15702. .post(
  15703. this.$store.state.api +
  15704. (type == 1 ? "addCourseState" : "updateCourseSate"),
  15705. params
  15706. )
  15707. .then((res) => {
  15708. if (this.IsLookOpen) {
  15709. this.setNavList();
  15710. }
  15711. if (type == 3 && type == 2) {
  15712. this.getCourseState(1);
  15713. }
  15714. })
  15715. .catch((err) => {
  15716. console.error(err);
  15717. });
  15718. },
  15719. getHomeWork() {
  15720. let params = {
  15721. cid: this.id,
  15722. stage: this.courseType,
  15723. task: this.taskCount,
  15724. uid: this.userid,
  15725. };
  15726. this.ajax
  15727. .get(this.$store.state.api + "selectWork", params)
  15728. .then((res) => {
  15729. if (res.data[0].length > 0) {
  15730. this.studyJuri = JSON.parse(res.data[0][0].content);
  15731. this.isNoHomeWork = true;
  15732. }
  15733. })
  15734. .catch((err) => {
  15735. console.error(err);
  15736. });
  15737. },
  15738. isAssetTypeAnImage(ext) {
  15739. return (
  15740. [
  15741. "png",
  15742. "jpg",
  15743. "jpeg",
  15744. "bmp",
  15745. "gif",
  15746. "webp",
  15747. "psd",
  15748. "svg",
  15749. "tiff",
  15750. ].indexOf(ext) !== -1
  15751. );
  15752. },
  15753. switchVideo(media) {
  15754. this.playerO = {};
  15755. this.playerOptions.poster = "";
  15756. this.playerOptions.sources[0].src = media;
  15757. this.playerO = this.playerOptions;
  15758. },
  15759. onPlayerPlay() {},
  15760. lookVedio(u, i) {
  15761. this.isClickNav = "";
  15762. // this.playerOptions.sources[0].src = u;
  15763. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15764. d.sources[0].src = u;
  15765. this.playerO[this.taskCount] = d;
  15766. this.showType = 0;
  15767. // this.isClickNav = "video" + i;
  15768. this.isClickNav = i;
  15769. this.$forceUpdate();
  15770. },
  15771. lookText(i, t) {
  15772. this.isClickNav = "";
  15773. // this.text = this.textList[i][t];
  15774. this.text = this.vChapterData[i][t];
  15775. // this.dialogVisible1 = true;
  15776. this.showType = 1;
  15777. // this.isClickNav = "text" + t;
  15778. this.isClickNav = t;
  15779. },
  15780. lookTools(i, t) {
  15781. this.chapTools = this.chapToolList[i][t];
  15782. this.dialogVisible2 = true;
  15783. },
  15784. openFile(f) {
  15785. this.pptImgUrl = "";
  15786. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15787. if (
  15788. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  15789. -1
  15790. ) {
  15791. this.pptImgUrl =
  15792. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  15793. this.showPDF = false;
  15794. this.dialogVisible3 = true;
  15795. } else if (
  15796. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15797. ) {
  15798. this.pptImgUrl = f;
  15799. this.showPDF = true;
  15800. this.dialogVisible3 = true;
  15801. }
  15802. },
  15803. openTable(f) {
  15804. this.tableJson = JSON.parse(f.works);
  15805. this.$forceUpdate();
  15806. this.dialogVisibleTable2 = true;
  15807. },
  15808. openWord(f) {
  15809. this.tableJson = JSON.parse(f.works);
  15810. this.$forceUpdate();
  15811. this.dialogVisibleTable3 = true;
  15812. },
  15813. doUrl(url, i) {
  15814. this.isClickNav = "";
  15815. this.pptImgUrl1 = "";
  15816. this.showType = 2;
  15817. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  15818. url = "https://" + url;
  15819. }
  15820. this.pptImgUrl1 = url;
  15821. // this.isClickNav = "line" + i;
  15822. this.isClickNav = i;
  15823. },
  15824. checkPhoto(f, i) {
  15825. this.showType = 4;
  15826. this.pptImgUrl1 = f.url;
  15827. this.isClickNav = i;
  15828. this.$forceUpdate();
  15829. },
  15830. downFile(f, i) {
  15831. this.isClickNav = "";
  15832. this.pptImgUrl1 = "";
  15833. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  15834. if (
  15835. a.indexOf(
  15836. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  15837. ) != -1
  15838. ) {
  15839. this.pptImgUrl1 =
  15840. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  15841. // this.dialogVisible3 = true;
  15842. this.showType = 2;
  15843. } else if (
  15844. this.isAssetTypeAnImage(
  15845. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  15846. )
  15847. ) {
  15848. this.showType = 4;
  15849. this.pptImgUrl1 = f.url;
  15850. } else if (
  15851. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  15852. "PDF"
  15853. ) {
  15854. this.pptImgUrl1 = f.url;
  15855. // this.dialogVisible3 = true;
  15856. this.showType = 3;
  15857. } else {
  15858. window.open(this.file[i].url);
  15859. }
  15860. // this.isClickNav = "word" + i;
  15861. this.isClickNav = i;
  15862. },
  15863. downFileList(i) {
  15864. window.open(this.noImgList[i].url);
  15865. },
  15866. openAddWork() {
  15867. this.dialogVisible = true;
  15868. },
  15869. addBzWorks() {
  15870. let params = [
  15871. {
  15872. uid: this.userid,
  15873. cid: this.id,
  15874. stage: this.courseType,
  15875. task: this.taskCount,
  15876. tool: this.toolindex,
  15877. content: JSON.stringify(this.eScore),
  15878. type: 6,
  15879. },
  15880. ];
  15881. this.ajax
  15882. .post(this.$store.state.api + "addCourseWorks", params)
  15883. .then((res) => {
  15884. this.$message({
  15885. message: "提交成功",
  15886. type: "success",
  15887. });
  15888. this.eScore = { eBzText: "", eStar: [] };
  15889. this.studentEvalDialogVisible = false;
  15890. this.selectSWorks();
  15891. })
  15892. .catch((err) => {
  15893. this.$message.error("提交失败");
  15894. console.error(err);
  15895. });
  15896. },
  15897. addBzWorksTeacher() {
  15898. let params = [
  15899. {
  15900. uid: this.sStudent.userid,
  15901. cid: this.id,
  15902. stage: this.courseType,
  15903. task: this.taskCount,
  15904. tool: this.toolindex,
  15905. content: JSON.stringify(this.eScore),
  15906. type: 6,
  15907. },
  15908. ];
  15909. this.ajax
  15910. .post(this.$store.state.api + "addCourseWorks", params)
  15911. .then((res) => {
  15912. this.$message({
  15913. message: "提交成功",
  15914. type: "success",
  15915. });
  15916. this.eScore = { eBzText: "", eStar: [] };
  15917. this.studentEvalDialogVisibleTeacher = false;
  15918. this.selectSWorks();
  15919. })
  15920. .catch((err) => {
  15921. this.$message.error("提交失败");
  15922. console.error(err);
  15923. });
  15924. },
  15925. addStudentAsk() {
  15926. if (!this.radio.length) {
  15927. this.$message.error("请选择选项");
  15928. return;
  15929. }
  15930. for (var i = 0; i < this.askJson.askCount; i++) {
  15931. if (
  15932. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15933. (this.radio[i] !== 0 && !this.radio[i])
  15934. ) {
  15935. this.$message.error("请选择选项");
  15936. return;
  15937. }
  15938. }
  15939. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15940. let params = [
  15941. {
  15942. uid: this.userid,
  15943. cid: this.id,
  15944. stage: this.courseType,
  15945. task: this.taskCount,
  15946. tool: this.toolindex,
  15947. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15948. type: 2,
  15949. },
  15950. ];
  15951. this.ajax
  15952. .post(this.$store.state.api + "addCourseWorks", params)
  15953. .then((res) => {
  15954. this.$message({
  15955. message: "提交成功",
  15956. type: "success",
  15957. });
  15958. this.askList = [];
  15959. this.dialogVisible5 = false;
  15960. this.selectStudent();
  15961. this.selectSWorks();
  15962. this.selectSLook();
  15963. })
  15964. .catch((err) => {
  15965. this.$message.error("提交失败");
  15966. console.error(err);
  15967. });
  15968. },
  15969. addStudentAskTeacher() {
  15970. if (!this.radio.length) {
  15971. this.$message.error("请选择选项");
  15972. return;
  15973. }
  15974. for (var i = 0; i < this.askJson.askCount; i++) {
  15975. if (
  15976. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15977. (this.radio[i] !== 0 && !this.radio[i])
  15978. ) {
  15979. this.$message.error("请选择选项");
  15980. return;
  15981. }
  15982. }
  15983. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15984. let params = [
  15985. {
  15986. uid: this.sStudent.userid,
  15987. cid: this.id,
  15988. stage: this.courseType,
  15989. task: this.taskCount,
  15990. tool: this.toolindex,
  15991. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15992. type: 2,
  15993. },
  15994. ];
  15995. this.ajax
  15996. .post(this.$store.state.api + "addCourseWorks", params)
  15997. .then((res) => {
  15998. this.$message({
  15999. message: "提交成功",
  16000. type: "success",
  16001. });
  16002. this.askList = [];
  16003. this.dialogVisible5Teacher = false;
  16004. this.selectStudent();
  16005. this.selectSWorks();
  16006. this.selectSLook();
  16007. })
  16008. .catch((err) => {
  16009. this.$message.error("提交失败");
  16010. console.error(err);
  16011. });
  16012. },
  16013. addStudentTest() {
  16014. if (!this.radio.length) {
  16015. this.$message.error("请选择选项");
  16016. return;
  16017. }
  16018. for (var i = 0; i < this.testJson.testCount; i++) {
  16019. if (
  16020. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16021. (this.radio[i] !== 0 && !this.radio[i])
  16022. ) {
  16023. this.$message.error("请选择选项");
  16024. return;
  16025. }
  16026. }
  16027. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16028. let params = [
  16029. {
  16030. uid: this.userid,
  16031. cid: this.id,
  16032. stage: this.courseType,
  16033. task: this.taskCount,
  16034. tool: this.toolindex,
  16035. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16036. type: 8,
  16037. },
  16038. ];
  16039. this.ajax
  16040. .post(this.$store.state.api + "addCourseWorks", params)
  16041. .then((res) => {
  16042. this.$message({
  16043. message: "提交成功",
  16044. type: "success",
  16045. });
  16046. this.askList = [];
  16047. this.dialogVisibleChoice = false;
  16048. this.selectStudent();
  16049. this.selectSWorks();
  16050. this.selectSLook();
  16051. })
  16052. .catch((err) => {
  16053. this.$message.error("提交失败");
  16054. console.error(err);
  16055. });
  16056. },
  16057. addStudentTestTeacher() {
  16058. if (!this.radio.length) {
  16059. this.$message.error("请选择选项");
  16060. return;
  16061. }
  16062. for (var i = 0; i < this.testJson.testCount; i++) {
  16063. if (
  16064. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16065. (this.radio[i] !== 0 && !this.radio[i])
  16066. ) {
  16067. this.$message.error("请选择选项");
  16068. return;
  16069. }
  16070. }
  16071. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16072. let params = [
  16073. {
  16074. uid: this.sStudent.userid,
  16075. cid: this.id,
  16076. stage: this.courseType,
  16077. task: this.taskCount,
  16078. tool: this.toolindex,
  16079. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16080. type: 8,
  16081. },
  16082. ];
  16083. this.ajax
  16084. .post(this.$store.state.api + "addCourseWorks", params)
  16085. .then((res) => {
  16086. this.$message({
  16087. message: "提交成功",
  16088. type: "success",
  16089. });
  16090. this.askList = [];
  16091. this.dialogVisibleChoiceTeacher = false;
  16092. this.selectStudent();
  16093. this.selectSWorks();
  16094. this.selectSLook();
  16095. })
  16096. .catch((err) => {
  16097. this.$message.error("提交失败");
  16098. console.error(err);
  16099. });
  16100. },
  16101. addWork() {
  16102. if (this.studyJuri[0].content == "") {
  16103. this.$message.error("请将信息填写完整");
  16104. return;
  16105. } else if (this.studyJuri[0].cover.length == 0) {
  16106. this.$message.error("请将信息填写完整");
  16107. return;
  16108. } else if (this.studyJuri[0].upVedio.length == 0) {
  16109. this.$message.error("请将信息填写完整");
  16110. return;
  16111. }
  16112. if (this.isNoHomeWork) {
  16113. this.$confirm(
  16114. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16115. "提示",
  16116. {
  16117. confirmButtonText: "确定",
  16118. cancelButtonText: "取消",
  16119. type: "warning",
  16120. }
  16121. )
  16122. .then(() => {
  16123. let params = [
  16124. {
  16125. uid: this.userid,
  16126. cid: this.id,
  16127. stage: this.courseType,
  16128. task: this.taskCount,
  16129. content: JSON.stringify(this.studyJuri),
  16130. },
  16131. ];
  16132. this.ajax
  16133. .post(this.$store.state.api + "addWorks", params)
  16134. .then((res) => {
  16135. this.$message({
  16136. message: "提交成功",
  16137. type: "success",
  16138. });
  16139. this.isNoHomeWork = true;
  16140. this.dialogVisible = false;
  16141. })
  16142. .catch((err) => {
  16143. this.$message.error("提交失败");
  16144. console.error(err);
  16145. });
  16146. })
  16147. .catch(() => {});
  16148. } else {
  16149. let params = [
  16150. {
  16151. uid: this.userid,
  16152. cid: this.id,
  16153. stage: this.courseType,
  16154. task: this.taskCount,
  16155. content: JSON.stringify(this.studyJuri),
  16156. },
  16157. ];
  16158. this.ajax
  16159. .post(this.$store.state.api + "addWorks", params)
  16160. .then((res) => {
  16161. this.$message({
  16162. message: "提交成功",
  16163. type: "success",
  16164. });
  16165. this.isNoHomeWork = true;
  16166. this.dialogVisible = false;
  16167. })
  16168. .catch((err) => {
  16169. this.$message.error("提交失败");
  16170. console.error(err);
  16171. });
  16172. }
  16173. },
  16174. selectCount() {
  16175. let params = {
  16176. cid: this.id,
  16177. chid: this.courseType,
  16178. uid: this.userid,
  16179. };
  16180. this.ajax
  16181. .get(this.$store.state.api + "selectToolsCount", params)
  16182. .then((res) => {
  16183. for (var i = 0; i < res.data[0].length; i++) {
  16184. if (res.data[0][i].tools == 1) {
  16185. this.wbCount = res.data[0][i].count;
  16186. } else if (res.data[0][i].tools == 2) {
  16187. this.wordCount = res.data[0][i].count;
  16188. } else if (res.data[0][i].tools == 3) {
  16189. this.mindCount = res.data[0][i].count;
  16190. } else if (res.data[0][i].tools == 4) {
  16191. this.askCount = res.data[0][i].count;
  16192. } else if (res.data[0][i].tools == 6) {
  16193. this.noteCount = res.data[0][i].count;
  16194. } else if (res.data[0][i].tools == 7) {
  16195. this.mindNetWorkCount = res.data[0][i].count;
  16196. } else if (res.data[0][i].tools == 8) {
  16197. this.libraryCount = res.data[0][i].count;
  16198. } else if (res.data[0][i].tools == 16) {
  16199. this.workCount = res.data[0][i].count;
  16200. } else if (res.data[0][i].tools == 10) {
  16201. this.timeCount = res.data[0][i].count;
  16202. } else if (res.data[0][i].tools == 15) {
  16203. this.answerCount = res.data[0][i].count;
  16204. } else if (res.data[0][i].tools == 18) {
  16205. this.trainCount = res.data[0][i].count;
  16206. }
  16207. }
  16208. })
  16209. .catch((err) => {
  16210. console.error(err);
  16211. });
  16212. },
  16213. openTools(t, i, index, c, sName) {
  16214. var z = JSON.parse(c);
  16215. this.noteName = sName;
  16216. if (t == 4) {
  16217. this.radio = [];
  16218. this.isAnswer = false;
  16219. let b = z[0].anwer;
  16220. this.radio = b;
  16221. this.askJson = z[0].askJson;
  16222. this.isAnswer = true;
  16223. this.dialogVisible5 = true;
  16224. } else if (t == 45) {
  16225. this.radio = [];
  16226. this.isAnswer = false;
  16227. let b = z[0].anwer;
  16228. this.radio = b;
  16229. this.testJson = z[0].testJson;
  16230. this.isAnswer = true;
  16231. this.dialogVisibleChoice = true;
  16232. }
  16233. // else if (t == 15) {
  16234. // this.answerQ = "";
  16235. // this.questionAnswer = "";
  16236. // this.answerQ = z[0].answerTitle;
  16237. // this.questionAnswer = z[0].answer;
  16238. // this.answerDialogVisible = true;
  16239. // }
  16240. },
  16241. fastText(p, t) {
  16242. if (t == 1) {
  16243. this.commentText += p;
  16244. } else {
  16245. this.eScore.eBzText += p;
  16246. }
  16247. },
  16248. addTools(t, i, index) {
  16249. var a = 0;
  16250. // this.taskCount = index;
  16251. this.toolindex = i;
  16252. if (t == 1) {
  16253. if (this.wbCount > 0) {
  16254. this.updateCount(this.wbCount, t);
  16255. } else {
  16256. this.wbCount++;
  16257. a = this.wbCount;
  16258. this.toolsCount(a, t);
  16259. }
  16260. window.parent.postMessage(
  16261. {
  16262. tools: "1",
  16263. cid: this.id,
  16264. stage: this.courseType,
  16265. task: this.taskCount,
  16266. tool: i,
  16267. },
  16268. "*"
  16269. );
  16270. } else if (t == 2) {
  16271. if (this.wordCount > 0) {
  16272. this.updateCount(this.wordCount, t);
  16273. } else {
  16274. this.wordCount++;
  16275. a = this.wordCount;
  16276. this.toolsCount(a, t);
  16277. }
  16278. window.parent.postMessage({ tools: "2" }, "*");
  16279. } else if (t == 3) {
  16280. if (this.mindCount > 0) {
  16281. this.updateCount(this.mindCount, t);
  16282. } else {
  16283. this.mindCount++;
  16284. a = this.mindCount;
  16285. this.toolsCount(a, t);
  16286. }
  16287. window.parent.postMessage(
  16288. {
  16289. tools: "3",
  16290. cid: this.id,
  16291. stage: this.courseType,
  16292. task: this.taskCount,
  16293. tool: i,
  16294. },
  16295. "*"
  16296. );
  16297. } else if (t == 4) {
  16298. this.radio = [];
  16299. this.noteName = "";
  16300. this.isAnswer = false;
  16301. if (this.askCount > 0) {
  16302. this.updateCount(this.askCount, t);
  16303. } else {
  16304. this.askCount++;
  16305. a = this.askCount;
  16306. this.toolsCount(a, t);
  16307. }
  16308. this.askJson.askJson =
  16309. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16310. index
  16311. ].toolChoose[i].askJson;
  16312. this.askJson.askTitle =
  16313. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16314. index
  16315. ].toolChoose[i].askTitle;
  16316. this.askJson.askCount =
  16317. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16318. index
  16319. ].toolChoose[i].askCount;
  16320. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16321. if (this.askJson.askJson[k].type == "2") {
  16322. this.radio.push([]);
  16323. } else {
  16324. this.radio.push("");
  16325. }
  16326. }
  16327. this.dialogVisible5 = true;
  16328. // window.parent.postMessage({ tools: "4" }, "*");
  16329. } else if (t == 45) {
  16330. this.noteName = "";
  16331. this.radio = [];
  16332. this.isAnswer = false;
  16333. if (this.askCount > 0) {
  16334. this.updateCount(this.askCount, t);
  16335. } else {
  16336. this.askCount++;
  16337. a = this.askCount;
  16338. this.toolsCount(a, t);
  16339. }
  16340. this.testJson =
  16341. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16342. index
  16343. ].toolChoose[i].testJson;
  16344. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16345. if (this.testJson.testJson[k].type == "2") {
  16346. this.radio.push([]);
  16347. } else {
  16348. this.radio.push("");
  16349. }
  16350. }
  16351. this.dialogVisibleChoice = true;
  16352. // window.parent.postMessage({ tools: "4" }, "*");
  16353. } else if (t == 5) {
  16354. if (this.scoreCount > 0) {
  16355. this.updateCount(this.scoreCount, t);
  16356. } else {
  16357. this.scoreCount++;
  16358. a = this.scoreCount;
  16359. this.toolsCount(a, t);
  16360. }
  16361. this.dialogVisible4 = true;
  16362. // window.parent.postMessage({ tools: "5" }, "*");
  16363. } else if (t == 6) {
  16364. if (this.noteCount > 0) {
  16365. this.updateCount(this.noteCount, t);
  16366. } else {
  16367. this.noteCount++;
  16368. a = this.noteCount;
  16369. this.toolsCount(a, t);
  16370. }
  16371. window.parent.postMessage(
  16372. {
  16373. tools: "6",
  16374. cid: this.id,
  16375. stage: this.courseType,
  16376. task: this.taskCount,
  16377. tool: i,
  16378. },
  16379. "*"
  16380. );
  16381. } else if (t == 7) {
  16382. if (this.mindNetWorkCount > 0) {
  16383. this.updateCount(this.mindNetWorkCount, t);
  16384. } else {
  16385. this.mindNetWorkCount++;
  16386. a = this.mindNetWorkCount;
  16387. this.toolsCount(a, t);
  16388. }
  16389. window.parent.postMessage(
  16390. {
  16391. tools: "7",
  16392. cid: this.id,
  16393. stage: this.courseType,
  16394. task: this.taskCount,
  16395. tool: i,
  16396. },
  16397. "*"
  16398. );
  16399. } else if (t == 16) {
  16400. if (this.workCount > 0) {
  16401. this.updateCount(this.workCount, t);
  16402. } else {
  16403. this.workCount++;
  16404. a = this.workCount;
  16405. this.toolsCount(a, t);
  16406. }
  16407. this.dialogVisible = true;
  16408. } else if (t == 50) {
  16409. if (this.tType == 2) {
  16410. this.$message.error("不支持学生使用");
  16411. return;
  16412. }
  16413. this.plworkFile = [];
  16414. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16415. if (!this.uploadCid) {
  16416. this.$message.error(
  16417. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16418. );
  16419. return;
  16420. }
  16421. this.selectUploadStudent(2);
  16422. } else if (t == 8) {
  16423. if (this.libraryCount > 0) {
  16424. this.updateCount(this.libraryCount, t);
  16425. } else {
  16426. this.libraryCount++;
  16427. a = this.libraryCount;
  16428. this.toolsCount(a, t);
  16429. }
  16430. window.parent.postMessage({ tools: "8" }, "*");
  16431. } else if (t == 17) {
  16432. if (this.libraryCount > 0) {
  16433. this.updateCount(this.libraryCount, t);
  16434. } else {
  16435. this.libraryCount++;
  16436. a = this.libraryCount;
  16437. this.toolsCount(a, t);
  16438. }
  16439. window.parent.postMessage({ tools: "17" }, "*");
  16440. } else if (t == 18) {
  16441. if (this.trainCount > 0) {
  16442. this.updateCount(this.trainCount, t);
  16443. } else {
  16444. this.trainCount++;
  16445. a = this.trainCount;
  16446. this.toolsCount(a, t);
  16447. }
  16448. window.parent.postMessage({ tools: "18" }, "*");
  16449. } else if (t == 10) {
  16450. if (this.timeCount > 0) {
  16451. this.updateCount(this.timeCount, t);
  16452. } else {
  16453. this.timeCount++;
  16454. a = this.timeCount;
  16455. this.toolsCount(a, t);
  16456. }
  16457. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  16458. .taskJson[index].toolChoose[i].preTime
  16459. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16460. .toolChoose[i].preTime
  16461. : "";
  16462. this.timeDialogVisible = true;
  16463. } else if (t == 15) {
  16464. this.answerQ = "";
  16465. this.questionAnswer = "";
  16466. if (this.answerCount > 0) {
  16467. this.updateCount(this.answerCount, t);
  16468. } else {
  16469. this.answerCount++;
  16470. a = this.answerCount;
  16471. this.toolsCount(a, t);
  16472. }
  16473. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16474. .taskJson[index].toolChoose[i].answerQ
  16475. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16476. .toolChoose[i].answerQ
  16477. : "";
  16478. this.answerDialogVisible = true;
  16479. } else if (t == 21) {
  16480. window.parent.postMessage({ tools: "21" }, "*");
  16481. } else if (t == 22) {
  16482. window.parent.postMessage({ tools: "22" }, "*");
  16483. } else if (t == 23) {
  16484. window.parent.postMessage({ tools: "23" }, "*");
  16485. } else if (t == 24) {
  16486. window.parent.postMessage({ tools: "24" }, "*");
  16487. } else if (t == 25) {
  16488. window.parent.postMessage({ tools: "25" }, "*");
  16489. } else if (t == 31) {
  16490. window.parent.postMessage({ tools: "31" }, "*");
  16491. } else if (t == 28) {
  16492. window.parent.postMessage({ tools: "28" }, "*");
  16493. } else if (t == 37) {
  16494. window.parent.postMessage({ tools: "37" }, "*");
  16495. } else if (t == 38) {
  16496. window.parent.postMessage({ tools: "38" }, "*");
  16497. } else if (t == 39) {
  16498. window.parent.postMessage({ tools: "39" }, "*");
  16499. } else if (t == 32) {
  16500. window.parent.postMessage({ tools: "32" }, "*");
  16501. } else if (t == 57) {
  16502. // window.parent.postMessage({ tools: "57" }, "*");
  16503. window.parent.postMessage(
  16504. {
  16505. tools: "57u",
  16506. cid: this.id,
  16507. stage: this.courseType,
  16508. task: this.taskCount,
  16509. tool: i,
  16510. },
  16511. "*"
  16512. );
  16513. } else if (t == 58) {
  16514. window.parent.postMessage({ tools: "58" }, "*");
  16515. } else if (t == 59) {
  16516. window.parent.postMessage({ tools: "59" }, "*");
  16517. } else if (t == 60) {
  16518. window.parent.postMessage({ tools: "60" }, "*");
  16519. } else if (t == 61) {
  16520. window.parent.postMessage({ tools: "61" }, "*");
  16521. } else if (t == 63) {
  16522. window.parent.postMessage({ tools: "63" }, "*");
  16523. } else if (t == 65) {
  16524. if (this.tType == 2) {
  16525. this.$message.error("不支持学生使用");
  16526. return;
  16527. }
  16528. this.uploadCid = this.tcid;
  16529. if (!this.uploadCid) {
  16530. this.$message.error(
  16531. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  16532. );
  16533. return;
  16534. }
  16535. this.selectPickStudent();
  16536. } else if (t == 26) {
  16537. window.parent.postMessage(
  16538. {
  16539. tools: "26",
  16540. cid: this.id,
  16541. stage: this.courseType,
  16542. task: this.taskCount,
  16543. tool: i,
  16544. },
  16545. "*"
  16546. );
  16547. } else if (t == 40) {
  16548. if (this.evalCount > 0) {
  16549. this.updateCount(this.evalCount, t);
  16550. } else {
  16551. this.evalCount++;
  16552. a = this.evalCount;
  16553. this.toolsCount(a, t);
  16554. }
  16555. this.eScore = { eBzText: "", eStar: [] };
  16556. if (this.worksStudent[i].length) {
  16557. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16558. if (this.userid == this.worksStudent[i][k].userid) {
  16559. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16560. this.rateJson =
  16561. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16562. index
  16563. ].toolChoose[i].rateJson;
  16564. break;
  16565. } else {
  16566. this.rateJson =
  16567. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16568. index
  16569. ].toolChoose[i].rateJson;
  16570. }
  16571. }
  16572. } else {
  16573. this.rateJson =
  16574. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16575. index
  16576. ].toolChoose[i].rateJson;
  16577. }
  16578. this.isStar = false;
  16579. this.studentEvalDialogVisible = true;
  16580. } else if (t == 41) {
  16581. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16582. .taskJson[index].toolChoose[i].selectJson
  16583. ? JSON.parse(
  16584. JSON.stringify(
  16585. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16586. index
  16587. ].toolChoose[i].selectJson
  16588. )
  16589. )
  16590. : { url: "", select: [], answer: [] };
  16591. if (this.worksStudent[i].length) {
  16592. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16593. if (this.userid == this.worksStudent[i][k].userid) {
  16594. var a = this.worksStudent[i][k].works.split(",");
  16595. for (var ki = 0; ki < a.length; ki++) {
  16596. a[ki] = parseInt(a[ki]);
  16597. }
  16598. this.selectAnswer = {
  16599. answer: a,
  16600. stu: this.worksStudent[i][k].sName,
  16601. };
  16602. break;
  16603. } else {
  16604. this.selectAnswer = { answer: [], stu: "" };
  16605. }
  16606. }
  16607. } else {
  16608. this.selectAnswer = { answer: [], stu: "" };
  16609. }
  16610. this.isSelect = false;
  16611. this.dialogVisibleSelect = true;
  16612. } else if (t == 44) {
  16613. window.parent.postMessage({ tools: "44" }, "*");
  16614. } else if (t == 47) {
  16615. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16616. .taskJson[index].toolChoose[i].sentenceList
  16617. ? JSON.parse(
  16618. JSON.stringify(
  16619. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16620. index
  16621. ].toolChoose[i].sentenceList
  16622. )
  16623. )
  16624. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16625. for (var q = 0; q < this.sentenceList.length; q++) {
  16626. this.sentenceList[q].chooseSenList = [];
  16627. this.sentenceList[q].addChangeSen = [];
  16628. this.sentenceList[q].addChangeSen = JSON.parse(
  16629. JSON.stringify(this.sentenceList[q].addSentence)
  16630. );
  16631. this.sentenceList[q].chooseSenList.length =
  16632. this.sentenceList[q].rightAnswer.length;
  16633. }
  16634. this.dialogVisibleSentence = true;
  16635. } else if (t == 48) {
  16636. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16637. .taskJson[index].toolChoose[i].tableJson
  16638. ? JSON.parse(
  16639. JSON.stringify(
  16640. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16641. index
  16642. ].toolChoose[i].tableJson
  16643. )
  16644. )
  16645. : { text: "" };
  16646. if (this.worksStudent[i].length) {
  16647. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16648. if (this.userid == this.worksStudent[i][k].userid) {
  16649. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16650. break;
  16651. }
  16652. }
  16653. }
  16654. this.dialogVisibleTable = true;
  16655. } else if (t == 52) {
  16656. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16657. .taskJson[index].toolChoose[i].wordJson
  16658. ? JSON.parse(
  16659. JSON.stringify(
  16660. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16661. index
  16662. ].toolChoose[i].wordJson
  16663. )
  16664. )
  16665. : { text: "" };
  16666. if (this.worksStudent[i].length) {
  16667. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16668. if (this.userid == this.worksStudent[i][k].userid) {
  16669. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16670. break;
  16671. }
  16672. }
  16673. }
  16674. this.dialogVisibleWord = true;
  16675. } else if (t == 49) {
  16676. this.groupJson =
  16677. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16678. index
  16679. ].toolChoose[i].groupJson;
  16680. this.dialogVisibleGroup = true;
  16681. } else if (t == 62) {
  16682. this.videoJson =
  16683. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16684. index
  16685. ].toolChoose[i].videoJson;
  16686. this.dialogVisibleVideo = true;
  16687. }
  16688. },
  16689. teacherWorkSubmit(t, i, index, s) {
  16690. this.sStudent = s;
  16691. this.sTool = t;
  16692. this.toolindex = i;
  16693. if (this.tType !== "1" && this.tType !== "4") {
  16694. return;
  16695. }
  16696. if (t == 16 || t == 32 || t == 50) {
  16697. this.dialogVisibleWorks = true; //作业提交
  16698. } else if (t == 15) {
  16699. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16700. .taskJson[index].toolChoose[i].answerQ
  16701. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16702. .toolChoose[i].answerQ
  16703. : "";
  16704. this.questionAnswer = "";
  16705. this.answerDialogVisibleTeacher = true; //问答
  16706. } else if (t == 52) {
  16707. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16708. .taskJson[index].toolChoose[i].wordJson
  16709. ? JSON.parse(
  16710. JSON.stringify(
  16711. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16712. index
  16713. ].toolChoose[i].wordJson
  16714. )
  16715. )
  16716. : { text: "" };
  16717. if (this.worksStudent[i].length) {
  16718. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16719. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16720. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16721. break;
  16722. }
  16723. }
  16724. }
  16725. this.dialogVisibleWordTeacher = true; //文档
  16726. } else if (t == 4) {
  16727. this.radio = [];
  16728. this.noteName = "";
  16729. this.isAnswer = false;
  16730. if (this.askCount > 0) {
  16731. this.updateCount(this.askCount, t);
  16732. } else {
  16733. this.askCount++;
  16734. a = this.askCount;
  16735. this.toolsCount(a, t);
  16736. }
  16737. if (!this.dialogVisible2) {
  16738. this.askJson.askJson =
  16739. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16740. index
  16741. ].toolChoose[i].askJson;
  16742. this.askJson.askTitle =
  16743. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16744. index
  16745. ].toolChoose[i].askTitle;
  16746. this.askJson.askCount =
  16747. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16748. index
  16749. ].toolChoose[i].askCount;
  16750. } else {
  16751. this.askJson.askJson = this.chapTools.askJson.askJson;
  16752. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16753. this.askJson.askCount = this.chapTools.askJson.askCount;
  16754. }
  16755. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16756. if (this.askJson.askJson[k].type == "2") {
  16757. this.radio.push([]);
  16758. } else {
  16759. this.radio.push("");
  16760. }
  16761. }
  16762. this.dialogVisible5Teacher = true;
  16763. } else if (t == 45) {
  16764. this.noteName = "";
  16765. this.radio = [];
  16766. this.isAnswer = false;
  16767. if (this.askCount > 0) {
  16768. this.updateCount(this.askCount, t);
  16769. } else {
  16770. this.askCount++;
  16771. a = this.askCount;
  16772. this.toolsCount(a, t);
  16773. }
  16774. this.testJson =
  16775. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16776. index
  16777. ].toolChoose[i].testJson;
  16778. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16779. if (this.testJson.testJson[k].type == "2") {
  16780. this.radio.push([]);
  16781. } else {
  16782. this.radio.push("");
  16783. }
  16784. }
  16785. this.dialogVisibleChoiceTeacher = true;
  16786. } else if (t == 41) {
  16787. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16788. .taskJson[index].toolChoose[i].selectJson
  16789. ? JSON.parse(
  16790. JSON.stringify(
  16791. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16792. index
  16793. ].toolChoose[i].selectJson
  16794. )
  16795. )
  16796. : { url: "", select: [], answer: [] };
  16797. if (this.worksStudent[i].length) {
  16798. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16799. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16800. var a = this.worksStudent[i][k].works.split(",");
  16801. for (var ki = 0; ki < a.length; ki++) {
  16802. a[ki] = parseInt(a[ki]);
  16803. }
  16804. this.selectAnswer = {
  16805. answer: a,
  16806. stu: this.worksStudent[i][k].sName,
  16807. };
  16808. break;
  16809. } else {
  16810. this.selectAnswer = { answer: [], stu: "" };
  16811. }
  16812. }
  16813. } else {
  16814. this.selectAnswer = { answer: [], stu: "" };
  16815. }
  16816. this.isSelect = false;
  16817. this.dialogVisibleSelectTeacher = true;
  16818. } else if (t == 47) {
  16819. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16820. .taskJson[index].toolChoose[i].sentenceList
  16821. ? JSON.parse(
  16822. JSON.stringify(
  16823. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16824. index
  16825. ].toolChoose[i].sentenceList
  16826. )
  16827. )
  16828. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16829. for (var q = 0; q < this.sentenceList.length; q++) {
  16830. this.sentenceList[q].chooseSenList = [];
  16831. this.sentenceList[q].addChangeSen = [];
  16832. this.sentenceList[q].addChangeSen = JSON.parse(
  16833. JSON.stringify(this.sentenceList[q].addSentence)
  16834. );
  16835. this.sentenceList[q].chooseSenList.length =
  16836. this.sentenceList[q].rightAnswer.length;
  16837. }
  16838. this.dialogVisibleSentenceTeacher = true;
  16839. } else if (t == 48) {
  16840. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16841. .taskJson[index].toolChoose[i].tableJson
  16842. ? JSON.parse(
  16843. JSON.stringify(
  16844. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16845. index
  16846. ].toolChoose[i].tableJson
  16847. )
  16848. )
  16849. : { text: "" };
  16850. if (this.worksStudent[i].length) {
  16851. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16852. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16853. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16854. break;
  16855. }
  16856. }
  16857. }
  16858. this.dialogVisibleTableTeacher = true;
  16859. } else if (t == 40) {
  16860. if (this.evalCount > 0) {
  16861. this.updateCount(this.evalCount, t);
  16862. } else {
  16863. this.evalCount++;
  16864. a = this.evalCount;
  16865. this.toolsCount(a, t);
  16866. }
  16867. this.eScore = { eBzText: "", eStar: [] };
  16868. if (this.worksStudent[i].length) {
  16869. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16870. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16871. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16872. this.rateJson =
  16873. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16874. index
  16875. ].toolChoose[i].rateJson;
  16876. break;
  16877. } else {
  16878. this.rateJson =
  16879. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16880. index
  16881. ].toolChoose[i].rateJson;
  16882. }
  16883. }
  16884. } else {
  16885. this.rateJson =
  16886. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16887. index
  16888. ].toolChoose[i].rateJson;
  16889. }
  16890. this.isStar = false;
  16891. this.studentEvalDialogVisibleTeacher = true;
  16892. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  16893. window.parent.postMessage(
  16894. {
  16895. tools: t + "teacher",
  16896. cid: this.id,
  16897. stage: this.courseType,
  16898. task: this.taskCount,
  16899. tool: i,
  16900. student: this.sStudent,
  16901. },
  16902. "*"
  16903. );
  16904. }
  16905. },
  16906. openCocoPi(tool, i, uid, uname) {
  16907. let student = {
  16908. userid: uid,
  16909. student: uname,
  16910. };
  16911. if (tool == 57) {
  16912. window.parent.postMessage(
  16913. {
  16914. tools: tool + "teacher",
  16915. cid: this.id,
  16916. stage: this.courseType,
  16917. task: this.taskCount,
  16918. tool: i,
  16919. student: student,
  16920. },
  16921. "*"
  16922. );
  16923. }
  16924. },
  16925. setRightAnswer(s, i, j) {
  16926. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  16927. if (
  16928. this.sentenceList[i].chooseSenList[q] == undefined ||
  16929. this.sentenceList[i].chooseSenList[q] == ""
  16930. ) {
  16931. this.sentenceList[i].chooseSenList[q] = s;
  16932. this.sentenceList[i].addChangeSen[j] = "";
  16933. break;
  16934. }
  16935. }
  16936. this.$forceUpdate();
  16937. },
  16938. returnCard(r, i, j) {
  16939. var a = this.sentenceList[i].addSentence.indexOf(r);
  16940. this.sentenceList[i].chooseSenList[j] = "";
  16941. this.sentenceList[i].addChangeSen[a] = r;
  16942. this.$forceUpdate();
  16943. },
  16944. // addSentenceTool() {
  16945. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16946. // this.taskCount
  16947. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  16948. // this.sentenceList = [
  16949. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  16950. // ];
  16951. // this.dialogVisibleSentence = false;
  16952. // },
  16953. toolsCount(a, t) {
  16954. let params = {
  16955. cid: this.id,
  16956. chid: this.courseType,
  16957. uid: this.userid,
  16958. tid: t,
  16959. count: a,
  16960. };
  16961. this.ajax
  16962. .get(this.$store.state.api + "insertToolsCount", params)
  16963. .then((res) => {
  16964. this.selectCount();
  16965. })
  16966. .catch((err) => {
  16967. console.error(err);
  16968. });
  16969. },
  16970. updateCount(c, t) {
  16971. c++;
  16972. let params = {
  16973. cid: this.id,
  16974. chid: this.courseType,
  16975. uid: this.userid,
  16976. tid: t,
  16977. count: c,
  16978. };
  16979. this.ajax
  16980. .get(this.$store.state.api + "updateToolsCount", params)
  16981. .then((res) => {
  16982. this.selectCount();
  16983. })
  16984. .catch((err) => {
  16985. console.error(err);
  16986. });
  16987. },
  16988. checkEva() {
  16989. if (this.evalua != "") {
  16990. for (var i = 0; i < this.evaJuri.length; i++) {
  16991. if (this.evalua == this.evaJuri[i].id) {
  16992. this.eTitle = this.evaJuri[i].title;
  16993. this.eJson = JSON.parse(this.evaJuri[i].content);
  16994. }
  16995. }
  16996. this.$forceUpdate();
  16997. setTimeout(() => {
  16998. this.setMindData();
  16999. }, 0);
  17000. }
  17001. },
  17002. selectEva() {
  17003. let params = {
  17004. oid: this.oid,
  17005. };
  17006. this.ajax
  17007. .get(this.$store.state.api + "selectAllEvaluation", params)
  17008. .then((res) => {
  17009. this.evaJuri = res.data[0];
  17010. })
  17011. .catch((err) => {
  17012. console.error(err);
  17013. });
  17014. },
  17015. setMindData() {
  17016. this.data.data = [];
  17017. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17018. let _eJson = Object.keys(this.eJson);
  17019. let _e = this.eJson;
  17020. for (let i = 0; i < _eJson.length; i++) {
  17021. let element = _e[_eJson[i]];
  17022. this.data.data.push({
  17023. id: element.id,
  17024. parentid: "root",
  17025. topic: element.name,
  17026. });
  17027. let _eJsonc = Object.keys(element.child);
  17028. let _e2 = element.child;
  17029. for (let j = 0; j < _eJsonc.length; j++) {
  17030. let _ec = _e2[_eJsonc[j]];
  17031. this.data.data.push({
  17032. id: _ec.id,
  17033. parentid: element.id,
  17034. topic: _ec.name,
  17035. });
  17036. let _eJsonz = Object.keys(_ec.child);
  17037. let _e3 = _ec.child;
  17038. for (let z = 0; z < _eJsonz.length; z++) {
  17039. let _ez = _e3[_eJsonz[z]];
  17040. this.data.data.push({
  17041. id: _ez.id,
  17042. parentid: _ec.id,
  17043. topic: _ez.name,
  17044. });
  17045. }
  17046. }
  17047. }
  17048. this.$forceUpdate();
  17049. },
  17050. checkFileFull(type, url) {
  17051. this.fullDialogVisible = true;
  17052. this.fulltype = type;
  17053. this.fullUrl = url;
  17054. },
  17055. openSname(n, id, i, uid) {
  17056. this.snameWid = id;
  17057. this.worksSName = n;
  17058. this.worksSid = uid == n ? "" : uid;
  17059. this.toolindex = i;
  17060. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17061. if (!this.uploadCid) {
  17062. this.$message.error(
  17063. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17064. );
  17065. return;
  17066. }
  17067. this.selectUploadStudent(1);
  17068. },
  17069. updateName() {
  17070. let params = {
  17071. n: this.worksSName,
  17072. cid: this.snameWid,
  17073. };
  17074. this.ajax
  17075. .get(this.$store.state.api + "updateCourseWorksName", params)
  17076. .then((res) => {
  17077. this.$message({
  17078. message: "修改成功",
  17079. type: "success",
  17080. });
  17081. this.dialogVisibleSname = false;
  17082. this.getCourseDetail();
  17083. this.snameWid = "";
  17084. this.worksSName = "";
  17085. })
  17086. .catch((err) => {
  17087. console.error(err);
  17088. });
  17089. },
  17090. downloadFile2(f) {
  17091. const loading = this.$loading.service({
  17092. background: "rgba(255, 255, 255, 0.7)",
  17093. target: document.body,
  17094. text: "文件加载中...",
  17095. });
  17096. let url2 = f.url;
  17097. let _url2 = "";
  17098. if (
  17099. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17100. ) {
  17101. _url2 = url2.split(
  17102. "https://view.officeapps.live.com/op/view.aspx?src="
  17103. )[1];
  17104. } else {
  17105. _url2 = url2;
  17106. }
  17107. let params = {
  17108. url: _url2,
  17109. name: f.name,
  17110. };
  17111. this.ajax
  17112. .get(this.$store.state.api + "download", params)
  17113. .then((res) => {
  17114. console.log(res);
  17115. loading.close();
  17116. let content = res.data.data.data;
  17117. let ab = new ArrayBuffer(content.length);
  17118. let view = new Uint8Array(ab);
  17119. for (var i = 0; i < content.length; ++i) {
  17120. view[i] = content[i];
  17121. }
  17122. let elink = document.createElement("a");
  17123. elink.download = f.name;
  17124. elink.style.display = "none";
  17125. let blob = new Blob([ab], {
  17126. type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  17127. });
  17128. elink.href = URL.createObjectURL(blob);
  17129. document.body.appendChild(elink);
  17130. elink.click();
  17131. document.body.removeChild(elink);
  17132. })
  17133. .catch((err) => {
  17134. loading.close();
  17135. console.error(err);
  17136. });
  17137. },
  17138. downloadFile(url) {
  17139. let _this = this;
  17140. let _url = "";
  17141. if (
  17142. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17143. ) {
  17144. _url = url.split(
  17145. "https://view.officeapps.live.com/op/view.aspx?src="
  17146. )[1];
  17147. } else {
  17148. _url = url;
  17149. }
  17150. const x = new XMLHttpRequest();
  17151. x.open("GET", _url, true);
  17152. x.responseType = "blob";
  17153. const loading = _this.$loading.service({
  17154. background: "rgba(255, 255, 255, 0.7)",
  17155. target: document.body,
  17156. text: "文件加载中...",
  17157. });
  17158. // _this.$message.success("文件下载中...");
  17159. x.onload = function (e) {
  17160. loading.close();
  17161. // const url = window.URL.createObjectURL(x.response);
  17162. // const a = document.createElement("a");
  17163. // a.href = url;
  17164. // a.target = "_blank";
  17165. // a.download = url;
  17166. // a.click();
  17167. // a.remove();
  17168. let content = x.response;
  17169. let elink = document.createElement("a");
  17170. elink.download = decodeURI(
  17171. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17172. );
  17173. elink.style.display = "none";
  17174. let blob = new Blob([content]);
  17175. elink.href = URL.createObjectURL(blob);
  17176. document.body.appendChild(elink);
  17177. elink.click();
  17178. document.body.removeChild(elink);
  17179. };
  17180. x.send();
  17181. },
  17182. openLine(url) {
  17183. window.open(url);
  17184. },
  17185. resize() {
  17186. if (document.getElementsByClassName("box_course").length) {
  17187. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17188. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17189. if (this.showType == 2 || this.showType == 3) {
  17190. document.getElementsByClassName("navBox")[0].style.height =
  17191. a - 40 + 46 + "px";
  17192. } else {
  17193. document.getElementsByClassName("navBox")[0].style.height =
  17194. a - 40 + "px";
  17195. }
  17196. }
  17197. this.Stbodywidth =
  17198. document.getElementsByClassName("student_body").length &&
  17199. document.getElementsByClassName("student_body")[0].offsetWidth;
  17200. },
  17201. closeDraw() {
  17202. this.bg = null;
  17203. this.drawShow = false;
  17204. },
  17205. showPicturePaint(url) {
  17206. let params = {
  17207. img: url,
  17208. };
  17209. this.ajax
  17210. .get(this.$store.state.api + "imgToBase64", params)
  17211. .then((res) => {
  17212. console.log(res);
  17213. this.drawShow = true;
  17214. this.bg = res.data[0].img;
  17215. })
  17216. .catch((err) => {
  17217. console.error(err);
  17218. });
  17219. },
  17220. addImgDraw(base64) {
  17221. let file = { name: "批注图.png" };
  17222. let img = this.dataUrlToFile(base64, file);
  17223. this.beforeUpload1(img, 5);
  17224. },
  17225. addImgDrawImG(url) {
  17226. // console.log(url);
  17227. let params = [
  17228. {
  17229. wid: this.commentDetail.wid,
  17230. img: url,
  17231. },
  17232. ];
  17233. this.ajax
  17234. .post(this.$store.state.api + "updateCourseWorks", params)
  17235. .then((res) => {
  17236. this.$message({
  17237. message: "提交成功",
  17238. type: "success",
  17239. });
  17240. this.drawShow = false;
  17241. this.bg = "";
  17242. this.selectSWorks();
  17243. this.selectStudent();
  17244. })
  17245. .catch((err) => {
  17246. this.$message.error("提交失败");
  17247. console.error(err);
  17248. });
  17249. },
  17250. deletePicturePaint() {
  17251. this.$confirm("确定删除此批注吗?", "提示", {
  17252. confirmButtonText: "确定",
  17253. cancelButtonText: "取消",
  17254. type: "warning",
  17255. })
  17256. .then(() => {
  17257. let params = [
  17258. {
  17259. wid: this.commentDetail.wid,
  17260. img: "",
  17261. },
  17262. ];
  17263. this.ajax
  17264. .post(this.$store.state.api + "updateCourseWorks", params)
  17265. .then((res) => {
  17266. this.$message({
  17267. message: "删除成功",
  17268. type: "success",
  17269. });
  17270. this.selectSWorks();
  17271. this.selectStudent();
  17272. })
  17273. .catch((err) => {
  17274. this.$message.error("删除失败");
  17275. console.error(err);
  17276. });
  17277. })
  17278. .catch(() => {});
  17279. },
  17280. getAudioVideo(constraintsData) {
  17281. if (navigator.mediaDevices === undefined) {
  17282. navigator.mediaDevices = {};
  17283. }
  17284. if (navigator.mediaDevices.getUserMedia === undefined) {
  17285. navigator.mediaDevices.getUserMedia = function (constraints) {
  17286. // 首先,如果有getUserMedia的话,就获得它
  17287. var getUserMedia =
  17288. navigator.getUserMedia ||
  17289. navigator.webkitGetUserMedia ||
  17290. navigator.mozGetUserMedia ||
  17291. navigator.msGetUserMedia;
  17292. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  17293. if (!getUserMedia) {
  17294. return Promise.reject({ code: 404 });
  17295. }
  17296. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  17297. return new Promise(function (resolve, reject) {
  17298. getUserMedia.call(navigator, constraints, resolve, reject);
  17299. });
  17300. };
  17301. }
  17302. return navigator.mediaDevices.getUserMedia(constraintsData);
  17303. },
  17304. /**
  17305. * 开始录制
  17306. */
  17307. startRecording(callback) {
  17308. let _function = (screenStream) => {
  17309. this.addStreamStopListener(screenStream, () => {
  17310. console.log("流停止监听");
  17311. this.stopRecording();
  17312. this.$emit("streamStop", {});
  17313. // this.stopRecording();
  17314. });
  17315. var options = {
  17316. type: "video",
  17317. mimeType: "video/webm",
  17318. disableLogs: false,
  17319. getNativeBlob: false, // enable it for longer recordings
  17320. ignoreMutedMedia: false,
  17321. };
  17322. // this.video.srcObject = screenStream;
  17323. this.recorder = RecordRTC(screenStream, options);
  17324. this.recorder.startRecording();
  17325. this.recorder.screen = screenStream;
  17326. this.videoStart = true;
  17327. // callback(true);
  17328. };
  17329. this.getAudioVideo({ audio: true })
  17330. .then((res) => {
  17331. this.captureScreen(_function, true);
  17332. console.log("已点击允许,开启成功");
  17333. })
  17334. .catch((err) => {
  17335. // console.log('浏览器不支持,请更换浏览器')
  17336. // } else {
  17337. this.captureScreen(_function, false);
  17338. console.log("请检查是否存在麦克风");
  17339. });
  17340. },
  17341. /**
  17342. * 停止录制
  17343. */
  17344. stopRecording(callback) {
  17345. this.recorder.stopRecording(() => {
  17346. // this.video.src = this.video.srcObject = null;
  17347. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  17348. const url = URL.createObjectURL(this.recorder.getBlob());
  17349. const a = document.createElement("a"); //this.fileName+
  17350. let videoFile = new File(
  17351. [this.recorder.getBlob()],
  17352. this.courseDetail.title + "录屏.mp4",
  17353. {
  17354. type: "video/mp4",
  17355. }
  17356. );
  17357. let downloadUrl = URL.createObjectURL(videoFile);
  17358. document.body.appendChild(a);
  17359. a.style.display = "none";
  17360. a.href = url;
  17361. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  17362. a.click();
  17363. this.recorder.screen.stop();
  17364. this.recorder.destroy();
  17365. this.recorder = null;
  17366. this.videoStart = false;
  17367. // callback(false);
  17368. });
  17369. },
  17370. //初始化
  17371. captureScreen(callback, type) {
  17372. if (navigator.getDisplayMedia) {
  17373. //录制结束,文件下载
  17374. navigator
  17375. .getDisplayMedia({
  17376. video: true,
  17377. })
  17378. .then((screenStream) => {
  17379. if (type) {
  17380. navigator.mediaDevices
  17381. .getUserMedia({ audio: true })
  17382. .then((mic) => {
  17383. screenStream.addTrack(mic.getTracks()[0]);
  17384. callback(screenStream);
  17385. });
  17386. } else {
  17387. callback(screenStream);
  17388. }
  17389. })
  17390. .catch(function (error) {
  17391. console.log("error", error);
  17392. });
  17393. } else if (navigator.mediaDevices.getDisplayMedia) {
  17394. navigator.mediaDevices
  17395. .getDisplayMedia({
  17396. video: true,
  17397. })
  17398. .then((screenStream) => {
  17399. if (type) {
  17400. navigator.mediaDevices
  17401. .getUserMedia({ audio: true })
  17402. .then((mic) => {
  17403. screenStream.addTrack(mic.getTracks()[0]);
  17404. callback(screenStream);
  17405. });
  17406. } else {
  17407. callback(screenStream);
  17408. }
  17409. })
  17410. .catch(function (error) {
  17411. console.log("error", error);
  17412. });
  17413. } else {
  17414. var error = "getDisplayMedia API are not supported in this browser.";
  17415. console.log("error", error);
  17416. alert(error);
  17417. }
  17418. },
  17419. //流监听
  17420. addStreamStopListener(stream, callback) {
  17421. stream.addEventListener(
  17422. "ended",
  17423. function () {
  17424. callback();
  17425. callback = function () {};
  17426. },
  17427. false
  17428. );
  17429. stream.addEventListener(
  17430. "inactive",
  17431. function () {
  17432. callback();
  17433. callback = function () {};
  17434. },
  17435. false
  17436. );
  17437. stream.getTracks().forEach(function (track) {
  17438. track.addEventListener(
  17439. "ended",
  17440. function () {
  17441. callback();
  17442. callback = function () {};
  17443. },
  17444. false
  17445. );
  17446. track.addEventListener(
  17447. "inactive",
  17448. function () {
  17449. callback();
  17450. callback = function () {};
  17451. },
  17452. false
  17453. );
  17454. });
  17455. },
  17456. updateGroup() {
  17457. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17458. this.dialogVisibleGroup2 = true;
  17459. },
  17460. updateGroupJson() {
  17461. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  17462. if (
  17463. this.groupStudentUid[this.toolindex][i].length >
  17464. this.groupJson2.number
  17465. ) {
  17466. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  17467. return;
  17468. }
  17469. }
  17470. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  17471. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17472. this.taskCount
  17473. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  17474. let params = [
  17475. {
  17476. cid: this.id,
  17477. chapters: JSON.stringify(this.chapInfoList),
  17478. uid: this.userid,
  17479. unitIndex: this.courseType,
  17480. },
  17481. ];
  17482. this.ajax
  17483. .post(this.$store.state.api + "updateWorkNew4", params)
  17484. .then((res) => {
  17485. this.$message.success("设置成功");
  17486. this.getCourseDetail(2);
  17487. this.dialogVisibleGroup2 = false;
  17488. this.groupJson2 = {};
  17489. this.$forceUpdate();
  17490. })
  17491. .catch((err) => {
  17492. this.$message.error("网络不佳");
  17493. console.error(err);
  17494. });
  17495. },
  17496. lockChair() {
  17497. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17498. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  17499. this.updateGroupJson();
  17500. },
  17501. selectGroup(index) {
  17502. this.getCourseDetail(2, index);
  17503. },
  17504. joinGroup(index) {
  17505. if (this.groupJson.islock == 2) {
  17506. this.$message.error("位置已被锁定,无法加入");
  17507. return;
  17508. }
  17509. if (
  17510. this.groupStudent[this.toolindex][index].length >
  17511. this.groupJson.number ||
  17512. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  17513. ) {
  17514. this.$message.error("位置已满,无法加入");
  17515. return;
  17516. }
  17517. let params = [
  17518. {
  17519. cid: this.id,
  17520. stage: this.courseType,
  17521. task: this.taskCount,
  17522. tool: this.toolindex,
  17523. g: index,
  17524. uid: this.userid,
  17525. },
  17526. ];
  17527. this.ajax
  17528. .post(this.$store.state.api + "joinGroup", params)
  17529. .then((res) => {
  17530. this.$message.success("加入成功");
  17531. this.getCourseDetail();
  17532. })
  17533. .catch((err) => {
  17534. this.$message.error("网络不佳");
  17535. console.error(err);
  17536. });
  17537. },
  17538. exitGroup(id) {
  17539. if (this.groupJson.islock == 2) {
  17540. this.$message.error("位置已被锁定,无法退出");
  17541. return;
  17542. }
  17543. let params = [
  17544. {
  17545. gid: id,
  17546. },
  17547. ];
  17548. this.ajax
  17549. .post(this.$store.state.api + "exitGroup", params)
  17550. .then((res) => {
  17551. this.$message.success("退出成功");
  17552. this.getCourseDetail();
  17553. })
  17554. .catch((err) => {
  17555. this.$message.error("网络不佳");
  17556. console.error(err);
  17557. });
  17558. },
  17559. groupUpload(index, task, gindex) {
  17560. this.taskCount = task;
  17561. this.toolindex = index;
  17562. this.groupIndex = gindex;
  17563. this.dialogVisibleGroupWork = true;
  17564. },
  17565. updateGroupChair(user) {
  17566. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  17567. el.label = index;
  17568. return index != user.group;
  17569. });
  17570. this.updateGroupUser = user;
  17571. this.dialogVisibleUpdateGroup = true;
  17572. },
  17573. updateChair() {
  17574. if (
  17575. this.groupStudent[this.toolindex][this.checkChair].length >
  17576. this.groupJson.number ||
  17577. this.groupStudent[this.toolindex][this.checkChair].length ==
  17578. this.groupJson.number
  17579. ) {
  17580. this.$message.error("位置已满,无法加入");
  17581. return;
  17582. }
  17583. let params = [
  17584. {
  17585. cid: this.id,
  17586. stage: this.courseType,
  17587. task: this.taskCount,
  17588. tool: this.toolindex,
  17589. g: this.checkChair,
  17590. uid: this.updateGroupUser.userid,
  17591. },
  17592. ];
  17593. this.ajax
  17594. .post(this.$store.state.api + "joinGroup", params)
  17595. .then((res) => {
  17596. this.$message.success("修改成功");
  17597. this.updateGroupUser = {};
  17598. this.checkChair = "";
  17599. this.updateGroupArray = {};
  17600. this.dialogVisibleUpdateGroup = false;
  17601. this.getCourseDetail();
  17602. })
  17603. .catch((err) => {
  17604. this.$message.error("网络不佳");
  17605. console.error(err);
  17606. });
  17607. },
  17608. deleteGroupChair(gindex) {
  17609. this.checkDeleteGroup = [];
  17610. this.deleteGroupUser = JSON.parse(
  17611. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  17612. );
  17613. this.deleteGroupArray = this.groupJson.group[gindex];
  17614. this.groupIndex = gindex;
  17615. this.dialogVisibleDeleteGroup = true;
  17616. },
  17617. async deleteChair() {
  17618. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  17619. const gid =
  17620. this.groupStudent[this.toolindex][this.groupIndex][
  17621. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  17622. this.checkDeleteGroup[i]
  17623. )
  17624. ];
  17625. let params = [
  17626. {
  17627. gid: gid.id,
  17628. },
  17629. ];
  17630. var a = await this.deleteChairA(params);
  17631. if (i == this.checkDeleteGroup.length - 1) {
  17632. this.$message.success("退出成功");
  17633. this.dialogVisibleDeleteGroup = false;
  17634. this.deleteGroupUser = [];
  17635. this.deleteGroupArray = {};
  17636. this.groupIndex = "";
  17637. this.checkDeleteGroup = [];
  17638. this.getCourseDetail();
  17639. }
  17640. }
  17641. },
  17642. deleteChairA(params) {
  17643. return new Promise((resolve, reject) => {
  17644. this.ajax
  17645. .post(this.$store.state.api + "exitGroup", params)
  17646. .then((res) => {
  17647. resolve(1);
  17648. })
  17649. .catch((err) => {
  17650. this.$message.error("网络不佳");
  17651. console.error(err);
  17652. });
  17653. });
  17654. },
  17655. contract(i) {
  17656. if (this.isCloseList[i].isClose == 0) {
  17657. this.isCloseList[i].isClose = 1;
  17658. } else {
  17659. this.isCloseList[i].isClose = 0;
  17660. }
  17661. this.$forceUpdate();
  17662. },
  17663. openTools2(i) {
  17664. this.$message.error("暂未开放");
  17665. return;
  17666. },
  17667. addTools2(i) {
  17668. if (i == 4) {
  17669. // this.openTools2(4);
  17670. this.$message.error("暂未开放");
  17671. return;
  17672. }
  17673. if (i == 45) {
  17674. // this.openTools2(45);
  17675. this.$message.error("暂未开放");
  17676. return;
  17677. }
  17678. if (i == 47) {
  17679. // this.openTools2(47);
  17680. this.$message.error("暂未开放");
  17681. return;
  17682. }
  17683. if (i == 49) {
  17684. // this.openTools2(49);
  17685. this.$message.error("暂未开放");
  17686. return;
  17687. }
  17688. if (i == 62) {
  17689. // this.openTools(itemTaskIndex, 62, toolIndex);
  17690. this.$message.error("暂未开放");
  17691. return;
  17692. }
  17693. if (i == 15) {
  17694. // this.openTools(itemTaskIndex, 15, toolIndex);
  17695. this.$message.error("暂未开放");
  17696. return;
  17697. }
  17698. if (i == 40) {
  17699. // this.openTools(itemTaskIndex, 40, toolIndex);
  17700. this.$message.error("暂未开放");
  17701. return;
  17702. }
  17703. if (i == 41) {
  17704. // this.openTools(itemTaskIndex, 41, toolIndex);
  17705. this.$message.error("暂未开放");
  17706. return;
  17707. }
  17708. if (i == 42) {
  17709. // this.openTools(itemTaskIndex, 42, toolIndex);
  17710. this.$message.error("暂未开放");
  17711. return;
  17712. }
  17713. if (this.checktoolArray.length > 0) {
  17714. if (this.checktoolArray.indexOf(i) != -1) {
  17715. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17716. } else {
  17717. this.checktoolArray = [];
  17718. this.checktoolArray.push(i);
  17719. }
  17720. } else {
  17721. this.checktoolArray.push(i);
  17722. }
  17723. this.$forceUpdate();
  17724. },
  17725. addToolChoose() {
  17726. if (!this.checktoolArray.length) {
  17727. this.$message.error("请选择要添加的任务");
  17728. return;
  17729. }
  17730. if (
  17731. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17732. this.taskCount
  17733. ].toolChoose[0].tool.length
  17734. ) {
  17735. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17736. this.taskCount
  17737. ].toolChoose[0].tool = this.checktoolArray;
  17738. } else {
  17739. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17740. this.taskCount
  17741. ].toolChoose.push({
  17742. tool: this.checktoolArray,
  17743. toolDetail: "",
  17744. toolType: 0,
  17745. askCount: 1,
  17746. askTitle: "",
  17747. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  17748. });
  17749. }
  17750. let params = [
  17751. {
  17752. cid: this.id,
  17753. chapters: JSON.stringify(this.chapInfoList),
  17754. uid: this.userid,
  17755. unitIndex: this.courseType,
  17756. },
  17757. ];
  17758. this.ajax
  17759. .post(this.$store.state.api + "updateWorkNew4", params)
  17760. .then((res) => {
  17761. this.$message({
  17762. message: "添加成功",
  17763. type: "success",
  17764. });
  17765. this.checktoolArray = [];
  17766. this.getCourseDetail(3);
  17767. this.checkBz(
  17768. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17769. this.taskCount
  17770. ].toolChoose.length - 1
  17771. );
  17772. this.$forceUpdate();
  17773. })
  17774. .catch((err) => {
  17775. console.error(err);
  17776. });
  17777. },
  17778. updateToolDetail() {
  17779. if (!this.isUpdateToolDetail) {
  17780. this.isUpdateToolDetail = true;
  17781. this.updateToolDetailInner = JSON.parse(
  17782. JSON.stringify(this.tool.toolDetail)
  17783. );
  17784. } else {
  17785. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17786. this.taskCount
  17787. ].toolChoose[this.toolIndex].toolDetail = JSON.parse(
  17788. JSON.stringify(this.updateToolDetailInner)
  17789. );
  17790. let params = [
  17791. {
  17792. cid: this.id,
  17793. chapters: JSON.stringify(this.chapInfoList),
  17794. uid: this.userid,
  17795. unitIndex: this.courseType,
  17796. },
  17797. ];
  17798. this.ajax
  17799. .post(this.$store.state.api + "updateWorkNew4", params)
  17800. .then((res) => {
  17801. this.isUpdateToolDetail = false;
  17802. this.$message({
  17803. message: "修改成功",
  17804. type: "success",
  17805. });
  17806. this.updateToolDetailInner = "";
  17807. this.getCourseDetail(3);
  17808. this.$forceUpdate();
  17809. })
  17810. .catch((err) => {
  17811. console.error(err);
  17812. });
  17813. }
  17814. },
  17815. openWordCloud(toolindex) {
  17816. let array = [];
  17817. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  17818. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  17819. array.push({ name: works });
  17820. }
  17821. if (this.isGroup) {
  17822. for (var i = 0; i < this.courseGroup.group.length; i++) {
  17823. let works = this.courseGroup.group[i].works[toolindex];
  17824. for (var j = 0; j < works.length; j++) {
  17825. let answer = JSON.parse(works[j].works)[0].answer;
  17826. array.push({ name: answer });
  17827. }
  17828. }
  17829. }
  17830. this.wordCloudData = array;
  17831. this.dialogVisibleWordCloud = true;
  17832. },
  17833. pickStudent(stu) {
  17834. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  17835. return;
  17836. }
  17837. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  17838. confirmButtonText: "确定",
  17839. cancelButtonText: "取消",
  17840. type: "warning",
  17841. })
  17842. .then(() => {
  17843. let params = [
  17844. {
  17845. uid: stu.userid,
  17846. cid: this.id,
  17847. stage: this.courseType,
  17848. task: this.taskCount,
  17849. tool: this.toolindex,
  17850. },
  17851. ];
  17852. this.ajax
  17853. .post(this.$store.state.api + "updateCoursePick", params)
  17854. .then((res) => {
  17855. this.$message.success("操作成功");
  17856. this.getPick();
  17857. })
  17858. .catch((err) => {
  17859. this.$message.error("网络不佳");
  17860. console.error(err);
  17861. });
  17862. })
  17863. .catch(() => {});
  17864. },
  17865. getPick() {
  17866. let params = {
  17867. cid: this.id,
  17868. };
  17869. this.ajax
  17870. .get(this.$store.state.api + "getPick", params)
  17871. .then((res) => {
  17872. let array = [];
  17873. for (var i = 0; i < res.data[0].length; i++) {
  17874. array.push(res.data[0][i].userid);
  17875. }
  17876. this.isPickStudent = array;
  17877. if (array.indexOf(this.userid) !== -1) {
  17878. this.$confirm("你被老师选到啦!", "提示", {
  17879. confirmButtonText: "确定",
  17880. showCancelButton: false,
  17881. closeOnClickModal: false,
  17882. type: "warning",
  17883. })
  17884. .then(() => {
  17885. let pa = [
  17886. {
  17887. uid: this.userid,
  17888. cid: this.id,
  17889. },
  17890. ];
  17891. this.ajax
  17892. .post(this.$store.state.api + "deletePick", pa)
  17893. .then((res) => {
  17894. this.getPick();
  17895. })
  17896. .catch((err) => {
  17897. this.$message.error("网络不佳");
  17898. console.error(err);
  17899. });
  17900. })
  17901. .catch(() => {});
  17902. }
  17903. })
  17904. .catch((err) => {
  17905. this.$message.error("网络不佳");
  17906. console.error(err);
  17907. });
  17908. },
  17909. },
  17910. directives: {
  17911. // 使用局部注册指令的方式
  17912. resize: {
  17913. // 指令的名称
  17914. bind(el, binding) {
  17915. // el为绑定的元素,binding为绑定给指令的对象
  17916. let width = "",
  17917. height = "";
  17918. function isReize() {
  17919. const style = document.defaultView.getComputedStyle(el);
  17920. if (width !== style.width || height !== style.height) {
  17921. binding.value(); // 关键
  17922. }
  17923. width = style.width;
  17924. height = style.height;
  17925. }
  17926. el.__vueSetInterval__ = setInterval(isReize, 300);
  17927. },
  17928. unbind(el) {
  17929. clearInterval(el.__vueSetInterval__);
  17930. },
  17931. },
  17932. },
  17933. beforeDestroy() {
  17934. window.onresize = null;
  17935. clearInterval(this.timer);
  17936. this.timer = null;
  17937. clearInterval(this.opertimer);
  17938. this.opertimer = null;
  17939. },
  17940. computed: {
  17941. contentConvent() {
  17942. return function (c) {
  17943. return c
  17944. ? c
  17945. .replaceAll(/\r\n/g, "<br/>")
  17946. .replaceAll(/\n/g, "<br/>")
  17947. .replaceAll(/\s/g, " &nbsp")
  17948. : "";
  17949. };
  17950. },
  17951. checkUpload() {
  17952. return function () {
  17953. var studentK = [];
  17954. if (this.plworkFile.length > 0) {
  17955. for (var z = 0; z < this.plworkFile.length; z++) {
  17956. studentK.push(this.plworkFile[z].username);
  17957. }
  17958. studentK = studentK.join(",");
  17959. }
  17960. var a = this.uploadStudentJuri.filter((el) => {
  17961. return studentK.indexOf(el.userid) == -1;
  17962. });
  17963. return a;
  17964. };
  17965. },
  17966. getSName() {
  17967. return function (name) {
  17968. var check = name;
  17969. this.uploadStudentJuri.forEach((el) => {
  17970. if (el.userid == check) {
  17971. check = el.name ? el.name : el.username;
  17972. }
  17973. });
  17974. return check;
  17975. };
  17976. },
  17977. getImgList() {
  17978. return function (val) {
  17979. let srcList = []; // 定义一个数组用来接收后面的img地址
  17980. val.replace(
  17981. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  17982. function (match, capture) {
  17983. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  17984. srcList.push(capture);
  17985. }
  17986. );
  17987. return srcList;
  17988. };
  17989. },
  17990. },
  17991. mounted() {
  17992. if (this.screenType == 2) {
  17993. window.parent.postMessage({ allScreen: 4 }, "*");
  17994. } else if (this.screenType == 3) {
  17995. window.parent.postMessage({ allScreen: 5 }, "*");
  17996. } else if (this.screenType == 1) {
  17997. window.parent.postMessage({ allScreen: 6 }, "*");
  17998. }
  17999. this.setOperationTime();
  18000. this.selectEva();
  18001. this.getCourseDetail();
  18002. this.selectCount();
  18003. this.getHomeWork();
  18004. this.toolIndex = null;
  18005. this.contentDialog = true;
  18006. this.setContent2(true);
  18007. if (this.tType == 4) {
  18008. this.pzDialog = true;
  18009. this.selectPz();
  18010. }
  18011. document.scrollingElement.scrollTop = 0;
  18012. window.addEventListener("resize", () => {
  18013. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18014. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18015. if (this.showType == 2 || this.showType == 3) {
  18016. document.getElementsByClassName("navBox")[0].style.height =
  18017. a - 40 + 46 + "px";
  18018. } else {
  18019. document.getElementsByClassName("navBox")[0].style.height =
  18020. a - 40 + "px";
  18021. }
  18022. });
  18023. let _this = this;
  18024. setTimeout(() => {
  18025. // _this.vedioTime = [];
  18026. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18027. // _this.vedioTime[i] = document.getElementsByClassName(
  18028. // "vjs-duration-display"
  18029. // )[i].textContent;
  18030. // }
  18031. }, 1000);
  18032. },
  18033. };
  18034. </script>
  18035. <style scoped>
  18036. @media screen and (max-width: 1280px) {
  18037. /* .courseIndex > div:first-child(2) {
  18038. width: 15% !important;
  18039. } */
  18040. /* .navText {
  18041. width: 120px !important;
  18042. } */
  18043. .evaCss {
  18044. flex-direction: column !important;
  18045. align-items: center !important;
  18046. }
  18047. .dialog_diy1 >>> .el-dialog {
  18048. width: 100% !important;
  18049. }
  18050. .rightWidthCss {
  18051. width: 100% !important;
  18052. }
  18053. .dialog_diy3 >>> .el-dialog {
  18054. width: 100% !important;
  18055. }
  18056. /* .textTitle >>> .el-form-item__label {
  18057. width: 150px !important;
  18058. } */
  18059. }
  18060. .evaCssMax {
  18061. flex-direction: column !important;
  18062. align-items: center !important;
  18063. }
  18064. .dialog_diy >>> .el-dialog {
  18065. margin-top: 10vh !important;
  18066. }
  18067. .body_student {
  18068. width: 77%;
  18069. height: 100%;
  18070. position: absolute;
  18071. left: 22%;
  18072. top: 0;
  18073. }
  18074. .student_head {
  18075. width: 100%;
  18076. margin: 20px auto 0;
  18077. padding-bottom: 20px;
  18078. display: flex;
  18079. flex-direction: column;
  18080. flex-wrap: nowrap;
  18081. align-items: flex-start;
  18082. justify-content: flex-start;
  18083. }
  18084. .pb_left {
  18085. width: 20%;
  18086. margin-right: 10px;
  18087. background: rgb(255, 255, 255);
  18088. position: fixed;
  18089. height: calc(100% - 40px);
  18090. border-radius: 20px;
  18091. padding-bottom: 15px;
  18092. box-sizing: border-box;
  18093. }
  18094. .wheel > img,
  18095. .project > img,
  18096. .star > img,
  18097. .evaluate > img,
  18098. .up_photo > img,
  18099. .chapter_add > img,
  18100. .deleteWord > img,
  18101. .question > img,
  18102. .homework > img {
  18103. width: 100%;
  18104. height: 100%;
  18105. }
  18106. .upCover > img {
  18107. width: 131px;
  18108. height: 69px;
  18109. object-fit: cover;
  18110. }
  18111. .upCover {
  18112. width: calc(100% / 3.5);
  18113. position: relative;
  18114. margin: 0 15px 10px 0;
  18115. display: flex;
  18116. flex-direction: column;
  18117. flex-wrap: nowrap;
  18118. justify-content: center;
  18119. align-content: center;
  18120. align-items: center;
  18121. height: fit-content;
  18122. }
  18123. .upCover2 {
  18124. width: 100%;
  18125. position: relative;
  18126. margin: 0 15px 10px 0;
  18127. display: flex;
  18128. flex-direction: column;
  18129. flex-wrap: nowrap;
  18130. justify-content: center;
  18131. align-content: center;
  18132. align-items: center;
  18133. }
  18134. .upCover2 > img {
  18135. width: 100%;
  18136. height: 90px;
  18137. object-fit: contain;
  18138. }
  18139. .chapter_add {
  18140. width: 120px;
  18141. position: relative;
  18142. text-align: center;
  18143. }
  18144. .isAddThings {
  18145. margin-top: 20px;
  18146. position: relative;
  18147. text-align: center;
  18148. background: #f7f8fa;
  18149. height: 90px;
  18150. width: 90px;
  18151. display: flex;
  18152. flex-direction: column;
  18153. justify-content: center;
  18154. }
  18155. .deleteWord {
  18156. width: 22px;
  18157. height: 22px;
  18158. position: absolute;
  18159. right: -5px;
  18160. top: -5px;
  18161. cursor: pointer;
  18162. }
  18163. .box_course {
  18164. /* width: 60%; */
  18165. width: calc(100% - 300px);
  18166. }
  18167. .wheel {
  18168. width: 100%;
  18169. /* height: 100%; */
  18170. height: 650px;
  18171. }
  18172. .right_box {
  18173. display: flex;
  18174. flex-direction: column;
  18175. margin-left: 30px;
  18176. justify-content: space-around;
  18177. }
  18178. .right_box_title {
  18179. font-size: 23px;
  18180. }
  18181. .people {
  18182. display: flex;
  18183. }
  18184. .student_body {
  18185. width: 100%;
  18186. margin: 0 auto;
  18187. margin-top: 10px;
  18188. padding: 0 0 20px;
  18189. background: #fff;
  18190. border-radius: 20px;
  18191. }
  18192. .study_top {
  18193. margin-top: 100px;
  18194. width: 100%;
  18195. /* overflow: auto; */
  18196. height: auto;
  18197. padding-bottom: 20px;
  18198. }
  18199. .study_top .checkbox {
  18200. display: flex;
  18201. align-items: center;
  18202. padding: 15px 0 15px 30px;
  18203. flex: 0 0 auto;
  18204. font-weight: bold;
  18205. border-bottom: 1px solid #eee;
  18206. }
  18207. .study_top .check {
  18208. padding-bottom: 5px;
  18209. text-align: center;
  18210. cursor: pointer;
  18211. height: 30px;
  18212. box-sizing: border-box;
  18213. display: flex;
  18214. }
  18215. .study_top .checked {
  18216. border-bottom: 4px solid #3fc6a0;
  18217. padding-bottom: 5px;
  18218. color: #3fc6a0;
  18219. display: flex;
  18220. height: 35px;
  18221. }
  18222. .study_top .checked > div,
  18223. .study_top .check > div {
  18224. margin-right: 5px;
  18225. }
  18226. .videoTop {
  18227. display: flex;
  18228. flex-direction: row;
  18229. justify-content: space-between;
  18230. background: #fff;
  18231. align-items: center;
  18232. width: 95%;
  18233. padding: 20px;
  18234. }
  18235. .upbtn {
  18236. margin: 25px;
  18237. background: #70afdb;
  18238. color: #fff;
  18239. width: 120px;
  18240. text-align: center;
  18241. height: 30px;
  18242. line-height: 30px;
  18243. font-size: 13px;
  18244. border-radius: 5px;
  18245. cursor: pointer;
  18246. }
  18247. .filebox {
  18248. display: flex;
  18249. flex-wrap: wrap;
  18250. flex-direction: column;
  18251. padding: 0 0 5px;
  18252. }
  18253. .filebox .tooldetail {
  18254. width: 100%;
  18255. margin: 0px 12px;
  18256. background: rgb(247, 247, 247);
  18257. padding: 20px;
  18258. line-height: 30px;
  18259. word-break: break-word;
  18260. }
  18261. .file {
  18262. display: flex;
  18263. flex-direction: column;
  18264. align-items: center;
  18265. justify-content: center;
  18266. cursor: pointer;
  18267. width: 200px;
  18268. }
  18269. .file div {
  18270. margin-top: 10px;
  18271. width: 150px;
  18272. text-align: center;
  18273. overflow: hidden;
  18274. white-space: nowrap;
  18275. text-overflow: ellipsis;
  18276. }
  18277. .media {
  18278. display: flex;
  18279. flex-direction: column;
  18280. align-items: center;
  18281. justify-content: center;
  18282. margin: 0 20px 20px 0;
  18283. cursor: pointer;
  18284. margin: 12px 0 5px 15px;
  18285. overflow: hidden;
  18286. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  18287. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  18288. box-sizing: border-box;
  18289. }
  18290. .media img {
  18291. height: 90px;
  18292. width: 160px;
  18293. object-fit: cover;
  18294. }
  18295. .media .title {
  18296. padding: 5px;
  18297. text-align: left;
  18298. width: 100%;
  18299. box-sizing: border-box;
  18300. }
  18301. .media .btn {
  18302. width: 100%;
  18303. height: 35px;
  18304. line-height: 35px;
  18305. color: #fff;
  18306. background: #606060;
  18307. text-align: center;
  18308. overflow: hidden;
  18309. white-space: nowrap;
  18310. text-overflow: ellipsis;
  18311. }
  18312. .detail_content_top {
  18313. width: 100%;
  18314. padding: 25px 0 25px 0;
  18315. }
  18316. .detail_title {
  18317. text-align: center;
  18318. font-size: 24px;
  18319. }
  18320. .detail_time {
  18321. font-size: 13px;
  18322. padding: 15px 0 0 40px;
  18323. }
  18324. .detail_content {
  18325. line-height: 2pc;
  18326. width: 90%;
  18327. margin: 0 auto;
  18328. padding-top: 30px;
  18329. text-indent: 30px;
  18330. overflow: auto;
  18331. height: 200px;
  18332. }
  18333. .score_box >>> .el-rate {
  18334. margin-left: 10px;
  18335. }
  18336. .dialog_change >>> .el-dialog {
  18337. border-radius: 5px;
  18338. }
  18339. .dialog_change >>> .el-dialog__header {
  18340. background: #f2f2f2;
  18341. text-align: center;
  18342. }
  18343. .dialog_change >>> .el-dialog__title {
  18344. line-height: 5px;
  18345. }
  18346. .dialog_change >>> .el-dialog__body {
  18347. background: #fff;
  18348. padding: 10px 20px;
  18349. }
  18350. .score_box {
  18351. display: flex;
  18352. align-items: center;
  18353. margin-bottom: 18px;
  18354. margin-top: 20px;
  18355. }
  18356. .up_photo {
  18357. width: 120px;
  18358. cursor: pointer;
  18359. margin-top: 10px;
  18360. }
  18361. .up_photo2 {
  18362. width: 180px;
  18363. box-sizing: border-box;
  18364. min-width: 180px;
  18365. height: 180px;
  18366. max-height: 180px;
  18367. min-height: 180px;
  18368. cursor: pointer;
  18369. display: flex;
  18370. flex-direction: column;
  18371. align-items: center;
  18372. justify-content: center;
  18373. background: rgb(242, 246, 255);
  18374. /* padding: 25px; */
  18375. margin-bottom: 10px;
  18376. }
  18377. .up_photo2 img {
  18378. width: 50%;
  18379. height: auto;
  18380. }
  18381. .up_photo2 span {
  18382. color: #898989;
  18383. }
  18384. .plworkBox {
  18385. display: flex;
  18386. align-items: center;
  18387. margin-top: 10px;
  18388. flex-wrap: wrap;
  18389. }
  18390. .upload_send {
  18391. margin: 30px auto 30px;
  18392. width: 60%;
  18393. background: #169bd6;
  18394. text-align: center;
  18395. height: 35px;
  18396. line-height: 35px;
  18397. color: #fff;
  18398. border-radius: 5px;
  18399. cursor: pointer;
  18400. }
  18401. .marginT {
  18402. margin-top: 20px;
  18403. }
  18404. .cd_content_steps {
  18405. display: flex;
  18406. width: 90%;
  18407. justify-content: space-around;
  18408. border-top: 1px solid #eeeeee;
  18409. }
  18410. .cd_steps_box {
  18411. display: flex;
  18412. justify-content: center;
  18413. align-items: center;
  18414. flex-direction: column;
  18415. cursor: pointer;
  18416. }
  18417. .first {
  18418. display: flex;
  18419. align-items: center;
  18420. margin: 15px 0 20px 0;
  18421. font-size: 20px;
  18422. }
  18423. .first > div:nth-child(2) {
  18424. font-size: 16px !important;
  18425. padding-left: 10px;
  18426. line-height: 26px;
  18427. box-sizing: border-box;
  18428. }
  18429. .blue_box_one {
  18430. text-align: center;
  18431. color: #fff;
  18432. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  18433. border-radius: 7px;
  18434. margin: 10px;
  18435. cursor: pointer;
  18436. width: 95%;
  18437. height: 45px;
  18438. display: flex;
  18439. flex-direction: row;
  18440. justify-content: flex-start;
  18441. align-items: center;
  18442. }
  18443. .blue_box_one > div:nth-child(1) {
  18444. line-height: 30px;
  18445. margin: 0 5px 0 10px;
  18446. width: 30%;
  18447. min-width: 70px;
  18448. border-radius: 4px;
  18449. }
  18450. .blue_box_one > div:nth-child(2) {
  18451. white-space: nowrap;
  18452. text-overflow: ellipsis;
  18453. overflow: hidden;
  18454. word-break: break-all;
  18455. width: 70%;
  18456. text-align: left;
  18457. margin-right: 10px;
  18458. max-width: calc(100% - 85px);
  18459. }
  18460. .blue_box_one > div:nth-child(2):hover {
  18461. overflow: hidden;
  18462. text-overflow: ellipsis;
  18463. white-space: nowrap;
  18464. cursor: pointer;
  18465. }
  18466. .upFile {
  18467. margin: 0 auto;
  18468. width: 120px;
  18469. background: #70afdb;
  18470. color: #fff;
  18471. height: 30px;
  18472. text-align: center;
  18473. line-height: 30px;
  18474. border-radius: 5px;
  18475. font-size: 14px;
  18476. cursor: pointer;
  18477. }
  18478. .courseTitle {
  18479. width: 85%;
  18480. margin: 10px auto;
  18481. display: flex;
  18482. flex-direction: row;
  18483. align-items: center;
  18484. justify-content: space-between;
  18485. text-align: center;
  18486. }
  18487. .courseTitle .ctitle {
  18488. font-size: 24px;
  18489. font-weight: bold;
  18490. color: #0e1e33;
  18491. white-space: nowrap;
  18492. overflow: hidden;
  18493. text-overflow: ellipsis;
  18494. }
  18495. .courseTitle .inviteBox {
  18496. font-size: 14px;
  18497. margin-top: 5px;
  18498. color: #a6cbff;
  18499. }
  18500. .courseTitle >>> .el-tooltip {
  18501. width: 100%;
  18502. white-space: nowrap;
  18503. overflow: hidden;
  18504. text-overflow: ellipsis;
  18505. word-break: break-word;
  18506. }
  18507. .ml {
  18508. margin-left: 20px;
  18509. color: #5b7dba;
  18510. border-left: 3px solid #5b7dba;
  18511. padding-left: 5px;
  18512. font-weight: bold;
  18513. }
  18514. .return {
  18515. width: 2rem;
  18516. height: 2rem;
  18517. cursor: pointer;
  18518. }
  18519. .return > img {
  18520. width: 100%;
  18521. height: 100%;
  18522. }
  18523. .returnBtn {
  18524. width: 86px;
  18525. height: 36px;
  18526. background: #3681fc;
  18527. border-radius: 4px;
  18528. color: #fff;
  18529. text-align: center;
  18530. line-height: 36px;
  18531. margin-right: 20px;
  18532. cursor: pointer;
  18533. font-size: 14px;
  18534. font-weight: 400;
  18535. display: flex;
  18536. flex-direction: row;
  18537. flex-wrap: nowrap;
  18538. align-items: center;
  18539. justify-content: center;
  18540. }
  18541. .commentIcon::before,
  18542. .vedioIcon::before,
  18543. .lockIcon::before,
  18544. .returnIcon::before {
  18545. content: "";
  18546. display: block;
  18547. background-size: 100% 100%;
  18548. background-repeat: no-repeat;
  18549. width: 20px;
  18550. height: 20px;
  18551. margin-right: 5px;
  18552. }
  18553. .commentIcon::before {
  18554. background-image: url("../../assets/icon/newIcon/comment.png");
  18555. }
  18556. .vedioIcon::before {
  18557. background-image: url("../../assets/icon/newIcon/vedio.png");
  18558. }
  18559. .lockIcon::before {
  18560. background-image: url("../../assets/icon/newIcon/lock.png");
  18561. }
  18562. .returnIcon::before {
  18563. background-image: url("../../assets/icon/newIcon/return.png");
  18564. }
  18565. .tool {
  18566. display: flex;
  18567. flex-direction: column;
  18568. flex-wrap: nowrap;
  18569. width: 13%;
  18570. margin: 0 30px;
  18571. align-items: center;
  18572. }
  18573. .whiteBIcon {
  18574. width: 150px;
  18575. cursor: pointer;
  18576. }
  18577. .whiteBIcon > img {
  18578. width: 100%;
  18579. height: 100%;
  18580. }
  18581. .mask {
  18582. background-color: rgba(0, 0, 0, 0);
  18583. position: fixed;
  18584. top: 0;
  18585. left: 0;
  18586. width: 100%;
  18587. height: 100%;
  18588. z-index: 20000;
  18589. display: flex;
  18590. align-items: center;
  18591. justify-content: center;
  18592. }
  18593. .progressBox {
  18594. width: 500px;
  18595. height: 180px;
  18596. background: #fff;
  18597. border-radius: 10px;
  18598. box-shadow: 0 0 6px 1px #bfbfbf;
  18599. display: flex;
  18600. align-items: center;
  18601. justify-content: center;
  18602. flex-direction: column;
  18603. position: relative;
  18604. color: #6c6c6c;
  18605. }
  18606. .progressBox >>> .el-progress-bar__outer {
  18607. background-color: #d1dfff !important;
  18608. }
  18609. .progressBox .lbox {
  18610. height: 50px;
  18611. font-size: 19px;
  18612. display: flex;
  18613. align-items: center;
  18614. color: #747474;
  18615. }
  18616. .progressBox .lbox img {
  18617. width: 40px;
  18618. margin-right: 20px;
  18619. }
  18620. .closeCss {
  18621. position: absolute;
  18622. top: 8px;
  18623. right: 8px;
  18624. cursor: pointer;
  18625. width: 20px;
  18626. height: 20px;
  18627. }
  18628. .closeCss > img {
  18629. width: 100%;
  18630. height: 100%;
  18631. }
  18632. .uploadVedio {
  18633. display: flex;
  18634. flex-direction: column;
  18635. flex-wrap: nowrap;
  18636. justify-content: center;
  18637. align-items: center;
  18638. margin: 0 15px 10px 0;
  18639. }
  18640. .uploadVedio > img {
  18641. width: 30px;
  18642. height: 30px;
  18643. }
  18644. .uploadVedio > span {
  18645. white-space: nowrap;
  18646. overflow: hidden;
  18647. text-overflow: ellipsis;
  18648. width: 75px;
  18649. margin-top: 7px;
  18650. }
  18651. .picName {
  18652. white-space: nowrap;
  18653. overflow: hidden;
  18654. text-overflow: ellipsis;
  18655. width: 75px;
  18656. margin-top: 7px;
  18657. }
  18658. .new_top {
  18659. display: flex;
  18660. background: #fff;
  18661. flex-direction: row;
  18662. justify-content: flex-start;
  18663. align-items: center;
  18664. height: 60px;
  18665. position: relative;
  18666. }
  18667. .new_top::before {
  18668. content: "";
  18669. width: 100%;
  18670. height: 20px;
  18671. position: absolute;
  18672. top: -20px;
  18673. display: block;
  18674. background: #f2f2f2;
  18675. }
  18676. .before {
  18677. position: absolute;
  18678. background: #c3dad4;
  18679. width: 6px;
  18680. height: 100%;
  18681. }
  18682. .courseIndex {
  18683. display: flex;
  18684. flex-direction: row;
  18685. align-items: center;
  18686. width: calc(100% - 600px);
  18687. }
  18688. .courseIndex > div:nth-child(1) {
  18689. margin: 0 0 0 10px;
  18690. font-size: 24px;
  18691. min-width: 100px;
  18692. font-weight: bold;
  18693. border-left: 4px solid #3363b9;
  18694. height: 35px;
  18695. text-align: center;
  18696. line-height: 35px;
  18697. }
  18698. .courseIndex > div:nth-child(2) {
  18699. font-size: 23px;
  18700. /* width: 300px; */
  18701. max-width: calc(100% - 180px);
  18702. white-space: nowrap;
  18703. overflow: hidden;
  18704. text-overflow: ellipsis;
  18705. }
  18706. .courseIndex > div:nth-child(3) {
  18707. border-bottom: 1px solid #d7d7d7;
  18708. padding-bottom: 5px;
  18709. background: #49a0f0;
  18710. width: 55px;
  18711. min-width: 55px;
  18712. border-radius: 5px;
  18713. color: #fff;
  18714. text-align: center;
  18715. height: 20px;
  18716. line-height: 26px;
  18717. font-size: 14px;
  18718. margin: 0 0 0 10px;
  18719. }
  18720. .course_text {
  18721. padding: 20px 0 0 15px;
  18722. text-indent: 30px;
  18723. width: 80%;
  18724. min-height: 20px;
  18725. }
  18726. .vedioList {
  18727. background: #f2f2f2;
  18728. border: 1px solid #ececec;
  18729. /* width: 38.8%; */
  18730. width: 300px;
  18731. height: 445px;
  18732. border-radius: 10px;
  18733. overflow: hidden;
  18734. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  18735. }
  18736. .vedioNav {
  18737. margin: 10px 0 0 15px;
  18738. border-bottom: 1px solid #d7d7d7;
  18739. padding-bottom: 5px;
  18740. background: #96d1ff;
  18741. width: 55px;
  18742. min-width: 55px;
  18743. border-radius: 5px;
  18744. color: #fff;
  18745. text-align: center;
  18746. height: 20px;
  18747. line-height: 26px;
  18748. font-size: 14px;
  18749. }
  18750. .queTop {
  18751. display: flex;
  18752. padding: 20px 0 20px 30px;
  18753. width: 100%;
  18754. flex-direction: row;
  18755. justify-content: flex-start;
  18756. align-items: center;
  18757. box-sizing: border-box;
  18758. }
  18759. .queTopTitle {
  18760. display: flex;
  18761. flex-direction: row;
  18762. flex-wrap: nowrap;
  18763. align-items: center;
  18764. font-weight: bold;
  18765. font-size: 20px;
  18766. color: rgb(14, 30, 51);
  18767. }
  18768. .queTopTitle::before {
  18769. content: "";
  18770. width: 2px;
  18771. height: 22px;
  18772. background: #3681fc;
  18773. border-radius: 3px;
  18774. display: block;
  18775. margin: 2px 6px 0 0;
  18776. }
  18777. .queTopRight {
  18778. display: flex;
  18779. flex-direction: row;
  18780. flex-wrap: nowrap;
  18781. align-items: center;
  18782. }
  18783. .queTopClose {
  18784. margin-right: 30px;
  18785. cursor: pointer;
  18786. position: relative;
  18787. display: flex;
  18788. }
  18789. .closeImg,
  18790. .openImg {
  18791. width: 25px;
  18792. height: 25px;
  18793. position: absolute;
  18794. right: -20px;
  18795. top: -1px;
  18796. }
  18797. .closeImg > img,
  18798. .openImg > img {
  18799. width: 100%;
  18800. height: 100%;
  18801. }
  18802. .question {
  18803. width: 40px;
  18804. margin-right: 10px;
  18805. margin-top: 7px;
  18806. }
  18807. .queTitle {
  18808. margin-left: 5px;
  18809. font-size: 25px;
  18810. display: flex;
  18811. align-items: center;
  18812. }
  18813. .addEditor {
  18814. width: 100px;
  18815. height: 30px;
  18816. background: #42cda6;
  18817. color: #fff;
  18818. border-radius: 5px;
  18819. text-align: center;
  18820. line-height: 30px;
  18821. box-shadow: 1px 3px 6px 1px #bfbfbf;
  18822. cursor: pointer;
  18823. }
  18824. .vedioName {
  18825. /* text-overflow: ellipsis;
  18826. top: 8px;
  18827. font-size: 14px;
  18828. overflow: hidden;
  18829. width: 100%;
  18830. word-break: break-all;
  18831. white-space: nowrap; */
  18832. cursor: pointer;
  18833. margin: 0px 0px 10px 5px;
  18834. white-space: nowrap;
  18835. overflow: hidden;
  18836. text-overflow: ellipsis;
  18837. width: 100%;
  18838. }
  18839. .vedioTime {
  18840. width: 35px;
  18841. position: absolute;
  18842. color: #fff;
  18843. bottom: 0px;
  18844. right: 0px;
  18845. text-align: center;
  18846. background: #46411f;
  18847. height: 20px;
  18848. font-size: 14px;
  18849. line-height: 20px;
  18850. }
  18851. .homework {
  18852. width: 200px;
  18853. display: flex;
  18854. flex-direction: column;
  18855. flex-wrap: nowrap;
  18856. align-items: center;
  18857. cursor: pointer;
  18858. }
  18859. .homebox {
  18860. display: flex;
  18861. flex-wrap: wrap;
  18862. flex-direction: row;
  18863. justify-content: flex-start;
  18864. align-items: center;
  18865. padding: 15px 0;
  18866. }
  18867. .isChooseActive {
  18868. color: #3e88f4;
  18869. border-bottom: 2px solid #2f80f3;
  18870. }
  18871. .chooseWho {
  18872. display: flex;
  18873. width: 100%;
  18874. flex-direction: row;
  18875. flex-wrap: nowrap;
  18876. justify-content: flex-start;
  18877. padding-bottom: 10px;
  18878. }
  18879. .chooseWho > div {
  18880. cursor: pointer;
  18881. padding-bottom: 10px;
  18882. margin: 0 30px 0 0;
  18883. font-weight: 400;
  18884. color: #0e1e33;
  18885. }
  18886. .addPoint > div > img {
  18887. cursor: pointer;
  18888. margin: 0 10px;
  18889. width: 85px;
  18890. border-radius: 15px;
  18891. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  18892. }
  18893. .addPoint > div {
  18894. display: flex;
  18895. flex-direction: column;
  18896. flex-wrap: nowrap;
  18897. align-items: center;
  18898. }
  18899. .isBorder > div {
  18900. margin: 0 0 10px 0;
  18901. align-items: flex-start !important;
  18902. }
  18903. .noiframeBox {
  18904. display: flex;
  18905. flex-wrap: wrap;
  18906. }
  18907. .iframeBox iframe {
  18908. width: 100%;
  18909. height: 800px;
  18910. border: none;
  18911. margin-bottom: 20px;
  18912. border: 1px solid #ccc;
  18913. }
  18914. .upload_toolBtn {
  18915. background: #6b92c9;
  18916. color: #fff;
  18917. width: 110px;
  18918. text-align: center;
  18919. height: 35px;
  18920. line-height: 35px;
  18921. font-size: 14px;
  18922. border-radius: 5px;
  18923. cursor: pointer;
  18924. position: absolute;
  18925. right: 10px;
  18926. bottom: 0;
  18927. }
  18928. .binfo_input,
  18929. .pj {
  18930. font: inherit;
  18931. color: currentColor;
  18932. width: 100%;
  18933. margin: 0;
  18934. padding: 15px 14px;
  18935. display: block;
  18936. min-width: 0;
  18937. outline: none;
  18938. box-sizing: content-box;
  18939. background: none;
  18940. -webkit-tap-highlight-color: transparent;
  18941. border: 1px solid rgba(0, 0, 0, 0.23);
  18942. border-radius: 4px;
  18943. box-sizing: border-box;
  18944. resize: none;
  18945. }
  18946. .binfo_input:focus-visible {
  18947. border: 1px solid rgba(61, 103, 188);
  18948. }
  18949. .dialog_diy >>> .el-dialog__header,
  18950. .dialog_diy1 >>> .el-dialog__header {
  18951. background: #454545 !important;
  18952. padding: 15px 20px;
  18953. }
  18954. .dialog_diy >>> .el-dialog__title,
  18955. .dialog_diy1 >>> .el-dialog__title {
  18956. color: #fff;
  18957. }
  18958. .dialog_diy >>> .el-dialog__headerbtn,
  18959. .dialog_diy1 >>> .el-dialog__headerbtn {
  18960. top: 19px;
  18961. }
  18962. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  18963. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  18964. color: #fff;
  18965. }
  18966. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  18967. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  18968. color: #fff;
  18969. }
  18970. .dialog_diy1 >>> .el-dialog__body {
  18971. padding: 0;
  18972. }
  18973. .dialog_diy >>> .el-dialog__body,
  18974. .dialog_diy >>> .el-dialog__footer,
  18975. .dialog_diy1 >>> .el-dialog__footer {
  18976. background: #fafafa;
  18977. }
  18978. .a_addBox {
  18979. margin: 10px 0;
  18980. background: #fff;
  18981. padding: 15px;
  18982. }
  18983. .a_add_box {
  18984. border-bottom: 2px solid #eee;
  18985. padding-bottom: 10px;
  18986. }
  18987. .a_add_head {
  18988. display: flex;
  18989. align-items: flex-start;
  18990. /* justify-content: space-between; */
  18991. flex-direction: column;
  18992. /* flex-direction: row; */
  18993. margin: 10px 0 20px 0;
  18994. font-size: 18px;
  18995. width: 100%;
  18996. }
  18997. .a_add_head .a_add_head_input {
  18998. width: 300px;
  18999. }
  19000. .a_add_head .a_add_head_div {
  19001. display: flex;
  19002. align-items: center;
  19003. justify-content: space-between;
  19004. }
  19005. .a_add_body {
  19006. display: flex;
  19007. align-items: center;
  19008. }
  19009. .a_add_input {
  19010. display: flex;
  19011. align-items: center;
  19012. flex-wrap: wrap;
  19013. }
  19014. .a_add_input >>> el-radio-group {
  19015. margin: 10px 0;
  19016. }
  19017. .a_add_input >>> .el-radio,
  19018. .a_add_input >>> .el-checkbox {
  19019. margin-bottom: 10px;
  19020. display: flex;
  19021. flex-direction: row;
  19022. flex-wrap: nowrap;
  19023. align-items: center;
  19024. }
  19025. .redioStyle >>> .el-radio__label {
  19026. font-size: 18px;
  19027. }
  19028. .redioStyle >>> .el-radio__label > span,
  19029. .redioStyle >>> .el-checkbox__label > span {
  19030. word-break: break-all;
  19031. white-space: normal;
  19032. }
  19033. .redioStyle >>> .el-checkbox__label {
  19034. font-size: 18px;
  19035. }
  19036. .toolHeng2 {
  19037. width: 100%;
  19038. box-sizing: border-box;
  19039. }
  19040. .toolHeng {
  19041. display: flex;
  19042. flex-direction: row;
  19043. flex-wrap: wrap;
  19044. justify-content: flex-start;
  19045. align-items: center;
  19046. width: 100%;
  19047. }
  19048. .toolHeng > div {
  19049. padding-left: 20px;
  19050. }
  19051. .isWidth {
  19052. width: 20%;
  19053. }
  19054. .textTitle {
  19055. display: flex;
  19056. flex-direction: row;
  19057. flex-wrap: nowrap;
  19058. align-items: center;
  19059. width: 95%;
  19060. }
  19061. .textTitle >>> .el-form-item__label {
  19062. font-size: 22px;
  19063. color: #918f8f;
  19064. width: 100px;
  19065. }
  19066. .textTitle >>> .el-form-item__content {
  19067. width: calc(100% - 100px);
  19068. }
  19069. .textCss >>> .el-dialog {
  19070. width: 800px !important;
  19071. height: 400px;
  19072. background: #fafafa;
  19073. }
  19074. .textCss >>> .el-dialog__body {
  19075. margin: 55px 8% 0 8%;
  19076. padding: 0 !important;
  19077. }
  19078. .textCss >>> .el-dialog__footer {
  19079. padding-top: 38px;
  19080. }
  19081. .toolsCss >>> .el-dialog__body {
  19082. padding: 20px;
  19083. }
  19084. .lineCss >>> .el-dialog__body {
  19085. display: flex;
  19086. flex-direction: row;
  19087. align-items: center;
  19088. justify-content: center;
  19089. }
  19090. .newNav {
  19091. display: flex;
  19092. flex-direction: row;
  19093. align-items: baseline;
  19094. justify-content: flex-start;
  19095. }
  19096. .navText {
  19097. cursor: pointer;
  19098. white-space: nowrap;
  19099. overflow: hidden;
  19100. text-overflow: ellipsis;
  19101. width: 220px;
  19102. padding: 0 10px;
  19103. font-weight: 400;
  19104. color: #0e1e33;
  19105. }
  19106. .noVedio {
  19107. display: flex;
  19108. flex-direction: row;
  19109. justify-content: center;
  19110. align-content: center;
  19111. }
  19112. .noNavText {
  19113. cursor: pointer;
  19114. margin: 0px 0px 10px 5px;
  19115. width: 112px;
  19116. }
  19117. .listNoVedio {
  19118. margin: 0 0 0 30px;
  19119. width: 97%;
  19120. }
  19121. .video-player >>> .video-js {
  19122. height: 100%;
  19123. }
  19124. .hangVedioList {
  19125. width: 90% !important;
  19126. height: 150px !important;
  19127. margin: 20px 0 0 30px;
  19128. }
  19129. .hangVedio {
  19130. width: 100%;
  19131. height: 170px !important;
  19132. align-items: flex-start !important;
  19133. }
  19134. .hangHand {
  19135. height: 150px !important;
  19136. }
  19137. .twoChild {
  19138. width: 95%;
  19139. margin: 10px;
  19140. border-radius: 5px;
  19141. background: #f2f2f2;
  19142. display: flex;
  19143. flex-direction: column;
  19144. flex-wrap: nowrap;
  19145. justify-content: flex-start;
  19146. align-items: flex-start;
  19147. transition: all 0.5s;
  19148. overflow: hidden;
  19149. height: 0;
  19150. background: #e7f3ff;
  19151. }
  19152. .twoChild > div:nth-child(1) {
  19153. margin-top: 5px;
  19154. }
  19155. .navChild {
  19156. width: 100%;
  19157. cursor: pointer;
  19158. margin-bottom: 10px;
  19159. position: relative;
  19160. }
  19161. .navChild img {
  19162. position: absolute;
  19163. right: 11px;
  19164. width: 15px;
  19165. top: 50%;
  19166. transform: translateY(-50%);
  19167. }
  19168. .navActive {
  19169. height: auto !important;
  19170. overflow: auto !important;
  19171. padding-bottom: 10px;
  19172. }
  19173. .navTask {
  19174. display: flex;
  19175. flex-direction: row;
  19176. flex-wrap: nowrap;
  19177. align-items: center;
  19178. align-content: flex-start;
  19179. height: 40px;
  19180. justify-content: flex-start;
  19181. padding: 0 10px;
  19182. width: 100%;
  19183. box-sizing: border-box;
  19184. }
  19185. .navTaskname {
  19186. white-space: nowrap;
  19187. text-overflow: ellipsis;
  19188. overflow: hidden;
  19189. word-break: break-all;
  19190. padding-left: 5px;
  19191. }
  19192. .openTaskActive {
  19193. color: #4386e6;
  19194. }
  19195. .iframeName {
  19196. margin: 5px 0;
  19197. border-left: 4px solid #41c4a4;
  19198. padding-left: 4px;
  19199. }
  19200. .toolTitle {
  19201. margin: 0px 0px 20px;
  19202. font-size: 20px;
  19203. font-weight: 500;
  19204. border-left: 4px solid #41c4a4;
  19205. padding-left: 4px;
  19206. }
  19207. .cru_selectBox {
  19208. overflow: auto;
  19209. width: 95%;
  19210. margin: 17px auto 0;
  19211. height: calc(100% - 40px - 21px - 20px - 17px);
  19212. }
  19213. .cru_selectBox::-webkit-scrollbar,
  19214. .study_top::-webkit-scrollbar,
  19215. .textContent::-webkit-scrollbar {
  19216. /*滚动条整体样式*/
  19217. width: 6px;
  19218. /*高宽分别对应横竖滚动条的尺寸*/
  19219. height: 6px;
  19220. }
  19221. /*定义滚动条轨道 内阴影+圆角*/
  19222. .cru_selectBox::-webkit-scrollbar-track,
  19223. .study_top::-webkit-scrollbar-track,
  19224. .textContent::-webkit-scrollbar {
  19225. border-radius: 10px;
  19226. background-color: #b8bdc9;
  19227. }
  19228. /*定义滑块 内阴影+圆角*/
  19229. .cru_selectBox::-webkit-scrollbar-thumb,
  19230. .study_top::-webkit-scrollbar-thumb,
  19231. .textContent::-webkit-scrollbar-thumb {
  19232. border-radius: 10px;
  19233. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  19234. background-color: #2c5ab3;
  19235. }
  19236. .vedioBox {
  19237. border-radius: 0 0 20px 20px;
  19238. background: #fff;
  19239. overflow: auto;
  19240. }
  19241. .taskBox {
  19242. width: 95%;
  19243. margin: 0 auto;
  19244. }
  19245. .vedioTaskBox {
  19246. width: 100%;
  19247. display: flex;
  19248. flex-direction: row;
  19249. flex-wrap: nowrap;
  19250. align-items: flex-start;
  19251. position: relative;
  19252. }
  19253. .toolBox {
  19254. padding: 30px 60px 15px;
  19255. display: flex;
  19256. position: relative;
  19257. }
  19258. .btnAll {
  19259. position: absolute;
  19260. right: 0;
  19261. display: flex;
  19262. flex-direction: row;
  19263. flex-wrap: nowrap;
  19264. align-items: center;
  19265. }
  19266. .btnAllNT {
  19267. position: fixed;
  19268. bottom: 50px;
  19269. right: 40px;
  19270. z-index: 999;
  19271. display: flex;
  19272. flex-direction: row;
  19273. }
  19274. .btnAllNT > img {
  19275. cursor: pointer;
  19276. width: 80px;
  19277. }
  19278. /* .vedioTimeBox {
  19279. display: flex;
  19280. flex-direction: row;
  19281. align-items: center;
  19282. flex-wrap: nowrap;
  19283. position: relative;
  19284. } */
  19285. .navBox {
  19286. background: #fff;
  19287. height: calc(100% - 40px);
  19288. overflow-y: auto;
  19289. overflow-x: hidden;
  19290. }
  19291. .tool_work_box {
  19292. width: 100%;
  19293. padding: 0 37px 0;
  19294. box-sizing: border-box;
  19295. }
  19296. .worksBox {
  19297. padding: 5px 0;
  19298. border-bottom: 1px solid #eeeeee;
  19299. }
  19300. .worksBTitle {
  19301. font-size: 20px;
  19302. padding-bottom: 15px;
  19303. border-bottom: 1px solid #eeeeee;
  19304. display: flex;
  19305. align-items: center;
  19306. }
  19307. .greenBox {
  19308. width: 5px;
  19309. height: 30px;
  19310. background: #63b6fa;
  19311. margin-right: 5px;
  19312. }
  19313. .worksDetailBox {
  19314. display: flex;
  19315. width: 100%;
  19316. flex-direction: row;
  19317. flex-wrap: wrap;
  19318. align-items: flex-end;
  19319. justify-content: flex-start;
  19320. padding: 15px 0;
  19321. }
  19322. .works {
  19323. display: flex;
  19324. flex-direction: column;
  19325. flex-wrap: nowrap;
  19326. align-items: flex-start;
  19327. justify-content: flex-start;
  19328. align-content: center;
  19329. max-width: 240px;
  19330. width: calc(100% / 3 - 10px);
  19331. height: auto;
  19332. margin-right: 10px;
  19333. margin-bottom: 10px;
  19334. overflow: hidden;
  19335. height: 140px;
  19336. box-shadow: 0 0 6px 1px #dfdada;
  19337. border-radius: 15px;
  19338. }
  19339. .workImg {
  19340. width: 100%;
  19341. /* height: calc(100% - 40px); */
  19342. height: 105px;
  19343. position: relative;
  19344. }
  19345. .workImg > img {
  19346. width: 100%;
  19347. height: 100%;
  19348. object-fit: contain;
  19349. cursor: pointer;
  19350. }
  19351. .worksName {
  19352. height: 40px;
  19353. line-height: 40px;
  19354. display: flex;
  19355. width: 100%;
  19356. flex-direction: row;
  19357. flex-wrap: nowrap;
  19358. justify-content: space-between;
  19359. align-items: center;
  19360. margin: 0 0 0 10px;
  19361. }
  19362. .worksName > div:nth-child(1) {
  19363. width: 110px;
  19364. white-space: nowrap;
  19365. overflow: hidden;
  19366. text-overflow: ellipsis;
  19367. }
  19368. .worksName > div:nth-child(2) {
  19369. color: #b7b4b5;
  19370. }
  19371. .noWorksS {
  19372. padding: 15px 0 0;
  19373. display: flex;
  19374. flex-direction: row;
  19375. flex-wrap: wrap;
  19376. align-items: center;
  19377. justify-content: flex-start;
  19378. }
  19379. .noWorksS > div {
  19380. cursor: pointer;
  19381. }
  19382. .noWorksName,
  19383. .isWorksName {
  19384. background: #e1e9fb;
  19385. color: #3383fa;
  19386. width: 90px;
  19387. height: 25px;
  19388. text-align: center;
  19389. line-height: 25px;
  19390. border-radius: 4px;
  19391. margin: 10px 15px 10px 0;
  19392. white-space: nowrap;
  19393. overflow: hidden;
  19394. padding: 5px;
  19395. text-overflow: ellipsis;
  19396. cursor: pointer;
  19397. border: 1px solid #3681fc;
  19398. }
  19399. .noWorksName.isWork {
  19400. background: #e7ebf1 !important;
  19401. border: 1px solid #cad1dc !important;
  19402. color: #acb4bf !important;
  19403. }
  19404. .isWorksName {
  19405. cursor: pointer;
  19406. background: #46a1eb !important;
  19407. width: 100px;
  19408. height: 40px;
  19409. line-height: 40px;
  19410. position: relative;
  19411. }
  19412. .isSelectName,
  19413. .noWorksName:hover {
  19414. background: #3383fa;
  19415. color: #fff;
  19416. border: 1px solid #3383fa;
  19417. }
  19418. .title {
  19419. background: #1e5cc9;
  19420. /* width: 98%; */
  19421. height: 45px;
  19422. color: #fff;
  19423. line-height: 45px;
  19424. padding-left: 20px;
  19425. box-sizing: border-box;
  19426. }
  19427. .textBox {
  19428. font-size: 20px;
  19429. width: 90%;
  19430. display: flex;
  19431. flex-direction: column;
  19432. align-items: center;
  19433. margin: 20px auto 0;
  19434. max-height: 500px;
  19435. overflow: auto;
  19436. }
  19437. .textContent {
  19438. font-size: 18px;
  19439. width: 95%;
  19440. max-width: 95%;
  19441. }
  19442. .answerBg {
  19443. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  19444. background-size: 100% 100%;
  19445. width: 100%;
  19446. height: 100%;
  19447. color: #fff;
  19448. text-align: center;
  19449. display: flex;
  19450. flex-direction: column;
  19451. flex-wrap: nowrap;
  19452. align-items: center;
  19453. position: relative;
  19454. justify-content: center;
  19455. }
  19456. .answerBg > div:nth-child(1) {
  19457. /* font-size: 22px;
  19458. padding: 25px 0 10px; */
  19459. }
  19460. .answerContent {
  19461. width: 215px;
  19462. max-height: 60px;
  19463. word-break: break-all;
  19464. text-align: center;
  19465. /* white-space: nowrap; */
  19466. overflow: hidden;
  19467. text-overflow: ellipsis;
  19468. /* padding: 23px 0 0; */
  19469. -webkit-line-clamp: 3;
  19470. -webkit-box-orient: vertical;
  19471. display: -webkit-box;
  19472. font-size: 15px;
  19473. cursor: pointer;
  19474. }
  19475. .elist_input_box {
  19476. display: flex;
  19477. align-items: flex-start;
  19478. flex-wrap: nowrap;
  19479. padding: 10px 0 15px 30px;
  19480. flex-direction: column;
  19481. }
  19482. .elist_input {
  19483. /* width: 40%; */
  19484. width: 100%;
  19485. }
  19486. .elist_input .elist_input_box input {
  19487. font: inherit;
  19488. color: currentColor;
  19489. width: 200px;
  19490. padding: 8px 14px;
  19491. display: block;
  19492. min-width: 0;
  19493. outline: none;
  19494. border: 1px solid rgba(0, 0, 0, 0.23);
  19495. border-radius: 4px;
  19496. box-sizing: border-box;
  19497. background: #fff;
  19498. margin: 0 20px 0 0;
  19499. }
  19500. .elist_input .elist_input_box span {
  19501. height: 36px;
  19502. line-height: 36px;
  19503. color: rgb(82, 82, 82);
  19504. }
  19505. .elist_input .elist_input_box .remove {
  19506. height: 20px;
  19507. width: 20px;
  19508. background-size: 100% 100%;
  19509. background-position: unset;
  19510. margin-left: 5px;
  19511. }
  19512. .elist_input_box >>> .el-rate {
  19513. display: flex;
  19514. height: 36px;
  19515. align-items: center;
  19516. }
  19517. .elist_input_box .elist_inptu_text {
  19518. min-height: 50px;
  19519. /* width: 500px;
  19520. max-height: 150px; */
  19521. width: 100%;
  19522. line-height: 50px;
  19523. color: rgb(82, 82, 82);
  19524. overflow: auto;
  19525. text-indent: 5px;
  19526. background: #f7f6f9;
  19527. border-radius: 10px;
  19528. }
  19529. .elist_input_box .elist_inptu_text input {
  19530. width: 500px;
  19531. }
  19532. .elist_input_box >>> .el-rate__icon {
  19533. font-size: 24px;
  19534. }
  19535. .isClick {
  19536. background: #4d9def;
  19537. }
  19538. /*定义滚动条轨道 内阴影+圆角*/
  19539. .bzTypeBox::-webkit-scrollbar {
  19540. /*滚动条整体样式*/
  19541. width: 6px;
  19542. /*高宽分别对应横竖滚动条的尺寸*/
  19543. height: 6px;
  19544. }
  19545. /*定义滚动条轨道 内阴影+圆角*/
  19546. .bzTypeBox::-webkit-scrollbar-track {
  19547. border-radius: 10px;
  19548. background-color: rgba(0, 0, 0, 0.1);
  19549. }
  19550. /*定义滑块 内阴影+圆角*/
  19551. .bzTypeBox::-webkit-scrollbar-thumb {
  19552. border-radius: 10px;
  19553. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  19554. background-color: rgba(0, 0, 0, 0.1);
  19555. }
  19556. .choiceBox {
  19557. display: flex;
  19558. margin: 20px 0;
  19559. width: 100%;
  19560. }
  19561. .bzTypeBox {
  19562. display: flex;
  19563. width: 100%;
  19564. overflow: auto;
  19565. white-space: nowrap;
  19566. }
  19567. .bzChild {
  19568. cursor: pointer;
  19569. box-sizing: border-box;
  19570. padding-bottom: 10px;
  19571. font-weight: bold;
  19572. min-width: fit-content;
  19573. }
  19574. .bzChild.active {
  19575. color: #3e88f4;
  19576. border-bottom: 2px solid #2f80f3;
  19577. }
  19578. .bzChild + .bzChild {
  19579. margin-left: 25px;
  19580. }
  19581. .bzBox {
  19582. display: flex;
  19583. flex-direction: row;
  19584. align-items: center;
  19585. }
  19586. .bzBox .yCss {
  19587. width: 14px;
  19588. height: 14px;
  19589. background: #3681fc;
  19590. margin: 0 16px 0 7px;
  19591. border-radius: 50%;
  19592. }
  19593. .bzBox > div:nth-child(2) {
  19594. font-size: 18px;
  19595. font-weight: bold;
  19596. color: #0e1e33;
  19597. }
  19598. .navTitile {
  19599. padding: 0 0px 0 15px;
  19600. font-size: 16px;
  19601. font-weight: bold;
  19602. color: #0e1e33;
  19603. height: 40px;
  19604. line-height: 40px;
  19605. }
  19606. .isTypeOne {
  19607. width: 240px;
  19608. height: 170px;
  19609. /* border: 1px solid #f8f8f8; */
  19610. border-radius: 10px;
  19611. box-shadow: 0 0 6px 1px #dfdada;
  19612. }
  19613. .e_add_top {
  19614. display: flex;
  19615. justify-content: space-between;
  19616. padding: 20px 20px 0 20px;
  19617. border-radius: 3px;
  19618. background: #fff;
  19619. }
  19620. .e_add_title2 {
  19621. display: flex;
  19622. align-items: center;
  19623. }
  19624. .e_add_title2 span {
  19625. width: 40px;
  19626. }
  19627. .e_add_title {
  19628. display: flex;
  19629. align-items: center;
  19630. color: #b8b8b8;
  19631. font-size: 18px;
  19632. position: relative;
  19633. height: 40px;
  19634. }
  19635. .e_add_title span {
  19636. margin-right: 10px;
  19637. }
  19638. .e_add_title .el_input {
  19639. width: 300px;
  19640. }
  19641. .e_add_title >>> .el-input__inner {
  19642. width: 400px;
  19643. }
  19644. .e_add_btn {
  19645. }
  19646. .e_add_content {
  19647. display: flex;
  19648. width: 100%;
  19649. max-width: 650px;
  19650. height: 550px;
  19651. }
  19652. .e_add_list {
  19653. background: #fff;
  19654. height: 500px;
  19655. width: 210px;
  19656. position: relative;
  19657. margin: 15px 5px 0 0;
  19658. flex-shrink: 0;
  19659. display: flex;
  19660. flex-direction: column;
  19661. }
  19662. .e_add_list_title {
  19663. font-size: 20px;
  19664. width: 100%;
  19665. box-sizing: border-box;
  19666. padding: 15px 40px;
  19667. text-align: center;
  19668. border-bottom: 1px solid #eaeaea;
  19669. position: relative;
  19670. display: flex;
  19671. align-items: center;
  19672. justify-content: center;
  19673. height: 57px;
  19674. background: #f6f6f6;
  19675. }
  19676. .e_add_list_title span {
  19677. overflow: hidden;
  19678. white-space: nowrap;
  19679. text-overflow: ellipsis;
  19680. }
  19681. .e_add_list_title img {
  19682. position: absolute;
  19683. right: 15px;
  19684. width: 25px;
  19685. cursor: pointer;
  19686. top: 50%;
  19687. transform: translateY(-50%);
  19688. }
  19689. .e_add_list_body {
  19690. height: calc(100% - 187px);
  19691. overflow: auto;
  19692. }
  19693. .e_add_list_child {
  19694. width: 100%;
  19695. display: flex;
  19696. align-items: center;
  19697. justify-content: center;
  19698. position: relative;
  19699. box-sizing: border-box;
  19700. padding: 15px 40px;
  19701. text-align: center;
  19702. }
  19703. .e_add_list_child span {
  19704. overflow: hidden;
  19705. white-space: nowrap;
  19706. text-overflow: ellipsis;
  19707. cursor: pointer;
  19708. }
  19709. .e_add_list_child img {
  19710. position: absolute;
  19711. right: 10px;
  19712. width: 21px;
  19713. cursor: pointer;
  19714. top: 50%;
  19715. transform: translateY(-50%);
  19716. }
  19717. .e_add_list_child + .e_add_list_child {
  19718. border-top: 1px solid #eaeaea;
  19719. }
  19720. .e_add_list_child .active {
  19721. color: #409eff;
  19722. }
  19723. .e_add_list_btn {
  19724. position: absolute;
  19725. bottom: 0;
  19726. height: 50px;
  19727. background: rgb(120, 120, 254);
  19728. width: 100%;
  19729. color: #fff;
  19730. font-size: 16px;
  19731. text-align: center;
  19732. line-height: 50px;
  19733. cursor: pointer;
  19734. }
  19735. .e_add_list_detail {
  19736. position: absolute;
  19737. bottom: 0;
  19738. height: 130px;
  19739. background: rgb(120, 120, 254);
  19740. width: 100%;
  19741. color: #fff;
  19742. font-size: 16px;
  19743. display: flex;
  19744. align-items: center;
  19745. justify-content: center;
  19746. }
  19747. .e_add_list_detail textarea {
  19748. height: 90%;
  19749. width: 95%;
  19750. border: none;
  19751. resize: none;
  19752. outline: none;
  19753. padding: 5px;
  19754. box-sizing: border-box;
  19755. }
  19756. .e_add_list_pbox {
  19757. width: 100%;
  19758. max-width: 650px;
  19759. /* height: 600px; */
  19760. }
  19761. .e_add_list_pbox_title {
  19762. height: 50px;
  19763. background: #fff;
  19764. display: flex;
  19765. align-items: center;
  19766. width: 100%;
  19767. box-sizing: border-box;
  19768. padding: 0 20px;
  19769. }
  19770. .type_title {
  19771. font-size: 18px;
  19772. font-weight: 700;
  19773. }
  19774. .type_content {
  19775. font-size: 16px;
  19776. margin-left: 30px;
  19777. }
  19778. .type_content span + span {
  19779. margin-left: 20px;
  19780. }
  19781. .type_content span {
  19782. cursor: pointer;
  19783. padding-bottom: 5px;
  19784. box-sizing: border-box;
  19785. }
  19786. .type_content .active {
  19787. color: #409eff;
  19788. border-bottom: 2px solid #409eff;
  19789. }
  19790. .e_add_list_pbox_content {
  19791. height: calc(100% - 50px);
  19792. display: flex;
  19793. align-items: center;
  19794. width: 100%;
  19795. background: #fff;
  19796. }
  19797. .evaCss {
  19798. display: flex;
  19799. flex-direction: row;
  19800. flex-wrap: nowrap;
  19801. align-items: flex-start;
  19802. }
  19803. .cru_line {
  19804. position: absolute;
  19805. bottom: 0px;
  19806. transition: all 0.5s;
  19807. left: 0px;
  19808. width: 125px;
  19809. margin-left: -25px;
  19810. }
  19811. .isNoMessage {
  19812. width: 20%;
  19813. margin: 25% auto 0;
  19814. }
  19815. .isNoMessage > img {
  19816. width: 100%;
  19817. height: 100%;
  19818. }
  19819. .fullStyle >>> .el-dialog__body {
  19820. height: 100% !important;
  19821. }
  19822. .fullStyle >>> .el-dialog,
  19823. .fullStyle {
  19824. width: 100% !important;
  19825. max-width: 100% !important;
  19826. height: 100% !important;
  19827. margin: 0 !important;
  19828. }
  19829. .full_diy >>> .el-dialog {
  19830. margin: 0 !important;
  19831. height: 100%;
  19832. padding: 4px;
  19833. }
  19834. .full_diy >>> .el-dialog__body {
  19835. height: calc(100% - 100px);
  19836. }
  19837. .full_diy2 >>> .el-dialog__body {
  19838. height: calc(100% - 50px);
  19839. padding: 0;
  19840. }
  19841. .switchCss {
  19842. /* width: 100%; */
  19843. display: flex;
  19844. flex-direction: row;
  19845. flex-wrap: nowrap;
  19846. align-items: center;
  19847. /* justify-content: center; */
  19848. }
  19849. .isClickNav {
  19850. color: #499eef;
  19851. }
  19852. .commentImg {
  19853. width: 25px;
  19854. height: 25px;
  19855. cursor: pointer;
  19856. }
  19857. .commentImg > img {
  19858. width: 100%;
  19859. height: 100%;
  19860. }
  19861. .comment {
  19862. background: #f9f9f9;
  19863. border-radius: 0 0 15px 15px;
  19864. display: flex;
  19865. flex-direction: row;
  19866. flex-wrap: nowrap;
  19867. align-items: center;
  19868. justify-content: flex-end;
  19869. height: 35px;
  19870. }
  19871. .commentList {
  19872. display: flex;
  19873. flex-direction: row;
  19874. flex-wrap: nowrap;
  19875. align-items: center;
  19876. justify-content: center;
  19877. align-content: center;
  19878. /* margin-left: 15px; */
  19879. /* margin-left: 8px; */
  19880. }
  19881. .scoreImg {
  19882. width: 17px;
  19883. height: 17px;
  19884. }
  19885. .studentDetail {
  19886. display: flex;
  19887. flex-direction: row;
  19888. flex-wrap: nowrap;
  19889. /* align-items: center; */
  19890. align-items: flex-start;
  19891. }
  19892. .tx {
  19893. width: 50px;
  19894. }
  19895. .tx > img {
  19896. width: 100%;
  19897. height: 100%;
  19898. }
  19899. .nameAndTime {
  19900. display: flex;
  19901. flex-direction: column;
  19902. flex-wrap: nowrap;
  19903. align-items: flex-start;
  19904. margin-left: 10px;
  19905. }
  19906. .worksAnswer {
  19907. color: #4078dd;
  19908. margin: 10px 0;
  19909. font-size: 16px;
  19910. position: relative;
  19911. }
  19912. .worksAnswer > img {
  19913. width: 500px;
  19914. height: 300px;
  19915. object-fit: contain;
  19916. margin: 0 auto;
  19917. display: block;
  19918. }
  19919. .commentTop {
  19920. border-bottom: 1px solid #eaeaea;
  19921. padding-bottom: 10px;
  19922. }
  19923. .commentBox {
  19924. padding-top: 15px;
  19925. }
  19926. .pl {
  19927. font-size: 18px;
  19928. }
  19929. .plPerson {
  19930. width: 100%;
  19931. }
  19932. .plName {
  19933. display: flex;
  19934. flex-direction: row;
  19935. flex-wrap: nowrap;
  19936. align-items: baseline;
  19937. color: #78787a;
  19938. width: 100%;
  19939. }
  19940. .deleteComment {
  19941. cursor: pointer;
  19942. margin-left: auto;
  19943. color: #237ade;
  19944. }
  19945. .plContent {
  19946. margin-top: 5px;
  19947. }
  19948. .evalCss {
  19949. background: #fff;
  19950. font-size: 18px;
  19951. }
  19952. .nav {
  19953. color: #9d9d9d;
  19954. padding: 5px 0 15px 20px;
  19955. }
  19956. .middleBox {
  19957. padding: 5px 0 15px 20px;
  19958. }
  19959. .pfBox {
  19960. padding-bottom: 30px;
  19961. }
  19962. .nameAndrate {
  19963. display: flex;
  19964. flex-direction: row;
  19965. flex-wrap: nowrap;
  19966. align-items: center;
  19967. padding-bottom: 10px;
  19968. height: 30px;
  19969. line-height: 30px;
  19970. }
  19971. .nameAndrate > div {
  19972. margin-left: 10px;
  19973. color: #000;
  19974. height: 30px;
  19975. }
  19976. .nameAndrate >>> .el-rate__icon {
  19977. font-size: 28px !important;
  19978. }
  19979. .pfBox > div:nth-child(2) {
  19980. background: #f7f6f9;
  19981. width: 400px;
  19982. min-height: 45px;
  19983. border-radius: 10px;
  19984. font-size: 16px;
  19985. display: flex;
  19986. flex-wrap: wrap;
  19987. align-items: center;
  19988. padding: 10px 20px;
  19989. box-sizing: border-box;
  19990. color: #000;
  19991. }
  19992. .bz {
  19993. display: flex;
  19994. flex-direction: row;
  19995. flex-wrap: nowrap;
  19996. align-items: flex-start;
  19997. }
  19998. .bz > div {
  19999. padding: 0 10px;
  20000. }
  20001. .select_box2_title {
  20002. background: #fff;
  20003. border-radius: 5px;
  20004. padding: 15px 10px;
  20005. box-sizing: border-box;
  20006. margin-bottom: 10px;
  20007. display: flex;
  20008. flex-direction: row;
  20009. flex-wrap: nowrap;
  20010. align-items: center;
  20011. }
  20012. .select_box2_title > div:nth-child(2) {
  20013. margin-left: 10px;
  20014. color: #c4c4c4;
  20015. }
  20016. .select_box2_box {
  20017. display: flex;
  20018. height: 500px;
  20019. }
  20020. .select_box2_img {
  20021. width: calc(100% - 310px);
  20022. height: 100%;
  20023. overflow: auto;
  20024. background: #fff;
  20025. border-radius: 5px;
  20026. }
  20027. .select_box2_img img {
  20028. width: 100%;
  20029. }
  20030. .select_box2_answer {
  20031. background: #fff;
  20032. margin-left: 10px;
  20033. border-radius: 5px;
  20034. width: 300px;
  20035. overflow: auto;
  20036. height: 90%;
  20037. display: flex;
  20038. flex-direction: column;
  20039. align-items: flex-start;
  20040. padding-top: 10px;
  20041. box-sizing: border-box;
  20042. position: relative;
  20043. }
  20044. .select_answer_title {
  20045. padding: 0 0 15px 20px;
  20046. color: #c4c4c4;
  20047. }
  20048. .select_box2_answer_box {
  20049. margin: 0 0 10px 20px;
  20050. width: 85%;
  20051. display: flex;
  20052. flex-direction: row;
  20053. flex-wrap: nowrap;
  20054. align-items: center;
  20055. }
  20056. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  20057. color: #000;
  20058. }
  20059. .upAnswerCss {
  20060. position: absolute;
  20061. bottom: 15px;
  20062. right: 15px;
  20063. }
  20064. .upAnswerCss >>> .el-button {
  20065. width: 95px;
  20066. height: 35px;
  20067. line-height: 35px;
  20068. padding: 0;
  20069. }
  20070. .rightWidthCss {
  20071. width: 60%;
  20072. display: flex;
  20073. flex-direction: row;
  20074. align-items: flex-start;
  20075. }
  20076. .rightAnswer {
  20077. display: flex;
  20078. flex-direction: row;
  20079. flex-wrap: nowrap;
  20080. align-items: center;
  20081. color: red;
  20082. margin-bottom: 31px;
  20083. }
  20084. .rightAnswerCss {
  20085. display: flex;
  20086. flex-direction: column;
  20087. flex-wrap: nowrap;
  20088. padding-top: 60px;
  20089. }
  20090. .blueCss {
  20091. color: #767de1;
  20092. margin-left: 10px;
  20093. }
  20094. .redCss {
  20095. color: red;
  20096. }
  20097. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  20098. color: rgb(0 123 255) !important;
  20099. }
  20100. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  20101. color: rgb(0 123 255) !important;
  20102. }
  20103. .zuoyeYulan {
  20104. padding-top: 15px;
  20105. font-size: 18px;
  20106. display: flex;
  20107. align-items: flex-end;
  20108. }
  20109. .buttonA {
  20110. margin-left: 10px;
  20111. padding: 0;
  20112. }
  20113. .displayBox {
  20114. margin-bottom: 10px;
  20115. display: block;
  20116. border-bottom: 3px solid #eee;
  20117. display: flex;
  20118. align-items: center;
  20119. }
  20120. .easy_comment {
  20121. width: calc(100% - 90px);
  20122. margin-left: 10px;
  20123. display: flex;
  20124. flex-wrap: wrap;
  20125. }
  20126. .easy_comment > div {
  20127. border: 1px solid #4a4a4a;
  20128. color: #666;
  20129. border-radius: 15px;
  20130. padding: 5px 10px;
  20131. font-size: 16px;
  20132. margin-bottom: 10px;
  20133. margin-right: 5px;
  20134. cursor: pointer;
  20135. }
  20136. .easy_comment div:hover {
  20137. border: 1px solid #f7ba2a;
  20138. color: #c69217;
  20139. }
  20140. .xuan_right_box {
  20141. padding: 10px;
  20142. background: rgb(247, 247, 247);
  20143. margin: 10px 12px;
  20144. border-radius: 5px;
  20145. }
  20146. .tool_right_box {
  20147. display: flex;
  20148. align-items: center;
  20149. }
  20150. .tool_right_box + .tool_right_box {
  20151. margin-top: 10px;
  20152. }
  20153. .right_box_xuan {
  20154. background: rgb(0 123 255);
  20155. color: #fff;
  20156. border-radius: 5px;
  20157. padding: 5px;
  20158. margin-left: 10px;
  20159. min-width: 95px;
  20160. }
  20161. .pButton:hover {
  20162. opacity: 1 !important;
  20163. }
  20164. .pButton {
  20165. position: fixed;
  20166. /* right: 5%; */
  20167. /* bottom: 5%; */
  20168. color: #fff;
  20169. /* width: 50px;
  20170. height: 50px; */
  20171. /* border-radius: 50%; */
  20172. text-align: center;
  20173. /* line-height: 50px; */
  20174. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  20175. cursor: pointer;
  20176. z-index: 999;
  20177. right: 20px;
  20178. top: 110px;
  20179. width: 50px;
  20180. height: 50px;
  20181. background: #fff;
  20182. display: flex;
  20183. align-items: center;
  20184. justify-content: center;
  20185. box-shadow: 0px 0 8px 2px #c5c5c5;
  20186. border-radius: 5px;
  20187. }
  20188. .pzClass {
  20189. width: calc(100% - 340px);
  20190. }
  20191. .newDialogCss {
  20192. /* position: fixed;
  20193. right: 5%;
  20194. top: 50%;
  20195. width: 340px;
  20196. transform: translateY(-50%);
  20197. height: 60%;
  20198. box-shadow: 0px 0 8px 0px #555555;
  20199. border-radius: 15px;
  20200. z-index: 999; */
  20201. position: fixed;
  20202. right: 20px;
  20203. top: 101px;
  20204. width: 330px;
  20205. height: calc(100% - 80px);
  20206. z-index: 999;
  20207. background: #fff;
  20208. border-top-right-radius: 0px;
  20209. border-bottom-right-radius: 0px;
  20210. overflow: hidden;
  20211. }
  20212. .pzTop {
  20213. color: #fff;
  20214. background: #000;
  20215. display: flex;
  20216. flex-direction: row;
  20217. flex-wrap: nowrap;
  20218. align-items: center;
  20219. justify-content: space-between;
  20220. height: 40px;
  20221. border-radius: 15px 15px 0 0;
  20222. }
  20223. .pzTop2 .checkbox {
  20224. display: flex;
  20225. align-items: center;
  20226. padding: 5px 30px;
  20227. flex: 0 0 auto;
  20228. font-weight: bold;
  20229. border-bottom: 1px solid #eee;
  20230. justify-content: space-between;
  20231. }
  20232. .pzTop2 .check {
  20233. text-align: center;
  20234. cursor: pointer;
  20235. box-sizing: border-box;
  20236. display: flex;
  20237. }
  20238. .pzTop2 img {
  20239. width: 25px;
  20240. cursor: pointer;
  20241. }
  20242. .pzTop > div:nth-child(1) {
  20243. padding-left: 10px;
  20244. }
  20245. .pzTop > div:nth-child(2) {
  20246. width: 15px;
  20247. height: 15px;
  20248. padding-right: 10px;
  20249. cursor: pointer;
  20250. }
  20251. .pzTop > div:nth-child(2) > img {
  20252. width: 100%;
  20253. height: 100%;
  20254. }
  20255. .pzBox,
  20256. .noPzBox {
  20257. height: calc(100% - 60px);
  20258. /* background: #ededed; */
  20259. background: #fff;
  20260. /* border-radius: 0 0 15px 15px; */
  20261. }
  20262. .noPzBox {
  20263. display: flex;
  20264. flex-direction: column;
  20265. flex-wrap: nowrap;
  20266. justify-content: center;
  20267. align-items: center;
  20268. }
  20269. .pzList {
  20270. background: #f7f7f7;
  20271. width: 90%;
  20272. margin: 0 auto 15px;
  20273. border-radius: 5px;
  20274. }
  20275. .pzNavTop {
  20276. display: flex;
  20277. flex-direction: row;
  20278. flex-wrap: nowrap;
  20279. padding: 10px 10px 0 10px;
  20280. align-items: center;
  20281. }
  20282. .pzDelete {
  20283. cursor: pointer;
  20284. margin-left: auto;
  20285. font-size: 14px;
  20286. color: #afafaf;
  20287. }
  20288. .pzNavTop > div:nth-child(1) {
  20289. background: #3760af;
  20290. width: 35px;
  20291. height: 35px;
  20292. color: #fff;
  20293. text-align: center;
  20294. line-height: 35px;
  20295. border-radius: 50%;
  20296. font-size: 14px;
  20297. }
  20298. .pzNavTop > div:nth-child(2) {
  20299. font-size: 18px;
  20300. color: #959595;
  20301. margin-left: 5px;
  20302. }
  20303. .pzContent {
  20304. padding: 10px;
  20305. word-break: break-word;
  20306. }
  20307. .pzContent audio {
  20308. width: 100%;
  20309. }
  20310. .pzContent audio::-webkit-media-controls-panel {
  20311. background: #fff;
  20312. }
  20313. .pzContent >>> img {
  20314. max-width: 100%;
  20315. }
  20316. .pzListBox {
  20317. padding-top: 15px;
  20318. height: calc(100% - 110px);
  20319. overflow: auto;
  20320. }
  20321. .addPzButton {
  20322. position: relative;
  20323. margin-top: 3px;
  20324. width: 100%;
  20325. }
  20326. .addPzButton .img1 {
  20327. position: absolute;
  20328. top: 50%;
  20329. right: 25px;
  20330. transform: translateY(-50%);
  20331. height: 100%;
  20332. display: flex;
  20333. align-items: center;
  20334. }
  20335. .addPzButton .img1 div {
  20336. display: flex;
  20337. }
  20338. .addPzButton .img1 div img {
  20339. width: 28px;
  20340. margin-left: 10px;
  20341. cursor: pointer;
  20342. }
  20343. .addPzButton .img1 div span {
  20344. font-size: 14px;
  20345. margin: 4px 0 0 3px;
  20346. color: #afafaf;
  20347. }
  20348. .addPz {
  20349. background: #4b79ce;
  20350. width: 100px;
  20351. color: #fff;
  20352. font-size: 12px;
  20353. height: 30px;
  20354. margin: 0 auto;
  20355. text-align: center;
  20356. line-height: 30px;
  20357. border-radius: 10px;
  20358. cursor: pointer;
  20359. }
  20360. .addDialogCss {
  20361. position: fixed;
  20362. right: 37%;
  20363. top: 50%;
  20364. width: 600px;
  20365. transform: translateY(-50%);
  20366. height: 70%;
  20367. min-height: 450px;
  20368. box-shadow: 0px 0 8px 0px #555555;
  20369. border-radius: 15px;
  20370. z-index: 999;
  20371. }
  20372. .teacherPz {
  20373. display: flex;
  20374. flex-direction: row;
  20375. align-items: center;
  20376. flex-wrap: nowrap;
  20377. }
  20378. .teacherPzImg {
  20379. width: 30px;
  20380. height: 30px;
  20381. }
  20382. .teacherPzImg > img {
  20383. width: 100%;
  20384. height: 100%;
  20385. }
  20386. .addPzBox {
  20387. height: calc(100% - 40px);
  20388. background: #ededed;
  20389. }
  20390. .pzAudioClass {
  20391. margin: 15px 14px;
  20392. background: #fff;
  20393. height: 100%;
  20394. display: flex;
  20395. justify-content: center;
  20396. align-items: center;
  20397. }
  20398. .pzConText {
  20399. width: 95%;
  20400. height: 100%;
  20401. margin: 10px auto 0;
  20402. border: none;
  20403. background: #fff;
  20404. border-radius: 0px;
  20405. }
  20406. .pzConText >>> .text {
  20407. height: calc(100% - 82px);
  20408. }
  20409. .addTextCss {
  20410. background: #4b79ce;
  20411. width: 80px;
  20412. height: 30px;
  20413. text-align: center;
  20414. color: #fff;
  20415. line-height: 30px;
  20416. border-radius: 10px;
  20417. margin: 10px auto 0;
  20418. cursor: pointer;
  20419. }
  20420. .pzConText:focus-visible {
  20421. border: none !important;
  20422. }
  20423. .maxWidth {
  20424. width: 1000px;
  20425. }
  20426. .noPz {
  20427. width: 150px;
  20428. margin: 0 auto 20%;
  20429. }
  20430. .noPz > img {
  20431. width: 100%;
  20432. height: 100%;
  20433. }
  20434. .pzList .time {
  20435. text-align: right;
  20436. box-sizing: border-box;
  20437. padding: 0 10px 10px 0px;
  20438. color: #949494;
  20439. font-size: 14px;
  20440. }
  20441. /* code 样式 */
  20442. .cont {
  20443. /* -webkit-user-modify: read-write; */
  20444. overflow-wrap: break-word;
  20445. -webkit-line-break: after-white-space;
  20446. }
  20447. /* table 样式 */
  20448. .cont >>> table {
  20449. border-top: 1px solid #ccc;
  20450. border-left: 1px solid #ccc;
  20451. }
  20452. .cont >>> table td,
  20453. .cont >>> table th {
  20454. border-bottom: 1px solid #ccc;
  20455. border-right: 1px solid #ccc;
  20456. /* padding: 20px 5px; */
  20457. padding: 5px 10px;
  20458. max-width: 0px;
  20459. height: 30px;
  20460. vertical-align: baseline;
  20461. box-sizing: border-box;
  20462. }
  20463. .cont >>> table th {
  20464. border-bottom: 2px solid #ccc;
  20465. text-align: center;
  20466. }
  20467. /* blockquote 样式 */
  20468. .cont >>> blockquote {
  20469. display: block;
  20470. border-left: 8px solid #d0e5f2;
  20471. padding: 5px 10px;
  20472. margin: 10px 0;
  20473. line-height: 1.4;
  20474. font-size: 100%;
  20475. background-color: #f1f1f1;
  20476. }
  20477. /* code 样式 */
  20478. .cont >>> code {
  20479. display: inline-block;
  20480. /* *display: inline; */
  20481. zoom: 1;
  20482. background-color: #f1f1f1;
  20483. border-radius: 3px;
  20484. padding: 3px 5px;
  20485. margin: 0 3px;
  20486. }
  20487. .cont >>> pre code {
  20488. display: block;
  20489. }
  20490. /* ul ol 样式 */
  20491. .cont >>> ul,
  20492. ol {
  20493. margin: 10px 0 10px 20px;
  20494. }
  20495. .addPzCheck {
  20496. display: flex;
  20497. flex-direction: row;
  20498. flex-wrap: nowrap;
  20499. padding: 10px 15px 0;
  20500. }
  20501. .addPzCheck span {
  20502. cursor: pointer;
  20503. padding-bottom: 5px;
  20504. font-weight: bold;
  20505. }
  20506. .addPzCheck span + span {
  20507. margin-left: 10px;
  20508. }
  20509. .addPzCheck .isChooseActive {
  20510. color: #3e88f4;
  20511. border-bottom: 2px solid #2f80f3;
  20512. }
  20513. .scoreBox,
  20514. .scoreDetailBox {
  20515. display: flex;
  20516. align-items: center;
  20517. justify-content: flex-start;
  20518. margin-top: 20px;
  20519. font-size: 18px;
  20520. width: 100%;
  20521. }
  20522. .scoreBox .t,
  20523. .scoreDetailBox .t {
  20524. margin-right: 10px;
  20525. width: 100px;
  20526. text-align: right;
  20527. }
  20528. .scoreDetailBox {
  20529. align-items: flex-start;
  20530. }
  20531. .scoreDetailBox >>> .el-textarea {
  20532. width: calc(100% - 200px);
  20533. }
  20534. .scoreBox >>> .el-input {
  20535. width: 130px;
  20536. font-size: 38px;
  20537. }
  20538. .scoreBox >>> .el-input__inner {
  20539. height: 60px;
  20540. }
  20541. .answerScore {
  20542. position: absolute;
  20543. top: 10px;
  20544. right: 10px;
  20545. background: #0000008f;
  20546. border-radius: 5px;
  20547. padding: 3px 5px;
  20548. font-size: 14px;
  20549. color: #fff;
  20550. cursor: pointer;
  20551. }
  20552. .open_box .switch_box {
  20553. width: 100%;
  20554. margin: 0 auto;
  20555. display: flex;
  20556. justify-content: space-between;
  20557. }
  20558. .open_box .switch_box + .switch_box {
  20559. margin-top: 10px;
  20560. }
  20561. .deleteImg {
  20562. width: 25px !important;
  20563. height: 25px !important;
  20564. cursor: pointer;
  20565. position: absolute;
  20566. top: 10px;
  20567. right: 10px;
  20568. }
  20569. .deleteImg2 {
  20570. width: 15px !important;
  20571. height: 15px !important;
  20572. top: 5px;
  20573. right: 5px;
  20574. }
  20575. .rightW {
  20576. right: 40px;
  20577. }
  20578. .drawPBox {
  20579. display: flex;
  20580. flex-direction: column;
  20581. position: relative;
  20582. }
  20583. .drawPBox span {
  20584. font-size: 18px;
  20585. color: #606266;
  20586. padding-bottom: 10px;
  20587. margin: 10px 0;
  20588. border-bottom: 1px solid #eaeaea;
  20589. }
  20590. .drawPBox img {
  20591. width: 500px;
  20592. height: 300px;
  20593. object-fit: contain;
  20594. cursor: pointer;
  20595. margin: 0 auto;
  20596. }
  20597. .sentenBox {
  20598. background: #fff;
  20599. height: 450px;
  20600. overflow: auto;
  20601. background-image: url("../../assets/icon/conSentences/stuBg.png");
  20602. background-position: 102%;
  20603. background-repeat: no-repeat;
  20604. background-size: 60%;
  20605. }
  20606. .addSen {
  20607. background: #409efe;
  20608. width: 90px;
  20609. color: #fff;
  20610. height: 35px;
  20611. text-align: center;
  20612. line-height: 35px;
  20613. border-radius: 5px;
  20614. float: right;
  20615. margin: 10px 20px 0 0;
  20616. cursor: pointer;
  20617. }
  20618. .sentenTop {
  20619. display: flex;
  20620. flex-direction: row;
  20621. flex-wrap: nowrap;
  20622. align-items: center;
  20623. padding: 55px 0 0 20px;
  20624. box-sizing: border-box;
  20625. }
  20626. .sentenTop > div:nth-child(2) {
  20627. width: 300px;
  20628. margin: 0 15px;
  20629. }
  20630. .sentenTop > div:nth-child(3) {
  20631. background: #409efe;
  20632. color: #fff;
  20633. width: 65px;
  20634. height: 35px;
  20635. text-align: center;
  20636. line-height: 35px;
  20637. border-radius: 5px;
  20638. cursor: pointer;
  20639. }
  20640. .cardList,
  20641. .cardList1 {
  20642. padding: 10px 0 10px 0;
  20643. display: flex;
  20644. flex-direction: row;
  20645. flex-wrap: wrap;
  20646. align-items: center;
  20647. box-sizing: border-box;
  20648. border-bottom: 1px solid #f4f4f4;
  20649. width: 98%;
  20650. margin: 0 auto;
  20651. min-width: 60%;
  20652. max-width: 85%;
  20653. }
  20654. .cardList1 {
  20655. padding: 10px 0 10px 10px !important;
  20656. margin: 0 !important;
  20657. }
  20658. .cardBox {
  20659. display: flex;
  20660. flex-direction: row;
  20661. flex-wrap: wrap;
  20662. align-items: center;
  20663. align-content: center;
  20664. }
  20665. .cardBox > div {
  20666. margin-bottom: 10px;
  20667. }
  20668. .isCard,
  20669. .isChooseCard,
  20670. .noCard,
  20671. .isCard1 {
  20672. width: 130px;
  20673. height: 60px;
  20674. text-align: center;
  20675. line-height: 60px;
  20676. font-size: 20px;
  20677. cursor: pointer;
  20678. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  20679. background-size: cover;
  20680. transition: all 2s;
  20681. margin-right: 20px;
  20682. }
  20683. .isCard > div,
  20684. .noCard > div,
  20685. .isCard1 > div {
  20686. white-space: nowrap;
  20687. overflow: hidden;
  20688. text-overflow: ellipsis;
  20689. width: 75%;
  20690. margin: 0 auto;
  20691. }
  20692. .noCard {
  20693. background-image: none;
  20694. }
  20695. .isCard1 {
  20696. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  20697. }
  20698. .isChooseCard {
  20699. background-image: none;
  20700. border: 1px dashed #b9b9b9;
  20701. border-radius: 10px;
  20702. }
  20703. .card {
  20704. width: 130px;
  20705. height: 60px;
  20706. }
  20707. .card > img {
  20708. width: 100%;
  20709. height: 100%;
  20710. }
  20711. .rightCardBox {
  20712. margin: 10px 0 0 10px;
  20713. }
  20714. .rightCardBox > div:nth-child(1) {
  20715. margin-bottom: 10px;
  20716. }
  20717. .cardCss {
  20718. display: flex;
  20719. flex-direction: column;
  20720. flex-wrap: nowrap;
  20721. align-items: center;
  20722. border-bottom: 3px solid #b4c3d3;
  20723. padding: 0 0 5px 0;
  20724. margin-right: 10px;
  20725. }
  20726. .cardCss > div:nth-child(2) {
  20727. background: #5b7b9d;
  20728. color: #fff;
  20729. width: 20px;
  20730. height: 20px;
  20731. border-radius: 50%;
  20732. text-align: center;
  20733. line-height: 20px;
  20734. }
  20735. .isWrong {
  20736. display: flex;
  20737. flex-direction: row;
  20738. flex-wrap: nowrap;
  20739. align-content: center;
  20740. align-items: center;
  20741. }
  20742. .answerRight {
  20743. width: 25%;
  20744. }
  20745. .isTj {
  20746. display: flex;
  20747. flex-direction: row;
  20748. flex-wrap: nowrap;
  20749. align-items: center;
  20750. }
  20751. .isTj > div:nth-child(2) {
  20752. color: #727070;
  20753. margin-left: 10px;
  20754. }
  20755. .isTjImg {
  20756. width: 30px;
  20757. height: 30px;
  20758. }
  20759. .isTjImg > img {
  20760. width: 100%;
  20761. height: 100%;
  20762. }
  20763. .cardAnswerBox {
  20764. font-size: 18px;
  20765. width: 97%;
  20766. border: 5px;
  20767. padding: 0;
  20768. border-radius: 5px;
  20769. margin: 10px auto;
  20770. word-break: break-word;
  20771. }
  20772. .w_name {
  20773. margin-bottom: 10px;
  20774. }
  20775. .w_name span {
  20776. font-size: 16px;
  20777. }
  20778. .w_teachert {
  20779. width: 50px !important;
  20780. position: absolute;
  20781. height: auto !important;
  20782. z-index: 10;
  20783. right: 25px;
  20784. top: -25px;
  20785. }
  20786. .group_workBox {
  20787. }
  20788. .group_workBox + .group_workBox {
  20789. margin-top: 20px;
  20790. }
  20791. .group_box {
  20792. padding-bottom: 20px;
  20793. border-bottom: 2px solid #f0f0f0;
  20794. }
  20795. .group_title {
  20796. display: flex;
  20797. align-items: center;
  20798. justify-content: space-between;
  20799. }
  20800. .group_name {
  20801. background-image: url(../../assets/icon/groupN.png);
  20802. width: 220px;
  20803. background-size: 100% 100%;
  20804. height: 67px;
  20805. padding: 0 20px 0 43px;
  20806. box-sizing: border-box;
  20807. line-height: 63px;
  20808. color: #fff;
  20809. overflow: hidden;
  20810. white-space: nowrap;
  20811. text-overflow: ellipsis;
  20812. }
  20813. .group_work {
  20814. width: 100%;
  20815. padding: 0 10px;
  20816. box-sizing: border-box;
  20817. display: flex;
  20818. flex-wrap: wrap;
  20819. }
  20820. .g_d_box {
  20821. display: flex;
  20822. flex-flow: wrap;
  20823. justify-content: space-around;
  20824. }
  20825. .g_d_box .isChair {
  20826. background-image: url(../../assets/avatar.png) !important;
  20827. }
  20828. .g_d_group {
  20829. width: 500px;
  20830. margin-bottom: 80px;
  20831. }
  20832. .g_d_group_chair {
  20833. display: flex;
  20834. align-items: center;
  20835. justify-content: center;
  20836. }
  20837. .g_d_group_chair > div + div {
  20838. margin-left: 30px;
  20839. }
  20840. .g_d_group_chair > div,
  20841. .g_d_group_chair2 > div {
  20842. display: flex;
  20843. flex-direction: column;
  20844. align-items: center;
  20845. }
  20846. .g_d_group_chair > div > span:nth-child(1),
  20847. .g_d_group_chair2 > div > span:nth-child(1) {
  20848. background-image: url(../../assets/icon/chair.png);
  20849. width: 50px;
  20850. height: 50px;
  20851. display: block;
  20852. background-size: 100% 100%;
  20853. }
  20854. .g_d_group_tableBox {
  20855. display: flex;
  20856. align-items: center;
  20857. justify-content: center;
  20858. }
  20859. .g_d_group_chair2 {
  20860. display: flex;
  20861. flex-direction: column;
  20862. align-items: center;
  20863. justify-content: center;
  20864. }
  20865. .g_d_group_chair2 > div + div {
  20866. margin-top: 10px;
  20867. }
  20868. .g_d_group_table {
  20869. background-image: url(../../assets/icon/groupBg.png);
  20870. width: 354px;
  20871. height: 196px;
  20872. background-size: 100% 100%;
  20873. display: flex;
  20874. align-items: center;
  20875. justify-content: center;
  20876. flex-direction: column;
  20877. color: #fff;
  20878. }
  20879. .g_d_group_table > div:nth-child(1) {
  20880. font-size: 24px;
  20881. margin-bottom: 5px;
  20882. }
  20883. .g_d_group_table > div:nth-child(2) div {
  20884. cursor: pointer;
  20885. background: #2e77bf;
  20886. padding: 4px 10px;
  20887. border-radius: 5px;
  20888. }
  20889. .groupBox {
  20890. }
  20891. .groupContent + .groupContent {
  20892. margin-top: 30px;
  20893. }
  20894. .groupTitle {
  20895. font-size: 24px;
  20896. color: rgb(80, 80, 80);
  20897. margin-bottom: 20px;
  20898. }
  20899. .groupName {
  20900. display: flex;
  20901. align-items: center;
  20902. }
  20903. .groupn {
  20904. font-size: 15px;
  20905. margin-right: 10px;
  20906. }
  20907. .groupName + .groupName {
  20908. margin-top: 15px;
  20909. }
  20910. .groupBtn {
  20911. margin-left: 10px;
  20912. }
  20913. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  20914. text-align: left;
  20915. }
  20916. .g_d_btnBox {
  20917. display: flex;
  20918. justify-content: flex-end;
  20919. align-items: flex-end;
  20920. margin-bottom: 20px;
  20921. }
  20922. .updateChair {
  20923. position: relative;
  20924. }
  20925. .updateChairBtn {
  20926. position: absolute;
  20927. width: 50px;
  20928. height: 50px;
  20929. overflow: hidden;
  20930. /* display: flex; */
  20931. align-items: center;
  20932. justify-content: center;
  20933. background: #00000087;
  20934. color: #fff;
  20935. border-radius: 50px;
  20936. display: none;
  20937. cursor: pointer;
  20938. }
  20939. .updateChair:hover .updateChairBtn {
  20940. display: flex;
  20941. }
  20942. .group_staic_box {
  20943. display: flex;
  20944. padding: 30px 40px 10px;
  20945. flex-wrap: wrap;
  20946. }
  20947. .group_staic {
  20948. /* width: 50%; */
  20949. margin-bottom: 20px;
  20950. display: flex;
  20951. align-items: center;
  20952. }
  20953. .group_staic span:nth-child(1) {
  20954. width: 150px;
  20955. text-align: right;
  20956. margin-right: 15px;
  20957. }
  20958. .group_staic span:nth-child(2) {
  20959. background: rgb(0 123 255);
  20960. color: #fff;
  20961. border-radius: 5px;
  20962. padding: 5px;
  20963. }
  20964. .codeFileBox {
  20965. height: 300px;
  20966. background: #fff;
  20967. display: flex;
  20968. align-items: center;
  20969. justify-content: center;
  20970. }
  20971. .codeFileBox img {
  20972. width: 200px;
  20973. margin: 0;
  20974. height: auto;
  20975. }
  20976. .codeFileBox div {
  20977. background: rgb(80, 142, 226);
  20978. color: #fff;
  20979. padding: 10px 20px;
  20980. border-radius: 25px;
  20981. cursor: pointer;
  20982. margin-left: 15px;
  20983. }
  20984. .radioBox {
  20985. display: flex;
  20986. flex-direction: column;
  20987. flex-wrap: nowrap;
  20988. align-items: flex-start;
  20989. }
  20990. .radioBox > div {
  20991. margin: 10px 0 0 10px;
  20992. }
  20993. /* .radioBox >>> .el-radio__input,
  20994. .radioBox >>> .el-checkbox__inner {
  20995. margin-left: 10px;
  20996. } */
  20997. .radioBox >>> .el-radio__label,
  20998. .radioBox >>> .el-checkbox__label {
  20999. display: flex;
  21000. align-items: center;
  21001. }
  21002. .radioBox >>> .el-radio__label > span {
  21003. width: 100%;
  21004. display: -webkit-box;
  21005. overflow: hidden;
  21006. white-space: normal !important;
  21007. text-overflow: ellipsis;
  21008. word-wrap: break-word;
  21009. }
  21010. .inImg {
  21011. width: 100px;
  21012. cursor: pointer;
  21013. }
  21014. .inImg > img {
  21015. width: 100%;
  21016. height: 100%;
  21017. object-fit: cover;
  21018. }
  21019. .timuImgBox {
  21020. margin: 10px 0;
  21021. display: flex;
  21022. flex-direction: column;
  21023. flex-wrap: wrap;
  21024. align-items: flex-start;
  21025. }
  21026. .timuImg {
  21027. width: 150px;
  21028. margin: 5px 0;
  21029. cursor: pointer;
  21030. }
  21031. .timuImg > img {
  21032. width: 100%;
  21033. height: 100%;
  21034. object-fit: cover;
  21035. }
  21036. .worksTop {
  21037. display: flex;
  21038. flex-direction: row;
  21039. align-items: flex-end;
  21040. }
  21041. .corOpen {
  21042. margin: 0 0 0 10px;
  21043. font-size: 14px;
  21044. cursor: pointer;
  21045. color: #505050;
  21046. }
  21047. .corOpen:hover {
  21048. color: #499eef;
  21049. }
  21050. .navCorOpenBox {
  21051. display: flex;
  21052. flex-direction: row;
  21053. align-items: center;
  21054. justify-content: space-between;
  21055. height: 55px;
  21056. background: #ffffff;
  21057. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  21058. border-radius: 8px 8px 0px 0px;
  21059. z-index: 9;
  21060. position: relative;
  21061. }
  21062. .navCorOpen {
  21063. padding-right: 15px;
  21064. cursor: pointer;
  21065. width: 20px;
  21066. display: flex;
  21067. }
  21068. .navCorOpen > img {
  21069. width: 100%;
  21070. height: 100%;
  21071. }
  21072. .mlImg {
  21073. width: 25px !important;
  21074. min-width: 25px;
  21075. cursor: pointer;
  21076. margin-top: 5px;
  21077. }
  21078. .mlImg > img {
  21079. width: 100%;
  21080. height: 100%;
  21081. }
  21082. .navLeftCss {
  21083. width: 100% !important;
  21084. left: 0 !important;
  21085. }
  21086. .isContentCss {
  21087. width: 100% !important;
  21088. }
  21089. .isAllWidth {
  21090. width: 100% !important;
  21091. }
  21092. .toolBoxSteps {
  21093. position: absolute;
  21094. top: 50%;
  21095. transform: translateY(-50%);
  21096. cursor: pointer;
  21097. width: 60px;
  21098. display: flex;
  21099. align-items: center;
  21100. justify-content: center;
  21101. }
  21102. .toolBoxSteps:nth-child(1) > img,
  21103. .toolBoxSteps:nth-child(2) > img {
  21104. width: 24px;
  21105. }
  21106. .toolBoxSteps:nth-child(1) {
  21107. left: 0;
  21108. }
  21109. .toolBoxSteps:nth-child(2) {
  21110. right: 0;
  21111. }
  21112. .isChooseActive {
  21113. color: #3681fc !important;
  21114. font-weight: bold !important;
  21115. }
  21116. .tool_box {
  21117. width: 100%;
  21118. }
  21119. .tool_type_box {
  21120. display: flex;
  21121. flex-direction: row;
  21122. align-items: baseline;
  21123. flex-wrap: nowrap;
  21124. justify-content: flex-start;
  21125. position: relative;
  21126. }
  21127. .toolSort {
  21128. display: flex;
  21129. flex-direction: row;
  21130. flex-wrap: wrap;
  21131. justify-content: flex-start;
  21132. align-items: flex-start;
  21133. }
  21134. .toolSort > div {
  21135. margin: 0 45px 0 0;
  21136. width: auto;
  21137. }
  21138. .tools {
  21139. width: 100%;
  21140. display: flex;
  21141. flex-direction: column;
  21142. flex-wrap: nowrap;
  21143. align-items: flex-start;
  21144. }
  21145. .whiteBIcon {
  21146. width: 80px;
  21147. cursor: pointer;
  21148. display: flex;
  21149. flex-direction: column;
  21150. flex-wrap: nowrap;
  21151. align-items: center;
  21152. }
  21153. .whiteBIcon > img {
  21154. width: 100%;
  21155. height: 100%;
  21156. }
  21157. .whiteBIcon > img {
  21158. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  21159. border-radius: 15px;
  21160. }
  21161. .dia_tool_box {
  21162. display: flex;
  21163. flex-wrap: wrap;
  21164. width: 100%;
  21165. }
  21166. .dia_tool_box > div {
  21167. margin-right: 40px;
  21168. }
  21169. .check {
  21170. /* width: 20px;
  21171. height: 20px; */
  21172. cursor: pointer;
  21173. margin: 10px 0;
  21174. }
  21175. .checkDiv {
  21176. display: flex;
  21177. align-items: center;
  21178. }
  21179. .checkDiv span {
  21180. margin-left: 5px;
  21181. color: #858585;
  21182. }
  21183. .check img {
  21184. width: 20px;
  21185. height: 20px;
  21186. }
  21187. .fileC_box > .fileC_title {
  21188. padding: 10px 5px;
  21189. border-top: 1px solid #cdcdcd;
  21190. font-size: 14px;
  21191. color: #868686;
  21192. width: 88%;
  21193. margin: 0 auto;
  21194. }
  21195. .pl_select_box {
  21196. height: 40px;
  21197. line-height: 40px;
  21198. width: 100%;
  21199. cursor: pointer;
  21200. padding: 0 20px;
  21201. box-sizing: border-box;
  21202. border-radius: 5px;
  21203. border: 1px solid #d6d6d6;
  21204. white-space: nowrap;
  21205. overflow: hidden;
  21206. text-overflow: ellipsis;
  21207. background: #fff;
  21208. text-align: left;
  21209. }
  21210. .stageBoxCss {
  21211. display: flex;
  21212. flex-direction: row;
  21213. flex-wrap: nowrap;
  21214. align-items: center;
  21215. height: 50px;
  21216. border-bottom: 1px solid #e2f5fc;
  21217. cursor: pointer;
  21218. }
  21219. .stageChild {
  21220. height: 0;
  21221. overflow: hidden;
  21222. transition: all 0.5s;
  21223. }
  21224. .navItem {
  21225. background: #f0f4fa;
  21226. border-radius: 8px;
  21227. width: 90%;
  21228. margin: 10px auto 0;
  21229. display: flex;
  21230. flex-direction: row;
  21231. flex-wrap: nowrap;
  21232. justify-content: flex-start;
  21233. align-items: center;
  21234. }
  21235. .navItemList {
  21236. display: flex;
  21237. flex-direction: row;
  21238. flex-wrap: nowrap;
  21239. align-items: center;
  21240. padding: 18px 13px;
  21241. cursor: pointer;
  21242. font-size: 16px;
  21243. font-weight: 400;
  21244. color: #0e1e33;
  21245. justify-content: flex-start;
  21246. width: 100%;
  21247. border-radius: 8px;
  21248. }
  21249. .navItemList > div {
  21250. font-size: 16px;
  21251. font-weight: 400;
  21252. color: #0e1e33;
  21253. }
  21254. .navItemList > div:first-child {
  21255. min-width: 60px;
  21256. }
  21257. .navItemList > div:last-child {
  21258. display: -webkit-box;
  21259. overflow: hidden;
  21260. white-space: normal !important;
  21261. text-overflow: ellipsis;
  21262. word-wrap: break-word;
  21263. -webkit-line-clamp: 2;
  21264. -webkit-box-orient: vertical;
  21265. }
  21266. .isItemList {
  21267. background: #3681fc;
  21268. }
  21269. .isItemList > div {
  21270. color: #fff;
  21271. }
  21272. .navListItem {
  21273. width: 280px;
  21274. height: 50px;
  21275. margin: 0px auto 10px;
  21276. display: flex;
  21277. flex-direction: row;
  21278. flex-wrap: nowrap;
  21279. align-items: center;
  21280. justify-content: space-between;
  21281. background: #f0f4fa;
  21282. border-radius: 6px 6px 6px 6px;
  21283. }
  21284. .downIcon {
  21285. width: 20px;
  21286. height: 20px;
  21287. margin-right: 15px;
  21288. cursor: pointer;
  21289. }
  21290. .downIcon > img {
  21291. width: 100%;
  21292. height: 100%;
  21293. }
  21294. .newButton {
  21295. width: 102px;
  21296. height: 36px;
  21297. background: #e7ebf1;
  21298. border-radius: 4px;
  21299. color: #0e1e33;
  21300. font-weight: 400;
  21301. font-size: 14px;
  21302. border: none;
  21303. float: right;
  21304. margin-left: 10px;
  21305. }
  21306. .pick_box {
  21307. display: flex;
  21308. align-items: flex-start;
  21309. flex-wrap: wrap;
  21310. }
  21311. </style>