studyStudent.vue 694 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <div class="btnAllNT">
  14. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  15. <img
  16. src="../../assets/icon/learn/last.png"
  17. @click="nextOrpreSteps(0)"
  18. />
  19. <img
  20. src="../../assets/icon/learn/next.png"
  21. @click="nextOrpreSteps(1)"
  22. />
  23. <img
  24. src="../../assets/icon/learn/return.png"
  25. @click.stop="
  26. goTo(
  27. '/courseDetail?userid=' +
  28. userid +
  29. '&oid=' +
  30. oid +
  31. '&org=' +
  32. org +
  33. '&cid=' +
  34. classId +
  35. '&courseId=' +
  36. id +
  37. '&tType=' +
  38. tType +
  39. '&screenType=' +
  40. screenType
  41. )
  42. "
  43. />
  44. </div>
  45. <div
  46. class="pButton"
  47. style="
  48. left: 0;
  49. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  50. "
  51. v-if="mlDialog == false"
  52. @click="setContent2(true)"
  53. >
  54. <!-- 批 , getCourseDetail()-->
  55. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  56. </div>
  57. <div class="pb_left" v-else>
  58. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  59. <div
  60. style="border-bottom: 1px solid #cad1dc; padding: 13px 0; width: 100%"
  61. >
  62. <div class="courseTitle">
  63. <div style="max-width: calc(100% - 40px); width: auto">
  64. <div class="ctitle">{{ courseDetail.title }}</div>
  65. </div>
  66. <el-tooltip effect="light" content="收缩" placement="top">
  67. <div class="mlImg" @click="setContent2(false)">
  68. <img src="../../assets/icon/newIcon/mlBtn.png" alt="" />
  69. </div>
  70. </el-tooltip>
  71. </div>
  72. </div>
  73. <div class="cru_selectBox">
  74. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  75. <div class="stageChild" :class="{ navActive: item.isOpen }">
  76. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  77. <div
  78. class="navItem"
  79. :class="{
  80. openTaskActive:
  81. navIndex == taskCount &&
  82. nav.id == navId &&
  83. stageIndex == courseType,
  84. }"
  85. >
  86. <div
  87. @click="openTask(stageIndex, navIndex, nav.id)"
  88. class="navItemList"
  89. :class="{
  90. isItemList:
  91. navIndex == taskCount &&
  92. nav.id == navId &&
  93. stageIndex == courseType,
  94. }"
  95. >
  96. <div>任务{{ navIndex + 1 }}:</div>
  97. <el-tooltip
  98. effect="light"
  99. :content="nav.taskName"
  100. placement="top"
  101. >
  102. <div
  103. :style="{
  104. width:
  105. IsLookOpen && !nav.isLook
  106. ? 'calc(100% - 75px)'
  107. : 'auto',
  108. }"
  109. >
  110. {{ nav.taskName }}
  111. </div>
  112. </el-tooltip>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  121. <div
  122. class="new_top"
  123. style="
  124. position: fixed;
  125. top: 20px;
  126. left: 22%;
  127. width: 77%;
  128. z-index: 999;
  129. border-radius: 12px 12px 0 0;
  130. border-bottom: 1px solid #cad1dc;
  131. padding: 10px 0;
  132. "
  133. :class="{ navLeftCss: !mlDialog }"
  134. >
  135. <div class="courseIndex">
  136. <div>任务{{ taskCount + 1 }}</div>
  137. <el-tooltip
  138. effect="light"
  139. :content="
  140. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  141. "
  142. placement="top"
  143. >
  144. <div>
  145. {{
  146. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  147. .task
  148. }}
  149. </div>
  150. </el-tooltip>
  151. </div>
  152. <div class="btnAll">
  153. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  154. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  155. <div class="returnBtn" @click="refreshCourse">刷新</div>
  156. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  157. 评论
  158. </div>
  159. <!-- <div class="returnBtn" @click="allScrell">全屏</div> -->
  160. <!-- <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  161. 开始录制
  162. </div>
  163. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  164. style="background: #ee5255">
  165. 下载录制
  166. </div>
  167. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  168. 权限
  169. </div> -->
  170. <div
  171. class="returnBtn returnIcon"
  172. @click.stop="
  173. goTo(
  174. '/courseDetail?userid=' +
  175. userid +
  176. '&oid=' +
  177. oid +
  178. '&org=' +
  179. org +
  180. '&cid=' +
  181. classId +
  182. '&courseId=' +
  183. id +
  184. '&tType=' +
  185. tType +
  186. '&screenType=' +
  187. screenType
  188. )
  189. "
  190. >
  191. 返回
  192. </div>
  193. </div>
  194. </div>
  195. <div class="study_top" :class="{ pzClass: pzDialog }">
  196. <div
  197. class="vedioBox"
  198. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  199. >
  200. <div
  201. class="student_head"
  202. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  203. >
  204. <div class="vedioTaskBox">
  205. <div
  206. :class="
  207. contentDialog == false
  208. ? 'box_course isContentCss'
  209. : 'box_course'
  210. "
  211. v-if="
  212. vChapterData.length > 0 &&
  213. vChapterData[0] &&
  214. showType !== ''
  215. "
  216. >
  217. <div class="wheel" style="height: auto" v-if="showType === 0">
  218. <div
  219. class="workd_media"
  220. style="height: 650px; width: calc(100% - 50px)"
  221. >
  222. <video-player
  223. class="video-player vjs-custom-skin"
  224. :class="contentDialog == false ? 'isAllWidth' : ''"
  225. :playsinline="true"
  226. :options="playerO[0]"
  227. @play="onPlayerPlay($event)"
  228. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  229. ></video-player>
  230. </div>
  231. </div>
  232. <div
  233. class="wheel"
  234. v-if="showType == 1"
  235. style="
  236. box-shadow: 0 0 6px 1px #f2f2f2;
  237. width: 95%;
  238. margin: 0 auto;
  239. background: #f1f1f1;
  240. "
  241. >
  242. <div class="title">查看文档</div>
  243. <el-form class="textBox">
  244. <el-form-item class="textTitle">
  245. <div style="font-size: 22px">
  246. {{ text.name }}
  247. </div>
  248. </el-form-item>
  249. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  250. <div v-html="text.url" class="textContent cont"></div>
  251. </el-form>
  252. </div>
  253. <div
  254. class="wheel"
  255. v-if="
  256. pptImgUrl1.indexOf(
  257. 'https://view.officeapps.live.com/op/view.aspx?src='
  258. ) != -1 && showType == 2
  259. "
  260. style="width: 95%; margin: 0 auto"
  261. >
  262. <iframe
  263. style="width: 100%; height: 100%; border: none"
  264. :src="pptImgUrl1"
  265. ></iframe>
  266. </div>
  267. <div
  268. class="wheel"
  269. v-else-if="showType == 2"
  270. style="width: 95%; margin: 0 auto"
  271. >
  272. <iframe
  273. style="width: 100%; height: 100%; border: none"
  274. security="restricted"
  275. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  276. :src="pptImgUrl1"
  277. ></iframe>
  278. </div>
  279. <div
  280. class="wheel"
  281. v-if="showType == 3"
  282. style="width: 95%; margin: 0 auto"
  283. >
  284. <pdf
  285. :pdfUrl="pptImgUrl1"
  286. style="width: 100%; height: 100%; overflow: auto"
  287. ></pdf>
  288. </div>
  289. <div
  290. class="wheel"
  291. v-if="showType == 4"
  292. style="width: 95%; margin: 0 auto"
  293. >
  294. <el-image
  295. :src="pptImgUrl1"
  296. fit="contain"
  297. style="width: 100%; height: 100%; cursor: pointer"
  298. @click="previewImg(pptImgUrl1)"
  299. ></el-image>
  300. </div>
  301. </div>
  302. <div
  303. class="pButton"
  304. style="
  305. position: absolute;
  306. right: 20px;
  307. top: 0;
  308. background: #205cc6;
  309. z-index: 998;
  310. opacity: 0.8;
  311. "
  312. v-if="!contentDialog"
  313. @click="setContent(true)"
  314. >
  315. <!-- 批 -->
  316. <img
  317. src="../../assets/mlBtn.png"
  318. style="width: 25px"
  319. alt=""
  320. />
  321. </div>
  322. <div
  323. v-if="contentDialog == true"
  324. :style="{
  325. width:
  326. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  327. showType === ''
  328. ? 'calc(100%)'
  329. : '300px',
  330. margin:
  331. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  332. showType === ''
  333. ? '0 15px'
  334. : '0 15px 0 0',
  335. }"
  336. >
  337. <div
  338. class="vedioList"
  339. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  340. style="height: 650px"
  341. >
  342. <div class="navCorOpenBox">
  343. <div class="navTitile">内容列表:</div>
  344. <div class="navCorOpen" @click="setContent(false)">
  345. <img src="../../assets/icon/newIcon/mlBtn.png" alt="" />
  346. </div>
  347. </div>
  348. <div class="navBox">
  349. <div
  350. v-show="
  351. vChapterData[0].length > 0 || fileC[0].length > 0
  352. "
  353. style="padding: 10px 0 20px 0"
  354. >
  355. <div
  356. class="vedioTimeBox"
  357. v-for="(vitem, vindex) in vChapterData[0]"
  358. :key="vindex + '1'"
  359. >
  360. <div class="navListItem" v-if="vitem.type == 2">
  361. <div
  362. @click="lookVedio(vitem.url, vindex)"
  363. class="navText"
  364. :class="isClickNav == vindex ? 'isClickNav' : ''"
  365. >
  366. <span v-if="vitem.text">{{ vitem.text }}-</span
  367. >{{ vitem.name }}
  368. </div>
  369. <div class="downIcon" @click="downloadFile2(vitem)">
  370. <img
  371. src="../../assets/icon/newIcon/down.png"
  372. alt
  373. />
  374. </div>
  375. </div>
  376. <div class="navListItem" v-if="vitem.type == 6">
  377. <div
  378. @click="lookText(taskCount, vindex)"
  379. class="navText"
  380. :class="isClickNav == vindex ? 'isClickNav' : ''"
  381. >
  382. {{ vitem.name }}.doc
  383. </div>
  384. <div class="downIcon" @click="downloadFile2(vitem)">
  385. <img
  386. src="../../assets/icon/newIcon/down.png"
  387. alt
  388. />
  389. </div>
  390. </div>
  391. <div class="navListItem" v-if="vitem.type == 8">
  392. <div
  393. @click="doUrl(vitem.url, vindex)"
  394. class="navText"
  395. :class="isClickNav == vindex ? 'isClickNav' : ''"
  396. >
  397. {{ vitem.title ? vitem.title : vitem.url }}
  398. </div>
  399. <div class="downIcon" @click="downloadFile2(vitem)">
  400. <img
  401. src="../../assets/icon/newIcon/down.png"
  402. alt
  403. />
  404. </div>
  405. </div>
  406. <div class="navListItem" v-if="vitem.type == 3">
  407. <div
  408. @click="downFile(vitem, vindex)"
  409. class="navText"
  410. :class="isClickNav == vindex ? 'isClickNav' : ''"
  411. >
  412. <span v-if="vitem.text">{{ vitem.text }}-</span
  413. >{{ vitem.name }}
  414. </div>
  415. <div class="downIcon" @click="downloadFile2(vitem)">
  416. <img
  417. src="../../assets/icon/newIcon/down.png"
  418. alt
  419. />
  420. </div>
  421. </div>
  422. <div class="navListItem" v-if="vitem.type == 12">
  423. <div class="navText" @click="downloadFile2(vitem)">
  424. <span v-if="vitem.text">{{ vitem.text }}-</span
  425. >{{ vitem.name }}
  426. </div>
  427. <div class="downIcon" @click="downloadFile2(vitem)">
  428. <img
  429. src="../../assets/icon/newIcon/down.png"
  430. alt
  431. />
  432. </div>
  433. </div>
  434. <div class="navListItem" v-if="vitem.type == 13">
  435. <div
  436. class="navText"
  437. @click="checkPhoto(vitem, vindex)"
  438. :class="isClickNav == vindex ? 'isClickNav' : ''"
  439. >
  440. {{ vitem.name }}
  441. </div>
  442. <div class="downIcon" @click="downloadFile2(vitem)">
  443. <img
  444. src="../../assets/icon/newIcon/down.png"
  445. alt
  446. />
  447. </div>
  448. </div>
  449. </div>
  450. <div class="fileC_box" v-if="fileC[0].length > 0">
  451. <div class="fileC_title">以下文件不支持预览</div>
  452. <div
  453. class="vedioTimeBox"
  454. v-for="(vitem, vindex) in fileC[0]"
  455. :key="vindex + '1'"
  456. >
  457. <div class="navListItem" v-if="vitem.type == 12">
  458. <div class="navText" style="color: #acb4bf">
  459. <span v-if="vitem.text">{{ vitem.text }}-</span
  460. >{{ vitem.name }}
  461. </div>
  462. <div
  463. class="downIcon"
  464. @click="downloadFile2(vitem)"
  465. >
  466. <img
  467. src="../../assets/icon/newIcon/down.png"
  468. alt
  469. />
  470. </div>
  471. </div>
  472. </div>
  473. </div>
  474. </div>
  475. </div>
  476. </div>
  477. </div>
  478. </div>
  479. <div style="width: calc(100% - 315px)">
  480. <div
  481. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  482. v-if="showType == 2 || showType == 3"
  483. >
  484. <el-button
  485. type="primary"
  486. class="newButton"
  487. @click="checkFileFull(showType, pptImgUrl1)"
  488. >全屏查看</el-button
  489. >
  490. <el-button
  491. type="primary"
  492. class="newButton"
  493. @click="downloadFile(pptImgUrl1)"
  494. v-if="showType != 2"
  495. >文件下载</el-button
  496. >
  497. <el-button
  498. v-if="
  499. showType == 2 &&
  500. pptImgUrl1.indexOf(
  501. 'https://view.officeapps.live.com/op/view.aspx?src='
  502. ) == -1
  503. "
  504. type="primary"
  505. class="newButton"
  506. @click="openLine(pptImgUrl1)"
  507. >打开链接
  508. </el-button>
  509. </div>
  510. <div
  511. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  512. v-if="showType == 1"
  513. >
  514. <el-button
  515. type="primary"
  516. class="newButton"
  517. @click="checkFileFull(showType, text)"
  518. >全屏查看</el-button
  519. >
  520. </div>
  521. </div>
  522. </div>
  523. </div>
  524. <div class="student_body" v-resize="resize">
  525. <div
  526. class="taskBox"
  527. v-if="
  528. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  529. .taskDetail != ''
  530. "
  531. >
  532. <div
  533. style="
  534. display: flex;
  535. flex-wrap: nowrap;
  536. flex-direction: column;
  537. position: relative;
  538. "
  539. >
  540. <div
  541. style="padding: 15px 0; line-height: 29px; font-size: 18px"
  542. class="cont"
  543. v-if="
  544. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  545. .taskDetail != ''
  546. "
  547. v-html="
  548. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  549. .taskDetail
  550. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  551. taskCount
  552. ].taskDetail
  553. : '暂无描述'
  554. "
  555. ></div>
  556. </div>
  557. </div>
  558. <div
  559. class="vedioBox"
  560. v-if="
  561. courseDetail.userid == userid ||
  562. (courseDetail.course_teacher &&
  563. courseDetail.course_teacher.indexOf(userid) != -1)
  564. "
  565. >
  566. <div
  567. class="queTop"
  568. style="
  569. padding: 15px 0 15px 37px;
  570. font-weight: bold;
  571. font-size: 20px;
  572. color: #0e1e33;
  573. "
  574. >
  575. 工具栏
  576. <el-button
  577. style="margin: 0 30px 0 auto"
  578. type="primary"
  579. size="small"
  580. @click="addToolChoose"
  581. >确定</el-button
  582. >
  583. </div>
  584. <div class="tool_work_box">
  585. <div class="tool_box">
  586. <div class="tool_type_box">
  587. <div class="chooseWho">
  588. <!-- <div :class="toolType == 0 ? 'isChooseActive' : ''
  589. " @click="(toolType = 0), $forceUpdate()">
  590. 互动类
  591. </div> -->
  592. <div
  593. :class="toolType == 1 ? 'isChooseActive' : ''"
  594. @click="(toolType = 1), $forceUpdate()"
  595. >
  596. 思维类
  597. </div>
  598. <!-- <div
  599. :class="toolType == 6 ? 'isChooseActive' : ''"
  600. @click="(toolType = 6), $forceUpdate()"
  601. >
  602. 协作类
  603. </div> -->
  604. <div
  605. :class="toolType == 2 ? 'isChooseActive' : ''"
  606. @click="(toolType = 2), $forceUpdate()"
  607. >
  608. 测评类
  609. </div>
  610. <!-- <div
  611. :class="toolType == 7 ? 'isChooseActive' : ''"
  612. @click="(toolType = 7), $forceUpdate()"
  613. >
  614. 评价类
  615. </div> -->
  616. <div
  617. :class="toolType == 3 ? 'isChooseActive' : ''"
  618. @click="(toolType = 3), $forceUpdate()"
  619. >
  620. 学科类
  621. </div>
  622. <!-- <div :class="toolType == 5 ? 'isChooseActive' : ''
  623. " @click="(toolType = 5), $forceUpdate()">
  624. 学科类
  625. </div>
  626. <div :class="toolType == 4 ? 'isChooseActive' : ''
  627. " @click="(toolType = 4), $forceUpdate()">
  628. 其他
  629. </div> -->
  630. </div>
  631. </div>
  632. <div>
  633. <div class="toolSort" v-if="toolType == 0">
  634. <div class="tool">
  635. <div class="whiteBIcon" @click="addTools2(10)">
  636. <img
  637. src="../../assets/icon/thirdToolList/time.png"
  638. alt
  639. />
  640. <div style="margin: 5px 0">倒计时</div>
  641. </div>
  642. <div class="check" @click="addTools2(10)">
  643. <img
  644. src="../../assets/icon/checkNo.png"
  645. alt
  646. v-if="checktoolArray.indexOf(10) == -1"
  647. />
  648. <div class="checkDiv" v-else>
  649. <img
  650. src="../../assets/icon/checkedIs.png"
  651. alt
  652. /><span>已选择</span>
  653. </div>
  654. </div>
  655. </div>
  656. </div>
  657. <div class="toolSort" v-if="toolType == 1">
  658. <div class="tool">
  659. <div class="whiteBIcon" @click="addTools2(7)">
  660. <img
  661. src="../../assets/icon/secondToolList/mindNetwork.png"
  662. alt
  663. />
  664. <div style="margin: 5px 0">思维网格</div>
  665. </div>
  666. <div class="check" @click="addTools2(7)">
  667. <img
  668. src="../../assets/icon/checkNo.png"
  669. alt
  670. v-if="checktoolArray.indexOf(7) == -1"
  671. />
  672. <div class="checkDiv" v-else>
  673. <img
  674. src="../../assets/icon/checkedIs.png"
  675. alt
  676. /><span>已选择</span>
  677. </div>
  678. </div>
  679. </div>
  680. <div class="tool">
  681. <div class="whiteBIcon" @click="addTools2(1)">
  682. <img
  683. src="../../assets/icon/secondToolList/whiteBoard.png"
  684. alt
  685. />
  686. <div style="margin: 5px 0">电子白板</div>
  687. </div>
  688. <div class="check" @click="addTools2(1)">
  689. <img
  690. src="../../assets/icon/checkNo.png"
  691. alt
  692. v-if="checktoolArray.indexOf(1) == -1"
  693. />
  694. <div class="checkDiv" v-else>
  695. <img
  696. src="../../assets/icon/checkedIs.png"
  697. alt
  698. /><span>已选择</span>
  699. </div>
  700. </div>
  701. </div>
  702. <div class="tool">
  703. <div class="whiteBIcon" @click="addTools2(52)">
  704. <img
  705. src="../../assets/icon/fourthToolList/text.png"
  706. alt
  707. />
  708. <div style="margin: 5px 0">文档</div>
  709. </div>
  710. <div class="check" @click="addTools2(52)">
  711. <img
  712. src="../../assets/icon/checkNo.png"
  713. alt
  714. v-if="checktoolArray.indexOf(52) == -1"
  715. />
  716. <div class="checkDiv" v-else>
  717. <img
  718. src="../../assets/icon/checkedIs.png"
  719. alt
  720. /><span>已选择</span>
  721. </div>
  722. </div>
  723. </div>
  724. <div class="tool">
  725. <div class="whiteBIcon" @click="addTools2(3)">
  726. <img
  727. src="../../assets/icon/secondToolList/mindMapping.png"
  728. alt
  729. />
  730. <div style="margin: 5px 0">思维导图</div>
  731. </div>
  732. <div class="check" @click="addTools2(3)">
  733. <img
  734. src="../../assets/icon/checkNo.png"
  735. alt
  736. v-if="checktoolArray.indexOf(3) == -1"
  737. />
  738. <div class="checkDiv" v-else>
  739. <img
  740. src="../../assets/icon/checkedIs.png"
  741. alt
  742. /><span>已选择</span>
  743. </div>
  744. </div>
  745. </div>
  746. <div class="tool">
  747. <div class="whiteBIcon" @click="addTools2(48)">
  748. <img
  749. src="../../assets/icon/fourthToolList/table.png"
  750. alt
  751. />
  752. <div style="margin: 5px 0">表格</div>
  753. </div>
  754. <div class="check" @click="addTools2(48)">
  755. <img
  756. src="../../assets/icon/checkNo.png"
  757. alt
  758. v-if="checktoolArray.indexOf(48) == -1"
  759. />
  760. <div class="checkDiv" v-else>
  761. <img
  762. src="../../assets/icon/checkedIs.png"
  763. alt
  764. /><span>已选择</span>
  765. </div>
  766. </div>
  767. </div>
  768. </div>
  769. <div class="toolSort" v-if="toolType == 6">
  770. <div class="tool">
  771. <div class="whiteBIcon" @click="addTools2(49)">
  772. <img
  773. src="../../assets/icon/fourthToolList/group.png"
  774. alt
  775. />
  776. <div style="margin: 5px 0">学生分组</div>
  777. </div>
  778. <div class="check" @click="addTools2(49)">
  779. <img
  780. src="../../assets/icon/checkNo.png"
  781. alt
  782. v-if="checktoolArray.indexOf(49) == -1"
  783. />
  784. <div class="checkDiv" v-else>
  785. <img
  786. src="../../assets/icon/checkedIs.png"
  787. alt
  788. /><span>已选择</span>
  789. </div>
  790. </div>
  791. </div>
  792. </div>
  793. <div class="toolSort" v-if="toolType == 2">
  794. <div class="tool">
  795. <div class="whiteBIcon" @click="addTools2(16)">
  796. <img
  797. src="../../assets/icon/thirdToolList/work.png"
  798. alt
  799. />
  800. <div style="margin: 5px 0">作业提交</div>
  801. </div>
  802. <div class="check" @click="addTools2(16)">
  803. <img
  804. src="../../assets/icon/checkNo.png"
  805. alt
  806. v-if="checktoolArray.indexOf(16) == -1"
  807. />
  808. <div class="checkDiv" v-else>
  809. <img
  810. src="../../assets/icon/checkedIs.png"
  811. alt
  812. /><span>已选择</span>
  813. </div>
  814. </div>
  815. </div>
  816. <div class="tool">
  817. <div class="whiteBIcon" @click="addTools2(50)">
  818. <img
  819. src="../../assets/icon/thirdToolList/plwork.png"
  820. alt
  821. />
  822. <div style="margin: 5px 0">批量上传</div>
  823. </div>
  824. <div class="check" @click="addTools2(50)">
  825. <img
  826. src="../../assets/icon/checkNo.png"
  827. alt
  828. v-if="checktoolArray.indexOf(50) == -1"
  829. />
  830. <div class="checkDiv" v-else>
  831. <img
  832. src="../../assets/icon/checkedIs.png"
  833. alt
  834. /><span>已选择</span>
  835. </div>
  836. </div>
  837. </div>
  838. </div>
  839. <div class="toolSort" v-if="toolType == 3">
  840. <div class="tool">
  841. <div class="whiteBIcon" @click="addTools2(18)">
  842. <img
  843. src="../../assets/icon/thirdToolList/trainPlatform.png"
  844. alt
  845. />
  846. <div style="margin: 5px 0">训练平台</div>
  847. </div>
  848. <div class="check" @click="addTools2(18)">
  849. <img
  850. src="../../assets/icon/checkNo.png"
  851. alt
  852. v-if="checktoolArray.indexOf(18) == -1"
  853. />
  854. <div class="checkDiv" v-else>
  855. <img
  856. src="../../assets/icon/checkedIs.png"
  857. alt
  858. /><span>已选择</span>
  859. </div>
  860. </div>
  861. </div>
  862. <div class="tool">
  863. <div class="whiteBIcon" @click="addTools2(21)">
  864. <img
  865. src="../../assets/icon/fourthToolList/program.png"
  866. alt
  867. />
  868. <div style="margin: 5px 0">编程平台</div>
  869. </div>
  870. <div class="check" @click="addTools2(21)">
  871. <img
  872. src="../../assets/icon/checkNo.png"
  873. alt
  874. v-if="checktoolArray.indexOf(21) == -1"
  875. />
  876. <div class="checkDiv" v-else>
  877. <img
  878. src="../../assets/icon/checkedIs.png"
  879. alt
  880. /><span>已选择</span>
  881. </div>
  882. </div>
  883. </div>
  884. <div class="tool">
  885. <div class="whiteBIcon" @click="addTools2(22)">
  886. <img
  887. src="../../assets/icon/fourthToolList/AIprogram2.png"
  888. alt
  889. />
  890. <div style="margin: 5px 0">AI体验</div>
  891. </div>
  892. <div class="check" @click="addTools2(22)">
  893. <img
  894. src="../../assets/icon/checkNo.png"
  895. alt
  896. v-if="checktoolArray.indexOf(22) == -1"
  897. />
  898. <div class="checkDiv" v-else>
  899. <img
  900. src="../../assets/icon/checkedIs.png"
  901. alt
  902. /><span>已选择</span>
  903. </div>
  904. </div>
  905. </div>
  906. <div class="tool">
  907. <div class="whiteBIcon" @click="addTools2(23)">
  908. <img
  909. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  910. alt
  911. />
  912. <div style="margin: 5px 0">Python</div>
  913. </div>
  914. <div class="check" @click="addTools2(23)">
  915. <img
  916. src="../../assets/icon/checkNo.png"
  917. alt
  918. v-if="checktoolArray.indexOf(23) == -1"
  919. />
  920. <div class="checkDiv" v-else>
  921. <img
  922. src="../../assets/icon/checkedIs.png"
  923. alt
  924. /><span>已选择</span>
  925. </div>
  926. </div>
  927. </div>
  928. <div class="tool">
  929. <div class="whiteBIcon" @click="addTools2(24)">
  930. <img
  931. src="../../assets/icon/fourthToolList/AIprogram.png"
  932. alt
  933. />
  934. <div style="margin: 5px 0">AI平台</div>
  935. </div>
  936. <div class="check" @click="addTools2(24)">
  937. <img
  938. src="../../assets/icon/checkNo.png"
  939. alt
  940. v-if="checktoolArray.indexOf(24) == -1"
  941. />
  942. <div class="checkDiv" v-else>
  943. <img
  944. src="../../assets/icon/checkedIs.png"
  945. alt
  946. /><span>已选择</span>
  947. </div>
  948. </div>
  949. </div>
  950. <div class="tool">
  951. <div class="whiteBIcon" @click="addTools2(32)">
  952. <img
  953. src="../../assets/icon/thirdToolList/code.png"
  954. alt
  955. />
  956. <div style="margin: 5px 0">源码编辑</div>
  957. </div>
  958. <div class="check" @click="addTools2(32)">
  959. <img
  960. src="../../assets/icon/checkNo.png"
  961. alt
  962. v-if="checktoolArray.indexOf(32) == -1"
  963. />
  964. <div class="checkDiv" v-else>
  965. <img
  966. src="../../assets/icon/checkedIs.png"
  967. alt
  968. /><span>已选择</span>
  969. </div>
  970. </div>
  971. </div>
  972. <div class="tool">
  973. <div class="whiteBIcon" @click="addTools2(57)">
  974. <img
  975. src="../../assets/icon/fourthToolList/cocopi.png"
  976. alt
  977. />
  978. <div style="margin: 5px 0">CocoPi</div>
  979. </div>
  980. <div class="check" @click="addTools2(57)">
  981. <img
  982. src="../../assets/icon/checkNo.png"
  983. alt
  984. v-if="checktoolArray.indexOf(57) == -1"
  985. />
  986. <div class="checkDiv" v-else>
  987. <img
  988. src="../../assets/icon/checkedIs.png"
  989. alt
  990. /><span>已选择</span>
  991. </div>
  992. </div>
  993. </div>
  994. <div class="tool">
  995. <div class="whiteBIcon" @click="addTools2(63)">
  996. <img
  997. src="../../assets/icon/fourthToolList/Wood.png"
  998. alt
  999. />
  1000. <div style="margin: 5px 0">海龟编程</div>
  1001. </div>
  1002. <div class="check" @click="addTools2(63)">
  1003. <img
  1004. src="../../assets/icon/checkNo.png"
  1005. alt
  1006. v-if="checktoolArray.indexOf(63) == -1"
  1007. />
  1008. <div class="checkDiv" v-else>
  1009. <img
  1010. src="../../assets/icon/checkedIs.png"
  1011. alt
  1012. /><span>已选择</span>
  1013. </div>
  1014. </div>
  1015. </div>
  1016. </div>
  1017. <div class="toolSort" v-if="toolType == 7">
  1018. <div class="tool">
  1019. <div class="whiteBIcon" @click="addTools2(40)">
  1020. <img
  1021. src="../../assets/icon/secondToolList/eval.png"
  1022. alt
  1023. />
  1024. <div style="margin: 5px 0">个人评价</div>
  1025. </div>
  1026. <div class="check" @click="addTools2(40)">
  1027. <img
  1028. src="../../assets/icon/checkNo.png"
  1029. alt
  1030. v-if="checktoolArray.indexOf(40) == -1"
  1031. />
  1032. <div class="checkDiv" v-else>
  1033. <img
  1034. src="../../assets/icon/checkedIs.png"
  1035. alt
  1036. /><span>已选择</span>
  1037. </div>
  1038. </div>
  1039. </div>
  1040. </div>
  1041. <div class="toolSort" v-if="toolType == 5">
  1042. <div class="tool">
  1043. <div class="whiteBIcon" @click="addTools2(28)">
  1044. <img
  1045. src="../../assets/icon/secondToolList/translation.png"
  1046. alt
  1047. />
  1048. <div style="margin: 5px 0">翻译</div>
  1049. </div>
  1050. <div class="check" @click="addTools2(28)">
  1051. <img
  1052. src="../../assets/icon/checkNo.png"
  1053. alt
  1054. v-if="checktoolArray.indexOf(28) == -1"
  1055. />
  1056. <div class="checkDiv" v-else>
  1057. <img
  1058. src="../../assets/icon/checkedIs.png"
  1059. alt
  1060. /><span>已选择</span>
  1061. </div>
  1062. </div>
  1063. </div>
  1064. <div class="tool">
  1065. <div class="whiteBIcon" @click="addTools2(37)">
  1066. <img
  1067. src="../../assets/icon/secondToolList/mohe.png"
  1068. alt
  1069. />
  1070. <div style="margin: 5px 0">魔盒识字</div>
  1071. </div>
  1072. <div class="check" @click="addTools2(37)">
  1073. <img
  1074. src="../../assets/icon/checkNo.png"
  1075. alt
  1076. v-if="checktoolArray.indexOf(37) == -1"
  1077. />
  1078. <div class="checkDiv" v-else>
  1079. <img
  1080. src="../../assets/icon/checkedIs.png"
  1081. alt
  1082. /><span>已选择</span>
  1083. </div>
  1084. </div>
  1085. </div>
  1086. <div class="tool">
  1087. <div class="whiteBIcon" @click="addTools2(38)">
  1088. <img
  1089. src="../../assets/icon/secondToolList/24game.png"
  1090. alt
  1091. />
  1092. <div style="margin: 5px 0">24点</div>
  1093. </div>
  1094. <div class="check" @click="addTools2(38)">
  1095. <img
  1096. src="../../assets/icon/checkNo.png"
  1097. alt
  1098. v-if="checktoolArray.indexOf(38) == -1"
  1099. />
  1100. <div class="checkDiv" v-else>
  1101. <img
  1102. src="../../assets/icon/checkedIs.png"
  1103. alt
  1104. /><span>已选择</span>
  1105. </div>
  1106. </div>
  1107. </div>
  1108. <div class="tool">
  1109. <div class="whiteBIcon" @click="addTools2(31)">
  1110. <img
  1111. src="../../assets/icon/secondToolList/networkPanel.png"
  1112. alt
  1113. />
  1114. <div style="margin: 5px 0">数学画板</div>
  1115. </div>
  1116. <div class="check" @click="addTools2(31)">
  1117. <img
  1118. src="../../assets/icon/checkNo.png"
  1119. alt
  1120. v-if="checktoolArray.indexOf(31) == -1"
  1121. />
  1122. <div class="checkDiv" v-else>
  1123. <img
  1124. src="../../assets/icon/checkedIs.png"
  1125. alt
  1126. /><span>已选择</span>
  1127. </div>
  1128. </div>
  1129. </div>
  1130. <div class="tool">
  1131. <div class="whiteBIcon" @click="addTools2(39)">
  1132. <img
  1133. src="../../assets/icon/secondToolList/GeoGebra.png"
  1134. alt
  1135. />
  1136. <div style="margin: 5px 0">GeoGebra</div>
  1137. </div>
  1138. <div class="check" @click="addTools2(39)">
  1139. <img
  1140. src="../../assets/icon/checkNo.png"
  1141. alt
  1142. v-if="checktoolArray.indexOf(39) == -1"
  1143. />
  1144. <div class="checkDiv" v-else>
  1145. <img
  1146. src="../../assets/icon/checkedIs.png"
  1147. alt
  1148. /><span>已选择</span>
  1149. </div>
  1150. </div>
  1151. </div>
  1152. <div class="tool">
  1153. <div class="whiteBIcon" @click="addTools2(58)">
  1154. <img
  1155. src="../../assets/icon/fourthToolList/car.png"
  1156. alt
  1157. />
  1158. <div style="margin: 5px 0">模拟驾驶</div>
  1159. </div>
  1160. <div class="check" @click="addTools2(58)">
  1161. <img
  1162. src="../../assets/icon/checkNo.png"
  1163. alt
  1164. v-if="checktoolArray.indexOf(58) == -1"
  1165. />
  1166. <div class="checkDiv" v-else>
  1167. <img
  1168. src="../../assets/icon/checkedIs.png"
  1169. alt
  1170. /><span>已选择</span>
  1171. </div>
  1172. </div>
  1173. </div>
  1174. <div class="tool">
  1175. <div class="whiteBIcon" @click="addTools2(59)">
  1176. <img
  1177. src="../../assets/icon/fourthToolList/lineSearch.png"
  1178. alt
  1179. />
  1180. <div style="margin: 5px 0">路径搜索</div>
  1181. </div>
  1182. <div class="check" @click="addTools2(59)">
  1183. <img
  1184. src="../../assets/icon/checkNo.png"
  1185. alt
  1186. v-if="checktoolArray.indexOf(59) == -1"
  1187. />
  1188. <div class="checkDiv" v-else>
  1189. <img
  1190. src="../../assets/icon/checkedIs.png"
  1191. alt
  1192. /><span>已选择</span>
  1193. </div>
  1194. </div>
  1195. </div>
  1196. <div class="tool">
  1197. <div class="whiteBIcon" @click="addTools2(60)">
  1198. <img
  1199. src="../../assets/icon/fourthToolList/deepLearning.png"
  1200. alt
  1201. />
  1202. <div style="margin: 5px 0">深度学习</div>
  1203. </div>
  1204. <div class="check" @click="addTools2(60)">
  1205. <img
  1206. src="../../assets/icon/checkNo.png"
  1207. alt
  1208. v-if="checktoolArray.indexOf(60) == -1"
  1209. />
  1210. <div class="checkDiv" v-else>
  1211. <img
  1212. src="../../assets/icon/checkedIs.png"
  1213. alt
  1214. /><span>已选择</span>
  1215. </div>
  1216. </div>
  1217. </div>
  1218. <div class="tool">
  1219. <div class="whiteBIcon" @click="addTools2(61)">
  1220. <img
  1221. src="../../assets/icon/fourthToolList/allHistory.png"
  1222. alt
  1223. />
  1224. <div style="margin: 5px 0">全历史</div>
  1225. </div>
  1226. <div class="check" @click="addTools2(61)">
  1227. <img
  1228. src="../../assets/icon/checkNo.png"
  1229. alt
  1230. v-if="checktoolArray.indexOf(61) == -1"
  1231. />
  1232. <div class="checkDiv" v-else>
  1233. <img
  1234. src="../../assets/icon/checkedIs.png"
  1235. alt
  1236. /><span>已选择</span>
  1237. </div>
  1238. </div>
  1239. </div>
  1240. </div>
  1241. <div class="toolSort" v-if="toolType == 4">
  1242. <div class="tool">
  1243. <div class="whiteBIcon" @click="addTools2(26)">
  1244. <img
  1245. src="../../assets/icon/thirdToolList/courseDesign.png"
  1246. alt
  1247. />
  1248. <div style="margin: 5px 0">课程设计</div>
  1249. </div>
  1250. <div class="check" @click="addTools2(26)">
  1251. <img
  1252. src="../../assets/icon/checkNo.png"
  1253. alt
  1254. v-if="checktoolArray.indexOf(26) == -1"
  1255. />
  1256. <div class="checkDiv" v-else>
  1257. <img
  1258. src="../../assets/icon/checkedIs.png"
  1259. alt
  1260. /><span>已选择</span>
  1261. </div>
  1262. </div>
  1263. </div>
  1264. <div class="tool">
  1265. <div class="whiteBIcon" @click="addTools2(25)">
  1266. <img
  1267. src="../../assets/icon/thirdToolList/evalua.png"
  1268. alt
  1269. />
  1270. <div style="margin: 5px 0">目标管理</div>
  1271. </div>
  1272. <div class="check" @click="addTools2(25)">
  1273. <img
  1274. src="../../assets/icon/checkNo.png"
  1275. alt
  1276. v-if="checktoolArray.indexOf(25) == -1"
  1277. />
  1278. <div class="checkDiv" v-else>
  1279. <img
  1280. src="../../assets/icon/checkedIs.png"
  1281. alt
  1282. /><span>已选择</span>
  1283. </div>
  1284. </div>
  1285. </div>
  1286. </div>
  1287. </div>
  1288. </div>
  1289. </div>
  1290. </div>
  1291. <div
  1292. class="vedioBox"
  1293. v-if="
  1294. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1295. .toolChoose[0].tool &&
  1296. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1297. .toolChoose[0].tool.length &&
  1298. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1299. .toolChoose[0].tool.length > 0
  1300. "
  1301. >
  1302. <div
  1303. class="queTop"
  1304. style="
  1305. font-size: 20px;
  1306. padding: 15px 0 15px 37px;
  1307. font-weight: bold;
  1308. "
  1309. >
  1310. 工作区
  1311. </div>
  1312. <div class="toolHeng2" style="position: relative">
  1313. <div
  1314. class="filebox"
  1315. style="flex-wrap: nowrap; margin: 0 37px"
  1316. v-if="
  1317. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1318. .toolChoose.length
  1319. "
  1320. >
  1321. <div class="choiceBox">
  1322. <div class="bzChild" style="margin-right: 20px">
  1323. <span>步骤选择:</span>
  1324. </div>
  1325. <div class="bzTypeBox">
  1326. <div
  1327. class="bzChild"
  1328. v-for="(bz, bzIndex) in chapInfoList[courseType]
  1329. .chapterInfo[0].taskJson[taskCount].toolChoose"
  1330. :key="bzIndex"
  1331. :class="{ active: toolIndex == bzIndex }"
  1332. @click="checkBz(bzIndex)"
  1333. >
  1334. <span>步骤{{ bzIndex + 1 }}</span>
  1335. </div>
  1336. </div>
  1337. </div>
  1338. <div class="bzBox">
  1339. <div class="yCss"></div>
  1340. <div>步骤{{ toolIndex + 1 }}</div>
  1341. <div
  1342. style="margin: 0 72px 0 auto"
  1343. v-if="courseDetail.userid == userid"
  1344. >
  1345. <el-button
  1346. type="primary"
  1347. size="mini"
  1348. @click="updateToolDetail"
  1349. >{{
  1350. !isUpdateToolDetail ? "编辑" : "确认修改"
  1351. }}</el-button
  1352. >
  1353. </div>
  1354. </div>
  1355. <div class="toolBox">
  1356. <div class="toolBoxSteps" @click="nextToolindex('last')">
  1357. <img src="../../assets/icon/leftIcon.png" />
  1358. </div>
  1359. <div class="toolBoxSteps" @click="nextToolindex('next')">
  1360. <img src="../../assets/icon/rightIcon.png" />
  1361. </div>
  1362. <div>
  1363. <div class="noiframeBox">
  1364. <div
  1365. class="addPoint"
  1366. v-for="(tooC, toolCIndex) in tool.tool"
  1367. :key="toolCIndex"
  1368. >
  1369. <div v-show="tooC == 1">
  1370. <img
  1371. src="../../assets/icon/secondToolList/whiteBoard.png"
  1372. alt
  1373. @click="addTools(tooC, toolIndex, taskCount)"
  1374. />
  1375. <div style="margin: 5px 0">电子白板</div>
  1376. </div>
  1377. <div v-show="tooC == 3">
  1378. <img
  1379. src="../../assets/icon/secondToolList/mindMapping.png"
  1380. alt
  1381. @click="addTools(tooC, toolIndex, taskCount)"
  1382. />
  1383. <div style="margin: 5px 0">思维导图</div>
  1384. </div>
  1385. <div v-show="tooC == 6">
  1386. <img
  1387. src="../../assets/icon/secondToolList/doc.png"
  1388. alt
  1389. @click="addTools(tooC, toolIndex, taskCount)"
  1390. />
  1391. <div style="margin: 5px 0">协同文档</div>
  1392. </div>
  1393. <div v-show="tooC == 7">
  1394. <img
  1395. src="../../assets/icon/secondToolList/mindNetwork.png"
  1396. alt
  1397. @click="addTools(tooC, toolIndex, taskCount)"
  1398. />
  1399. <div style="margin: 5px 0">思维网格</div>
  1400. </div>
  1401. <div v-show="tooC == 8">
  1402. <img
  1403. src="../../assets/icon/secondToolList/library.png"
  1404. alt
  1405. @click="addTools(tooC, toolIndex, taskCount)"
  1406. />
  1407. <div style="margin: 5px 0">素材库</div>
  1408. </div>
  1409. <div v-show="tooC == 17">
  1410. <img
  1411. src="../../assets/icon/secondToolList/library.png"
  1412. alt
  1413. @click="addTools(tooC, toolIndex, taskCount)"
  1414. />
  1415. <div style="margin: 5px 0">学习资料</div>
  1416. </div>
  1417. <div v-show="tooC == 2">
  1418. <img
  1419. @click="addTools(tooC, toolIndex, taskCount)"
  1420. src="../../assets/icon/secondToolList/note.png"
  1421. alt
  1422. />
  1423. <div style="margin: 5px 0">便签</div>
  1424. </div>
  1425. <div v-show="tooC == 4">
  1426. <img
  1427. @click="addTools(tooC, toolIndex, taskCount)"
  1428. src="../../assets/icon/thirdToolList/ask.png"
  1429. alt
  1430. />
  1431. <div style="margin: 5px 0">问卷调查</div>
  1432. </div>
  1433. <div v-show="tooC == 45">
  1434. <img
  1435. @click="addTools(tooC, toolIndex, taskCount)"
  1436. src="../../assets/icon/thirdToolList/choose.png"
  1437. alt
  1438. />
  1439. <div style="margin: 5px 0">选择题</div>
  1440. </div>
  1441. <!-- <div v-show="tooC == 5">
  1442. <img
  1443. @click="addTools(tooC, toolIndex, taskCount)"
  1444. src="../../assets/icon/thirdToolList/score.png"
  1445. alt
  1446. />
  1447. <div style="margin: 5px 0">量规评分</div>
  1448. </div> -->
  1449. <div v-show="tooC == 10">
  1450. <img
  1451. @click="addTools(tooC, toolIndex, taskCount)"
  1452. src="../../assets/icon/thirdToolList/time.png"
  1453. alt
  1454. />
  1455. <div style="margin: 5px 0">倒计时</div>
  1456. </div>
  1457. <div v-show="tooC == 15">
  1458. <img
  1459. @click="addTools(tooC, toolIndex, taskCount)"
  1460. src="../../assets/icon/thirdToolList/answer.png"
  1461. alt
  1462. />
  1463. <div style="margin: 5px 0">问答工具</div>
  1464. </div>
  1465. <div v-show="tooC == 26">
  1466. <img
  1467. @click="addTools(tooC, toolIndex, taskCount)"
  1468. src="../../assets/icon/thirdToolList/courseDesign.png"
  1469. alt
  1470. />
  1471. <div style="margin: 5px 0">课程设计</div>
  1472. </div>
  1473. <div v-show="tooC == 18">
  1474. <img
  1475. @click="addTools(tooC, toolIndex, taskCount)"
  1476. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1477. alt
  1478. />
  1479. <div style="margin: 5px 0">训练服务器</div>
  1480. </div>
  1481. <div v-show="tooC == 16">
  1482. <img
  1483. @click="addTools(tooC, toolIndex, taskCount)"
  1484. src="../../assets/icon/thirdToolList/work.png"
  1485. alt
  1486. />
  1487. <div style="margin: 5px 0">作业提交</div>
  1488. </div>
  1489. <div v-show="tooC == 50">
  1490. <img
  1491. @click="addTools(tooC, toolIndex, taskCount)"
  1492. src="../../assets/icon/thirdToolList/plwork.png"
  1493. alt
  1494. />
  1495. <div style="margin: 5px 0">批量上传</div>
  1496. </div>
  1497. <div v-show="tooC == 21">
  1498. <img
  1499. @click="addTools(tooC, toolIndex, taskCount)"
  1500. src="../../assets/icon/fourthToolList/program.png"
  1501. alt
  1502. />
  1503. <div style="margin: 5px 0">编程平台</div>
  1504. </div>
  1505. <div v-show="tooC == 22">
  1506. <img
  1507. @click="addTools(tooC, toolIndex, taskCount)"
  1508. src="../../assets/icon/fourthToolList/program.png"
  1509. alt
  1510. />
  1511. <div style="margin: 5px 0">AI体验</div>
  1512. </div>
  1513. <div v-show="tooC == 23">
  1514. <img
  1515. @click="addTools(tooC, toolIndex, taskCount)"
  1516. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1517. alt
  1518. />
  1519. <div style="margin: 5px 0">Python</div>
  1520. </div>
  1521. <div v-show="tooC == 24">
  1522. <img
  1523. @click="addTools(tooC, toolIndex, taskCount)"
  1524. src="../../assets/icon/fourthToolList/AIprogram.png"
  1525. alt
  1526. />
  1527. <div style="margin: 5px 0">AI平台</div>
  1528. </div>
  1529. <div v-show="tooC == 25">
  1530. <img
  1531. @click="addTools(tooC, toolIndex, taskCount)"
  1532. src="../../assets/icon/thirdToolList/evalua.png"
  1533. alt
  1534. />
  1535. <div style="margin: 5px 0">目标管理</div>
  1536. </div>
  1537. <div v-show="tooC == 31">
  1538. <img
  1539. @click="addTools(tooC, toolIndex, taskCount)"
  1540. src="../../assets/icon/secondToolList/networkPanel.png"
  1541. alt
  1542. />
  1543. <div style="margin: 5px 0">数学画板</div>
  1544. </div>
  1545. <div v-show="tooC == 28">
  1546. <img
  1547. @click="addTools(tooC, toolIndex, taskCount)"
  1548. src="../../assets/icon/secondToolList/translation.png"
  1549. alt
  1550. />
  1551. <div style="margin: 5px 0">翻译</div>
  1552. </div>
  1553. <div v-show="tooC == 37">
  1554. <img
  1555. @click="addTools(tooC, toolIndex, taskCount)"
  1556. src="../../assets/icon/secondToolList/mohe.png"
  1557. alt
  1558. />
  1559. <div style="margin: 5px 0">魔盒识字</div>
  1560. </div>
  1561. <div v-show="tooC == 38">
  1562. <img
  1563. @click="addTools(tooC, toolIndex, taskCount)"
  1564. src="../../assets/icon/secondToolList/24game.png"
  1565. alt
  1566. />
  1567. <div style="margin: 5px 0">24点</div>
  1568. </div>
  1569. <div v-show="tooC == 39">
  1570. <img
  1571. @click="addTools(tooC, toolIndex, taskCount)"
  1572. src="../../assets/icon/secondToolList/GeoGebra.png"
  1573. alt
  1574. />
  1575. <div style="margin: 5px 0">GeoGebra</div>
  1576. </div>
  1577. <div v-show="tooC == 32">
  1578. <img
  1579. @click="addTools(tooC, toolIndex, taskCount)"
  1580. src="../../assets/icon/thirdToolList/code.png"
  1581. alt
  1582. />
  1583. <div style="margin: 5px 0">源码编辑</div>
  1584. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1585. style="position: absolute;left: 110px;bottom: 30px;">
  1586. 上传文件
  1587. <input type="file" accept="*" style="display: none"
  1588. @change="beforeUpload1($event, 7, toolIndex)" />
  1589. </div> -->
  1590. </div>
  1591. <!-- <div v-show="tooC == 40">
  1592. <img @click="addTools(tooC, toolIndex, taskCount)"
  1593. src="../../assets/icon/secondToolList/eval.png" alt />
  1594. <div style="margin: 5px 0">个人评价</div>
  1595. </div> -->
  1596. <div v-show="tooC == 41">
  1597. <img
  1598. @click="addTools(tooC, toolIndex, taskCount)"
  1599. src="../../assets/icon/thirdToolList/select.png"
  1600. alt
  1601. />
  1602. <div style="margin: 5px 0">选择填空</div>
  1603. </div>
  1604. <div v-show="tooC == 44">
  1605. <img
  1606. @click="addTools(tooC, toolIndex, taskCount)"
  1607. src="../../assets/icon/thirdToolList/hanClass.png"
  1608. alt
  1609. />
  1610. <div style="margin: 5px 0">汉字宫</div>
  1611. </div>
  1612. <div v-show="tooC == 47">
  1613. <img
  1614. @click="addTools(tooC, toolIndex, taskCount)"
  1615. src="../../assets/icon/fourthToolList/conSentences.png"
  1616. alt
  1617. />
  1618. <div style="margin: 5px 0">连词成句</div>
  1619. </div>
  1620. <div v-show="tooC == 48">
  1621. <img
  1622. @click="addTools(tooC, toolIndex, taskCount)"
  1623. src="../../assets/icon/fourthToolList/table.png"
  1624. alt
  1625. />
  1626. <div style="margin: 5px 0">表格</div>
  1627. </div>
  1628. <div v-show="tooC == 52">
  1629. <img
  1630. @click="addTools(tooC, toolIndex, taskCount)"
  1631. src="../../assets/icon/fourthToolList/text.png"
  1632. alt
  1633. />
  1634. <div style="margin: 5px 0">文档</div>
  1635. </div>
  1636. <!-- <div v-show="tooC == 49">
  1637. <img @click="addTools(tooC, toolIndex, taskCount)"
  1638. src="../../assets/icon/fourthToolList/group.png" alt />
  1639. <div style="margin: 5px 0">学生分组</div>
  1640. </div> -->
  1641. <div v-show="tooC == 57">
  1642. <img
  1643. @click="addTools(tooC, toolIndex, taskCount)"
  1644. src="../../assets/icon/fourthToolList/cocopi.png"
  1645. alt
  1646. />
  1647. <div style="margin: 5px 0">CocoPi</div>
  1648. </div>
  1649. <div v-show="tooC == 58">
  1650. <img
  1651. @click="addTools(tooC, toolIndex, taskCount)"
  1652. src="../../assets/icon/fourthToolList/car.png"
  1653. alt
  1654. />
  1655. <div style="margin: 5px 0">模拟驾驶</div>
  1656. </div>
  1657. <div v-show="tooC == 59">
  1658. <img
  1659. @click="addTools(tooC, toolIndex, taskCount)"
  1660. src="../../assets/icon/fourthToolList/lineSearch.png"
  1661. alt
  1662. />
  1663. <div style="margin: 5px 0">路径搜索</div>
  1664. </div>
  1665. <div v-show="tooC == 60">
  1666. <img
  1667. @click="addTools(tooC, toolIndex, taskCount)"
  1668. src="../../assets/icon/fourthToolList/deepLearning.png"
  1669. alt
  1670. />
  1671. <div style="margin: 5px 0">深度学习</div>
  1672. </div>
  1673. <div v-show="tooC == 61">
  1674. <img
  1675. @click="addTools(tooC, toolIndex, taskCount)"
  1676. src="../../assets/icon/fourthToolList/allHistory.png"
  1677. alt
  1678. />
  1679. <div style="margin: 5px 0">全历史</div>
  1680. </div>
  1681. <div v-show="tooC == 62">
  1682. <img
  1683. @click="addTools(tooC, toolIndex, taskCount)"
  1684. src="../../assets/icon/fourthToolList/interVideo.png"
  1685. alt
  1686. />
  1687. <div style="margin: 5px 0">交互视频</div>
  1688. </div>
  1689. <div v-show="tooC == 63">
  1690. <img
  1691. @click="addTools(tooC, toolIndex, taskCount)"
  1692. src="../../assets/icon/fourthToolList/Wood.png"
  1693. alt
  1694. />
  1695. <div style="margin: 5px 0">海龟编程</div>
  1696. </div>
  1697. </div>
  1698. </div>
  1699. </div>
  1700. <div class="tooldetail">
  1701. <!-- <div class="toolTitle">工具描述</div> -->
  1702. <div
  1703. style="height: 100%"
  1704. v-html="
  1705. contentConvent(
  1706. tool.toolDetail ? tool.toolDetail : '暂无描述'
  1707. )
  1708. "
  1709. v-if="!isUpdateToolDetail"
  1710. @click="updateToolDetail"
  1711. ></div>
  1712. <div v-else>
  1713. <el-input
  1714. type="textarea"
  1715. :rows="3"
  1716. resize="none"
  1717. v-model="updateToolDetailInner"
  1718. placeholder="请输入任务描述"
  1719. ></el-input>
  1720. </div>
  1721. </div>
  1722. <el-button
  1723. type="primary"
  1724. v-if="tool.tool[0] == 32"
  1725. style="
  1726. position: absolute;
  1727. right: 30px;
  1728. transform: translateY(-130%);
  1729. "
  1730. @click="addImg($event)"
  1731. >上传作业<input
  1732. type="file"
  1733. accept="*"
  1734. style="display: none"
  1735. @change="beforeUpload1($event, 7, toolIndex)"
  1736. /></el-button>
  1737. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1738. position: absolute;
  1739. right: 30px;
  1740. transform: translateY(-130%);
  1741. " @click="addImg($event)">上传作业<input type="file" accept="*"
  1742. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1743. </div>
  1744. </div>
  1745. </div>
  1746. </div>
  1747. <div
  1748. class="vedioBox"
  1749. v-if="
  1750. arrayToArray(tool.tool, isWorkTool).length &&
  1751. worksTeacher.length &&
  1752. worksTeacher[toolIndex].length &&
  1753. false
  1754. "
  1755. >
  1756. <div
  1757. class="queTop"
  1758. style="
  1759. font-size: 20px;
  1760. padding: 15px 0 15px 37px;
  1761. font-weight: bold;
  1762. "
  1763. >
  1764. 教师工作区
  1765. </div>
  1766. <div class="tool_work_box">
  1767. <div
  1768. v-if="
  1769. tType &&
  1770. ((tType == 2 && sIsOpen == true) ||
  1771. tType == 1 ||
  1772. tType == 4) &&
  1773. tool.tool.indexOf(16) != -1
  1774. "
  1775. class="worksBox"
  1776. >
  1777. <div
  1778. class="zuoyeYulan"
  1779. v-if="
  1780. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1781. "
  1782. >
  1783. <div class="worksTop">
  1784. <div>作业预览</div>
  1785. </div>
  1786. </div>
  1787. <div
  1788. class="worksDetailBox"
  1789. v-if="
  1790. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1791. "
  1792. >
  1793. <div
  1794. class="works"
  1795. style="
  1796. width: 200px;
  1797. height: 140px;
  1798. margin: 10px 10px 10px 0;
  1799. border-radius: 15px;
  1800. box-shadow: 0 0 6px 1px #dfdada;
  1801. "
  1802. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1803. :key="wIndex"
  1804. :class="w.type == 1 ? 'isTypeOne' : ''"
  1805. >
  1806. <div class="workImg" v-if="w.type == 0">
  1807. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1808. <img :src="w.works" @click="previewImg(w.works)" alt />
  1809. <div
  1810. class="answerScore"
  1811. v-if="w.score"
  1812. @click.stop="openScore(w)"
  1813. :class="{
  1814. rightW:
  1815. w.userid == userid ||
  1816. tType == 1 ||
  1817. tType == 4 ||
  1818. w.ateacher == userid,
  1819. }"
  1820. >
  1821. {{ JSON.parse(w.score).wScore }}分
  1822. </div>
  1823. <div
  1824. class="answerScore"
  1825. @click.stop="openScore(w)"
  1826. v-else-if="courseDetail.userid == userid"
  1827. :class="{
  1828. rightW:
  1829. w.userid == userid ||
  1830. tType == 1 ||
  1831. tType == 4 ||
  1832. w.ateacher == userid,
  1833. }"
  1834. >
  1835. 评分
  1836. </div>
  1837. <img
  1838. class="deleteImg"
  1839. src="../../assets/deleteworks.png"
  1840. v-if="w.userid == userid || tType == 1 || tType == 4"
  1841. @click.stop="deleteWorks(w.wid)"
  1842. alt
  1843. />
  1844. </div>
  1845. <div class="workImg" v-if="w.type == 1">
  1846. <img :src="word" @click="openFile(w.works)" alt />
  1847. <!-- @click="openFile(w.works)" -->
  1848. <div
  1849. class="answerScore"
  1850. v-if="w.score"
  1851. @click.stop="openScore(w)"
  1852. :class="{
  1853. rightW:
  1854. w.userid == userid ||
  1855. tType == 1 ||
  1856. tType == 4 ||
  1857. w.ateacher == userid,
  1858. }"
  1859. >
  1860. {{ JSON.parse(w.score).wScore }}分
  1861. </div>
  1862. <div
  1863. class="answerScore"
  1864. @click.stop="openScore(w)"
  1865. v-else-if="courseDetail.userid == userid"
  1866. :class="{
  1867. rightW:
  1868. w.userid == userid ||
  1869. tType == 1 ||
  1870. tType == 4 ||
  1871. w.ateacher == userid,
  1872. }"
  1873. >
  1874. 评分
  1875. </div>
  1876. <img
  1877. class="deleteImg"
  1878. src="../../assets/deleteworks.png"
  1879. v-if="w.userid == userid || tType == 1 || tType == 4"
  1880. @click.stop="deleteWorks(w.wid)"
  1881. alt
  1882. />
  1883. </div>
  1884. <div class="workImg" v-if="w.type == 3">
  1885. <img
  1886. style="cursor: pointer"
  1887. :src="video"
  1888. @click="openVideo(w)"
  1889. alt
  1890. />
  1891. <!-- @click="openVideo(w.works)" -->
  1892. <div
  1893. class="answerScore"
  1894. v-if="w.score"
  1895. @click.stop="openScore(w)"
  1896. :class="{
  1897. rightW:
  1898. w.userid == userid ||
  1899. tType == 1 ||
  1900. tType == 4 ||
  1901. w.ateacher == userid,
  1902. }"
  1903. >
  1904. {{ JSON.parse(w.score).wScore }}分
  1905. </div>
  1906. <div
  1907. class="answerScore"
  1908. @click.stop="openScore(w)"
  1909. v-else-if="courseDetail.userid == userid"
  1910. :class="{
  1911. rightW:
  1912. w.userid == userid ||
  1913. tType == 1 ||
  1914. tType == 4 ||
  1915. w.ateacher == userid,
  1916. }"
  1917. >
  1918. 评分
  1919. </div>
  1920. <img
  1921. class="deleteImg"
  1922. src="../../assets/deleteworks.png"
  1923. v-if="w.userid == userid || tType == 1 || tType == 4"
  1924. @click.stop="deleteWorks(w.wid)"
  1925. alt
  1926. />
  1927. </div>
  1928. <div class="workImg" v-if="w.type == 12">
  1929. <img
  1930. style="cursor: pointer"
  1931. :src="word2"
  1932. @click="downloadFile(w.works)"
  1933. alt
  1934. />
  1935. <!-- @click="openVideo(w.works)" -->
  1936. <div
  1937. class="answerScore"
  1938. v-if="w.score"
  1939. @click.stop="openScore(w)"
  1940. :class="{
  1941. rightW:
  1942. w.userid == userid ||
  1943. tType == 1 ||
  1944. tType == 4 ||
  1945. w.ateacher == userid,
  1946. }"
  1947. >
  1948. {{ JSON.parse(w.score).wScore }}分
  1949. </div>
  1950. <div
  1951. class="answerScore"
  1952. @click.stop="openScore(w)"
  1953. v-else-if="courseDetail.userid == userid"
  1954. :class="{
  1955. rightW:
  1956. w.userid == userid ||
  1957. tType == 1 ||
  1958. tType == 4 ||
  1959. w.ateacher == userid,
  1960. }"
  1961. >
  1962. 评分
  1963. </div>
  1964. <img
  1965. class="deleteImg"
  1966. src="../../assets/deleteworks.png"
  1967. v-if="w.userid == userid || tType == 1 || tType == 4"
  1968. @click.stop="deleteWorks(w.wid)"
  1969. alt
  1970. />
  1971. </div>
  1972. <div class="comment" style="min-width: 200px">
  1973. <div class="worksName">
  1974. <div>{{ w.sName }}</div>
  1975. </div>
  1976. <div class="commentList">
  1977. <div class="commentList">
  1978. <div
  1979. class="commentImg"
  1980. @click="
  1981. isLikes(w.wid, userid, 1, null, w.isLikes)
  1982. "
  1983. >
  1984. <img
  1985. :src="w.isLikes == true ? likes : noLikes"
  1986. alt=""
  1987. />
  1988. </div>
  1989. <div>{{ w.likesCount }}</div>
  1990. </div>
  1991. <div class="commentList" style="margin-right: 15px">
  1992. <div
  1993. class="commentImg"
  1994. @click="commentOther(w, toolIndex, wIndex)"
  1995. >
  1996. <img
  1997. src="../../assets/icon/comment/comment.png"
  1998. alt=""
  1999. />
  2000. </div>
  2001. <div>{{ w.commentCount }}</div>
  2002. </div>
  2003. </div>
  2004. </div>
  2005. </div>
  2006. </div>
  2007. </div>
  2008. <div
  2009. v-if="
  2010. tType &&
  2011. ((tType == 2 && sIsOpen == true) ||
  2012. tType == 1 ||
  2013. tType == 4) &&
  2014. tool.tool.indexOf(32) != -1
  2015. "
  2016. class="worksBox"
  2017. >
  2018. <div
  2019. class="zuoyeYulan"
  2020. v-if="
  2021. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2022. "
  2023. >
  2024. <div class="worksTop">
  2025. <div>作业预览</div>
  2026. </div>
  2027. </div>
  2028. <div
  2029. class="worksDetailBox"
  2030. v-if="
  2031. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2032. "
  2033. >
  2034. <div
  2035. class="works"
  2036. style="
  2037. width: 200px;
  2038. height: 140px;
  2039. margin: 10px 10px 10px 0;
  2040. border-radius: 15px;
  2041. box-shadow: 0 0 6px 1px #dfdada;
  2042. "
  2043. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2044. :key="wIndex"
  2045. :class="w.type == 1 ? 'isTypeOne' : ''"
  2046. >
  2047. <div class="workImg">
  2048. <img :src="word2" @click="downloadFile(w.works)" alt />
  2049. <div
  2050. class="answerScore"
  2051. v-if="w.score"
  2052. @click.stop="openScore(w)"
  2053. :class="{
  2054. rightW:
  2055. w.userid == userid ||
  2056. tType == 1 ||
  2057. tType == 4 ||
  2058. w.ateacher == userid,
  2059. }"
  2060. >
  2061. {{ JSON.parse(w.score).wScore }}分
  2062. </div>
  2063. <div
  2064. class="answerScore"
  2065. @click.stop="openScore(w)"
  2066. v-else-if="courseDetail.userid == userid"
  2067. :class="{
  2068. rightW:
  2069. w.userid == userid ||
  2070. tType == 1 ||
  2071. tType == 4 ||
  2072. w.ateacher == userid,
  2073. }"
  2074. >
  2075. 评分
  2076. </div>
  2077. <img
  2078. class="deleteImg"
  2079. src="../../assets/deleteworks.png"
  2080. v-if="w.userid == userid || tType == 1 || tType == 4"
  2081. @click.stop="deleteWorks(w.wid)"
  2082. alt
  2083. />
  2084. </div>
  2085. <div class="comment" style="min-width: 200px">
  2086. <div class="worksName">
  2087. <div>{{ w.sName }}</div>
  2088. </div>
  2089. <div class="commentList">
  2090. <div class="commentList">
  2091. <div
  2092. class="commentImg"
  2093. @click="
  2094. isLikes(w.wid, userid, 1, null, w.isLikes)
  2095. "
  2096. >
  2097. <img
  2098. :src="w.isLikes == true ? likes : noLikes"
  2099. alt=""
  2100. />
  2101. </div>
  2102. <div>{{ w.likesCount }}</div>
  2103. </div>
  2104. <div class="commentList" style="margin-right: 15px">
  2105. <div
  2106. class="commentImg"
  2107. @click="commentOther(w, toolIndex, wIndex)"
  2108. >
  2109. <img
  2110. src="../../assets/icon/comment/comment.png"
  2111. alt=""
  2112. />
  2113. </div>
  2114. <div>{{ w.commentCount }}</div>
  2115. </div>
  2116. </div>
  2117. </div>
  2118. </div>
  2119. </div>
  2120. </div>
  2121. <div
  2122. v-if="
  2123. tType &&
  2124. ((tType == 2 && sIsOpen == true) ||
  2125. tType == 1 ||
  2126. tType == 4) &&
  2127. tool.tool.indexOf(57) != -1
  2128. "
  2129. class="worksBox"
  2130. >
  2131. <div
  2132. class="zuoyeYulan"
  2133. v-if="
  2134. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2135. "
  2136. >
  2137. <div class="worksTop">
  2138. <div>作业预览</div>
  2139. </div>
  2140. </div>
  2141. <div
  2142. class="worksDetailBox"
  2143. v-if="
  2144. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2145. "
  2146. >
  2147. <div
  2148. class="works"
  2149. style="
  2150. width: 200px;
  2151. height: 140px;
  2152. margin: 10px 10px 10px 0;
  2153. border-radius: 15px;
  2154. box-shadow: 0 0 6px 1px #dfdada;
  2155. "
  2156. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2157. :key="wIndex"
  2158. :class="w.type == 1 ? 'isTypeOne' : ''"
  2159. >
  2160. <div class="workImg">
  2161. <img
  2162. :src="word2"
  2163. @click="downloadFile(w.works)"
  2164. v-if="w.type == 12"
  2165. alt
  2166. />
  2167. <img
  2168. :src="word2"
  2169. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  2170. v-else-if="w.type == 15"
  2171. alt
  2172. />
  2173. <div
  2174. class="answerScore"
  2175. v-if="w.score"
  2176. @click.stop="openScore(w)"
  2177. :class="{
  2178. rightW:
  2179. w.userid == userid ||
  2180. tType == 1 ||
  2181. tType == 4 ||
  2182. w.ateacher == userid,
  2183. }"
  2184. >
  2185. {{ JSON.parse(w.score).wScore }}分
  2186. </div>
  2187. <div
  2188. class="answerScore"
  2189. @click.stop="openScore(w)"
  2190. v-else-if="courseDetail.userid == userid"
  2191. :class="{
  2192. rightW:
  2193. w.userid == userid ||
  2194. tType == 1 ||
  2195. tType == 4 ||
  2196. w.ateacher == userid,
  2197. }"
  2198. >
  2199. 评分
  2200. </div>
  2201. <img
  2202. class="deleteImg"
  2203. src="../../assets/deleteworks.png"
  2204. v-if="w.userid == userid || tType == 1 || tType == 4"
  2205. @click.stop="deleteWorks(w.wid)"
  2206. alt
  2207. />
  2208. </div>
  2209. <div class="comment" style="min-width: 200px">
  2210. <div class="worksName">
  2211. <div>{{ w.sName }}</div>
  2212. </div>
  2213. <div class="commentList">
  2214. <div class="commentList">
  2215. <div
  2216. class="commentImg"
  2217. @click="
  2218. isLikes(w.wid, userid, 1, null, w.isLikes)
  2219. "
  2220. >
  2221. <img
  2222. :src="w.isLikes == true ? likes : noLikes"
  2223. alt=""
  2224. />
  2225. </div>
  2226. <div>{{ w.likesCount }}</div>
  2227. </div>
  2228. <div class="commentList" style="margin-right: 15px">
  2229. <div
  2230. class="commentImg"
  2231. @click="commentOther(w, toolIndex, wIndex)"
  2232. >
  2233. <img
  2234. src="../../assets/icon/comment/comment.png"
  2235. alt=""
  2236. />
  2237. </div>
  2238. <div>{{ w.commentCount }}</div>
  2239. </div>
  2240. </div>
  2241. </div>
  2242. </div>
  2243. </div>
  2244. </div>
  2245. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  2246. <div
  2247. class="zuoyeYulan"
  2248. v-if="
  2249. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2250. "
  2251. >
  2252. <span>作业预览</span>
  2253. </div>
  2254. <div
  2255. class="worksDetailBox"
  2256. v-if="
  2257. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2258. "
  2259. >
  2260. <div
  2261. class="works"
  2262. style="
  2263. width: 200px;
  2264. height: 140px;
  2265. margin: 10px 10px 10px 0;
  2266. border-radius: 15px;
  2267. box-shadow: 0 0 6px 1px #dfdada;
  2268. "
  2269. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2270. :key="wIndex"
  2271. :class="w.type == 1 ? 'isTypeOne' : ''"
  2272. >
  2273. <div class="workImg" v-if="w.type == 0">
  2274. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2275. <img :src="w.works" @click="previewImg(w.works)" alt />
  2276. <div
  2277. class="answerScore"
  2278. v-if="w.score"
  2279. @click.stop="openScore(w)"
  2280. :class="{
  2281. rightW:
  2282. w.userid == userid ||
  2283. tType == 1 ||
  2284. tType == 4 ||
  2285. w.ateacher == userid,
  2286. }"
  2287. >
  2288. {{ JSON.parse(w.score).wScore }}分
  2289. </div>
  2290. <div
  2291. class="answerScore"
  2292. @click.stop="openScore(w)"
  2293. v-else-if="courseDetail.userid == userid"
  2294. :class="{
  2295. rightW:
  2296. w.userid == userid ||
  2297. tType == 1 ||
  2298. tType == 4 ||
  2299. w.ateacher == userid,
  2300. }"
  2301. >
  2302. 评分
  2303. </div>
  2304. <img
  2305. class="deleteImg"
  2306. src="../../assets/deleteworks.png"
  2307. v-if="w.userid == userid || tType == 1 || tType == 4"
  2308. @click.stop="deleteWorks(w.wid)"
  2309. alt
  2310. />
  2311. </div>
  2312. <div
  2313. class="workImg"
  2314. style="cursor: pointer"
  2315. v-if="w.type == 1"
  2316. >
  2317. <img :src="word" @click="openFile(w.works)" alt />
  2318. <!-- @click="openFile(w.works)" -->
  2319. <div
  2320. class="answerScore"
  2321. v-if="w.score"
  2322. @click.stop="openScore(w)"
  2323. :class="{
  2324. rightW:
  2325. w.userid == userid ||
  2326. tType == 1 ||
  2327. tType == 4 ||
  2328. w.ateacher == userid,
  2329. }"
  2330. >
  2331. {{ JSON.parse(w.score).wScore }}分
  2332. </div>
  2333. <div
  2334. class="answerScore"
  2335. @click.stop="openScore(w)"
  2336. v-else-if="courseDetail.userid == userid"
  2337. :class="{
  2338. rightW:
  2339. w.userid == userid ||
  2340. tType == 1 ||
  2341. tType == 4 ||
  2342. w.ateacher == userid,
  2343. }"
  2344. >
  2345. 评分
  2346. </div>
  2347. <img
  2348. class="deleteImg"
  2349. src="../../assets/deleteworks.png"
  2350. v-if="w.userid == userid || tType == 1 || tType == 4"
  2351. @click.stop="deleteWorks(w.wid)"
  2352. alt
  2353. />
  2354. </div>
  2355. <div class="workImg" v-if="w.type == 3">
  2356. <img
  2357. style="cursor: pointer"
  2358. :src="video"
  2359. @click="openVideo(w)"
  2360. alt
  2361. />
  2362. <!-- @click="openVideo(w.works)" -->
  2363. <div
  2364. class="answerScore"
  2365. v-if="w.score"
  2366. @click.stop="openScore(w)"
  2367. :class="{
  2368. rightW:
  2369. w.userid == userid ||
  2370. tType == 1 ||
  2371. tType == 4 ||
  2372. w.ateacher == userid,
  2373. }"
  2374. >
  2375. {{ JSON.parse(w.score).wScore }}分
  2376. </div>
  2377. <div
  2378. class="answerScore"
  2379. @click.stop="openScore(w)"
  2380. v-else-if="courseDetail.userid == userid"
  2381. :class="{
  2382. rightW:
  2383. w.userid == userid ||
  2384. tType == 1 ||
  2385. tType == 4 ||
  2386. w.ateacher == userid,
  2387. }"
  2388. >
  2389. 评分
  2390. </div>
  2391. <img
  2392. class="deleteImg"
  2393. src="../../assets/deleteworks.png"
  2394. v-if="w.userid == userid || tType == 1 || tType == 4"
  2395. @click.stop="deleteWorks(w.wid)"
  2396. alt
  2397. />
  2398. </div>
  2399. <div class="comment" style="min-width: 200px">
  2400. <div class="worksName">
  2401. <div
  2402. style="cursor: pointer"
  2403. @click="
  2404. openSname(w.sName, w.wid, toolIndex, w.userid)
  2405. "
  2406. >
  2407. {{ w.sName }}
  2408. </div>
  2409. </div>
  2410. <div class="commentList">
  2411. <div class="commentList">
  2412. <div
  2413. class="commentImg"
  2414. @click="
  2415. isLikes(w.wid, userid, 1, null, w.isLikes)
  2416. "
  2417. >
  2418. <img
  2419. :src="w.isLikes == true ? likes : noLikes"
  2420. alt=""
  2421. />
  2422. </div>
  2423. <div>{{ w.likesCount }}</div>
  2424. </div>
  2425. <div class="commentList" style="margin-right: 15px">
  2426. <div
  2427. class="commentImg"
  2428. @click="commentOther(w, toolIndex, wIndex)"
  2429. >
  2430. <img
  2431. src="../../assets/icon/comment/comment.png"
  2432. alt=""
  2433. />
  2434. </div>
  2435. <div>{{ w.commentCount }}</div>
  2436. </div>
  2437. </div>
  2438. </div>
  2439. </div>
  2440. </div>
  2441. </div>
  2442. <div
  2443. v-if="
  2444. tType &&
  2445. ((tType == 2 && sIsOpen == true) ||
  2446. tType == 1 ||
  2447. tType == 4) &&
  2448. tool.tool.indexOf(4) != -1
  2449. "
  2450. class="worksBox"
  2451. >
  2452. <div
  2453. class="zuoyeYulan"
  2454. v-if="
  2455. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2456. "
  2457. >
  2458. <div class="worksTop">
  2459. <div>作业预览</div>
  2460. </div>
  2461. </div>
  2462. <div>
  2463. <div
  2464. class="worksDetailBox"
  2465. v-if="
  2466. worksTeacher.length &&
  2467. worksTeacher[toolIndex].length > 0
  2468. "
  2469. >
  2470. <div
  2471. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2472. :key="wIndex"
  2473. class="isWorksName"
  2474. @click="
  2475. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2476. "
  2477. >
  2478. {{ w.sName }}
  2479. <img
  2480. class="deleteImg deleteImg2"
  2481. src="../../assets/deleteworks.png"
  2482. v-if="w.userid == userid || tType == 1 || tType == 4"
  2483. @click.stop="deleteWorks(w.wid)"
  2484. alt
  2485. />
  2486. </div>
  2487. </div>
  2488. </div>
  2489. </div>
  2490. <div
  2491. v-if="
  2492. tType &&
  2493. ((tType == 2 && sIsOpen == true) ||
  2494. tType == 1 ||
  2495. tType == 4) &&
  2496. tool.tool.indexOf(45) != -1
  2497. "
  2498. class="worksBox"
  2499. >
  2500. <div
  2501. class="zuoyeYulan"
  2502. v-if="
  2503. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2504. "
  2505. >
  2506. <div class="worksTop">
  2507. <div>作业预览</div>
  2508. </div>
  2509. </div>
  2510. <div>
  2511. <div
  2512. class="worksDetailBox"
  2513. v-if="
  2514. worksTeacher.length &&
  2515. worksTeacher[toolIndex].length > 0
  2516. "
  2517. >
  2518. <div
  2519. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2520. :key="wIndex"
  2521. class="isWorksName"
  2522. @click="
  2523. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2524. "
  2525. >
  2526. {{ w.sName }}
  2527. <img
  2528. class="deleteImg deleteImg2"
  2529. src="../../assets/deleteworks.png"
  2530. v-if="w.userid == userid || tType == 1 || tType == 4"
  2531. @click.stop="deleteWorks(w.wid)"
  2532. alt
  2533. />
  2534. </div>
  2535. </div>
  2536. </div>
  2537. </div>
  2538. <div
  2539. v-if="
  2540. tType &&
  2541. ((tType == 2 && sIsOpen == true) ||
  2542. tType == 1 ||
  2543. tType == 4) &&
  2544. tool.tool.indexOf(15) != -1
  2545. "
  2546. class="worksBox"
  2547. >
  2548. <div
  2549. class="zuoyeYulan"
  2550. v-if="
  2551. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2552. "
  2553. >
  2554. <div class="worksTop">
  2555. <div>作业预览</div>
  2556. </div>
  2557. </div>
  2558. <div
  2559. class="worksDetailBox"
  2560. v-if="
  2561. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2562. "
  2563. >
  2564. <div
  2565. class="works"
  2566. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2567. :key="wIndex"
  2568. >
  2569. <div
  2570. class="workImg"
  2571. style="
  2572. border-radius: 15px;
  2573. box-shadow: #eee 0px 0px 5px 5px;
  2574. "
  2575. >
  2576. <!-- <img
  2577. src="../../assets/icon/works/noImg.png"
  2578. @click="openTools(15, toolIndex, taskCount, w.works)"
  2579. alt=""
  2580. />-->
  2581. <div
  2582. class="answerBg"
  2583. style="border-radius: 15px 15px 0 0"
  2584. @click="commentOther(w, toolIndex, wIndex)"
  2585. >
  2586. <!-- <div>{{ w.sName }}</div> -->
  2587. <div class="answerContent">
  2588. {{ JSON.parse(w.works)[0].answer }}
  2589. </div>
  2590. <div
  2591. class="answerScore"
  2592. v-if="w.score"
  2593. @click.stop="openScore(w)"
  2594. :class="{
  2595. rightW:
  2596. w.userid == userid || tType == 1 || tType == 4,
  2597. }"
  2598. >
  2599. {{ JSON.parse(w.score).wScore }}分
  2600. </div>
  2601. <div
  2602. class="answerScore"
  2603. @click.stop="openScore(w)"
  2604. v-else-if="courseDetail.userid == userid"
  2605. :class="{
  2606. rightW:
  2607. w.userid == userid || tType == 1 || tType == 4,
  2608. }"
  2609. >
  2610. 评分
  2611. </div>
  2612. <img
  2613. class="deleteImg"
  2614. src="../../assets/deleteworks.png"
  2615. v-if="
  2616. w.userid == userid || tType == 1 || tType == 4
  2617. "
  2618. @click.stop="deleteWorks(w.wid)"
  2619. alt
  2620. />
  2621. </div>
  2622. <div class="comment">
  2623. <div class="worksName">
  2624. <div>{{ w.sName }}</div>
  2625. </div>
  2626. <div class="commentList">
  2627. <div
  2628. class="commentImg"
  2629. @click="
  2630. isLikes(w.wid, userid, 1, null, w.isLikes)
  2631. "
  2632. >
  2633. <img
  2634. :src="w.isLikes == true ? likes : noLikes"
  2635. alt=""
  2636. />
  2637. </div>
  2638. <div>{{ w.likesCount }}</div>
  2639. </div>
  2640. <div class="commentList" style="margin-right: 15px">
  2641. <div
  2642. class="commentImg"
  2643. @click="commentOther(w, toolIndex, wIndex)"
  2644. >
  2645. <img
  2646. src="../../assets/icon/comment/comment.png"
  2647. alt=""
  2648. />
  2649. </div>
  2650. <div>{{ w.commentCount }}</div>
  2651. </div>
  2652. </div>
  2653. </div>
  2654. </div>
  2655. </div>
  2656. </div>
  2657. <div
  2658. v-if="
  2659. tType &&
  2660. ((tType == 2 && sIsOpen == true) ||
  2661. tType == 1 ||
  2662. tType == 4) &&
  2663. tool.tool.indexOf(1) != -1
  2664. "
  2665. class="worksBox"
  2666. >
  2667. <div
  2668. class="zuoyeYulan"
  2669. v-if="
  2670. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2671. "
  2672. >
  2673. <div class="worksTop">
  2674. <div>作业预览</div>
  2675. </div>
  2676. </div>
  2677. <div
  2678. class="worksDetailBox"
  2679. v-if="
  2680. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2681. "
  2682. >
  2683. <div
  2684. class="works"
  2685. style="
  2686. width: 200px;
  2687. height: 140px;
  2688. margin: 10px 10px 10px 0;
  2689. border-radius: 15px;
  2690. box-shadow: 0 0 6px 1px #dfdada;
  2691. "
  2692. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2693. :key="wIndex"
  2694. >
  2695. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2696. <div class="workImg">
  2697. <img :src="w.works" @click="previewImg(w.works)" alt />
  2698. <div
  2699. class="answerScore"
  2700. v-if="w.score"
  2701. @click.stop="openScore(w)"
  2702. :class="{
  2703. rightW:
  2704. w.userid == userid || tType == 1 || tType == 4,
  2705. }"
  2706. >
  2707. {{ JSON.parse(w.score).wScore }}分
  2708. </div>
  2709. <div
  2710. class="answerScore"
  2711. @click.stop="openScore(w)"
  2712. v-else-if="courseDetail.userid == userid"
  2713. :class="{
  2714. rightW:
  2715. w.userid == userid || tType == 1 || tType == 4,
  2716. }"
  2717. >
  2718. 评分
  2719. </div>
  2720. <img
  2721. class="deleteImg"
  2722. src="../../assets/deleteworks.png"
  2723. v-if="w.userid == userid || tType == 1 || tType == 4"
  2724. @click.stop="deleteWorks(w.wid)"
  2725. alt
  2726. />
  2727. </div>
  2728. <div class="comment" style="min-width: 200px">
  2729. <div class="worksName">
  2730. <div>{{ w.sName }}</div>
  2731. </div>
  2732. <div class="commentList">
  2733. <div class="commentList">
  2734. <div
  2735. class="commentImg"
  2736. @click="
  2737. isLikes(w.wid, userid, 1, null, w.isLikes)
  2738. "
  2739. >
  2740. <img
  2741. :src="w.isLikes == true ? likes : noLikes"
  2742. alt=""
  2743. />
  2744. </div>
  2745. <div>{{ w.likesCount }}</div>
  2746. </div>
  2747. <div class="commentList" style="margin-right: 15px">
  2748. <div
  2749. class="commentImg"
  2750. @click="commentOther(w, toolIndex, wIndex)"
  2751. >
  2752. <img
  2753. src="../../assets/icon/comment/comment.png"
  2754. alt=""
  2755. />
  2756. </div>
  2757. <div>{{ w.commentCount }}</div>
  2758. </div>
  2759. </div>
  2760. </div>
  2761. </div>
  2762. </div>
  2763. </div>
  2764. <div
  2765. v-if="
  2766. tType &&
  2767. ((tType == 2 && sIsOpen == true) ||
  2768. tType == 1 ||
  2769. tType == 4) &&
  2770. tool.tool.indexOf(3) != -1
  2771. "
  2772. class="worksBox"
  2773. >
  2774. <div
  2775. class="zuoyeYulan"
  2776. v-if="
  2777. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2778. "
  2779. >
  2780. <div class="worksTop">
  2781. <div>作业预览</div>
  2782. </div>
  2783. </div>
  2784. <div
  2785. class="worksDetailBox"
  2786. v-if="
  2787. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2788. "
  2789. >
  2790. <div
  2791. class="works"
  2792. style="
  2793. width: 200px;
  2794. height: 140px;
  2795. margin: 10px 10px 10px 0;
  2796. border-radius: 15px;
  2797. box-shadow: 0 0 6px 1px #dfdada;
  2798. "
  2799. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2800. :key="wIndex"
  2801. >
  2802. <!-- @click="previewImg(w.works)" -->
  2803. <div class="workImg">
  2804. <img :src="w.works" @click="previewImg(w.works)" alt />
  2805. <div
  2806. class="answerScore"
  2807. v-if="w.score"
  2808. @click.stop="openScore(w)"
  2809. :class="{
  2810. rightW:
  2811. w.userid == userid || tType == 1 || tType == 4,
  2812. }"
  2813. >
  2814. {{ JSON.parse(w.score).wScore }}分
  2815. </div>
  2816. <div
  2817. class="answerScore"
  2818. @click.stop="openScore(w)"
  2819. v-else-if="courseDetail.userid == userid"
  2820. :class="{
  2821. rightW:
  2822. w.userid == userid || tType == 1 || tType == 4,
  2823. }"
  2824. >
  2825. 评分
  2826. </div>
  2827. <img
  2828. class="deleteImg"
  2829. src="../../assets/deleteworks.png"
  2830. v-if="w.userid == userid || tType == 1 || tType == 4"
  2831. @click.stop="deleteWorks(w.wid)"
  2832. alt
  2833. />
  2834. </div>
  2835. <div class="comment" style="min-width: 200px">
  2836. <div class="worksName">
  2837. <div>{{ w.sName }}</div>
  2838. </div>
  2839. <div class="commentList">
  2840. <div class="commentList">
  2841. <div
  2842. class="commentImg"
  2843. @click="
  2844. isLikes(w.wid, userid, 1, null, w.isLikes)
  2845. "
  2846. >
  2847. <img
  2848. :src="w.isLikes == true ? likes : noLikes"
  2849. alt=""
  2850. />
  2851. </div>
  2852. <div>{{ w.likesCount }}</div>
  2853. </div>
  2854. <div class="commentList" style="margin-right: 15px">
  2855. <div
  2856. class="commentImg"
  2857. @click="commentOther(w, toolIndex, wIndex)"
  2858. >
  2859. <img
  2860. src="../../assets/icon/comment/comment.png"
  2861. alt=""
  2862. />
  2863. </div>
  2864. <div>{{ w.commentCount }}</div>
  2865. </div>
  2866. </div>
  2867. </div>
  2868. </div>
  2869. </div>
  2870. </div>
  2871. <div
  2872. v-if="
  2873. tType &&
  2874. ((tType == 2 && sIsOpen == true) ||
  2875. tType == 1 ||
  2876. tType == 4) &&
  2877. tool.tool.indexOf(6) != -1
  2878. "
  2879. class="worksBox"
  2880. >
  2881. <div
  2882. class="zuoyeYulan"
  2883. v-if="
  2884. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2885. "
  2886. >
  2887. <div class="worksTop">
  2888. <div>作业预览</div>
  2889. </div>
  2890. </div>
  2891. <div
  2892. class="worksDetailBox"
  2893. v-if="
  2894. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2895. "
  2896. >
  2897. <div
  2898. class="works"
  2899. style="
  2900. width: 200px;
  2901. height: 140px;
  2902. margin: 10px 10px 10px 0;
  2903. border-radius: 15px;
  2904. box-shadow: 0 0 6px 1px #dfdada;
  2905. "
  2906. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2907. :key="wIndex"
  2908. >
  2909. <!-- @click="previewImg(w.works)" -->
  2910. <div class="workImg">
  2911. <img :src="w.works" @click="previewImg(w.works)" alt />
  2912. <div
  2913. class="answerScore"
  2914. v-if="w.score"
  2915. @click.stop="openScore(w)"
  2916. :class="{
  2917. rightW:
  2918. w.userid == userid || tType == 1 || tType == 4,
  2919. }"
  2920. >
  2921. {{ JSON.parse(w.score).wScore }}分
  2922. </div>
  2923. <div
  2924. class="answerScore"
  2925. @click.stop="openScore(w)"
  2926. v-else-if="courseDetail.userid == userid"
  2927. :class="{
  2928. rightW:
  2929. w.userid == userid || tType == 1 || tType == 4,
  2930. }"
  2931. >
  2932. 评分
  2933. </div>
  2934. <img
  2935. class="deleteImg"
  2936. src="../../assets/deleteworks.png"
  2937. v-if="w.userid == userid || tType == 1 || tType == 4"
  2938. @click.stop="deleteWorks(w.wid)"
  2939. alt
  2940. />
  2941. </div>
  2942. <div class="comment" style="min-width: 200px">
  2943. <div class="worksName">
  2944. <div>{{ w.sName }}</div>
  2945. </div>
  2946. <div class="commentList">
  2947. <div class="commentList">
  2948. <div
  2949. class="commentImg"
  2950. @click="
  2951. isLikes(w.wid, userid, 1, null, w.isLikes)
  2952. "
  2953. >
  2954. <img
  2955. :src="w.isLikes == true ? likes : noLikes"
  2956. alt=""
  2957. />
  2958. </div>
  2959. <div>{{ w.likesCount }}</div>
  2960. </div>
  2961. <div class="commentList" style="margin-right: 15px">
  2962. <div
  2963. class="commentImg"
  2964. @click="commentOther(w, toolIndex, wIndex)"
  2965. >
  2966. <img
  2967. src="../../assets/icon/comment/comment.png"
  2968. alt=""
  2969. />
  2970. </div>
  2971. <div>{{ w.commentCount }}</div>
  2972. </div>
  2973. </div>
  2974. </div>
  2975. </div>
  2976. </div>
  2977. </div>
  2978. <div
  2979. v-if="
  2980. tType &&
  2981. ((tType == 2 && sIsOpen == true) ||
  2982. tType == 1 ||
  2983. tType == 4) &&
  2984. tool.tool.indexOf(7) != -1
  2985. "
  2986. class="worksBox"
  2987. >
  2988. <div
  2989. class="zuoyeYulan"
  2990. v-if="
  2991. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2992. "
  2993. >
  2994. <div class="worksTop">
  2995. <div>作业预览</div>
  2996. </div>
  2997. </div>
  2998. <div
  2999. class="worksDetailBox"
  3000. v-if="
  3001. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3002. "
  3003. >
  3004. <div
  3005. class="works"
  3006. style="
  3007. width: 200px;
  3008. height: 140px;
  3009. margin: 10px 10px 10px 0;
  3010. border-radius: 15px;
  3011. box-shadow: 0 0 6px 1px #dfdada;
  3012. "
  3013. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3014. :key="wIndex"
  3015. >
  3016. <!-- @click="previewImg(w.works)" -->
  3017. <div class="workImg">
  3018. <img :src="w.works" @click="previewImg(w.works)" alt />
  3019. <div
  3020. class="answerScore"
  3021. v-if="w.score"
  3022. @click.stop="openScore(w)"
  3023. :class="{
  3024. rightW:
  3025. w.userid == userid || tType == 1 || tType == 4,
  3026. }"
  3027. >
  3028. {{ JSON.parse(w.score).wScore }}分
  3029. </div>
  3030. <div
  3031. class="answerScore"
  3032. @click.stop="openScore(w)"
  3033. v-else-if="courseDetail.userid == userid"
  3034. :class="{
  3035. rightW:
  3036. w.userid == userid || tType == 1 || tType == 4,
  3037. }"
  3038. >
  3039. 评分
  3040. </div>
  3041. <img
  3042. class="deleteImg"
  3043. src="../../assets/deleteworks.png"
  3044. v-if="w.userid == userid || tType == 1 || tType == 4"
  3045. @click.stop="deleteWorks(w.wid)"
  3046. alt
  3047. />
  3048. </div>
  3049. <div class="comment" style="min-width: 200px">
  3050. <div class="worksName">
  3051. <div>{{ w.sName }}</div>
  3052. </div>
  3053. <div class="commentList">
  3054. <div class="commentList">
  3055. <div
  3056. class="commentImg"
  3057. @click="
  3058. isLikes(w.wid, userid, 1, null, w.isLikes)
  3059. "
  3060. >
  3061. <img
  3062. :src="w.isLikes == true ? likes : noLikes"
  3063. alt=""
  3064. />
  3065. </div>
  3066. <div>{{ w.likesCount }}</div>
  3067. </div>
  3068. <div class="commentList" style="margin-right: 15px">
  3069. <div
  3070. class="commentImg"
  3071. @click="commentOther(w, toolIndex, wIndex)"
  3072. >
  3073. <img
  3074. src="../../assets/icon/comment/comment.png"
  3075. alt=""
  3076. />
  3077. </div>
  3078. <div>{{ w.commentCount }}</div>
  3079. </div>
  3080. </div>
  3081. </div>
  3082. </div>
  3083. </div>
  3084. </div>
  3085. <div
  3086. v-if="
  3087. tType &&
  3088. ((tType == 2 && sIsOpen == true) ||
  3089. tType == 1 ||
  3090. tType == 4) &&
  3091. tool.tool.indexOf(26) != -1
  3092. "
  3093. class="worksBox"
  3094. >
  3095. <div
  3096. class="zuoyeYulan"
  3097. v-if="
  3098. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3099. "
  3100. >
  3101. <div class="worksTop">
  3102. <div>作业预览</div>
  3103. </div>
  3104. </div>
  3105. <div
  3106. class="worksDetailBox"
  3107. v-if="
  3108. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3109. "
  3110. >
  3111. <div
  3112. class="works"
  3113. style="width: 240px; height: 140px; overflow: hidden"
  3114. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3115. :key="wIndex"
  3116. :class="w.type == 1 ? 'isTypeOne' : ''"
  3117. >
  3118. <div class="workImg" v-if="w.type == 0">
  3119. <img :src="w.works" @click="previewImg(w.works)" alt />
  3120. <img
  3121. class="deleteImg"
  3122. src="../../assets/deleteworks.png"
  3123. v-if="w.userid == userid || tType == 1 || tType == 4"
  3124. @click.stop="deleteWorks(w.wid)"
  3125. alt
  3126. />
  3127. </div>
  3128. <div class="workImg" v-if="w.type == 1">
  3129. <img :src="word" @click="openFile(w.works)" alt />
  3130. <img
  3131. class="deleteImg"
  3132. src="../../assets/deleteworks.png"
  3133. v-if="w.userid == userid || tType == 1 || tType == 4"
  3134. @click.stop="deleteWorks(w.wid)"
  3135. alt
  3136. />
  3137. </div>
  3138. <div class="worksName">
  3139. <div>{{ w.sName }}</div>
  3140. </div>
  3141. </div>
  3142. </div>
  3143. </div>
  3144. <div
  3145. v-if="
  3146. tType &&
  3147. ((tType == 2 && sIsOpen == true) ||
  3148. tType == 1 ||
  3149. tType == 4) &&
  3150. tool.tool.indexOf(40) != -1
  3151. "
  3152. class="worksBox"
  3153. >
  3154. <div
  3155. class="zuoyeYulan"
  3156. v-if="
  3157. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3158. "
  3159. >
  3160. <div class="worksTop">
  3161. <div>作业预览</div>
  3162. </div>
  3163. </div>
  3164. <div
  3165. class="worksDetailBox"
  3166. v-if="
  3167. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3168. "
  3169. >
  3170. <div
  3171. class="works"
  3172. style="
  3173. width: 200px;
  3174. height: 140px;
  3175. margin: 10px 10px 10px 0;
  3176. border-radius: 15px;
  3177. box-shadow: 0 0 6px 1px #dfdada;
  3178. "
  3179. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3180. :key="wIndex"
  3181. :class="w.type == 1 ? 'isTypeOne' : ''"
  3182. >
  3183. <div class="workImg">
  3184. <img
  3185. src="../../assets/icon/works/noImg.png"
  3186. @click="openPj(w.works, toolIndex)"
  3187. alt
  3188. />
  3189. <img
  3190. class="deleteImg"
  3191. src="../../assets/deleteworks.png"
  3192. v-if="w.userid == userid || tType == 1 || tType == 4"
  3193. @click.stop="deleteWorks(w.wid)"
  3194. alt
  3195. />
  3196. </div>
  3197. <div class="comment" style="min-width: 200px">
  3198. <div class="worksName">
  3199. <div>{{ w.sName }}</div>
  3200. </div>
  3201. <div class="commentList">
  3202. <div class="commentList">
  3203. <div
  3204. class="commentImg"
  3205. @click="
  3206. isLikes(w.wid, userid, 1, null, w.isLikes)
  3207. "
  3208. >
  3209. <img
  3210. :src="w.isLikes == true ? likes : noLikes"
  3211. alt=""
  3212. />
  3213. </div>
  3214. <div>{{ w.likesCount }}</div>
  3215. </div>
  3216. <div class="commentList" style="margin-right: 15px">
  3217. <div
  3218. class="commentImg"
  3219. @click="commentOther(w, toolIndex, wIndex)"
  3220. >
  3221. <img
  3222. src="../../assets/icon/comment/comment.png"
  3223. alt=""
  3224. />
  3225. </div>
  3226. <div>{{ w.commentCount }}</div>
  3227. </div>
  3228. </div>
  3229. </div>
  3230. </div>
  3231. </div>
  3232. </div>
  3233. <div
  3234. v-if="
  3235. tType &&
  3236. ((tType == 2 && sIsOpen == true) ||
  3237. tType == 1 ||
  3238. tType == 4) &&
  3239. tool.tool.indexOf(41) != -1
  3240. "
  3241. class="worksBox"
  3242. >
  3243. <div
  3244. class="zuoyeYulan"
  3245. v-if="
  3246. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3247. "
  3248. >
  3249. <div class="worksTop">
  3250. <div>作业预览</div>
  3251. </div>
  3252. </div>
  3253. <div
  3254. class="worksDetailBox"
  3255. v-if="
  3256. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3257. "
  3258. >
  3259. <div
  3260. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3261. :key="wIndex"
  3262. class="isWorksName"
  3263. @click="openXz(w, toolIndex)"
  3264. >
  3265. {{ w.sName }}
  3266. <img
  3267. class="deleteImg deleteImg2"
  3268. src="../../assets/deleteworks.png"
  3269. v-if="w.userid == userid || tType == 1 || tType == 4"
  3270. @click.stop="deleteWorks(w.wid)"
  3271. alt
  3272. />
  3273. </div>
  3274. </div>
  3275. </div>
  3276. <div
  3277. v-if="
  3278. tType &&
  3279. ((tType == 2 && sIsOpen == true) ||
  3280. tType == 1 ||
  3281. tType == 4) &&
  3282. tool.tool.indexOf(47) != -1
  3283. "
  3284. class="worksBox"
  3285. >
  3286. <div
  3287. class="zuoyeYulan"
  3288. v-if="
  3289. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3290. "
  3291. >
  3292. <div class="worksTop">
  3293. <div>作业预览</div>
  3294. </div>
  3295. </div>
  3296. <div
  3297. class="worksDetailBox"
  3298. v-if="
  3299. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3300. "
  3301. >
  3302. <!-- @click="openXz(w, toolIndex)" -->
  3303. <div
  3304. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3305. :key="wIndex"
  3306. class="isWorksName"
  3307. @click="openSen(w, toolIndex)"
  3308. >
  3309. {{ w.sName }}
  3310. <img
  3311. class="deleteImg deleteImg2"
  3312. src="../../assets/deleteworks.png"
  3313. v-if="w.userid == userid || tType == 1 || tType == 4"
  3314. @click.stop="deleteWorks(w.wid)"
  3315. alt
  3316. />
  3317. </div>
  3318. </div>
  3319. </div>
  3320. <div
  3321. v-if="
  3322. tType &&
  3323. ((tType == 2 && sIsOpen == true) ||
  3324. tType == 1 ||
  3325. tType == 4) &&
  3326. tool.tool.indexOf(48) != -1
  3327. "
  3328. class="worksBox"
  3329. >
  3330. <div
  3331. class="zuoyeYulan"
  3332. v-if="
  3333. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3334. "
  3335. >
  3336. <div class="worksTop">
  3337. <div>作业预览</div>
  3338. </div>
  3339. </div>
  3340. <div
  3341. class="worksDetailBox"
  3342. v-if="
  3343. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3344. "
  3345. >
  3346. <div
  3347. class="works"
  3348. style="
  3349. width: 200px;
  3350. height: 140px;
  3351. margin: 10px 10px 10px 0;
  3352. border-radius: 15px;
  3353. box-shadow: 0 0 6px 1px #dfdada;
  3354. "
  3355. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3356. :key="wIndex"
  3357. :class="w.type == 1 ? 'isTypeOne' : ''"
  3358. >
  3359. <div class="workImg">
  3360. <img :src="word" @click="openTable(w)" alt />
  3361. <!-- @click="openFile(w.works)" -->
  3362. <div
  3363. class="answerScore"
  3364. v-if="w.score"
  3365. @click.stop="openScore(w)"
  3366. :class="{
  3367. rightW:
  3368. w.userid == userid ||
  3369. tType == 1 ||
  3370. tType == 4 ||
  3371. w.ateacher == userid,
  3372. }"
  3373. >
  3374. {{ JSON.parse(w.score).wScore }}分
  3375. </div>
  3376. <div
  3377. class="answerScore"
  3378. @click.stop="openScore(w)"
  3379. v-else-if="courseDetail.userid == userid"
  3380. :class="{
  3381. rightW:
  3382. w.userid == userid ||
  3383. tType == 1 ||
  3384. tType == 4 ||
  3385. w.ateacher == userid,
  3386. }"
  3387. >
  3388. 评分
  3389. </div>
  3390. <img
  3391. class="deleteImg"
  3392. src="../../assets/deleteworks.png"
  3393. v-if="w.userid == userid || tType == 1 || tType == 4"
  3394. @click.stop="deleteWorks(w.wid)"
  3395. alt
  3396. />
  3397. </div>
  3398. <div class="comment" style="min-width: 200px">
  3399. <div class="worksName">
  3400. <div>{{ w.sName }}</div>
  3401. </div>
  3402. <div class="commentList">
  3403. <div class="commentList">
  3404. <div
  3405. class="commentImg"
  3406. @click="
  3407. isLikes(w.wid, userid, 1, null, w.isLikes)
  3408. "
  3409. >
  3410. <img
  3411. :src="w.isLikes == true ? likes : noLikes"
  3412. alt=""
  3413. />
  3414. </div>
  3415. <div>{{ w.likesCount }}</div>
  3416. </div>
  3417. <div class="commentList" style="margin-right: 15px">
  3418. <div
  3419. class="commentImg"
  3420. @click="commentOther(w, toolIndex, wIndex)"
  3421. >
  3422. <img
  3423. src="../../assets/icon/comment/comment.png"
  3424. alt=""
  3425. />
  3426. </div>
  3427. <div>{{ w.commentCount }}</div>
  3428. </div>
  3429. </div>
  3430. </div>
  3431. </div>
  3432. </div>
  3433. </div>
  3434. <div
  3435. v-if="
  3436. tType &&
  3437. ((tType == 2 && sIsOpen == true) ||
  3438. tType == 1 ||
  3439. tType == 4) &&
  3440. tool.tool.indexOf(52) != -1
  3441. "
  3442. class="worksBox"
  3443. >
  3444. <div
  3445. class="zuoyeYulan"
  3446. v-if="
  3447. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3448. "
  3449. >
  3450. <div class="worksTop">
  3451. <div>作业预览</div>
  3452. </div>
  3453. </div>
  3454. <div
  3455. class="worksDetailBox"
  3456. v-if="
  3457. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3458. "
  3459. >
  3460. <div
  3461. class="works"
  3462. style="
  3463. width: 200px;
  3464. height: 140px;
  3465. margin: 10px 10px 10px 0;
  3466. border-radius: 15px;
  3467. box-shadow: 0 0 6px 1px #dfdada;
  3468. "
  3469. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3470. :key="wIndex"
  3471. :class="w.type == 1 ? 'isTypeOne' : ''"
  3472. >
  3473. <div class="workImg">
  3474. <img :src="word" @click="openWord(w)" alt />
  3475. <!-- @click="openFile(w.works)" -->
  3476. <div
  3477. class="answerScore"
  3478. v-if="w.score"
  3479. @click.stop="openScore(w)"
  3480. :class="{
  3481. rightW:
  3482. w.userid == userid ||
  3483. tType == 1 ||
  3484. tType == 4 ||
  3485. w.ateacher == userid,
  3486. }"
  3487. >
  3488. {{ JSON.parse(w.score).wScore }}分
  3489. </div>
  3490. <div
  3491. class="answerScore"
  3492. @click.stop="openScore(w)"
  3493. v-else-if="courseDetail.userid == userid"
  3494. :class="{
  3495. rightW:
  3496. w.userid == userid ||
  3497. tType == 1 ||
  3498. tType == 4 ||
  3499. w.ateacher == userid,
  3500. }"
  3501. >
  3502. 评分
  3503. </div>
  3504. <img
  3505. class="deleteImg"
  3506. src="../../assets/deleteworks.png"
  3507. v-if="w.userid == userid || tType == 1 || tType == 4"
  3508. @click.stop="deleteWorks(w.wid)"
  3509. alt
  3510. />
  3511. </div>
  3512. <div class="comment" style="min-width: 200px">
  3513. <div class="worksName">
  3514. <div>{{ w.sName }}</div>
  3515. </div>
  3516. <div class="commentList">
  3517. <div class="commentList">
  3518. <div
  3519. class="commentImg"
  3520. @click="
  3521. isLikes(w.wid, userid, 1, null, w.isLikes)
  3522. "
  3523. >
  3524. <img
  3525. :src="w.isLikes == true ? likes : noLikes"
  3526. alt=""
  3527. />
  3528. </div>
  3529. <div>{{ w.likesCount }}</div>
  3530. </div>
  3531. <div class="commentList" style="margin-right: 15px">
  3532. <div
  3533. class="commentImg"
  3534. @click="commentOther(w, toolIndex, wIndex)"
  3535. >
  3536. <img
  3537. src="../../assets/icon/comment/comment.png"
  3538. alt=""
  3539. />
  3540. </div>
  3541. <div>{{ w.commentCount }}</div>
  3542. </div>
  3543. </div>
  3544. </div>
  3545. </div>
  3546. </div>
  3547. </div>
  3548. </div>
  3549. </div>
  3550. <div class="vedioBox">
  3551. <div
  3552. v-if="
  3553. tType &&
  3554. ((tType == 2 && sIsOpen == true) ||
  3555. tType == 1 ||
  3556. tType == 4) &&
  3557. tool.tool.indexOf(4) != -1 &&
  3558. worksStudent.length &&
  3559. worksStudent[toolIndex].length &&
  3560. (tool.askJson[0].answer || tool.askJson[0].answer === 0) &&
  3561. checkJson[toolIndex].length
  3562. "
  3563. class="xuan_right_box"
  3564. >
  3565. <div
  3566. class="tool_right_box"
  3567. v-for="(item, index) in tool.askJson"
  3568. :key="index"
  3569. >
  3570. <div>
  3571. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  3572. </div>
  3573. <div class="right_box_xuan">
  3574. <span>正确率</span>
  3575. <span>{{
  3576. (checkJson[toolIndex][index].right
  3577. ? checkJson[toolIndex][index].right
  3578. : 0) + "%"
  3579. }}</span>
  3580. </div>
  3581. </div>
  3582. </div>
  3583. <div
  3584. class="xuan_right_box"
  3585. style="background: unset"
  3586. v-if="
  3587. tType &&
  3588. ((tType == 2 && sIsOpen == true) ||
  3589. tType == 1 ||
  3590. tType == 4) &&
  3591. tool.tool.indexOf(4) != -1 &&
  3592. worksStudent.length &&
  3593. worksStudent[toolIndex].length
  3594. "
  3595. >
  3596. <AskStatic
  3597. v-if="
  3598. worksStudent.length && worksStudent[toolIndex].length > 0
  3599. "
  3600. :askJSON="tool"
  3601. :checkJson="checkJson[toolIndex]"
  3602. ></AskStatic>
  3603. </div>
  3604. <div
  3605. v-if="
  3606. tType &&
  3607. ((tType == 2 && sIsOpen == true) ||
  3608. tType == 1 ||
  3609. tType == 4) &&
  3610. tool.tool.indexOf(45) != -1 &&
  3611. worksStudent.length &&
  3612. worksStudent[toolIndex].length &&
  3613. (tool.testJson.testJson[0].answer ||
  3614. tool.testJson.testJson[0].answer === 0) &&
  3615. checkJson[toolIndex].length
  3616. "
  3617. class="xuan_right_box"
  3618. >
  3619. <div
  3620. class="tool_right_box"
  3621. v-for="(item, index) in tool.testJson.testJson"
  3622. :key="index"
  3623. >
  3624. <div>
  3625. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  3626. </div>
  3627. <div class="right_box_xuan">
  3628. <span>正确率</span>
  3629. <span>{{
  3630. (checkJson[toolIndex][index].right
  3631. ? checkJson[toolIndex][index].right
  3632. : 0) + "%"
  3633. }}</span>
  3634. </div>
  3635. </div>
  3636. </div>
  3637. <div
  3638. class="xuan_right_box"
  3639. style="background: unset"
  3640. v-if="
  3641. tType &&
  3642. ((tType == 2 && sIsOpen == true) ||
  3643. tType == 1 ||
  3644. tType == 4) &&
  3645. tool.tool.indexOf(45) != -1 &&
  3646. worksStudent.length &&
  3647. worksStudent[toolIndex].length
  3648. "
  3649. >
  3650. <AskStatic2
  3651. v-if="
  3652. worksStudent.length && worksStudent[toolIndex].length > 0
  3653. "
  3654. :askJSON="tool"
  3655. :checkJson="checkJson[toolIndex]"
  3656. ></AskStatic2>
  3657. </div>
  3658. <div
  3659. v-if="
  3660. tType &&
  3661. ((tType == 2 && sIsOpen == true) ||
  3662. tType == 1 ||
  3663. tType == 4) &&
  3664. tool.tool.indexOf(41) != -1
  3665. "
  3666. >
  3667. <AnswerData2
  3668. v-if="
  3669. worksStudent.length && worksStudent[toolIndex].length > 0
  3670. "
  3671. :problemJson="tool.selectJson.answer"
  3672. :people="worksStudent[toolIndex]"
  3673. ></AnswerData2>
  3674. </div>
  3675. <div
  3676. v-if="
  3677. tType &&
  3678. ((tType == 2 && sIsOpen == true) ||
  3679. tType == 1 ||
  3680. tType == 4) &&
  3681. tool.tool.indexOf(47) != -1
  3682. "
  3683. >
  3684. <AnswerData
  3685. v-if="
  3686. checkJson[toolIndex].length &&
  3687. (tool.sentenceList || tool.sentenceList.length > 0)
  3688. "
  3689. :people="checkJson[toolIndex]"
  3690. ></AnswerData>
  3691. </div>
  3692. </div>
  3693. <div
  3694. class="vedioBox"
  3695. v-if="
  3696. noWorksS[toolIndex].length &&
  3697. arrayToArray(tool.tool, isWorkTool).length &&
  3698. false
  3699. "
  3700. >
  3701. <div
  3702. class="queTop"
  3703. style="
  3704. font-size: 20px;
  3705. padding: 15px 0 15px 37px;
  3706. font-weight: bold;
  3707. "
  3708. >
  3709. 学生工作区
  3710. </div>
  3711. <div class="tool_work_box">
  3712. <div
  3713. v-if="
  3714. tType &&
  3715. ((tType == 2 && sIsOpen == true) ||
  3716. tType == 1 ||
  3717. tType == 4) &&
  3718. tool.tool.indexOf(16) != -1
  3719. "
  3720. class="worksBox"
  3721. >
  3722. <div
  3723. class="zuoyeYulan"
  3724. v-if="
  3725. worksStudent2.length &&
  3726. worksStudent2[toolIndex].length > 0
  3727. "
  3728. >
  3729. <div class="worksTop">
  3730. <div>作业预览</div>
  3731. <div
  3732. class="corOpen"
  3733. @click="contract(toolIndex)"
  3734. v-if="
  3735. worksStudent2[toolIndex].length > 6 &&
  3736. isCloseList[toolIndex].isClose == 0
  3737. "
  3738. >
  3739. 收缩
  3740. </div>
  3741. <div
  3742. class="corOpen"
  3743. @click="contract(toolIndex)"
  3744. v-if="isCloseList[toolIndex].isClose == 1"
  3745. >
  3746. 展开
  3747. </div>
  3748. </div>
  3749. </div>
  3750. <div
  3751. class="worksDetailBox"
  3752. v-if="
  3753. worksStudent2.length &&
  3754. worksStudent2[toolIndex].length > 0
  3755. "
  3756. >
  3757. <div
  3758. class="works"
  3759. style="
  3760. width: 200px;
  3761. height: 140px;
  3762. margin: 10px 10px 10px 0;
  3763. border-radius: 15px;
  3764. box-shadow: 0 0 6px 1px #dfdada;
  3765. "
  3766. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3767. ? worksStudent2[toolIndex]
  3768. : worksStudent2[toolIndex].slice(0, 6)"
  3769. :key="wIndex"
  3770. :class="w.type == 1 ? 'isTypeOne' : ''"
  3771. >
  3772. <div class="workImg" v-if="w.type == 0">
  3773. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3774. <img :src="w.works" @click="previewImg(w.works)" alt />
  3775. <div
  3776. class="answerScore"
  3777. v-if="w.score"
  3778. @click.stop="openScore(w)"
  3779. :class="{
  3780. rightW:
  3781. w.userid == userid ||
  3782. tType == 1 ||
  3783. tType == 4 ||
  3784. w.ateacher == userid,
  3785. }"
  3786. >
  3787. {{ JSON.parse(w.score).wScore }}分
  3788. </div>
  3789. <div
  3790. class="answerScore"
  3791. @click.stop="openScore(w)"
  3792. v-else-if="courseDetail.userid == userid"
  3793. :class="{
  3794. rightW:
  3795. w.userid == userid ||
  3796. tType == 1 ||
  3797. tType == 4 ||
  3798. w.ateacher == userid,
  3799. }"
  3800. >
  3801. 评分
  3802. </div>
  3803. <img
  3804. class="deleteImg"
  3805. src="../../assets/deleteworks.png"
  3806. v-if="w.userid == userid || tType == 1 || tType == 4"
  3807. @click.stop="deleteWorks(w.wid)"
  3808. alt
  3809. />
  3810. </div>
  3811. <div class="workImg" v-if="w.type == 1">
  3812. <img :src="word" @click="openFile(w.works)" alt />
  3813. <!-- @click="openFile(w.works)" -->
  3814. <div
  3815. class="answerScore"
  3816. v-if="w.score"
  3817. @click.stop="openScore(w)"
  3818. :class="{
  3819. rightW:
  3820. w.userid == userid ||
  3821. tType == 1 ||
  3822. tType == 4 ||
  3823. w.ateacher == userid,
  3824. }"
  3825. >
  3826. {{ JSON.parse(w.score).wScore }}分
  3827. </div>
  3828. <div
  3829. class="answerScore"
  3830. @click.stop="openScore(w)"
  3831. v-else-if="courseDetail.userid == userid"
  3832. :class="{
  3833. rightW:
  3834. w.userid == userid ||
  3835. tType == 1 ||
  3836. tType == 4 ||
  3837. w.ateacher == userid,
  3838. }"
  3839. >
  3840. 评分
  3841. </div>
  3842. <img
  3843. class="deleteImg"
  3844. src="../../assets/deleteworks.png"
  3845. v-if="w.userid == userid || tType == 1 || tType == 4"
  3846. @click.stop="deleteWorks(w.wid)"
  3847. alt
  3848. />
  3849. </div>
  3850. <div class="workImg" v-if="w.type == 3">
  3851. <img
  3852. style="cursor: pointer"
  3853. :src="video"
  3854. @click="openVideo(w)"
  3855. alt
  3856. />
  3857. <!-- @click="openVideo(w.works)" -->
  3858. <div
  3859. class="answerScore"
  3860. v-if="w.score"
  3861. @click.stop="openScore(w)"
  3862. :class="{
  3863. rightW:
  3864. w.userid == userid ||
  3865. tType == 1 ||
  3866. tType == 4 ||
  3867. w.ateacher == userid,
  3868. }"
  3869. >
  3870. {{ JSON.parse(w.score).wScore }}分
  3871. </div>
  3872. <div
  3873. class="answerScore"
  3874. @click.stop="openScore(w)"
  3875. v-else-if="courseDetail.userid == userid"
  3876. :class="{
  3877. rightW:
  3878. w.userid == userid ||
  3879. tType == 1 ||
  3880. tType == 4 ||
  3881. w.ateacher == userid,
  3882. }"
  3883. >
  3884. 评分
  3885. </div>
  3886. <img
  3887. class="deleteImg"
  3888. src="../../assets/deleteworks.png"
  3889. v-if="w.userid == userid || tType == 1 || tType == 4"
  3890. @click.stop="deleteWorks(w.wid)"
  3891. alt
  3892. />
  3893. </div>
  3894. <div class="workImg" v-if="w.type == 12">
  3895. <img
  3896. style="cursor: pointer"
  3897. :src="word2"
  3898. @click="downloadFile(w.works)"
  3899. alt
  3900. />
  3901. <!-- @click="openVideo(w.works)" -->
  3902. <div
  3903. class="answerScore"
  3904. v-if="w.score"
  3905. @click.stop="openScore(w)"
  3906. :class="{
  3907. rightW:
  3908. w.userid == userid ||
  3909. tType == 1 ||
  3910. tType == 4 ||
  3911. w.ateacher == userid,
  3912. }"
  3913. >
  3914. {{ JSON.parse(w.score).wScore }}分
  3915. </div>
  3916. <div
  3917. class="answerScore"
  3918. @click.stop="openScore(w)"
  3919. v-else-if="courseDetail.userid == userid"
  3920. :class="{
  3921. rightW:
  3922. w.userid == userid ||
  3923. tType == 1 ||
  3924. tType == 4 ||
  3925. w.ateacher == userid,
  3926. }"
  3927. >
  3928. 评分
  3929. </div>
  3930. <img
  3931. class="deleteImg"
  3932. src="../../assets/deleteworks.png"
  3933. v-if="w.userid == userid || tType == 1 || tType == 4"
  3934. @click.stop="deleteWorks(w.wid)"
  3935. alt
  3936. />
  3937. </div>
  3938. <div class="comment" style="min-width: 200px">
  3939. <div class="worksName">
  3940. <div>{{ w.sName }}</div>
  3941. </div>
  3942. <div class="commentList">
  3943. <div class="commentList">
  3944. <div
  3945. class="commentImg"
  3946. @click="
  3947. isLikes(w.wid, userid, 1, null, w.isLikes)
  3948. "
  3949. >
  3950. <img
  3951. :src="w.isLikes == true ? likes : noLikes"
  3952. alt=""
  3953. />
  3954. </div>
  3955. <div>{{ w.likesCount }}</div>
  3956. </div>
  3957. <div class="commentList" style="margin-right: 15px">
  3958. <div
  3959. class="commentImg"
  3960. @click="commentOther(w, toolIndex, wIndex)"
  3961. >
  3962. <img
  3963. src="../../assets/icon/comment/comment.png"
  3964. alt=""
  3965. />
  3966. </div>
  3967. <div>{{ w.commentCount }}</div>
  3968. </div>
  3969. </div>
  3970. </div>
  3971. </div>
  3972. </div>
  3973. <div class="noWorksS">
  3974. <div
  3975. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3976. :key="sIndex"
  3977. class="noWorksName"
  3978. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3979. :class="{ isWork: s.type == '2' }"
  3980. >
  3981. {{ s.student }}
  3982. </div>
  3983. </div>
  3984. </div>
  3985. <div
  3986. v-if="
  3987. tType &&
  3988. ((tType == 2 && sIsOpen == true) ||
  3989. tType == 1 ||
  3990. tType == 4) &&
  3991. tool.tool.indexOf(32) != -1
  3992. "
  3993. class="worksBox"
  3994. >
  3995. <div
  3996. class="zuoyeYulan"
  3997. v-if="
  3998. worksStudent2.length &&
  3999. worksStudent2[toolIndex].length > 0
  4000. "
  4001. >
  4002. <div class="worksTop">
  4003. <div>作业预览</div>
  4004. <div
  4005. class="corOpen"
  4006. @click="contract(toolIndex)"
  4007. v-if="
  4008. worksStudent2[toolIndex].length > 6 &&
  4009. isCloseList[toolIndex].isClose == 0
  4010. "
  4011. >
  4012. 收缩
  4013. </div>
  4014. <div
  4015. class="corOpen"
  4016. @click="contract(toolIndex)"
  4017. v-if="isCloseList[toolIndex].isClose == 1"
  4018. >
  4019. 展开
  4020. </div>
  4021. </div>
  4022. </div>
  4023. <div
  4024. class="worksDetailBox"
  4025. v-if="
  4026. worksStudent2.length &&
  4027. worksStudent2[toolIndex].length > 0
  4028. "
  4029. >
  4030. <div
  4031. class="works"
  4032. style="
  4033. width: 200px;
  4034. height: 140px;
  4035. margin: 10px 10px 10px 0;
  4036. border-radius: 15px;
  4037. box-shadow: 0 0 6px 1px #dfdada;
  4038. "
  4039. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4040. ? worksStudent2[toolIndex]
  4041. : worksStudent2[toolIndex].slice(0, 6)"
  4042. :key="wIndex"
  4043. :class="w.type == 1 ? 'isTypeOne' : ''"
  4044. >
  4045. <div class="workImg">
  4046. <img :src="word2" @click="downloadFile(w.works)" alt />
  4047. <div
  4048. class="answerScore"
  4049. v-if="w.score"
  4050. @click.stop="openScore(w)"
  4051. :class="{
  4052. rightW:
  4053. w.userid == userid ||
  4054. tType == 1 ||
  4055. tType == 4 ||
  4056. w.ateacher == userid,
  4057. }"
  4058. >
  4059. {{ JSON.parse(w.score).wScore }}分
  4060. </div>
  4061. <div
  4062. class="answerScore"
  4063. @click.stop="openScore(w)"
  4064. v-else-if="courseDetail.userid == userid"
  4065. :class="{
  4066. rightW:
  4067. w.userid == userid ||
  4068. tType == 1 ||
  4069. tType == 4 ||
  4070. w.ateacher == userid,
  4071. }"
  4072. >
  4073. 评分
  4074. </div>
  4075. <img
  4076. class="deleteImg"
  4077. src="../../assets/deleteworks.png"
  4078. v-if="w.userid == userid || tType == 1 || tType == 4"
  4079. @click.stop="deleteWorks(w.wid)"
  4080. alt
  4081. />
  4082. </div>
  4083. <div class="comment" style="min-width: 200px">
  4084. <div class="worksName">
  4085. <div>{{ w.sName }}</div>
  4086. </div>
  4087. <div class="commentList">
  4088. <div class="commentList">
  4089. <div
  4090. class="commentImg"
  4091. @click="
  4092. isLikes(w.wid, userid, 1, null, w.isLikes)
  4093. "
  4094. >
  4095. <img
  4096. :src="w.isLikes == true ? likes : noLikes"
  4097. alt=""
  4098. />
  4099. </div>
  4100. <div>{{ w.likesCount }}</div>
  4101. </div>
  4102. <div class="commentList" style="margin-right: 15px">
  4103. <div
  4104. class="commentImg"
  4105. @click="commentOther(w, toolIndex, wIndex)"
  4106. >
  4107. <img
  4108. src="../../assets/icon/comment/comment.png"
  4109. alt=""
  4110. />
  4111. </div>
  4112. <div>{{ w.commentCount }}</div>
  4113. </div>
  4114. </div>
  4115. </div>
  4116. </div>
  4117. </div>
  4118. <div class="noWorksS">
  4119. <div
  4120. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4121. :key="sIndex"
  4122. class="noWorksName"
  4123. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4124. :class="{ isWork: s.type == '2' }"
  4125. >
  4126. {{ s.student }}
  4127. </div>
  4128. </div>
  4129. </div>
  4130. <div
  4131. v-if="
  4132. tType &&
  4133. ((tType == 2 && sIsOpen == true) ||
  4134. tType == 1 ||
  4135. tType == 4) &&
  4136. tool.tool.indexOf(57) != -1
  4137. "
  4138. class="worksBox"
  4139. >
  4140. <div
  4141. class="zuoyeYulan"
  4142. v-if="
  4143. worksStudent2.length &&
  4144. worksStudent2[toolIndex].length > 0
  4145. "
  4146. >
  4147. <div class="worksTop">
  4148. <div>作业预览</div>
  4149. <div
  4150. class="corOpen"
  4151. @click="contract(toolIndex)"
  4152. v-if="
  4153. worksStudent2[toolIndex].length > 6 &&
  4154. isCloseList[toolIndex].isClose == 0
  4155. "
  4156. >
  4157. 收缩
  4158. </div>
  4159. <div
  4160. class="corOpen"
  4161. @click="contract(toolIndex)"
  4162. v-if="isCloseList[toolIndex].isClose == 1"
  4163. >
  4164. 展开
  4165. </div>
  4166. </div>
  4167. </div>
  4168. <div
  4169. class="worksDetailBox"
  4170. v-if="
  4171. worksStudent2.length &&
  4172. worksStudent2[toolIndex].length > 0
  4173. "
  4174. >
  4175. <div
  4176. class="works"
  4177. style="
  4178. width: 200px;
  4179. height: 140px;
  4180. margin: 10px 10px 10px 0;
  4181. border-radius: 15px;
  4182. box-shadow: 0 0 6px 1px #dfdada;
  4183. "
  4184. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4185. ? worksStudent2[toolIndex]
  4186. : worksStudent2[toolIndex].slice(0, 6)"
  4187. :key="wIndex"
  4188. :class="w.type == 1 ? 'isTypeOne' : ''"
  4189. >
  4190. <div class="workImg">
  4191. <img
  4192. :src="word2"
  4193. @click="downloadFile(w.works)"
  4194. v-if="w.type == 12"
  4195. alt
  4196. />
  4197. <img
  4198. :src="word2"
  4199. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  4200. v-else-if="w.type == 15"
  4201. alt
  4202. />
  4203. <div
  4204. class="answerScore"
  4205. v-if="w.score"
  4206. @click.stop="openScore(w)"
  4207. :class="{
  4208. rightW:
  4209. w.userid == userid ||
  4210. tType == 1 ||
  4211. tType == 4 ||
  4212. w.ateacher == userid,
  4213. }"
  4214. >
  4215. {{ JSON.parse(w.score).wScore }}分
  4216. </div>
  4217. <div
  4218. class="answerScore"
  4219. @click.stop="openScore(w)"
  4220. v-else-if="courseDetail.userid == userid"
  4221. :class="{
  4222. rightW:
  4223. w.userid == userid ||
  4224. tType == 1 ||
  4225. tType == 4 ||
  4226. w.ateacher == userid,
  4227. }"
  4228. >
  4229. 评分
  4230. </div>
  4231. <img
  4232. class="deleteImg"
  4233. src="../../assets/deleteworks.png"
  4234. v-if="w.userid == userid || tType == 1 || tType == 4"
  4235. @click.stop="deleteWorks(w.wid)"
  4236. alt
  4237. />
  4238. </div>
  4239. <div class="comment" style="min-width: 200px">
  4240. <div class="worksName">
  4241. <div>{{ w.sName }}</div>
  4242. </div>
  4243. <div class="commentList">
  4244. <div class="commentList">
  4245. <div
  4246. class="commentImg"
  4247. @click="
  4248. isLikes(w.wid, userid, 1, null, w.isLikes)
  4249. "
  4250. >
  4251. <img
  4252. :src="w.isLikes == true ? likes : noLikes"
  4253. alt=""
  4254. />
  4255. </div>
  4256. <div>{{ w.likesCount }}</div>
  4257. </div>
  4258. <div class="commentList" style="margin-right: 15px">
  4259. <div
  4260. class="commentImg"
  4261. @click="commentOther(w, toolIndex, wIndex)"
  4262. >
  4263. <img
  4264. src="../../assets/icon/comment/comment.png"
  4265. alt=""
  4266. />
  4267. </div>
  4268. <div>{{ w.commentCount }}</div>
  4269. </div>
  4270. </div>
  4271. </div>
  4272. </div>
  4273. </div>
  4274. <div class="noWorksS">
  4275. <div
  4276. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4277. :key="sIndex"
  4278. class="noWorksName"
  4279. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4280. :class="{ isWork: s.type == '2' }"
  4281. >
  4282. {{ s.student }}
  4283. </div>
  4284. </div>
  4285. </div>
  4286. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4287. <div
  4288. class="zuoyeYulan"
  4289. v-if="
  4290. worksStudent2.length &&
  4291. worksStudent2[toolIndex].length > 0
  4292. "
  4293. >
  4294. <span>作业预览</span>
  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. class="worksDetailBox"
  4315. v-if="
  4316. worksStudent2.length &&
  4317. worksStudent2[toolIndex].length > 0
  4318. "
  4319. >
  4320. <div
  4321. class="works"
  4322. style="
  4323. width: 200px;
  4324. height: 140px;
  4325. margin: 10px 10px 10px 0;
  4326. border-radius: 15px;
  4327. box-shadow: 0 0 6px 1px #dfdada;
  4328. "
  4329. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4330. ? worksStudent2[toolIndex]
  4331. : worksStudent2[toolIndex].slice(0, 6)"
  4332. :key="wIndex"
  4333. :class="w.type == 1 ? 'isTypeOne' : ''"
  4334. >
  4335. <div class="workImg" v-if="w.type == 0">
  4336. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4337. <img :src="w.works" @click="previewImg(w.works)" alt />
  4338. <div
  4339. class="answerScore"
  4340. v-if="w.score"
  4341. @click.stop="openScore(w)"
  4342. :class="{
  4343. rightW:
  4344. w.userid == userid ||
  4345. tType == 1 ||
  4346. tType == 4 ||
  4347. w.ateacher == userid,
  4348. }"
  4349. >
  4350. {{ JSON.parse(w.score).wScore }}分
  4351. </div>
  4352. <div
  4353. class="answerScore"
  4354. @click.stop="openScore(w)"
  4355. v-else-if="courseDetail.userid == userid"
  4356. :class="{
  4357. rightW:
  4358. w.userid == userid ||
  4359. tType == 1 ||
  4360. tType == 4 ||
  4361. w.ateacher == userid,
  4362. }"
  4363. >
  4364. 评分
  4365. </div>
  4366. <img
  4367. class="deleteImg"
  4368. src="../../assets/deleteworks.png"
  4369. v-if="w.userid == userid || tType == 1 || tType == 4"
  4370. @click.stop="deleteWorks(w.wid)"
  4371. alt
  4372. />
  4373. </div>
  4374. <div
  4375. class="workImg"
  4376. style="cursor: pointer"
  4377. v-if="w.type == 1"
  4378. >
  4379. <img :src="word" @click="openFile(w.works)" alt />
  4380. <!-- @click="openFile(w.works)" -->
  4381. <div
  4382. class="answerScore"
  4383. v-if="w.score"
  4384. @click.stop="openScore(w)"
  4385. :class="{
  4386. rightW:
  4387. w.userid == userid ||
  4388. tType == 1 ||
  4389. tType == 4 ||
  4390. w.ateacher == userid,
  4391. }"
  4392. >
  4393. {{ JSON.parse(w.score).wScore }}分
  4394. </div>
  4395. <div
  4396. class="answerScore"
  4397. @click.stop="openScore(w)"
  4398. v-else-if="courseDetail.userid == userid"
  4399. :class="{
  4400. rightW:
  4401. w.userid == userid ||
  4402. tType == 1 ||
  4403. tType == 4 ||
  4404. w.ateacher == userid,
  4405. }"
  4406. >
  4407. 评分
  4408. </div>
  4409. <img
  4410. class="deleteImg"
  4411. src="../../assets/deleteworks.png"
  4412. v-if="w.userid == userid || tType == 1 || tType == 4"
  4413. @click.stop="deleteWorks(w.wid)"
  4414. alt
  4415. />
  4416. </div>
  4417. <div class="workImg" v-if="w.type == 3">
  4418. <img
  4419. style="cursor: pointer"
  4420. :src="video"
  4421. @click="openVideo(w)"
  4422. alt
  4423. />
  4424. <!-- @click="openVideo(w.works)" -->
  4425. <div
  4426. class="answerScore"
  4427. v-if="w.score"
  4428. @click.stop="openScore(w)"
  4429. :class="{
  4430. rightW:
  4431. w.userid == userid ||
  4432. tType == 1 ||
  4433. tType == 4 ||
  4434. w.ateacher == userid,
  4435. }"
  4436. >
  4437. {{ JSON.parse(w.score).wScore }}分
  4438. </div>
  4439. <div
  4440. class="answerScore"
  4441. @click.stop="openScore(w)"
  4442. v-else-if="courseDetail.userid == userid"
  4443. :class="{
  4444. rightW:
  4445. w.userid == userid ||
  4446. tType == 1 ||
  4447. tType == 4 ||
  4448. w.ateacher == userid,
  4449. }"
  4450. >
  4451. 评分
  4452. </div>
  4453. <img
  4454. class="deleteImg"
  4455. src="../../assets/deleteworks.png"
  4456. v-if="w.userid == userid || tType == 1 || tType == 4"
  4457. @click.stop="deleteWorks(w.wid)"
  4458. alt
  4459. />
  4460. </div>
  4461. <div class="comment" style="min-width: 200px">
  4462. <div class="worksName">
  4463. <div
  4464. style="cursor: pointer"
  4465. @click="
  4466. openSname(w.sName, w.wid, toolIndex, w.userid)
  4467. "
  4468. >
  4469. {{ w.sName }}
  4470. </div>
  4471. </div>
  4472. <div class="commentList">
  4473. <div class="commentList">
  4474. <div
  4475. class="commentImg"
  4476. @click="
  4477. isLikes(w.wid, userid, 1, null, w.isLikes)
  4478. "
  4479. >
  4480. <img
  4481. :src="w.isLikes == true ? likes : noLikes"
  4482. alt=""
  4483. />
  4484. </div>
  4485. <div>{{ w.likesCount }}</div>
  4486. </div>
  4487. <div class="commentList" style="margin-right: 15px">
  4488. <div
  4489. class="commentImg"
  4490. @click="commentOther(w, toolIndex, wIndex)"
  4491. >
  4492. <img
  4493. src="../../assets/icon/comment/comment.png"
  4494. alt=""
  4495. />
  4496. </div>
  4497. <div>{{ w.commentCount }}</div>
  4498. </div>
  4499. </div>
  4500. </div>
  4501. </div>
  4502. </div>
  4503. <div class="noWorksS">
  4504. <div
  4505. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4506. :key="sIndex"
  4507. class="noWorksName"
  4508. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4509. :class="{ isWork: s.type == '2' }"
  4510. >
  4511. {{ s.student }}
  4512. </div>
  4513. </div>
  4514. </div>
  4515. <div
  4516. v-if="
  4517. tType &&
  4518. ((tType == 2 && sIsOpen == true) ||
  4519. tType == 1 ||
  4520. tType == 4) &&
  4521. tool.tool.indexOf(4) != -1
  4522. "
  4523. class="worksBox"
  4524. >
  4525. <div
  4526. class="zuoyeYulan"
  4527. v-if="
  4528. worksStudent2.length &&
  4529. worksStudent2[toolIndex].length > 0
  4530. "
  4531. >
  4532. <div class="worksTop">
  4533. <div>作业预览</div>
  4534. <div
  4535. class="corOpen"
  4536. @click="contract(toolIndex)"
  4537. v-if="
  4538. worksStudent2[toolIndex].length > 6 &&
  4539. isCloseList[toolIndex].isClose == 0
  4540. "
  4541. >
  4542. 收缩
  4543. </div>
  4544. <div
  4545. class="corOpen"
  4546. @click="contract(toolIndex)"
  4547. v-if="isCloseList[toolIndex].isClose == 1"
  4548. >
  4549. 展开
  4550. </div>
  4551. </div>
  4552. </div>
  4553. <div>
  4554. <div
  4555. class="worksDetailBox"
  4556. v-if="
  4557. worksStudent2.length &&
  4558. worksStudent2[toolIndex].length > 0
  4559. "
  4560. >
  4561. <div
  4562. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4563. 0
  4564. ? worksStudent2[toolIndex]
  4565. : worksStudent2[toolIndex].slice(0, 6)"
  4566. :key="wIndex"
  4567. class="isWorksName"
  4568. @click="
  4569. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4570. "
  4571. >
  4572. {{ w.sName }}
  4573. <img
  4574. class="deleteImg deleteImg2"
  4575. src="../../assets/deleteworks.png"
  4576. v-if="w.userid == userid || tType == 1 || tType == 4"
  4577. @click.stop="deleteWorks(w.wid)"
  4578. alt
  4579. />
  4580. </div>
  4581. </div>
  4582. </div>
  4583. <div class="noWorksS">
  4584. <div
  4585. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4586. :key="sIndex"
  4587. class="noWorksName"
  4588. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4589. :class="{ isWork: s.type == '2' }"
  4590. >
  4591. {{ s.student }}
  4592. </div>
  4593. </div>
  4594. </div>
  4595. <div
  4596. v-if="
  4597. tType &&
  4598. ((tType == 2 && sIsOpen == true) ||
  4599. tType == 1 ||
  4600. tType == 4) &&
  4601. tool.tool.indexOf(45) != -1
  4602. "
  4603. class="worksBox"
  4604. >
  4605. <div
  4606. class="zuoyeYulan"
  4607. v-if="
  4608. worksStudent2.length &&
  4609. worksStudent2[toolIndex].length > 0
  4610. "
  4611. >
  4612. <div class="worksTop">
  4613. <div>作业预览</div>
  4614. <div
  4615. class="corOpen"
  4616. @click="contract(toolIndex)"
  4617. v-if="
  4618. worksStudent2[toolIndex].length > 6 &&
  4619. isCloseList[toolIndex].isClose == 0
  4620. "
  4621. >
  4622. 收缩
  4623. </div>
  4624. <div
  4625. class="corOpen"
  4626. @click="contract(toolIndex)"
  4627. v-if="isCloseList[toolIndex].isClose == 1"
  4628. >
  4629. 展开
  4630. </div>
  4631. </div>
  4632. </div>
  4633. <div>
  4634. <div
  4635. class="worksDetailBox"
  4636. v-if="
  4637. worksStudent2.length &&
  4638. worksStudent2[toolIndex].length > 0
  4639. "
  4640. >
  4641. <div
  4642. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4643. 0
  4644. ? worksStudent2[toolIndex]
  4645. : worksStudent2[toolIndex].slice(0, 6)"
  4646. :key="wIndex"
  4647. class="isWorksName"
  4648. @click="
  4649. openTools(45, toolIndex, taskCount, w.works, w.sName)
  4650. "
  4651. >
  4652. {{ w.sName }}
  4653. <img
  4654. class="deleteImg deleteImg2"
  4655. src="../../assets/deleteworks.png"
  4656. v-if="w.userid == userid || tType == 1 || tType == 4"
  4657. @click.stop="deleteWorks(w.wid)"
  4658. alt
  4659. />
  4660. </div>
  4661. </div>
  4662. </div>
  4663. <div class="noWorksS">
  4664. <div
  4665. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4666. :key="sIndex"
  4667. class="noWorksName"
  4668. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4669. :class="{ isWork: s.type == '2' }"
  4670. >
  4671. {{ s.student }}
  4672. </div>
  4673. </div>
  4674. </div>
  4675. <div
  4676. v-if="
  4677. tType &&
  4678. ((tType == 2 && sIsOpen == true) ||
  4679. tType == 1 ||
  4680. tType == 4) &&
  4681. tool.tool.indexOf(15) != -1
  4682. "
  4683. class="worksBox"
  4684. >
  4685. <div
  4686. class="zuoyeYulan"
  4687. v-if="
  4688. worksStudent2.length &&
  4689. worksStudent2[toolIndex].length > 0
  4690. "
  4691. >
  4692. <div class="worksTop">
  4693. <div>作业预览</div>
  4694. <div
  4695. class="corOpen"
  4696. @click="contract(toolIndex)"
  4697. v-if="
  4698. worksStudent2[toolIndex].length > 6 &&
  4699. isCloseList[toolIndex].isClose == 0
  4700. "
  4701. >
  4702. 收缩
  4703. </div>
  4704. <div
  4705. class="corOpen"
  4706. @click="contract(toolIndex)"
  4707. v-if="isCloseList[toolIndex].isClose == 1"
  4708. >
  4709. 展开
  4710. </div>
  4711. </div>
  4712. </div>
  4713. <div
  4714. class="worksDetailBox"
  4715. v-if="
  4716. worksStudent2.length &&
  4717. worksStudent2[toolIndex].length > 0
  4718. "
  4719. >
  4720. <div
  4721. class="works"
  4722. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4723. ? worksStudent2[toolIndex]
  4724. : worksStudent2[toolIndex].slice(0, 6)"
  4725. :key="wIndex"
  4726. >
  4727. <div
  4728. class="workImg"
  4729. style="
  4730. border-radius: 15px;
  4731. box-shadow: #eee 0px 0px 5px 5px;
  4732. "
  4733. >
  4734. <!-- <img
  4735. src="../../assets/icon/works/noImg.png"
  4736. @click="openTools(15, toolIndex, taskCount, w.works)"
  4737. alt=""
  4738. />-->
  4739. <div
  4740. class="answerBg"
  4741. style="border-radius: 15px 15px 0 0"
  4742. @click="commentOther(w, toolIndex, wIndex)"
  4743. >
  4744. <!-- <div>{{ w.sName }}</div> -->
  4745. <div class="answerContent">
  4746. {{ JSON.parse(w.works)[0].answer }}
  4747. </div>
  4748. <div
  4749. class="answerScore"
  4750. v-if="w.score"
  4751. @click.stop="openScore(w)"
  4752. :class="{
  4753. rightW:
  4754. w.userid == userid || tType == 1 || tType == 4,
  4755. }"
  4756. >
  4757. {{ JSON.parse(w.score).wScore }}分
  4758. </div>
  4759. <div
  4760. class="answerScore"
  4761. @click.stop="openScore(w)"
  4762. v-else-if="courseDetail.userid == userid"
  4763. :class="{
  4764. rightW:
  4765. w.userid == userid || tType == 1 || tType == 4,
  4766. }"
  4767. >
  4768. 评分
  4769. </div>
  4770. <img
  4771. class="deleteImg"
  4772. src="../../assets/deleteworks.png"
  4773. v-if="
  4774. w.userid == userid || tType == 1 || tType == 4
  4775. "
  4776. @click.stop="deleteWorks(w.wid)"
  4777. alt
  4778. />
  4779. </div>
  4780. <div class="comment">
  4781. <div class="worksName">
  4782. <div>{{ w.sName }}</div>
  4783. </div>
  4784. <div class="commentList">
  4785. <div
  4786. class="commentImg"
  4787. @click="
  4788. isLikes(w.wid, userid, 1, null, w.isLikes)
  4789. "
  4790. >
  4791. <img
  4792. :src="w.isLikes == true ? likes : noLikes"
  4793. alt=""
  4794. />
  4795. </div>
  4796. <div>{{ w.likesCount }}</div>
  4797. </div>
  4798. <div class="commentList" style="margin-right: 15px">
  4799. <div
  4800. class="commentImg"
  4801. @click="commentOther(w, toolIndex, wIndex)"
  4802. >
  4803. <img
  4804. src="../../assets/icon/comment/comment.png"
  4805. alt=""
  4806. />
  4807. </div>
  4808. <div>{{ w.commentCount }}</div>
  4809. </div>
  4810. </div>
  4811. </div>
  4812. </div>
  4813. </div>
  4814. <div class="noWorksS">
  4815. <div
  4816. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4817. :key="sIndex"
  4818. class="noWorksName"
  4819. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4820. :class="{ isWork: s.type == '2' }"
  4821. >
  4822. {{ s.student }}
  4823. </div>
  4824. </div>
  4825. </div>
  4826. <div
  4827. v-if="
  4828. tType &&
  4829. ((tType == 2 && sIsOpen == true) ||
  4830. tType == 1 ||
  4831. tType == 4) &&
  4832. tool.tool.indexOf(1) != -1
  4833. "
  4834. class="worksBox"
  4835. >
  4836. <div
  4837. class="zuoyeYulan"
  4838. v-if="
  4839. worksStudent2.length &&
  4840. worksStudent2[toolIndex].length > 0
  4841. "
  4842. >
  4843. <div class="worksTop">
  4844. <div>作业预览</div>
  4845. <div
  4846. class="corOpen"
  4847. @click="contract(toolIndex)"
  4848. v-if="
  4849. worksStudent2[toolIndex].length > 6 &&
  4850. isCloseList[toolIndex].isClose == 0
  4851. "
  4852. >
  4853. 收缩
  4854. </div>
  4855. <div
  4856. class="corOpen"
  4857. @click="contract(toolIndex)"
  4858. v-if="isCloseList[toolIndex].isClose == 1"
  4859. >
  4860. 展开
  4861. </div>
  4862. </div>
  4863. </div>
  4864. <div
  4865. class="worksDetailBox"
  4866. v-if="
  4867. worksStudent2.length &&
  4868. worksStudent2[toolIndex].length > 0
  4869. "
  4870. >
  4871. <div
  4872. class="works"
  4873. style="
  4874. width: 200px;
  4875. height: 140px;
  4876. margin: 10px 10px 10px 0;
  4877. border-radius: 15px;
  4878. box-shadow: 0 0 6px 1px #dfdada;
  4879. "
  4880. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4881. ? worksStudent2[toolIndex]
  4882. : worksStudent2[toolIndex].slice(0, 6)"
  4883. :key="wIndex"
  4884. >
  4885. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4886. <div class="workImg">
  4887. <img :src="w.works" @click="previewImg(w.works)" alt />
  4888. <div
  4889. class="answerScore"
  4890. v-if="w.score"
  4891. @click.stop="openScore(w)"
  4892. :class="{
  4893. rightW:
  4894. w.userid == userid || tType == 1 || tType == 4,
  4895. }"
  4896. >
  4897. {{ JSON.parse(w.score).wScore }}分
  4898. </div>
  4899. <div
  4900. class="answerScore"
  4901. @click.stop="openScore(w)"
  4902. v-else-if="courseDetail.userid == userid"
  4903. :class="{
  4904. rightW:
  4905. w.userid == userid || tType == 1 || tType == 4,
  4906. }"
  4907. >
  4908. 评分
  4909. </div>
  4910. <img
  4911. class="deleteImg"
  4912. src="../../assets/deleteworks.png"
  4913. v-if="w.userid == userid || tType == 1 || tType == 4"
  4914. @click.stop="deleteWorks(w.wid)"
  4915. alt
  4916. />
  4917. </div>
  4918. <div class="comment" style="min-width: 200px">
  4919. <div class="worksName">
  4920. <div>{{ w.sName }}</div>
  4921. </div>
  4922. <div class="commentList">
  4923. <div class="commentList">
  4924. <div
  4925. class="commentImg"
  4926. @click="
  4927. isLikes(w.wid, userid, 1, null, w.isLikes)
  4928. "
  4929. >
  4930. <img
  4931. :src="w.isLikes == true ? likes : noLikes"
  4932. alt=""
  4933. />
  4934. </div>
  4935. <div>{{ w.likesCount }}</div>
  4936. </div>
  4937. <div class="commentList" style="margin-right: 15px">
  4938. <div
  4939. class="commentImg"
  4940. @click="commentOther(w, toolIndex, wIndex)"
  4941. >
  4942. <img
  4943. src="../../assets/icon/comment/comment.png"
  4944. alt=""
  4945. />
  4946. </div>
  4947. <div>{{ w.commentCount }}</div>
  4948. </div>
  4949. </div>
  4950. </div>
  4951. </div>
  4952. </div>
  4953. <div class="noWorksS">
  4954. <div
  4955. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4956. :key="sIndex"
  4957. class="noWorksName"
  4958. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4959. :class="{ isWork: s.type == '2' }"
  4960. >
  4961. {{ s.student }}
  4962. </div>
  4963. </div>
  4964. </div>
  4965. <div
  4966. v-if="
  4967. tType &&
  4968. ((tType == 2 && sIsOpen == true) ||
  4969. tType == 1 ||
  4970. tType == 4) &&
  4971. tool.tool.indexOf(3) != -1
  4972. "
  4973. class="worksBox"
  4974. >
  4975. <div
  4976. class="zuoyeYulan"
  4977. v-if="
  4978. worksStudent2.length &&
  4979. worksStudent2[toolIndex].length > 0
  4980. "
  4981. >
  4982. <div class="worksTop">
  4983. <div>作业预览</div>
  4984. <div
  4985. class="corOpen"
  4986. @click="contract(toolIndex)"
  4987. v-if="
  4988. worksStudent2[toolIndex].length > 6 &&
  4989. isCloseList[toolIndex].isClose == 0
  4990. "
  4991. >
  4992. 收缩
  4993. </div>
  4994. <div
  4995. class="corOpen"
  4996. @click="contract(toolIndex)"
  4997. v-if="isCloseList[toolIndex].isClose == 1"
  4998. >
  4999. 展开
  5000. </div>
  5001. </div>
  5002. </div>
  5003. <div
  5004. class="worksDetailBox"
  5005. v-if="
  5006. worksStudent2.length &&
  5007. worksStudent2[toolIndex].length > 0
  5008. "
  5009. >
  5010. <div
  5011. class="works"
  5012. style="
  5013. width: 200px;
  5014. height: 140px;
  5015. margin: 10px 10px 10px 0;
  5016. border-radius: 15px;
  5017. box-shadow: 0 0 6px 1px #dfdada;
  5018. "
  5019. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5020. ? worksStudent2[toolIndex]
  5021. : worksStudent2[toolIndex].slice(0, 6)"
  5022. :key="wIndex"
  5023. >
  5024. <!-- @click="previewImg(w.works)" -->
  5025. <div class="workImg">
  5026. <img :src="w.works" @click="previewImg(w.works)" alt />
  5027. <div
  5028. class="answerScore"
  5029. v-if="w.score"
  5030. @click.stop="openScore(w)"
  5031. :class="{
  5032. rightW:
  5033. w.userid == userid || tType == 1 || tType == 4,
  5034. }"
  5035. >
  5036. {{ JSON.parse(w.score).wScore }}分
  5037. </div>
  5038. <div
  5039. class="answerScore"
  5040. @click.stop="openScore(w)"
  5041. v-else-if="courseDetail.userid == userid"
  5042. :class="{
  5043. rightW:
  5044. w.userid == userid || tType == 1 || tType == 4,
  5045. }"
  5046. >
  5047. 评分
  5048. </div>
  5049. <img
  5050. class="deleteImg"
  5051. src="../../assets/deleteworks.png"
  5052. v-if="w.userid == userid || tType == 1 || tType == 4"
  5053. @click.stop="deleteWorks(w.wid)"
  5054. alt
  5055. />
  5056. </div>
  5057. <div class="comment" style="min-width: 200px">
  5058. <div class="worksName">
  5059. <div>{{ w.sName }}</div>
  5060. </div>
  5061. <div class="commentList">
  5062. <div class="commentList">
  5063. <div
  5064. class="commentImg"
  5065. @click="
  5066. isLikes(w.wid, userid, 1, null, w.isLikes)
  5067. "
  5068. >
  5069. <img
  5070. :src="w.isLikes == true ? likes : noLikes"
  5071. alt=""
  5072. />
  5073. </div>
  5074. <div>{{ w.likesCount }}</div>
  5075. </div>
  5076. <div class="commentList" style="margin-right: 15px">
  5077. <div
  5078. class="commentImg"
  5079. @click="commentOther(w, toolIndex, wIndex)"
  5080. >
  5081. <img
  5082. src="../../assets/icon/comment/comment.png"
  5083. alt=""
  5084. />
  5085. </div>
  5086. <div>{{ w.commentCount }}</div>
  5087. </div>
  5088. </div>
  5089. </div>
  5090. </div>
  5091. </div>
  5092. <div class="noWorksS">
  5093. <div
  5094. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5095. :key="sIndex"
  5096. class="noWorksName"
  5097. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5098. :class="{ isWork: s.type == '2' }"
  5099. >
  5100. {{ s.student }}
  5101. </div>
  5102. </div>
  5103. </div>
  5104. <div
  5105. v-if="
  5106. tType &&
  5107. ((tType == 2 && sIsOpen == true) ||
  5108. tType == 1 ||
  5109. tType == 4) &&
  5110. tool.tool.indexOf(6) != -1
  5111. "
  5112. class="worksBox"
  5113. >
  5114. <div
  5115. class="zuoyeYulan"
  5116. v-if="
  5117. worksStudent2.length &&
  5118. worksStudent2[toolIndex].length > 0
  5119. "
  5120. >
  5121. <div class="worksTop">
  5122. <div>作业预览</div>
  5123. <div
  5124. class="corOpen"
  5125. @click="contract(toolIndex)"
  5126. v-if="
  5127. worksStudent[toolIndex].length > 6 &&
  5128. isCloseList[toolIndex].isClose == 0
  5129. "
  5130. >
  5131. 收缩
  5132. </div>
  5133. <div
  5134. class="corOpen"
  5135. @click="contract(toolIndex)"
  5136. v-if="isCloseList[toolIndex].isClose == 1"
  5137. >
  5138. 展开
  5139. </div>
  5140. </div>
  5141. </div>
  5142. <div
  5143. class="worksDetailBox"
  5144. v-if="
  5145. worksStudent2.length &&
  5146. worksStudent2[toolIndex].length > 0
  5147. "
  5148. >
  5149. <div
  5150. class="works"
  5151. style="
  5152. width: 200px;
  5153. height: 140px;
  5154. margin: 10px 10px 10px 0;
  5155. border-radius: 15px;
  5156. box-shadow: 0 0 6px 1px #dfdada;
  5157. "
  5158. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5159. ? worksStudent2[toolIndex]
  5160. : worksStudent2[toolIndex].slice(0, 6)"
  5161. :key="wIndex"
  5162. >
  5163. <!-- @click="previewImg(w.works)" -->
  5164. <div class="workImg">
  5165. <img :src="w.works" @click="previewImg(w.works)" alt />
  5166. <div
  5167. class="answerScore"
  5168. v-if="w.score"
  5169. @click.stop="openScore(w)"
  5170. :class="{
  5171. rightW:
  5172. w.userid == userid || tType == 1 || tType == 4,
  5173. }"
  5174. >
  5175. {{ JSON.parse(w.score).wScore }}分
  5176. </div>
  5177. <div
  5178. class="answerScore"
  5179. @click.stop="openScore(w)"
  5180. v-else-if="courseDetail.userid == userid"
  5181. :class="{
  5182. rightW:
  5183. w.userid == userid || tType == 1 || tType == 4,
  5184. }"
  5185. >
  5186. 评分
  5187. </div>
  5188. <img
  5189. class="deleteImg"
  5190. src="../../assets/deleteworks.png"
  5191. v-if="w.userid == userid || tType == 1 || tType == 4"
  5192. @click.stop="deleteWorks(w.wid)"
  5193. alt
  5194. />
  5195. </div>
  5196. <div class="comment" style="min-width: 200px">
  5197. <div class="worksName">
  5198. <div>{{ w.sName }}</div>
  5199. </div>
  5200. <div class="commentList">
  5201. <div class="commentList">
  5202. <div
  5203. class="commentImg"
  5204. @click="
  5205. isLikes(w.wid, userid, 1, null, w.isLikes)
  5206. "
  5207. >
  5208. <img
  5209. :src="w.isLikes == true ? likes : noLikes"
  5210. alt=""
  5211. />
  5212. </div>
  5213. <div>{{ w.likesCount }}</div>
  5214. </div>
  5215. <div class="commentList" style="margin-right: 15px">
  5216. <div
  5217. class="commentImg"
  5218. @click="commentOther(w, toolIndex, wIndex)"
  5219. >
  5220. <img
  5221. src="../../assets/icon/comment/comment.png"
  5222. alt=""
  5223. />
  5224. </div>
  5225. <div>{{ w.commentCount }}</div>
  5226. </div>
  5227. </div>
  5228. </div>
  5229. </div>
  5230. </div>
  5231. <div class="noWorksS">
  5232. <div
  5233. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5234. :key="sIndex"
  5235. class="noWorksName"
  5236. :class="{ isWork: s.type == '2' }"
  5237. >
  5238. {{ s.student }}
  5239. </div>
  5240. </div>
  5241. </div>
  5242. <div
  5243. v-if="
  5244. tType &&
  5245. ((tType == 2 && sIsOpen == true) ||
  5246. tType == 1 ||
  5247. tType == 4) &&
  5248. tool.tool.indexOf(7) != -1
  5249. "
  5250. class="worksBox"
  5251. >
  5252. <div
  5253. class="zuoyeYulan"
  5254. v-if="
  5255. worksStudent2.length &&
  5256. worksStudent2[toolIndex].length > 0
  5257. "
  5258. >
  5259. <div class="worksTop">
  5260. <div>作业预览</div>
  5261. <div
  5262. class="corOpen"
  5263. @click="contract(toolIndex)"
  5264. v-if="
  5265. worksStudent2[toolIndex].length > 6 &&
  5266. isCloseList[toolIndex].isClose == 0
  5267. "
  5268. >
  5269. 收缩
  5270. </div>
  5271. <div
  5272. class="corOpen"
  5273. @click="contract(toolIndex)"
  5274. v-if="isCloseList[toolIndex].isClose == 1"
  5275. >
  5276. 展开
  5277. </div>
  5278. </div>
  5279. </div>
  5280. <div
  5281. class="worksDetailBox"
  5282. v-if="
  5283. worksStudent2.length &&
  5284. worksStudent2[toolIndex].length > 0
  5285. "
  5286. >
  5287. <div
  5288. class="works"
  5289. style="
  5290. width: 200px;
  5291. height: 140px;
  5292. margin: 10px 10px 10px 0;
  5293. border-radius: 15px;
  5294. box-shadow: 0 0 6px 1px #dfdada;
  5295. "
  5296. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5297. ? worksStudent2[toolIndex]
  5298. : worksStudent2[toolIndex].slice(0, 6)"
  5299. :key="wIndex"
  5300. >
  5301. <!-- @click="previewImg(w.works)" -->
  5302. <div class="workImg">
  5303. <img :src="w.works" @click="previewImg(w.works)" alt />
  5304. <div
  5305. class="answerScore"
  5306. v-if="w.score"
  5307. @click.stop="openScore(w)"
  5308. :class="{
  5309. rightW:
  5310. w.userid == userid || tType == 1 || tType == 4,
  5311. }"
  5312. >
  5313. {{ JSON.parse(w.score).wScore }}分
  5314. </div>
  5315. <div
  5316. class="answerScore"
  5317. @click.stop="openScore(w)"
  5318. v-else-if="courseDetail.userid == userid"
  5319. :class="{
  5320. rightW:
  5321. w.userid == userid || tType == 1 || tType == 4,
  5322. }"
  5323. >
  5324. 评分
  5325. </div>
  5326. <img
  5327. class="deleteImg"
  5328. src="../../assets/deleteworks.png"
  5329. v-if="w.userid == userid || tType == 1 || tType == 4"
  5330. @click.stop="deleteWorks(w.wid)"
  5331. alt
  5332. />
  5333. </div>
  5334. <div class="comment" style="min-width: 200px">
  5335. <div class="worksName">
  5336. <div>{{ w.sName }}</div>
  5337. </div>
  5338. <div class="commentList">
  5339. <div class="commentList">
  5340. <div
  5341. class="commentImg"
  5342. @click="
  5343. isLikes(w.wid, userid, 1, null, w.isLikes)
  5344. "
  5345. >
  5346. <img
  5347. :src="w.isLikes == true ? likes : noLikes"
  5348. alt=""
  5349. />
  5350. </div>
  5351. <div>{{ w.likesCount }}</div>
  5352. </div>
  5353. <div class="commentList" style="margin-right: 15px">
  5354. <div
  5355. class="commentImg"
  5356. @click="commentOther(w, toolIndex, wIndex)"
  5357. >
  5358. <img
  5359. src="../../assets/icon/comment/comment.png"
  5360. alt=""
  5361. />
  5362. </div>
  5363. <div>{{ w.commentCount }}</div>
  5364. </div>
  5365. </div>
  5366. </div>
  5367. </div>
  5368. </div>
  5369. <div class="noWorksS">
  5370. <div
  5371. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5372. :key="sIndex"
  5373. class="noWorksName"
  5374. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5375. :class="{ isWork: s.type == '2' }"
  5376. >
  5377. {{ s.student }}
  5378. </div>
  5379. </div>
  5380. </div>
  5381. <div
  5382. v-if="
  5383. tType &&
  5384. ((tType == 2 && sIsOpen == true) ||
  5385. tType == 1 ||
  5386. tType == 4) &&
  5387. tool.tool.indexOf(26) != -1
  5388. "
  5389. class="worksBox"
  5390. >
  5391. <div
  5392. class="zuoyeYulan"
  5393. v-if="
  5394. worksStudent2.length &&
  5395. worksStudent2[toolIndex].length > 0
  5396. "
  5397. >
  5398. <div class="worksTop">
  5399. <div>作业预览</div>
  5400. <div
  5401. class="corOpen"
  5402. @click="contract(toolIndex)"
  5403. v-if="
  5404. worksStudent2[toolIndex].length > 6 &&
  5405. isCloseList[toolIndex].isClose == 0
  5406. "
  5407. >
  5408. 收缩
  5409. </div>
  5410. <div
  5411. class="corOpen"
  5412. @click="contract(toolIndex)"
  5413. v-if="isCloseList[toolIndex].isClose == 1"
  5414. >
  5415. 展开
  5416. </div>
  5417. </div>
  5418. </div>
  5419. <div
  5420. class="worksDetailBox"
  5421. v-if="
  5422. worksStudent2.length &&
  5423. worksStudent2[toolIndex].length > 0
  5424. "
  5425. >
  5426. <div
  5427. class="works"
  5428. style="width: 240px; height: 140px; overflow: hidden"
  5429. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5430. ? worksStudent2[toolIndex]
  5431. : worksStudent2[toolIndex].slice(0, 6)"
  5432. :key="wIndex"
  5433. :class="w.type == 1 ? 'isTypeOne' : ''"
  5434. >
  5435. <div class="workImg" v-if="w.type == 0">
  5436. <img :src="w.works" @click="previewImg(w.works)" alt />
  5437. <img
  5438. class="deleteImg"
  5439. src="../../assets/deleteworks.png"
  5440. v-if="w.userid == userid || tType == 1 || tType == 4"
  5441. @click.stop="deleteWorks(w.wid)"
  5442. alt
  5443. />
  5444. </div>
  5445. <div class="workImg" v-if="w.type == 1">
  5446. <img :src="word" @click="openFile(w.works)" alt />
  5447. <img
  5448. class="deleteImg"
  5449. src="../../assets/deleteworks.png"
  5450. v-if="w.userid == userid || tType == 1 || tType == 4"
  5451. @click.stop="deleteWorks(w.wid)"
  5452. alt
  5453. />
  5454. </div>
  5455. <div class="worksName">
  5456. <div>{{ w.sName }}</div>
  5457. </div>
  5458. </div>
  5459. </div>
  5460. <div class="noWorksS">
  5461. <div
  5462. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5463. :key="sIndex"
  5464. class="noWorksName"
  5465. :class="{ isWork: s.type == '2' }"
  5466. >
  5467. {{ s.student }}
  5468. </div>
  5469. </div>
  5470. </div>
  5471. <div
  5472. v-if="
  5473. tType &&
  5474. ((tType == 2 && sIsOpen == true) ||
  5475. tType == 1 ||
  5476. tType == 4) &&
  5477. tool.tool.indexOf(40) != -1
  5478. "
  5479. class="worksBox"
  5480. >
  5481. <div
  5482. class="zuoyeYulan"
  5483. v-if="
  5484. worksStudent2.length &&
  5485. worksStudent2[toolIndex].length > 0
  5486. "
  5487. >
  5488. <div class="worksTop">
  5489. <div>作业预览</div>
  5490. <div
  5491. class="corOpen"
  5492. @click="contract(toolIndex)"
  5493. v-if="
  5494. worksStudent2[toolIndex].length > 6 &&
  5495. isCloseList[toolIndex].isClose == 0
  5496. "
  5497. >
  5498. 收缩
  5499. </div>
  5500. <div
  5501. class="corOpen"
  5502. @click="contract(toolIndex)"
  5503. v-if="isCloseList[toolIndex].isClose == 1"
  5504. >
  5505. 展开
  5506. </div>
  5507. </div>
  5508. </div>
  5509. <div
  5510. class="worksDetailBox"
  5511. v-if="
  5512. worksStudent2.length &&
  5513. worksStudent2[toolIndex].length > 0
  5514. "
  5515. >
  5516. <div
  5517. class="works"
  5518. style="
  5519. width: 200px;
  5520. height: 140px;
  5521. margin: 10px 10px 10px 0;
  5522. border-radius: 15px;
  5523. box-shadow: 0 0 6px 1px #dfdada;
  5524. "
  5525. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5526. ? worksStudent2[toolIndex]
  5527. : worksStudent2[toolIndex].slice(0, 6)"
  5528. :key="wIndex"
  5529. :class="w.type == 1 ? 'isTypeOne' : ''"
  5530. >
  5531. <div class="workImg">
  5532. <img
  5533. src="../../assets/icon/works/noImg.png"
  5534. @click="openPj(w.works, toolIndex)"
  5535. alt
  5536. />
  5537. <img
  5538. class="deleteImg"
  5539. src="../../assets/deleteworks.png"
  5540. v-if="w.userid == userid || tType == 1 || tType == 4"
  5541. @click.stop="deleteWorks(w.wid)"
  5542. alt
  5543. />
  5544. </div>
  5545. <div class="comment" style="min-width: 200px">
  5546. <div class="worksName">
  5547. <div>{{ w.sName }}</div>
  5548. </div>
  5549. <div class="commentList">
  5550. <div class="commentList">
  5551. <div
  5552. class="commentImg"
  5553. @click="
  5554. isLikes(w.wid, userid, 1, null, w.isLikes)
  5555. "
  5556. >
  5557. <img
  5558. :src="w.isLikes == true ? likes : noLikes"
  5559. alt=""
  5560. />
  5561. </div>
  5562. <div>{{ w.likesCount }}</div>
  5563. </div>
  5564. <div class="commentList" style="margin-right: 15px">
  5565. <div
  5566. class="commentImg"
  5567. @click="commentOther(w, toolIndex, wIndex)"
  5568. >
  5569. <img
  5570. src="../../assets/icon/comment/comment.png"
  5571. alt=""
  5572. />
  5573. </div>
  5574. <div>{{ w.commentCount }}</div>
  5575. </div>
  5576. </div>
  5577. </div>
  5578. </div>
  5579. </div>
  5580. <div class="noWorksS">
  5581. <div
  5582. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5583. :key="sIndex"
  5584. class="noWorksName"
  5585. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5586. :class="{ isWork: s.type == '2' }"
  5587. >
  5588. {{ s.student }}
  5589. </div>
  5590. </div>
  5591. </div>
  5592. <div
  5593. v-if="
  5594. tType &&
  5595. ((tType == 2 && sIsOpen == true) ||
  5596. tType == 1 ||
  5597. tType == 4) &&
  5598. tool.tool.indexOf(41) != -1
  5599. "
  5600. class="worksBox"
  5601. >
  5602. <div class="noWorksS">
  5603. <div
  5604. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5605. :key="sIndex"
  5606. class="noWorksName"
  5607. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5608. :class="{ isWork: s.type == '2' }"
  5609. >
  5610. {{ s.student }}
  5611. </div>
  5612. </div>
  5613. <div
  5614. class="zuoyeYulan"
  5615. v-if="
  5616. worksStudent2.length &&
  5617. worksStudent2[toolIndex].length > 0
  5618. "
  5619. >
  5620. <div class="worksTop">
  5621. <div>作业预览</div>
  5622. <div
  5623. class="corOpen"
  5624. @click="contract(toolIndex)"
  5625. v-if="
  5626. worksStudent2[toolIndex].length > 6 &&
  5627. isCloseList[toolIndex].isClose == 0
  5628. "
  5629. >
  5630. 收缩
  5631. </div>
  5632. <div
  5633. class="corOpen"
  5634. @click="contract(toolIndex)"
  5635. v-if="isCloseList[toolIndex].isClose == 1"
  5636. >
  5637. 展开
  5638. </div>
  5639. </div>
  5640. </div>
  5641. <div
  5642. class="worksDetailBox"
  5643. v-if="
  5644. worksStudent2.length &&
  5645. worksStudent2[toolIndex].length > 0
  5646. "
  5647. >
  5648. <div
  5649. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5650. ? worksStudent2[toolIndex]
  5651. : worksStudent2[toolIndex].slice(0, 6)"
  5652. :key="wIndex"
  5653. class="isWorksName"
  5654. @click="openXz(w, toolIndex)"
  5655. >
  5656. {{ w.sName }}
  5657. <img
  5658. class="deleteImg deleteImg2"
  5659. src="../../assets/deleteworks.png"
  5660. v-if="w.userid == userid || tType == 1 || tType == 4"
  5661. @click.stop="deleteWorks(w.wid)"
  5662. alt
  5663. />
  5664. </div>
  5665. </div>
  5666. </div>
  5667. <div
  5668. v-if="
  5669. tType &&
  5670. ((tType == 2 && sIsOpen == true) ||
  5671. tType == 1 ||
  5672. tType == 4) &&
  5673. tool.tool.indexOf(47) != -1
  5674. "
  5675. class="worksBox"
  5676. >
  5677. <div class="noWorksS">
  5678. <div
  5679. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5680. :key="sIndex"
  5681. class="noWorksName"
  5682. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5683. :class="{ isWork: s.type == '2' }"
  5684. >
  5685. {{ s.student }}
  5686. </div>
  5687. </div>
  5688. <div
  5689. class="zuoyeYulan"
  5690. v-if="
  5691. worksStudent2.length &&
  5692. worksStudent2[toolIndex].length > 0
  5693. "
  5694. >
  5695. <div class="worksTop">
  5696. <div>作业预览</div>
  5697. <div
  5698. class="corOpen"
  5699. @click="contract(toolIndex)"
  5700. v-if="
  5701. worksStudent2[toolIndex].length > 6 &&
  5702. isCloseList[toolIndex].isClose == 0
  5703. "
  5704. >
  5705. 收缩
  5706. </div>
  5707. <div
  5708. class="corOpen"
  5709. @click="contract(toolIndex)"
  5710. v-if="isCloseList[toolIndex].isClose == 1"
  5711. >
  5712. 展开
  5713. </div>
  5714. </div>
  5715. </div>
  5716. <div
  5717. class="worksDetailBox"
  5718. v-if="
  5719. worksStudent2.length &&
  5720. worksStudent2[toolIndex].length > 0
  5721. "
  5722. >
  5723. <!-- @click="openXz(w, toolIndex)" -->
  5724. <div
  5725. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5726. ? worksStudent2[toolIndex]
  5727. : worksStudent2[toolIndex].slice(0, 6)"
  5728. :key="wIndex"
  5729. class="isWorksName"
  5730. @click="openSen(w, toolIndex)"
  5731. >
  5732. {{ w.sName }}
  5733. <img
  5734. class="deleteImg deleteImg2"
  5735. src="../../assets/deleteworks.png"
  5736. v-if="w.userid == userid || tType == 1 || tType == 4"
  5737. @click.stop="deleteWorks(w.wid)"
  5738. alt
  5739. />
  5740. </div>
  5741. </div>
  5742. </div>
  5743. <div
  5744. v-if="
  5745. tType &&
  5746. ((tType == 2 && sIsOpen == true) ||
  5747. tType == 1 ||
  5748. tType == 4) &&
  5749. tool.tool.indexOf(48) != -1
  5750. "
  5751. class="worksBox"
  5752. >
  5753. <div class="noWorksS">
  5754. <div
  5755. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5756. :key="sIndex"
  5757. class="noWorksName"
  5758. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5759. :class="{ isWork: s.type == '2' }"
  5760. >
  5761. {{ s.student }}
  5762. </div>
  5763. </div>
  5764. <div
  5765. class="zuoyeYulan"
  5766. v-if="
  5767. worksStudent2.length &&
  5768. worksStudent2[toolIndex].length > 0
  5769. "
  5770. >
  5771. <div class="worksTop">
  5772. <div>作业预览</div>
  5773. <div
  5774. class="corOpen"
  5775. @click="contract(toolIndex)"
  5776. v-if="
  5777. worksStudent2[toolIndex].length > 6 &&
  5778. isCloseList[toolIndex].isClose == 0
  5779. "
  5780. >
  5781. 收缩
  5782. </div>
  5783. <div
  5784. class="corOpen"
  5785. @click="contract(toolIndex)"
  5786. v-if="isCloseList[toolIndex].isClose == 1"
  5787. >
  5788. 展开
  5789. </div>
  5790. </div>
  5791. </div>
  5792. <div
  5793. class="worksDetailBox"
  5794. v-if="
  5795. worksStudent2.length &&
  5796. worksStudent2[toolIndex].length > 0
  5797. "
  5798. >
  5799. <div
  5800. class="works"
  5801. style="
  5802. width: 200px;
  5803. height: 140px;
  5804. margin: 10px 10px 10px 0;
  5805. border-radius: 15px;
  5806. box-shadow: 0 0 6px 1px #dfdada;
  5807. "
  5808. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5809. ? worksStudent2[toolIndex]
  5810. : worksStudent2[toolIndex].slice(0, 6)"
  5811. :key="wIndex"
  5812. :class="w.type == 1 ? 'isTypeOne' : ''"
  5813. >
  5814. <div class="workImg">
  5815. <img :src="word" @click="openTable(w)" alt />
  5816. <!-- @click="openFile(w.works)" -->
  5817. <div
  5818. class="answerScore"
  5819. v-if="w.score"
  5820. @click.stop="openScore(w)"
  5821. :class="{
  5822. rightW:
  5823. w.userid == userid ||
  5824. tType == 1 ||
  5825. tType == 4 ||
  5826. w.ateacher == userid,
  5827. }"
  5828. >
  5829. {{ JSON.parse(w.score).wScore }}分
  5830. </div>
  5831. <div
  5832. class="answerScore"
  5833. @click.stop="openScore(w)"
  5834. v-else-if="courseDetail.userid == userid"
  5835. :class="{
  5836. rightW:
  5837. w.userid == userid ||
  5838. tType == 1 ||
  5839. tType == 4 ||
  5840. w.ateacher == userid,
  5841. }"
  5842. >
  5843. 评分
  5844. </div>
  5845. <img
  5846. class="deleteImg"
  5847. src="../../assets/deleteworks.png"
  5848. v-if="w.userid == userid || tType == 1 || tType == 4"
  5849. @click.stop="deleteWorks(w.wid)"
  5850. alt
  5851. />
  5852. </div>
  5853. <div class="comment" style="min-width: 200px">
  5854. <div class="worksName">
  5855. <div>{{ w.sName }}</div>
  5856. </div>
  5857. <div class="commentList">
  5858. <div class="commentList">
  5859. <div
  5860. class="commentImg"
  5861. @click="
  5862. isLikes(w.wid, userid, 1, null, w.isLikes)
  5863. "
  5864. >
  5865. <img
  5866. :src="w.isLikes == true ? likes : noLikes"
  5867. alt=""
  5868. />
  5869. </div>
  5870. <div>{{ w.likesCount }}</div>
  5871. </div>
  5872. <div class="commentList" style="margin-right: 15px">
  5873. <div
  5874. class="commentImg"
  5875. @click="commentOther(w, toolIndex, wIndex)"
  5876. >
  5877. <img
  5878. src="../../assets/icon/comment/comment.png"
  5879. alt=""
  5880. />
  5881. </div>
  5882. <div>{{ w.commentCount }}</div>
  5883. </div>
  5884. </div>
  5885. </div>
  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(52) != -1
  5896. "
  5897. class="worksBox"
  5898. >
  5899. <div class="noWorksS">
  5900. <div
  5901. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5902. :key="sIndex"
  5903. class="noWorksName"
  5904. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  5905. :class="{ isWork: s.type == '2' }"
  5906. >
  5907. {{ s.student }}
  5908. </div>
  5909. </div>
  5910. <div
  5911. class="zuoyeYulan"
  5912. v-if="
  5913. worksStudent2.length &&
  5914. worksStudent2[toolIndex].length > 0
  5915. "
  5916. >
  5917. <div class="worksTop">
  5918. <div>作业预览</div>
  5919. <div
  5920. class="corOpen"
  5921. @click="contract(toolIndex)"
  5922. v-if="
  5923. worksStudent2[toolIndex].length > 6 &&
  5924. isCloseList[toolIndex].isClose == 0
  5925. "
  5926. >
  5927. 收缩
  5928. </div>
  5929. <div
  5930. class="corOpen"
  5931. @click="contract(toolIndex)"
  5932. v-if="isCloseList[toolIndex].isClose == 1"
  5933. >
  5934. 展开
  5935. </div>
  5936. </div>
  5937. </div>
  5938. <div
  5939. class="worksDetailBox"
  5940. v-if="
  5941. worksStudent2.length &&
  5942. worksStudent2[toolIndex].length > 0
  5943. "
  5944. >
  5945. <div
  5946. class="works"
  5947. style="
  5948. width: 200px;
  5949. height: 140px;
  5950. margin: 10px 10px 10px 0;
  5951. border-radius: 15px;
  5952. box-shadow: 0 0 6px 1px #dfdada;
  5953. "
  5954. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5955. ? worksStudent2[toolIndex]
  5956. : worksStudent2[toolIndex].slice(0, 6)"
  5957. :key="wIndex"
  5958. :class="w.type == 1 ? 'isTypeOne' : ''"
  5959. >
  5960. <div class="workImg">
  5961. <img :src="word" @click="openWord(w)" alt />
  5962. <!-- @click="openFile(w.works)" -->
  5963. <div
  5964. class="answerScore"
  5965. v-if="w.score"
  5966. @click.stop="openScore(w)"
  5967. :class="{
  5968. rightW:
  5969. w.userid == userid ||
  5970. tType == 1 ||
  5971. tType == 4 ||
  5972. w.ateacher == userid,
  5973. }"
  5974. >
  5975. {{ JSON.parse(w.score).wScore }}分
  5976. </div>
  5977. <div
  5978. class="answerScore"
  5979. @click.stop="openScore(w)"
  5980. v-else-if="courseDetail.userid == userid"
  5981. :class="{
  5982. rightW:
  5983. w.userid == userid ||
  5984. tType == 1 ||
  5985. tType == 4 ||
  5986. w.ateacher == userid,
  5987. }"
  5988. >
  5989. 评分
  5990. </div>
  5991. <img
  5992. class="deleteImg"
  5993. src="../../assets/deleteworks.png"
  5994. v-if="w.userid == userid || tType == 1 || tType == 4"
  5995. @click.stop="deleteWorks(w.wid)"
  5996. alt
  5997. />
  5998. </div>
  5999. <div class="comment" style="min-width: 200px">
  6000. <div class="worksName">
  6001. <div>{{ w.sName }}</div>
  6002. </div>
  6003. <div class="commentList">
  6004. <div class="commentList">
  6005. <div
  6006. class="commentImg"
  6007. @click="
  6008. isLikes(w.wid, userid, 1, null, w.isLikes)
  6009. "
  6010. >
  6011. <img
  6012. :src="w.isLikes == true ? likes : noLikes"
  6013. alt=""
  6014. />
  6015. </div>
  6016. <div>{{ w.likesCount }}</div>
  6017. </div>
  6018. <div class="commentList" style="margin-right: 15px">
  6019. <div
  6020. class="commentImg"
  6021. @click="commentOther(w, toolIndex, wIndex)"
  6022. >
  6023. <img
  6024. src="../../assets/icon/comment/comment.png"
  6025. alt=""
  6026. />
  6027. </div>
  6028. <div>{{ w.commentCount }}</div>
  6029. </div>
  6030. </div>
  6031. </div>
  6032. </div>
  6033. </div>
  6034. </div>
  6035. </div>
  6036. </div>
  6037. <div
  6038. class="vedioBox"
  6039. v-if="
  6040. arrayToArray(tool.tool, isWorkTool).length &&
  6041. (noWorksS[toolIndex].length || worksStudent[toolIndex].length)
  6042. "
  6043. >
  6044. <!-- <div
  6045. class="queTop"
  6046. style="
  6047. font-size: 25px;
  6048. padding: 15px 0 15px 37px;
  6049. font-weight: bold;
  6050. "
  6051. >
  6052. 工作区
  6053. </div> -->
  6054. <div class="tool_work_box">
  6055. <div
  6056. v-if="
  6057. tType &&
  6058. ((tType == 2 && sIsOpen == true) ||
  6059. tType == 1 ||
  6060. tType == 4) &&
  6061. tool.tool.indexOf(16) != -1
  6062. "
  6063. class="worksBox"
  6064. >
  6065. <div
  6066. class="zuoyeYulan"
  6067. v-if="
  6068. worksStudent.length && worksStudent[toolIndex].length > 0
  6069. "
  6070. >
  6071. <div class="worksTop">
  6072. <div>作业预览</div>
  6073. <div
  6074. class="corOpen"
  6075. @click="contract(toolIndex)"
  6076. v-if="
  6077. worksStudent[toolIndex].length > 6 &&
  6078. isCloseList[toolIndex].isClose == 0
  6079. "
  6080. >
  6081. 收缩
  6082. </div>
  6083. <div
  6084. class="corOpen"
  6085. @click="contract(toolIndex)"
  6086. v-if="isCloseList[toolIndex].isClose == 1"
  6087. >
  6088. 展开
  6089. </div>
  6090. </div>
  6091. </div>
  6092. <div
  6093. class="worksDetailBox"
  6094. v-if="
  6095. worksStudent.length && worksStudent[toolIndex].length > 0
  6096. "
  6097. >
  6098. <div
  6099. class="works"
  6100. style="
  6101. width: 200px;
  6102. height: 140px;
  6103. margin: 10px 10px 10px 0;
  6104. border-radius: 15px;
  6105. box-shadow: 0 0 6px 1px #dfdada;
  6106. "
  6107. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6108. ? worksStudent[toolIndex]
  6109. : worksStudent[toolIndex].slice(0, 6)"
  6110. :key="wIndex"
  6111. :class="w.type == 1 ? 'isTypeOne' : ''"
  6112. >
  6113. <div class="workImg" v-if="w.type == 0">
  6114. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6115. <img :src="w.works" @click="previewImg(w.works)" alt />
  6116. <div
  6117. class="answerScore"
  6118. v-if="w.score"
  6119. @click.stop="openScore(w)"
  6120. :class="{
  6121. rightW:
  6122. w.userid == userid ||
  6123. tType == 1 ||
  6124. tType == 4 ||
  6125. w.ateacher == userid,
  6126. }"
  6127. >
  6128. {{ JSON.parse(w.score).wScore }}分
  6129. </div>
  6130. <div
  6131. class="answerScore"
  6132. @click.stop="openScore(w)"
  6133. v-else-if="courseDetail.userid == userid"
  6134. :class="{
  6135. rightW:
  6136. w.userid == userid ||
  6137. tType == 1 ||
  6138. tType == 4 ||
  6139. w.ateacher == userid,
  6140. }"
  6141. >
  6142. 评分
  6143. </div>
  6144. <img
  6145. class="deleteImg"
  6146. src="../../assets/deleteworks.png"
  6147. v-if="w.userid == userid || tType == 1 || tType == 4"
  6148. @click.stop="deleteWorks(w.wid)"
  6149. alt
  6150. />
  6151. </div>
  6152. <div class="workImg" v-if="w.type == 1">
  6153. <img :src="word" @click="openFile(w.works)" alt />
  6154. <!-- @click="openFile(w.works)" -->
  6155. <div
  6156. class="answerScore"
  6157. v-if="w.score"
  6158. @click.stop="openScore(w)"
  6159. :class="{
  6160. rightW:
  6161. w.userid == userid ||
  6162. tType == 1 ||
  6163. tType == 4 ||
  6164. w.ateacher == userid,
  6165. }"
  6166. >
  6167. {{ JSON.parse(w.score).wScore }}分
  6168. </div>
  6169. <div
  6170. class="answerScore"
  6171. @click.stop="openScore(w)"
  6172. v-else-if="courseDetail.userid == userid"
  6173. :class="{
  6174. rightW:
  6175. w.userid == userid ||
  6176. tType == 1 ||
  6177. tType == 4 ||
  6178. w.ateacher == userid,
  6179. }"
  6180. >
  6181. 评分
  6182. </div>
  6183. <img
  6184. class="deleteImg"
  6185. src="../../assets/deleteworks.png"
  6186. v-if="w.userid == userid || tType == 1 || tType == 4"
  6187. @click.stop="deleteWorks(w.wid)"
  6188. alt
  6189. />
  6190. </div>
  6191. <div class="workImg" v-if="w.type == 3">
  6192. <img
  6193. style="cursor: pointer"
  6194. :src="video"
  6195. @click="openVideo(w)"
  6196. alt
  6197. />
  6198. <!-- @click="openVideo(w.works)" -->
  6199. <div
  6200. class="answerScore"
  6201. v-if="w.score"
  6202. @click.stop="openScore(w)"
  6203. :class="{
  6204. rightW:
  6205. w.userid == userid ||
  6206. tType == 1 ||
  6207. tType == 4 ||
  6208. w.ateacher == userid,
  6209. }"
  6210. >
  6211. {{ JSON.parse(w.score).wScore }}分
  6212. </div>
  6213. <div
  6214. class="answerScore"
  6215. @click.stop="openScore(w)"
  6216. v-else-if="courseDetail.userid == userid"
  6217. :class="{
  6218. rightW:
  6219. w.userid == userid ||
  6220. tType == 1 ||
  6221. tType == 4 ||
  6222. w.ateacher == userid,
  6223. }"
  6224. >
  6225. 评分
  6226. </div>
  6227. <img
  6228. class="deleteImg"
  6229. src="../../assets/deleteworks.png"
  6230. v-if="w.userid == userid || tType == 1 || tType == 4"
  6231. @click.stop="deleteWorks(w.wid)"
  6232. alt
  6233. />
  6234. </div>
  6235. <div class="workImg" v-if="w.type == 12">
  6236. <img
  6237. style="cursor: pointer"
  6238. :src="word2"
  6239. @click="downloadFile(w.works)"
  6240. alt
  6241. />
  6242. <!-- @click="openVideo(w.works)" -->
  6243. <div
  6244. class="answerScore"
  6245. v-if="w.score"
  6246. @click.stop="openScore(w)"
  6247. :class="{
  6248. rightW:
  6249. w.userid == userid ||
  6250. tType == 1 ||
  6251. tType == 4 ||
  6252. w.ateacher == userid,
  6253. }"
  6254. >
  6255. {{ JSON.parse(w.score).wScore }}分
  6256. </div>
  6257. <div
  6258. class="answerScore"
  6259. @click.stop="openScore(w)"
  6260. v-else-if="courseDetail.userid == userid"
  6261. :class="{
  6262. rightW:
  6263. w.userid == userid ||
  6264. tType == 1 ||
  6265. tType == 4 ||
  6266. w.ateacher == userid,
  6267. }"
  6268. >
  6269. 评分
  6270. </div>
  6271. <img
  6272. class="deleteImg"
  6273. src="../../assets/deleteworks.png"
  6274. v-if="w.userid == userid || tType == 1 || tType == 4"
  6275. @click.stop="deleteWorks(w.wid)"
  6276. alt
  6277. />
  6278. </div>
  6279. <div class="comment" style="min-width: 200px">
  6280. <div class="worksName">
  6281. <div>{{ w.sName }}</div>
  6282. </div>
  6283. <div class="commentList">
  6284. <div class="commentList">
  6285. <div
  6286. class="commentImg"
  6287. @click="
  6288. isLikes(w.wid, userid, 1, null, w.isLikes)
  6289. "
  6290. >
  6291. <img
  6292. :src="w.isLikes == true ? likes : noLikes"
  6293. alt=""
  6294. />
  6295. </div>
  6296. <div>{{ w.likesCount }}</div>
  6297. </div>
  6298. <div class="commentList" style="margin-right: 15px">
  6299. <div
  6300. class="commentImg"
  6301. @click="commentOther(w, toolIndex, wIndex)"
  6302. >
  6303. <img
  6304. src="../../assets/icon/comment/comment.png"
  6305. alt=""
  6306. />
  6307. </div>
  6308. <div>{{ w.commentCount }}</div>
  6309. </div>
  6310. </div>
  6311. </div>
  6312. </div>
  6313. </div>
  6314. <div class="noWorksS">
  6315. <div
  6316. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6317. :key="sIndex"
  6318. class="noWorksName"
  6319. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  6320. :class="{ isWork: s.type == '2' }"
  6321. >
  6322. {{ s.student }}
  6323. </div>
  6324. </div>
  6325. </div>
  6326. <div
  6327. v-if="
  6328. tType &&
  6329. ((tType == 2 && sIsOpen == true) ||
  6330. tType == 1 ||
  6331. tType == 4) &&
  6332. tool.tool.indexOf(32) != -1
  6333. "
  6334. class="worksBox"
  6335. >
  6336. <div
  6337. class="zuoyeYulan"
  6338. v-if="
  6339. worksStudent.length && worksStudent[toolIndex].length > 0
  6340. "
  6341. >
  6342. <div class="worksTop">
  6343. <div>作业预览</div>
  6344. <div
  6345. class="corOpen"
  6346. @click="contract(toolIndex)"
  6347. v-if="
  6348. worksStudent[toolIndex].length > 6 &&
  6349. isCloseList[toolIndex].isClose == 0
  6350. "
  6351. >
  6352. 收缩
  6353. </div>
  6354. <div
  6355. class="corOpen"
  6356. @click="contract(toolIndex)"
  6357. v-if="isCloseList[toolIndex].isClose == 1"
  6358. >
  6359. 展开
  6360. </div>
  6361. </div>
  6362. </div>
  6363. <div
  6364. class="worksDetailBox"
  6365. v-if="
  6366. worksStudent.length && worksStudent[toolIndex].length > 0
  6367. "
  6368. >
  6369. <div
  6370. class="works"
  6371. style="
  6372. width: 200px;
  6373. height: 140px;
  6374. margin: 10px 10px 10px 0;
  6375. border-radius: 15px;
  6376. box-shadow: 0 0 6px 1px #dfdada;
  6377. "
  6378. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6379. ? worksStudent[toolIndex]
  6380. : worksStudent[toolIndex].slice(0, 6)"
  6381. :key="wIndex"
  6382. :class="w.type == 1 ? 'isTypeOne' : ''"
  6383. >
  6384. <div class="workImg">
  6385. <img :src="word2" @click="downloadFile(w.works)" alt />
  6386. <div
  6387. class="answerScore"
  6388. v-if="w.score"
  6389. @click.stop="openScore(w)"
  6390. :class="{
  6391. rightW:
  6392. w.userid == userid ||
  6393. tType == 1 ||
  6394. tType == 4 ||
  6395. w.ateacher == userid,
  6396. }"
  6397. >
  6398. {{ JSON.parse(w.score).wScore }}分
  6399. </div>
  6400. <div
  6401. class="answerScore"
  6402. @click.stop="openScore(w)"
  6403. v-else-if="courseDetail.userid == userid"
  6404. :class="{
  6405. rightW:
  6406. w.userid == userid ||
  6407. tType == 1 ||
  6408. tType == 4 ||
  6409. w.ateacher == userid,
  6410. }"
  6411. >
  6412. 评分
  6413. </div>
  6414. <img
  6415. class="deleteImg"
  6416. src="../../assets/deleteworks.png"
  6417. v-if="w.userid == userid || tType == 1 || tType == 4"
  6418. @click.stop="deleteWorks(w.wid)"
  6419. alt
  6420. />
  6421. </div>
  6422. <div class="comment" style="min-width: 200px">
  6423. <div class="worksName">
  6424. <div>{{ w.sName }}</div>
  6425. </div>
  6426. <div class="commentList">
  6427. <div class="commentList">
  6428. <div
  6429. class="commentImg"
  6430. @click="
  6431. isLikes(w.wid, userid, 1, null, w.isLikes)
  6432. "
  6433. >
  6434. <img
  6435. :src="w.isLikes == true ? likes : noLikes"
  6436. alt=""
  6437. />
  6438. </div>
  6439. <div>{{ w.likesCount }}</div>
  6440. </div>
  6441. <div class="commentList" style="margin-right: 15px">
  6442. <div
  6443. class="commentImg"
  6444. @click="commentOther(w, toolIndex, wIndex)"
  6445. >
  6446. <img
  6447. src="../../assets/icon/comment/comment.png"
  6448. alt=""
  6449. />
  6450. </div>
  6451. <div>{{ w.commentCount }}</div>
  6452. </div>
  6453. </div>
  6454. </div>
  6455. </div>
  6456. </div>
  6457. <div class="noWorksS">
  6458. <div
  6459. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6460. :key="sIndex"
  6461. class="noWorksName"
  6462. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  6463. :class="{ isWork: s.type == '2' }"
  6464. >
  6465. {{ s.student }}
  6466. </div>
  6467. </div>
  6468. </div>
  6469. <div
  6470. v-if="
  6471. tType &&
  6472. ((tType == 2 && sIsOpen == true) ||
  6473. tType == 1 ||
  6474. tType == 4) &&
  6475. tool.tool.indexOf(57) != -1
  6476. "
  6477. class="worksBox"
  6478. >
  6479. <div
  6480. class="zuoyeYulan"
  6481. v-if="
  6482. worksStudent.length && worksStudent[toolIndex].length > 0
  6483. "
  6484. >
  6485. <div class="worksTop">
  6486. <div>作业预览</div>
  6487. <div
  6488. class="corOpen"
  6489. @click="contract(toolIndex)"
  6490. v-if="
  6491. worksStudent[toolIndex].length > 6 &&
  6492. isCloseList[toolIndex].isClose == 0
  6493. "
  6494. >
  6495. 收缩
  6496. </div>
  6497. <div
  6498. class="corOpen"
  6499. @click="contract(toolIndex)"
  6500. v-if="isCloseList[toolIndex].isClose == 1"
  6501. >
  6502. 展开
  6503. </div>
  6504. </div>
  6505. </div>
  6506. <div
  6507. class="worksDetailBox"
  6508. v-if="
  6509. worksStudent.length && worksStudent[toolIndex].length > 0
  6510. "
  6511. >
  6512. <div
  6513. class="works"
  6514. style="
  6515. width: 200px;
  6516. height: 140px;
  6517. margin: 10px 10px 10px 0;
  6518. border-radius: 15px;
  6519. box-shadow: 0 0 6px 1px #dfdada;
  6520. "
  6521. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6522. ? worksStudent[toolIndex]
  6523. : worksStudent[toolIndex].slice(0, 6)"
  6524. :key="wIndex"
  6525. :class="w.type == 1 ? 'isTypeOne' : ''"
  6526. >
  6527. <div class="workImg">
  6528. <img
  6529. :src="word2"
  6530. @click="downloadFile(w.works)"
  6531. v-if="w.type == 12"
  6532. alt
  6533. />
  6534. <img
  6535. :src="word2"
  6536. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  6537. v-else-if="w.type == 15"
  6538. alt
  6539. />
  6540. <div
  6541. class="answerScore"
  6542. v-if="w.score"
  6543. @click.stop="openScore(w)"
  6544. :class="{
  6545. rightW:
  6546. w.userid == userid ||
  6547. tType == 1 ||
  6548. tType == 4 ||
  6549. w.ateacher == userid,
  6550. }"
  6551. >
  6552. {{ JSON.parse(w.score).wScore }}分
  6553. </div>
  6554. <div
  6555. class="answerScore"
  6556. @click.stop="openScore(w)"
  6557. v-else-if="courseDetail.userid == userid"
  6558. :class="{
  6559. rightW:
  6560. w.userid == userid ||
  6561. tType == 1 ||
  6562. tType == 4 ||
  6563. w.ateacher == userid,
  6564. }"
  6565. >
  6566. 评分
  6567. </div>
  6568. <img
  6569. class="deleteImg"
  6570. src="../../assets/deleteworks.png"
  6571. v-if="w.userid == userid || tType == 1 || tType == 4"
  6572. @click.stop="deleteWorks(w.wid)"
  6573. alt
  6574. />
  6575. </div>
  6576. <div class="comment" style="min-width: 200px">
  6577. <div class="worksName">
  6578. <div>{{ w.sName }}</div>
  6579. </div>
  6580. <div class="commentList">
  6581. <div class="commentList">
  6582. <div
  6583. class="commentImg"
  6584. @click="
  6585. isLikes(w.wid, userid, 1, null, w.isLikes)
  6586. "
  6587. >
  6588. <img
  6589. :src="w.isLikes == true ? likes : noLikes"
  6590. alt=""
  6591. />
  6592. </div>
  6593. <div>{{ w.likesCount }}</div>
  6594. </div>
  6595. <div class="commentList" style="margin-right: 15px">
  6596. <div
  6597. class="commentImg"
  6598. @click="commentOther(w, toolIndex, wIndex)"
  6599. >
  6600. <img
  6601. src="../../assets/icon/comment/comment.png"
  6602. alt=""
  6603. />
  6604. </div>
  6605. <div>{{ w.commentCount }}</div>
  6606. </div>
  6607. </div>
  6608. </div>
  6609. </div>
  6610. </div>
  6611. <div class="noWorksS">
  6612. <div
  6613. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6614. :key="sIndex"
  6615. class="noWorksName"
  6616. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  6617. :class="{ isWork: s.type == '2' }"
  6618. >
  6619. {{ s.student }}
  6620. </div>
  6621. </div>
  6622. </div>
  6623. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  6624. <div
  6625. class="zuoyeYulan"
  6626. v-if="
  6627. worksStudent.length && worksStudent[toolIndex].length > 0
  6628. "
  6629. >
  6630. <span>作业预览</span>
  6631. <div
  6632. class="corOpen"
  6633. @click="contract(toolIndex)"
  6634. v-if="
  6635. worksStudent[toolIndex].length > 6 &&
  6636. isCloseList[toolIndex].isClose == 0
  6637. "
  6638. >
  6639. 收缩
  6640. </div>
  6641. <div
  6642. class="corOpen"
  6643. @click="contract(toolIndex)"
  6644. v-if="isCloseList[toolIndex].isClose == 1"
  6645. >
  6646. 展开
  6647. </div>
  6648. </div>
  6649. <div
  6650. class="worksDetailBox"
  6651. v-if="
  6652. worksStudent.length && worksStudent[toolIndex].length > 0
  6653. "
  6654. >
  6655. <div
  6656. class="works"
  6657. style="
  6658. width: 200px;
  6659. height: 140px;
  6660. margin: 10px 10px 10px 0;
  6661. border-radius: 15px;
  6662. box-shadow: 0 0 6px 1px #dfdada;
  6663. "
  6664. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6665. ? worksStudent[toolIndex]
  6666. : worksStudent[toolIndex].slice(0, 6)"
  6667. :key="wIndex"
  6668. :class="w.type == 1 ? 'isTypeOne' : ''"
  6669. >
  6670. <div class="workImg" v-if="w.type == 0">
  6671. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6672. <img :src="w.works" @click="previewImg(w.works)" alt />
  6673. <div
  6674. class="answerScore"
  6675. v-if="w.score"
  6676. @click.stop="openScore(w)"
  6677. :class="{
  6678. rightW:
  6679. w.userid == userid ||
  6680. tType == 1 ||
  6681. tType == 4 ||
  6682. w.ateacher == userid,
  6683. }"
  6684. >
  6685. {{ JSON.parse(w.score).wScore }}分
  6686. </div>
  6687. <div
  6688. class="answerScore"
  6689. @click.stop="openScore(w)"
  6690. v-else-if="courseDetail.userid == userid"
  6691. :class="{
  6692. rightW:
  6693. w.userid == userid ||
  6694. tType == 1 ||
  6695. tType == 4 ||
  6696. w.ateacher == userid,
  6697. }"
  6698. >
  6699. 评分
  6700. </div>
  6701. <img
  6702. class="deleteImg"
  6703. src="../../assets/deleteworks.png"
  6704. v-if="w.userid == userid || tType == 1 || tType == 4"
  6705. @click.stop="deleteWorks(w.wid)"
  6706. alt
  6707. />
  6708. </div>
  6709. <div
  6710. class="workImg"
  6711. style="cursor: pointer"
  6712. v-if="w.type == 1"
  6713. >
  6714. <img :src="word" @click="openFile(w.works)" alt />
  6715. <!-- @click="openFile(w.works)" -->
  6716. <div
  6717. class="answerScore"
  6718. v-if="w.score"
  6719. @click.stop="openScore(w)"
  6720. :class="{
  6721. rightW:
  6722. w.userid == userid ||
  6723. tType == 1 ||
  6724. tType == 4 ||
  6725. w.ateacher == userid,
  6726. }"
  6727. >
  6728. {{ JSON.parse(w.score).wScore }}分
  6729. </div>
  6730. <div
  6731. class="answerScore"
  6732. @click.stop="openScore(w)"
  6733. v-else-if="courseDetail.userid == userid"
  6734. :class="{
  6735. rightW:
  6736. w.userid == userid ||
  6737. tType == 1 ||
  6738. tType == 4 ||
  6739. w.ateacher == userid,
  6740. }"
  6741. >
  6742. 评分
  6743. </div>
  6744. <img
  6745. class="deleteImg"
  6746. src="../../assets/deleteworks.png"
  6747. v-if="w.userid == userid || tType == 1 || tType == 4"
  6748. @click.stop="deleteWorks(w.wid)"
  6749. alt
  6750. />
  6751. </div>
  6752. <div class="workImg" v-if="w.type == 3">
  6753. <img
  6754. style="cursor: pointer"
  6755. :src="video"
  6756. @click="openVideo(w)"
  6757. alt
  6758. />
  6759. <!-- @click="openVideo(w.works)" -->
  6760. <div
  6761. class="answerScore"
  6762. v-if="w.score"
  6763. @click.stop="openScore(w)"
  6764. :class="{
  6765. rightW:
  6766. w.userid == userid ||
  6767. tType == 1 ||
  6768. tType == 4 ||
  6769. w.ateacher == userid,
  6770. }"
  6771. >
  6772. {{ JSON.parse(w.score).wScore }}分
  6773. </div>
  6774. <div
  6775. class="answerScore"
  6776. @click.stop="openScore(w)"
  6777. v-else-if="courseDetail.userid == userid"
  6778. :class="{
  6779. rightW:
  6780. w.userid == userid ||
  6781. tType == 1 ||
  6782. tType == 4 ||
  6783. w.ateacher == userid,
  6784. }"
  6785. >
  6786. 评分
  6787. </div>
  6788. <img
  6789. class="deleteImg"
  6790. src="../../assets/deleteworks.png"
  6791. v-if="w.userid == userid || tType == 1 || tType == 4"
  6792. @click.stop="deleteWorks(w.wid)"
  6793. alt
  6794. />
  6795. </div>
  6796. <div class="comment" style="min-width: 200px">
  6797. <div class="worksName">
  6798. <div
  6799. style="cursor: pointer"
  6800. @click="
  6801. openSname(w.sName, w.wid, toolIndex, w.userid)
  6802. "
  6803. >
  6804. {{ w.sName }}
  6805. </div>
  6806. </div>
  6807. <div class="commentList">
  6808. <div class="commentList">
  6809. <div
  6810. class="commentImg"
  6811. @click="
  6812. isLikes(w.wid, userid, 1, null, w.isLikes)
  6813. "
  6814. >
  6815. <img
  6816. :src="w.isLikes == true ? likes : noLikes"
  6817. alt=""
  6818. />
  6819. </div>
  6820. <div>{{ w.likesCount }}</div>
  6821. </div>
  6822. <div class="commentList" style="margin-right: 15px">
  6823. <div
  6824. class="commentImg"
  6825. @click="commentOther(w, toolIndex, wIndex)"
  6826. >
  6827. <img
  6828. src="../../assets/icon/comment/comment.png"
  6829. alt=""
  6830. />
  6831. </div>
  6832. <div>{{ w.commentCount }}</div>
  6833. </div>
  6834. </div>
  6835. </div>
  6836. </div>
  6837. </div>
  6838. <div class="noWorksS">
  6839. <div
  6840. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6841. :key="sIndex"
  6842. class="noWorksName"
  6843. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  6844. :class="{ isWork: s.type == '2' }"
  6845. >
  6846. {{ s.student }}
  6847. </div>
  6848. </div>
  6849. </div>
  6850. <div
  6851. v-if="
  6852. tType &&
  6853. ((tType == 2 && sIsOpen == true) ||
  6854. tType == 1 ||
  6855. tType == 4) &&
  6856. tool.tool.indexOf(4) != -1
  6857. "
  6858. class="worksBox"
  6859. >
  6860. <div
  6861. class="zuoyeYulan"
  6862. v-if="
  6863. worksStudent.length && worksStudent[toolIndex].length > 0
  6864. "
  6865. >
  6866. <div class="worksTop">
  6867. <div>作业预览</div>
  6868. <div
  6869. class="corOpen"
  6870. @click="contract(toolIndex)"
  6871. v-if="
  6872. worksStudent[toolIndex].length > 6 &&
  6873. isCloseList[toolIndex].isClose == 0
  6874. "
  6875. >
  6876. 收缩
  6877. </div>
  6878. <div
  6879. class="corOpen"
  6880. @click="contract(toolIndex)"
  6881. v-if="isCloseList[toolIndex].isClose == 1"
  6882. >
  6883. 展开
  6884. </div>
  6885. </div>
  6886. </div>
  6887. <div>
  6888. <div
  6889. class="worksDetailBox"
  6890. v-if="
  6891. worksStudent.length &&
  6892. worksStudent[toolIndex].length > 0
  6893. "
  6894. >
  6895. <div
  6896. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6897. 0
  6898. ? worksStudent[toolIndex]
  6899. : worksStudent[toolIndex].slice(0, 6)"
  6900. :key="wIndex"
  6901. class="isWorksName"
  6902. @click="
  6903. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6904. "
  6905. >
  6906. {{ w.sName }}
  6907. <img
  6908. class="deleteImg deleteImg2"
  6909. src="../../assets/deleteworks.png"
  6910. v-if="w.userid == userid || tType == 1 || tType == 4"
  6911. @click.stop="deleteWorks(w.wid)"
  6912. alt
  6913. />
  6914. </div>
  6915. </div>
  6916. </div>
  6917. <div class="noWorksS">
  6918. <div
  6919. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6920. :key="sIndex"
  6921. class="noWorksName"
  6922. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6923. :class="{ isWork: s.type == '2' }"
  6924. >
  6925. {{ s.student }}
  6926. </div>
  6927. </div>
  6928. </div>
  6929. <div
  6930. v-if="
  6931. tType &&
  6932. ((tType == 2 && sIsOpen == true) ||
  6933. tType == 1 ||
  6934. tType == 4) &&
  6935. tool.tool.indexOf(45) != -1
  6936. "
  6937. class="worksBox"
  6938. >
  6939. <div
  6940. class="zuoyeYulan"
  6941. v-if="
  6942. worksStudent.length && worksStudent[toolIndex].length > 0
  6943. "
  6944. >
  6945. <div class="worksTop">
  6946. <div>作业预览</div>
  6947. <div
  6948. class="corOpen"
  6949. @click="contract(toolIndex)"
  6950. v-if="
  6951. worksStudent[toolIndex].length > 6 &&
  6952. isCloseList[toolIndex].isClose == 0
  6953. "
  6954. >
  6955. 收缩
  6956. </div>
  6957. <div
  6958. class="corOpen"
  6959. @click="contract(toolIndex)"
  6960. v-if="isCloseList[toolIndex].isClose == 1"
  6961. >
  6962. 展开
  6963. </div>
  6964. </div>
  6965. </div>
  6966. <div>
  6967. <div
  6968. class="worksDetailBox"
  6969. v-if="
  6970. worksStudent.length &&
  6971. worksStudent[toolIndex].length > 0
  6972. "
  6973. >
  6974. <div
  6975. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6976. 0
  6977. ? worksStudent[toolIndex]
  6978. : worksStudent[toolIndex].slice(0, 6)"
  6979. :key="wIndex"
  6980. class="isWorksName"
  6981. @click="
  6982. openTools(45, toolIndex, taskCount, w.works, w.sName)
  6983. "
  6984. >
  6985. {{ w.sName }}
  6986. <img
  6987. class="deleteImg deleteImg2"
  6988. src="../../assets/deleteworks.png"
  6989. v-if="w.userid == userid || tType == 1 || tType == 4"
  6990. @click.stop="deleteWorks(w.wid)"
  6991. alt
  6992. />
  6993. </div>
  6994. </div>
  6995. </div>
  6996. <div class="noWorksS">
  6997. <div
  6998. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6999. :key="sIndex"
  7000. class="noWorksName"
  7001. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  7002. :class="{ isWork: s.type == '2' }"
  7003. >
  7004. {{ s.student }}
  7005. </div>
  7006. </div>
  7007. </div>
  7008. <div
  7009. v-if="
  7010. tType &&
  7011. ((tType == 2 && sIsOpen == true) ||
  7012. tType == 1 ||
  7013. tType == 4) &&
  7014. tool.tool.indexOf(15) != -1
  7015. "
  7016. class="worksBox"
  7017. >
  7018. <div
  7019. class="zuoyeYulan"
  7020. v-if="
  7021. worksStudent.length && worksStudent[toolIndex].length > 0
  7022. "
  7023. >
  7024. <div class="worksTop">
  7025. <div>作业预览</div>
  7026. <div
  7027. class="corOpen"
  7028. @click="contract(toolIndex)"
  7029. v-if="
  7030. worksStudent[toolIndex].length > 6 &&
  7031. isCloseList[toolIndex].isClose == 0
  7032. "
  7033. >
  7034. 收缩
  7035. </div>
  7036. <div
  7037. class="corOpen"
  7038. @click="contract(toolIndex)"
  7039. v-if="isCloseList[toolIndex].isClose == 1"
  7040. >
  7041. 展开
  7042. </div>
  7043. </div>
  7044. </div>
  7045. <div
  7046. class="worksDetailBox"
  7047. v-if="
  7048. worksStudent.length && worksStudent[toolIndex].length > 0
  7049. "
  7050. >
  7051. <div
  7052. class="works"
  7053. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7054. ? worksStudent[toolIndex]
  7055. : worksStudent[toolIndex].slice(0, 6)"
  7056. :key="wIndex"
  7057. >
  7058. <div
  7059. class="workImg"
  7060. style="
  7061. border-radius: 15px;
  7062. box-shadow: #eee 0px 0px 5px 5px;
  7063. "
  7064. >
  7065. <!-- <img
  7066. src="../../assets/icon/works/noImg.png"
  7067. @click="openTools(15, toolIndex, taskCount, w.works)"
  7068. alt=""
  7069. />-->
  7070. <div
  7071. class="answerBg"
  7072. style="border-radius: 15px 15px 0 0"
  7073. @click="commentOther(w, toolIndex, wIndex)"
  7074. >
  7075. <!-- <div>{{ w.sName }}</div> -->
  7076. <div class="answerContent">
  7077. {{ JSON.parse(w.works)[0].answer }}
  7078. </div>
  7079. <div
  7080. class="answerScore"
  7081. v-if="w.score"
  7082. @click.stop="openScore(w)"
  7083. :class="{
  7084. rightW:
  7085. w.userid == userid || tType == 1 || tType == 4,
  7086. }"
  7087. >
  7088. {{ JSON.parse(w.score).wScore }}分
  7089. </div>
  7090. <div
  7091. class="answerScore"
  7092. @click.stop="openScore(w)"
  7093. v-else-if="courseDetail.userid == userid"
  7094. :class="{
  7095. rightW:
  7096. w.userid == userid || tType == 1 || tType == 4,
  7097. }"
  7098. >
  7099. 评分
  7100. </div>
  7101. <img
  7102. class="deleteImg"
  7103. src="../../assets/deleteworks.png"
  7104. v-if="
  7105. w.userid == userid || tType == 1 || tType == 4
  7106. "
  7107. @click.stop="deleteWorks(w.wid)"
  7108. alt
  7109. />
  7110. </div>
  7111. <div class="comment">
  7112. <div class="worksName">
  7113. <div>{{ w.sName }}</div>
  7114. </div>
  7115. <div class="commentList">
  7116. <div
  7117. class="commentImg"
  7118. @click="
  7119. isLikes(w.wid, userid, 1, null, w.isLikes)
  7120. "
  7121. >
  7122. <img
  7123. :src="w.isLikes == true ? likes : noLikes"
  7124. alt=""
  7125. />
  7126. </div>
  7127. <div>{{ w.likesCount }}</div>
  7128. </div>
  7129. <div class="commentList" style="margin-right: 15px">
  7130. <div
  7131. class="commentImg"
  7132. @click="commentOther(w, toolIndex, wIndex)"
  7133. >
  7134. <img
  7135. src="../../assets/icon/comment/comment.png"
  7136. alt=""
  7137. />
  7138. </div>
  7139. <div>{{ w.commentCount }}</div>
  7140. </div>
  7141. </div>
  7142. </div>
  7143. </div>
  7144. </div>
  7145. <div class="noWorksS">
  7146. <div
  7147. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7148. :key="sIndex"
  7149. class="noWorksName"
  7150. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  7151. :class="{ isWork: s.type == '2' }"
  7152. >
  7153. {{ s.student }}
  7154. </div>
  7155. </div>
  7156. </div>
  7157. <div
  7158. v-if="
  7159. tType &&
  7160. ((tType == 2 && sIsOpen == true) ||
  7161. tType == 1 ||
  7162. tType == 4) &&
  7163. tool.tool.indexOf(1) != -1
  7164. "
  7165. class="worksBox"
  7166. >
  7167. <div
  7168. class="zuoyeYulan"
  7169. v-if="
  7170. worksStudent.length && worksStudent[toolIndex].length > 0
  7171. "
  7172. >
  7173. <div class="worksTop">
  7174. <div>作业预览</div>
  7175. <div
  7176. class="corOpen"
  7177. @click="contract(toolIndex)"
  7178. v-if="
  7179. worksStudent[toolIndex].length > 6 &&
  7180. isCloseList[toolIndex].isClose == 0
  7181. "
  7182. >
  7183. 收缩
  7184. </div>
  7185. <div
  7186. class="corOpen"
  7187. @click="contract(toolIndex)"
  7188. v-if="isCloseList[toolIndex].isClose == 1"
  7189. >
  7190. 展开
  7191. </div>
  7192. </div>
  7193. </div>
  7194. <div
  7195. class="worksDetailBox"
  7196. v-if="
  7197. worksStudent.length && worksStudent[toolIndex].length > 0
  7198. "
  7199. >
  7200. <div
  7201. class="works"
  7202. style="
  7203. width: 200px;
  7204. height: 140px;
  7205. margin: 10px 10px 10px 0;
  7206. border-radius: 15px;
  7207. box-shadow: 0 0 6px 1px #dfdada;
  7208. "
  7209. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7210. ? worksStudent[toolIndex]
  7211. : worksStudent[toolIndex].slice(0, 6)"
  7212. :key="wIndex"
  7213. >
  7214. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  7215. <div class="workImg">
  7216. <img :src="w.works" @click="previewImg(w.works)" alt />
  7217. <div
  7218. class="answerScore"
  7219. v-if="w.score"
  7220. @click.stop="openScore(w)"
  7221. :class="{
  7222. rightW:
  7223. w.userid == userid || tType == 1 || tType == 4,
  7224. }"
  7225. >
  7226. {{ JSON.parse(w.score).wScore }}分
  7227. </div>
  7228. <div
  7229. class="answerScore"
  7230. @click.stop="openScore(w)"
  7231. v-else-if="courseDetail.userid == userid"
  7232. :class="{
  7233. rightW:
  7234. w.userid == userid || tType == 1 || tType == 4,
  7235. }"
  7236. >
  7237. 评分
  7238. </div>
  7239. <img
  7240. class="deleteImg"
  7241. src="../../assets/deleteworks.png"
  7242. v-if="w.userid == userid || tType == 1 || tType == 4"
  7243. @click.stop="deleteWorks(w.wid)"
  7244. alt
  7245. />
  7246. </div>
  7247. <div class="comment" style="min-width: 200px">
  7248. <div class="worksName">
  7249. <div>{{ w.sName }}</div>
  7250. </div>
  7251. <div class="commentList">
  7252. <div class="commentList">
  7253. <div
  7254. class="commentImg"
  7255. @click="
  7256. isLikes(w.wid, userid, 1, null, w.isLikes)
  7257. "
  7258. >
  7259. <img
  7260. :src="w.isLikes == true ? likes : noLikes"
  7261. alt=""
  7262. />
  7263. </div>
  7264. <div>{{ w.likesCount }}</div>
  7265. </div>
  7266. <div class="commentList" style="margin-right: 15px">
  7267. <div
  7268. class="commentImg"
  7269. @click="commentOther(w, toolIndex, wIndex)"
  7270. >
  7271. <img
  7272. src="../../assets/icon/comment/comment.png"
  7273. alt=""
  7274. />
  7275. </div>
  7276. <div>{{ w.commentCount }}</div>
  7277. </div>
  7278. </div>
  7279. </div>
  7280. </div>
  7281. </div>
  7282. <div class="noWorksS">
  7283. <div
  7284. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7285. :key="sIndex"
  7286. class="noWorksName"
  7287. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7288. :class="{ isWork: s.type == '2' }"
  7289. >
  7290. {{ s.student }}
  7291. </div>
  7292. </div>
  7293. </div>
  7294. <div
  7295. v-if="
  7296. tType &&
  7297. ((tType == 2 && sIsOpen == true) ||
  7298. tType == 1 ||
  7299. tType == 4) &&
  7300. tool.tool.indexOf(3) != -1
  7301. "
  7302. class="worksBox"
  7303. >
  7304. <div
  7305. class="zuoyeYulan"
  7306. v-if="
  7307. worksStudent.length && worksStudent[toolIndex].length > 0
  7308. "
  7309. >
  7310. <div class="worksTop">
  7311. <div>作业预览</div>
  7312. <div
  7313. class="corOpen"
  7314. @click="contract(toolIndex)"
  7315. v-if="
  7316. worksStudent[toolIndex].length > 6 &&
  7317. isCloseList[toolIndex].isClose == 0
  7318. "
  7319. >
  7320. 收缩
  7321. </div>
  7322. <div
  7323. class="corOpen"
  7324. @click="contract(toolIndex)"
  7325. v-if="isCloseList[toolIndex].isClose == 1"
  7326. >
  7327. 展开
  7328. </div>
  7329. </div>
  7330. </div>
  7331. <div
  7332. class="worksDetailBox"
  7333. v-if="
  7334. worksStudent.length && worksStudent[toolIndex].length > 0
  7335. "
  7336. >
  7337. <div
  7338. class="works"
  7339. style="
  7340. width: 200px;
  7341. height: 140px;
  7342. margin: 10px 10px 10px 0;
  7343. border-radius: 15px;
  7344. box-shadow: 0 0 6px 1px #dfdada;
  7345. "
  7346. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7347. ? worksStudent[toolIndex]
  7348. : worksStudent[toolIndex].slice(0, 6)"
  7349. :key="wIndex"
  7350. >
  7351. <!-- @click="previewImg(w.works)" -->
  7352. <div class="workImg">
  7353. <img :src="w.works" @click="previewImg(w.works)" alt />
  7354. <div
  7355. class="answerScore"
  7356. v-if="w.score"
  7357. @click.stop="openScore(w)"
  7358. :class="{
  7359. rightW:
  7360. w.userid == userid || tType == 1 || tType == 4,
  7361. }"
  7362. >
  7363. {{ JSON.parse(w.score).wScore }}分
  7364. </div>
  7365. <div
  7366. class="answerScore"
  7367. @click.stop="openScore(w)"
  7368. v-else-if="courseDetail.userid == userid"
  7369. :class="{
  7370. rightW:
  7371. w.userid == userid || tType == 1 || tType == 4,
  7372. }"
  7373. >
  7374. 评分
  7375. </div>
  7376. <img
  7377. class="deleteImg"
  7378. src="../../assets/deleteworks.png"
  7379. v-if="w.userid == userid || tType == 1 || tType == 4"
  7380. @click.stop="deleteWorks(w.wid)"
  7381. alt
  7382. />
  7383. </div>
  7384. <div class="comment" style="min-width: 200px">
  7385. <div class="worksName">
  7386. <div>{{ w.sName }}</div>
  7387. </div>
  7388. <div class="commentList">
  7389. <div class="commentList">
  7390. <div
  7391. class="commentImg"
  7392. @click="
  7393. isLikes(w.wid, userid, 1, null, w.isLikes)
  7394. "
  7395. >
  7396. <img
  7397. :src="w.isLikes == true ? likes : noLikes"
  7398. alt=""
  7399. />
  7400. </div>
  7401. <div>{{ w.likesCount }}</div>
  7402. </div>
  7403. <div class="commentList" style="margin-right: 15px">
  7404. <div
  7405. class="commentImg"
  7406. @click="commentOther(w, toolIndex, wIndex)"
  7407. >
  7408. <img
  7409. src="../../assets/icon/comment/comment.png"
  7410. alt=""
  7411. />
  7412. </div>
  7413. <div>{{ w.commentCount }}</div>
  7414. </div>
  7415. </div>
  7416. </div>
  7417. </div>
  7418. </div>
  7419. <div class="noWorksS">
  7420. <div
  7421. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7422. :key="sIndex"
  7423. class="noWorksName"
  7424. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7425. :class="{ isWork: s.type == '2' }"
  7426. >
  7427. {{ s.student }}
  7428. </div>
  7429. </div>
  7430. </div>
  7431. <div
  7432. v-if="
  7433. tType &&
  7434. ((tType == 2 && sIsOpen == true) ||
  7435. tType == 1 ||
  7436. tType == 4) &&
  7437. tool.tool.indexOf(6) != -1
  7438. "
  7439. class="worksBox"
  7440. >
  7441. <div
  7442. class="zuoyeYulan"
  7443. v-if="
  7444. worksStudent.length && worksStudent[toolIndex].length > 0
  7445. "
  7446. >
  7447. <div class="worksTop">
  7448. <div>作业预览</div>
  7449. <div
  7450. class="corOpen"
  7451. @click="contract(toolIndex)"
  7452. v-if="
  7453. worksStudent[toolIndex].length > 6 &&
  7454. isCloseList[toolIndex].isClose == 0
  7455. "
  7456. >
  7457. 收缩
  7458. </div>
  7459. <div
  7460. class="corOpen"
  7461. @click="contract(toolIndex)"
  7462. v-if="isCloseList[toolIndex].isClose == 1"
  7463. >
  7464. 展开
  7465. </div>
  7466. </div>
  7467. </div>
  7468. <div
  7469. class="worksDetailBox"
  7470. v-if="
  7471. worksStudent.length && worksStudent[toolIndex].length > 0
  7472. "
  7473. >
  7474. <div
  7475. class="works"
  7476. style="
  7477. width: 200px;
  7478. height: 140px;
  7479. margin: 10px 10px 10px 0;
  7480. border-radius: 15px;
  7481. box-shadow: 0 0 6px 1px #dfdada;
  7482. "
  7483. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7484. ? worksStudent[toolIndex]
  7485. : worksStudent[toolIndex].slice(0, 6)"
  7486. :key="wIndex"
  7487. >
  7488. <!-- @click="previewImg(w.works)" -->
  7489. <div class="workImg">
  7490. <img :src="w.works" @click="previewImg(w.works)" alt />
  7491. <div
  7492. class="answerScore"
  7493. v-if="w.score"
  7494. @click.stop="openScore(w)"
  7495. :class="{
  7496. rightW:
  7497. w.userid == userid || tType == 1 || tType == 4,
  7498. }"
  7499. >
  7500. {{ JSON.parse(w.score).wScore }}分
  7501. </div>
  7502. <div
  7503. class="answerScore"
  7504. @click.stop="openScore(w)"
  7505. v-else-if="courseDetail.userid == userid"
  7506. :class="{
  7507. rightW:
  7508. w.userid == userid || tType == 1 || tType == 4,
  7509. }"
  7510. >
  7511. 评分
  7512. </div>
  7513. <img
  7514. class="deleteImg"
  7515. src="../../assets/deleteworks.png"
  7516. v-if="w.userid == userid || tType == 1 || tType == 4"
  7517. @click.stop="deleteWorks(w.wid)"
  7518. alt
  7519. />
  7520. </div>
  7521. <div class="comment" style="min-width: 200px">
  7522. <div class="worksName">
  7523. <div>{{ w.sName }}</div>
  7524. </div>
  7525. <div class="commentList">
  7526. <div class="commentList">
  7527. <div
  7528. class="commentImg"
  7529. @click="
  7530. isLikes(w.wid, userid, 1, null, w.isLikes)
  7531. "
  7532. >
  7533. <img
  7534. :src="w.isLikes == true ? likes : noLikes"
  7535. alt=""
  7536. />
  7537. </div>
  7538. <div>{{ w.likesCount }}</div>
  7539. </div>
  7540. <div class="commentList" style="margin-right: 15px">
  7541. <div
  7542. class="commentImg"
  7543. @click="commentOther(w, toolIndex, wIndex)"
  7544. >
  7545. <img
  7546. src="../../assets/icon/comment/comment.png"
  7547. alt=""
  7548. />
  7549. </div>
  7550. <div>{{ w.commentCount }}</div>
  7551. </div>
  7552. </div>
  7553. </div>
  7554. </div>
  7555. </div>
  7556. <div class="noWorksS">
  7557. <div
  7558. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7559. :key="sIndex"
  7560. class="noWorksName"
  7561. :class="{ isWork: s.type == '2' }"
  7562. >
  7563. {{ s.student }}
  7564. </div>
  7565. </div>
  7566. </div>
  7567. <div
  7568. v-if="
  7569. tType &&
  7570. ((tType == 2 && sIsOpen == true) ||
  7571. tType == 1 ||
  7572. tType == 4) &&
  7573. tool.tool.indexOf(7) != -1
  7574. "
  7575. class="worksBox"
  7576. >
  7577. <div
  7578. class="zuoyeYulan"
  7579. v-if="
  7580. worksStudent.length && worksStudent[toolIndex].length > 0
  7581. "
  7582. >
  7583. <div class="worksTop">
  7584. <div>作业预览</div>
  7585. <div
  7586. class="corOpen"
  7587. @click="contract(toolIndex)"
  7588. v-if="
  7589. worksStudent[toolIndex].length > 6 &&
  7590. isCloseList[toolIndex].isClose == 0
  7591. "
  7592. >
  7593. 收缩
  7594. </div>
  7595. <div
  7596. class="corOpen"
  7597. @click="contract(toolIndex)"
  7598. v-if="isCloseList[toolIndex].isClose == 1"
  7599. >
  7600. 展开
  7601. </div>
  7602. </div>
  7603. </div>
  7604. <div
  7605. class="worksDetailBox"
  7606. v-if="
  7607. worksStudent.length && worksStudent[toolIndex].length > 0
  7608. "
  7609. >
  7610. <div
  7611. class="works"
  7612. style="
  7613. width: 200px;
  7614. height: 140px;
  7615. margin: 10px 10px 10px 0;
  7616. border-radius: 15px;
  7617. box-shadow: 0 0 6px 1px #dfdada;
  7618. "
  7619. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7620. ? worksStudent[toolIndex]
  7621. : worksStudent[toolIndex].slice(0, 6)"
  7622. :key="wIndex"
  7623. >
  7624. <!-- @click="previewImg(w.works)" -->
  7625. <div class="workImg">
  7626. <img :src="w.works" @click="previewImg(w.works)" alt />
  7627. <div
  7628. class="answerScore"
  7629. v-if="w.score"
  7630. @click.stop="openScore(w)"
  7631. :class="{
  7632. rightW:
  7633. w.userid == userid || tType == 1 || tType == 4,
  7634. }"
  7635. >
  7636. {{ JSON.parse(w.score).wScore }}分
  7637. </div>
  7638. <div
  7639. class="answerScore"
  7640. @click.stop="openScore(w)"
  7641. v-else-if="courseDetail.userid == userid"
  7642. :class="{
  7643. rightW:
  7644. w.userid == userid || tType == 1 || tType == 4,
  7645. }"
  7646. >
  7647. 评分
  7648. </div>
  7649. <img
  7650. class="deleteImg"
  7651. src="../../assets/deleteworks.png"
  7652. v-if="w.userid == userid || tType == 1 || tType == 4"
  7653. @click.stop="deleteWorks(w.wid)"
  7654. alt
  7655. />
  7656. </div>
  7657. <div class="comment" style="min-width: 200px">
  7658. <div class="worksName">
  7659. <div>{{ w.sName }}</div>
  7660. </div>
  7661. <div class="commentList">
  7662. <div class="commentList">
  7663. <div
  7664. class="commentImg"
  7665. @click="
  7666. isLikes(w.wid, userid, 1, null, w.isLikes)
  7667. "
  7668. >
  7669. <img
  7670. :src="w.isLikes == true ? likes : noLikes"
  7671. alt=""
  7672. />
  7673. </div>
  7674. <div>{{ w.likesCount }}</div>
  7675. </div>
  7676. <div class="commentList" style="margin-right: 15px">
  7677. <div
  7678. class="commentImg"
  7679. @click="commentOther(w, toolIndex, wIndex)"
  7680. >
  7681. <img
  7682. src="../../assets/icon/comment/comment.png"
  7683. alt=""
  7684. />
  7685. </div>
  7686. <div>{{ w.commentCount }}</div>
  7687. </div>
  7688. </div>
  7689. </div>
  7690. </div>
  7691. </div>
  7692. <div class="noWorksS">
  7693. <div
  7694. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7695. :key="sIndex"
  7696. class="noWorksName"
  7697. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  7698. :class="{ isWork: s.type == '2' }"
  7699. >
  7700. {{ s.student }}
  7701. </div>
  7702. </div>
  7703. </div>
  7704. <div
  7705. v-if="
  7706. tType &&
  7707. ((tType == 2 && sIsOpen == true) ||
  7708. tType == 1 ||
  7709. tType == 4) &&
  7710. tool.tool.indexOf(26) != -1
  7711. "
  7712. class="worksBox"
  7713. >
  7714. <div
  7715. class="zuoyeYulan"
  7716. v-if="
  7717. worksStudent.length && worksStudent[toolIndex].length > 0
  7718. "
  7719. >
  7720. <div class="worksTop">
  7721. <div>作业预览</div>
  7722. <div
  7723. class="corOpen"
  7724. @click="contract(toolIndex)"
  7725. v-if="
  7726. worksStudent[toolIndex].length > 6 &&
  7727. isCloseList[toolIndex].isClose == 0
  7728. "
  7729. >
  7730. 收缩
  7731. </div>
  7732. <div
  7733. class="corOpen"
  7734. @click="contract(toolIndex)"
  7735. v-if="isCloseList[toolIndex].isClose == 1"
  7736. >
  7737. 展开
  7738. </div>
  7739. </div>
  7740. </div>
  7741. <div
  7742. class="worksDetailBox"
  7743. v-if="
  7744. worksStudent.length && worksStudent[toolIndex].length > 0
  7745. "
  7746. >
  7747. <div
  7748. class="works"
  7749. style="width: 240px; height: 140px; overflow: hidden"
  7750. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7751. ? worksStudent[toolIndex]
  7752. : worksStudent[toolIndex].slice(0, 6)"
  7753. :key="wIndex"
  7754. :class="w.type == 1 ? 'isTypeOne' : ''"
  7755. >
  7756. <div class="workImg" v-if="w.type == 0">
  7757. <img :src="w.works" @click="previewImg(w.works)" alt />
  7758. <img
  7759. class="deleteImg"
  7760. src="../../assets/deleteworks.png"
  7761. v-if="w.userid == userid || tType == 1 || tType == 4"
  7762. @click.stop="deleteWorks(w.wid)"
  7763. alt
  7764. />
  7765. </div>
  7766. <div class="workImg" v-if="w.type == 1">
  7767. <img :src="word" @click="openFile(w.works)" alt />
  7768. <img
  7769. class="deleteImg"
  7770. src="../../assets/deleteworks.png"
  7771. v-if="w.userid == userid || tType == 1 || tType == 4"
  7772. @click.stop="deleteWorks(w.wid)"
  7773. alt
  7774. />
  7775. </div>
  7776. <div class="worksName">
  7777. <div>{{ w.sName }}</div>
  7778. </div>
  7779. </div>
  7780. </div>
  7781. <div class="noWorksS">
  7782. <div
  7783. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7784. :key="sIndex"
  7785. class="noWorksName"
  7786. :class="{ isWork: s.type == '2' }"
  7787. >
  7788. {{ s.student }}
  7789. </div>
  7790. </div>
  7791. </div>
  7792. <div
  7793. v-if="
  7794. tType &&
  7795. ((tType == 2 && sIsOpen == true) ||
  7796. tType == 1 ||
  7797. tType == 4) &&
  7798. tool.tool.indexOf(40) != -1
  7799. "
  7800. class="worksBox"
  7801. >
  7802. <div
  7803. class="zuoyeYulan"
  7804. v-if="
  7805. worksStudent.length && worksStudent[toolIndex].length > 0
  7806. "
  7807. >
  7808. <div class="worksTop">
  7809. <div>作业预览</div>
  7810. <div
  7811. class="corOpen"
  7812. @click="contract(toolIndex)"
  7813. v-if="
  7814. worksStudent[toolIndex].length > 6 &&
  7815. isCloseList[toolIndex].isClose == 0
  7816. "
  7817. >
  7818. 收缩
  7819. </div>
  7820. <div
  7821. class="corOpen"
  7822. @click="contract(toolIndex)"
  7823. v-if="isCloseList[toolIndex].isClose == 1"
  7824. >
  7825. 展开
  7826. </div>
  7827. </div>
  7828. </div>
  7829. <div
  7830. class="worksDetailBox"
  7831. v-if="
  7832. worksStudent.length && worksStudent[toolIndex].length > 0
  7833. "
  7834. >
  7835. <div
  7836. class="works"
  7837. style="
  7838. width: 200px;
  7839. height: 140px;
  7840. margin: 10px 10px 10px 0;
  7841. border-radius: 15px;
  7842. box-shadow: 0 0 6px 1px #dfdada;
  7843. "
  7844. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7845. ? worksStudent[toolIndex]
  7846. : worksStudent[toolIndex].slice(0, 6)"
  7847. :key="wIndex"
  7848. :class="w.type == 1 ? 'isTypeOne' : ''"
  7849. >
  7850. <div class="workImg">
  7851. <img
  7852. src="../../assets/icon/works/noImg.png"
  7853. @click="openPj(w.works, toolIndex)"
  7854. alt
  7855. />
  7856. <img
  7857. class="deleteImg"
  7858. src="../../assets/deleteworks.png"
  7859. v-if="w.userid == userid || tType == 1 || tType == 4"
  7860. @click.stop="deleteWorks(w.wid)"
  7861. alt
  7862. />
  7863. </div>
  7864. <div class="comment" style="min-width: 200px">
  7865. <div class="worksName">
  7866. <div>{{ w.sName }}</div>
  7867. </div>
  7868. <div class="commentList">
  7869. <div class="commentList">
  7870. <div
  7871. class="commentImg"
  7872. @click="
  7873. isLikes(w.wid, userid, 1, null, w.isLikes)
  7874. "
  7875. >
  7876. <img
  7877. :src="w.isLikes == true ? likes : noLikes"
  7878. alt=""
  7879. />
  7880. </div>
  7881. <div>{{ w.likesCount }}</div>
  7882. </div>
  7883. <div class="commentList" style="margin-right: 15px">
  7884. <div
  7885. class="commentImg"
  7886. @click="commentOther(w, toolIndex, wIndex)"
  7887. >
  7888. <img
  7889. src="../../assets/icon/comment/comment.png"
  7890. alt=""
  7891. />
  7892. </div>
  7893. <div>{{ w.commentCount }}</div>
  7894. </div>
  7895. </div>
  7896. </div>
  7897. </div>
  7898. </div>
  7899. <div class="noWorksS">
  7900. <div
  7901. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7902. :key="sIndex"
  7903. class="noWorksName"
  7904. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  7905. :class="{ isWork: s.type == '2' }"
  7906. >
  7907. {{ s.student }}
  7908. </div>
  7909. </div>
  7910. </div>
  7911. <div
  7912. v-if="
  7913. tType &&
  7914. ((tType == 2 && sIsOpen == true) ||
  7915. tType == 1 ||
  7916. tType == 4) &&
  7917. tool.tool.indexOf(41) != -1
  7918. "
  7919. class="worksBox"
  7920. >
  7921. <div class="noWorksS">
  7922. <div
  7923. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7924. :key="sIndex"
  7925. class="noWorksName"
  7926. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  7927. :class="{ isWork: s.type == '2' }"
  7928. >
  7929. {{ s.student }}
  7930. </div>
  7931. </div>
  7932. <div
  7933. class="zuoyeYulan"
  7934. v-if="
  7935. worksStudent.length && worksStudent[toolIndex].length > 0
  7936. "
  7937. >
  7938. <div class="worksTop">
  7939. <div>作业预览</div>
  7940. <div
  7941. class="corOpen"
  7942. @click="contract(toolIndex)"
  7943. v-if="
  7944. worksStudent[toolIndex].length > 6 &&
  7945. isCloseList[toolIndex].isClose == 0
  7946. "
  7947. >
  7948. 收缩
  7949. </div>
  7950. <div
  7951. class="corOpen"
  7952. @click="contract(toolIndex)"
  7953. v-if="isCloseList[toolIndex].isClose == 1"
  7954. >
  7955. 展开
  7956. </div>
  7957. </div>
  7958. </div>
  7959. <div
  7960. class="worksDetailBox"
  7961. v-if="
  7962. worksStudent.length && worksStudent[toolIndex].length > 0
  7963. "
  7964. >
  7965. <div
  7966. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7967. ? worksStudent[toolIndex]
  7968. : worksStudent[toolIndex].slice(0, 6)"
  7969. :key="wIndex"
  7970. class="isWorksName"
  7971. @click="openXz(w, toolIndex)"
  7972. >
  7973. {{ w.sName }}
  7974. <img
  7975. class="deleteImg deleteImg2"
  7976. src="../../assets/deleteworks.png"
  7977. v-if="w.userid == userid || tType == 1 || tType == 4"
  7978. @click.stop="deleteWorks(w.wid)"
  7979. alt
  7980. />
  7981. </div>
  7982. </div>
  7983. </div>
  7984. <div
  7985. v-if="
  7986. tType &&
  7987. ((tType == 2 && sIsOpen == true) ||
  7988. tType == 1 ||
  7989. tType == 4) &&
  7990. tool.tool.indexOf(47) != -1
  7991. "
  7992. class="worksBox"
  7993. >
  7994. <div class="noWorksS">
  7995. <div
  7996. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7997. :key="sIndex"
  7998. class="noWorksName"
  7999. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  8000. :class="{ isWork: s.type == '2' }"
  8001. >
  8002. {{ s.student }}
  8003. </div>
  8004. </div>
  8005. <div
  8006. class="zuoyeYulan"
  8007. v-if="
  8008. worksStudent.length && worksStudent[toolIndex].length > 0
  8009. "
  8010. >
  8011. <div class="worksTop">
  8012. <div>作业预览</div>
  8013. <div
  8014. class="corOpen"
  8015. @click="contract(toolIndex)"
  8016. v-if="
  8017. worksStudent[toolIndex].length > 6 &&
  8018. isCloseList[toolIndex].isClose == 0
  8019. "
  8020. >
  8021. 收缩
  8022. </div>
  8023. <div
  8024. class="corOpen"
  8025. @click="contract(toolIndex)"
  8026. v-if="isCloseList[toolIndex].isClose == 1"
  8027. >
  8028. 展开
  8029. </div>
  8030. </div>
  8031. </div>
  8032. <div
  8033. class="worksDetailBox"
  8034. v-if="
  8035. worksStudent.length && worksStudent[toolIndex].length > 0
  8036. "
  8037. >
  8038. <!-- @click="openXz(w, toolIndex)" -->
  8039. <div
  8040. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8041. ? worksStudent[toolIndex]
  8042. : worksStudent[toolIndex].slice(0, 6)"
  8043. :key="wIndex"
  8044. class="isWorksName"
  8045. @click="openSen(w, toolIndex)"
  8046. >
  8047. {{ w.sName }}
  8048. <img
  8049. class="deleteImg deleteImg2"
  8050. src="../../assets/deleteworks.png"
  8051. v-if="w.userid == userid || tType == 1 || tType == 4"
  8052. @click.stop="deleteWorks(w.wid)"
  8053. alt
  8054. />
  8055. </div>
  8056. </div>
  8057. </div>
  8058. <div
  8059. v-if="
  8060. tType &&
  8061. ((tType == 2 && sIsOpen == true) ||
  8062. tType == 1 ||
  8063. tType == 4) &&
  8064. tool.tool.indexOf(48) != -1
  8065. "
  8066. class="worksBox"
  8067. >
  8068. <div class="noWorksS">
  8069. <div
  8070. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8071. :key="sIndex"
  8072. class="noWorksName"
  8073. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  8074. :class="{ isWork: s.type == '2' }"
  8075. >
  8076. {{ s.student }}
  8077. </div>
  8078. </div>
  8079. <div
  8080. class="zuoyeYulan"
  8081. v-if="
  8082. worksStudent.length && worksStudent[toolIndex].length > 0
  8083. "
  8084. >
  8085. <div class="worksTop">
  8086. <div>作业预览</div>
  8087. <div
  8088. class="corOpen"
  8089. @click="contract(toolIndex)"
  8090. v-if="
  8091. worksStudent[toolIndex].length > 6 &&
  8092. isCloseList[toolIndex].isClose == 0
  8093. "
  8094. >
  8095. 收缩
  8096. </div>
  8097. <div
  8098. class="corOpen"
  8099. @click="contract(toolIndex)"
  8100. v-if="isCloseList[toolIndex].isClose == 1"
  8101. >
  8102. 展开
  8103. </div>
  8104. </div>
  8105. </div>
  8106. <div
  8107. class="worksDetailBox"
  8108. v-if="
  8109. worksStudent.length && worksStudent[toolIndex].length > 0
  8110. "
  8111. >
  8112. <div
  8113. class="works"
  8114. style="
  8115. width: 200px;
  8116. height: 140px;
  8117. margin: 10px 10px 10px 0;
  8118. border-radius: 15px;
  8119. box-shadow: 0 0 6px 1px #dfdada;
  8120. "
  8121. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8122. ? worksStudent[toolIndex]
  8123. : worksStudent[toolIndex].slice(0, 6)"
  8124. :key="wIndex"
  8125. :class="w.type == 1 ? 'isTypeOne' : ''"
  8126. >
  8127. <div class="workImg">
  8128. <img :src="word" @click="openTable(w)" alt />
  8129. <!-- @click="openFile(w.works)" -->
  8130. <div
  8131. class="answerScore"
  8132. v-if="w.score"
  8133. @click.stop="openScore(w)"
  8134. :class="{
  8135. rightW:
  8136. w.userid == userid ||
  8137. tType == 1 ||
  8138. tType == 4 ||
  8139. w.ateacher == userid,
  8140. }"
  8141. >
  8142. {{ JSON.parse(w.score).wScore }}分
  8143. </div>
  8144. <div
  8145. class="answerScore"
  8146. @click.stop="openScore(w)"
  8147. v-else-if="courseDetail.userid == userid"
  8148. :class="{
  8149. rightW:
  8150. w.userid == userid ||
  8151. tType == 1 ||
  8152. tType == 4 ||
  8153. w.ateacher == userid,
  8154. }"
  8155. >
  8156. 评分
  8157. </div>
  8158. <img
  8159. class="deleteImg"
  8160. src="../../assets/deleteworks.png"
  8161. v-if="w.userid == userid || tType == 1 || tType == 4"
  8162. @click.stop="deleteWorks(w.wid)"
  8163. alt
  8164. />
  8165. </div>
  8166. <div class="comment" style="min-width: 200px">
  8167. <div class="worksName">
  8168. <div>{{ w.sName }}</div>
  8169. </div>
  8170. <div class="commentList">
  8171. <div class="commentList">
  8172. <div
  8173. class="commentImg"
  8174. @click="
  8175. isLikes(w.wid, userid, 1, null, w.isLikes)
  8176. "
  8177. >
  8178. <img
  8179. :src="w.isLikes == true ? likes : noLikes"
  8180. alt=""
  8181. />
  8182. </div>
  8183. <div>{{ w.likesCount }}</div>
  8184. </div>
  8185. <div class="commentList" style="margin-right: 15px">
  8186. <div
  8187. class="commentImg"
  8188. @click="commentOther(w, toolIndex, wIndex)"
  8189. >
  8190. <img
  8191. src="../../assets/icon/comment/comment.png"
  8192. alt=""
  8193. />
  8194. </div>
  8195. <div>{{ w.commentCount }}</div>
  8196. </div>
  8197. </div>
  8198. </div>
  8199. </div>
  8200. </div>
  8201. </div>
  8202. <div
  8203. v-if="
  8204. tType &&
  8205. ((tType == 2 && sIsOpen == true) ||
  8206. tType == 1 ||
  8207. tType == 4) &&
  8208. tool.tool.indexOf(52) != -1
  8209. "
  8210. class="worksBox"
  8211. >
  8212. <div class="noWorksS">
  8213. <div
  8214. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8215. :key="sIndex"
  8216. class="noWorksName"
  8217. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  8218. :class="{ isWork: s.type == '2' }"
  8219. >
  8220. {{ s.student }}
  8221. </div>
  8222. </div>
  8223. <div
  8224. class="zuoyeYulan"
  8225. v-if="
  8226. worksStudent.length && worksStudent[toolIndex].length > 0
  8227. "
  8228. >
  8229. <div class="worksTop">
  8230. <div>作业预览</div>
  8231. <div
  8232. class="corOpen"
  8233. @click="contract(toolIndex)"
  8234. v-if="
  8235. worksStudent[toolIndex].length > 6 &&
  8236. isCloseList[toolIndex].isClose == 0
  8237. "
  8238. >
  8239. 收缩
  8240. </div>
  8241. <div
  8242. class="corOpen"
  8243. @click="contract(toolIndex)"
  8244. v-if="isCloseList[toolIndex].isClose == 1"
  8245. >
  8246. 展开
  8247. </div>
  8248. </div>
  8249. </div>
  8250. <div
  8251. class="worksDetailBox"
  8252. v-if="
  8253. worksStudent.length && worksStudent[toolIndex].length > 0
  8254. "
  8255. >
  8256. <div
  8257. class="works"
  8258. style="
  8259. width: 200px;
  8260. height: 140px;
  8261. margin: 10px 10px 10px 0;
  8262. border-radius: 15px;
  8263. box-shadow: 0 0 6px 1px #dfdada;
  8264. "
  8265. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8266. ? worksStudent[toolIndex]
  8267. : worksStudent[toolIndex].slice(0, 6)"
  8268. :key="wIndex"
  8269. :class="w.type == 1 ? 'isTypeOne' : ''"
  8270. >
  8271. <div class="workImg">
  8272. <img :src="word" @click="openWord(w)" alt />
  8273. <!-- @click="openFile(w.works)" -->
  8274. <div
  8275. class="answerScore"
  8276. v-if="w.score"
  8277. @click.stop="openScore(w)"
  8278. :class="{
  8279. rightW:
  8280. w.userid == userid ||
  8281. tType == 1 ||
  8282. tType == 4 ||
  8283. w.ateacher == userid,
  8284. }"
  8285. >
  8286. {{ JSON.parse(w.score).wScore }}分
  8287. </div>
  8288. <div
  8289. class="answerScore"
  8290. @click.stop="openScore(w)"
  8291. v-else-if="courseDetail.userid == userid"
  8292. :class="{
  8293. rightW:
  8294. w.userid == userid ||
  8295. tType == 1 ||
  8296. tType == 4 ||
  8297. w.ateacher == userid,
  8298. }"
  8299. >
  8300. 评分
  8301. </div>
  8302. <img
  8303. class="deleteImg"
  8304. src="../../assets/deleteworks.png"
  8305. v-if="w.userid == userid || tType == 1 || tType == 4"
  8306. @click.stop="deleteWorks(w.wid)"
  8307. alt
  8308. />
  8309. </div>
  8310. <div class="comment" style="min-width: 200px">
  8311. <div class="worksName">
  8312. <div>{{ w.sName }}</div>
  8313. </div>
  8314. <div class="commentList">
  8315. <div class="commentList">
  8316. <div
  8317. class="commentImg"
  8318. @click="
  8319. isLikes(w.wid, userid, 1, null, w.isLikes)
  8320. "
  8321. >
  8322. <img
  8323. :src="w.isLikes == true ? likes : noLikes"
  8324. alt=""
  8325. />
  8326. </div>
  8327. <div>{{ w.likesCount }}</div>
  8328. </div>
  8329. <div class="commentList" style="margin-right: 15px">
  8330. <div
  8331. class="commentImg"
  8332. @click="commentOther(w, toolIndex, wIndex)"
  8333. >
  8334. <img
  8335. src="../../assets/icon/comment/comment.png"
  8336. alt=""
  8337. />
  8338. </div>
  8339. <div>{{ w.commentCount }}</div>
  8340. </div>
  8341. </div>
  8342. </div>
  8343. </div>
  8344. </div>
  8345. </div>
  8346. </div>
  8347. </div>
  8348. <div class="vedioBox" v-if="false">
  8349. <div
  8350. class="queTop"
  8351. style="
  8352. font-size: 20px;
  8353. padding: 15px 0 15px 30px;
  8354. font-weight: bold;
  8355. "
  8356. >
  8357. 评一评
  8358. </div>
  8359. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8360. <div class="elist_input">
  8361. <div
  8362. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8363. .chapterInfo[0].taskJson[taskCount].eList"
  8364. :key="eIndex"
  8365. class="elist_input_box"
  8366. >
  8367. <div style="width: 95%">
  8368. <div
  8369. style="
  8370. display: flex;
  8371. flex-direction: row;
  8372. flex-wrap: nowrap;
  8373. align-items: center;
  8374. "
  8375. >
  8376. <div style="max-width: calc(100% - 285px)">
  8377. <span>{{ eItem.value }}</span>
  8378. </div>
  8379. <div
  8380. style="
  8381. padding-left: 25px;
  8382. display: flex;
  8383. flex-direction: row;
  8384. align-items: center;
  8385. "
  8386. >
  8387. <el-rate
  8388. v-model="eItem.score"
  8389. :colors="colors"
  8390. disabled
  8391. ></el-rate>
  8392. </div>
  8393. </div>
  8394. <div class="elist_inptu_text" style="padding-left: 10px">
  8395. <span v-if="eItem.detail != ''">{{
  8396. eItem.detail
  8397. }}</span>
  8398. <span v-else style="color: #b2b1b3; font-size: 14px"
  8399. >暂无描述...</span
  8400. >
  8401. </div>
  8402. </div>
  8403. </div>
  8404. </div>
  8405. <div
  8406. v-if="evalua"
  8407. style="
  8408. border: 1px solid #e5e5e5;
  8409. max-width: 650px;
  8410. width: 100%;
  8411. margin-top: 20px;
  8412. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8413. "
  8414. >
  8415. <div class="e_add_top">
  8416. <div class="e_add_title">
  8417. <span>目标管理名称</span>
  8418. <span>{{ eTitle }}</span>
  8419. <img
  8420. src="../../assets/line.png"
  8421. class="cru_line"
  8422. style="
  8423. width: 125px;
  8424. height: 20px;
  8425. bottom: -10px;
  8426. left: 120px;
  8427. "
  8428. />
  8429. <!-- <el-input
  8430. v-model="eTitle"
  8431. placeholder="请输入名称"
  8432. @change="setMindData"
  8433. ></el-input>-->
  8434. </div>
  8435. </div>
  8436. <div class="e_add_content">
  8437. <div class="e_add_list_pbox">
  8438. <div class="e_add_list_pbox_title">
  8439. <span class="type_title">切换模式</span>
  8440. <div class="type_content">
  8441. <span
  8442. :class="{ active: typeMode == 1 }"
  8443. @click="typeMode = 1"
  8444. >目标树</span
  8445. >
  8446. <span
  8447. :class="{ active: typeMode == 2 }"
  8448. @click="typeMode = 2"
  8449. >目标罗盘</span
  8450. >
  8451. <span
  8452. :class="{ active: typeMode == 3 }"
  8453. @click="typeMode = 3"
  8454. >目标看板</span
  8455. >
  8456. </div>
  8457. </div>
  8458. <div class="e_add_list_pbox_content">
  8459. <Mind
  8460. :showBar="false"
  8461. :mindData="data"
  8462. style="width: 100%"
  8463. v-show="typeMode == 1"
  8464. ></Mind>
  8465. <Sunburst
  8466. :Josn="eJson"
  8467. :num="eJSONNum"
  8468. style="width: 100%"
  8469. v-if="typeMode == 2"
  8470. ></Sunburst>
  8471. <SeeBoard
  8472. :Josn="eJson"
  8473. :num="eJSONNum"
  8474. :ename="eTitle"
  8475. style="width: 100%"
  8476. v-if="typeMode == 3"
  8477. >
  8478. </SeeBoard>
  8479. </div>
  8480. </div>
  8481. </div>
  8482. </div>
  8483. </div>
  8484. </div>
  8485. </div>
  8486. </div>
  8487. <el-dialog
  8488. title="作业提交"
  8489. :visible.sync="dialogVisible"
  8490. :append-to-body="true"
  8491. width="500px"
  8492. :before-close="handleClose"
  8493. class="dialog_change"
  8494. >
  8495. <div class="marginT">
  8496. <div>上传文件</div>
  8497. <div
  8498. class="chapter_add"
  8499. @click="addImg($event)"
  8500. v-if="studyJuri[0].cover.length == 0"
  8501. >
  8502. <div class="up_photo">
  8503. <img src="../../assets/icon/uploadImg.png" alt />
  8504. </div>
  8505. <!-- <input
  8506. type="file"
  8507. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8508. style="display: none"
  8509. @change="beforeUpload1($event, 1)"
  8510. /> -->
  8511. <input
  8512. type="file"
  8513. accept="*"
  8514. style="display: none"
  8515. @change="beforeUpload1($event, 1)"
  8516. />
  8517. <!-- <input
  8518. type="file"
  8519. accept="image/*"
  8520. capture="camera"
  8521. style="display: none"
  8522. @change="beforeUpload1($event, 1)"
  8523. /> -->
  8524. </div>
  8525. <div
  8526. class="chapter_add"
  8527. style="
  8528. display: flex;
  8529. width: 100%;
  8530. flex-direction: row;
  8531. flex-wrap: wrap;
  8532. justify-content: flex-start;
  8533. padding: 15px 0;
  8534. "
  8535. v-if="studyJuri[0].cover.length > 0"
  8536. >
  8537. <div class="upCover">
  8538. <img
  8539. :src="studyJuri[0].cover[0].url"
  8540. alt
  8541. v-if="fileType == 0"
  8542. />
  8543. <img :src="word" alt v-else-if="fileType == 1" />
  8544. <img :src="video" alt v-else-if="fileType == 2" />
  8545. <img :src="word2" alt v-else-if="fileType == 3" />
  8546. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8547. <div class="deleteWord" @click="clean(1)">
  8548. <img src="../../assets/icon/deleteWorks.png" alt />
  8549. </div>
  8550. </div>
  8551. </div>
  8552. </div>
  8553. <div
  8554. class="upload_send"
  8555. @click="addCourseWorks(taskCount)"
  8556. v-if="!proVisible"
  8557. >
  8558. 提交
  8559. </div>
  8560. </el-dialog>
  8561. </div>
  8562. </div>
  8563. <div
  8564. class="pButton"
  8565. @click="(pzDialog = true), selectPz()"
  8566. v-if="tType == 4 || ispzType == 4"
  8567. >
  8568. <!-- 批 -->
  8569. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  8570. </div>
  8571. <div v-if="pzDialog == true" class="newDialogCss">
  8572. <div class="pzTop2">
  8573. <!-- <div>批注</div>
  8574. <div @click="pzDialog = false">
  8575. <img src="../../assets/close1.png" alt="" />
  8576. </div> -->
  8577. <div class="checkbox">
  8578. <div class="check" style="font-size: 25px">评课笔记</div>
  8579. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8580. </div>
  8581. </div>
  8582. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  8583. <div class="pzListBox" v-if="pzList && pzList.length">
  8584. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8585. <div class="pzNavTop">
  8586. <div>批</div>
  8587. <div>
  8588. {{
  8589. pz.username && pz.username.length > 5
  8590. ? pz.username.substring(0, 5) + "..."
  8591. : pz.username
  8592. }}的批注
  8593. </div>
  8594. <div
  8595. class="pzDelete"
  8596. v-if="pz.userid == userid"
  8597. @click="deletePz(pz.id)"
  8598. >
  8599. 删除
  8600. </div>
  8601. </div>
  8602. <div
  8603. class="pzContent cont"
  8604. v-html="pz.content"
  8605. v-if="pz.type == '1'"
  8606. ></div>
  8607. <div class="pzContent" v-if="pz.type == '2'">
  8608. <audio :src="pz.content" controls="controls" ref="audio">
  8609. Your browser does not support the audio element.
  8610. </audio>
  8611. </div>
  8612. <div class="pzContent" v-if="pz.type == '3'">
  8613. <img
  8614. :src="pz.content"
  8615. style="width: 90%; margin: 0 auto; display: block"
  8616. @click="previewImg(pz.content)"
  8617. />
  8618. </div>
  8619. <div class="time">
  8620. {{ pz.time }}
  8621. </div>
  8622. </div>
  8623. </div>
  8624. <div class="noPz" v-else>
  8625. <img src="../../assets/icon/noPz.png" alt="" />
  8626. </div>
  8627. <div class="addPzButton">
  8628. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8629. 添加批注
  8630. </div>
  8631. <!-- <div class="img1">
  8632. <div @click="(addPzDialog = true), (pzType = 2)">
  8633. <img src="../../assets/audio.png" /><span>音频</span>
  8634. </div>
  8635. </div> -->
  8636. </div>
  8637. </div>
  8638. </div>
  8639. <div v-if="addPzDialog == true" class="addDialogCss">
  8640. <div class="pzTop">
  8641. <div class="teacherPz">
  8642. <div class="teacherPzImg">
  8643. <img src="../../assets/icon/teacherPz.png" alt="" />
  8644. </div>
  8645. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8646. </div>
  8647. <div @click="addPzDialog = false">
  8648. <img src="../../assets/close1.png" alt="" />
  8649. </div>
  8650. </div>
  8651. <div class="addPzBox">
  8652. <div class="addPzCheck">
  8653. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8654. >文本</span
  8655. >
  8656. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8657. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8658. >音频</span
  8659. >
  8660. </div>
  8661. <div style="height: calc(100% - 95px)">
  8662. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8663. v-if="pzType == 1"></textarea> -->
  8664. <editor-bar
  8665. class="binfo_input pzConText"
  8666. style="width: 100% !important"
  8667. placeholder="请输入任务描述"
  8668. v-model="pzConText"
  8669. @change="change"
  8670. v-if="pzType == 1"
  8671. ></editor-bar>
  8672. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8673. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8674. <div @click="addImg($event)">
  8675. <el-button type="primary">上传图片</el-button>
  8676. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8677. @change="beforeUpload1($event, 4)" />
  8678. </div>
  8679. </div> -->
  8680. </div>
  8681. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8682. 确定
  8683. </div>
  8684. </div>
  8685. </div>
  8686. <div v-if="proVisible" class="mask">
  8687. <div class="progressBox">
  8688. <!-- <div id="closePro" class="closeCss">
  8689. <img src="../../assets/icon/close.png" alt />
  8690. </div> -->
  8691. <div class="lbox">
  8692. <img src="../../assets/loading.gif" />上传中,请稍后
  8693. </div>
  8694. <div style="margin-bottom: 10px">
  8695. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8696. </div>
  8697. <el-progress
  8698. :text-inside="true"
  8699. :stroke-width="20"
  8700. :percentage="progress"
  8701. style="width: 80%"
  8702. ></el-progress>
  8703. </div>
  8704. </div>
  8705. <div v-if="proVisible2" class="mask">
  8706. <div class="progressBox">
  8707. <div class="lbox">
  8708. <img src="../../assets/loading.gif" />上传中,请稍后
  8709. </div>
  8710. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8711. </div>
  8712. </div>
  8713. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8714. <img width="100%" :src="dialogImageUrl" alt />
  8715. </el-dialog>
  8716. <el-dialog
  8717. :title="noteName != '' ? noteName : '查看问卷'"
  8718. :visible.sync="dialogVisible5"
  8719. :append-to-body="true"
  8720. width="1000px"
  8721. :before-close="handleClose"
  8722. class="dialog_diy dialog_diy3"
  8723. >
  8724. <div>
  8725. <div
  8726. class="a_add_title"
  8727. style="
  8728. display: flex;
  8729. flex-direction: row;
  8730. align-items: center;
  8731. justify-content: center;
  8732. "
  8733. >
  8734. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8735. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8736. </div>
  8737. <div class="a_addBox">
  8738. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8739. <div
  8740. class="a_add_box"
  8741. v-for="(item1, index1) in askJson.askCount"
  8742. :key="index1"
  8743. >
  8744. <div class="a_add_head">
  8745. <div style="display: flex">
  8746. {{ index1 + 1 + "、" }}
  8747. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8748. </div>
  8749. <img
  8750. v-if="askJson.askJson[index1].img"
  8751. :src="askJson.askJson[index1].img"
  8752. style="height: 300px; margin-top: 10px; max-width: 100%"
  8753. />
  8754. </div>
  8755. <div class="a_add_body">
  8756. <div class="a_add_input">
  8757. <el-radio-group
  8758. v-model="radio[index1]"
  8759. v-if="
  8760. askJson.askJson[index1].type == '1' ||
  8761. !askJson.askJson[index1].type
  8762. "
  8763. >
  8764. <el-radio
  8765. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8766. .checkList"
  8767. :key="checkIndex"
  8768. :label="checkIndex"
  8769. :disabled="isAnswer"
  8770. class="redioStyle"
  8771. ><span v-html="item2"></span
  8772. ></el-radio>
  8773. </el-radio-group>
  8774. <el-checkbox-group
  8775. v-model="radio[index1]"
  8776. v-if="askJson.askJson[index1].type == '2'"
  8777. >
  8778. <el-checkbox
  8779. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8780. .checkList"
  8781. :key="checkIndex1"
  8782. :label="checkIndex1"
  8783. :disabled="isAnswer"
  8784. class="redioStyle"
  8785. ><span v-html="item2"></span>
  8786. </el-checkbox>
  8787. </el-checkbox-group>
  8788. </div>
  8789. </div>
  8790. </div>
  8791. </div>
  8792. </div>
  8793. <span slot="footer" class="dialog-footer">
  8794. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8795. >取 消</el-button
  8796. >
  8797. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8798. >确 定</el-button
  8799. >
  8800. </span>
  8801. </el-dialog>
  8802. <el-dialog
  8803. :title="noteName != '' ? noteName : '查看问卷'"
  8804. :visible.sync="dialogVisible5Teacher"
  8805. :append-to-body="true"
  8806. width="1000px"
  8807. :before-close="handleClose"
  8808. class="dialog_diy dialog_diy3"
  8809. >
  8810. <div>
  8811. <div class="w_name">
  8812. 学生姓名:<span>{{ sStudent.student }}</span>
  8813. </div>
  8814. <div
  8815. class="a_add_title"
  8816. style="
  8817. display: flex;
  8818. flex-direction: row;
  8819. align-items: center;
  8820. justify-content: center;
  8821. "
  8822. >
  8823. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8824. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8825. </div>
  8826. <div class="a_addBox">
  8827. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8828. <div
  8829. class="a_add_box"
  8830. v-for="(item1, index1) in askJson.askCount"
  8831. :key="index1"
  8832. >
  8833. <div class="a_add_head">
  8834. <div style="display: flex">
  8835. {{ index1 + 1 + "、" }}
  8836. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8837. </div>
  8838. <img
  8839. v-if="askJson.askJson[index1].img"
  8840. :src="askJson.askJson[index1].img"
  8841. style="height: 300px; margin-top: 10px; max-width: 100%"
  8842. />
  8843. </div>
  8844. <div class="a_add_body">
  8845. <div class="a_add_input">
  8846. <el-radio-group
  8847. v-model="radio[index1]"
  8848. v-if="
  8849. askJson.askJson[index1].type == '1' ||
  8850. !askJson.askJson[index1].type
  8851. "
  8852. >
  8853. <el-radio
  8854. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8855. .checkList"
  8856. :key="checkIndex"
  8857. :label="checkIndex"
  8858. :disabled="isAnswer"
  8859. class="redioStyle"
  8860. ><span v-html="item2"></span
  8861. ></el-radio>
  8862. </el-radio-group>
  8863. <el-checkbox-group
  8864. v-model="radio[index1]"
  8865. v-if="askJson.askJson[index1].type == '2'"
  8866. >
  8867. <el-checkbox
  8868. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8869. .checkList"
  8870. :key="checkIndex1"
  8871. :label="checkIndex1"
  8872. :disabled="isAnswer"
  8873. class="redioStyle"
  8874. ><span v-html="item2"></span>
  8875. </el-checkbox>
  8876. </el-checkbox-group>
  8877. </div>
  8878. </div>
  8879. </div>
  8880. </div>
  8881. </div>
  8882. <span slot="footer" class="dialog-footer">
  8883. <el-button
  8884. @click="dialogVisible5Teacher = false"
  8885. v-show="noteName == ''"
  8886. >取 消</el-button
  8887. >
  8888. <el-button
  8889. type="primary"
  8890. @click="addStudentAskTeacher"
  8891. v-show="noteName == ''"
  8892. >确 定</el-button
  8893. >
  8894. </span>
  8895. </el-dialog>
  8896. <el-dialog
  8897. :title="noteName != '' ? noteName : '查看选择题'"
  8898. :visible.sync="dialogVisibleChoice"
  8899. :append-to-body="true"
  8900. width="1000px"
  8901. :before-close="handleClose"
  8902. class="dialog_diy dialog_diy3"
  8903. >
  8904. <div>
  8905. <div class="a_addBox">
  8906. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8907. <div
  8908. class="a_add_box"
  8909. v-for="(item1, index1) in testJson.testCount"
  8910. :key="index1"
  8911. >
  8912. <div class="a_add_head">
  8913. <div style="display: flex">
  8914. {{ index1 + 1 + "、" }}
  8915. <div
  8916. v-if="testJson.testJson[index1].type == '1'"
  8917. style="margin-right: 5px; min-width: 70px"
  8918. >
  8919. (单选题)
  8920. </div>
  8921. <div
  8922. v-if="testJson.testJson[index1].type == '2'"
  8923. style="margin-right: 5px; min-width: 70px"
  8924. >
  8925. (多选题)
  8926. </div>
  8927. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8928. </div>
  8929. <img
  8930. v-if="testJson.testJson[index1].img"
  8931. :src="testJson.testJson[index1].img"
  8932. style="height: 300px; margin-top: 10px; max-width: 100%"
  8933. />
  8934. </div>
  8935. <div
  8936. class="timuImgBox"
  8937. v-if="
  8938. testJson.testJson[index1].timuList &&
  8939. testJson.testJson[index1].timuList.length
  8940. "
  8941. >
  8942. <div
  8943. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8944. :key="tIndex"
  8945. class="timuImg"
  8946. @click.stop="previewImg(timg.src)"
  8947. >
  8948. <img :src="timg.src" alt="" />
  8949. </div>
  8950. </div>
  8951. <div class="a_add_body">
  8952. <div class="a_add_input">
  8953. <el-radio-group
  8954. v-model="radio[index1]"
  8955. v-if="testJson.testJson[index1].type == '1'"
  8956. >
  8957. <div class="radioBox">
  8958. <el-radio
  8959. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8960. .checkList"
  8961. :key="checkIndex"
  8962. :label="checkIndex"
  8963. :disabled="isAnswer"
  8964. class="redioStyle"
  8965. >
  8966. <div
  8967. style="margin-right: 10px"
  8968. v-if="item2 && item2.imgType && item2.imgType == 1"
  8969. >
  8970. <div class="inImg" @click.stop="previewImg(item2.src)">
  8971. <img :src="item2.src" alt="" />
  8972. </div>
  8973. </div>
  8974. <span v-else v-html="item2"></span>
  8975. </el-radio>
  8976. </div>
  8977. </el-radio-group>
  8978. <el-checkbox-group
  8979. v-model="radio[index1]"
  8980. v-if="testJson.testJson[index1].type == '2'"
  8981. >
  8982. <div class="radioBox">
  8983. <el-checkbox
  8984. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8985. .checkList"
  8986. :key="checkIndex"
  8987. :label="checkIndex"
  8988. :disabled="isAnswer"
  8989. class="redioStyle"
  8990. >
  8991. <div
  8992. style="margin-right: 10px"
  8993. v-if="item2 && item2.imgType && item2.imgType == 1"
  8994. >
  8995. <div class="inImg" @click.stop="previewImg(item2.src)">
  8996. <img :src="item2.src" alt="" />
  8997. </div>
  8998. </div>
  8999. <span v-else v-html="item2"></span>
  9000. </el-checkbox>
  9001. </div>
  9002. </el-checkbox-group>
  9003. </div>
  9004. </div>
  9005. </div>
  9006. </div>
  9007. </div>
  9008. <span slot="footer" class="dialog-footer">
  9009. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9010. >取 消</el-button
  9011. >
  9012. <el-button
  9013. type="primary"
  9014. @click="addStudentTest"
  9015. v-show="noteName == ''"
  9016. >确 定</el-button
  9017. >
  9018. </span>
  9019. </el-dialog>
  9020. <el-dialog
  9021. :title="noteName != '' ? noteName : '查看选择题'"
  9022. :visible.sync="dialogVisibleChoiceTeacher"
  9023. :append-to-body="true"
  9024. width="1000px"
  9025. :before-close="handleClose"
  9026. class="dialog_diy dialog_diy3"
  9027. >
  9028. <div>
  9029. <div class="w_name">
  9030. 学生姓名:<span>{{ sStudent.student }}</span>
  9031. </div>
  9032. <div class="a_addBox">
  9033. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  9034. <div
  9035. class="a_add_box"
  9036. v-for="(item1, index1) in testJson.testCount"
  9037. :key="index1"
  9038. >
  9039. <div class="a_add_head">
  9040. <div style="display: flex">
  9041. {{ index1 + 1 + "、" }}
  9042. <div
  9043. v-if="testJson.testJson[index1].type == '1'"
  9044. style="margin-right: 5px; min-width: 70px"
  9045. >
  9046. (单选题)
  9047. </div>
  9048. <div
  9049. v-if="testJson.testJson[index1].type == '2'"
  9050. style="margin-right: 5px; min-width: 70px"
  9051. >
  9052. (多选题)
  9053. </div>
  9054. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9055. </div>
  9056. <img
  9057. v-if="testJson.testJson[index1].img"
  9058. :src="testJson.testJson[index1].img"
  9059. style="height: 300px; margin-top: 10px; max-width: 100%"
  9060. />
  9061. </div>
  9062. <div
  9063. class="timuImgBox"
  9064. v-if="
  9065. testJson.testJson[index1].timuList &&
  9066. testJson.testJson[index1].timuList.length
  9067. "
  9068. >
  9069. <div
  9070. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9071. :key="tIndex"
  9072. class="timuImg"
  9073. @click.stop="previewImg(timg.src)"
  9074. >
  9075. <img :src="timg.src" alt="" />
  9076. </div>
  9077. </div>
  9078. <div class="a_add_body">
  9079. <div class="a_add_input">
  9080. <el-radio-group
  9081. v-model="radio[index1]"
  9082. v-if="testJson.testJson[index1].type == '1'"
  9083. >
  9084. <div class="radioBox">
  9085. <el-radio
  9086. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9087. .checkList"
  9088. :key="checkIndex"
  9089. :label="checkIndex"
  9090. :disabled="isAnswer"
  9091. class="redioStyle"
  9092. >
  9093. <div
  9094. style="margin-right: 10px"
  9095. v-if="item2 && item2.imgType && item2.imgType == 1"
  9096. >
  9097. <div class="inImg" @click.stop="previewImg(item2.src)">
  9098. <img :src="item2.src" alt="" />
  9099. </div>
  9100. </div>
  9101. <span v-else v-html="item2"></span>
  9102. </el-radio>
  9103. </div>
  9104. </el-radio-group>
  9105. <el-checkbox-group
  9106. v-model="radio[index1]"
  9107. v-if="testJson.testJson[index1].type == '2'"
  9108. >
  9109. <div class="radioBox">
  9110. <el-checkbox
  9111. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9112. .checkList"
  9113. :key="checkIndex"
  9114. :label="checkIndex"
  9115. :disabled="isAnswer"
  9116. class="redioStyle"
  9117. >
  9118. <div
  9119. style="margin-right: 10px"
  9120. v-if="item2 && item2.imgType && item2.imgType == 1"
  9121. >
  9122. <div class="inImg" @click.stop="previewImg(item2.src)">
  9123. <img :src="item2.src" alt="" />
  9124. </div>
  9125. </div>
  9126. <span v-else v-html="item2"></span>
  9127. </el-checkbox>
  9128. </div>
  9129. </el-checkbox-group>
  9130. </div>
  9131. </div>
  9132. </div>
  9133. </div>
  9134. </div>
  9135. <span slot="footer" class="dialog-footer">
  9136. <el-button
  9137. @click="dialogVisibleChoiceTeacher = false"
  9138. v-show="noteName == ''"
  9139. >取 消</el-button
  9140. >
  9141. <el-button
  9142. type="primary"
  9143. @click="addStudentTestTeacher"
  9144. v-show="noteName == ''"
  9145. >确 定</el-button
  9146. >
  9147. </span>
  9148. </el-dialog>
  9149. <el-dialog
  9150. title="查看富文本"
  9151. :visible.sync="dialogVisible1"
  9152. :append-to-body="true"
  9153. width="500px"
  9154. :before-close="handleClose"
  9155. class="dialog_diy textCss"
  9156. >
  9157. <el-form style="font-size: 20px">
  9158. <el-form-item label="文本标题" class="textTitle">
  9159. <div style="font-size: 20px">{{ text.name }}</div>
  9160. </el-form-item>
  9161. <div>富文本内容</div>
  9162. <div
  9163. v-html="text.url"
  9164. style="font-size: 18px; padding: 40px 0 0 0"
  9165. ></div>
  9166. </el-form>
  9167. <span slot="footer" class="dialog-footer">
  9168. <el-button type="primary" @click="dialogVisible1 = false"
  9169. >确定</el-button
  9170. >
  9171. </span>
  9172. </el-dialog>
  9173. <el-dialog
  9174. title="文件预览"
  9175. :visible.sync="dialogVisible3"
  9176. width="50%"
  9177. :before-close="handleClose"
  9178. class="dialog_diy"
  9179. :class="{ fullStyle: full }"
  9180. >
  9181. <div slot="title" class="header-title">
  9182. <div style="color: #fff">文件预览</div>
  9183. <div style="position: absolute; top: 19px; right: 50px">
  9184. <img
  9185. src="../../assets/full.png"
  9186. style="height: 16px; cursor: pointer"
  9187. alt=""
  9188. @click="fullTools"
  9189. />
  9190. </div>
  9191. </div>
  9192. <pdf
  9193. v-if="showPDF"
  9194. :pdfUrl="pptImgUrl"
  9195. style="width: 100%; height: 520px; overflow: auto"
  9196. :class="{ fullStyle: full }"
  9197. ></pdf>
  9198. <iframe
  9199. v-else
  9200. :src="pptImgUrl"
  9201. frameborder="0"
  9202. width="100%"
  9203. height="600"
  9204. :class="{ fullStyle: full }"
  9205. ></iframe>
  9206. </el-dialog>
  9207. <el-dialog
  9208. title="文件预览"
  9209. :visible.sync="dialogVisible6"
  9210. width="50%"
  9211. :before-close="handleClose"
  9212. class="dialog_diy"
  9213. >
  9214. <iframe
  9215. :src="pptImgUrl1"
  9216. frameborder="0"
  9217. width="100%"
  9218. height="600"
  9219. ></iframe>
  9220. </el-dialog>
  9221. <el-dialog
  9222. title="提示"
  9223. :visible.sync="dialogVisible4"
  9224. :append-to-body="true"
  9225. width="800px"
  9226. :before-close="handleClose"
  9227. class="dialog_diy notice"
  9228. >
  9229. <div>此功能暂未开放!</div>
  9230. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9231. </el-dialog>
  9232. <el-dialog
  9233. title="问答"
  9234. :visible.sync="answerDialogVisible"
  9235. :append-to-body="true"
  9236. width="800px"
  9237. :before-close="handleClose"
  9238. class="dialog_diy"
  9239. >
  9240. <div>
  9241. <div
  9242. style="
  9243. display: flex;
  9244. flex-wrap: nowrap;
  9245. flex-direction: column;
  9246. position: relative;
  9247. "
  9248. >
  9249. <div class="queTop" style="padding: 20px 0 20px 0">
  9250. <div class="question">
  9251. <img src="../../assets/icon/question.png" alt />
  9252. </div>
  9253. <div class="queTitle">
  9254. <div style="width: 90px; min-width: 90px">提问:</div>
  9255. <div>{{ answerQ }}</div>
  9256. </div>
  9257. </div>
  9258. <div class="ediBottom">
  9259. <textarea
  9260. rows="6"
  9261. class="binfo_input"
  9262. cols
  9263. style="width: 95%; height: 120px"
  9264. v-model="questionAnswer"
  9265. ></textarea>
  9266. </div>
  9267. </div>
  9268. </div>
  9269. <div slot="footer">
  9270. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9271. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9272. </div>
  9273. </el-dialog>
  9274. <el-dialog
  9275. title="倒计时"
  9276. :visible.sync="timeDialogVisible"
  9277. :append-to-body="true"
  9278. width="800px"
  9279. :before-close="handleClose"
  9280. class="dialog_diy"
  9281. >
  9282. <div>
  9283. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9284. </div>
  9285. <div slot="footer">
  9286. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9287. </div>
  9288. </el-dialog>
  9289. <el-dialog
  9290. title="权限设置"
  9291. :visible.sync="juriVisible"
  9292. :append-to-body="true"
  9293. width="400px"
  9294. :before-close="handleClose"
  9295. class="dialog_diy"
  9296. >
  9297. <div>
  9298. <div class="open_box">
  9299. <div class="switch_box">
  9300. <span>允许学生查看所有作业</span>
  9301. <el-switch
  9302. v-model="sIsOpen"
  9303. active-text=""
  9304. class="switchCss"
  9305. @change="updateSLook"
  9306. ></el-switch>
  9307. </div>
  9308. <div
  9309. class="switch_box"
  9310. v-if="
  9311. courseDetail.userid == userid ||
  9312. (courseDetail.course_teacher &&
  9313. courseDetail.course_teacher.indexOf(userid) != -1)
  9314. "
  9315. >
  9316. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9317. <span>禁止学生查看所有阶段</span>
  9318. <el-switch
  9319. v-model="IsLookOpen"
  9320. active-text=""
  9321. class="switchCss"
  9322. @change="updateLookOpen"
  9323. ></el-switch>
  9324. </div>
  9325. <div class="switch_box" v-if="courseDetail.userid == userid">
  9326. <span>开启跟随模式</span>
  9327. <el-switch
  9328. v-model="IsFollow"
  9329. active-text=""
  9330. class="switchCss"
  9331. @change="updateFollow"
  9332. ></el-switch>
  9333. </div>
  9334. </div>
  9335. </div>
  9336. <div slot="footer">
  9337. <el-button
  9338. style="background: #409efe; color: #fff"
  9339. @click="juriVisible = false"
  9340. >关 闭</el-button
  9341. >
  9342. </div>
  9343. </el-dialog>
  9344. <el-dialog
  9345. title="查看视频"
  9346. :visible.sync="videoVisible"
  9347. :append-to-body="true"
  9348. width="1000px"
  9349. :before-close="handleClose"
  9350. class="dialog_diy1"
  9351. >
  9352. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9353. <video-player
  9354. class="video-player vjs-custom-skin"
  9355. :playsinline="true"
  9356. :options="videoDetail"
  9357. @play="onPlayerPlay($event)"
  9358. style="width: 100%; height: 100%"
  9359. ></video-player>
  9360. </div>
  9361. <div slot="footer">
  9362. <el-button
  9363. style="background: #409efe; color: #fff"
  9364. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9365. >
  9366. 关 闭</el-button
  9367. >
  9368. </div>
  9369. </el-dialog>
  9370. <el-dialog
  9371. title="查看详情"
  9372. :visible.sync="commentDialogVisible"
  9373. :append-to-body="true"
  9374. width="800px"
  9375. :before-close="handleClose"
  9376. class="dialog_diy"
  9377. >
  9378. <div class="commentTop">
  9379. <div class="studentDetail">
  9380. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9381. <div class="nameAndTime">
  9382. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9383. <div>{{ commentDetail.time }}</div>
  9384. </div>
  9385. <div
  9386. class="returnBtn"
  9387. style="margin-left: auto; width: 80px"
  9388. v-if="
  9389. commentDetail.works &&
  9390. commentDetail.type == 0 &&
  9391. (tType == 1 || tType == 4)
  9392. "
  9393. @click="
  9394. showPicturePaint(
  9395. commentDetail.img ? commentDetail.img : commentDetail.works
  9396. )
  9397. "
  9398. >
  9399. 教师批注
  9400. </div>
  9401. </div>
  9402. <div
  9403. class="worksAnswer"
  9404. v-if="commentDetail.works && commentDetail.type == 2"
  9405. >
  9406. {{ JSON.parse(commentDetail.works)[0].answer }}
  9407. </div>
  9408. <div
  9409. class="worksAnswer"
  9410. v-if="commentDetail.works && commentDetail.type == 1"
  9411. >
  9412. <img
  9413. src="../../assets/teacherWork.png"
  9414. v-if="commentDetail.ateacher"
  9415. class="w_teachert"
  9416. />
  9417. <pdf
  9418. v-if="showPDF"
  9419. :pdfUrl="pptImgUrl"
  9420. style="width: 100%; height: 520px; overflow: auto"
  9421. :class="{ fullStyle: full }"
  9422. ></pdf>
  9423. <iframe
  9424. v-else
  9425. :src="pptImgUrl"
  9426. frameborder="0"
  9427. width="100%"
  9428. height="600"
  9429. :class="{ fullStyle: full }"
  9430. ></iframe>
  9431. </div>
  9432. <div
  9433. class="worksAnswer"
  9434. v-if="commentDetail.works && commentDetail.type == 0"
  9435. >
  9436. <img
  9437. src="../../assets/teacherWork.png"
  9438. v-if="commentDetail.ateacher"
  9439. class="w_teachert"
  9440. style="right: 105px"
  9441. />
  9442. <img
  9443. :src="commentDetail.works"
  9444. alt=""
  9445. @click="previewImg(commentDetail.works)"
  9446. />
  9447. </div>
  9448. <div
  9449. class="worksAnswer"
  9450. v-if="commentDetail.works && commentDetail.type == 3"
  9451. >
  9452. <img
  9453. src="../../assets/teacherWork.png"
  9454. v-if="commentDetail.ateacher"
  9455. class="w_teachert"
  9456. />
  9457. <video-player
  9458. class="video-player vjs-custom-skin"
  9459. :playsinline="true"
  9460. :options="videoDetail"
  9461. @play="onPlayerPlay($event)"
  9462. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9463. ></video-player>
  9464. </div>
  9465. <div
  9466. class="worksAnswer"
  9467. v-if="commentDetail.works && commentDetail.type == 10"
  9468. >
  9469. <div class="cont" v-html="commentDetail.works.text"></div>
  9470. </div>
  9471. <div
  9472. class="worksAnswer codeFileBox"
  9473. v-if="commentDetail.works && commentDetail.type == 12"
  9474. @click="downloadFile(commentDetail.works)"
  9475. >
  9476. <img src="../../assets/icon/codeFile.png" />
  9477. <div>点击下载文件</div>
  9478. </div>
  9479. <div
  9480. class="worksAnswer codeFileBox"
  9481. v-if="commentDetail.works && commentDetail.type == 15"
  9482. @click="
  9483. openCocoPi(
  9484. 57,
  9485. commentIndexJson.toolIndex,
  9486. commentDetail.userid,
  9487. commentDetail.sName
  9488. )
  9489. "
  9490. >
  9491. <img src="../../assets/icon/codeFile.png" />
  9492. <div>点击打开CocoPi</div>
  9493. </div>
  9494. <div
  9495. class="worksAnswer"
  9496. v-if="commentDetail.works && commentDetail.type == 13"
  9497. >
  9498. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9499. </div>
  9500. <div
  9501. class="worksAnswer"
  9502. v-if="commentDetail.works && commentDetail.type == 4"
  9503. >
  9504. <div class="evalCss">
  9505. <div class="nav">请选择星星进行评分</div>
  9506. <div class="middleBox" v-if="eScore.eStar">
  9507. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9508. <div class="nameAndrate">
  9509. <div>{{ e.value }}</div>
  9510. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9511. </div>
  9512. <div v-if="e.detail">{{ e.detail }}</div>
  9513. </div>
  9514. <div class="bz">
  9515. <textarea
  9516. disabled
  9517. rows="4"
  9518. class="pj"
  9519. style="
  9520. padding: 10px 5px;
  9521. width: 70%;
  9522. background: #f7f6f9;
  9523. font-size: 14px;
  9524. text-indent: 10px;
  9525. color: #000;
  9526. "
  9527. cols
  9528. v-model="eScore.eBzText"
  9529. placeholder="请输入评价内容..."
  9530. ></textarea>
  9531. </div>
  9532. </div>
  9533. </div>
  9534. </div>
  9535. <div class="comment">
  9536. <div class="commentList">
  9537. <div class="commentImg">
  9538. <img
  9539. @click="
  9540. isLikes(
  9541. commentDetail.wid,
  9542. userid,
  9543. 1,
  9544. null,
  9545. commentDetail.isLikes
  9546. )
  9547. "
  9548. :src="commentDetail.isLikes == true ? likes : noLikes"
  9549. alt=""
  9550. />
  9551. </div>
  9552. <div>{{ commentDetail.likesCount }}</div>
  9553. </div>
  9554. <div class="commentList">
  9555. <div class="commentImg">
  9556. <img src="../../assets/icon/comment/comment.png" alt="" />
  9557. </div>
  9558. <div>{{ commentDetail.commentCount }}</div>
  9559. </div>
  9560. </div>
  9561. <div class="drawPBox" v-if="commentDetail.img">
  9562. <span>教师批注</span>
  9563. <img
  9564. :src="commentDetail.img"
  9565. alt=""
  9566. @click="previewImg(commentDetail.img)"
  9567. />
  9568. <span
  9569. class="deleteImg"
  9570. v-if="tType == 1 || tType == 4"
  9571. @click.stop="deletePicturePaint(commentDetail.wid)"
  9572. style="
  9573. font-size: 14px;
  9574. width: auto !important;
  9575. color: #b4b4b4;
  9576. top: unset;
  9577. bottom: 0;
  9578. border: none;
  9579. padding: 0;
  9580. height: auto !important;
  9581. margin: 0;
  9582. "
  9583. >删除</span
  9584. >
  9585. </div>
  9586. </div>
  9587. <div class="commentBox">
  9588. <div class="pl">评论:</div>
  9589. <div style="max-height: 200px; overflow: auto">
  9590. <div
  9591. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9592. style="padding: 10px 0 0 0"
  9593. >
  9594. <div
  9595. class="studentDetail"
  9596. style="padding-top: 10px"
  9597. v-for="(co, coIndex) in commentDetail.commentJson"
  9598. :key="coIndex"
  9599. >
  9600. <div class="tx" style="min-width: 50px">
  9601. <img src="../../assets/avatar.png" alt="" />
  9602. </div>
  9603. <div class="plPerson">
  9604. <div class="plName">
  9605. <div>{{ co.commentPeople }}</div>
  9606. <div style="margin-left: 5px">
  9607. {{ co.commentTime }}
  9608. </div>
  9609. <div
  9610. class="deleteComment"
  9611. v-if="userid == co.userid"
  9612. @click="deleteComment(co.wid)"
  9613. >
  9614. 删除
  9615. </div>
  9616. </div>
  9617. <div class="plContent">{{ co.commentText }}</div>
  9618. </div>
  9619. </div>
  9620. </div>
  9621. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9622. </div>
  9623. </div>
  9624. <div style="margin-top: 10px">
  9625. <div class="displayBox">
  9626. <div
  9627. style="
  9628. color: #556db4;
  9629. font-size: 14px;
  9630. font-weight: bold;
  9631. padding-bottom: 10px;
  9632. "
  9633. >
  9634. 评价
  9635. </div>
  9636. <div class="easy_comment" v-if="false">
  9637. <div
  9638. v-for="(p, pIndex) in PlTextList"
  9639. :key="pIndex"
  9640. @click="fastText(p, 1)"
  9641. >
  9642. {{ p }}
  9643. </div>
  9644. </div>
  9645. </div>
  9646. <div>
  9647. <textarea
  9648. rows="3"
  9649. class="pj"
  9650. style="padding: 10px 5px"
  9651. cols
  9652. v-model="commentText"
  9653. placeholder="请输入评论"
  9654. ></textarea>
  9655. </div>
  9656. </div>
  9657. <div slot="footer">
  9658. <el-button
  9659. @click="
  9660. (commentDialogVisible = false),
  9661. (commentIndexJson = {}),
  9662. videoDetail.sources && videoDetail.sources[0]
  9663. ? (videoDetail.sources[0].src = '')
  9664. : ''
  9665. "
  9666. >取 消</el-button
  9667. >
  9668. <el-button
  9669. type="primary"
  9670. @click="addComment(commentDetail.wid, userid, 2)"
  9671. >确 定</el-button
  9672. >
  9673. </div>
  9674. </el-dialog>
  9675. <el-dialog
  9676. title="查看文档"
  9677. :visible.sync="fullDialogVisible"
  9678. :append-to-body="true"
  9679. width="100%"
  9680. :before-close="handleClose"
  9681. :show-close="false"
  9682. class="dialog_diy full_diy"
  9683. :class="{ full_diy2: fulltype == 3 }"
  9684. >
  9685. <div slot="title" class="header-title">
  9686. <div style="color: #fff">查看文档</div>
  9687. <div
  9688. @click="fullDialogVisible = false"
  9689. style="
  9690. cursor: pointer;
  9691. position: absolute;
  9692. top: 20px;
  9693. right: 20px;
  9694. color: #fff;
  9695. "
  9696. >
  9697. 退出全屏
  9698. </div>
  9699. </div>
  9700. <div style="height: 100%">
  9701. <div
  9702. class="wheel"
  9703. v-if="
  9704. fullUrl.indexOf(
  9705. 'https://view.officeapps.live.com/op/view.aspx?src='
  9706. ) != -1 && fulltype == 2
  9707. "
  9708. style="width: 95%; margin: 0 auto"
  9709. >
  9710. <iframe
  9711. style="width: 100%; height: 100%; border: none"
  9712. :src="fullUrl"
  9713. ></iframe>
  9714. </div>
  9715. <iframe
  9716. v-else-if="fulltype == 2"
  9717. style="width: 100%; height: 100%; border: none"
  9718. :src="fullUrl"
  9719. security="restricted"
  9720. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9721. ></iframe>
  9722. <pdf
  9723. v-else-if="fulltype == 3"
  9724. :pdfUrl="fullUrl"
  9725. style="width: 100%; height: 100%; overflow: auto"
  9726. ></pdf>
  9727. <div
  9728. class="wheel"
  9729. v-if="fulltype == 1"
  9730. style="
  9731. box-shadow: 0 0 6px 1px #f2f2f2;
  9732. width: 100%;
  9733. background: #f1f1f1;
  9734. "
  9735. >
  9736. <div class="title" style="width: 100%; box-sizing: border-box">
  9737. 查看文档
  9738. </div>
  9739. <el-form class="textBox" style="height: 90%">
  9740. <el-form-item class="textTitle">
  9741. <div style="font-size: 22px">
  9742. {{ fullUrl.name }}
  9743. </div>
  9744. </el-form-item>
  9745. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9746. <div
  9747. v-html="fullUrl.url"
  9748. class="textContent"
  9749. style="height: auto"
  9750. ></div>
  9751. </el-form>
  9752. </div>
  9753. </div>
  9754. <!-- <div slot="footer">
  9755. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9756. </div> -->
  9757. </el-dialog>
  9758. <el-dialog
  9759. title="个人评价"
  9760. :visible.sync="studentEvalDialogVisible"
  9761. :append-to-body="true"
  9762. width="800px"
  9763. :before-close="handleClose"
  9764. class="dialog_diy"
  9765. >
  9766. <div class="evalCss">
  9767. <div class="nav">请选择星星进行评分</div>
  9768. <div class="middleBox" v-if="eScore.eStar">
  9769. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9770. <div class="nameAndrate">
  9771. <div>{{ e.value }}</div>
  9772. <el-rate
  9773. v-model="eScore.eStar[eIndex]"
  9774. :disabled="isStar"
  9775. ></el-rate>
  9776. </div>
  9777. <div v-if="e.detail">{{ e.detail }}</div>
  9778. </div>
  9779. <div class="easy_comment" v-if="false">
  9780. <div
  9781. v-for="(p, pIndex) in PlTextList"
  9782. :key="pIndex"
  9783. @click="fastText(p, 2)"
  9784. >
  9785. {{ p }}
  9786. </div>
  9787. </div>
  9788. <div class="bz">
  9789. <textarea
  9790. :disabled="isStar"
  9791. rows="4"
  9792. class="pj"
  9793. style="
  9794. padding: 10px 5px;
  9795. width: 70%;
  9796. background: #f7f6f9;
  9797. font-size: 14px;
  9798. text-indent: 10px;
  9799. "
  9800. cols
  9801. v-model="eScore.eBzText"
  9802. placeholder="请输入评价内容..."
  9803. ></textarea>
  9804. </div>
  9805. </div>
  9806. </div>
  9807. <div slot="footer">
  9808. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9809. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9810. >确 定</el-button
  9811. >
  9812. </div>
  9813. </el-dialog>
  9814. <el-dialog
  9815. title="个人评价"
  9816. :visible.sync="studentEvalDialogVisibleTeacher"
  9817. :append-to-body="true"
  9818. width="800px"
  9819. :before-close="handleClose"
  9820. class="dialog_diy"
  9821. >
  9822. <div class="w_name">
  9823. 学生姓名:<span>{{ sStudent.student }}</span>
  9824. </div>
  9825. <div class="evalCss">
  9826. <div class="nav">请选择星星进行评分</div>
  9827. <div class="middleBox" v-if="eScore.eStar">
  9828. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9829. <div class="nameAndrate">
  9830. <div>{{ e.value }}</div>
  9831. <el-rate
  9832. v-model="eScore.eStar[eIndex]"
  9833. :disabled="isStar"
  9834. ></el-rate>
  9835. </div>
  9836. <div v-if="e.detail">{{ e.detail }}</div>
  9837. </div>
  9838. <div class="easy_comment" v-if="false">
  9839. <div
  9840. v-for="(p, pIndex) in PlTextList"
  9841. :key="pIndex"
  9842. @click="fastText(p, 2)"
  9843. >
  9844. {{ p }}
  9845. </div>
  9846. </div>
  9847. <div class="bz">
  9848. <textarea
  9849. :disabled="isStar"
  9850. rows="4"
  9851. class="pj"
  9852. style="
  9853. padding: 10px 5px;
  9854. width: 70%;
  9855. background: #f7f6f9;
  9856. font-size: 14px;
  9857. text-indent: 10px;
  9858. "
  9859. cols
  9860. v-model="eScore.eBzText"
  9861. placeholder="请输入评价内容..."
  9862. ></textarea>
  9863. </div>
  9864. </div>
  9865. </div>
  9866. <div slot="footer">
  9867. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9868. >取 消</el-button
  9869. >
  9870. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9871. >确 定</el-button
  9872. >
  9873. </div>
  9874. </el-dialog>
  9875. <el-dialog
  9876. title="选择填空"
  9877. :visible.sync="dialogVisibleSelect"
  9878. :append-to-body="true"
  9879. width="90%"
  9880. :before-close="handleClose"
  9881. class="dialog_diy dialog_diy3"
  9882. >
  9883. <div v-if="selectJson">
  9884. <div class="select_box2">
  9885. <div class="select_box2_title">
  9886. <div>选择填空</div>
  9887. <div>请选择对应的答案进行答题!</div>
  9888. </div>
  9889. <div class="select_box2_box">
  9890. <div class="select_box2_img">
  9891. <img
  9892. :src="selectJson.url"
  9893. @click="previewImg(selectJson.url)"
  9894. alt=""
  9895. />
  9896. </div>
  9897. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9898. <div style="padding-top: 15px">
  9899. <div class="select_answer_title" v-if="isSelect">
  9900. {{ selectAnswer.stu }}
  9901. </div>
  9902. <div class="select_answer_title" v-else>
  9903. 根据题目选择对应答案
  9904. </div>
  9905. <div
  9906. class="select_box2_answer_box"
  9907. v-for="(item2, checkIndex) in selectJson.select"
  9908. :key="checkIndex"
  9909. >
  9910. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9911. <el-select
  9912. :disabled="isSelect"
  9913. v-model="selectAnswer.answer[checkIndex]"
  9914. placeholder="请选择正确答案"
  9915. >
  9916. <el-option
  9917. v-for="(e, eIndex) in selectJson.select"
  9918. :key="eIndex"
  9919. :label="e"
  9920. :value="eIndex"
  9921. >
  9922. </el-option>
  9923. </el-select>
  9924. </div>
  9925. </div>
  9926. <div
  9927. class="rightAnswerCss"
  9928. v-if="isSelect && (tType == 1 || tType == 4)"
  9929. >
  9930. <div
  9931. v-for="(a, aIndex) in selectJson.answer"
  9932. :key="aIndex"
  9933. class="rightAnswer"
  9934. >
  9935. <div
  9936. v-if="selectAnswer.answer[aIndex] === a"
  9937. style="color: #767de1"
  9938. >
  9939. 回答正确
  9940. </div>
  9941. <div v-else>回答错误</div>
  9942. <div
  9943. style="margin-left: 10px"
  9944. v-if="selectAnswer.answer[aIndex] !== a"
  9945. >
  9946. 正确答案:
  9947. </div>
  9948. <div
  9949. :class="
  9950. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9951. "
  9952. >
  9953. {{ selectJson.select[a] }}
  9954. </div>
  9955. </div>
  9956. </div>
  9957. </div>
  9958. <div class="upAnswerCss">
  9959. <el-button
  9960. type="primary"
  9961. @click="addSelectAnswer"
  9962. v-if="!isSelect"
  9963. >提交答案</el-button
  9964. >
  9965. </div>
  9966. </div>
  9967. </div>
  9968. </div>
  9969. </el-dialog>
  9970. <el-dialog
  9971. title="选择填空"
  9972. :visible.sync="dialogVisibleSelectTeacher"
  9973. :append-to-body="true"
  9974. width="90%"
  9975. :before-close="handleClose"
  9976. class="dialog_diy dialog_diy3"
  9977. >
  9978. <div v-if="selectJson">
  9979. <div class="w_name">
  9980. 学生姓名:<span>{{ sStudent.student }}</span>
  9981. </div>
  9982. <div class="select_box2">
  9983. <div class="select_box2_title">
  9984. <div>选择填空</div>
  9985. <div>请选择对应的答案进行答题!</div>
  9986. </div>
  9987. <div class="select_box2_box">
  9988. <div class="select_box2_img">
  9989. <img
  9990. :src="selectJson.url"
  9991. @click="previewImg(selectJson.url)"
  9992. alt=""
  9993. />
  9994. </div>
  9995. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9996. <div style="padding-top: 15px">
  9997. <div class="select_answer_title" v-if="isSelect">
  9998. {{ selectAnswer.stu }}
  9999. </div>
  10000. <div class="select_answer_title" v-else>
  10001. 根据题目选择对应答案
  10002. </div>
  10003. <div
  10004. class="select_box2_answer_box"
  10005. v-for="(item2, checkIndex) in selectJson.select"
  10006. :key="checkIndex"
  10007. >
  10008. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10009. <el-select
  10010. :disabled="isSelect"
  10011. v-model="selectAnswer.answer[checkIndex]"
  10012. placeholder="请选择正确答案"
  10013. >
  10014. <el-option
  10015. v-for="(e, eIndex) in selectJson.select"
  10016. :key="eIndex"
  10017. :label="e"
  10018. :value="eIndex"
  10019. >
  10020. </el-option>
  10021. </el-select>
  10022. </div>
  10023. </div>
  10024. <div
  10025. class="rightAnswerCss"
  10026. v-if="isSelect && (tType == 1 || tType == 4)"
  10027. >
  10028. <div
  10029. v-for="(a, aIndex) in selectJson.answer"
  10030. :key="aIndex"
  10031. class="rightAnswer"
  10032. >
  10033. <div
  10034. v-if="selectAnswer.answer[aIndex] === a"
  10035. style="color: #767de1"
  10036. >
  10037. 回答正确
  10038. </div>
  10039. <div v-else>回答错误</div>
  10040. <div
  10041. style="margin-left: 10px"
  10042. v-if="selectAnswer.answer[aIndex] !== a"
  10043. >
  10044. 正确答案:
  10045. </div>
  10046. <div
  10047. :class="
  10048. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10049. "
  10050. >
  10051. {{ selectJson.select[a] }}
  10052. </div>
  10053. </div>
  10054. </div>
  10055. </div>
  10056. <div class="upAnswerCss">
  10057. <el-button
  10058. type="primary"
  10059. @click="addSelectAnswerTeacher"
  10060. v-if="!isSelect"
  10061. >提交答案</el-button
  10062. >
  10063. </div>
  10064. </div>
  10065. </div>
  10066. </div>
  10067. </el-dialog>
  10068. <el-dialog
  10069. title="教师评分"
  10070. :visible.sync="dialogVisibleScore"
  10071. :append-to-body="true"
  10072. width="800px"
  10073. :before-close="handleClose"
  10074. class="dialog_diy"
  10075. >
  10076. <div>
  10077. <div class="studentDetail">
  10078. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10079. <div class="nameAndTime">
  10080. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10081. <div>{{ commentDetail.time }}</div>
  10082. </div>
  10083. </div>
  10084. <div
  10085. class="worksAnswer"
  10086. v-if="commentDetail.works && commentDetail.type == 2"
  10087. >
  10088. {{ JSON.parse(commentDetail.works)[0].answer }}
  10089. </div>
  10090. <div
  10091. class="worksAnswer"
  10092. v-if="commentDetail.works && commentDetail.type == 1"
  10093. >
  10094. <pdf
  10095. v-if="showPDF"
  10096. :pdfUrl="pptImgUrl"
  10097. style="width: 100%; height: 520px; overflow: auto"
  10098. :class="{ fullStyle: full }"
  10099. ></pdf>
  10100. <iframe
  10101. v-else
  10102. :src="pptImgUrl"
  10103. frameborder="0"
  10104. width="100%"
  10105. height="600"
  10106. :class="{ fullStyle: full }"
  10107. ></iframe>
  10108. </div>
  10109. <div
  10110. class="worksAnswer"
  10111. v-if="commentDetail.works && commentDetail.type == 0"
  10112. >
  10113. <img
  10114. :src="commentDetail.works"
  10115. alt=""
  10116. @click="previewImg(commentDetail.works)"
  10117. />
  10118. </div>
  10119. <div
  10120. class="worksAnswer"
  10121. v-if="commentDetail.works && commentDetail.type == 3"
  10122. >
  10123. <video-player
  10124. class="video-player vjs-custom-skin"
  10125. :playsinline="true"
  10126. :options="videoDetail"
  10127. @play="onPlayerPlay($event)"
  10128. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10129. ></video-player>
  10130. </div>
  10131. <div
  10132. class="worksAnswer codeFileBox"
  10133. v-if="commentDetail.works && commentDetail.type == 12"
  10134. @click="downloadFile(commentDetail.works)"
  10135. >
  10136. <img src="../../assets/icon/codeFile.png" />
  10137. <div>点击下载文件</div>
  10138. </div>
  10139. <div
  10140. class="worksAnswer codeFileBox"
  10141. v-if="commentDetail.works && commentDetail.type == 15"
  10142. @click="
  10143. openCocoPi(
  10144. 57,
  10145. commentIndexJson.toolIndex,
  10146. commentDetail.userid,
  10147. commentDetail.sName
  10148. )
  10149. "
  10150. >
  10151. <img src="../../assets/icon/codeFile.png" />
  10152. <div>点击打开CocoPi</div>
  10153. </div>
  10154. <div
  10155. class="worksAnswer"
  10156. v-if="commentDetail.works && commentDetail.type == 13"
  10157. >
  10158. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10159. </div>
  10160. <div class="scoreBox">
  10161. <span class="t">请输入分数</span>
  10162. <el-input-number
  10163. :disabled="courseDetail.userid != userid"
  10164. v-model="wScore"
  10165. :controls="false"
  10166. :min="0"
  10167. :max="100"
  10168. ></el-input-number>
  10169. </div>
  10170. <div class="scoreDetailBox">
  10171. <span class="t">评分评论</span>
  10172. <el-input
  10173. type="textarea"
  10174. :rows="5"
  10175. :disabled="courseDetail.userid != userid"
  10176. resize="none"
  10177. v-model="scoreDetail"
  10178. placeholder="请输入对学生的评价"
  10179. >
  10180. </el-input>
  10181. </div>
  10182. </div>
  10183. <span slot="footer" class="dialog-footer">
  10184. <el-button
  10185. @click="
  10186. (dialogVisibleScore = false),
  10187. (commentIndexJson = {}),
  10188. videoDetail.sources && videoDetail.sources[0]
  10189. ? (videoDetail.sources[0].src = '')
  10190. : ''
  10191. "
  10192. >取 消</el-button
  10193. >
  10194. <el-button
  10195. type="primary"
  10196. v-if="courseDetail.userid == userid"
  10197. @click="scoreWork(commentDetail.wid)"
  10198. >确 定
  10199. </el-button>
  10200. </span>
  10201. </el-dialog>
  10202. <el-dialog
  10203. title="连词成句"
  10204. :visible.sync="dialogVisibleSentence"
  10205. :append-to-body="true"
  10206. width="1000px"
  10207. :before-close="handleClose"
  10208. class="dialog_diy dialog_diy3"
  10209. >
  10210. <div>
  10211. <div class="sentenBox">
  10212. <div
  10213. v-for="(st, stIndex) in sentenceList"
  10214. :key="stIndex"
  10215. style="padding-bottom: 20px"
  10216. >
  10217. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10218. <div class="cardList" v-if="st.chooseSenList">
  10219. <div class="cardBox">
  10220. <div
  10221. v-for="(r, rIndex) in st.chooseSenList"
  10222. :key="rIndex"
  10223. @click="returnCard(r, stIndex, rIndex)"
  10224. >
  10225. <el-tooltip
  10226. class="item"
  10227. effect="light"
  10228. :content="r"
  10229. placement="top"
  10230. v-if="r != '' && r != undefined"
  10231. >
  10232. <div
  10233. :class="{
  10234. isCard: r,
  10235. isChooseCard: r == '' || r == undefined,
  10236. }"
  10237. >
  10238. <div>{{ r }}</div>
  10239. </div>
  10240. </el-tooltip>
  10241. <div
  10242. :class="{
  10243. isCard: r,
  10244. isChooseCard: r == '' || r == undefined,
  10245. }"
  10246. v-else
  10247. >
  10248. <div>{{ r }}</div>
  10249. </div>
  10250. </div>
  10251. </div>
  10252. </div>
  10253. <div class="cardList" v-if="st.addChangeSen">
  10254. <div class="cardBox">
  10255. <div
  10256. v-for="(s, sIndex) in st.addChangeSen"
  10257. :key="sIndex"
  10258. @click="setRightAnswer(s, stIndex, sIndex)"
  10259. >
  10260. <el-tooltip
  10261. class="item"
  10262. effect="light"
  10263. :content="s"
  10264. placement="top"
  10265. v-if="s != '' && s != undefined"
  10266. >
  10267. <div
  10268. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10269. >
  10270. <div>{{ s }}</div>
  10271. </div>
  10272. </el-tooltip>
  10273. <div
  10274. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10275. v-else
  10276. >
  10277. <div>{{ s }}</div>
  10278. </div>
  10279. </div>
  10280. </div>
  10281. </div>
  10282. </div>
  10283. </div>
  10284. </div>
  10285. <span slot="footer" class="dialog-footer">
  10286. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10287. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10288. </span>
  10289. </el-dialog>
  10290. <el-dialog
  10291. title="连词成句"
  10292. :visible.sync="dialogVisibleSentenceTeacher"
  10293. :append-to-body="true"
  10294. width="1000px"
  10295. :before-close="handleClose"
  10296. class="dialog_diy dialog_diy3"
  10297. >
  10298. <div>
  10299. <div class="w_name">
  10300. 学生姓名:<span>{{ sStudent.student }}</span>
  10301. </div>
  10302. <div class="sentenBox">
  10303. <div
  10304. v-for="(st, stIndex) in sentenceList"
  10305. :key="stIndex"
  10306. style="padding-bottom: 20px"
  10307. >
  10308. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10309. <div class="cardList" v-if="st.chooseSenList">
  10310. <div class="cardBox">
  10311. <div
  10312. v-for="(r, rIndex) in st.chooseSenList"
  10313. :key="rIndex"
  10314. @click="returnCard(r, stIndex, rIndex)"
  10315. >
  10316. <el-tooltip
  10317. class="item"
  10318. effect="light"
  10319. :content="r"
  10320. placement="top"
  10321. v-if="r != '' && r != undefined"
  10322. >
  10323. <div
  10324. :class="{
  10325. isCard: r,
  10326. isChooseCard: r == '' || r == undefined,
  10327. }"
  10328. >
  10329. <div>{{ r }}</div>
  10330. </div>
  10331. </el-tooltip>
  10332. <div
  10333. :class="{
  10334. isCard: r,
  10335. isChooseCard: r == '' || r == undefined,
  10336. }"
  10337. v-else
  10338. >
  10339. <div>{{ r }}</div>
  10340. </div>
  10341. </div>
  10342. </div>
  10343. </div>
  10344. <div class="cardList" v-if="st.addChangeSen">
  10345. <div class="cardBox">
  10346. <div
  10347. v-for="(s, sIndex) in st.addChangeSen"
  10348. :key="sIndex"
  10349. @click="setRightAnswer(s, stIndex, sIndex)"
  10350. >
  10351. <el-tooltip
  10352. class="item"
  10353. effect="light"
  10354. :content="s"
  10355. placement="top"
  10356. v-if="s != '' && s != undefined"
  10357. >
  10358. <div
  10359. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10360. >
  10361. <div>{{ s }}</div>
  10362. </div>
  10363. </el-tooltip>
  10364. <div
  10365. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10366. v-else
  10367. >
  10368. <div>{{ s }}</div>
  10369. </div>
  10370. </div>
  10371. </div>
  10372. </div>
  10373. </div>
  10374. </div>
  10375. </div>
  10376. <span slot="footer" class="dialog-footer">
  10377. <el-button @click="dialogVisibleSentenceTeacher = false"
  10378. >取 消</el-button
  10379. >
  10380. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10381. </span>
  10382. </el-dialog>
  10383. <el-dialog
  10384. title="连词成句"
  10385. :visible.sync="dialogVisibleSentence1"
  10386. :append-to-body="true"
  10387. width="1000px"
  10388. :before-close="handleClose"
  10389. class="dialog_diy dialog_diy3"
  10390. >
  10391. <div>
  10392. <div class="sentenBox">
  10393. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10394. {{ sentenceList1.stuName }}的作业
  10395. </div>
  10396. <div
  10397. v-for="(st, stIndex) in sentenceList1"
  10398. :key="stIndex"
  10399. style="padding-bottom: 20px"
  10400. >
  10401. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10402. 第{{ stIndex + 1 }}题
  10403. </div>
  10404. <div class="isWrong">
  10405. <div class="cardList1" v-if="st.chooseSenList">
  10406. <div class="cardBox">
  10407. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10408. <el-tooltip
  10409. class="item"
  10410. effect="light"
  10411. :content="s"
  10412. placement="top"
  10413. >
  10414. <div class="isCard">
  10415. <div>{{ s }}</div>
  10416. </div>
  10417. </el-tooltip>
  10418. </div>
  10419. </div>
  10420. <div class="cardAnswerBox">
  10421. 组成句子:{{ st.chooseSenList.join(" ") }}
  10422. </div>
  10423. </div>
  10424. <div
  10425. class="answerRight isTj"
  10426. v-if="
  10427. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10428. (tType == 1 || tType == 4)
  10429. "
  10430. >
  10431. <div class="isTjImg">
  10432. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10433. </div>
  10434. <div>回答正确</div>
  10435. </div>
  10436. <div
  10437. class="answerRight isTj"
  10438. v-if="
  10439. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10440. (tType == 1 || tType == 4)
  10441. "
  10442. >
  10443. <div class="isTjImg">
  10444. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10445. </div>
  10446. <div>回答错误</div>
  10447. </div>
  10448. </div>
  10449. <div
  10450. v-if="
  10451. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10452. (tType == 1 || tType == 4)
  10453. "
  10454. >
  10455. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10456. <div
  10457. class="cardList"
  10458. v-if="st.rightAnswer"
  10459. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10460. >
  10461. <div class="cardBox">
  10462. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10463. <el-tooltip
  10464. class="item"
  10465. effect="light"
  10466. :content="r"
  10467. placement="top"
  10468. >
  10469. <div class="isCard1">
  10470. <div>{{ r }}</div>
  10471. </div>
  10472. </el-tooltip>
  10473. </div>
  10474. </div>
  10475. <div class="cardAnswerBox">
  10476. 组成句子:{{ st.rightAnswer.join(" ") }}
  10477. </div>
  10478. </div>
  10479. </div>
  10480. </div>
  10481. </div>
  10482. </div>
  10483. <span slot="footer" class="dialog-footer">
  10484. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10485. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10486. >确 定</el-button
  10487. >
  10488. </span>
  10489. </el-dialog>
  10490. <el-dialog
  10491. title="提交作业"
  10492. :visible.sync="dialogVisibleWorks"
  10493. :append-to-body="true"
  10494. width="500px"
  10495. :before-close="handleClose"
  10496. class="dialog_change"
  10497. >
  10498. <div class="marginT">
  10499. <div class="w_name">
  10500. 学生姓名:<span>{{ sStudent.student }}</span>
  10501. </div>
  10502. <div>上传文件</div>
  10503. <div
  10504. class="chapter_add"
  10505. @click="addImg($event)"
  10506. v-if="studyJuri[0].cover.length == 0"
  10507. >
  10508. <div class="up_photo">
  10509. <img src="../../assets/uploadImg2.png" alt />
  10510. </div>
  10511. <!-- <input
  10512. type="file"
  10513. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10514. style="display: none"
  10515. @change="beforeUpload1($event, 1)"
  10516. /> -->
  10517. <input
  10518. type="file"
  10519. accept="*"
  10520. style="display: none"
  10521. @change="beforeUpload1($event, 1)"
  10522. />
  10523. </div>
  10524. <!-- capture="camera" -->
  10525. <div
  10526. class="chapter_add"
  10527. style="
  10528. display: flex;
  10529. width: 100%;
  10530. flex-direction: row;
  10531. flex-wrap: wrap;
  10532. justify-content: flex-start;
  10533. padding: 15px 0;
  10534. "
  10535. v-if="studyJuri[0].cover.length > 0"
  10536. >
  10537. <div class="upCover">
  10538. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10539. <img :src="word" alt v-else-if="fileType == 1" />
  10540. <img :src="video" alt v-else-if="fileType == 2" />
  10541. <img :src="word2" alt v-else-if="fileType == 3" />
  10542. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10543. <div class="deleteWord" @click="clean(1)">
  10544. <img src="../../assets/icon/deleteWorks.png" alt />
  10545. </div>
  10546. </div>
  10547. </div>
  10548. </div>
  10549. <div
  10550. class="upload_send"
  10551. @click="addCourseWorksTeacher(taskCount)"
  10552. v-if="!proVisible"
  10553. >
  10554. 提交
  10555. </div>
  10556. </el-dialog>
  10557. <el-dialog
  10558. title="问答"
  10559. :visible.sync="answerDialogVisibleTeacher"
  10560. :append-to-body="true"
  10561. width="800px"
  10562. :before-close="handleClose"
  10563. class="dialog_diy"
  10564. >
  10565. <div>
  10566. <div class="w_name">
  10567. 学生姓名:<span>{{ sStudent.student }}</span>
  10568. </div>
  10569. <div
  10570. style="
  10571. display: flex;
  10572. flex-wrap: nowrap;
  10573. flex-direction: column;
  10574. position: relative;
  10575. "
  10576. >
  10577. <div class="queTop" style="padding: 20px 0 20px 0">
  10578. <div class="question">
  10579. <img src="../../assets/icon/question.png" alt />
  10580. </div>
  10581. <div class="queTitle">
  10582. <div style="width: 90px; min-width: 90px">提问:</div>
  10583. <div>{{ answerQ }}</div>
  10584. </div>
  10585. </div>
  10586. <div class="ediBottom">
  10587. <textarea
  10588. rows="6"
  10589. class="binfo_input"
  10590. cols
  10591. style="width: 95%; height: 120px"
  10592. v-model="questionAnswer"
  10593. ></textarea>
  10594. </div>
  10595. </div>
  10596. </div>
  10597. <div slot="footer">
  10598. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10599. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10600. </div>
  10601. </el-dialog>
  10602. <ImgDraw
  10603. :drawShow="drawShow"
  10604. @closeDraw="closeDraw"
  10605. @addImgDraw="addImgDraw"
  10606. :bg="bg"
  10607. ></ImgDraw>
  10608. <el-dialog
  10609. title="表格"
  10610. :visible.sync="dialogVisibleTable"
  10611. :append-to-body="true"
  10612. width="95%"
  10613. :before-close="handleClose"
  10614. class="dialog_diy"
  10615. >
  10616. <el-form>
  10617. <div>表格内容</div>
  10618. <Table
  10619. v-model="tableJson.text"
  10620. @change="change"
  10621. v-if="dialogVisibleTable"
  10622. ></Table>
  10623. </el-form>
  10624. <span slot="footer" class="dialog-footer">
  10625. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10626. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10627. </span>
  10628. </el-dialog>
  10629. <el-dialog
  10630. title="表格"
  10631. :visible.sync="dialogVisibleTableTeacher"
  10632. :append-to-body="true"
  10633. width="95%"
  10634. :before-close="handleClose"
  10635. class="dialog_diy"
  10636. >
  10637. <el-form>
  10638. <div class="w_name">
  10639. 学生姓名:<span>{{ sStudent.student }}</span>
  10640. </div>
  10641. <div>表格内容</div>
  10642. <Table
  10643. v-model="tableJson.text"
  10644. @change="change"
  10645. v-if="dialogVisibleTableTeacher"
  10646. ></Table>
  10647. </el-form>
  10648. <span slot="footer" class="dialog-footer">
  10649. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10650. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10651. </span>
  10652. </el-dialog>
  10653. <el-dialog
  10654. title="文档"
  10655. :visible.sync="dialogVisibleWord"
  10656. :append-to-body="true"
  10657. width="95%"
  10658. :before-close="handleClose"
  10659. class="dialog_diy"
  10660. >
  10661. <el-form>
  10662. <div>文档内容</div>
  10663. <editor-bar
  10664. v-model="wordJson.text"
  10665. v-if="dialogVisibleWord"
  10666. ></editor-bar>
  10667. </el-form>
  10668. <span slot="footer" class="dialog-footer">
  10669. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10670. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10671. </span>
  10672. </el-dialog>
  10673. <el-dialog
  10674. title="文档"
  10675. :visible.sync="dialogVisibleWordTeacher"
  10676. :append-to-body="true"
  10677. width="95%"
  10678. :before-close="handleClose"
  10679. class="dialog_diy"
  10680. >
  10681. <el-form>
  10682. <div class="w_name">
  10683. 学生姓名:<span>{{ sStudent.student }}</span>
  10684. </div>
  10685. <div>文档内容</div>
  10686. <editor-bar
  10687. v-model="wordJson.text"
  10688. v-if="dialogVisibleWordTeacher"
  10689. ></editor-bar>
  10690. </el-form>
  10691. <span slot="footer" class="dialog-footer">
  10692. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10693. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10694. </span>
  10695. </el-dialog>
  10696. <el-dialog
  10697. title="表格"
  10698. :visible.sync="dialogVisibleTable2"
  10699. :append-to-body="true"
  10700. width="95%"
  10701. :before-close="handleClose"
  10702. class="dialog_diy"
  10703. >
  10704. <el-form>
  10705. <div class="cont" v-html="tableJson.text"></div>
  10706. </el-form>
  10707. <span slot="footer" class="dialog-footer">
  10708. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10709. </span>
  10710. </el-dialog>
  10711. <el-dialog
  10712. title="文档"
  10713. :visible.sync="dialogVisibleTable3"
  10714. :append-to-body="true"
  10715. width="95%"
  10716. :before-close="handleClose"
  10717. class="dialog_diy"
  10718. >
  10719. <el-form>
  10720. <div class="cont" v-html="tableJson.text"></div>
  10721. </el-form>
  10722. <span slot="footer" class="dialog-footer">
  10723. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10724. </span>
  10725. </el-dialog>
  10726. <el-dialog
  10727. title="分组设置"
  10728. :visible.sync="dialogVisibleGroup"
  10729. :append-to-body="true"
  10730. width="95%"
  10731. :before-close="handleClose"
  10732. class="dialog_diy"
  10733. >
  10734. <div v-if="dialogVisibleGroup">
  10735. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10736. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10737. 提示:需要锁定位置,才能点击头像修改座位。
  10738. </div>
  10739. <div
  10740. type="primary"
  10741. v-if="groupJson.islock == 1"
  10742. class="returnBtn"
  10743. style="background-color: #225bc7"
  10744. @click="lockChair"
  10745. >
  10746. 锁定位置
  10747. </div>
  10748. <div
  10749. type="primary"
  10750. v-else
  10751. class="returnBtn"
  10752. style="background-color: #225bc7"
  10753. @click="lockChair"
  10754. >
  10755. 解锁位置
  10756. </div>
  10757. <div
  10758. type="primary"
  10759. @click="updateGroup"
  10760. class="returnBtn"
  10761. style="background-color: #225bc7"
  10762. >
  10763. 分组设置
  10764. </div>
  10765. </div>
  10766. <div>
  10767. <div
  10768. class="g_d_box"
  10769. v-if="groupJson.group && groupStudent[toolindex]"
  10770. >
  10771. <div
  10772. class="g_d_group"
  10773. v-for="(g, gindex) in groupJson.group"
  10774. :key="gindex"
  10775. >
  10776. <div class="g_d_group_chair">
  10777. <div v-if="groupJson.number > 1">
  10778. <span
  10779. :class="{
  10780. isChair:
  10781. groupStudent[toolindex][gindex] &&
  10782. groupStudent[toolindex][gindex][0],
  10783. updateChair:
  10784. courseDetail.userid == userid &&
  10785. groupStudent[toolindex][gindex] &&
  10786. groupStudent[toolindex][gindex][0] &&
  10787. groupJson.islock == 2,
  10788. }"
  10789. ><span
  10790. class="updateChairBtn"
  10791. @click="
  10792. updateGroupChair(
  10793. groupStudent[toolindex][gindex] &&
  10794. groupStudent[toolindex][gindex][0]
  10795. )
  10796. "
  10797. >修改</span
  10798. ></span
  10799. ><span>{{
  10800. groupStudent[toolindex][gindex] &&
  10801. groupStudent[toolindex][gindex][0]
  10802. ? groupStudent[toolindex][gindex] &&
  10803. groupStudent[toolindex][gindex][0].name
  10804. : "空位置"
  10805. }}</span>
  10806. </div>
  10807. <div v-if="groupJson.number > 4">
  10808. <span
  10809. :class="{
  10810. isChair:
  10811. groupStudent[toolindex][gindex] &&
  10812. groupStudent[toolindex][gindex][4],
  10813. updateChair:
  10814. courseDetail.userid == userid &&
  10815. groupStudent[toolindex][gindex] &&
  10816. groupStudent[toolindex][gindex][4] &&
  10817. groupJson.islock == 2,
  10818. }"
  10819. ><span
  10820. class="updateChairBtn"
  10821. @click="
  10822. updateGroupChair(
  10823. groupStudent[toolindex][gindex] &&
  10824. groupStudent[toolindex][gindex][4]
  10825. )
  10826. "
  10827. >修改</span
  10828. ></span
  10829. ><span>{{
  10830. groupStudent[toolindex][gindex] &&
  10831. groupStudent[toolindex][gindex][4]
  10832. ? groupStudent[toolindex][gindex] &&
  10833. groupStudent[toolindex][gindex][4].name
  10834. : "空位置"
  10835. }}</span>
  10836. </div>
  10837. <div v-if="groupJson.number > 8">
  10838. <span
  10839. :class="{
  10840. isChair:
  10841. groupStudent[toolindex][gindex] &&
  10842. groupStudent[toolindex][gindex][8],
  10843. updateChair:
  10844. courseDetail.userid == userid &&
  10845. groupStudent[toolindex][gindex] &&
  10846. groupStudent[toolindex][gindex][8] &&
  10847. groupJson.islock == 2,
  10848. }"
  10849. ><span
  10850. class="updateChairBtn"
  10851. @click="
  10852. updateGroupChair(
  10853. groupStudent[toolindex][gindex] &&
  10854. groupStudent[toolindex][gindex][8]
  10855. )
  10856. "
  10857. >修改</span
  10858. ></span
  10859. ><span>{{
  10860. groupStudent[toolindex][gindex] &&
  10861. groupStudent[toolindex][gindex][8]
  10862. ? groupStudent[toolindex][gindex] &&
  10863. groupStudent[toolindex][gindex][8].name
  10864. : "空位置"
  10865. }}</span>
  10866. </div>
  10867. </div>
  10868. <div class="g_d_group_tableBox">
  10869. <div class="g_d_group_chair2">
  10870. <div v-if="groupJson.number > 2">
  10871. <span
  10872. :class="{
  10873. isChair:
  10874. groupStudent[toolindex][gindex] &&
  10875. groupStudent[toolindex][gindex][2],
  10876. updateChair:
  10877. courseDetail.userid == userid &&
  10878. groupStudent[toolindex][gindex] &&
  10879. groupStudent[toolindex][gindex][2] &&
  10880. groupJson.islock == 2,
  10881. }"
  10882. ><span
  10883. class="updateChairBtn"
  10884. @click="
  10885. updateGroupChair(
  10886. groupStudent[toolindex][gindex] &&
  10887. groupStudent[toolindex][gindex][2]
  10888. )
  10889. "
  10890. >修改</span
  10891. ></span
  10892. ><span>{{
  10893. groupStudent[toolindex][gindex] &&
  10894. groupStudent[toolindex][gindex][2]
  10895. ? groupStudent[toolindex][gindex] &&
  10896. groupStudent[toolindex][gindex][2].name
  10897. : "空位置"
  10898. }}</span>
  10899. </div>
  10900. <div v-if="groupJson.number > 6">
  10901. <span
  10902. :class="{
  10903. isChair:
  10904. groupStudent[toolindex][gindex] &&
  10905. groupStudent[toolindex][gindex][6],
  10906. updateChair:
  10907. courseDetail.userid == userid &&
  10908. groupStudent[toolindex][gindex] &&
  10909. groupStudent[toolindex][gindex][6] &&
  10910. groupJson.islock == 2,
  10911. }"
  10912. ><span
  10913. class="updateChairBtn"
  10914. @click="
  10915. updateGroupChair(
  10916. groupStudent[toolindex][gindex] &&
  10917. groupStudent[toolindex][gindex][6]
  10918. )
  10919. "
  10920. >修改</span
  10921. ></span
  10922. ><span>{{
  10923. groupStudent[toolindex][gindex] &&
  10924. groupStudent[toolindex][gindex][6]
  10925. ? groupStudent[toolindex][gindex] &&
  10926. groupStudent[toolindex][gindex][6].name
  10927. : "空位置"
  10928. }}</span>
  10929. </div>
  10930. </div>
  10931. <div class="g_d_group_table">
  10932. <div>
  10933. {{ g.name }}
  10934. </div>
  10935. <div>
  10936. <div
  10937. v-if="
  10938. courseDetail.userid == userid && groupJson.islock == 2
  10939. "
  10940. @click="deleteGroupChair(gindex)"
  10941. >
  10942. 移除组员
  10943. </div>
  10944. <div
  10945. @click="selectGroup(gindex)"
  10946. v-else-if="
  10947. groupStudentUid[toolindex] &&
  10948. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10949. "
  10950. >
  10951. 加入分组
  10952. </div>
  10953. <div
  10954. @click="
  10955. exitGroup(
  10956. groupStudent[toolindex][gindex] &&
  10957. groupStudent[toolindex][gindex][
  10958. groupStudentUid[toolindex][gindex].indexOf(userid)
  10959. ].id
  10960. )
  10961. "
  10962. v-else-if="
  10963. groupStudentUid[toolindex] &&
  10964. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10965. "
  10966. >
  10967. 退出分组
  10968. </div>
  10969. </div>
  10970. </div>
  10971. <div class="g_d_group_chair2">
  10972. <div v-if="groupJson.number > 3">
  10973. <span
  10974. :class="{
  10975. isChair:
  10976. groupStudent[toolindex][gindex] &&
  10977. groupStudent[toolindex][gindex][3],
  10978. updateChair:
  10979. courseDetail.userid == userid &&
  10980. groupStudent[toolindex][gindex] &&
  10981. groupStudent[toolindex][gindex][3] &&
  10982. groupJson.islock == 2,
  10983. }"
  10984. ><span
  10985. class="updateChairBtn"
  10986. @click="
  10987. updateGroupChair(
  10988. groupStudent[toolindex][gindex] &&
  10989. groupStudent[toolindex][gindex][3]
  10990. )
  10991. "
  10992. >修改</span
  10993. ></span
  10994. ><span>{{
  10995. groupStudent[toolindex][gindex] &&
  10996. groupStudent[toolindex][gindex][3]
  10997. ? groupStudent[toolindex][gindex] &&
  10998. groupStudent[toolindex][gindex][3].name
  10999. : "空位置"
  11000. }}</span>
  11001. </div>
  11002. <div v-if="groupJson.number > 7">
  11003. <span
  11004. :class="{
  11005. isChair:
  11006. groupStudent[toolindex][gindex] &&
  11007. groupStudent[toolindex][gindex][7],
  11008. updateChair:
  11009. courseDetail.userid == userid &&
  11010. groupStudent[toolindex][gindex] &&
  11011. groupStudent[toolindex][gindex][7] &&
  11012. groupJson.islock == 2,
  11013. }"
  11014. ><span
  11015. class="updateChairBtn"
  11016. @click="
  11017. updateGroupChair(
  11018. groupStudent[toolindex][gindex] &&
  11019. groupStudent[toolindex][gindex][7]
  11020. )
  11021. "
  11022. >修改</span
  11023. ></span
  11024. ><span>{{
  11025. groupStudent[toolindex][gindex] &&
  11026. groupStudent[toolindex][gindex][7]
  11027. ? groupStudent[toolindex][gindex] &&
  11028. groupStudent[toolindex][gindex][7].name
  11029. : "空位置"
  11030. }}</span>
  11031. </div>
  11032. </div>
  11033. </div>
  11034. <div class="g_d_group_chair">
  11035. <div v-if="groupJson.number > 1">
  11036. <span
  11037. :class="{
  11038. isChair:
  11039. groupStudent[toolindex][gindex] &&
  11040. groupStudent[toolindex][gindex][1],
  11041. updateChair:
  11042. courseDetail.userid == userid &&
  11043. groupStudent[toolindex][gindex] &&
  11044. groupStudent[toolindex][gindex][1] &&
  11045. groupJson.islock == 2,
  11046. }"
  11047. ><span
  11048. class="updateChairBtn"
  11049. @click="
  11050. updateGroupChair(
  11051. groupStudent[toolindex][gindex] &&
  11052. groupStudent[toolindex][gindex][1]
  11053. )
  11054. "
  11055. >修改</span
  11056. ></span
  11057. ><span>{{
  11058. groupStudent[toolindex][gindex] &&
  11059. groupStudent[toolindex][gindex][1]
  11060. ? groupStudent[toolindex][gindex] &&
  11061. groupStudent[toolindex][gindex][1].name
  11062. : "空位置"
  11063. }}</span>
  11064. </div>
  11065. <div v-if="groupJson.number > 5">
  11066. <span
  11067. :class="{
  11068. isChair:
  11069. groupStudent[toolindex][gindex] &&
  11070. groupStudent[toolindex][gindex][5],
  11071. updateChair:
  11072. courseDetail.userid == userid &&
  11073. groupStudent[toolindex][gindex] &&
  11074. groupStudent[toolindex][gindex][5] &&
  11075. groupJson.islock == 2,
  11076. }"
  11077. ><span
  11078. class="updateChairBtn"
  11079. @click="
  11080. updateGroupChair(
  11081. groupStudent[toolindex][gindex] &&
  11082. groupStudent[toolindex][gindex][5]
  11083. )
  11084. "
  11085. >修改</span
  11086. ></span
  11087. ><span>{{
  11088. groupStudent[toolindex][gindex] &&
  11089. groupStudent[toolindex][gindex][5]
  11090. ? groupStudent[toolindex][gindex] &&
  11091. groupStudent[toolindex][gindex][5].name
  11092. : "空位置"
  11093. }}</span>
  11094. </div>
  11095. <div v-if="groupJson.number > 9">
  11096. <span
  11097. :class="{
  11098. isChair:
  11099. groupStudent[toolindex][gindex] &&
  11100. groupStudent[toolindex][gindex][9],
  11101. updateChair:
  11102. courseDetail.userid == userid &&
  11103. groupStudent[toolindex][gindex] &&
  11104. groupStudent[toolindex][gindex][9] &&
  11105. groupJson.islock == 2,
  11106. }"
  11107. ><span
  11108. class="updateChairBtn"
  11109. @click="
  11110. updateGroupChair(
  11111. groupStudent[toolindex][gindex] &&
  11112. groupStudent[toolindex][gindex][9]
  11113. )
  11114. "
  11115. >修改</span
  11116. ></span
  11117. ><span>{{
  11118. groupStudent[toolindex][gindex] &&
  11119. groupStudent[toolindex][gindex][9]
  11120. ? groupStudent[toolindex][gindex] &&
  11121. groupStudent[toolindex][gindex][9].name
  11122. : "空位置"
  11123. }}</span>
  11124. </div>
  11125. </div>
  11126. </div>
  11127. </div>
  11128. </div>
  11129. </div>
  11130. <span slot="footer" class="dialog-footer">
  11131. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11132. </span>
  11133. </el-dialog>
  11134. <el-dialog
  11135. title="分组设置"
  11136. :visible.sync="dialogVisibleGroup2"
  11137. :append-to-body="true"
  11138. width="650px"
  11139. :before-close="handleClose"
  11140. class="dialog_diy"
  11141. >
  11142. <div class="groupBox">
  11143. <div v-if="groupJson2.group" class="groupContent">
  11144. <div class="groupTitle">请设置小组数量</div>
  11145. <div
  11146. v-for="(item, index) in groupJson2.group"
  11147. :key="index"
  11148. class="groupName"
  11149. >
  11150. <span class="groupn">组{{ index + 1 }}名称:</span>
  11151. <el-input
  11152. v-model="item.name"
  11153. placeholder="请输入名称..."
  11154. style="width: 250px"
  11155. ></el-input>
  11156. <!-- <div class="groupBtn">
  11157. <el-button type="primary" size="small" @click="addGroup(index)">
  11158. 添加</el-button>
  11159. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11160. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11161. </div> -->
  11162. </div>
  11163. </div>
  11164. <div class="groupContent">
  11165. <div class="groupTitle">请设置每组人数数量</div>
  11166. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11167. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11168. <el-input-number
  11169. v-model="groupJson2.number"
  11170. :controls="false"
  11171. :min="2"
  11172. :max="10"
  11173. placeholder="2-10人以内"
  11174. ></el-input-number>
  11175. </div>
  11176. </div>
  11177. <span slot="footer" class="dialog-footer">
  11178. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11179. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11180. </span>
  11181. </el-dialog>
  11182. <el-dialog
  11183. title="作业提交"
  11184. :visible.sync="dialogVisibleGroupWork"
  11185. :append-to-body="true"
  11186. width="500px"
  11187. :before-close="handleClose"
  11188. class="dialog_change"
  11189. >
  11190. <div class="marginT">
  11191. <div>上传文件</div>
  11192. <div
  11193. class="chapter_add"
  11194. @click="addImg($event)"
  11195. v-if="studyJuri[0].cover.length == 0"
  11196. >
  11197. <div class="up_photo">
  11198. <img src="../../assets/icon/uploadImg.png" alt />
  11199. </div>
  11200. <!-- <input
  11201. type="file"
  11202. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11203. style="display: none"
  11204. @change="beforeUpload1($event, 1)"
  11205. /> -->
  11206. <input
  11207. type="file"
  11208. accept="*"
  11209. style="display: none"
  11210. @change="beforeUpload1($event, 1)"
  11211. />
  11212. </div>
  11213. <!-- capture="camera" -->
  11214. <div
  11215. class="chapter_add"
  11216. style="
  11217. display: flex;
  11218. width: 100%;
  11219. flex-direction: row;
  11220. flex-wrap: wrap;
  11221. justify-content: flex-start;
  11222. padding: 15px 0;
  11223. "
  11224. v-if="studyJuri[0].cover.length > 0"
  11225. >
  11226. <div class="upCover">
  11227. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11228. <img :src="word" alt v-else-if="fileType == 1" />
  11229. <img :src="video" alt v-else-if="fileType == 2" />
  11230. <img :src="word2" alt v-else-if="fileType == 3" />
  11231. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11232. <div class="deleteWord" @click="clean(1)">
  11233. <img src="../../assets/icon/deleteWorks.png" alt />
  11234. </div>
  11235. </div>
  11236. </div>
  11237. </div>
  11238. <div
  11239. class="upload_send"
  11240. @click="addCourseWorks2(taskCount)"
  11241. v-if="!proVisible"
  11242. >
  11243. 提交
  11244. </div>
  11245. </el-dialog>
  11246. <el-dialog
  11247. title="修改分组"
  11248. :visible.sync="dialogVisibleUpdateGroup"
  11249. :append-to-body="true"
  11250. width="350px"
  11251. :before-close="handleClose"
  11252. class="dialog_diy"
  11253. >
  11254. <div>
  11255. <h2>
  11256. {{ this.updateGroupUser.name }}
  11257. </h2>
  11258. <div style="color: rgb(171 171 171); margin-top: 10px">
  11259. 请选择要进入的分组
  11260. </div>
  11261. <el-radio-group v-model="checkChair">
  11262. <el-radio
  11263. style="display: block; margin-top: 20px"
  11264. v-for="(item, index) in updateGroupArray"
  11265. :label="item.label"
  11266. :key="index"
  11267. >{{ item.name }}</el-radio
  11268. >
  11269. </el-radio-group>
  11270. </div>
  11271. <span slot="footer" class="dialog-footer">
  11272. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11273. <el-button type="primary" @click="updateChair">确定</el-button>
  11274. </span>
  11275. </el-dialog>
  11276. <el-dialog
  11277. title="移除组员"
  11278. :visible.sync="dialogVisibleDeleteGroup"
  11279. :append-to-body="true"
  11280. width="350px"
  11281. :before-close="handleClose"
  11282. class="dialog_diy"
  11283. >
  11284. <div>
  11285. <h2>
  11286. {{ this.deleteGroupArray.name }}
  11287. </h2>
  11288. <div style="color: rgb(171 171 171); margin-top: 10px">
  11289. 请选择要删除的组员
  11290. </div>
  11291. <el-checkbox-group v-model="checkDeleteGroup">
  11292. <el-checkbox
  11293. style="display: block; margin-top: 20px"
  11294. v-for="(item, index) in deleteGroupUser"
  11295. :label="item.userid"
  11296. :key="index"
  11297. >{{ item.name }}</el-checkbox
  11298. >
  11299. </el-checkbox-group>
  11300. </div>
  11301. <span slot="footer" class="dialog-footer">
  11302. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11303. <el-button type="primary" @click="deleteChair">确定</el-button>
  11304. </span>
  11305. </el-dialog>
  11306. <el-dialog
  11307. title="批量上传"
  11308. :visible.sync="dialogVisiblePl"
  11309. :append-to-body="true"
  11310. width="700px"
  11311. :before-close="handleClose"
  11312. class="dialog_change"
  11313. >
  11314. <div class="marginT">
  11315. <div class="plworkBox">
  11316. <div
  11317. class="chapter_add"
  11318. style="
  11319. display: flex;
  11320. width: 150px;
  11321. flex-direction: row;
  11322. flex-wrap: wrap;
  11323. justify-content: flex-start;
  11324. margin: 0 10px 10px 0;
  11325. "
  11326. v-for="(item, index) in plworkFile"
  11327. :key="index"
  11328. >
  11329. <div class="upCover2">
  11330. <img
  11331. :src="item.url"
  11332. alt
  11333. v-if="item.fileType == 1"
  11334. @click="previewImg(item.url)"
  11335. />
  11336. <img :src="word" alt v-else-if="item.fileType == 4" />
  11337. <img :src="video" alt v-else />
  11338. <!-- <span class="picName">{{ item.name }}</span> -->
  11339. <!-- <el-input
  11340. v-model="item.username"
  11341. placeholder="请输入学生名字"
  11342. style="margin-top: 10px"
  11343. ></el-input> -->
  11344. <div
  11345. class="pl_select_box"
  11346. @click="
  11347. getUpdateMore(true, checkUpload(), item.username, index)
  11348. "
  11349. >
  11350. {{ getSName(item.username) }}
  11351. </div>
  11352. <!-- <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  11353. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  11354. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  11355. </el-option>
  11356. </el-select> -->
  11357. <div class="deleteWord" @click="clean2(index)">
  11358. <img src="../../assets/icon/deleteWorks.png" alt />
  11359. </div>
  11360. </div>
  11361. </div>
  11362. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11363. <div class="up_photo2">
  11364. <img src="../../assets/icon/plwork.png" alt />
  11365. <span>点击上传文件</span>
  11366. </div>
  11367. <input
  11368. type="file"
  11369. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11370. multiple="multiple"
  11371. style="display: none"
  11372. @change="beforeUpload3($event, 6)"
  11373. />
  11374. </div>
  11375. </div>
  11376. </div>
  11377. <!-- capture="camera" -->
  11378. <div
  11379. class="upload_send"
  11380. @click="addCourseWorksPl(taskCount)"
  11381. v-if="!proVisible2"
  11382. >
  11383. 提交
  11384. </div>
  11385. </el-dialog>
  11386. <el-dialog
  11387. title="修改名称"
  11388. :visible.sync="dialogVisibleSname"
  11389. width="500px"
  11390. :before-close="handleClose"
  11391. class="dialog_diy"
  11392. center
  11393. >
  11394. <div
  11395. style="
  11396. text-align: center;
  11397. display: flex;
  11398. align-items: center;
  11399. justify-content: center;
  11400. "
  11401. >
  11402. <span class="tian1">名称</span>
  11403. <div
  11404. class="pl_select_box"
  11405. style="margin-left: 10px; width: 200px"
  11406. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11407. >
  11408. {{ getSName(worksSName) }}
  11409. </div>
  11410. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11411. placeholder="请选择学生">
  11412. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11413. :value="item.userid">
  11414. </el-option>
  11415. </el-select> -->
  11416. <!-- <el-input
  11417. v-model="worksSName"
  11418. style="width: 250px; margin: 15px 0px"
  11419. ></el-input> -->
  11420. </div>
  11421. <span slot="footer" class="dialog-footer">
  11422. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11423. <el-button type="primary" @click="updateName">确 定</el-button>
  11424. </span>
  11425. </el-dialog>
  11426. <interVideo
  11427. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11428. :videoJson="videoJson"
  11429. :userid="userid"
  11430. :id="id"
  11431. :courseType="courseType"
  11432. :taskCount="taskCount"
  11433. :toolindex="toolindex"
  11434. ></interVideo>
  11435. <UpdateMore
  11436. :dialogVisibleMember.sync="dialogVisibleMember"
  11437. :cList="uploadStudentJuri"
  11438. :userid="userid"
  11439. :searchTN="worksSName2"
  11440. @setPlname="setPlname"
  11441. ></UpdateMore>
  11442. </div>
  11443. </template>
  11444. <script>
  11445. import "../../common/aws-sdk-2.235.1.min.js";
  11446. // import pdf from "../components/pdf3";
  11447. import pdf from "../components/vpdf";
  11448. import AskStatic from "../components/askStatic";
  11449. import AskStatic2 from "../components/askStatic2";
  11450. import AnswerData2 from "../components/answerData2";
  11451. import AnswerData from "../components/answerData";
  11452. import EditorBar from "../tools/wangEnduit.vue";
  11453. import Table from "../tools/table.vue";
  11454. import Time from "../tools/time.vue";
  11455. import Mind from "../tools/jsmind.vue";
  11456. import Sunburst from "../tools/sunburst";
  11457. import SeeBoard from "../tools/seeBoard";
  11458. import * as imageConversion from "image-conversion";
  11459. import Audio from "../components/audio.vue";
  11460. import ImgDraw from "../tools/imgDraw/imgDraw";
  11461. import { Empty } from "element-ui";
  11462. import RecordRTC from "recordrtc";
  11463. import interVideo from "../interVideo/index.vue";
  11464. import UpdateMore from "../updateMore/updateMore.vue";
  11465. export default {
  11466. components: {
  11467. EditorBar,
  11468. Time,
  11469. pdf,
  11470. AskStatic,
  11471. AskStatic2,
  11472. Mind,
  11473. Sunburst,
  11474. SeeBoard,
  11475. AnswerData2,
  11476. AnswerData,
  11477. Audio,
  11478. ImgDraw,
  11479. Table,
  11480. interVideo,
  11481. UpdateMore,
  11482. },
  11483. data() {
  11484. return {
  11485. bg: null,
  11486. drawShow: false,
  11487. dialogVisible: false,
  11488. dialogVisiblePl: false,
  11489. commentDialogVisible: false,
  11490. videoVisible: false,
  11491. isStar: false,
  11492. studentEvalDialogVisible: false,
  11493. studentEvalDialogVisibleTeacher: false,
  11494. dialogVisibleSelect: false,
  11495. dialogVisibleSelectTeacher: false,
  11496. dialogVisibleScore: false,
  11497. dialogVisibleSentence: false,
  11498. dialogVisibleSentenceTeacher: false,
  11499. dialogVisibleSentence1: false,
  11500. dialogVisibleWorks: false,
  11501. answerDialogVisibleTeacher: false,
  11502. dialogVisibleTable: false,
  11503. dialogVisibleTableTeacher: false,
  11504. dialogVisibleWord: false,
  11505. dialogVisibleWordTeacher: false,
  11506. dialogVisibleTable2: false,
  11507. dialogVisibleTable3: false,
  11508. dialogVisibleGroupWork: false,
  11509. dialogVisibleUpdateGroup: false,
  11510. dialogVisibleDeleteGroup: false,
  11511. dialogVisibleSname: false,
  11512. dialogVisibleVideo: false,
  11513. worksSName: "",
  11514. classJuri: [],
  11515. uploadStudentJuri: [],
  11516. uploadCid: "",
  11517. snameWid: "",
  11518. sStudent: {},
  11519. sTool: "",
  11520. bzText: "",
  11521. commentDetail: [],
  11522. selectAnswer: [],
  11523. videoDetail: {},
  11524. selectJson: {},
  11525. eScore: { eBzText: "", eStar: [] },
  11526. id: this.$route.query.courseId,
  11527. userid: this.$route.query.userid,
  11528. classId: this.$route.query.cid,
  11529. // courseTypeLine: this.$route.query.type,
  11530. oid: this.$route.query.oid,
  11531. org: this.$route.query.org,
  11532. tType: this.$route.query.tType,
  11533. courseType: this.$route.query.type,
  11534. screenType: this.$route.query.screenType,
  11535. tcid2: this.$route.query.tcid,
  11536. tcid: "",
  11537. pptImgUrl: "",
  11538. pptImgUrl1: "",
  11539. commentText: "",
  11540. full: false,
  11541. sIsOpen: false,
  11542. IsLookOpen: false,
  11543. IsFollow: false,
  11544. pzDialog: false,
  11545. contentDialog: false,
  11546. mlDialog: false,
  11547. type: 1,
  11548. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11549. sentenceList1: [],
  11550. tableJson: [],
  11551. wordJson: [],
  11552. vedio: [],
  11553. text: [],
  11554. textList: [],
  11555. line: [],
  11556. lineList: [],
  11557. chapTools: [],
  11558. chapToolList: [],
  11559. file: [],
  11560. fileC: [],
  11561. vedioTime: [],
  11562. upToolImg: "",
  11563. preTime: 0,
  11564. rateList: {
  11565. ca: 0,
  11566. },
  11567. rateParams: [],
  11568. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11569. studyJuri: [
  11570. {
  11571. content: "",
  11572. cover: [],
  11573. upVedio: [],
  11574. upFile: [],
  11575. },
  11576. ],
  11577. plworkFile: [],
  11578. mr: require("../../assets/vedioPic.png"),
  11579. word: require("../../assets/icon/isWord.png"),
  11580. word2: require("../../assets/icon/word2.png"),
  11581. video: require("../../assets/icon/isVideo.png"),
  11582. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11583. likes: require("../../assets/icon/comment/likes.png"),
  11584. scoreImg: require("../../assets/score.png"),
  11585. courseDetail: {},
  11586. isSelect: false,
  11587. chapInfo: [],
  11588. chapInfoList: [],
  11589. taskCount: 0,
  11590. imgList: [],
  11591. noImgList: [],
  11592. pzList: [],
  11593. PlTextList: [
  11594. "Excellent!",
  11595. "nice!",
  11596. "很有创意!",
  11597. "还不错哦~",
  11598. "继续努力哦~",
  11599. ],
  11600. isClickNav: "",
  11601. navId: "",
  11602. playerOptions: {
  11603. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11604. autoplay: false, //如果true,浏览器准备好时开始回放。
  11605. muted: false, // 默认情况下将会消除任何音频。
  11606. loop: false, // 导致视频一结束就重新开始。
  11607. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11608. language: "zh-CN",
  11609. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11610. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11611. sources: [
  11612. {
  11613. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11614. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11615. },
  11616. ],
  11617. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11618. // poster: dataRes.imgUrl, //你的封面地址
  11619. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11620. controlBar: {
  11621. timeDivider: true, //当前时间和持续时间的分隔符
  11622. durationDisplay: true, //显示持续时间
  11623. remainingTimeDisplay: false, //是否显示剩余时间功能
  11624. fullscreenToggle: true, //全屏按钮
  11625. },
  11626. },
  11627. playerOptions1: {
  11628. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11629. autoplay: false, //如果true,浏览器准备好时开始回放。
  11630. muted: false, // 默认情况下将会消除任何音频。
  11631. loop: false, // 导致视频一结束就重新开始。
  11632. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11633. language: "zh-CN",
  11634. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11635. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11636. sources: [
  11637. {
  11638. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11639. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11640. },
  11641. ],
  11642. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11643. // poster: dataRes.imgUrl, //你的封面地址
  11644. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11645. controlBar: {
  11646. timeDivider: true, //当前时间和持续时间的分隔符
  11647. durationDisplay: true, //显示持续时间
  11648. remainingTimeDisplay: false, //是否显示剩余时间功能
  11649. fullscreenToggle: true, //全屏按钮
  11650. },
  11651. },
  11652. playerO: {},
  11653. noneBtnImg: false,
  11654. proVisible: false,
  11655. proVisible2: false,
  11656. progress: 0,
  11657. isFinishSize: 0,
  11658. isAllSize: 0,
  11659. questionAnswer: "",
  11660. answerQ: "", //问答标题
  11661. rateJson: [],
  11662. wbCount: 0,
  11663. wordCount: 0,
  11664. mindCount: 0,
  11665. askCount: 0,
  11666. noteCount: 0,
  11667. mindNetWorkCount: 0,
  11668. libraryCount: 0,
  11669. workCount: 0,
  11670. timeCount: 0,
  11671. answerCount: 0,
  11672. trainCount: 0,
  11673. evalCount: 0,
  11674. dialogImageUrl: "",
  11675. pictureDialog: false,
  11676. toolTypeList: [],
  11677. dialogVisible1: false,
  11678. dialogVisible2: false,
  11679. dialogVisible3: false,
  11680. dialogVisible6: false,
  11681. dialogVisible4: false,
  11682. isNoHomeWork: false,
  11683. dialogVisible5: false,
  11684. dialogVisible5Teacher: false,
  11685. dialogVisibleChoice: false,
  11686. dialogVisibleChoiceTeacher: false,
  11687. answerDialogVisible: false,
  11688. juriVisible: false,
  11689. timeDialogVisible: false,
  11690. radio: [],
  11691. isAsk: false,
  11692. askJson: {
  11693. askCount: 1,
  11694. askTitle: "",
  11695. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11696. },
  11697. testJson: {},
  11698. checkJson: [],
  11699. askList: [],
  11700. answerList: [],
  11701. navList: [],
  11702. addPzDialog: false,
  11703. ispzType: 1,
  11704. pzConText: "",
  11705. worksStudent: [],
  11706. worksStudent2: [],
  11707. worksTeacher: [],
  11708. isCloseList: [],
  11709. workStudent: [],
  11710. groupStudent: [],
  11711. groupStudentUid: [],
  11712. noWorksS: [],
  11713. isWorksS: [],
  11714. noWorksStudent: [],
  11715. toolindex: 0,
  11716. groupIndex: 0,
  11717. workTypeB: false,
  11718. workTypeC: false,
  11719. isAnswer: false,
  11720. timer: null,
  11721. opertimer: null,
  11722. showType: 0,
  11723. fileType: 0,
  11724. showPDF: false,
  11725. noteName: "",
  11726. evaJuri: [],
  11727. evalua: "",
  11728. eTitle: "",
  11729. eName: "",
  11730. eJson: {},
  11731. fid: "", //一级
  11732. sid: "", //二级
  11733. tid: "", //二级
  11734. typeMode: 1,
  11735. eJSONNum: 0,
  11736. Etype: 1,
  11737. data: {
  11738. meta: {
  11739. name: "example",
  11740. author: "dd@163.com",
  11741. version: "0.2",
  11742. },
  11743. format: "node_array",
  11744. data: [{ id: "root", isroot: true, topic: "" }],
  11745. },
  11746. fullDialogVisible: false,
  11747. fulltype: "",
  11748. fullUrl: "",
  11749. commentIndexJson: {},
  11750. Stbodywidth: 0,
  11751. pzType: 1,
  11752. wScore: 0,
  11753. scoreDetail: "",
  11754. videoStart: false,
  11755. recorder: null,
  11756. groupJson: {},
  11757. groupJson2: {},
  11758. dialogVisibleGroup: false,
  11759. dialogVisibleGroup2: false,
  11760. updateGroupArray: [],
  11761. updateGroupUser: {},
  11762. deleteGroupUser: [],
  11763. deleteGroupArray: {},
  11764. checkChair: "",
  11765. checkDeleteGroup: [],
  11766. inviteCode: "",
  11767. courseGroupStudent: [],
  11768. courseGroupStudentUid: [],
  11769. courseGroup: {},
  11770. isGroup: false,
  11771. toolIndex: null,
  11772. tool: {},
  11773. isWorkTool: [
  11774. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11775. ], //, 40
  11776. videoJson: {},
  11777. toolType: 1,
  11778. checktoolArray: [],
  11779. vChapterData: [],
  11780. isUpdateToolDetail: false,
  11781. updateToolDetailInner: "",
  11782. plIndex: "",
  11783. worksSName2: "",
  11784. worksSid: "",
  11785. };
  11786. },
  11787. methods: {
  11788. jump() {
  11789. window.parent.postMessage({ tools: "43" }, "*");
  11790. },
  11791. getUpdateMore(f, checkboxList, searchTN, index) {
  11792. this.dialogVisibleMember = f;
  11793. this.checkboxList = checkboxList;
  11794. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  11795. this.plIndex = index;
  11796. },
  11797. setPlname(a) {
  11798. if (this.plworkFile.length) {
  11799. this.plworkFile[this.plIndex].username = a;
  11800. } else {
  11801. this.worksSName = a;
  11802. }
  11803. this.dialogVisibleMember = false;
  11804. },
  11805. previewImg(url) {
  11806. this.$hevueImgPreview(url);
  11807. },
  11808. change(val) {
  11809. console.log(val);
  11810. },
  11811. goTo(path) {
  11812. this.$router.push(path);
  11813. },
  11814. handlePictureCardPreview(url) {
  11815. this.dialogImageUrl = url;
  11816. this.pictureDialog = true;
  11817. },
  11818. clean(type) {
  11819. if (type == 1) {
  11820. this.studyJuri[0].cover.splice(0, 1);
  11821. } else if (type == 2) {
  11822. this.studyJuri[0].upVedio.splice(0, 1);
  11823. } else {
  11824. this.studyJuri[0].upFile.splice(0, 1);
  11825. }
  11826. },
  11827. clean2(index) {
  11828. this.plworkFile.splice(index, 1);
  11829. },
  11830. handleClose(done) {
  11831. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  11832. this.videoDetail.sources[0].src = "";
  11833. }
  11834. this.commentIndexJson = {};
  11835. done();
  11836. },
  11837. fullTools() {
  11838. this.full = !this.full;
  11839. },
  11840. imgChange(file, fileList, type) {
  11841. if (type == 1) {
  11842. var _tmp = this.studyJuri[0].cover;
  11843. } else if (type == 2) {
  11844. var _tmp = this.studyJuri[0].upVedio;
  11845. } else {
  11846. var _tmp = this.studyJuri[0].upFile;
  11847. }
  11848. this.noneBtnImg = _tmp.length >= 1;
  11849. },
  11850. setContent(bool) {
  11851. this.contentDialog = bool;
  11852. if (bool && this.mlDialog) {
  11853. document.querySelector(".workd_media").style.height = "650px";
  11854. } else {
  11855. document.querySelector(".workd_media").style.height = "auto";
  11856. }
  11857. },
  11858. setContent2(bool) {
  11859. this.mlDialog = bool;
  11860. if (bool && this.contentDialog) {
  11861. document.querySelector(".workd_media").style.height = "650px";
  11862. } else {
  11863. document.querySelector(".workd_media").style.height = "auto";
  11864. }
  11865. },
  11866. addImg(e) {
  11867. var el = e.currentTarget;
  11868. // this.$message.success('触发上传')
  11869. el.getElementsByTagName("input")[0].click();
  11870. e.target.value = "";
  11871. },
  11872. addSelectAnswer() {
  11873. let params = [
  11874. {
  11875. uid: this.userid,
  11876. cid: this.id,
  11877. stage: this.courseType,
  11878. task: this.taskCount,
  11879. tool: this.toolindex,
  11880. content: this.selectAnswer.answer,
  11881. type: 7,
  11882. },
  11883. ];
  11884. this.ajax
  11885. .post(this.$store.state.api + "addCourseWorks", params)
  11886. .then((res) => {
  11887. this.$message({
  11888. message: "提交成功",
  11889. type: "success",
  11890. });
  11891. this.dialogVisibleSelect = false;
  11892. // this.selectAnswer = {};
  11893. this.selectSWorks();
  11894. this.selectStudent();
  11895. })
  11896. .catch((err) => {
  11897. this.$message.error("提交失败");
  11898. console.error(err);
  11899. });
  11900. },
  11901. addSelectAnswerTeacher() {
  11902. let params = [
  11903. {
  11904. uid: this.sStudent.userid,
  11905. cid: this.id,
  11906. stage: this.courseType,
  11907. task: this.taskCount,
  11908. tool: this.toolindex,
  11909. content: this.selectAnswer.answer,
  11910. type: 7,
  11911. },
  11912. ];
  11913. this.ajax
  11914. .post(this.$store.state.api + "addCourseWorks", params)
  11915. .then((res) => {
  11916. this.$message({
  11917. message: "提交成功",
  11918. type: "success",
  11919. });
  11920. this.dialogVisibleSelectTeacher = false;
  11921. // this.selectAnswer = {};
  11922. this.selectSWorks();
  11923. this.selectStudent();
  11924. })
  11925. .catch((err) => {
  11926. this.$message.error("提交失败");
  11927. console.error(err);
  11928. });
  11929. },
  11930. addSenWorks() {
  11931. for (var i = 0; i < this.sentenceList.length; i++) {
  11932. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  11933. if (
  11934. this.sentenceList[i].chooseSenList[j] == undefined ||
  11935. this.sentenceList[i].chooseSenList[j] == ""
  11936. ) {
  11937. this.$message.error("请将答案填写完整!");
  11938. return;
  11939. }
  11940. }
  11941. }
  11942. let params = [
  11943. {
  11944. uid: this.userid,
  11945. cid: this.id,
  11946. stage: this.courseType,
  11947. task: this.taskCount,
  11948. tool: this.toolindex,
  11949. content: JSON.stringify(this.sentenceList),
  11950. type: 9,
  11951. },
  11952. ];
  11953. this.ajax
  11954. .post(this.$store.state.api + "addCourseWorks", params)
  11955. .then((res) => {
  11956. this.$message({
  11957. message: "提交成功",
  11958. type: "success",
  11959. });
  11960. this.dialogVisibleSentence = false;
  11961. // this.selectAnswer = {};
  11962. this.selectSWorks();
  11963. this.selectStudent();
  11964. })
  11965. .catch((err) => {
  11966. this.$message.error("提交失败");
  11967. console.error(err);
  11968. });
  11969. },
  11970. addSenWorksTeacher() {
  11971. for (var i = 0; i < this.sentenceList.length; i++) {
  11972. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  11973. if (
  11974. this.sentenceList[i].chooseSenList[j] == undefined ||
  11975. this.sentenceList[i].chooseSenList[j] == ""
  11976. ) {
  11977. this.$message.error("请将答案填写完整!");
  11978. return;
  11979. }
  11980. }
  11981. }
  11982. let params = [
  11983. {
  11984. uid: this.sStudent.userid,
  11985. cid: this.id,
  11986. stage: this.courseType,
  11987. task: this.taskCount,
  11988. tool: this.toolindex,
  11989. content: JSON.stringify(this.sentenceList),
  11990. type: 9,
  11991. },
  11992. ];
  11993. this.ajax
  11994. .post(this.$store.state.api + "addCourseWorks", params)
  11995. .then((res) => {
  11996. this.$message({
  11997. message: "提交成功",
  11998. type: "success",
  11999. });
  12000. this.dialogVisibleSentenceTeacher = false;
  12001. // this.selectAnswer = {};
  12002. this.selectSWorks();
  12003. this.selectStudent();
  12004. })
  12005. .catch((err) => {
  12006. this.$message.error("提交失败");
  12007. console.error(err);
  12008. });
  12009. },
  12010. addTableWorks() {
  12011. let params = [
  12012. {
  12013. uid: this.userid,
  12014. cid: this.id,
  12015. stage: this.courseType,
  12016. task: this.taskCount,
  12017. tool: this.toolindex,
  12018. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12019. type: 10,
  12020. },
  12021. ];
  12022. this.ajax
  12023. .post(this.$store.state.api + "addCourseWorks", params)
  12024. .then((res) => {
  12025. this.$message({
  12026. message: "提交成功",
  12027. type: "success",
  12028. });
  12029. this.dialogVisibleTable = false;
  12030. // this.selectAnswer = {};
  12031. this.selectSWorks();
  12032. this.selectStudent();
  12033. })
  12034. .catch((err) => {
  12035. this.$message.error("提交失败");
  12036. console.error(err);
  12037. });
  12038. },
  12039. addTableWorksTeacher() {
  12040. let params = [
  12041. {
  12042. uid: this.sStudent.userid,
  12043. cid: this.id,
  12044. stage: this.courseType,
  12045. task: this.taskCount,
  12046. tool: this.toolindex,
  12047. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12048. type: 10,
  12049. },
  12050. ];
  12051. this.ajax
  12052. .post(this.$store.state.api + "addCourseWorks", params)
  12053. .then((res) => {
  12054. this.$message({
  12055. message: "提交成功",
  12056. type: "success",
  12057. });
  12058. this.dialogVisibleTableTeacher = false;
  12059. // this.selectAnswer = {};
  12060. this.selectSWorks();
  12061. this.selectStudent();
  12062. })
  12063. .catch((err) => {
  12064. this.$message.error("提交失败");
  12065. console.error(err);
  12066. });
  12067. },
  12068. addWordWorks() {
  12069. let params = [
  12070. {
  12071. uid: this.userid,
  12072. cid: this.id,
  12073. stage: this.courseType,
  12074. task: this.taskCount,
  12075. tool: this.toolindex,
  12076. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12077. type: 13,
  12078. atool: 52,
  12079. },
  12080. ];
  12081. console.log(params);
  12082. this.ajax
  12083. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12084. .then((res) => {
  12085. this.$message({
  12086. message: "提交成功",
  12087. type: "success",
  12088. });
  12089. this.dialogVisibleWord = false;
  12090. // this.selectAnswer = {};
  12091. this.selectSWorks();
  12092. this.selectStudent();
  12093. })
  12094. .catch((err) => {
  12095. this.$message.error("提交失败");
  12096. console.error(err);
  12097. });
  12098. },
  12099. addWordWorksTeacher() {
  12100. let params = [
  12101. {
  12102. uid: this.sStudent.userid,
  12103. cid: this.id,
  12104. stage: this.courseType,
  12105. task: this.taskCount,
  12106. tool: this.toolindex,
  12107. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12108. type: 13,
  12109. atool: 52,
  12110. },
  12111. ];
  12112. console.log(params);
  12113. this.ajax
  12114. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12115. .then((res) => {
  12116. this.$message({
  12117. message: "提交成功",
  12118. type: "success",
  12119. });
  12120. this.dialogVisibleWordTeacher = false;
  12121. // this.selectAnswer = {};
  12122. this.selectSWorks();
  12123. this.selectStudent();
  12124. })
  12125. .catch((err) => {
  12126. this.$message.error("提交失败");
  12127. console.error(err);
  12128. });
  12129. },
  12130. addCourseWorks(i) {
  12131. var typesql;
  12132. if (this.fileType === 0) {
  12133. typesql = 1;
  12134. } else if (this.fileType === 1) {
  12135. typesql = 4;
  12136. } else if (this.fileType === 2) {
  12137. typesql = 5;
  12138. } else if (this.fileType === 3) {
  12139. typesql = 12;
  12140. }
  12141. if (!this.studyJuri[0].cover[0].url) {
  12142. this.$message.error("请上传文件");
  12143. return;
  12144. }
  12145. let params = [
  12146. {
  12147. uid: this.userid,
  12148. cid: this.id,
  12149. stage: this.courseType,
  12150. task: i,
  12151. tool: this.toolindex,
  12152. content: this.studyJuri[0].cover[0].url,
  12153. type: typesql,
  12154. },
  12155. ];
  12156. this.ajax
  12157. .post(this.$store.state.api + "addCourseWorksR", params)
  12158. .then((res) => {
  12159. this.$message({
  12160. message: "提交成功",
  12161. type: "success",
  12162. });
  12163. this.studyJuri[0].cover = [];
  12164. this.dialogVisible = false;
  12165. this.getCourseDetail();
  12166. })
  12167. .catch((err) => {
  12168. this.$message.error("提交失败");
  12169. console.error(err);
  12170. });
  12171. },
  12172. addCourseWorksPl(i) {
  12173. let _files = this.plworkFile;
  12174. var c = 1;
  12175. for (var k = 0; k < _files.length; k++) {
  12176. if (!_files[k].username) {
  12177. c = 2;
  12178. }
  12179. }
  12180. if (c == 2) {
  12181. this.$message.error("请填写学生姓名");
  12182. return;
  12183. }
  12184. let params = [
  12185. {
  12186. ateacher: this.userid,
  12187. cid: this.id,
  12188. stage: this.courseType,
  12189. task: i,
  12190. tool: this.toolindex,
  12191. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12192. },
  12193. ];
  12194. this.ajax
  12195. .post(this.$store.state.api + "addCourseWorksPl", params)
  12196. .then((res) => {
  12197. this.$message({
  12198. message: "提交成功",
  12199. type: "success",
  12200. });
  12201. this.plworkFile = [];
  12202. this.dialogVisiblePl = false;
  12203. this.getCourseDetail();
  12204. })
  12205. .catch((err) => {
  12206. this.$message.error("提交失败");
  12207. console.error(err);
  12208. });
  12209. },
  12210. addCourseWorks2(i) {
  12211. var typesql;
  12212. if (this.fileType === 0) {
  12213. typesql = 0;
  12214. } else if (this.fileType === 1) {
  12215. typesql = 1;
  12216. } else if (this.fileType === 2) {
  12217. typesql = 3;
  12218. } else if (this.fileType === 3) {
  12219. typesql = 12;
  12220. }
  12221. if (!this.studyJuri[0].cover[0].url) {
  12222. this.$message.error("请上传文件");
  12223. return;
  12224. }
  12225. let params = [
  12226. {
  12227. uid: this.userid,
  12228. cid: this.id,
  12229. stage: this.courseType,
  12230. task: i,
  12231. tool: this.toolindex,
  12232. content: JSON.stringify({
  12233. type: typesql,
  12234. groupIndex: this.groupIndex,
  12235. url: this.studyJuri[0].cover[0].url,
  12236. }).replaceAll(/%/g, "%25"),
  12237. type: 11,
  12238. atool: 49,
  12239. text: "",
  12240. },
  12241. ];
  12242. this.ajax
  12243. .post(this.$store.state.api + "addCourseWorks5", params)
  12244. .then((res) => {
  12245. this.$message({
  12246. message: "提交成功",
  12247. type: "success",
  12248. });
  12249. this.studyJuri[0].cover = [];
  12250. this.dialogVisibleGroupWork = false;
  12251. this.getCourseDetail();
  12252. })
  12253. .catch((err) => {
  12254. this.$message.error("提交失败");
  12255. console.error(err);
  12256. });
  12257. },
  12258. addCourseWorksGong(i, data, tool) {
  12259. let params = [
  12260. {
  12261. uid: this.userid,
  12262. cid: this.id,
  12263. stage: this.courseType,
  12264. task: this.taskCount,
  12265. tool: i,
  12266. content: data,
  12267. type: 12,
  12268. atool: tool,
  12269. text: "",
  12270. },
  12271. ];
  12272. this.ajax
  12273. .post(this.$store.state.api + "addCourseWorks5", params)
  12274. .then((res) => {
  12275. this.$message({
  12276. message: "提交成功",
  12277. type: "success",
  12278. });
  12279. this.studyJuri[0].cover = [];
  12280. this.selectSWorks();
  12281. this.selectStudent();
  12282. })
  12283. .catch((err) => {
  12284. this.$message.error("提交失败");
  12285. console.error(err);
  12286. });
  12287. },
  12288. addCourseWorksGongTeacher(i, data, tool) {
  12289. let params = [
  12290. {
  12291. uid: this.sStudent.userid,
  12292. cid: this.id,
  12293. stage: this.courseType,
  12294. task: this.taskCount,
  12295. tool: i,
  12296. content: data,
  12297. type: 12,
  12298. atool: tool,
  12299. text: "",
  12300. },
  12301. ];
  12302. this.ajax
  12303. .post(this.$store.state.api + "addCourseWorks5", params)
  12304. .then((res) => {
  12305. this.$message({
  12306. message: "提交成功",
  12307. type: "success",
  12308. });
  12309. this.studyJuri[0].cover = [];
  12310. this.dialogVisibleWorks = false;
  12311. this.selectSWorks();
  12312. this.selectStudent();
  12313. })
  12314. .catch((err) => {
  12315. this.$message.error("提交失败");
  12316. console.error(err);
  12317. });
  12318. },
  12319. addCourseWorksGongPl(i, data, tool, type) {
  12320. let params = [
  12321. {
  12322. uid: this.sStudent.userid,
  12323. cid: this.id,
  12324. stage: this.courseType,
  12325. task: this.taskCount,
  12326. tool: i,
  12327. content: data,
  12328. type: type,
  12329. atool: tool,
  12330. text: "",
  12331. },
  12332. ];
  12333. this.ajax
  12334. .post(this.$store.state.api + "addCourseWorks5", params)
  12335. .then((res) => {
  12336. this.$message({
  12337. message: "提交成功",
  12338. type: "success",
  12339. });
  12340. this.studyJuri[0].cover = [];
  12341. this.dialogVisibleWorks = false;
  12342. this.selectSWorks();
  12343. this.selectStudent();
  12344. })
  12345. .catch((err) => {
  12346. this.$message.error("提交失败");
  12347. console.error(err);
  12348. });
  12349. },
  12350. addCourseWorksTeacher(i) {
  12351. var typesql;
  12352. if (this.sTool == 32) {
  12353. this.addCourseWorksGongTeacher(
  12354. this.toolindex,
  12355. this.studyJuri[0].cover[0].url,
  12356. this.sTool
  12357. );
  12358. return;
  12359. }
  12360. if (this.fileType === 0) {
  12361. typesql = 1;
  12362. } else if (this.fileType === 1) {
  12363. typesql = 4;
  12364. } else if (this.fileType === 2) {
  12365. typesql = 5;
  12366. } else if (this.fileType === 3) {
  12367. typesql = 12;
  12368. }
  12369. if (this.sTool == 50) {
  12370. this.addCourseWorksGongPl(
  12371. this.toolindex,
  12372. this.studyJuri[0].cover[0].url,
  12373. this.sTool,
  12374. typesql
  12375. );
  12376. return;
  12377. }
  12378. if (!this.studyJuri[0].cover[0].url) {
  12379. this.$message.error("请上传文件");
  12380. return;
  12381. }
  12382. let params = [
  12383. {
  12384. uid: this.sStudent.userid,
  12385. cid: this.id,
  12386. stage: this.courseType,
  12387. task: i,
  12388. tool: this.toolindex,
  12389. content: this.studyJuri[0].cover[0].url,
  12390. type: typesql,
  12391. ateacher: this.userid,
  12392. },
  12393. ];
  12394. this.ajax
  12395. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12396. .then((res) => {
  12397. this.$message({
  12398. message: "提交成功",
  12399. type: "success",
  12400. });
  12401. this.studyJuri[0].cover = [];
  12402. this.dialogVisibleWorks = false;
  12403. this.getCourseDetail();
  12404. })
  12405. .catch((err) => {
  12406. this.$message.error("提交失败");
  12407. console.error(err);
  12408. });
  12409. },
  12410. selectUploadStudent(type) {
  12411. const loading = this.$loading.service({
  12412. background: "rgba(255, 255, 255, 0.7)",
  12413. target: document.body,
  12414. });
  12415. let params = {
  12416. cid: this.uploadCid,
  12417. oid: this.oid,
  12418. cn: "",
  12419. };
  12420. this.ajax
  12421. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12422. .then((res) => {
  12423. loading.close();
  12424. var studentK = [];
  12425. if (this.isWorksS[this.toolindex].length > 0) {
  12426. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12427. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12428. }
  12429. studentK = studentK.join(",");
  12430. }
  12431. this.uploadStudentJuri = res.data[0].filter((el) => {
  12432. return studentK.indexOf(el.userid) == -1;
  12433. });
  12434. if (this.worksSName && this.worksSid) {
  12435. this.uploadStudentJuri.push({
  12436. userid: this.worksSid,
  12437. name: this.worksSName,
  12438. });
  12439. }
  12440. if (type == 1) {
  12441. this.plworkFile = [];
  12442. this.dialogVisibleSname = true;
  12443. } else if (type == 2) {
  12444. this.dialogVisiblePl = true;
  12445. }
  12446. })
  12447. .catch((err) => {
  12448. loading.close();
  12449. console.error(err);
  12450. });
  12451. },
  12452. arrayToArray(arrayo, arrayt) {
  12453. let array1 = arrayo;
  12454. let array2 = arrayt;
  12455. let commonElements = [];
  12456. for (let i = 0; i < array1.length; i++) {
  12457. for (let j = 0; j < array2.length; j++) {
  12458. if (array1[i] === array2[j]) {
  12459. commonElements.push(array1[i]);
  12460. }
  12461. }
  12462. }
  12463. return commonElements;
  12464. },
  12465. selectWorksStudent() {
  12466. let params = {
  12467. oid: this.oid,
  12468. cid: this.courseDetail.juri,
  12469. };
  12470. this.ajax
  12471. .get(this.$store.state.api + "selectWorksStudent", params)
  12472. .then((res) => {
  12473. var a = res.data[0];
  12474. for (var i = 0; i < this.isWorksS.length; i++) {
  12475. this.noWorksS[i] = [];
  12476. var studentK = [];
  12477. if (this.isWorksS[i].length > 0) {
  12478. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12479. studentK.push(this.isWorksS[i][z].uid);
  12480. }
  12481. studentK = studentK.join(",");
  12482. for (var j = 0; j < a.length; j++) {
  12483. // if (studentK.indexOf(a[j].userid) == -1) {
  12484. if (this.tcid) {
  12485. // a[j].classid.indexOf(this.tcid) != -1
  12486. if (
  12487. this.arrayToArray(
  12488. a[j].classid.split(","),
  12489. this.tcid.split(",")
  12490. ).length
  12491. ) {
  12492. this.noWorksS[i].push({
  12493. student: a[j].name,
  12494. userid: a[j].userid,
  12495. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12496. });
  12497. }
  12498. } else {
  12499. this.noWorksS[i].push({
  12500. student: a[j].name,
  12501. userid: a[j].userid,
  12502. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12503. });
  12504. }
  12505. // }
  12506. }
  12507. } else {
  12508. for (var k = 0; k < a.length; k++) {
  12509. if (this.tcid) {
  12510. if (
  12511. this.arrayToArray(
  12512. a[k].classid.split(","),
  12513. this.tcid.split(",")
  12514. ).length
  12515. ) {
  12516. this.noWorksS[i].push({
  12517. student: a[k].name,
  12518. userid: a[k].userid,
  12519. type: "1",
  12520. });
  12521. }
  12522. } else {
  12523. this.noWorksS[i].push({
  12524. student: a[k].name,
  12525. userid: a[k].userid,
  12526. type: "1",
  12527. });
  12528. }
  12529. }
  12530. }
  12531. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  12532. // let jscoreA = parseInt(a.type);
  12533. // let jscoreB = parseInt(b.type);
  12534. // return jscoreB - jscoreA;
  12535. // });
  12536. }
  12537. this.$forceUpdate();
  12538. if (
  12539. Object.keys(this.commentDetail).length &&
  12540. Object.keys(this.commentIndexJson).length &&
  12541. !this.dialogVisibleScore
  12542. ) {
  12543. let a = 1;
  12544. let c = this.commentIndexJson;
  12545. console.log(c);
  12546. if (
  12547. this.commentIndexJson.gindex ||
  12548. this.commentIndexJson.gindex === 0
  12549. ) {
  12550. for (
  12551. var i = 0;
  12552. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12553. i++
  12554. ) {
  12555. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12556. groupA: for (var k = 0; k < _el.length; k++) {
  12557. let el = _el[k];
  12558. if (el.wid == this.commentDetail.wid) {
  12559. a = 2;
  12560. this.commentOther(
  12561. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12562. this.commentIndexJson.toolIndex,
  12563. k,
  12564. this.commentIndexJson.gindex
  12565. );
  12566. break groupA;
  12567. }
  12568. }
  12569. }
  12570. if (a === 1) {
  12571. this.commentDetail = [];
  12572. this.commentIndexJson = {};
  12573. this.commentDialogVisible = false;
  12574. this.$message("此作业已被删除");
  12575. }
  12576. } else {
  12577. if (this.isGroup && this.commentIndexJson.gid) {
  12578. groupA: for (
  12579. var i = 0;
  12580. i < this.courseGroup.group.length;
  12581. i++
  12582. ) {
  12583. let _group = this.courseGroup.group[i];
  12584. if (_group.id == this.commentIndexJson.gid) {
  12585. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12586. for (var k = 0; k < _el2.length; k++) {
  12587. let el2 = _el2[k];
  12588. if (el2.wid == this.commentDetail.wid) {
  12589. a = 2;
  12590. this.commentOther(
  12591. _el2[k],
  12592. this.commentIndexJson.toolIndex,
  12593. k,
  12594. null,
  12595. this.commentIndexJson.gid
  12596. );
  12597. break groupA;
  12598. }
  12599. }
  12600. }
  12601. }
  12602. }
  12603. if (a == 1) {
  12604. for (
  12605. var i = 0;
  12606. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12607. i++
  12608. ) {
  12609. let el =
  12610. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12611. if (el.wid == this.commentDetail.wid) {
  12612. a = 2;
  12613. this.commentOther(
  12614. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12615. this.commentIndexJson.toolIndex,
  12616. i
  12617. );
  12618. break;
  12619. }
  12620. }
  12621. }
  12622. if (a === 1) {
  12623. this.commentDetail = [];
  12624. this.commentIndexJson = {};
  12625. this.commentDialogVisible = false;
  12626. this.$message("此作业已被删除");
  12627. }
  12628. }
  12629. }
  12630. })
  12631. .catch((err) => {
  12632. console.error(err);
  12633. });
  12634. },
  12635. selectStudent() {},
  12636. openVideo(w) {
  12637. this.videoDetail = {};
  12638. this.playerOptions1.sources[0].src = w.works;
  12639. this.videoDetail = this.playerOptions1;
  12640. this.videoVisible = true;
  12641. },
  12642. isLikes(wid, uid, t, c, isLikes) {
  12643. if (isLikes == false) {
  12644. let params = [
  12645. {
  12646. wid: wid,
  12647. lid: uid,
  12648. t: t,
  12649. c: c,
  12650. },
  12651. ];
  12652. this.ajax
  12653. .post(this.$store.state.api + "insertComment", params)
  12654. .then((res) => {
  12655. this.$message({
  12656. message: "点赞成功",
  12657. type: "success",
  12658. });
  12659. this.selectSWorks();
  12660. this.selectStudent();
  12661. })
  12662. .catch((err) => {
  12663. this.$message.error("点赞失败");
  12664. console.error(err);
  12665. });
  12666. } else {
  12667. let params = {
  12668. wid: wid,
  12669. lid: uid,
  12670. type: t,
  12671. };
  12672. this.ajax
  12673. .get(this.$store.state.api + "deleteComment", params)
  12674. .then((res) => {
  12675. this.$message({
  12676. message: "取消点赞成功",
  12677. type: "success",
  12678. });
  12679. this.selectSWorks();
  12680. this.selectStudent();
  12681. })
  12682. .catch((err) => {
  12683. console.error(err);
  12684. });
  12685. }
  12686. },
  12687. deleteComment(wid) {
  12688. this.$confirm("确定删除此评论吗?", "提示", {
  12689. confirmButtonText: "确定",
  12690. cancelButtonText: "取消",
  12691. type: "warning",
  12692. })
  12693. .then(() => {
  12694. let params = {
  12695. id: wid,
  12696. };
  12697. this.ajax
  12698. .get(this.$store.state.api + "deleteComment2", params)
  12699. .then((res) => {
  12700. this.$message({
  12701. message: "删除评论成功",
  12702. type: "success",
  12703. });
  12704. this.selectSWorks();
  12705. this.selectStudent();
  12706. })
  12707. .catch((err) => {
  12708. console.error(err);
  12709. });
  12710. })
  12711. .catch(() => {});
  12712. },
  12713. commentOther(w, toolIndex, wIndex, gindex, gid) {
  12714. this.commentIndexJson = {
  12715. toolIndex: toolIndex,
  12716. wIndex: wIndex,
  12717. gindex: gindex,
  12718. gid: gid,
  12719. };
  12720. this.commentDetail = [];
  12721. this.commentDialogVisible = true;
  12722. this.commentDetail = w;
  12723. if (w.works && w.type == 1) {
  12724. this.pptImgUrl = "";
  12725. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12726. if (
  12727. a.indexOf(
  12728. w.works
  12729. .split(".")
  12730. [w.works.split(".").length - 1].toLocaleUpperCase()
  12731. ) != -1
  12732. ) {
  12733. this.pptImgUrl =
  12734. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12735. this.showPDF = false;
  12736. } else if (
  12737. w.works
  12738. .split(".")
  12739. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12740. ) {
  12741. this.pptImgUrl = w.works;
  12742. this.showPDF = true;
  12743. }
  12744. } else if (w.works && w.type == 3) {
  12745. this.videoDetail = {};
  12746. this.playerOptions1.sources[0].src = w.works;
  12747. this.videoDetail = this.playerOptions1;
  12748. // this.videoVisible = true;
  12749. } else if (w.works && w.type == 4) {
  12750. this.eScore = JSON.parse(w.works);
  12751. this.rateJson =
  12752. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12753. this.taskCount
  12754. ].toolChoose[toolIndex].rateJson;
  12755. } else if (w.works && w.type == 10) {
  12756. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  12757. } else if (w.works && w.type == 13) {
  12758. this.wordJson =
  12759. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12760. this.taskCount
  12761. ].toolChoose[toolIndex].wordJson;
  12762. }
  12763. },
  12764. openScore(w) {
  12765. this.wScore = 0;
  12766. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  12767. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  12768. this.commentDetail = [];
  12769. this.dialogVisibleScore = true;
  12770. this.commentDetail = w;
  12771. if (w.works && w.type == 1) {
  12772. this.pptImgUrl = "";
  12773. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12774. if (
  12775. a.indexOf(
  12776. w.works
  12777. .split(".")
  12778. [w.works.split(".").length - 1].toLocaleUpperCase()
  12779. ) != -1
  12780. ) {
  12781. this.pptImgUrl =
  12782. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12783. this.showPDF = false;
  12784. } else if (
  12785. w.works
  12786. .split(".")
  12787. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12788. ) {
  12789. this.pptImgUrl = w.works;
  12790. this.showPDF = true;
  12791. }
  12792. } else if (w.works && w.type == 3) {
  12793. this.videoDetail = {};
  12794. this.playerOptions1.sources[0].src = w.works;
  12795. this.videoDetail = this.playerOptions1;
  12796. }
  12797. },
  12798. addComment(wid, uid, t) {
  12799. if (this.commentText == "") {
  12800. this.$message.error("请输入评论");
  12801. return;
  12802. }
  12803. let params2 = [
  12804. {
  12805. wid: wid,
  12806. lid: uid,
  12807. t: t,
  12808. },
  12809. ];
  12810. this.ajax
  12811. .post(this.$store.state.api + "getComment", params2)
  12812. .then((res) => {
  12813. if (res.data[0].length > 0) {
  12814. this.$message.error("一个作业只能评论一条");
  12815. } else {
  12816. let params = [
  12817. {
  12818. wid: wid,
  12819. lid: uid,
  12820. t: t,
  12821. c: this.commentText,
  12822. },
  12823. ];
  12824. this.ajax
  12825. .post(this.$store.state.api + "insertComment", params)
  12826. .then((res) => {
  12827. this.$message({
  12828. message: "评论成功",
  12829. type: "success",
  12830. });
  12831. this.commentText = "";
  12832. this.selectSWorks();
  12833. this.selectStudent();
  12834. })
  12835. .catch((err) => {
  12836. this.$message.error("评论失败");
  12837. console.error(err);
  12838. });
  12839. }
  12840. })
  12841. .catch((err) => {
  12842. // this.$message.error("评论失败");
  12843. console.error(err);
  12844. });
  12845. },
  12846. scoreWork(wid) {
  12847. if (this.wScore == 0) {
  12848. this.$message.error("请评分");
  12849. return;
  12850. }
  12851. let params = [
  12852. {
  12853. wid: wid,
  12854. score: JSON.stringify({
  12855. wScore: this.wScore,
  12856. detail: this.scoreDetail,
  12857. }),
  12858. },
  12859. ];
  12860. this.ajax
  12861. .post(this.$store.state.api + "scoreWork", params)
  12862. .then((res) => {
  12863. this.$message({
  12864. message: "评分成功",
  12865. type: "success",
  12866. });
  12867. this.wScore = 0;
  12868. this.scoreDetail = "";
  12869. this.dialogVisibleScore = false;
  12870. this.selectSWorks();
  12871. this.selectStudent();
  12872. })
  12873. .catch((err) => {
  12874. this.$message.error("评分失败");
  12875. console.error(err);
  12876. });
  12877. },
  12878. openXz(w, i) {
  12879. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  12880. .taskJson[this.taskCount].toolChoose[i].selectJson
  12881. ? JSON.parse(
  12882. JSON.stringify(
  12883. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12884. this.taskCount
  12885. ].toolChoose[i].selectJson
  12886. )
  12887. )
  12888. : { url: "", select: [], answer: [] };
  12889. var a = w.works.split(",");
  12890. for (var k = 0; k < a.length; k++) {
  12891. a[k] = parseInt(a[k]);
  12892. }
  12893. this.selectAnswer = { answer: a, stu: w.sName };
  12894. this.isSelect = true;
  12895. this.dialogVisibleSelect = true;
  12896. },
  12897. openSen(w, i) {
  12898. this.sentenceList1 = JSON.parse(w.works);
  12899. this.sentenceList1.stuName = w.sName;
  12900. this.dialogVisibleSentence1 = true;
  12901. },
  12902. openPj(w, toolindex) {
  12903. this.isStar = true;
  12904. this.eScore = JSON.parse(w);
  12905. this.rateJson =
  12906. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12907. this.taskCount
  12908. ].toolChoose[toolindex].rateJson;
  12909. this.studentEvalDialogVisible = true;
  12910. },
  12911. deleteWorks(id) {
  12912. this.$confirm("确定删除此作业吗?", "提示", {
  12913. confirmButtonText: "确定",
  12914. cancelButtonText: "取消",
  12915. type: "warning",
  12916. })
  12917. .then(() => {
  12918. let params = [
  12919. {
  12920. id: id,
  12921. },
  12922. ];
  12923. this.ajax
  12924. .post(this.$store.state.api + "deleteCourseWork", params)
  12925. .then((res) => {
  12926. this.$message({
  12927. message: "删除成功",
  12928. type: "success",
  12929. });
  12930. this.selectStudent();
  12931. this.selectSWorks();
  12932. this.selectSLook();
  12933. })
  12934. .catch((err) => {
  12935. this.$message.error("网络异常");
  12936. console.error(err);
  12937. });
  12938. })
  12939. .catch(() => {});
  12940. },
  12941. selectSWorks(gindex) {
  12942. //教师查看全部作业
  12943. let params = {
  12944. cid: this.id,
  12945. s: this.courseType,
  12946. t: this.taskCount,
  12947. };
  12948. this.ajax
  12949. .get(this.$store.state.api + "selectSWorks", params)
  12950. .then((res) => {
  12951. var a =
  12952. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12953. this.taskCount
  12954. ].toolChoose;
  12955. var b = res.data[0];
  12956. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12957. var y = [
  12958. "AVI",
  12959. "NAVI",
  12960. "MPEG",
  12961. "ASF",
  12962. "MOV",
  12963. "WMV",
  12964. "3GP",
  12965. "RM",
  12966. "RMVB",
  12967. "FLV",
  12968. "F4V",
  12969. "H.264",
  12970. "H.265",
  12971. "REAL VIDEO",
  12972. "MKV",
  12973. "WebM",
  12974. "HDDVD",
  12975. "MP4",
  12976. "MPG",
  12977. "M4V",
  12978. "MGV",
  12979. "OGV",
  12980. "QTM",
  12981. "STR",
  12982. "AMC",
  12983. "DVX",
  12984. "EVO",
  12985. "DAT",
  12986. "OGG",
  12987. "OGM",
  12988. ];
  12989. var d = res.data[1];
  12990. var e = res.data[2];
  12991. var f = res.data[3];
  12992. for (var i = 0; i < a.length; i++) {
  12993. this.worksStudent[i] = [];
  12994. this.worksTeacher[i] = [];
  12995. this.worksStudent2[i] = [];
  12996. if (
  12997. !this.isCloseList[i] ||
  12998. this.isCloseList[i].isClose == undefined
  12999. ) {
  13000. this.isCloseList[i] = { isClose: 0 };
  13001. }
  13002. this.groupStudent[i] = [];
  13003. this.groupStudentUid[i] = [];
  13004. this.isWorksS[i] = [];
  13005. this.checkJson[i] = [];
  13006. if (a[i].tool[0] == 49) {
  13007. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13008. this.groupStudent[i][gA] = [];
  13009. this.groupStudentUid[i][gA] = [];
  13010. this.worksStudent[i][gA] = [];
  13011. this.isCloseList[i][gA] = [];
  13012. for (var g = 0; g < f.length; g++) {
  13013. if (
  13014. f[g].ttype == 2 &&
  13015. this.tcid &&
  13016. this.arrayToArray(
  13017. f[g].classid.split(","),
  13018. this.tcid.split(",")
  13019. ).length == 0
  13020. ) {
  13021. continue;
  13022. }
  13023. if (gA == f[g].group && f[g].tool == i) {
  13024. this.groupStudent[i][gA].push(f[g]);
  13025. this.groupStudentUid[i][gA].push(f[g].userid);
  13026. }
  13027. }
  13028. }
  13029. this.$forceUpdate();
  13030. }
  13031. for (var j = 0; j < b.length; j++) {
  13032. if (
  13033. b[j].ttype == 2 &&
  13034. this.tcid &&
  13035. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13036. .length == 0
  13037. ) {
  13038. continue;
  13039. }
  13040. var likesCount = 0;
  13041. var commentCount = 0;
  13042. var isLikes = false;
  13043. var commentJson = [];
  13044. var data = b[j];
  13045. if (i == b[j].tool) {
  13046. if (data.type == 2 && a[i].tool[0] == 4) {
  13047. // if(JSON.parse(data.content)[0].anwer){
  13048. var checkL =
  13049. JSON.parse(data.content)[0].anwer instanceof Array
  13050. ? JSON.parse(data.content)[0].anwer
  13051. : JSON.parse(data.content)[0].anwer.split(",");
  13052. for (var z = 0; z < checkL.length; z++) {
  13053. if (!this.checkJson[i][z]) {
  13054. this.checkJson[i].push({
  13055. checkCount: [],
  13056. checkPerson: [],
  13057. rightPerson: [],
  13058. });
  13059. }
  13060. if (!this.checkJson[i][z].checkCount.length) {
  13061. this.checkJson[i][z].checkCount = [];
  13062. let _askItemCount = JSON.parse(data.content)[0].askJson
  13063. .askJson[z].askItem;
  13064. for (var aic = 0; aic < _askItemCount; aic++) {
  13065. this.checkJson[i][z].checkCount.push(0);
  13066. }
  13067. }
  13068. if (checkL[z] instanceof Array) {
  13069. if (
  13070. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13071. checkL[z].sort().join(",")
  13072. ) {
  13073. this.checkJson[i][z].rightPerson.push(data.name);
  13074. }
  13075. for (var q = 0; q < checkL[z].length; q++) {
  13076. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13077. ? this.checkJson[i][z].checkPerson[
  13078. parseInt(checkL[z][q])
  13079. ].push(data.name)
  13080. : (this.checkJson[i][z].checkPerson[
  13081. parseInt(checkL[z][q])
  13082. ] = [data.name]);
  13083. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13084. ? this.checkJson[i][z].checkCount[
  13085. parseInt(checkL[z][q])
  13086. ]++
  13087. : (this.checkJson[i][z].checkCount[
  13088. parseInt(checkL[z][q])
  13089. ] = 1);
  13090. }
  13091. } else {
  13092. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13093. this.checkJson[i][z].rightPerson.push(data.name);
  13094. }
  13095. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13096. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13097. ? this.checkJson[i][z].checkPerson[
  13098. parseInt(checkL[z])
  13099. ].push(data.name)
  13100. : (this.checkJson[i][z].checkPerson[
  13101. parseInt(checkL[z])
  13102. ] = [data.name]);
  13103. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13104. ? this.checkJson[i][z].checkCount[
  13105. parseInt(checkL[z])
  13106. ]++
  13107. : (this.checkJson[i][z].checkCount[
  13108. parseInt(checkL[z])
  13109. ] = 1);
  13110. }
  13111. }
  13112. }
  13113. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13114. var checkL = JSON.parse(data.content)[0].anwer;
  13115. for (var z = 0; z < checkL.length; z++) {
  13116. if (!this.checkJson[i][z]) {
  13117. this.checkJson[i].push({
  13118. checkCount: [],
  13119. checkPerson: [],
  13120. rightPerson: [],
  13121. });
  13122. }
  13123. if (!this.checkJson[i][z].checkCount.length) {
  13124. this.checkJson[i][z].checkCount = [];
  13125. let _askItemCount = JSON.parse(data.content)[0].testJson
  13126. .testJson[z].testItem;
  13127. console.log(_askItemCount);
  13128. for (var aic = 0; aic < _askItemCount; aic++) {
  13129. this.checkJson[i][z].checkCount.push(0);
  13130. }
  13131. }
  13132. if (checkL[z] instanceof Array) {
  13133. if (
  13134. JSON.parse(data.content)[0]
  13135. .testJson.testJson[z].answer.sort()
  13136. .join(",") == checkL[z].sort().join(",")
  13137. ) {
  13138. this.checkJson[i][z].rightPerson.push(data.name);
  13139. }
  13140. for (var q = 0; q < checkL[z].length; q++) {
  13141. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13142. ? this.checkJson[i][z].checkPerson[
  13143. parseInt(checkL[z][q])
  13144. ].push(data.name)
  13145. : (this.checkJson[i][z].checkPerson[
  13146. parseInt(checkL[z][q])
  13147. ] = [data.name]);
  13148. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13149. ? this.checkJson[i][z].checkCount[
  13150. parseInt(checkL[z][q])
  13151. ]++
  13152. : (this.checkJson[i][z].checkCount[
  13153. parseInt(checkL[z][q])
  13154. ] = 1);
  13155. }
  13156. } else {
  13157. if (
  13158. JSON.parse(data.content)[0].testJson.testJson[z]
  13159. .answer == checkL[z]
  13160. ) {
  13161. this.checkJson[i][z].rightPerson.push(data.name);
  13162. }
  13163. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13164. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13165. ? this.checkJson[i][z].checkPerson[
  13166. parseInt(checkL[z])
  13167. ].push(data.name)
  13168. : (this.checkJson[i][z].checkPerson[
  13169. parseInt(checkL[z])
  13170. ] = [data.name]);
  13171. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13172. ? this.checkJson[i][z].checkCount[
  13173. parseInt(checkL[z])
  13174. ]++
  13175. : (this.checkJson[i][z].checkCount[
  13176. parseInt(checkL[z])
  13177. ] = 1);
  13178. }
  13179. }
  13180. }
  13181. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13182. var checkL = JSON.parse(data.content);
  13183. for (var z = 0; z < checkL.length; z++) {
  13184. if (!this.checkJson[i][z]) {
  13185. this.checkJson[i].push({
  13186. checkCount: [],
  13187. checkPerson: [],
  13188. rightPerson: [],
  13189. });
  13190. }
  13191. this.checkJson[i][z].checkPerson.push(data.name);
  13192. if (
  13193. checkL[z].chooseSenList.toString() ==
  13194. checkL[z].rightAnswer.toString()
  13195. ) {
  13196. this.checkJson[i][z].rightPerson.push(data.name);
  13197. }
  13198. }
  13199. }
  13200. for (var k = 0; k < d.length; k++) {
  13201. //点赞
  13202. if (d[k].workId == b[j].id) {
  13203. likesCount++;
  13204. if (d[k].likesId == this.userid) {
  13205. isLikes = true;
  13206. }
  13207. }
  13208. }
  13209. for (var l = 0; l < e.length; l++) {
  13210. //评论
  13211. if (e[l].workId == b[j].id) {
  13212. if (e[l].comment != "") {
  13213. commentCount++;
  13214. commentJson.push({
  13215. commentText: e[l].comment,
  13216. commentTime: e[l].commentTime,
  13217. commentPeople: e[l].commentPeople,
  13218. userid: e[l].userid,
  13219. wid: e[l].id,
  13220. });
  13221. }
  13222. }
  13223. }
  13224. if (
  13225. (b[j].type == 1 ||
  13226. b[j].type == 4 ||
  13227. b[j].type == 5 ||
  13228. b[j].type == 6 ||
  13229. b[j].type == 12 ||
  13230. b[j].type == 7) &&
  13231. a[i].tool[0] != 15 &&
  13232. a[i].tool[0] != 4 &&
  13233. a[i].tool[0] != 45 &&
  13234. a[i].tool[0] != 50 &&
  13235. a[i].tool[0] != 32 &&
  13236. a[i].tool[0] != 57 &&
  13237. a[i].tool[0] != 52
  13238. ) {
  13239. if (
  13240. c.indexOf(
  13241. b[j].content
  13242. .split(".")
  13243. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13244. ) != -1 &&
  13245. a[i].tool[0] == 16 &&
  13246. b[j].atool != 50
  13247. ) {
  13248. let _works = {
  13249. userid: b[j].userid,
  13250. ateacher: b[j].ateacher,
  13251. wid: b[j].id,
  13252. works: b[j].content,
  13253. sName: b[j].name,
  13254. type: 1,
  13255. time: b[j].time,
  13256. score: b[j].score,
  13257. img: b[j].img,
  13258. likesCount: likesCount,
  13259. commentCount: commentCount,
  13260. isLikes: isLikes,
  13261. commentJson: commentJson,
  13262. };
  13263. if (b[j].ttype == 1) {
  13264. this.worksTeacher[i].push(_works);
  13265. } else {
  13266. this.worksStudent2[i].push(_works);
  13267. }
  13268. this.worksStudent[i].push(_works);
  13269. this.isWorksS[i].push({
  13270. uid: b[j].userid,
  13271. sName: b[j].name,
  13272. });
  13273. } else if (
  13274. y.indexOf(
  13275. b[j].content
  13276. .split(".")
  13277. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13278. ) != -1 &&
  13279. a[i].tool[0] == 16 &&
  13280. b[j].atool != 50
  13281. ) {
  13282. let _works = {
  13283. userid: b[j].userid,
  13284. ateacher: b[j].ateacher,
  13285. wid: b[j].id,
  13286. works: b[j].content,
  13287. sName: b[j].name,
  13288. type: 3,
  13289. time: b[j].time,
  13290. score: b[j].score,
  13291. img: b[j].img,
  13292. likesCount: likesCount,
  13293. commentCount: commentCount,
  13294. isLikes: isLikes,
  13295. commentJson: commentJson,
  13296. };
  13297. if (b[j].ttype == 1) {
  13298. this.worksTeacher[i].push(_works);
  13299. } else {
  13300. this.worksStudent2[i].push(_works);
  13301. }
  13302. this.worksStudent[i].push(_works);
  13303. this.isWorksS[i].push({
  13304. uid: b[j].userid,
  13305. sName: b[j].name,
  13306. });
  13307. } else if (b[j].type == 6 && b[j].atool != 50) {
  13308. let _works = {
  13309. userid: b[j].userid,
  13310. ateacher: b[j].ateacher,
  13311. wid: b[j].id,
  13312. works: b[j].content,
  13313. sName: b[j].name,
  13314. type: 4,
  13315. time: b[j].time,
  13316. score: b[j].score,
  13317. img: b[j].img,
  13318. likesCount: likesCount,
  13319. commentCount: commentCount,
  13320. isLikes: isLikes,
  13321. commentJson: commentJson,
  13322. };
  13323. if (b[j].ttype == 1) {
  13324. this.worksTeacher[i].push(_works);
  13325. } else {
  13326. this.worksStudent2[i].push(_works);
  13327. }
  13328. this.worksStudent[i].push(_works);
  13329. this.isWorksS[i].push({
  13330. uid: b[j].userid,
  13331. sName: b[j].name,
  13332. });
  13333. } else if (b[j].type == 7 && b[j].atool != 50) {
  13334. let _works = {
  13335. userid: b[j].userid,
  13336. ateacher: b[j].ateacher,
  13337. wid: b[j].id,
  13338. works: b[j].content,
  13339. sName: b[j].name,
  13340. type: 5,
  13341. time: b[j].time,
  13342. score: b[j].score,
  13343. img: b[j].img,
  13344. likesCount: likesCount,
  13345. commentCount: commentCount,
  13346. isLikes: isLikes,
  13347. commentJson: commentJson,
  13348. };
  13349. if (b[j].ttype == 1) {
  13350. this.worksTeacher[i].push(_works);
  13351. } else {
  13352. this.worksStudent2[i].push(_works);
  13353. }
  13354. this.worksStudent[i].push(_works);
  13355. this.isWorksS[i].push({
  13356. uid: b[j].userid,
  13357. sName: b[j].name,
  13358. });
  13359. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13360. let _works = {
  13361. userid: b[j].userid,
  13362. ateacher: b[j].ateacher,
  13363. wid: b[j].id,
  13364. works: b[j].content,
  13365. sName: b[j].name,
  13366. type: 12,
  13367. time: b[j].time,
  13368. score: b[j].score,
  13369. img: b[j].img,
  13370. likesCount: likesCount,
  13371. commentCount: commentCount,
  13372. isLikes: isLikes,
  13373. commentJson: commentJson,
  13374. };
  13375. if (b[j].ttype == 1) {
  13376. this.worksTeacher[i].push(_works);
  13377. } else {
  13378. this.worksStudent2[i].push(_works);
  13379. }
  13380. this.worksStudent[i].push(_works);
  13381. this.isWorksS[i].push({
  13382. uid: b[j].userid,
  13383. sName: b[j].name,
  13384. });
  13385. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13386. let _works = {
  13387. userid: b[j].userid,
  13388. ateacher: b[j].ateacher,
  13389. wid: b[j].id,
  13390. works: b[j].content,
  13391. sName: b[j].name,
  13392. type: 0,
  13393. time: b[j].time,
  13394. score: b[j].score,
  13395. img: b[j].img,
  13396. likesCount: likesCount,
  13397. commentCount: commentCount,
  13398. isLikes: isLikes,
  13399. commentJson: commentJson,
  13400. };
  13401. if (b[j].ttype == 1) {
  13402. this.worksTeacher[i].push(_works);
  13403. } else {
  13404. this.worksStudent2[i].push(_works);
  13405. }
  13406. this.worksStudent[i].push(_works);
  13407. this.isWorksS[i].push({
  13408. uid: b[j].userid,
  13409. sName: b[j].name,
  13410. });
  13411. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13412. let _works = {
  13413. userid: b[j].userid,
  13414. ateacher: b[j].ateacher,
  13415. wid: b[j].id,
  13416. works: b[j].content,
  13417. sName: b[j].name,
  13418. type: 0,
  13419. time: b[j].time,
  13420. score: b[j].score,
  13421. img: b[j].img,
  13422. likesCount: likesCount,
  13423. commentCount: commentCount,
  13424. isLikes: isLikes,
  13425. commentJson: commentJson,
  13426. };
  13427. if (b[j].ttype == 1) {
  13428. this.worksTeacher[i].push(_works);
  13429. } else {
  13430. this.worksStudent2[i].push(_works);
  13431. }
  13432. this.worksStudent[i].push(_works);
  13433. this.isWorksS[i].push({
  13434. uid: b[j].userid,
  13435. sName: b[j].name,
  13436. });
  13437. }
  13438. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13439. let _works = {
  13440. userid: b[j].userid,
  13441. ateacher: b[j].ateacher,
  13442. wid: b[j].id,
  13443. works: b[j].content,
  13444. sName: b[j].name,
  13445. type: 2,
  13446. time: b[j].time,
  13447. score: b[j].score,
  13448. img: b[j].img,
  13449. likesCount: likesCount,
  13450. commentCount: commentCount,
  13451. isLikes: isLikes,
  13452. commentJson: commentJson,
  13453. };
  13454. if (b[j].ttype == 1) {
  13455. this.worksTeacher[i].push(_works);
  13456. } else {
  13457. this.worksStudent2[i].push(_works);
  13458. }
  13459. this.worksStudent[i].push(_works);
  13460. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13461. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13462. //问卷
  13463. let _works = {
  13464. userid: b[j].userid,
  13465. ateacher: b[j].ateacher,
  13466. wid: b[j].id,
  13467. works: b[j].content,
  13468. sName: b[j].name,
  13469. type: 2,
  13470. time: b[j].time,
  13471. score: b[j].score,
  13472. img: b[j].img,
  13473. likesCount: likesCount,
  13474. commentCount: commentCount,
  13475. isLikes: isLikes,
  13476. commentJson: commentJson,
  13477. };
  13478. if (b[j].ttype == 1) {
  13479. this.worksTeacher[i].push(_works);
  13480. } else {
  13481. this.worksStudent2[i].push(_works);
  13482. }
  13483. this.worksStudent[i].push(_works);
  13484. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13485. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13486. //选择题
  13487. let _works = {
  13488. userid: b[j].userid,
  13489. ateacher: b[j].ateacher,
  13490. wid: b[j].id,
  13491. works: b[j].content,
  13492. sName: b[j].name,
  13493. type: 8,
  13494. time: b[j].time,
  13495. score: b[j].score,
  13496. img: b[j].img,
  13497. likesCount: likesCount,
  13498. commentCount: commentCount,
  13499. isLikes: isLikes,
  13500. commentJson: commentJson,
  13501. };
  13502. if (b[j].ttype == 1) {
  13503. this.worksTeacher[i].push(_works);
  13504. } else {
  13505. this.worksStudent2[i].push(_works);
  13506. }
  13507. this.worksStudent[i].push(_works);
  13508. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13509. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13510. //选择题
  13511. let _works = {
  13512. userid: b[j].userid,
  13513. ateacher: b[j].ateacher,
  13514. wid: b[j].id,
  13515. works: b[j].content,
  13516. sName: b[j].name,
  13517. type: 9,
  13518. time: b[j].time,
  13519. score: b[j].score,
  13520. img: b[j].img,
  13521. likesCount: likesCount,
  13522. commentCount: commentCount,
  13523. isLikes: isLikes,
  13524. commentJson: commentJson,
  13525. };
  13526. if (b[j].ttype == 1) {
  13527. this.worksTeacher[i].push(_works);
  13528. } else {
  13529. this.worksStudent2[i].push(_works);
  13530. }
  13531. this.worksStudent[i].push(_works);
  13532. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13533. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13534. //选择题
  13535. let _works = {
  13536. userid: b[j].userid,
  13537. ateacher: b[j].ateacher,
  13538. wid: b[j].id,
  13539. works: b[j].content,
  13540. sName: b[j].name,
  13541. type: 10,
  13542. time: b[j].time,
  13543. score: b[j].score,
  13544. img: b[j].img,
  13545. likesCount: likesCount,
  13546. commentCount: commentCount,
  13547. isLikes: isLikes,
  13548. commentJson: commentJson,
  13549. };
  13550. if (b[j].ttype == 1) {
  13551. this.worksTeacher[i].push(_works);
  13552. } else {
  13553. this.worksStudent2[i].push(_works);
  13554. }
  13555. this.worksStudent[i].push(_works);
  13556. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13557. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13558. //选择题
  13559. let _works = {
  13560. userid: b[j].userid,
  13561. ateacher: b[j].ateacher,
  13562. wid: b[j].id,
  13563. works: b[j].content,
  13564. sName: b[j].name,
  13565. type: 13,
  13566. time: b[j].time,
  13567. score: b[j].score,
  13568. img: b[j].img,
  13569. likesCount: likesCount,
  13570. commentCount: commentCount,
  13571. isLikes: isLikes,
  13572. commentJson: commentJson,
  13573. };
  13574. if (b[j].ttype == 1) {
  13575. this.worksTeacher[i].push(_works);
  13576. } else {
  13577. this.worksStudent2[i].push(_works);
  13578. }
  13579. this.worksStudent[i].push(_works);
  13580. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13581. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  13582. let _gindex = JSON.parse(b[j].content);
  13583. if (
  13584. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  13585. b[j].userid
  13586. ) != -1
  13587. ) {
  13588. this.worksStudent[i][_gindex.groupIndex].push({
  13589. userid: b[j].userid,
  13590. ateacher: b[j].ateacher,
  13591. wid: b[j].id,
  13592. works: _gindex.url,
  13593. sName: b[j].name,
  13594. type: _gindex.type,
  13595. time: b[j].time,
  13596. score: b[j].score,
  13597. img: b[j].img,
  13598. likesCount: likesCount,
  13599. commentCount: commentCount,
  13600. isLikes: isLikes,
  13601. commentJson: commentJson,
  13602. });
  13603. }
  13604. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13605. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  13606. let _works = {
  13607. userid: b[j].userid,
  13608. ateacher: b[j].ateacher,
  13609. wid: b[j].id,
  13610. works: b[j].content,
  13611. sName: b[j].name ? b[j].name : b[j].userid,
  13612. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  13613. time: b[j].time,
  13614. score: b[j].score,
  13615. img: b[j].img,
  13616. likesCount: likesCount,
  13617. commentCount: commentCount,
  13618. isLikes: isLikes,
  13619. commentJson: commentJson,
  13620. };
  13621. if (b[j].ttype == 1) {
  13622. this.worksTeacher[i].push(_works);
  13623. } else {
  13624. this.worksStudent2[i].push(_works);
  13625. }
  13626. this.worksStudent[i].push(_works);
  13627. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13628. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  13629. let _works = {
  13630. userid: b[j].userid,
  13631. ateacher: b[j].ateacher,
  13632. wid: b[j].id,
  13633. works: b[j].content,
  13634. sName: b[j].name ? b[j].name : b[j].userid,
  13635. type: 12,
  13636. time: b[j].time,
  13637. score: b[j].score,
  13638. img: b[j].img,
  13639. likesCount: likesCount,
  13640. commentCount: commentCount,
  13641. isLikes: isLikes,
  13642. commentJson: commentJson,
  13643. };
  13644. if (b[j].ttype == 1) {
  13645. this.worksTeacher[i].push(_works);
  13646. } else {
  13647. this.worksStudent2[i].push(_works);
  13648. }
  13649. this.worksStudent[i].push(_works);
  13650. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13651. } else if (
  13652. a[i].tool[0] == 57 &&
  13653. b[j].atool == 57 &&
  13654. b[j].type == 12
  13655. ) {
  13656. let _works = {
  13657. userid: b[j].userid,
  13658. ateacher: b[j].ateacher,
  13659. wid: b[j].id,
  13660. works: b[j].content,
  13661. sName: b[j].name ? b[j].name : b[j].userid,
  13662. type: 12,
  13663. time: b[j].time,
  13664. score: b[j].score,
  13665. img: b[j].img,
  13666. likesCount: likesCount,
  13667. commentCount: commentCount,
  13668. isLikes: isLikes,
  13669. commentJson: commentJson,
  13670. };
  13671. if (b[j].ttype == 1) {
  13672. this.worksTeacher[i].push(_works);
  13673. } else {
  13674. this.worksStudent2[i].push(_works);
  13675. }
  13676. this.worksStudent[i].push(_works);
  13677. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13678. } else if (
  13679. a[i].tool[0] == 57 &&
  13680. b[j].atool == 57 &&
  13681. b[j].type == 15
  13682. ) {
  13683. let _works = {
  13684. userid: b[j].userid,
  13685. ateacher: b[j].ateacher,
  13686. wid: b[j].id,
  13687. works: b[j].content,
  13688. sName: b[j].name ? b[j].name : b[j].userid,
  13689. type: 15,
  13690. time: b[j].time,
  13691. score: b[j].score,
  13692. img: b[j].img,
  13693. likesCount: likesCount,
  13694. commentCount: commentCount,
  13695. isLikes: isLikes,
  13696. commentJson: commentJson,
  13697. };
  13698. if (b[j].ttype == 1) {
  13699. this.worksTeacher[i].push(_works);
  13700. } else {
  13701. this.worksStudent2[i].push(_works);
  13702. }
  13703. this.worksStudent[i].push(_works);
  13704. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13705. }
  13706. }
  13707. }
  13708. if (this.worksStudent[i] && this.worksStudent[i].length) {
  13709. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  13710. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13711. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13712. var scoreA = parseFloat(jscoreA);
  13713. var scoreB = parseFloat(jscoreB);
  13714. if (scoreA == scoreB) {
  13715. return b.likesCount - a.likesCount;
  13716. }
  13717. return scoreB - scoreA;
  13718. });
  13719. }
  13720. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  13721. this.worksStudent2[i] = this.worksStudent2[i].sort(function (
  13722. a,
  13723. b
  13724. ) {
  13725. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13726. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13727. var scoreA = parseFloat(jscoreA);
  13728. var scoreB = parseFloat(jscoreB);
  13729. if (scoreA == scoreB) {
  13730. return b.likesCount - a.likesCount;
  13731. }
  13732. return scoreB - scoreA;
  13733. });
  13734. }
  13735. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  13736. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  13737. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13738. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13739. var scoreA = parseFloat(jscoreA);
  13740. var scoreB = parseFloat(jscoreB);
  13741. if (scoreA == scoreB) {
  13742. return b.likesCount - a.likesCount;
  13743. }
  13744. return scoreB - scoreA;
  13745. });
  13746. }
  13747. }
  13748. for (var i = 0; i < a.length; i++) {
  13749. for (var j = 0; j < b.length; j++) {
  13750. var data = b[j];
  13751. if (i == b[j].tool) {
  13752. if (data.type == 2 || data.type == 8) {
  13753. for (var z = 0; z < this.checkJson[i].length; z++) {
  13754. this.checkJson[i][z].checkPerent = [];
  13755. this.checkJson[i][z].right = Math.round(
  13756. (this.checkJson[i][z].rightPerson.length /
  13757. parseInt(this.worksStudent[i].length)) *
  13758. 100
  13759. );
  13760. let aaaa = this.checkJson[i][z];
  13761. console.log(aaaa);
  13762. for (
  13763. var k = 0;
  13764. k < this.checkJson[i][z].checkCount.length;
  13765. k++
  13766. ) {
  13767. this.checkJson[i][z].checkPerent.push(
  13768. Math.round(
  13769. (this.checkJson[i][z].checkCount[k] /
  13770. parseInt(this.worksStudent[i].length)) *
  13771. 100
  13772. )
  13773. );
  13774. }
  13775. }
  13776. } else if (data.type == 9) {
  13777. for (var z = 0; z < this.checkJson[i].length; z++) {
  13778. this.checkJson[i][z].checkPerent = [];
  13779. this.checkJson[i][z].right = Math.round(
  13780. (this.checkJson[i][z].rightPerson.length /
  13781. this.checkJson[i][z].checkPerson.length) *
  13782. 100
  13783. );
  13784. }
  13785. }
  13786. }
  13787. }
  13788. }
  13789. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  13790. this.joinGroup(gindex);
  13791. }
  13792. this.selectWorksStudent();
  13793. })
  13794. .catch((err) => {
  13795. console.error(err);
  13796. });
  13797. },
  13798. pngToWhiteBg(file) {
  13799. const _file = file;
  13800. let read = new FileReader();
  13801. read.readAsDataURL(file); // 文件转base64
  13802. return new Promise((resolve, reject) => {
  13803. read.onload = (e) => {
  13804. let img = new Image();
  13805. img.src = e.target.result;
  13806. img.onload = async () => {
  13807. // 生成canvas
  13808. let canvas = document.createElement("canvas");
  13809. let context = canvas.getContext("2d");
  13810. // 绘制图片到canvas上
  13811. canvas.width = img.width;
  13812. canvas.height = img.height;
  13813. // 在canvas绘制前填充白色背景
  13814. context.fillStyle = "#fff";
  13815. context.fillRect(0, 0, canvas.width, canvas.height);
  13816. context.drawImage(img, 0, 0);
  13817. let base64 = canvas.toDataURL(file["type"], 1);
  13818. let newFile = this.dataUrlToFile(base64, _file);
  13819. resolve(newFile);
  13820. };
  13821. };
  13822. });
  13823. },
  13824. dataUrlToFile(dataurl, file) {
  13825. let arr = dataurl.split(","),
  13826. mime = arr[0].match(/:(.*?);/)[1],
  13827. bstr = atob(arr[1]),
  13828. n = bstr.length,
  13829. u8arr = new Uint8Array(n);
  13830. while (n--) {
  13831. u8arr[n] = bstr.charCodeAt(n);
  13832. }
  13833. // return new Blob([u8arr], { type: mime });
  13834. return new File([new Blob([u8arr], { type: mime })], file.name, {
  13835. type: mime,
  13836. });
  13837. },
  13838. async beforeUpload1(event, type, i) {
  13839. // this.$message.success('进入上传')
  13840. var file = "";
  13841. if (type == 5) {
  13842. file = event;
  13843. } else {
  13844. file = event.target.files[0];
  13845. }
  13846. var credentials = {
  13847. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13848. secretAccessKey: "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",
  13849. }; //秘钥形式的登录上传
  13850. window.AWS.config.update(credentials);
  13851. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13852. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  13853. var _this = this;
  13854. _this.progress = 0;
  13855. _this.proVisible = true;
  13856. _this.isFinishSize = 0;
  13857. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  13858. var b = [
  13859. "DOC",
  13860. "DOCX",
  13861. "DOCM",
  13862. "DOTM",
  13863. "DOTX",
  13864. "PPTX",
  13865. "PPSX",
  13866. "PPT",
  13867. "PPS",
  13868. "PPTM",
  13869. "POTM",
  13870. "PPAM",
  13871. "POTX",
  13872. "PPSM",
  13873. ];
  13874. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  13875. var photoA = [
  13876. "BMP",
  13877. "GIF",
  13878. "PNG",
  13879. "JPGE",
  13880. "JPG",
  13881. "TIF",
  13882. "PCX",
  13883. "TGA",
  13884. "EXIF",
  13885. "FPX",
  13886. "SVG",
  13887. "APNG",
  13888. ];
  13889. // if (
  13890. // b.indexOf(
  13891. // file.name
  13892. // .split(".")
  13893. // [file.name.split(".").length - 1].toLocaleUpperCase()
  13894. // ) != -1
  13895. // ) {
  13896. // if (file.size / 1024 / 1024 > 10) {
  13897. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  13898. // return;
  13899. // }
  13900. // } else if (
  13901. // excelA.indexOf(
  13902. // file.name
  13903. // .split(".")
  13904. // [file.name.split(".").length - 1].toLocaleUpperCase()
  13905. // ) != "-1"
  13906. // ) {
  13907. // if (file.size / 1024 / 1024 > 5) {
  13908. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  13909. // return;
  13910. // }
  13911. // }
  13912. if (
  13913. photoA.indexOf(
  13914. file.name
  13915. .split(".")
  13916. [file.name.split(".").length - 1].toLocaleUpperCase()
  13917. ) != -1 &&
  13918. type != 4
  13919. ) {
  13920. // const blob = await imageConversion.compress(file, 0.8)
  13921. file = await this.pngToWhiteBg(file);
  13922. const blob = await imageConversion.compressAccurately(file, 256);
  13923. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  13924. file = new File([blob], file.name, { type: file.type });
  13925. }
  13926. if (file) {
  13927. var params = {
  13928. Key:
  13929. file.name.split(".")[0] +
  13930. new Date().getTime() +
  13931. "." +
  13932. file.name.split(".")[file.name.split(".").length - 1],
  13933. ContentType: file.type,
  13934. Body: file,
  13935. "Access-Control-Allow-Credentials": "*",
  13936. ACL: "public-read",
  13937. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  13938. var options = {
  13939. // partSize: 2048 * 1024 * 1024,
  13940. partSize: 1024 * 1024 * 1024,
  13941. queueSize: 2,
  13942. leavePartsOnError: true,
  13943. };
  13944. bucket
  13945. .upload(params, options)
  13946. .on("httpUploadProgress", function (evt) {
  13947. //这里可以写进度条
  13948. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  13949. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  13950. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  13951. })
  13952. .send(function (err, data) {
  13953. _this.progress = 100;
  13954. _this.isFinishSize = _this.isAllSize;
  13955. setTimeout(() => {
  13956. _this.proVisible = false;
  13957. }, 1000);
  13958. if (err) {
  13959. var a = _this.$refs.upload1.uploadFiles;
  13960. a.splice(a.length - 1, a.length);
  13961. _this.$message.error("上传失败");
  13962. } else {
  13963. // _this.$message.success('上传成功')
  13964. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13965. var c = [
  13966. "AVI",
  13967. "NAVI",
  13968. "MPEG",
  13969. "ASF",
  13970. "MOV",
  13971. "WMV",
  13972. "3GP",
  13973. "RM",
  13974. "RMVB",
  13975. "FLV",
  13976. "F4V",
  13977. "H.264",
  13978. "H.265",
  13979. "REAL VIDEO",
  13980. "MKV",
  13981. "WebM",
  13982. "HDDVD",
  13983. "MP4",
  13984. "MPG",
  13985. "M4V",
  13986. "MGV",
  13987. "OGV",
  13988. "QTM",
  13989. "STR",
  13990. "AMC",
  13991. "DVX",
  13992. "EVO",
  13993. "DAT",
  13994. "OGG",
  13995. "OGM",
  13996. ];
  13997. if (type == 1) {
  13998. _this.studyJuri[0].cover.push({
  13999. name: file.name,
  14000. url: data.Location,
  14001. uid: file.uid,
  14002. });
  14003. if (
  14004. c.indexOf(
  14005. _this.studyJuri[0].cover[0].url
  14006. .split(".")
  14007. [
  14008. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14009. ].toLocaleUpperCase()
  14010. ) != -1
  14011. ) {
  14012. _this.fileType = 2;
  14013. } else if (
  14014. b.indexOf(
  14015. _this.studyJuri[0].cover[0].url
  14016. .split(".")
  14017. [
  14018. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14019. ].toLocaleUpperCase()
  14020. ) != -1
  14021. ) {
  14022. _this.fileType = 1;
  14023. } else if (
  14024. photoA.indexOf(
  14025. _this.studyJuri[0].cover[0].url
  14026. .split(".")
  14027. [
  14028. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14029. ].toLocaleUpperCase()
  14030. ) != -1
  14031. ) {
  14032. _this.fileType = 0;
  14033. } else {
  14034. _this.fileType = 3;
  14035. }
  14036. _this.imgChange(null, null, type);
  14037. } else if (type == 2) {
  14038. _this.upToolImg = data.Location;
  14039. _this.imgChange(null, null, type);
  14040. _this.addCourseWorks(i);
  14041. } else if (type == 4) {
  14042. _this.addPz("3", data.Location);
  14043. } else if (type == 5) {
  14044. _this.addImgDrawImG(data.Location);
  14045. } else if (type == 6) {
  14046. var _ftype = 1;
  14047. if (
  14048. c.indexOf(
  14049. data.Location.split(".")[
  14050. data.Location.split(".").length - 1
  14051. ].toLocaleUpperCase()
  14052. ) != -1
  14053. ) {
  14054. _ftype = 5;
  14055. } else if (
  14056. b.indexOf(
  14057. data.Location.split(".")[
  14058. data.Location.split(".").length - 1
  14059. ].toLocaleUpperCase()
  14060. ) != -1
  14061. ) {
  14062. _ftype = 4;
  14063. } else {
  14064. _ftype = 1;
  14065. }
  14066. _this.plworkFile.push({
  14067. name: file.name,
  14068. url: data.Location,
  14069. uid: file.uid,
  14070. fileType: _ftype,
  14071. username:
  14072. _this.plworkFile.length + 1 > 10
  14073. ? _this.plworkFile.length + 1
  14074. : "0" + (_this.plworkFile.length + 1),
  14075. });
  14076. } else if (type == 7) {
  14077. _this.addCourseWorksGong(i, data.Location, 32);
  14078. } else if (type == 8) {
  14079. _this.addCourseWorksGong(i, data.Location, 57);
  14080. }
  14081. _this.imgChange(null, null, type);
  14082. console.log(data.Location);
  14083. // _this.$message.success('上传成功'+data.Location)
  14084. }
  14085. });
  14086. }
  14087. },
  14088. async beforeUpload3(event, type, i) {
  14089. // this.$message.success('进入上传')
  14090. let file = "";
  14091. let cfindex2 = 0;
  14092. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14093. file = event.target.files[cfindex];
  14094. var credentials = {
  14095. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14096. secretAccessKey: "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",
  14097. }; //秘钥形式的登录上传
  14098. window.AWS.config.update(credentials);
  14099. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14100. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14101. var _this = this;
  14102. // _this.progress = 0;
  14103. _this.proVisible2 = true;
  14104. var b = [
  14105. "DOC",
  14106. "DOCX",
  14107. "DOCM",
  14108. "DOTM",
  14109. "DOTX",
  14110. "PPTX",
  14111. "PPSX",
  14112. "PPT",
  14113. "PPS",
  14114. "PPTM",
  14115. "POTM",
  14116. "PPAM",
  14117. "POTX",
  14118. "PPSM",
  14119. ];
  14120. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14121. var photoA = [
  14122. "BMP",
  14123. "GIF",
  14124. "PNG",
  14125. "JPGE",
  14126. "JPG",
  14127. "TIF",
  14128. "PCX",
  14129. "TGA",
  14130. "EXIF",
  14131. "FPX",
  14132. "SVG",
  14133. "APNG",
  14134. ];
  14135. if (
  14136. photoA.indexOf(
  14137. file.name
  14138. .split(".")
  14139. [file.name.split(".").length - 1].toLocaleUpperCase()
  14140. ) != -1 &&
  14141. type != 4
  14142. ) {
  14143. // const blob = await imageConversion.compress(file, 0.8)
  14144. file = await this.pngToWhiteBg(file);
  14145. const blob = await imageConversion.compressAccurately(file, 256);
  14146. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14147. file = new File([blob], file.name, { type: file.type });
  14148. }
  14149. if (file) {
  14150. var params = {
  14151. Key:
  14152. file.name.split(".")[0] +
  14153. new Date().getTime() +
  14154. "." +
  14155. file.name.split(".")[file.name.split(".").length - 1],
  14156. ContentType: file.type,
  14157. Body: file,
  14158. "Access-Control-Allow-Credentials": "*",
  14159. ACL: "public-read",
  14160. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14161. var options = {
  14162. // partSize: 2048 * 1024 * 1024,
  14163. partSize: 1024 * 1024 * 1024,
  14164. queueSize: 2,
  14165. leavePartsOnError: true,
  14166. };
  14167. bucket
  14168. .upload(params, options)
  14169. .on("httpUploadProgress", function (evt) {
  14170. //这里可以写进度条
  14171. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14172. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14173. })
  14174. .send(function (err, data) {
  14175. // _this.progress = 100;
  14176. cfindex2++;
  14177. setTimeout(() => {
  14178. if (
  14179. cfindex2 == event.target.files.length - 1 ||
  14180. cfindex2 > event.target.files.length - 1
  14181. ) {
  14182. _this.proVisible2 = false;
  14183. }
  14184. }, 1000);
  14185. if (err) {
  14186. var a = _this.$refs.upload1.uploadFiles;
  14187. a.splice(a.length - 1, a.length);
  14188. _this.$message.error("上传失败");
  14189. } else {
  14190. // _this.$message.success('上传成功')
  14191. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14192. var c = [
  14193. "AVI",
  14194. "NAVI",
  14195. "MPEG",
  14196. "ASF",
  14197. "MOV",
  14198. "WMV",
  14199. "3GP",
  14200. "RM",
  14201. "RMVB",
  14202. "FLV",
  14203. "F4V",
  14204. "H.264",
  14205. "H.265",
  14206. "REAL VIDEO",
  14207. "MKV",
  14208. "WebM",
  14209. "HDDVD",
  14210. "MP4",
  14211. "MPG",
  14212. "M4V",
  14213. "MGV",
  14214. "OGV",
  14215. "QTM",
  14216. "STR",
  14217. "AMC",
  14218. "DVX",
  14219. "EVO",
  14220. "DAT",
  14221. "OGG",
  14222. "OGM",
  14223. ];
  14224. if (type == 1) {
  14225. _this.studyJuri[0].cover.push({
  14226. name: file.name,
  14227. url: data.Location,
  14228. uid: file.uid,
  14229. });
  14230. if (
  14231. c.indexOf(
  14232. _this.studyJuri[0].cover[0].url
  14233. .split(".")
  14234. [
  14235. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14236. ].toLocaleUpperCase()
  14237. ) != -1
  14238. ) {
  14239. _this.fileType = 2;
  14240. } else if (
  14241. b.indexOf(
  14242. _this.studyJuri[0].cover[0].url
  14243. .split(".")
  14244. [
  14245. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14246. ].toLocaleUpperCase()
  14247. ) != -1
  14248. ) {
  14249. _this.fileType = 1;
  14250. } else {
  14251. _this.fileType = 0;
  14252. }
  14253. _this.imgChange(null, null, type);
  14254. } else if (type == 2) {
  14255. _this.upToolImg = data.Location;
  14256. _this.imgChange(null, null, type);
  14257. _this.addCourseWorks(i);
  14258. } else if (type == 4) {
  14259. _this.addPz("3", data.Location);
  14260. } else if (type == 5) {
  14261. _this.addImgDrawImG(data.Location);
  14262. } else if (type == 6) {
  14263. var _ftype = 1;
  14264. if (
  14265. c.indexOf(
  14266. data.Location.split(".")[
  14267. data.Location.split(".").length - 1
  14268. ].toLocaleUpperCase()
  14269. ) != -1
  14270. ) {
  14271. _ftype = 5;
  14272. } else if (
  14273. b.indexOf(
  14274. data.Location.split(".")[
  14275. data.Location.split(".").length - 1
  14276. ].toLocaleUpperCase()
  14277. ) != -1
  14278. ) {
  14279. _ftype = 4;
  14280. } else {
  14281. _ftype = 1;
  14282. }
  14283. _this.plworkFile.push({
  14284. name: file.name,
  14285. url: data.Location,
  14286. uid: file.uid,
  14287. fileType: _ftype,
  14288. username:
  14289. _this.plworkFile.length + 1 > 9
  14290. ? _this.plworkFile.length + 1
  14291. : "0" + (_this.plworkFile.length + 1),
  14292. });
  14293. }
  14294. _this.imgChange(null, null, type);
  14295. console.log(data.Location);
  14296. // _this.$message.success('上传成功'+data.Location)
  14297. }
  14298. });
  14299. }
  14300. }
  14301. },
  14302. beforeUpload2(event, type) {
  14303. var file = event.target.files[0];
  14304. var credentials = {
  14305. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14306. secretAccessKey: "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",
  14307. }; //秘钥形式的登录上传
  14308. window.AWS.config.update(credentials);
  14309. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14310. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14311. var _this = this;
  14312. _this.progress = 0;
  14313. _this.proVisible = true;
  14314. if (file) {
  14315. var params = {
  14316. Key:
  14317. file.name.split(".")[0] +
  14318. new Date().getTime() +
  14319. "." +
  14320. file.name.split(".")[file.name.split(".").length - 1],
  14321. ContentType: file.type,
  14322. Body: file,
  14323. "Access-Control-Allow-Credentials": "*",
  14324. ACL: "public-read",
  14325. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14326. var options = {
  14327. partSize: 2048 * 1024 * 1024,
  14328. queueSize: 2,
  14329. leavePartsOnError: true,
  14330. };
  14331. bucket
  14332. .upload(params, options)
  14333. .on("httpUploadProgress", function (evt) {
  14334. //这里可以写进度条
  14335. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14336. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14337. })
  14338. .send(function (err, data) {
  14339. _this.progress = 100;
  14340. setTimeout(() => {
  14341. _this.proVisible = false;
  14342. }, 1000);
  14343. if (err) {
  14344. var a = _this.$refs.upload1.uploadFiles;
  14345. a.splice(a.length - 1, a.length);
  14346. _this.$message.error("上传失败");
  14347. } else {
  14348. if (type == 2) {
  14349. _this.studyJuri[0].upVedio.push({
  14350. name: file.name,
  14351. url: data.Location,
  14352. uid: file.uid,
  14353. });
  14354. _this.imgChange(null, null, type);
  14355. } else if (type == 3) {
  14356. _this.studyJuri[0].upFile.push({
  14357. name: file.name,
  14358. url: data.Location,
  14359. uid: file.uid,
  14360. });
  14361. _this.imgChange(null, null, type);
  14362. }
  14363. console.log(data.Location);
  14364. }
  14365. });
  14366. }
  14367. },
  14368. allScrell() {
  14369. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  14370. },
  14371. nextToolindex(type) {
  14372. if (type == "last") {
  14373. if (this.toolIndex == 0) {
  14374. this.$message.error("已经是第一个步骤");
  14375. return;
  14376. }
  14377. this.toolIndex = this.toolIndex - 1;
  14378. this.tool =
  14379. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14380. this.taskCount
  14381. ].toolChoose[this.toolIndex];
  14382. } else if (type == "next") {
  14383. if (
  14384. this.toolIndex ==
  14385. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14386. this.taskCount
  14387. ].toolChoose.length -
  14388. 1
  14389. ) {
  14390. this.$message.error("已经是最后一个步骤");
  14391. return;
  14392. }
  14393. this.toolIndex = this.toolIndex + 1;
  14394. this.tool =
  14395. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14396. this.taskCount
  14397. ].toolChoose[this.toolIndex];
  14398. }
  14399. this.$forceUpdate();
  14400. },
  14401. checkBz(index) {
  14402. this.toolIndex = index;
  14403. this.tool =
  14404. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14405. this.taskCount
  14406. ].toolChoose[this.toolIndex];
  14407. this.isUpdateToolDetail = false;
  14408. this.$forceUpdate();
  14409. },
  14410. nextOrpreSteps(t) {
  14411. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14412. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14413. return;
  14414. }
  14415. var b = this.chapInfoList.length - 1;
  14416. if (t == 0) {
  14417. if (this.courseType == 0) {
  14418. if (this.taskCount == 0) {
  14419. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  14420. if (this.IsLookOpen) {
  14421. if (
  14422. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  14423. ) {
  14424. if (
  14425. this.courseDetail.userid != this.userid &&
  14426. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14427. ) {
  14428. this.$message.error("任务未解锁");
  14429. } else {
  14430. this.$message.error("上一任务未解锁");
  14431. }
  14432. return;
  14433. }
  14434. }
  14435. this.navList[this.courseType].isOpen = false;
  14436. this.courseType = b;
  14437. this.taskCount =
  14438. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14439. .length - 1;
  14440. this.navList[this.courseType].isOpen = true;
  14441. } else {
  14442. this.taskCount--;
  14443. }
  14444. } else {
  14445. if (this.taskCount == 0) {
  14446. this.navList[this.courseType].isOpen = false;
  14447. this.courseType--;
  14448. this.taskCount =
  14449. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14450. .length - 1;
  14451. this.navList[this.courseType].isOpen = true;
  14452. } else {
  14453. this.taskCount--;
  14454. }
  14455. }
  14456. } else {
  14457. if (this.courseType == b) {
  14458. if (
  14459. this.taskCount ==
  14460. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14461. 1
  14462. ) {
  14463. this.navList[this.courseType].isOpen = false;
  14464. this.courseType = 0;
  14465. this.taskCount = 0;
  14466. this.navList[this.courseType].isOpen = true;
  14467. } else {
  14468. var bbb = parseInt(this.taskCount) + 1;
  14469. if (
  14470. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14471. .isLook &&
  14472. this.courseDetail.userid != this.userid &&
  14473. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14474. this.IsLookOpen
  14475. ) {
  14476. this.$message.error("任务未解锁");
  14477. return;
  14478. }
  14479. this.taskCount++;
  14480. if (this.IsLookOpen) {
  14481. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14482. this.taskCount
  14483. ].isLook = true;
  14484. this.addCourseState(3);
  14485. }
  14486. }
  14487. } else {
  14488. if (
  14489. this.taskCount ==
  14490. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14491. 1
  14492. ) {
  14493. var bbb = parseInt(this.courseType) + 1;
  14494. if (
  14495. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  14496. this.courseDetail.userid != this.userid &&
  14497. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14498. this.IsLookOpen
  14499. ) {
  14500. this.$message.error("任务未解锁");
  14501. return;
  14502. }
  14503. this.navList[this.courseType].isOpen = false;
  14504. this.courseType++;
  14505. this.taskCount = 0;
  14506. this.navList[this.courseType].isOpen = true;
  14507. } else {
  14508. var bbb = parseInt(this.taskCount) + 1;
  14509. if (
  14510. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14511. .isLook &&
  14512. this.courseDetail.userid != this.userid &&
  14513. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14514. this.IsLookOpen
  14515. ) {
  14516. this.$message.error("任务未解锁");
  14517. return;
  14518. }
  14519. this.taskCount++;
  14520. }
  14521. if (this.IsLookOpen) {
  14522. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14523. this.taskCount
  14524. ].isLook = true;
  14525. this.addCourseState(3);
  14526. }
  14527. }
  14528. }
  14529. document.scrollingElement.scrollTop = 0;
  14530. // this.showType = 0;
  14531. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14532. this.toolIndex = null;
  14533. this.isNoHomeWork = false;
  14534. (this.studyJuri = [
  14535. {
  14536. content: "",
  14537. cover: [],
  14538. upVedio: [],
  14539. upFile: [],
  14540. },
  14541. ]),
  14542. (this.radio = []);
  14543. // this.isClickNav = "";
  14544. this.selectPz();
  14545. this.getHomeWork();
  14546. this.getCourseDetail(2);
  14547. this.$forceUpdate();
  14548. },
  14549. openTask(s, n, i) {
  14550. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14551. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14552. return;
  14553. }
  14554. if (this.IsLookOpen) {
  14555. if (
  14556. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  14557. this.courseDetail.userid != this.userid &&
  14558. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14559. ) {
  14560. this.$message.error("任务未解锁");
  14561. return;
  14562. }
  14563. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  14564. if (
  14565. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  14566. .isLook
  14567. ) {
  14568. this.$message.error("上一任务未解锁");
  14569. return;
  14570. }
  14571. } else if (s > this.courseType) {
  14572. if (n > 0) {
  14573. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  14574. this.$message.error("上一任务未解锁");
  14575. return;
  14576. }
  14577. } else {
  14578. if (
  14579. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  14580. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  14581. ].isLook
  14582. ) {
  14583. this.$message.error("上一任务未解锁");
  14584. return;
  14585. }
  14586. }
  14587. }
  14588. }
  14589. this.courseType = s;
  14590. this.navId = i;
  14591. this.taskCount = n;
  14592. if (this.IsLookOpen) {
  14593. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14594. this.taskCount
  14595. ].isLook = true;
  14596. this.addCourseState(3);
  14597. }
  14598. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  14599. this.isCloseList[ci].isClose = 0;
  14600. }
  14601. // this.showType = 0;
  14602. this.isNoHomeWork = false;
  14603. (this.studyJuri = [
  14604. {
  14605. content: "",
  14606. cover: [],
  14607. upVedio: [],
  14608. upFile: [],
  14609. },
  14610. ]),
  14611. (this.radio = []);
  14612. document.scrollingElement.scrollTop = 0;
  14613. this.toolIndex = null;
  14614. // setTimeout(() => {
  14615. // let a = document.getElementById(i);
  14616. // if (a.offsetTop - 110 == 0) {
  14617. // window.scrollTo(0, 0);
  14618. // } else {
  14619. // window.scrollTo(0, a.offsetTop);
  14620. // }
  14621. // }, 0);
  14622. this.selectPz();
  14623. this.getHomeWork();
  14624. this.getCourseDetail(2);
  14625. },
  14626. get(i) {
  14627. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14628. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14629. return;
  14630. }
  14631. this.navList[i].isOpen = !this.navList[i].isOpen;
  14632. },
  14633. addQuestion() {
  14634. this.answerList.push({
  14635. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14636. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14637. });
  14638. let params = [
  14639. {
  14640. uid: this.userid,
  14641. cid: this.id,
  14642. stage: this.courseType,
  14643. task: this.taskCount,
  14644. tool: this.toolindex,
  14645. content: JSON.stringify(this.answerList),
  14646. type: 3,
  14647. },
  14648. ];
  14649. this.ajax
  14650. .post(this.$store.state.api + "addCourseWorks", params)
  14651. .then((res) => {
  14652. this.$message({
  14653. message: "提交成功",
  14654. type: "success",
  14655. });
  14656. this.answerList = [];
  14657. this.questionAnswer = "";
  14658. this.answerDialogVisible = false;
  14659. this.selectStudent();
  14660. this.selectSWorks();
  14661. this.selectSLook();
  14662. })
  14663. .catch((err) => {
  14664. this.$message.error("提交失败");
  14665. console.error(err);
  14666. });
  14667. },
  14668. addQuestionTeacher() {
  14669. this.answerList.push({
  14670. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14671. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14672. });
  14673. let params = [
  14674. {
  14675. uid: this.sStudent.userid,
  14676. cid: this.id,
  14677. stage: this.courseType,
  14678. task: this.taskCount,
  14679. tool: this.toolindex,
  14680. content: JSON.stringify(this.answerList),
  14681. type: 3,
  14682. ateacher: this.userid,
  14683. },
  14684. ];
  14685. this.ajax
  14686. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14687. .then((res) => {
  14688. this.$message({
  14689. message: "提交成功",
  14690. type: "success",
  14691. });
  14692. this.answerList = [];
  14693. this.questionAnswer = "";
  14694. this.answerDialogVisibleTeacher = false;
  14695. this.selectStudent();
  14696. this.selectSWorks();
  14697. this.selectSLook();
  14698. })
  14699. .catch((err) => {
  14700. this.$message.error("提交失败");
  14701. console.error(err);
  14702. });
  14703. },
  14704. refreshCourse() {
  14705. this.navList = [];
  14706. this.getCourseDetail(1);
  14707. },
  14708. setPz() {
  14709. if (this.ispzType == 4) {
  14710. this.ispzType = 0;
  14711. this.pzDialog = false;
  14712. return;
  14713. }
  14714. this.ispzType = 4;
  14715. this.pzDialog = true;
  14716. this.selectPz();
  14717. },
  14718. getCourseDetail(type, gindex) {
  14719. let loading;
  14720. if (type != 2) {
  14721. loading = this.$loading.service({
  14722. background: "rgba(255, 255, 255, 0.7)",
  14723. target: document.querySelector(".student_table"),
  14724. });
  14725. }
  14726. let params = {
  14727. courseId: this.id,
  14728. };
  14729. this.ajax
  14730. .get(this.$store.state.api + "selectCourseDetail3", params)
  14731. .then((res) => {
  14732. if (type != 2) {
  14733. loading.close();
  14734. if (
  14735. this.courseType >
  14736. JSON.parse(res.data[0][0].chapters).length - 1
  14737. ) {
  14738. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  14739. }
  14740. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  14741. .chapterInfo[0].taskJson;
  14742. var b = [
  14743. "AVI",
  14744. "NAVI",
  14745. "MPEG",
  14746. "ASF",
  14747. "MOV",
  14748. "WMV",
  14749. "3GP",
  14750. "RM",
  14751. "RMVB",
  14752. "FLV",
  14753. "F4V",
  14754. "H.264",
  14755. "H.265",
  14756. "REAL VIDEO",
  14757. "MKV",
  14758. "WebM",
  14759. "HDDVD",
  14760. "MP4",
  14761. "MPG",
  14762. "M4V",
  14763. "MGV",
  14764. "OGV",
  14765. "QTM",
  14766. "STR",
  14767. "AMC",
  14768. "DVX",
  14769. "EVO",
  14770. "DAT",
  14771. "OGG",
  14772. "OGM",
  14773. "MP3",
  14774. ];
  14775. let _chapterData = [];
  14776. for (var i = 0; i < a.length; i++) {
  14777. var c = a[i].chapterData;
  14778. this.vedio[i] = [];
  14779. this.textList[i] = [];
  14780. this.lineList[i] = [];
  14781. this.chapToolList[i] = [];
  14782. this.file[i] = [];
  14783. this.fileC[i] = [];
  14784. _chapterData[i] = c.filter((el) => {
  14785. return el.type != 12;
  14786. });
  14787. this.fileC[i] = c.filter((el) => {
  14788. return el.type == 12;
  14789. });
  14790. for (var j = 0; j < c.length; j++) {
  14791. if (c[j].type == 7) {
  14792. this.chapToolList[i].push(c[j]);
  14793. } else if (c[j].type == 8) {
  14794. this.lineList[i].push(c[j]);
  14795. } else if (c[j].type == 6) {
  14796. this.textList[i].push(c[j]);
  14797. } else {
  14798. if (
  14799. b.indexOf(
  14800. c[j].url
  14801. .split(".")
  14802. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  14803. ) != -1
  14804. ) {
  14805. this.vedio[i].push(c[j]);
  14806. } else {
  14807. this.file[i].push(c[j]);
  14808. }
  14809. }
  14810. }
  14811. var d = JSON.parse(JSON.stringify(this.playerOptions));
  14812. d.sources[0].src =
  14813. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  14814. this.playerO[i] = d;
  14815. }
  14816. this.courseDetail = res.data[0][0];
  14817. this.tcid = this.arrayToArray(
  14818. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14819. this.tcid2 ? this.tcid2.split(",") : []
  14820. ).join(",");
  14821. console.log(this.tcid);
  14822. this.evalua = res.data[0][0].evaId;
  14823. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  14824. this.courseType
  14825. ];
  14826. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  14827. if (this.tcid && res.data[1].length) {
  14828. let _inviteA = [];
  14829. for (var ik = 0; ik < res.data[1].length; ik++) {
  14830. _inviteA.push({
  14831. cid: res.data[1][ik].classid,
  14832. ic: res.data[1][ik].code,
  14833. });
  14834. }
  14835. for (var ik = 0; ik < _inviteA.length; ik++) {
  14836. if (
  14837. this.arrayToArray(
  14838. _inviteA[ik].cid.split(","),
  14839. this.tcid.split(",")
  14840. ).length
  14841. ) {
  14842. this.inviteCode = _inviteA[ik].ic;
  14843. break;
  14844. }
  14845. }
  14846. }
  14847. for (var l = 0; l < this.chapInfoList.length; l++) {
  14848. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  14849. for (var m = 0; m < w.length; m++) {
  14850. w[m].id = l + "-" + m;
  14851. }
  14852. }
  14853. let taskCount = 0;
  14854. if (
  14855. _chapterData[taskCount].length &&
  14856. _chapterData[taskCount][0].type == 2
  14857. ) {
  14858. this.showType = 0;
  14859. } else {
  14860. if (_chapterData[taskCount].length > 0) {
  14861. let _url = _chapterData[taskCount][0].url;
  14862. if (_chapterData[taskCount][0].type == 8) {
  14863. this.showType = 2;
  14864. if (
  14865. _url.indexOf("https://") == -1 &&
  14866. _url.indexOf("http://") == -1
  14867. ) {
  14868. _url = "https://" + _url;
  14869. }
  14870. this.pptImgUrl1 = _url;
  14871. } else if (_chapterData[taskCount][0].type == 3) {
  14872. if (
  14873. _url
  14874. .split(".")
  14875. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14876. ) {
  14877. this.showType = 3;
  14878. this.pptImgUrl1 = _url;
  14879. } else if (
  14880. this.isAssetTypeAnImage(
  14881. _url
  14882. .split(".")
  14883. [_url.split(".").length - 1].toLocaleLowerCase()
  14884. )
  14885. ) {
  14886. this.showType = 4;
  14887. this.pptImgUrl1 = _url;
  14888. } else {
  14889. this.showType = 2;
  14890. this.pptImgUrl1 =
  14891. "https://view.officeapps.live.com/op/view.aspx?src=" +
  14892. _url;
  14893. }
  14894. } else if (_chapterData[this.taskCount][0].type == 13) {
  14895. this.showType = 4;
  14896. this.pptImgUrl1 = _url;
  14897. } else if (_chapterData[taskCount][0].type == 6) {
  14898. this.showType = 1;
  14899. this.text = this.textList[taskCount][0];
  14900. }
  14901. }
  14902. }
  14903. this.isClickNav = 0;
  14904. if (
  14905. !_chapterData[taskCount].length ||
  14906. _chapterData[taskCount][0].type == 12
  14907. ) {
  14908. this.isClickNav = "";
  14909. this.showType = "";
  14910. }
  14911. this.vChapterData = _chapterData;
  14912. if (
  14913. this.toolIndex == null &&
  14914. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14915. this.taskCount
  14916. ].toolChoose.length
  14917. ) {
  14918. this.toolIndex = 0;
  14919. this.tool =
  14920. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14921. this.taskCount
  14922. ].toolChoose[this.toolIndex];
  14923. }
  14924. } else {
  14925. if (
  14926. this.toolIndex == null &&
  14927. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14928. this.taskCount
  14929. ].toolChoose.length
  14930. ) {
  14931. this.toolIndex = 0;
  14932. this.tool =
  14933. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14934. this.taskCount
  14935. ].toolChoose[this.toolIndex];
  14936. }
  14937. }
  14938. this.isUpdateToolDetail = false;
  14939. this.$nextTick(() => {
  14940. setTimeout(() => {
  14941. this.checkEva();
  14942. }, 1000);
  14943. });
  14944. let _this = this;
  14945. if (_this.timer) {
  14946. clearInterval(_this.timer);
  14947. _this.timer = null;
  14948. }
  14949. _this.selectSWorks(gindex);
  14950. _this.selectStudent();
  14951. _this.selectSLook();
  14952. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  14953. _this.setCTask();
  14954. }
  14955. if (_this.dialogVisibleGroup) {
  14956. _this.groupJson =
  14957. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  14958. _this.taskCount
  14959. ].toolChoose[_this.toolindex].groupJson;
  14960. }
  14961. _this.timer = setInterval(function () {
  14962. _this.selectSWorks(gindex);
  14963. if (_this.tType == 4 || _this.ispzType == 4) {
  14964. _this.selectPz();
  14965. }
  14966. }, 5000);
  14967. })
  14968. .catch((err) => {
  14969. loading.close();
  14970. console.error(err);
  14971. });
  14972. },
  14973. getCourseGroup(gindex) {
  14974. let params = {
  14975. cid: this.id,
  14976. classid: this.tcid ? this.tcid : "1",
  14977. };
  14978. this.ajax
  14979. .get(this.$store.state.api + "getCourseGroup", params)
  14980. .then((res) => {
  14981. if (res.data && res.data[0].length) {
  14982. if (!this.isGroup) {
  14983. let courseGroup = JSON.parse(res.data[0][0].group);
  14984. courseGroup.group = courseGroup.group.filter((el) => {
  14985. el.works = [];
  14986. return el;
  14987. });
  14988. this.courseGroup = courseGroup;
  14989. let groupPerson = res.data[1];
  14990. let group = JSON.parse(res.data[0][0].group).group;
  14991. let courseGroupStudent = {};
  14992. let courseGroupStudentUid = {};
  14993. for (var i = 0; i < group.length; i++) {
  14994. courseGroupStudent[group[i].id] = [];
  14995. courseGroupStudentUid[group[i].id] = [];
  14996. for (var j = 0; j < groupPerson.length; j++) {
  14997. if (groupPerson[j].groupCid == group[i].id) {
  14998. courseGroupStudent[group[i].id].push(groupPerson[j]);
  14999. courseGroupStudentUid[group[i].id].push(
  15000. groupPerson[j].userid
  15001. );
  15002. }
  15003. }
  15004. }
  15005. this.courseGroupStudent = courseGroupStudent;
  15006. this.courseGroupStudentUid = courseGroupStudentUid;
  15007. }
  15008. this.isGroup = true;
  15009. this.selectSWorks(gindex);
  15010. } else {
  15011. this.selectSWorks(gindex);
  15012. this.isGroup = false;
  15013. }
  15014. })
  15015. .catch((err) => {
  15016. // this.$message.error("网络不佳");
  15017. console.error(err);
  15018. });
  15019. },
  15020. setOperationTime() {
  15021. let _this = this;
  15022. if (_this.opertimer) {
  15023. clearInterval(_this.opertimer);
  15024. _this.opertimer = null;
  15025. }
  15026. _this.opertimer = setInterval(() => {
  15027. _this.setoTime("600");
  15028. }, 600000);
  15029. },
  15030. setoTime(time) {
  15031. let params = [
  15032. {
  15033. uid: this.userid,
  15034. cid: this.id,
  15035. type: "2",
  15036. time: time,
  15037. },
  15038. ];
  15039. this.ajax
  15040. .post(this.$store.state.api + "addOperationTimeT2", params)
  15041. .then((res) => {})
  15042. .catch((err) => {
  15043. console.error(err);
  15044. });
  15045. },
  15046. addPz(type, content) {
  15047. if (type == "1" && this.pzConText == "") {
  15048. this.$message.error("批注不能为空!");
  15049. return;
  15050. }
  15051. let params = [
  15052. {
  15053. cid: this.id,
  15054. uid: this.userid,
  15055. s: this.courseType,
  15056. t: this.taskCount,
  15057. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15058. type: type,
  15059. },
  15060. ];
  15061. this.ajax
  15062. .post(this.$store.state.api + "addPz2", params)
  15063. .then((res) => {
  15064. this.$message({
  15065. message: "添加成功",
  15066. type: "success",
  15067. });
  15068. this.pzConText = "";
  15069. this.addPzDialog = false;
  15070. this.selectPz();
  15071. })
  15072. .catch((err) => {
  15073. this.$message.error("添加失败");
  15074. console.error(err);
  15075. });
  15076. },
  15077. deletePz(id) {
  15078. this.$confirm("确定删除此批注吗?", "提示", {
  15079. confirmButtonText: "确定",
  15080. cancelButtonText: "取消",
  15081. type: "warning",
  15082. })
  15083. .then(() => {
  15084. let params = [
  15085. {
  15086. id: id,
  15087. },
  15088. ];
  15089. this.ajax
  15090. .post(this.$store.state.api + "deletePz", params)
  15091. .then((res) => {
  15092. this.$message({
  15093. message: "删除成功",
  15094. type: "success",
  15095. });
  15096. this.selectPz();
  15097. })
  15098. .catch((err) => {
  15099. this.$message.error("网络异常");
  15100. console.error(err);
  15101. });
  15102. })
  15103. .catch(() => {});
  15104. },
  15105. selectPz() {
  15106. let params = {
  15107. cid: this.id,
  15108. s: this.courseType,
  15109. t: this.taskCount,
  15110. };
  15111. this.ajax
  15112. .get(this.$store.state.api + "selectPzList", params)
  15113. .then((res) => {
  15114. this.pzList = res.data[0];
  15115. })
  15116. .catch((err) => {
  15117. console.error(err);
  15118. });
  15119. },
  15120. updateSLook() {
  15121. let params = {
  15122. sopen: this.sIsOpen == false ? 1 : 2,
  15123. cid: this.id,
  15124. };
  15125. this.ajax
  15126. .get(this.$store.state.api + "updateCourseSLook", params)
  15127. .then((res) => {
  15128. if (this.sIsOpen == true) {
  15129. this.$message({
  15130. message: "权限设置成功",
  15131. type: "success",
  15132. });
  15133. } else {
  15134. this.$message({
  15135. message: "权限关闭成功",
  15136. type: "success",
  15137. });
  15138. }
  15139. })
  15140. .catch((err) => {
  15141. console.error(err);
  15142. });
  15143. },
  15144. updateFollow() {
  15145. let params = [
  15146. {
  15147. sopen: this.IsFollow == false ? 1 : 2,
  15148. cid: this.id,
  15149. },
  15150. ];
  15151. this.ajax
  15152. .post(this.$store.state.api + "updateCourseFollow", params)
  15153. .then((res) => {
  15154. if (this.IsFollow == true) {
  15155. this.$message({
  15156. message: "开启成功",
  15157. type: "success",
  15158. });
  15159. } else {
  15160. this.$message({
  15161. message: "关闭成功",
  15162. type: "success",
  15163. });
  15164. }
  15165. this.setCTask();
  15166. })
  15167. .catch((err) => {
  15168. console.error(err);
  15169. });
  15170. },
  15171. setCTask() {
  15172. let params = [
  15173. {
  15174. sopen: this.courseType + "-" + this.taskCount,
  15175. cid: this.id,
  15176. },
  15177. ];
  15178. this.ajax
  15179. .post(this.$store.state.api + "updateCourseFollowC", params)
  15180. .then((res) => {})
  15181. .catch((err) => {
  15182. console.error(err);
  15183. });
  15184. },
  15185. updateLookOpen() {
  15186. let params = [
  15187. {
  15188. sopen: this.IsLookOpen == false ? 1 : 2,
  15189. cid: this.id,
  15190. },
  15191. ];
  15192. this.ajax
  15193. .post(this.$store.state.api + "updateCourseLookOpen", params)
  15194. .then((res) => {
  15195. if (this.IsLookOpen == true) {
  15196. // if (this.courseType != 0 && this.taskCount != 0) {
  15197. // this.openTask(0, 0, "0-0");
  15198. // }
  15199. this.$message({
  15200. message: "权限设置成功",
  15201. type: "success",
  15202. });
  15203. } else {
  15204. this.$message({
  15205. message: "权限关闭成功",
  15206. type: "success",
  15207. });
  15208. }
  15209. this.getCourseState(2);
  15210. })
  15211. .catch((err) => {
  15212. console.error(err);
  15213. });
  15214. },
  15215. selectSLook() {
  15216. let params = {
  15217. cid: this.id,
  15218. };
  15219. this.ajax
  15220. .get(this.$store.state.api + "selectCourseSLook", params)
  15221. .then((res) => {
  15222. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  15223. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  15224. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  15225. if (!this.IsLookOpen) {
  15226. this.setNavList();
  15227. } else {
  15228. this.getCourseState(1);
  15229. }
  15230. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15231. let _followC = res.data[0][0].followC.split("-");
  15232. if (
  15233. this.courseType != _followC[0] ||
  15234. this.taskCount != _followC[1]
  15235. ) {
  15236. this.navList[this.courseType].isOpen = false;
  15237. this.courseType = _followC[0];
  15238. this.navList[this.courseType].isOpen = true;
  15239. this.taskCount = parseInt(_followC[1]);
  15240. this.navId = res.data[0][0].followC;
  15241. this.getCourseDetail();
  15242. }
  15243. }
  15244. })
  15245. .catch((err) => {
  15246. console.error(err);
  15247. });
  15248. },
  15249. setNavList() {
  15250. if (this.navList.length == 0) {
  15251. this.navList = [];
  15252. for (var l = 0; l < this.chapInfoList.length; l++) {
  15253. var q = this.chapInfoList[l].dyName;
  15254. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15255. var e;
  15256. this.navList.push({
  15257. dyName: q,
  15258. isOpen: l === 0 ? true : false,
  15259. task: [],
  15260. });
  15261. for (var r = 0; r < w.length; r++) {
  15262. e = w[r].task;
  15263. if (this.chapInfoList[l].easy == 1) {
  15264. this.navList[l].task.push({
  15265. taskName: q,
  15266. id: l + "-" + r,
  15267. isLook: w[r].isLook,
  15268. });
  15269. } else {
  15270. this.navList[l].task.push({
  15271. taskName: e,
  15272. id: l + "-" + r,
  15273. isLook: w[r].isLook,
  15274. });
  15275. }
  15276. // this.navId = this.navId ? this.navId : l + "-" + r;
  15277. // this.navId = l + "-" + r;
  15278. }
  15279. }
  15280. this.navList[0].isOpen = false;
  15281. this.navList[this.courseType].isOpen = true;
  15282. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15283. } else {
  15284. this.setNavList2();
  15285. }
  15286. },
  15287. setNavList2() {
  15288. for (var l = 0; l < this.chapInfoList.length; l++) {
  15289. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15290. for (var r = 0; r < w.length; r++) {
  15291. this.navList[l].task[r].isLook = w[r].isLook;
  15292. }
  15293. }
  15294. if (
  15295. this.IsLookOpen &&
  15296. !this.navList[this.courseType].task[this.taskCount].isLook
  15297. ) {
  15298. this.openTask(0, 0, "0-0");
  15299. }
  15300. this.$forceUpdate();
  15301. },
  15302. getCourseState(type) {
  15303. let params = {
  15304. cid: this.id,
  15305. };
  15306. this.ajax
  15307. .get(this.$store.state.api + "getCourseState", params)
  15308. .then((res) => {
  15309. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  15310. this.chapInfoList = JSON.parse(res.data[0][0].state);
  15311. this.setNavList();
  15312. this.$forceUpdate();
  15313. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  15314. this.addCourseState(2);
  15315. } else {
  15316. this.addCourseState(1);
  15317. }
  15318. })
  15319. .catch((err) => {
  15320. console.error(err);
  15321. });
  15322. },
  15323. addCourseState(type) {
  15324. let _state = this.chapInfoList;
  15325. // this.courseType this.taskCount
  15326. if (type == 1 || type == 2) {
  15327. for (var i = 0; i < _state.length; i++) {
  15328. let el = _state[i].chapterInfo[0].taskJson;
  15329. for (var j = 0; j < el.length; j++) {
  15330. // if (i == 0 && j == 0) {
  15331. // el[j].isLook = true;
  15332. // } else {
  15333. // el[j].isLook = false;
  15334. // }
  15335. if (
  15336. this.courseType > i ||
  15337. (this.courseType == i && this.taskCount + 1 > j)
  15338. ) {
  15339. el[j].isLook = true;
  15340. } else {
  15341. el[j].isLook = false;
  15342. }
  15343. }
  15344. }
  15345. }
  15346. let params = [
  15347. {
  15348. cid: this.id,
  15349. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  15350. },
  15351. ];
  15352. this.ajax
  15353. .post(
  15354. this.$store.state.api +
  15355. (type == 1 ? "addCourseState" : "updateCourseSate"),
  15356. params
  15357. )
  15358. .then((res) => {
  15359. if (this.IsLookOpen) {
  15360. this.setNavList();
  15361. }
  15362. if (type == 3 && type == 2) {
  15363. this.getCourseState(1);
  15364. }
  15365. })
  15366. .catch((err) => {
  15367. console.error(err);
  15368. });
  15369. },
  15370. getHomeWork() {
  15371. let params = {
  15372. cid: this.id,
  15373. stage: this.courseType,
  15374. task: this.taskCount,
  15375. uid: this.userid,
  15376. };
  15377. this.ajax
  15378. .get(this.$store.state.api + "selectWork", params)
  15379. .then((res) => {
  15380. if (res.data[0].length > 0) {
  15381. this.studyJuri = JSON.parse(res.data[0][0].content);
  15382. this.isNoHomeWork = true;
  15383. }
  15384. })
  15385. .catch((err) => {
  15386. console.error(err);
  15387. });
  15388. },
  15389. isAssetTypeAnImage(ext) {
  15390. return (
  15391. [
  15392. "png",
  15393. "jpg",
  15394. "jpeg",
  15395. "bmp",
  15396. "gif",
  15397. "webp",
  15398. "psd",
  15399. "svg",
  15400. "tiff",
  15401. ].indexOf(ext) !== -1
  15402. );
  15403. },
  15404. switchVideo(media) {
  15405. this.playerO = {};
  15406. this.playerOptions.poster = "";
  15407. this.playerOptions.sources[0].src = media;
  15408. this.playerO = this.playerOptions;
  15409. },
  15410. onPlayerPlay() {},
  15411. lookVedio(u, i) {
  15412. this.isClickNav = "";
  15413. // this.playerOptions.sources[0].src = u;
  15414. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15415. d.sources[0].src = u;
  15416. this.playerO[0] = d;
  15417. this.showType = 0;
  15418. // this.isClickNav = "video" + i;
  15419. this.isClickNav = i;
  15420. this.$forceUpdate();
  15421. },
  15422. lookText(i, t) {
  15423. this.isClickNav = "";
  15424. // this.text = this.textList[i][t];
  15425. this.text = this.vChapterData[i][t];
  15426. // this.dialogVisible1 = true;
  15427. this.showType = 1;
  15428. // this.isClickNav = "text" + t;
  15429. this.isClickNav = t;
  15430. },
  15431. lookTools(i, t) {
  15432. this.chapTools = this.chapToolList[i][t];
  15433. this.dialogVisible2 = true;
  15434. },
  15435. openFile(f) {
  15436. this.pptImgUrl = "";
  15437. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15438. if (
  15439. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  15440. -1
  15441. ) {
  15442. this.pptImgUrl =
  15443. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  15444. this.showPDF = false;
  15445. this.dialogVisible3 = true;
  15446. } else if (
  15447. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15448. ) {
  15449. this.pptImgUrl = f;
  15450. this.showPDF = true;
  15451. this.dialogVisible3 = true;
  15452. }
  15453. },
  15454. openTable(f) {
  15455. this.tableJson = JSON.parse(f.works);
  15456. this.$forceUpdate();
  15457. this.dialogVisibleTable2 = true;
  15458. },
  15459. openWord(f) {
  15460. this.tableJson = JSON.parse(f.works);
  15461. this.$forceUpdate();
  15462. this.dialogVisibleTable3 = true;
  15463. },
  15464. doUrl(url, i) {
  15465. this.isClickNav = "";
  15466. this.pptImgUrl1 = "";
  15467. this.showType = 2;
  15468. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  15469. url = "https://" + url;
  15470. }
  15471. this.pptImgUrl1 = url;
  15472. // this.isClickNav = "line" + i;
  15473. this.isClickNav = i;
  15474. },
  15475. checkPhoto(f, i) {
  15476. this.showType = 4;
  15477. this.pptImgUrl1 = f.url;
  15478. this.isClickNav = i;
  15479. this.$forceUpdate();
  15480. },
  15481. downFile(f, i) {
  15482. this.isClickNav = "";
  15483. this.pptImgUrl1 = "";
  15484. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  15485. if (
  15486. a.indexOf(
  15487. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  15488. ) != -1
  15489. ) {
  15490. this.pptImgUrl1 =
  15491. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  15492. // this.dialogVisible3 = true;
  15493. this.showType = 2;
  15494. } else if (
  15495. this.isAssetTypeAnImage(
  15496. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  15497. )
  15498. ) {
  15499. this.showType = 4;
  15500. this.pptImgUrl1 = f.url;
  15501. } else if (
  15502. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  15503. "PDF"
  15504. ) {
  15505. this.pptImgUrl1 = f.url;
  15506. // this.dialogVisible3 = true;
  15507. this.showType = 3;
  15508. } else {
  15509. window.open(this.file[i].url);
  15510. }
  15511. this.isClickNav = i;
  15512. // this.isClickNav = "word" + i;
  15513. },
  15514. downFileList(i) {
  15515. window.open(this.noImgList[i].url);
  15516. },
  15517. openAddWork() {
  15518. this.dialogVisible = true;
  15519. },
  15520. addBzWorks() {
  15521. let params = [
  15522. {
  15523. uid: this.userid,
  15524. cid: this.id,
  15525. stage: this.courseType,
  15526. task: this.taskCount,
  15527. tool: this.toolindex,
  15528. content: JSON.stringify(this.eScore),
  15529. type: 6,
  15530. },
  15531. ];
  15532. this.ajax
  15533. .post(this.$store.state.api + "addCourseWorks", params)
  15534. .then((res) => {
  15535. this.$message({
  15536. message: "提交成功",
  15537. type: "success",
  15538. });
  15539. this.eScore = { eBzText: "", eStar: [] };
  15540. this.studentEvalDialogVisible = false;
  15541. this.selectSWorks();
  15542. })
  15543. .catch((err) => {
  15544. this.$message.error("提交失败");
  15545. console.error(err);
  15546. });
  15547. },
  15548. addBzWorksTeacher() {
  15549. let params = [
  15550. {
  15551. uid: this.sStudent.userid,
  15552. cid: this.id,
  15553. stage: this.courseType,
  15554. task: this.taskCount,
  15555. tool: this.toolindex,
  15556. content: JSON.stringify(this.eScore),
  15557. type: 6,
  15558. },
  15559. ];
  15560. this.ajax
  15561. .post(this.$store.state.api + "addCourseWorks", params)
  15562. .then((res) => {
  15563. this.$message({
  15564. message: "提交成功",
  15565. type: "success",
  15566. });
  15567. this.eScore = { eBzText: "", eStar: [] };
  15568. this.studentEvalDialogVisibleTeacher = false;
  15569. this.selectSWorks();
  15570. })
  15571. .catch((err) => {
  15572. this.$message.error("提交失败");
  15573. console.error(err);
  15574. });
  15575. },
  15576. addStudentAsk() {
  15577. if (!this.radio.length) {
  15578. this.$message.error("请选择选项");
  15579. return;
  15580. }
  15581. for (var i = 0; i < this.askJson.askCount; i++) {
  15582. if (
  15583. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15584. (this.radio[i] !== 0 && !this.radio[i])
  15585. ) {
  15586. this.$message.error("请选择选项");
  15587. return;
  15588. }
  15589. }
  15590. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15591. let params = [
  15592. {
  15593. uid: this.userid,
  15594. cid: this.id,
  15595. stage: this.courseType,
  15596. task: this.taskCount,
  15597. tool: this.toolindex,
  15598. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15599. type: 2,
  15600. },
  15601. ];
  15602. this.ajax
  15603. .post(this.$store.state.api + "addCourseWorks", params)
  15604. .then((res) => {
  15605. this.$message({
  15606. message: "提交成功",
  15607. type: "success",
  15608. });
  15609. this.askList = [];
  15610. this.dialogVisible5 = false;
  15611. this.selectStudent();
  15612. this.selectSWorks();
  15613. this.selectSLook();
  15614. })
  15615. .catch((err) => {
  15616. this.$message.error("提交失败");
  15617. console.error(err);
  15618. });
  15619. },
  15620. addStudentAskTeacher() {
  15621. if (!this.radio.length) {
  15622. this.$message.error("请选择选项");
  15623. return;
  15624. }
  15625. for (var i = 0; i < this.askJson.askCount; i++) {
  15626. if (
  15627. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15628. (this.radio[i] !== 0 && !this.radio[i])
  15629. ) {
  15630. this.$message.error("请选择选项");
  15631. return;
  15632. }
  15633. }
  15634. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15635. let params = [
  15636. {
  15637. uid: this.sStudent.userid,
  15638. cid: this.id,
  15639. stage: this.courseType,
  15640. task: this.taskCount,
  15641. tool: this.toolindex,
  15642. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15643. type: 2,
  15644. },
  15645. ];
  15646. this.ajax
  15647. .post(this.$store.state.api + "addCourseWorks", params)
  15648. .then((res) => {
  15649. this.$message({
  15650. message: "提交成功",
  15651. type: "success",
  15652. });
  15653. this.askList = [];
  15654. this.dialogVisible5Teacher = false;
  15655. this.selectStudent();
  15656. this.selectSWorks();
  15657. this.selectSLook();
  15658. })
  15659. .catch((err) => {
  15660. this.$message.error("提交失败");
  15661. console.error(err);
  15662. });
  15663. },
  15664. addStudentTest() {
  15665. if (!this.radio.length) {
  15666. this.$message.error("请选择选项");
  15667. return;
  15668. }
  15669. for (var i = 0; i < this.testJson.testCount; i++) {
  15670. if (
  15671. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15672. (this.radio[i] !== 0 && !this.radio[i])
  15673. ) {
  15674. this.$message.error("请选择选项");
  15675. return;
  15676. }
  15677. }
  15678. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15679. let params = [
  15680. {
  15681. uid: this.userid,
  15682. cid: this.id,
  15683. stage: this.courseType,
  15684. task: this.taskCount,
  15685. tool: this.toolindex,
  15686. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15687. type: 8,
  15688. },
  15689. ];
  15690. this.ajax
  15691. .post(this.$store.state.api + "addCourseWorks", params)
  15692. .then((res) => {
  15693. this.$message({
  15694. message: "提交成功",
  15695. type: "success",
  15696. });
  15697. this.askList = [];
  15698. this.dialogVisibleChoice = false;
  15699. this.selectStudent();
  15700. this.selectSWorks();
  15701. this.selectSLook();
  15702. })
  15703. .catch((err) => {
  15704. this.$message.error("提交失败");
  15705. console.error(err);
  15706. });
  15707. },
  15708. addStudentTestTeacher() {
  15709. if (!this.radio.length) {
  15710. this.$message.error("请选择选项");
  15711. return;
  15712. }
  15713. for (var i = 0; i < this.testJson.testCount; i++) {
  15714. if (
  15715. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15716. (this.radio[i] !== 0 && !this.radio[i])
  15717. ) {
  15718. this.$message.error("请选择选项");
  15719. return;
  15720. }
  15721. }
  15722. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15723. let params = [
  15724. {
  15725. uid: this.sStudent.userid,
  15726. cid: this.id,
  15727. stage: this.courseType,
  15728. task: this.taskCount,
  15729. tool: this.toolindex,
  15730. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15731. type: 8,
  15732. },
  15733. ];
  15734. this.ajax
  15735. .post(this.$store.state.api + "addCourseWorks", params)
  15736. .then((res) => {
  15737. this.$message({
  15738. message: "提交成功",
  15739. type: "success",
  15740. });
  15741. this.askList = [];
  15742. this.dialogVisibleChoiceTeacher = false;
  15743. this.selectStudent();
  15744. this.selectSWorks();
  15745. this.selectSLook();
  15746. })
  15747. .catch((err) => {
  15748. this.$message.error("提交失败");
  15749. console.error(err);
  15750. });
  15751. },
  15752. addWork() {
  15753. if (this.studyJuri[0].content == "") {
  15754. this.$message.error("请将信息填写完整");
  15755. return;
  15756. } else if (this.studyJuri[0].cover.length == 0) {
  15757. this.$message.error("请将信息填写完整");
  15758. return;
  15759. } else if (this.studyJuri[0].upVedio.length == 0) {
  15760. this.$message.error("请将信息填写完整");
  15761. return;
  15762. }
  15763. if (this.isNoHomeWork) {
  15764. this.$confirm(
  15765. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  15766. "提示",
  15767. {
  15768. confirmButtonText: "确定",
  15769. cancelButtonText: "取消",
  15770. type: "warning",
  15771. }
  15772. )
  15773. .then(() => {
  15774. let params = [
  15775. {
  15776. uid: this.userid,
  15777. cid: this.id,
  15778. stage: this.courseType,
  15779. task: this.taskCount,
  15780. content: JSON.stringify(this.studyJuri),
  15781. },
  15782. ];
  15783. this.ajax
  15784. .post(this.$store.state.api + "addWorks", params)
  15785. .then((res) => {
  15786. this.$message({
  15787. message: "提交成功",
  15788. type: "success",
  15789. });
  15790. this.isNoHomeWork = true;
  15791. this.dialogVisible = false;
  15792. })
  15793. .catch((err) => {
  15794. this.$message.error("提交失败");
  15795. console.error(err);
  15796. });
  15797. })
  15798. .catch(() => {});
  15799. } else {
  15800. let params = [
  15801. {
  15802. uid: this.userid,
  15803. cid: this.id,
  15804. stage: this.courseType,
  15805. task: this.taskCount,
  15806. content: JSON.stringify(this.studyJuri),
  15807. },
  15808. ];
  15809. this.ajax
  15810. .post(this.$store.state.api + "addWorks", params)
  15811. .then((res) => {
  15812. this.$message({
  15813. message: "提交成功",
  15814. type: "success",
  15815. });
  15816. this.isNoHomeWork = true;
  15817. this.dialogVisible = false;
  15818. })
  15819. .catch((err) => {
  15820. this.$message.error("提交失败");
  15821. console.error(err);
  15822. });
  15823. }
  15824. },
  15825. selectCount() {
  15826. let params = {
  15827. cid: this.id,
  15828. chid: this.courseType,
  15829. uid: this.userid,
  15830. };
  15831. this.ajax
  15832. .get(this.$store.state.api + "selectToolsCount", params)
  15833. .then((res) => {
  15834. for (var i = 0; i < res.data[0].length; i++) {
  15835. if (res.data[0][i].tools == 1) {
  15836. this.wbCount = res.data[0][i].count;
  15837. } else if (res.data[0][i].tools == 2) {
  15838. this.wordCount = res.data[0][i].count;
  15839. } else if (res.data[0][i].tools == 3) {
  15840. this.mindCount = res.data[0][i].count;
  15841. } else if (res.data[0][i].tools == 4) {
  15842. this.askCount = res.data[0][i].count;
  15843. } else if (res.data[0][i].tools == 6) {
  15844. this.noteCount = res.data[0][i].count;
  15845. } else if (res.data[0][i].tools == 7) {
  15846. this.mindNetWorkCount = res.data[0][i].count;
  15847. } else if (res.data[0][i].tools == 8) {
  15848. this.libraryCount = res.data[0][i].count;
  15849. } else if (res.data[0][i].tools == 16) {
  15850. this.workCount = res.data[0][i].count;
  15851. } else if (res.data[0][i].tools == 10) {
  15852. this.timeCount = res.data[0][i].count;
  15853. } else if (res.data[0][i].tools == 15) {
  15854. this.answerCount = res.data[0][i].count;
  15855. } else if (res.data[0][i].tools == 18) {
  15856. this.trainCount = res.data[0][i].count;
  15857. }
  15858. }
  15859. })
  15860. .catch((err) => {
  15861. console.error(err);
  15862. });
  15863. },
  15864. openTools(t, i, index, c, sName) {
  15865. var z = JSON.parse(c);
  15866. this.noteName = sName;
  15867. if (t == 4) {
  15868. this.radio = [];
  15869. this.isAnswer = false;
  15870. let b = z[0].anwer;
  15871. this.radio = b;
  15872. this.askJson = z[0].askJson;
  15873. this.isAnswer = true;
  15874. this.dialogVisible5 = true;
  15875. } else if (t == 45) {
  15876. this.radio = [];
  15877. this.isAnswer = false;
  15878. let b = z[0].anwer;
  15879. this.radio = b;
  15880. this.testJson = z[0].testJson;
  15881. this.isAnswer = true;
  15882. this.dialogVisibleChoice = true;
  15883. }
  15884. // else if (t == 15) {
  15885. // this.answerQ = "";
  15886. // this.questionAnswer = "";
  15887. // this.answerQ = z[0].answerTitle;
  15888. // this.questionAnswer = z[0].answer;
  15889. // this.answerDialogVisible = true;
  15890. // }
  15891. },
  15892. fastText(p, t) {
  15893. if (t == 1) {
  15894. this.commentText += p;
  15895. } else {
  15896. this.eScore.eBzText += p;
  15897. }
  15898. },
  15899. addTools(t, i, index) {
  15900. var a = 0;
  15901. // this.taskCount = index;
  15902. this.toolindex = i;
  15903. if (t == 1) {
  15904. if (this.wbCount > 0) {
  15905. this.updateCount(this.wbCount, t);
  15906. } else {
  15907. this.wbCount++;
  15908. a = this.wbCount;
  15909. this.toolsCount(a, t);
  15910. }
  15911. window.parent.postMessage(
  15912. {
  15913. tools: "1",
  15914. cid: this.id,
  15915. stage: this.courseType,
  15916. task: this.taskCount,
  15917. tool: i,
  15918. },
  15919. "*"
  15920. );
  15921. } else if (t == 2) {
  15922. if (this.wordCount > 0) {
  15923. this.updateCount(this.wordCount, t);
  15924. } else {
  15925. this.wordCount++;
  15926. a = this.wordCount;
  15927. this.toolsCount(a, t);
  15928. }
  15929. window.parent.postMessage({ tools: "2" }, "*");
  15930. } else if (t == 3) {
  15931. if (this.mindCount > 0) {
  15932. this.updateCount(this.mindCount, t);
  15933. } else {
  15934. this.mindCount++;
  15935. a = this.mindCount;
  15936. this.toolsCount(a, t);
  15937. }
  15938. window.parent.postMessage(
  15939. {
  15940. tools: "3",
  15941. cid: this.id,
  15942. stage: this.courseType,
  15943. task: this.taskCount,
  15944. tool: i,
  15945. },
  15946. "*"
  15947. );
  15948. } else if (t == 4) {
  15949. this.radio = [];
  15950. this.noteName = "";
  15951. this.isAnswer = false;
  15952. if (this.askCount > 0) {
  15953. this.updateCount(this.askCount, t);
  15954. } else {
  15955. this.askCount++;
  15956. a = this.askCount;
  15957. this.toolsCount(a, t);
  15958. }
  15959. this.askJson.askJson =
  15960. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15961. index
  15962. ].toolChoose[i].askJson;
  15963. this.askJson.askTitle =
  15964. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15965. index
  15966. ].toolChoose[i].askTitle;
  15967. this.askJson.askCount =
  15968. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15969. index
  15970. ].toolChoose[i].askCount;
  15971. for (var k = 0; k < this.askJson.askJson.length; k++) {
  15972. if (this.askJson.askJson[k].type == "2") {
  15973. this.radio.push([]);
  15974. } else {
  15975. this.radio.push("");
  15976. }
  15977. }
  15978. this.dialogVisible5 = true;
  15979. // window.parent.postMessage({ tools: "4" }, "*");
  15980. } else if (t == 45) {
  15981. this.noteName = "";
  15982. this.radio = [];
  15983. this.isAnswer = false;
  15984. if (this.askCount > 0) {
  15985. this.updateCount(this.askCount, t);
  15986. } else {
  15987. this.askCount++;
  15988. a = this.askCount;
  15989. this.toolsCount(a, t);
  15990. }
  15991. this.testJson =
  15992. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15993. index
  15994. ].toolChoose[i].testJson;
  15995. for (var k = 0; k < this.testJson.testJson.length; k++) {
  15996. if (this.testJson.testJson[k].type == "2") {
  15997. this.radio.push([]);
  15998. } else {
  15999. this.radio.push("");
  16000. }
  16001. }
  16002. this.dialogVisibleChoice = true;
  16003. // window.parent.postMessage({ tools: "4" }, "*");
  16004. } else if (t == 5) {
  16005. if (this.scoreCount > 0) {
  16006. this.updateCount(this.scoreCount, t);
  16007. } else {
  16008. this.scoreCount++;
  16009. a = this.scoreCount;
  16010. this.toolsCount(a, t);
  16011. }
  16012. this.dialogVisible4 = true;
  16013. // window.parent.postMessage({ tools: "5" }, "*");
  16014. } else if (t == 6) {
  16015. if (this.noteCount > 0) {
  16016. this.updateCount(this.noteCount, t);
  16017. } else {
  16018. this.noteCount++;
  16019. a = this.noteCount;
  16020. this.toolsCount(a, t);
  16021. }
  16022. window.parent.postMessage(
  16023. {
  16024. tools: "6",
  16025. cid: this.id,
  16026. stage: this.courseType,
  16027. task: this.taskCount,
  16028. tool: i,
  16029. },
  16030. "*"
  16031. );
  16032. } else if (t == 7) {
  16033. if (this.mindNetWorkCount > 0) {
  16034. this.updateCount(this.mindNetWorkCount, t);
  16035. } else {
  16036. this.mindNetWorkCount++;
  16037. a = this.mindNetWorkCount;
  16038. this.toolsCount(a, t);
  16039. }
  16040. window.parent.postMessage(
  16041. {
  16042. tools: "7",
  16043. cid: this.id,
  16044. stage: this.courseType,
  16045. task: this.taskCount,
  16046. tool: i,
  16047. },
  16048. "*"
  16049. );
  16050. } else if (t == 16) {
  16051. if (this.workCount > 0) {
  16052. this.updateCount(this.workCount, t);
  16053. } else {
  16054. this.workCount++;
  16055. a = this.workCount;
  16056. this.toolsCount(a, t);
  16057. }
  16058. this.dialogVisible = true;
  16059. } else if (t == 50) {
  16060. if (this.tType == 2) {
  16061. this.$message.error("不支持学生使用");
  16062. return;
  16063. }
  16064. this.plworkFile = [];
  16065. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16066. if (!this.uploadCid) {
  16067. this.$message.error(
  16068. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16069. );
  16070. return;
  16071. }
  16072. this.selectUploadStudent(2);
  16073. } else if (t == 8) {
  16074. if (this.libraryCount > 0) {
  16075. this.updateCount(this.libraryCount, t);
  16076. } else {
  16077. this.libraryCount++;
  16078. a = this.libraryCount;
  16079. this.toolsCount(a, t);
  16080. }
  16081. window.parent.postMessage({ tools: "8" }, "*");
  16082. } else if (t == 17) {
  16083. if (this.libraryCount > 0) {
  16084. this.updateCount(this.libraryCount, t);
  16085. } else {
  16086. this.libraryCount++;
  16087. a = this.libraryCount;
  16088. this.toolsCount(a, t);
  16089. }
  16090. window.parent.postMessage({ tools: "17" }, "*");
  16091. } else if (t == 18) {
  16092. if (this.trainCount > 0) {
  16093. this.updateCount(this.trainCount, t);
  16094. } else {
  16095. this.trainCount++;
  16096. a = this.trainCount;
  16097. this.toolsCount(a, t);
  16098. }
  16099. window.parent.postMessage({ tools: "18" }, "*");
  16100. } else if (t == 10) {
  16101. if (this.timeCount > 0) {
  16102. this.updateCount(this.timeCount, t);
  16103. } else {
  16104. this.timeCount++;
  16105. a = this.timeCount;
  16106. this.toolsCount(a, t);
  16107. }
  16108. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  16109. .taskJson[index].toolChoose[i].preTime
  16110. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16111. .toolChoose[i].preTime
  16112. : "";
  16113. this.timeDialogVisible = true;
  16114. } else if (t == 15) {
  16115. this.answerQ = "";
  16116. this.questionAnswer = "";
  16117. if (this.answerCount > 0) {
  16118. this.updateCount(this.answerCount, t);
  16119. } else {
  16120. this.answerCount++;
  16121. a = this.answerCount;
  16122. this.toolsCount(a, t);
  16123. }
  16124. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16125. .taskJson[index].toolChoose[i].answerQ
  16126. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16127. .toolChoose[i].answerQ
  16128. : "";
  16129. this.answerDialogVisible = true;
  16130. } else if (t == 21) {
  16131. window.parent.postMessage({ tools: "21" }, "*");
  16132. } else if (t == 22) {
  16133. window.parent.postMessage({ tools: "22" }, "*");
  16134. } else if (t == 23) {
  16135. window.parent.postMessage({ tools: "23" }, "*");
  16136. } else if (t == 24) {
  16137. window.parent.postMessage({ tools: "24" }, "*");
  16138. } else if (t == 25) {
  16139. window.parent.postMessage({ tools: "25" }, "*");
  16140. } else if (t == 31) {
  16141. window.parent.postMessage({ tools: "31" }, "*");
  16142. } else if (t == 28) {
  16143. window.parent.postMessage({ tools: "28" }, "*");
  16144. } else if (t == 37) {
  16145. window.parent.postMessage({ tools: "37" }, "*");
  16146. } else if (t == 38) {
  16147. window.parent.postMessage({ tools: "38" }, "*");
  16148. } else if (t == 39) {
  16149. window.parent.postMessage({ tools: "39" }, "*");
  16150. } else if (t == 32) {
  16151. window.parent.postMessage({ tools: "32" }, "*");
  16152. } else if (t == 57) {
  16153. // window.parent.postMessage({ tools: "57" }, "*");
  16154. window.parent.postMessage(
  16155. {
  16156. tools: "57u",
  16157. cid: this.id,
  16158. stage: this.courseType,
  16159. task: this.taskCount,
  16160. tool: i,
  16161. },
  16162. "*"
  16163. );
  16164. } else if (t == 58) {
  16165. window.parent.postMessage({ tools: "58" }, "*");
  16166. } else if (t == 59) {
  16167. window.parent.postMessage({ tools: "59" }, "*");
  16168. } else if (t == 60) {
  16169. window.parent.postMessage({ tools: "60" }, "*");
  16170. } else if (t == 61) {
  16171. window.parent.postMessage({ tools: "61" }, "*");
  16172. } else if (t == 63) {
  16173. window.parent.postMessage({ tools: "63" }, "*");
  16174. } else if (t == 26) {
  16175. window.parent.postMessage(
  16176. {
  16177. tools: "26",
  16178. cid: this.id,
  16179. stage: this.courseType,
  16180. task: this.taskCount,
  16181. tool: i,
  16182. },
  16183. "*"
  16184. );
  16185. } else if (t == 40) {
  16186. if (this.evalCount > 0) {
  16187. this.updateCount(this.evalCount, t);
  16188. } else {
  16189. this.evalCount++;
  16190. a = this.evalCount;
  16191. this.toolsCount(a, t);
  16192. }
  16193. this.eScore = { eBzText: "", eStar: [] };
  16194. if (this.worksStudent[i].length) {
  16195. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16196. if (this.userid == this.worksStudent[i][k].userid) {
  16197. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16198. this.rateJson =
  16199. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16200. index
  16201. ].toolChoose[i].rateJson;
  16202. break;
  16203. } else {
  16204. this.rateJson =
  16205. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16206. index
  16207. ].toolChoose[i].rateJson;
  16208. }
  16209. }
  16210. } else {
  16211. this.rateJson =
  16212. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16213. index
  16214. ].toolChoose[i].rateJson;
  16215. }
  16216. this.isStar = false;
  16217. this.studentEvalDialogVisible = true;
  16218. } else if (t == 41) {
  16219. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16220. .taskJson[index].toolChoose[i].selectJson
  16221. ? JSON.parse(
  16222. JSON.stringify(
  16223. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16224. index
  16225. ].toolChoose[i].selectJson
  16226. )
  16227. )
  16228. : { url: "", select: [], answer: [] };
  16229. if (this.worksStudent[i].length) {
  16230. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16231. if (this.userid == this.worksStudent[i][k].userid) {
  16232. var a = this.worksStudent[i][k].works.split(",");
  16233. for (var ki = 0; ki < a.length; ki++) {
  16234. a[ki] = parseInt(a[ki]);
  16235. }
  16236. this.selectAnswer = {
  16237. answer: a,
  16238. stu: this.worksStudent[i][k].sName,
  16239. };
  16240. break;
  16241. } else {
  16242. this.selectAnswer = { answer: [], stu: "" };
  16243. }
  16244. }
  16245. } else {
  16246. this.selectAnswer = { answer: [], stu: "" };
  16247. }
  16248. this.isSelect = false;
  16249. this.dialogVisibleSelect = true;
  16250. } else if (t == 44) {
  16251. window.parent.postMessage({ tools: "44" }, "*");
  16252. } else if (t == 47) {
  16253. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16254. .taskJson[index].toolChoose[i].sentenceList
  16255. ? JSON.parse(
  16256. JSON.stringify(
  16257. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16258. index
  16259. ].toolChoose[i].sentenceList
  16260. )
  16261. )
  16262. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16263. for (var q = 0; q < this.sentenceList.length; q++) {
  16264. this.sentenceList[q].chooseSenList = [];
  16265. this.sentenceList[q].addChangeSen = [];
  16266. this.sentenceList[q].addChangeSen = JSON.parse(
  16267. JSON.stringify(this.sentenceList[q].addSentence)
  16268. );
  16269. this.sentenceList[q].chooseSenList.length =
  16270. this.sentenceList[q].rightAnswer.length;
  16271. }
  16272. this.dialogVisibleSentence = true;
  16273. } else if (t == 48) {
  16274. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16275. .taskJson[index].toolChoose[i].tableJson
  16276. ? JSON.parse(
  16277. JSON.stringify(
  16278. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16279. index
  16280. ].toolChoose[i].tableJson
  16281. )
  16282. )
  16283. : { text: "" };
  16284. if (this.worksStudent[i].length) {
  16285. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16286. if (this.userid == this.worksStudent[i][k].userid) {
  16287. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16288. break;
  16289. }
  16290. }
  16291. }
  16292. this.dialogVisibleTable = true;
  16293. } else if (t == 52) {
  16294. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16295. .taskJson[index].toolChoose[i].wordJson
  16296. ? JSON.parse(
  16297. JSON.stringify(
  16298. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16299. index
  16300. ].toolChoose[i].wordJson
  16301. )
  16302. )
  16303. : { text: "" };
  16304. this.dialogVisibleWord = true;
  16305. } else if (t == 49) {
  16306. this.groupJson =
  16307. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16308. index
  16309. ].toolChoose[i].groupJson;
  16310. this.dialogVisibleGroup = true;
  16311. } else if (t == 62) {
  16312. this.videoJson =
  16313. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16314. index
  16315. ].toolChoose[i].videoJson;
  16316. this.dialogVisibleVideo = true;
  16317. }
  16318. },
  16319. teacherWorkSubmit(t, i, index, s) {
  16320. this.sStudent = s;
  16321. this.sTool = t;
  16322. this.toolindex = i;
  16323. if (this.tType !== "1" && this.tType !== "4") {
  16324. return;
  16325. }
  16326. if (t == 16 || t == 32 || t == 50) {
  16327. this.dialogVisibleWorks = true; //作业提交
  16328. } else if (t == 15) {
  16329. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16330. .taskJson[index].toolChoose[i].answerQ
  16331. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16332. .toolChoose[i].answerQ
  16333. : "";
  16334. this.questionAnswer = "";
  16335. this.answerDialogVisibleTeacher = true; //问答
  16336. } else if (t == 52) {
  16337. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16338. .taskJson[index].toolChoose[i].wordJson
  16339. ? JSON.parse(
  16340. JSON.stringify(
  16341. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16342. index
  16343. ].toolChoose[i].wordJson
  16344. )
  16345. )
  16346. : { text: "" };
  16347. this.dialogVisibleWordTeacher = true; //文档
  16348. } else if (t == 4) {
  16349. this.radio = [];
  16350. this.noteName = "";
  16351. this.isAnswer = false;
  16352. if (this.askCount > 0) {
  16353. this.updateCount(this.askCount, t);
  16354. } else {
  16355. this.askCount++;
  16356. a = this.askCount;
  16357. this.toolsCount(a, t);
  16358. }
  16359. if (!this.dialogVisible2) {
  16360. this.askJson.askJson =
  16361. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16362. index
  16363. ].toolChoose[i].askJson;
  16364. this.askJson.askTitle =
  16365. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16366. index
  16367. ].toolChoose[i].askTitle;
  16368. this.askJson.askCount =
  16369. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16370. index
  16371. ].toolChoose[i].askCount;
  16372. } else {
  16373. this.askJson.askJson = this.chapTools.askJson.askJson;
  16374. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16375. this.askJson.askCount = this.chapTools.askJson.askCount;
  16376. }
  16377. this.dialogVisible5Teacher = true;
  16378. } else if (t == 45) {
  16379. this.noteName = "";
  16380. this.radio = [];
  16381. this.isAnswer = false;
  16382. if (this.askCount > 0) {
  16383. this.updateCount(this.askCount, t);
  16384. } else {
  16385. this.askCount++;
  16386. a = this.askCount;
  16387. this.toolsCount(a, t);
  16388. }
  16389. this.testJson =
  16390. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16391. index
  16392. ].toolChoose[i].testJson;
  16393. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16394. if (this.testJson.testJson[k].type == "2") {
  16395. this.radio.push([]);
  16396. } else {
  16397. this.radio.push("");
  16398. }
  16399. }
  16400. this.dialogVisibleChoiceTeacher = true;
  16401. } else if (t == 41) {
  16402. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16403. .taskJson[index].toolChoose[i].selectJson
  16404. ? JSON.parse(
  16405. JSON.stringify(
  16406. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16407. index
  16408. ].toolChoose[i].selectJson
  16409. )
  16410. )
  16411. : { url: "", select: [], answer: [] };
  16412. if (this.worksStudent[i].length) {
  16413. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16414. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16415. var a = this.worksStudent[i][k].works.split(",");
  16416. for (var ki = 0; ki < a.length; ki++) {
  16417. a[ki] = parseInt(a[ki]);
  16418. }
  16419. this.selectAnswer = {
  16420. answer: a,
  16421. stu: this.worksStudent[i][k].sName,
  16422. };
  16423. break;
  16424. } else {
  16425. this.selectAnswer = { answer: [], stu: "" };
  16426. }
  16427. }
  16428. } else {
  16429. this.selectAnswer = { answer: [], stu: "" };
  16430. }
  16431. this.isSelect = false;
  16432. this.dialogVisibleSelectTeacher = true;
  16433. } else if (t == 47) {
  16434. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16435. .taskJson[index].toolChoose[i].sentenceList
  16436. ? JSON.parse(
  16437. JSON.stringify(
  16438. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16439. index
  16440. ].toolChoose[i].sentenceList
  16441. )
  16442. )
  16443. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16444. for (var q = 0; q < this.sentenceList.length; q++) {
  16445. this.sentenceList[q].chooseSenList = [];
  16446. this.sentenceList[q].addChangeSen = [];
  16447. this.sentenceList[q].addChangeSen = JSON.parse(
  16448. JSON.stringify(this.sentenceList[q].addSentence)
  16449. );
  16450. this.sentenceList[q].chooseSenList.length =
  16451. this.sentenceList[q].rightAnswer.length;
  16452. }
  16453. this.dialogVisibleSentenceTeacher = true;
  16454. } else if (t == 48) {
  16455. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16456. .taskJson[index].toolChoose[i].tableJson
  16457. ? JSON.parse(
  16458. JSON.stringify(
  16459. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16460. index
  16461. ].toolChoose[i].tableJson
  16462. )
  16463. )
  16464. : { text: "" };
  16465. if (this.worksStudent[i].length) {
  16466. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16467. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16468. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16469. break;
  16470. }
  16471. }
  16472. }
  16473. this.dialogVisibleTableTeacher = true;
  16474. } else if (t == 40) {
  16475. if (this.evalCount > 0) {
  16476. this.updateCount(this.evalCount, t);
  16477. } else {
  16478. this.evalCount++;
  16479. a = this.evalCount;
  16480. this.toolsCount(a, t);
  16481. }
  16482. this.eScore = { eBzText: "", eStar: [] };
  16483. if (this.worksStudent[i].length) {
  16484. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16485. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16486. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16487. this.rateJson =
  16488. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16489. index
  16490. ].toolChoose[i].rateJson;
  16491. break;
  16492. } else {
  16493. this.rateJson =
  16494. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16495. index
  16496. ].toolChoose[i].rateJson;
  16497. }
  16498. }
  16499. } else {
  16500. this.rateJson =
  16501. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16502. index
  16503. ].toolChoose[i].rateJson;
  16504. }
  16505. this.isStar = false;
  16506. this.studentEvalDialogVisibleTeacher = true;
  16507. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  16508. window.parent.postMessage(
  16509. {
  16510. tools: t + "teacher",
  16511. cid: this.id,
  16512. stage: this.courseType,
  16513. task: this.taskCount,
  16514. tool: i,
  16515. student: this.sStudent,
  16516. },
  16517. "*"
  16518. );
  16519. }
  16520. },
  16521. openCocoPi(tool, i, uid, uname) {
  16522. let student = {
  16523. userid: uid,
  16524. student: uname,
  16525. };
  16526. if (tool == 57) {
  16527. window.parent.postMessage(
  16528. {
  16529. tools: tool + "teacher",
  16530. cid: this.id,
  16531. stage: this.courseType,
  16532. task: this.taskCount,
  16533. tool: i,
  16534. student: student,
  16535. },
  16536. "*"
  16537. );
  16538. }
  16539. },
  16540. setRightAnswer(s, i, j) {
  16541. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  16542. if (
  16543. this.sentenceList[i].chooseSenList[q] == undefined ||
  16544. this.sentenceList[i].chooseSenList[q] == ""
  16545. ) {
  16546. this.sentenceList[i].chooseSenList[q] = s;
  16547. this.sentenceList[i].addChangeSen[j] = "";
  16548. break;
  16549. }
  16550. }
  16551. this.$forceUpdate();
  16552. },
  16553. returnCard(r, i, j) {
  16554. var a = this.sentenceList[i].addSentence.indexOf(r);
  16555. this.sentenceList[i].chooseSenList[j] = "";
  16556. this.sentenceList[i].addChangeSen[a] = r;
  16557. this.$forceUpdate();
  16558. },
  16559. // addSentenceTool() {
  16560. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16561. // this.taskCount
  16562. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  16563. // this.sentenceList = [
  16564. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  16565. // ];
  16566. // this.dialogVisibleSentence = false;
  16567. // },
  16568. toolsCount(a, t) {
  16569. let params = {
  16570. cid: this.id,
  16571. chid: this.courseType,
  16572. uid: this.userid,
  16573. tid: t,
  16574. count: a,
  16575. };
  16576. this.ajax
  16577. .get(this.$store.state.api + "insertToolsCount", params)
  16578. .then((res) => {
  16579. this.selectCount();
  16580. })
  16581. .catch((err) => {
  16582. console.error(err);
  16583. });
  16584. },
  16585. updateCount(c, t) {
  16586. c++;
  16587. let params = {
  16588. cid: this.id,
  16589. chid: this.courseType,
  16590. uid: this.userid,
  16591. tid: t,
  16592. count: c,
  16593. };
  16594. this.ajax
  16595. .get(this.$store.state.api + "updateToolsCount", params)
  16596. .then((res) => {
  16597. this.selectCount();
  16598. })
  16599. .catch((err) => {
  16600. console.error(err);
  16601. });
  16602. },
  16603. checkEva() {
  16604. if (this.evalua != "") {
  16605. for (var i = 0; i < this.evaJuri.length; i++) {
  16606. if (this.evalua == this.evaJuri[i].id) {
  16607. this.eTitle = this.evaJuri[i].title;
  16608. this.eJson = JSON.parse(this.evaJuri[i].content);
  16609. }
  16610. }
  16611. this.$forceUpdate();
  16612. setTimeout(() => {
  16613. this.setMindData();
  16614. }, 0);
  16615. }
  16616. },
  16617. selectEva() {
  16618. let params = {
  16619. oid: this.oid,
  16620. };
  16621. this.ajax
  16622. .get(this.$store.state.api + "selectAllEvaluation", params)
  16623. .then((res) => {
  16624. this.evaJuri = res.data[0];
  16625. })
  16626. .catch((err) => {
  16627. console.error(err);
  16628. });
  16629. },
  16630. setMindData() {
  16631. this.data.data = [];
  16632. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  16633. let _eJson = Object.keys(this.eJson);
  16634. let _e = this.eJson;
  16635. for (let i = 0; i < _eJson.length; i++) {
  16636. let element = _e[_eJson[i]];
  16637. this.data.data.push({
  16638. id: element.id,
  16639. parentid: "root",
  16640. topic: element.name,
  16641. });
  16642. let _eJsonc = Object.keys(element.child);
  16643. let _e2 = element.child;
  16644. for (let j = 0; j < _eJsonc.length; j++) {
  16645. let _ec = _e2[_eJsonc[j]];
  16646. this.data.data.push({
  16647. id: _ec.id,
  16648. parentid: element.id,
  16649. topic: _ec.name,
  16650. });
  16651. let _eJsonz = Object.keys(_ec.child);
  16652. let _e3 = _ec.child;
  16653. for (let z = 0; z < _eJsonz.length; z++) {
  16654. let _ez = _e3[_eJsonz[z]];
  16655. this.data.data.push({
  16656. id: _ez.id,
  16657. parentid: _ec.id,
  16658. topic: _ez.name,
  16659. });
  16660. }
  16661. }
  16662. }
  16663. this.$forceUpdate();
  16664. },
  16665. checkFileFull(type, url) {
  16666. this.fullDialogVisible = true;
  16667. this.fulltype = type;
  16668. this.fullUrl = url;
  16669. },
  16670. openSname(n, id, i, uid) {
  16671. this.snameWid = id;
  16672. this.worksSName = n;
  16673. this.worksSid = uid == n ? "" : uid;
  16674. this.toolindex = i;
  16675. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16676. if (!this.uploadCid) {
  16677. this.$message.error(
  16678. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16679. );
  16680. return;
  16681. }
  16682. this.selectUploadStudent(1);
  16683. },
  16684. updateName() {
  16685. let params = {
  16686. n: this.worksSName,
  16687. cid: this.snameWid,
  16688. };
  16689. this.ajax
  16690. .get(this.$store.state.api + "updateCourseWorksName", params)
  16691. .then((res) => {
  16692. this.$message({
  16693. message: "修改成功",
  16694. type: "success",
  16695. });
  16696. this.dialogVisibleSname = false;
  16697. this.getCourseDetail();
  16698. this.snameWid = "";
  16699. this.worksSName = "";
  16700. })
  16701. .catch((err) => {
  16702. console.error(err);
  16703. });
  16704. },
  16705. downloadFile2(f) {
  16706. const loading = this.$loading.service({
  16707. background: "rgba(255, 255, 255, 0.7)",
  16708. target: document.body,
  16709. text: "文件加载中...",
  16710. });
  16711. let url2 = f.url;
  16712. let _url2 = "";
  16713. if (
  16714. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16715. ) {
  16716. _url2 = url2.split(
  16717. "https://view.officeapps.live.com/op/view.aspx?src="
  16718. )[1];
  16719. } else {
  16720. _url2 = url2;
  16721. }
  16722. let params = {
  16723. url: _url2,
  16724. name: f.name,
  16725. };
  16726. this.ajax
  16727. .get(this.$store.state.api + "download", params)
  16728. .then((res) => {
  16729. console.log(res);
  16730. loading.close();
  16731. let content = res.data.data.data;
  16732. let ab = new ArrayBuffer(content.length);
  16733. let view = new Uint8Array(ab);
  16734. for (var i = 0; i < content.length; ++i) {
  16735. view[i] = content[i];
  16736. }
  16737. let elink = document.createElement("a");
  16738. elink.download = f.name;
  16739. elink.style.display = "none";
  16740. let blob = new Blob([ab], { type: res.data.response.headers['content-type']+';charset=UTF-8'});
  16741. elink.href = URL.createObjectURL(blob);
  16742. document.body.appendChild(elink);
  16743. elink.click();
  16744. document.body.removeChild(elink);
  16745. })
  16746. .catch((err) => {
  16747. loading.close();
  16748. console.error(err);
  16749. });
  16750. },
  16751. downloadFile(url) {
  16752. let _this = this;
  16753. let _url = "";
  16754. if (
  16755. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16756. ) {
  16757. _url = url.split(
  16758. "https://view.officeapps.live.com/op/view.aspx?src="
  16759. )[1];
  16760. } else {
  16761. _url = url;
  16762. }
  16763. const x = new XMLHttpRequest();
  16764. x.open("GET", _url, true);
  16765. x.responseType = "blob";
  16766. const loading = _this.$loading.service({
  16767. background: "rgba(255, 255, 255, 0.7)",
  16768. target: document.body,
  16769. text: "文件加载中...",
  16770. });
  16771. // _this.$message.success("文件下载中...");
  16772. x.onload = function (e) {
  16773. loading.close();
  16774. // const url = window.URL.createObjectURL(x.response);
  16775. // const a = document.createElement("a");
  16776. // a.href = url;
  16777. // a.target = "_blank";
  16778. // a.download = url;
  16779. // a.click();
  16780. // a.remove();
  16781. let content = x.response;
  16782. let elink = document.createElement("a");
  16783. elink.download = decodeURI(
  16784. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  16785. );
  16786. elink.style.display = "none";
  16787. let blob = new Blob([content]);
  16788. elink.href = URL.createObjectURL(blob);
  16789. document.body.appendChild(elink);
  16790. elink.click();
  16791. document.body.removeChild(elink);
  16792. };
  16793. x.send();
  16794. },
  16795. openLine(url) {
  16796. window.open(url);
  16797. },
  16798. resize() {
  16799. if (document.getElementsByClassName("box_course").length) {
  16800. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  16801. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  16802. if (this.showType == 2 || this.showType == 3) {
  16803. document.getElementsByClassName("navBox")[0].style.height =
  16804. a - 40 + 46 + "px";
  16805. } else {
  16806. document.getElementsByClassName("navBox")[0].style.height =
  16807. a - 40 + "px";
  16808. }
  16809. }
  16810. this.Stbodywidth =
  16811. document.getElementsByClassName("student_body").length &&
  16812. document.getElementsByClassName("student_body")[0].offsetWidth;
  16813. },
  16814. closeDraw() {
  16815. this.bg = null;
  16816. this.drawShow = false;
  16817. },
  16818. showPicturePaint(url) {
  16819. let params = {
  16820. img: url,
  16821. };
  16822. this.ajax
  16823. .get(this.$store.state.api + "imgToBase64", params)
  16824. .then((res) => {
  16825. console.log(res);
  16826. this.drawShow = true;
  16827. this.bg = res.data[0].img;
  16828. })
  16829. .catch((err) => {
  16830. console.error(err);
  16831. });
  16832. },
  16833. addImgDraw(base64) {
  16834. let file = { name: "批注图.png" };
  16835. let img = this.dataUrlToFile(base64, file);
  16836. this.beforeUpload1(img, 5);
  16837. },
  16838. addImgDrawImG(url) {
  16839. // console.log(url);
  16840. let params = [
  16841. {
  16842. wid: this.commentDetail.wid,
  16843. img: url,
  16844. },
  16845. ];
  16846. this.ajax
  16847. .post(this.$store.state.api + "updateCourseWorks", params)
  16848. .then((res) => {
  16849. this.$message({
  16850. message: "提交成功",
  16851. type: "success",
  16852. });
  16853. this.drawShow = false;
  16854. this.bg = "";
  16855. this.selectSWorks();
  16856. this.selectStudent();
  16857. })
  16858. .catch((err) => {
  16859. this.$message.error("提交失败");
  16860. console.error(err);
  16861. });
  16862. },
  16863. deletePicturePaint() {
  16864. this.$confirm("确定删除此批注吗?", "提示", {
  16865. confirmButtonText: "确定",
  16866. cancelButtonText: "取消",
  16867. type: "warning",
  16868. })
  16869. .then(() => {
  16870. let params = [
  16871. {
  16872. wid: this.commentDetail.wid,
  16873. img: "",
  16874. },
  16875. ];
  16876. this.ajax
  16877. .post(this.$store.state.api + "updateCourseWorks", params)
  16878. .then((res) => {
  16879. this.$message({
  16880. message: "删除成功",
  16881. type: "success",
  16882. });
  16883. this.selectSWorks();
  16884. this.selectStudent();
  16885. })
  16886. .catch((err) => {
  16887. this.$message.error("删除失败");
  16888. console.error(err);
  16889. });
  16890. })
  16891. .catch(() => {});
  16892. },
  16893. getAudioVideo(constraintsData) {
  16894. if (navigator.mediaDevices === undefined) {
  16895. navigator.mediaDevices = {};
  16896. }
  16897. if (navigator.mediaDevices.getUserMedia === undefined) {
  16898. navigator.mediaDevices.getUserMedia = function (constraints) {
  16899. // 首先,如果有getUserMedia的话,就获得它
  16900. var getUserMedia =
  16901. navigator.getUserMedia ||
  16902. navigator.webkitGetUserMedia ||
  16903. navigator.mozGetUserMedia ||
  16904. navigator.msGetUserMedia;
  16905. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  16906. if (!getUserMedia) {
  16907. return Promise.reject({ code: 404 });
  16908. }
  16909. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  16910. return new Promise(function (resolve, reject) {
  16911. getUserMedia.call(navigator, constraints, resolve, reject);
  16912. });
  16913. };
  16914. }
  16915. return navigator.mediaDevices.getUserMedia(constraintsData);
  16916. },
  16917. /**
  16918. * 开始录制
  16919. */
  16920. startRecording(callback) {
  16921. let _function = (screenStream) => {
  16922. this.addStreamStopListener(screenStream, () => {
  16923. console.log("流停止监听");
  16924. this.stopRecording();
  16925. this.$emit("streamStop", {});
  16926. // this.stopRecording();
  16927. });
  16928. var options = {
  16929. type: "video",
  16930. mimeType: "video/webm",
  16931. disableLogs: false,
  16932. getNativeBlob: false, // enable it for longer recordings
  16933. ignoreMutedMedia: false,
  16934. };
  16935. // this.video.srcObject = screenStream;
  16936. this.recorder = RecordRTC(screenStream, options);
  16937. this.recorder.startRecording();
  16938. this.recorder.screen = screenStream;
  16939. this.videoStart = true;
  16940. // callback(true);
  16941. };
  16942. this.getAudioVideo({ audio: true })
  16943. .then((res) => {
  16944. this.captureScreen(_function, true);
  16945. console.log("已点击允许,开启成功");
  16946. })
  16947. .catch((err) => {
  16948. // console.log('浏览器不支持,请更换浏览器')
  16949. // } else {
  16950. this.captureScreen(_function, false);
  16951. console.log("请检查是否存在麦克风");
  16952. });
  16953. },
  16954. /**
  16955. * 停止录制
  16956. */
  16957. stopRecording(callback) {
  16958. this.recorder.stopRecording(() => {
  16959. // this.video.src = this.video.srcObject = null;
  16960. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  16961. const url = URL.createObjectURL(this.recorder.getBlob());
  16962. const a = document.createElement("a"); //this.fileName+
  16963. let videoFile = new File(
  16964. [this.recorder.getBlob()],
  16965. this.courseDetail.title + "录屏.mp4",
  16966. {
  16967. type: "video/mp4",
  16968. }
  16969. );
  16970. let downloadUrl = URL.createObjectURL(videoFile);
  16971. document.body.appendChild(a);
  16972. a.style.display = "none";
  16973. a.href = url;
  16974. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  16975. a.click();
  16976. this.recorder.screen.stop();
  16977. this.recorder.destroy();
  16978. this.recorder = null;
  16979. this.videoStart = false;
  16980. // callback(false);
  16981. });
  16982. },
  16983. //初始化
  16984. captureScreen(callback, type) {
  16985. if (navigator.getDisplayMedia) {
  16986. //录制结束,文件下载
  16987. navigator
  16988. .getDisplayMedia({
  16989. video: true,
  16990. })
  16991. .then((screenStream) => {
  16992. if (type) {
  16993. navigator.mediaDevices
  16994. .getUserMedia({ audio: true })
  16995. .then((mic) => {
  16996. screenStream.addTrack(mic.getTracks()[0]);
  16997. callback(screenStream);
  16998. });
  16999. } else {
  17000. callback(screenStream);
  17001. }
  17002. })
  17003. .catch(function (error) {
  17004. console.log("error", error);
  17005. });
  17006. } else if (navigator.mediaDevices.getDisplayMedia) {
  17007. navigator.mediaDevices
  17008. .getDisplayMedia({
  17009. video: true,
  17010. })
  17011. .then((screenStream) => {
  17012. if (type) {
  17013. navigator.mediaDevices
  17014. .getUserMedia({ audio: true })
  17015. .then((mic) => {
  17016. screenStream.addTrack(mic.getTracks()[0]);
  17017. callback(screenStream);
  17018. });
  17019. } else {
  17020. callback(screenStream);
  17021. }
  17022. })
  17023. .catch(function (error) {
  17024. console.log("error", error);
  17025. });
  17026. } else {
  17027. var error = "getDisplayMedia API are not supported in this browser.";
  17028. console.log("error", error);
  17029. alert(error);
  17030. }
  17031. },
  17032. //流监听
  17033. addStreamStopListener(stream, callback) {
  17034. stream.addEventListener(
  17035. "ended",
  17036. function () {
  17037. callback();
  17038. callback = function () {};
  17039. },
  17040. false
  17041. );
  17042. stream.addEventListener(
  17043. "inactive",
  17044. function () {
  17045. callback();
  17046. callback = function () {};
  17047. },
  17048. false
  17049. );
  17050. stream.getTracks().forEach(function (track) {
  17051. track.addEventListener(
  17052. "ended",
  17053. function () {
  17054. callback();
  17055. callback = function () {};
  17056. },
  17057. false
  17058. );
  17059. track.addEventListener(
  17060. "inactive",
  17061. function () {
  17062. callback();
  17063. callback = function () {};
  17064. },
  17065. false
  17066. );
  17067. });
  17068. },
  17069. updateGroup() {
  17070. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17071. this.dialogVisibleGroup2 = true;
  17072. },
  17073. updateGroupJson() {
  17074. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  17075. if (
  17076. this.groupStudentUid[this.toolindex][i].length >
  17077. this.groupJson2.number
  17078. ) {
  17079. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  17080. return;
  17081. }
  17082. }
  17083. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  17084. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17085. this.taskCount
  17086. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  17087. let params = [
  17088. {
  17089. cid: this.id,
  17090. chapters: JSON.stringify(this.chapInfoList),
  17091. uid: this.userid,
  17092. unitIndex: this.courseType,
  17093. },
  17094. ];
  17095. this.ajax
  17096. .post(this.$store.state.api + "updateWorkNew4", params)
  17097. .then((res) => {
  17098. this.$message.success("设置成功");
  17099. this.getCourseDetail(2);
  17100. this.dialogVisibleGroup2 = false;
  17101. this.groupJson2 = {};
  17102. this.$forceUpdate();
  17103. })
  17104. .catch((err) => {
  17105. this.$message.error("网络不佳");
  17106. console.error(err);
  17107. });
  17108. },
  17109. lockChair() {
  17110. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17111. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  17112. this.updateGroupJson();
  17113. },
  17114. selectGroup(index) {
  17115. this.getCourseDetail(2, index);
  17116. },
  17117. joinGroup(index) {
  17118. if (this.groupJson.islock == 2) {
  17119. this.$message.error("位置已被锁定,无法加入");
  17120. return;
  17121. }
  17122. if (
  17123. this.groupStudent[this.toolindex][index].length >
  17124. this.groupJson.number ||
  17125. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  17126. ) {
  17127. this.$message.error("位置已满,无法加入");
  17128. return;
  17129. }
  17130. let params = [
  17131. {
  17132. cid: this.id,
  17133. stage: this.courseType,
  17134. task: this.taskCount,
  17135. tool: this.toolindex,
  17136. g: index,
  17137. uid: this.userid,
  17138. },
  17139. ];
  17140. this.ajax
  17141. .post(this.$store.state.api + "joinGroup", params)
  17142. .then((res) => {
  17143. this.$message.success("加入成功");
  17144. this.getCourseDetail();
  17145. })
  17146. .catch((err) => {
  17147. this.$message.error("网络不佳");
  17148. console.error(err);
  17149. });
  17150. },
  17151. exitGroup(id) {
  17152. if (this.groupJson.islock == 2) {
  17153. this.$message.error("位置已被锁定,无法退出");
  17154. return;
  17155. }
  17156. let params = [
  17157. {
  17158. gid: id,
  17159. },
  17160. ];
  17161. this.ajax
  17162. .post(this.$store.state.api + "exitGroup", params)
  17163. .then((res) => {
  17164. this.$message.success("退出成功");
  17165. this.getCourseDetail();
  17166. })
  17167. .catch((err) => {
  17168. this.$message.error("网络不佳");
  17169. console.error(err);
  17170. });
  17171. },
  17172. groupUpload(index, task, gindex) {
  17173. this.taskCount = task;
  17174. this.toolindex = index;
  17175. this.groupIndex = gindex;
  17176. this.dialogVisibleGroupWork = true;
  17177. },
  17178. updateGroupChair(user) {
  17179. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  17180. el.label = index;
  17181. return index != user.group;
  17182. });
  17183. this.updateGroupUser = user;
  17184. this.dialogVisibleUpdateGroup = true;
  17185. },
  17186. updateChair() {
  17187. if (
  17188. this.groupStudent[this.toolindex][this.checkChair].length >
  17189. this.groupJson.number ||
  17190. this.groupStudent[this.toolindex][this.checkChair].length ==
  17191. this.groupJson.number
  17192. ) {
  17193. this.$message.error("位置已满,无法加入");
  17194. return;
  17195. }
  17196. let params = [
  17197. {
  17198. cid: this.id,
  17199. stage: this.courseType,
  17200. task: this.taskCount,
  17201. tool: this.toolindex,
  17202. g: this.checkChair,
  17203. uid: this.updateGroupUser.userid,
  17204. },
  17205. ];
  17206. this.ajax
  17207. .post(this.$store.state.api + "joinGroup", params)
  17208. .then((res) => {
  17209. this.$message.success("修改成功");
  17210. this.updateGroupUser = {};
  17211. this.checkChair = "";
  17212. this.updateGroupArray = {};
  17213. this.dialogVisibleUpdateGroup = false;
  17214. this.getCourseDetail();
  17215. })
  17216. .catch((err) => {
  17217. this.$message.error("网络不佳");
  17218. console.error(err);
  17219. });
  17220. },
  17221. deleteGroupChair(gindex) {
  17222. this.checkDeleteGroup = [];
  17223. this.deleteGroupUser = JSON.parse(
  17224. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  17225. );
  17226. this.deleteGroupArray = this.groupJson.group[gindex];
  17227. this.groupIndex = gindex;
  17228. this.dialogVisibleDeleteGroup = true;
  17229. },
  17230. async deleteChair() {
  17231. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  17232. const gid =
  17233. this.groupStudent[this.toolindex][this.groupIndex][
  17234. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  17235. this.checkDeleteGroup[i]
  17236. )
  17237. ];
  17238. let params = [
  17239. {
  17240. gid: gid.id,
  17241. },
  17242. ];
  17243. var a = await this.deleteChairA(params);
  17244. if (i == this.checkDeleteGroup.length - 1) {
  17245. this.$message.success("退出成功");
  17246. this.dialogVisibleDeleteGroup = false;
  17247. this.deleteGroupUser = [];
  17248. this.deleteGroupArray = {};
  17249. this.groupIndex = "";
  17250. this.checkDeleteGroup = [];
  17251. this.getCourseDetail();
  17252. }
  17253. }
  17254. },
  17255. deleteChairA(params) {
  17256. return new Promise((resolve, reject) => {
  17257. this.ajax
  17258. .post(this.$store.state.api + "exitGroup", params)
  17259. .then((res) => {
  17260. resolve(1);
  17261. })
  17262. .catch((err) => {
  17263. this.$message.error("网络不佳");
  17264. console.error(err);
  17265. });
  17266. });
  17267. },
  17268. contract(i) {
  17269. if (this.isCloseList[i].isClose == 0) {
  17270. this.isCloseList[i].isClose = 1;
  17271. } else {
  17272. this.isCloseList[i].isClose = 0;
  17273. }
  17274. this.$forceUpdate();
  17275. },
  17276. openTools2(i) {
  17277. this.$message.error("暂未开放");
  17278. return;
  17279. },
  17280. addTools2(i) {
  17281. if (i == 4) {
  17282. // this.openTools2(4);
  17283. this.$message.error("暂未开放");
  17284. return;
  17285. }
  17286. if (i == 45) {
  17287. // this.openTools2(45);
  17288. this.$message.error("暂未开放");
  17289. return;
  17290. }
  17291. if (i == 47) {
  17292. // this.openTools2(47);
  17293. this.$message.error("暂未开放");
  17294. return;
  17295. }
  17296. if (i == 49) {
  17297. // this.openTools2(49);
  17298. this.$message.error("暂未开放");
  17299. return;
  17300. }
  17301. if (i == 62) {
  17302. // this.openTools(itemTaskIndex, 62, toolIndex);
  17303. this.$message.error("暂未开放");
  17304. return;
  17305. }
  17306. if (i == 15) {
  17307. // this.openTools(itemTaskIndex, 15, toolIndex);
  17308. this.$message.error("暂未开放");
  17309. return;
  17310. }
  17311. if (i == 40) {
  17312. // this.openTools(itemTaskIndex, 40, toolIndex);
  17313. this.$message.error("暂未开放");
  17314. return;
  17315. }
  17316. if (i == 41) {
  17317. // this.openTools(itemTaskIndex, 41, toolIndex);
  17318. this.$message.error("暂未开放");
  17319. return;
  17320. }
  17321. if (i == 42) {
  17322. // this.openTools(itemTaskIndex, 42, toolIndex);
  17323. this.$message.error("暂未开放");
  17324. return;
  17325. }
  17326. if (this.checktoolArray.length > 0) {
  17327. if (this.checktoolArray.indexOf(i) != -1) {
  17328. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17329. } else {
  17330. this.checktoolArray = [];
  17331. this.checktoolArray.push(i);
  17332. }
  17333. } else {
  17334. this.checktoolArray.push(i);
  17335. }
  17336. this.$forceUpdate();
  17337. },
  17338. addToolChoose() {
  17339. if (!this.checktoolArray.length) {
  17340. this.$message.error("请选择要添加的任务");
  17341. return;
  17342. }
  17343. if (
  17344. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17345. this.taskCount
  17346. ].toolChoose[0].tool.length
  17347. ) {
  17348. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17349. this.taskCount
  17350. ].toolChoose[0].tool = this.checktoolArray;
  17351. } else {
  17352. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17353. this.taskCount
  17354. ].toolChoose.push({
  17355. tool: this.checktoolArray,
  17356. toolDetail: "",
  17357. toolType: 1,
  17358. askCount: 1,
  17359. askTitle: "",
  17360. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  17361. });
  17362. }
  17363. let params = [
  17364. {
  17365. cid: this.id,
  17366. chapters: JSON.stringify(this.chapInfoList),
  17367. uid: this.userid,
  17368. unitIndex: this.courseType,
  17369. },
  17370. ];
  17371. this.ajax
  17372. .post(this.$store.state.api + "updateWorkNew4", params)
  17373. .then((res) => {
  17374. this.$message({
  17375. message: "添加成功",
  17376. type: "success",
  17377. });
  17378. this.checktoolArray = [];
  17379. this.getCourseDetail(2);
  17380. this.checkBz(
  17381. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17382. this.taskCount
  17383. ].toolChoose.length - 1
  17384. );
  17385. this.$forceUpdate();
  17386. })
  17387. .catch((err) => {
  17388. console.error(err);
  17389. });
  17390. },
  17391. updateToolDetail() {
  17392. if (!this.isUpdateToolDetail) {
  17393. this.isUpdateToolDetail = true;
  17394. this.updateToolDetailInner = JSON.parse(
  17395. JSON.stringify(this.tool.toolDetail)
  17396. );
  17397. } else {
  17398. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17399. this.taskCount
  17400. ].toolChoose[this.toolIndex].toolDetail = JSON.parse(
  17401. JSON.stringify(this.updateToolDetailInner)
  17402. );
  17403. let params = [
  17404. {
  17405. cid: this.id,
  17406. chapters: JSON.stringify(this.chapInfoList),
  17407. uid: this.userid,
  17408. unitIndex: this.courseType,
  17409. },
  17410. ];
  17411. this.ajax
  17412. .post(this.$store.state.api + "updateWorkNew4", params)
  17413. .then((res) => {
  17414. this.isUpdateToolDetail = false;
  17415. this.$message({
  17416. message: "修改成功",
  17417. type: "success",
  17418. });
  17419. this.updateToolDetailInner = "";
  17420. this.getCourseDetail(2);
  17421. this.$forceUpdate();
  17422. })
  17423. .catch((err) => {
  17424. console.error(err);
  17425. });
  17426. }
  17427. },
  17428. },
  17429. directives: {
  17430. // 使用局部注册指令的方式
  17431. resize: {
  17432. // 指令的名称
  17433. bind(el, binding) {
  17434. // el为绑定的元素,binding为绑定给指令的对象
  17435. let width = "",
  17436. height = "";
  17437. function isReize() {
  17438. const style = document.defaultView.getComputedStyle(el);
  17439. if (width !== style.width || height !== style.height) {
  17440. binding.value(); // 关键
  17441. }
  17442. width = style.width;
  17443. height = style.height;
  17444. }
  17445. el.__vueSetInterval__ = setInterval(isReize, 300);
  17446. },
  17447. unbind(el) {
  17448. clearInterval(el.__vueSetInterval__);
  17449. },
  17450. },
  17451. },
  17452. beforeDestroy() {
  17453. window.onresize = null;
  17454. clearInterval(this.timer);
  17455. this.timer = null;
  17456. clearInterval(this.opertimer);
  17457. this.opertimer = null;
  17458. },
  17459. computed: {
  17460. contentConvent() {
  17461. return function (c) {
  17462. return c
  17463. ? c
  17464. .replaceAll(/\r\n/g, "<br/>")
  17465. .replaceAll(/\n/g, "<br/>")
  17466. .replaceAll(/\s/g, " &nbsp")
  17467. : "";
  17468. };
  17469. },
  17470. checkUpload() {
  17471. return function () {
  17472. var studentK = [];
  17473. if (this.plworkFile.length > 0) {
  17474. for (var z = 0; z < this.plworkFile.length; z++) {
  17475. studentK.push(this.plworkFile[z].username);
  17476. }
  17477. studentK = studentK.join(",");
  17478. }
  17479. var a = this.uploadStudentJuri.filter((el) => {
  17480. return studentK.indexOf(el.userid) == -1;
  17481. });
  17482. return a;
  17483. };
  17484. },
  17485. getSName() {
  17486. return function (name) {
  17487. var check = name;
  17488. this.uploadStudentJuri.forEach((el) => {
  17489. if (el.userid == check) {
  17490. check = el.name ? el.name : el.username;
  17491. }
  17492. });
  17493. return check;
  17494. };
  17495. },
  17496. },
  17497. mounted() {
  17498. if (this.screenType == 2) {
  17499. window.parent.postMessage({ allScreen: 4 }, "*");
  17500. } else if (this.screenType == 3) {
  17501. window.parent.postMessage({ allScreen: 5 }, "*");
  17502. } else if (this.screenType == 1) {
  17503. window.parent.postMessage({ allScreen: 6 }, "*");
  17504. }
  17505. this.setOperationTime();
  17506. this.selectEva();
  17507. this.getCourseDetail();
  17508. this.selectCount();
  17509. this.getHomeWork();
  17510. this.toolIndex = null;
  17511. this.contentDialog = true;
  17512. this.setContent2(true);
  17513. if (this.tType == 4) {
  17514. this.pzDialog = true;
  17515. this.selectPz();
  17516. }
  17517. document.scrollingElement.scrollTop = 0;
  17518. window.addEventListener("resize", () => {
  17519. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17520. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17521. if (this.showType == 2 || this.showType == 3) {
  17522. document.getElementsByClassName("navBox")[0].style.height =
  17523. a - 40 + 46 + "px";
  17524. } else {
  17525. document.getElementsByClassName("navBox")[0].style.height =
  17526. a - 40 + "px";
  17527. }
  17528. });
  17529. let _this = this;
  17530. setTimeout(() => {
  17531. // _this.vedioTime = [];
  17532. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17533. // _this.vedioTime[i] = document.getElementsByClassName(
  17534. // "vjs-duration-display"
  17535. // )[i].textContent;
  17536. // }
  17537. }, 1000);
  17538. },
  17539. };
  17540. </script>
  17541. <style scoped>
  17542. @media screen and (max-width: 1280px) {
  17543. /* .courseIndex > div:first-child(2) {
  17544. width: 15% !important;
  17545. } */
  17546. /* .navText {
  17547. width: 120px !important;
  17548. } */
  17549. .evaCss {
  17550. flex-direction: column !important;
  17551. align-items: center !important;
  17552. }
  17553. .dialog_diy1 >>> .el-dialog {
  17554. width: 100% !important;
  17555. }
  17556. .rightWidthCss {
  17557. width: 100% !important;
  17558. }
  17559. .dialog_diy3 >>> .el-dialog {
  17560. width: 100% !important;
  17561. }
  17562. /* .textTitle >>> .el-form-item__label {
  17563. width: 150px !important;
  17564. } */
  17565. }
  17566. .evaCssMax {
  17567. flex-direction: column !important;
  17568. align-items: center !important;
  17569. }
  17570. .dialog_diy >>> .el-dialog {
  17571. margin-top: 10vh !important;
  17572. }
  17573. .body_student {
  17574. width: 77%;
  17575. height: 100%;
  17576. position: absolute;
  17577. left: 22%;
  17578. top: 0;
  17579. }
  17580. .student_head {
  17581. width: 100%;
  17582. margin: 40px auto 0;
  17583. padding-bottom: 20px;
  17584. display: flex;
  17585. flex-direction: column;
  17586. flex-wrap: nowrap;
  17587. align-items: flex-start;
  17588. justify-content: flex-start;
  17589. }
  17590. .pb_left {
  17591. width: 20%;
  17592. margin-right: 10px;
  17593. background: rgb(255, 255, 255);
  17594. position: fixed;
  17595. height: calc(100% - 40px);
  17596. border-radius: 20px;
  17597. padding-bottom: 15px;
  17598. box-sizing: border-box;
  17599. }
  17600. .wheel > img,
  17601. .project > img,
  17602. .star > img,
  17603. .evaluate > img,
  17604. .up_photo > img,
  17605. .chapter_add > img,
  17606. .deleteWord > img,
  17607. .question > img,
  17608. .homework > img {
  17609. width: 100%;
  17610. height: 100%;
  17611. }
  17612. .upCover > img {
  17613. width: 131px;
  17614. height: 69px;
  17615. object-fit: cover;
  17616. }
  17617. .upCover {
  17618. width: calc(100% / 3.5);
  17619. position: relative;
  17620. margin: 0 15px 10px 0;
  17621. display: flex;
  17622. flex-direction: column;
  17623. flex-wrap: nowrap;
  17624. justify-content: center;
  17625. align-content: center;
  17626. align-items: center;
  17627. height: fit-content;
  17628. }
  17629. .upCover2 {
  17630. width: 100%;
  17631. position: relative;
  17632. margin: 0 15px 10px 0;
  17633. display: flex;
  17634. flex-direction: column;
  17635. flex-wrap: nowrap;
  17636. justify-content: center;
  17637. align-content: center;
  17638. align-items: center;
  17639. }
  17640. .upCover2 > img {
  17641. width: 100%;
  17642. height: 90px;
  17643. object-fit: contain;
  17644. }
  17645. .chapter_add {
  17646. width: 120px;
  17647. position: relative;
  17648. text-align: center;
  17649. }
  17650. .isAddThings {
  17651. margin-top: 20px;
  17652. position: relative;
  17653. text-align: center;
  17654. background: #f7f8fa;
  17655. height: 90px;
  17656. width: 90px;
  17657. display: flex;
  17658. flex-direction: column;
  17659. justify-content: center;
  17660. }
  17661. .deleteWord {
  17662. width: 22px;
  17663. height: 22px;
  17664. position: absolute;
  17665. right: -5px;
  17666. top: -5px;
  17667. cursor: pointer;
  17668. }
  17669. .box_course {
  17670. /* width: 60%; */
  17671. width: calc(100% - 300px);
  17672. }
  17673. .wheel {
  17674. width: 100%;
  17675. /* height: 100%; */
  17676. height: 650px;
  17677. }
  17678. .right_box {
  17679. display: flex;
  17680. flex-direction: column;
  17681. margin-left: 30px;
  17682. justify-content: space-around;
  17683. }
  17684. .right_box_title {
  17685. font-size: 23px;
  17686. }
  17687. .people {
  17688. display: flex;
  17689. }
  17690. .student_body {
  17691. width: 100%;
  17692. margin: 0 auto;
  17693. margin-top: 10px;
  17694. padding: 0 0 20px;
  17695. background: #fff;
  17696. border-radius: 20px;
  17697. }
  17698. .study_top {
  17699. margin-top: 80px;
  17700. width: 100%;
  17701. /* overflow: auto; */
  17702. height: auto;
  17703. padding-bottom: 20px;
  17704. }
  17705. .study_top .checkbox {
  17706. display: flex;
  17707. align-items: center;
  17708. padding: 15px 0 15px 30px;
  17709. flex: 0 0 auto;
  17710. font-weight: bold;
  17711. border-bottom: 1px solid #eee;
  17712. }
  17713. .study_top .check {
  17714. padding-bottom: 5px;
  17715. text-align: center;
  17716. cursor: pointer;
  17717. height: 30px;
  17718. box-sizing: border-box;
  17719. display: flex;
  17720. }
  17721. .study_top .checked {
  17722. border-bottom: 4px solid #3fc6a0;
  17723. padding-bottom: 5px;
  17724. color: #3fc6a0;
  17725. display: flex;
  17726. height: 35px;
  17727. }
  17728. .study_top .checked > div,
  17729. .study_top .check > div {
  17730. margin-right: 5px;
  17731. }
  17732. .videoTop {
  17733. display: flex;
  17734. flex-direction: row;
  17735. justify-content: space-between;
  17736. background: #fff;
  17737. align-items: center;
  17738. width: 95%;
  17739. padding: 20px;
  17740. }
  17741. .upbtn {
  17742. margin: 25px;
  17743. background: #70afdb;
  17744. color: #fff;
  17745. width: 120px;
  17746. text-align: center;
  17747. height: 30px;
  17748. line-height: 30px;
  17749. font-size: 13px;
  17750. border-radius: 5px;
  17751. cursor: pointer;
  17752. }
  17753. .filebox {
  17754. display: flex;
  17755. flex-wrap: wrap;
  17756. flex-direction: column;
  17757. padding: 15px 0 5px;
  17758. }
  17759. .filebox .tooldetail {
  17760. width: 100%;
  17761. margin: 0px 12px;
  17762. background: rgb(247, 247, 247);
  17763. padding: 20px;
  17764. line-height: 30px;
  17765. word-break: break-word;
  17766. }
  17767. .file {
  17768. display: flex;
  17769. flex-direction: column;
  17770. align-items: center;
  17771. justify-content: center;
  17772. cursor: pointer;
  17773. width: 200px;
  17774. }
  17775. .file div {
  17776. margin-top: 10px;
  17777. width: 150px;
  17778. text-align: center;
  17779. overflow: hidden;
  17780. white-space: nowrap;
  17781. text-overflow: ellipsis;
  17782. }
  17783. .media {
  17784. display: flex;
  17785. flex-direction: column;
  17786. align-items: center;
  17787. justify-content: center;
  17788. margin: 0 20px 20px 0;
  17789. cursor: pointer;
  17790. margin: 12px 0 5px 15px;
  17791. overflow: hidden;
  17792. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  17793. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  17794. box-sizing: border-box;
  17795. }
  17796. .media img {
  17797. height: 90px;
  17798. width: 160px;
  17799. object-fit: cover;
  17800. }
  17801. .media .title {
  17802. padding: 5px;
  17803. text-align: left;
  17804. width: 100%;
  17805. box-sizing: border-box;
  17806. }
  17807. .media .btn {
  17808. width: 100%;
  17809. height: 35px;
  17810. line-height: 35px;
  17811. color: #fff;
  17812. background: #606060;
  17813. text-align: center;
  17814. overflow: hidden;
  17815. white-space: nowrap;
  17816. text-overflow: ellipsis;
  17817. }
  17818. .detail_content_top {
  17819. width: 100%;
  17820. padding: 25px 0 25px 0;
  17821. }
  17822. .detail_title {
  17823. text-align: center;
  17824. font-size: 24px;
  17825. }
  17826. .detail_time {
  17827. font-size: 13px;
  17828. padding: 15px 0 0 40px;
  17829. }
  17830. .detail_content {
  17831. line-height: 2pc;
  17832. width: 90%;
  17833. margin: 0 auto;
  17834. padding-top: 30px;
  17835. text-indent: 30px;
  17836. overflow: auto;
  17837. height: 200px;
  17838. }
  17839. .score_box >>> .el-rate {
  17840. margin-left: 10px;
  17841. }
  17842. .dialog_change >>> .el-dialog {
  17843. border-radius: 5px;
  17844. }
  17845. .dialog_change >>> .el-dialog__header {
  17846. background: #f2f2f2;
  17847. text-align: center;
  17848. }
  17849. .dialog_change >>> .el-dialog__title {
  17850. line-height: 5px;
  17851. }
  17852. .dialog_change >>> .el-dialog__body {
  17853. background: #fff;
  17854. padding: 10px 20px;
  17855. }
  17856. .score_box {
  17857. display: flex;
  17858. align-items: center;
  17859. margin-bottom: 18px;
  17860. margin-top: 20px;
  17861. }
  17862. .up_photo {
  17863. width: 120px;
  17864. cursor: pointer;
  17865. margin-top: 10px;
  17866. }
  17867. .up_photo2 {
  17868. width: 180px;
  17869. box-sizing: border-box;
  17870. min-width: 180px;
  17871. height: 180px;
  17872. max-height: 180px;
  17873. min-height: 180px;
  17874. cursor: pointer;
  17875. display: flex;
  17876. flex-direction: column;
  17877. align-items: center;
  17878. justify-content: center;
  17879. background: rgb(242, 246, 255);
  17880. /* padding: 25px; */
  17881. margin-bottom: 10px;
  17882. }
  17883. .up_photo2 img {
  17884. width: 50%;
  17885. height: auto;
  17886. }
  17887. .up_photo2 span {
  17888. color: #898989;
  17889. }
  17890. .plworkBox {
  17891. display: flex;
  17892. align-items: center;
  17893. margin-top: 10px;
  17894. flex-wrap: wrap;
  17895. }
  17896. .upload_send {
  17897. margin: 30px auto 30px;
  17898. width: 60%;
  17899. background: #169bd6;
  17900. text-align: center;
  17901. height: 35px;
  17902. line-height: 35px;
  17903. color: #fff;
  17904. border-radius: 5px;
  17905. cursor: pointer;
  17906. }
  17907. .marginT {
  17908. margin-top: 20px;
  17909. }
  17910. .cd_content_steps {
  17911. display: flex;
  17912. width: 90%;
  17913. justify-content: space-around;
  17914. border-top: 1px solid #eeeeee;
  17915. }
  17916. .cd_steps_box {
  17917. display: flex;
  17918. justify-content: center;
  17919. align-items: center;
  17920. flex-direction: column;
  17921. cursor: pointer;
  17922. }
  17923. .first {
  17924. display: flex;
  17925. align-items: center;
  17926. margin: 15px 0 20px 0;
  17927. font-size: 20px;
  17928. }
  17929. .first > div:nth-child(2) {
  17930. font-size: 16px !important;
  17931. padding-left: 10px;
  17932. line-height: 26px;
  17933. box-sizing: border-box;
  17934. }
  17935. .blue_box_one {
  17936. text-align: center;
  17937. color: #fff;
  17938. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  17939. border-radius: 7px;
  17940. margin: 10px;
  17941. cursor: pointer;
  17942. width: 95%;
  17943. height: 45px;
  17944. display: flex;
  17945. flex-direction: row;
  17946. justify-content: flex-start;
  17947. align-items: center;
  17948. }
  17949. .blue_box_one > div:nth-child(1) {
  17950. line-height: 30px;
  17951. margin: 0 5px 0 10px;
  17952. width: 30%;
  17953. min-width: 70px;
  17954. border-radius: 4px;
  17955. }
  17956. .blue_box_one > div:nth-child(2) {
  17957. white-space: nowrap;
  17958. text-overflow: ellipsis;
  17959. overflow: hidden;
  17960. word-break: break-all;
  17961. width: 70%;
  17962. text-align: left;
  17963. margin-right: 10px;
  17964. max-width: calc(100% - 85px);
  17965. }
  17966. .blue_box_one > div:nth-child(2):hover {
  17967. overflow: hidden;
  17968. text-overflow: ellipsis;
  17969. white-space: nowrap;
  17970. cursor: pointer;
  17971. }
  17972. .upFile {
  17973. margin: 0 auto;
  17974. width: 120px;
  17975. background: #70afdb;
  17976. color: #fff;
  17977. height: 30px;
  17978. text-align: center;
  17979. line-height: 30px;
  17980. border-radius: 5px;
  17981. font-size: 14px;
  17982. cursor: pointer;
  17983. }
  17984. .courseTitle {
  17985. width: 85%;
  17986. margin: 10px auto;
  17987. display: flex;
  17988. flex-direction: row;
  17989. align-items: center;
  17990. justify-content: space-between;
  17991. text-align: center;
  17992. }
  17993. .courseTitle .ctitle {
  17994. font-size: 24px;
  17995. font-weight: bold;
  17996. color: #0e1e33;
  17997. white-space: nowrap;
  17998. overflow: hidden;
  17999. text-overflow: ellipsis;
  18000. }
  18001. .courseTitle .inviteBox {
  18002. font-size: 14px;
  18003. margin-top: 5px;
  18004. color: #a6cbff;
  18005. }
  18006. .courseTitle >>> .el-tooltip {
  18007. width: 100%;
  18008. white-space: nowrap;
  18009. overflow: hidden;
  18010. text-overflow: ellipsis;
  18011. word-break: break-word;
  18012. }
  18013. .ml {
  18014. margin-left: 20px;
  18015. color: #5b7dba;
  18016. border-left: 3px solid #5b7dba;
  18017. padding-left: 5px;
  18018. font-weight: bold;
  18019. }
  18020. .return {
  18021. width: 2rem;
  18022. height: 2rem;
  18023. cursor: pointer;
  18024. }
  18025. .return > img {
  18026. width: 100%;
  18027. height: 100%;
  18028. }
  18029. .returnBtn {
  18030. width: 86px;
  18031. height: 36px;
  18032. background: #e7ebf1;
  18033. border-radius: 4px;
  18034. color: #717c8d;
  18035. text-align: center;
  18036. line-height: 36px;
  18037. margin-right: 20px;
  18038. cursor: pointer;
  18039. font-size: 14px;
  18040. font-weight: 400;
  18041. display: flex;
  18042. flex-direction: row;
  18043. flex-wrap: nowrap;
  18044. align-items: center;
  18045. justify-content: center;
  18046. }
  18047. .commentIcon::before,
  18048. .vedioIcon::before,
  18049. .lockIcon::before,
  18050. .returnIcon::before {
  18051. content: "";
  18052. display: block;
  18053. background-size: 100% 100%;
  18054. background-repeat: no-repeat;
  18055. width: 20px;
  18056. height: 20px;
  18057. margin-right: 5px;
  18058. }
  18059. .commentIcon::before {
  18060. background-image: url("../../assets/icon/newIcon/comment.png");
  18061. }
  18062. .vedioIcon::before {
  18063. background-image: url("../../assets/icon/newIcon/vedio.png");
  18064. }
  18065. .lockIcon::before {
  18066. background-image: url("../../assets/icon/newIcon/lock.png");
  18067. }
  18068. .returnIcon::before {
  18069. background-image: url("../../assets/icon/newIcon/return.png");
  18070. }
  18071. .tool {
  18072. display: flex;
  18073. flex-direction: column;
  18074. flex-wrap: nowrap;
  18075. width: 13%;
  18076. margin: 0 30px;
  18077. align-items: center;
  18078. }
  18079. .whiteBIcon {
  18080. width: 150px;
  18081. cursor: pointer;
  18082. }
  18083. .whiteBIcon > img {
  18084. width: 100%;
  18085. height: 100%;
  18086. }
  18087. .mask {
  18088. background-color: rgba(0, 0, 0, 0);
  18089. position: fixed;
  18090. top: 0;
  18091. left: 0;
  18092. width: 100%;
  18093. height: 100%;
  18094. z-index: 20000;
  18095. display: flex;
  18096. align-items: center;
  18097. justify-content: center;
  18098. }
  18099. .progressBox {
  18100. width: 500px;
  18101. height: 180px;
  18102. background: #fff;
  18103. border-radius: 10px;
  18104. box-shadow: 0 0 6px 1px #bfbfbf;
  18105. display: flex;
  18106. align-items: center;
  18107. justify-content: center;
  18108. flex-direction: column;
  18109. position: relative;
  18110. color: #6c6c6c;
  18111. }
  18112. .progressBox >>> .el-progress-bar__outer {
  18113. background-color: #d1dfff !important;
  18114. }
  18115. .progressBox .lbox {
  18116. height: 50px;
  18117. font-size: 19px;
  18118. display: flex;
  18119. align-items: center;
  18120. color: #747474;
  18121. }
  18122. .progressBox .lbox img {
  18123. width: 40px;
  18124. margin-right: 20px;
  18125. }
  18126. .closeCss {
  18127. position: absolute;
  18128. top: 8px;
  18129. right: 8px;
  18130. cursor: pointer;
  18131. width: 20px;
  18132. height: 20px;
  18133. }
  18134. .closeCss > img {
  18135. width: 100%;
  18136. height: 100%;
  18137. }
  18138. .uploadVedio {
  18139. display: flex;
  18140. flex-direction: column;
  18141. flex-wrap: nowrap;
  18142. justify-content: center;
  18143. align-items: center;
  18144. margin: 0 15px 10px 0;
  18145. }
  18146. .uploadVedio > img {
  18147. width: 30px;
  18148. height: 30px;
  18149. }
  18150. .uploadVedio > span {
  18151. white-space: nowrap;
  18152. overflow: hidden;
  18153. text-overflow: ellipsis;
  18154. width: 75px;
  18155. margin-top: 7px;
  18156. }
  18157. .picName {
  18158. white-space: nowrap;
  18159. overflow: hidden;
  18160. text-overflow: ellipsis;
  18161. width: 75px;
  18162. margin-top: 7px;
  18163. }
  18164. .new_top {
  18165. display: flex;
  18166. background: #fff;
  18167. flex-direction: row;
  18168. justify-content: flex-start;
  18169. align-items: center;
  18170. height: 60px;
  18171. position: relative;
  18172. }
  18173. .new_top::before {
  18174. content: "";
  18175. width: 100%;
  18176. height: 20px;
  18177. position: absolute;
  18178. top: -20px;
  18179. display: block;
  18180. background: #f2f2f2;
  18181. }
  18182. .before {
  18183. position: absolute;
  18184. background: #c3dad4;
  18185. width: 6px;
  18186. height: 100%;
  18187. }
  18188. .courseIndex {
  18189. display: flex;
  18190. flex-direction: row;
  18191. align-items: center;
  18192. width: calc(100% - 600px);
  18193. }
  18194. .courseIndex > div:nth-child(1) {
  18195. margin: 0 0 0 10px;
  18196. font-size: 24px;
  18197. min-width: 100px;
  18198. font-weight: bold;
  18199. border-left: 4px solid #3363b9;
  18200. height: 35px;
  18201. text-align: center;
  18202. line-height: 35px;
  18203. }
  18204. .courseIndex > div:nth-child(2) {
  18205. font-size: 23px;
  18206. /* width: 300px; */
  18207. max-width: calc(100% - 180px);
  18208. white-space: nowrap;
  18209. overflow: hidden;
  18210. text-overflow: ellipsis;
  18211. }
  18212. .courseIndex > div:nth-child(3) {
  18213. border-bottom: 1px solid #d7d7d7;
  18214. padding-bottom: 5px;
  18215. background: #49a0f0;
  18216. width: 55px;
  18217. min-width: 55px;
  18218. border-radius: 5px;
  18219. color: #fff;
  18220. text-align: center;
  18221. height: 20px;
  18222. line-height: 26px;
  18223. font-size: 14px;
  18224. margin: 0 0 0 10px;
  18225. }
  18226. .course_text {
  18227. padding: 20px 0 0 15px;
  18228. text-indent: 30px;
  18229. width: 80%;
  18230. min-height: 20px;
  18231. }
  18232. .vedioList {
  18233. background: #f2f2f2;
  18234. border: 1px solid #ececec;
  18235. /* width: 38.8%; */
  18236. width: 300px;
  18237. height: 445px;
  18238. border-radius: 10px;
  18239. overflow: hidden;
  18240. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  18241. }
  18242. .vedioNav {
  18243. margin: 10px 0 0 15px;
  18244. border-bottom: 1px solid #d7d7d7;
  18245. padding-bottom: 5px;
  18246. background: #96d1ff;
  18247. width: 55px;
  18248. min-width: 55px;
  18249. border-radius: 5px;
  18250. color: #fff;
  18251. text-align: center;
  18252. height: 20px;
  18253. line-height: 26px;
  18254. font-size: 14px;
  18255. }
  18256. .queTop {
  18257. display: flex;
  18258. padding: 20px 0 20px 30px;
  18259. width: 100%;
  18260. flex-direction: row;
  18261. justify-content: flex-start;
  18262. align-items: center;
  18263. box-sizing: border-box;
  18264. }
  18265. .queTop::before {
  18266. content: "";
  18267. width: 2px;
  18268. height: 22px;
  18269. background: #3681fc;
  18270. border-radius: 3px;
  18271. display: block;
  18272. margin: 2px 6px 0 0;
  18273. }
  18274. .question {
  18275. width: 40px;
  18276. margin-right: 10px;
  18277. margin-top: 7px;
  18278. }
  18279. .queTitle {
  18280. margin-left: 5px;
  18281. font-size: 25px;
  18282. display: flex;
  18283. align-items: center;
  18284. }
  18285. .addEditor {
  18286. width: 100px;
  18287. height: 30px;
  18288. background: #42cda6;
  18289. color: #fff;
  18290. border-radius: 5px;
  18291. text-align: center;
  18292. line-height: 30px;
  18293. box-shadow: 1px 3px 6px 1px #bfbfbf;
  18294. cursor: pointer;
  18295. }
  18296. .vedioName {
  18297. /* text-overflow: ellipsis;
  18298. top: 8px;
  18299. font-size: 14px;
  18300. overflow: hidden;
  18301. width: 100%;
  18302. word-break: break-all;
  18303. white-space: nowrap; */
  18304. cursor: pointer;
  18305. margin: 0px 0px 10px 5px;
  18306. white-space: nowrap;
  18307. overflow: hidden;
  18308. text-overflow: ellipsis;
  18309. width: 100%;
  18310. }
  18311. .vedioTime {
  18312. width: 35px;
  18313. position: absolute;
  18314. color: #fff;
  18315. bottom: 0px;
  18316. right: 0px;
  18317. text-align: center;
  18318. background: #46411f;
  18319. height: 20px;
  18320. font-size: 14px;
  18321. line-height: 20px;
  18322. }
  18323. .homework {
  18324. width: 200px;
  18325. display: flex;
  18326. flex-direction: column;
  18327. flex-wrap: nowrap;
  18328. align-items: center;
  18329. cursor: pointer;
  18330. }
  18331. .homebox {
  18332. display: flex;
  18333. flex-wrap: wrap;
  18334. flex-direction: row;
  18335. justify-content: flex-start;
  18336. align-items: center;
  18337. padding: 15px 0;
  18338. }
  18339. .chooseWho {
  18340. display: flex;
  18341. width: 100%;
  18342. flex-direction: row;
  18343. flex-wrap: nowrap;
  18344. justify-content: flex-start;
  18345. padding-bottom: 10px;
  18346. }
  18347. .chooseWho > div {
  18348. cursor: pointer;
  18349. padding-bottom: 10px;
  18350. margin: 0 30px 0 0;
  18351. font-weight: 400;
  18352. color: #0e1e33;
  18353. }
  18354. .addPoint > div > img {
  18355. cursor: pointer;
  18356. margin: 0 10px;
  18357. width: 85px;
  18358. border-radius: 15px;
  18359. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  18360. }
  18361. .addPoint > div {
  18362. display: flex;
  18363. flex-direction: column;
  18364. flex-wrap: nowrap;
  18365. align-items: center;
  18366. }
  18367. .isBorder > div {
  18368. margin: 0 0 10px 0;
  18369. align-items: flex-start !important;
  18370. }
  18371. .noiframeBox {
  18372. display: flex;
  18373. flex-wrap: wrap;
  18374. }
  18375. .iframeBox iframe {
  18376. width: 100%;
  18377. height: 800px;
  18378. border: none;
  18379. margin-bottom: 20px;
  18380. border: 1px solid #ccc;
  18381. }
  18382. .upload_toolBtn {
  18383. background: #6b92c9;
  18384. color: #fff;
  18385. width: 110px;
  18386. text-align: center;
  18387. height: 35px;
  18388. line-height: 35px;
  18389. font-size: 14px;
  18390. border-radius: 5px;
  18391. cursor: pointer;
  18392. position: absolute;
  18393. right: 10px;
  18394. bottom: 0;
  18395. }
  18396. .binfo_input,
  18397. .pj {
  18398. font: inherit;
  18399. color: currentColor;
  18400. width: 100%;
  18401. margin: 0;
  18402. padding: 15px 14px;
  18403. display: block;
  18404. min-width: 0;
  18405. outline: none;
  18406. box-sizing: content-box;
  18407. background: none;
  18408. -webkit-tap-highlight-color: transparent;
  18409. border: 1px solid rgba(0, 0, 0, 0.23);
  18410. border-radius: 4px;
  18411. box-sizing: border-box;
  18412. resize: none;
  18413. }
  18414. .binfo_input:focus-visible {
  18415. border: 1px solid rgba(61, 103, 188);
  18416. }
  18417. .dialog_diy >>> .el-dialog__header,
  18418. .dialog_diy1 >>> .el-dialog__header {
  18419. background: #454545 !important;
  18420. padding: 15px 20px;
  18421. }
  18422. .dialog_diy >>> .el-dialog__title,
  18423. .dialog_diy1 >>> .el-dialog__title {
  18424. color: #fff;
  18425. }
  18426. .dialog_diy >>> .el-dialog__headerbtn,
  18427. .dialog_diy1 >>> .el-dialog__headerbtn {
  18428. top: 19px;
  18429. }
  18430. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  18431. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  18432. color: #fff;
  18433. }
  18434. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  18435. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  18436. color: #fff;
  18437. }
  18438. .dialog_diy1 >>> .el-dialog__body {
  18439. padding: 0;
  18440. }
  18441. .dialog_diy >>> .el-dialog__body,
  18442. .dialog_diy >>> .el-dialog__footer,
  18443. .dialog_diy1 >>> .el-dialog__footer {
  18444. background: #fafafa;
  18445. }
  18446. .a_addBox {
  18447. margin: 10px 0;
  18448. background: #fff;
  18449. padding: 15px;
  18450. }
  18451. .a_add_box {
  18452. border-bottom: 2px solid #eee;
  18453. padding-bottom: 10px;
  18454. }
  18455. .a_add_head {
  18456. display: flex;
  18457. align-items: flex-start;
  18458. /* justify-content: space-between; */
  18459. flex-direction: column;
  18460. /* flex-direction: row; */
  18461. margin: 10px 0 20px 0;
  18462. font-size: 18px;
  18463. width: 100%;
  18464. }
  18465. .a_add_head .a_add_head_input {
  18466. width: 300px;
  18467. }
  18468. .a_add_head .a_add_head_div {
  18469. display: flex;
  18470. align-items: center;
  18471. justify-content: space-between;
  18472. }
  18473. .a_add_body {
  18474. display: flex;
  18475. align-items: center;
  18476. }
  18477. .a_add_input {
  18478. display: flex;
  18479. align-items: center;
  18480. flex-wrap: wrap;
  18481. }
  18482. .a_add_input >>> el-radio-group {
  18483. margin: 10px 0;
  18484. }
  18485. .a_add_input >>> .el-radio,
  18486. .a_add_input >>> .el-checkbox {
  18487. margin-bottom: 10px;
  18488. display: flex;
  18489. flex-direction: row;
  18490. flex-wrap: nowrap;
  18491. align-items: center;
  18492. }
  18493. .redioStyle >>> .el-radio__label {
  18494. font-size: 18px;
  18495. }
  18496. .redioStyle >>> .el-checkbox__label {
  18497. font-size: 18px;
  18498. }
  18499. .toolHeng2 {
  18500. width: 100%;
  18501. box-sizing: border-box;
  18502. }
  18503. .toolHeng {
  18504. display: flex;
  18505. flex-direction: row;
  18506. flex-wrap: wrap;
  18507. justify-content: flex-start;
  18508. align-items: center;
  18509. width: 100%;
  18510. }
  18511. .toolHeng > div {
  18512. padding-left: 20px;
  18513. }
  18514. .isWidth {
  18515. width: 20%;
  18516. }
  18517. .textTitle {
  18518. display: flex;
  18519. flex-direction: row;
  18520. flex-wrap: nowrap;
  18521. align-items: center;
  18522. width: 95%;
  18523. }
  18524. .textTitle >>> .el-form-item__label {
  18525. font-size: 22px;
  18526. color: #918f8f;
  18527. width: 100px;
  18528. }
  18529. .textTitle >>> .el-form-item__content {
  18530. width: calc(100% - 100px);
  18531. }
  18532. .textCss >>> .el-dialog {
  18533. width: 800px !important;
  18534. height: 400px;
  18535. background: #fafafa;
  18536. }
  18537. .textCss >>> .el-dialog__body {
  18538. margin: 55px 8% 0 8%;
  18539. padding: 0 !important;
  18540. }
  18541. .textCss >>> .el-dialog__footer {
  18542. padding-top: 38px;
  18543. }
  18544. .toolsCss >>> .el-dialog__body {
  18545. padding: 20px;
  18546. }
  18547. .lineCss >>> .el-dialog__body {
  18548. display: flex;
  18549. flex-direction: row;
  18550. align-items: center;
  18551. justify-content: center;
  18552. }
  18553. .newNav {
  18554. display: flex;
  18555. flex-direction: row;
  18556. align-items: baseline;
  18557. justify-content: flex-start;
  18558. }
  18559. .navText {
  18560. cursor: pointer;
  18561. white-space: nowrap;
  18562. overflow: hidden;
  18563. text-overflow: ellipsis;
  18564. width: 220px;
  18565. padding: 0 10px;
  18566. font-weight: 400;
  18567. color: #0e1e33;
  18568. }
  18569. .noVedio {
  18570. display: flex;
  18571. flex-direction: row;
  18572. justify-content: center;
  18573. align-content: center;
  18574. }
  18575. .noNavText {
  18576. cursor: pointer;
  18577. margin: 0px 0px 10px 5px;
  18578. width: 112px;
  18579. }
  18580. .listNoVedio {
  18581. margin: 0 0 0 30px;
  18582. width: 97%;
  18583. }
  18584. .video-player >>> .video-js {
  18585. height: 100%;
  18586. }
  18587. .hangVedioList {
  18588. width: 90% !important;
  18589. height: 150px !important;
  18590. margin: 20px 0 0 30px;
  18591. }
  18592. .hangVedio {
  18593. width: 100%;
  18594. height: 170px !important;
  18595. align-items: flex-start !important;
  18596. }
  18597. .hangHand {
  18598. height: 150px !important;
  18599. }
  18600. .twoChild {
  18601. width: 95%;
  18602. margin: 10px;
  18603. border-radius: 5px;
  18604. background: #f2f2f2;
  18605. display: flex;
  18606. flex-direction: column;
  18607. flex-wrap: nowrap;
  18608. justify-content: flex-start;
  18609. align-items: flex-start;
  18610. transition: all 0.5s;
  18611. overflow: hidden;
  18612. height: 0;
  18613. background: #e7f3ff;
  18614. }
  18615. .twoChild > div:nth-child(1) {
  18616. margin-top: 5px;
  18617. }
  18618. .navChild {
  18619. width: 100%;
  18620. cursor: pointer;
  18621. margin-bottom: 10px;
  18622. position: relative;
  18623. }
  18624. .navChild img {
  18625. position: absolute;
  18626. right: 11px;
  18627. width: 15px;
  18628. top: 50%;
  18629. transform: translateY(-50%);
  18630. }
  18631. .navActive {
  18632. height: auto !important;
  18633. overflow: auto !important;
  18634. padding-bottom: 10px;
  18635. }
  18636. .navTask {
  18637. display: flex;
  18638. flex-direction: row;
  18639. flex-wrap: nowrap;
  18640. align-items: center;
  18641. align-content: flex-start;
  18642. height: 40px;
  18643. justify-content: flex-start;
  18644. padding: 0 10px;
  18645. width: 100%;
  18646. box-sizing: border-box;
  18647. }
  18648. .navTaskname {
  18649. white-space: nowrap;
  18650. text-overflow: ellipsis;
  18651. overflow: hidden;
  18652. word-break: break-all;
  18653. padding-left: 5px;
  18654. }
  18655. .openTaskActive {
  18656. color: #4386e6;
  18657. }
  18658. .iframeName {
  18659. margin: 5px 0;
  18660. border-left: 4px solid #41c4a4;
  18661. padding-left: 4px;
  18662. }
  18663. .toolTitle {
  18664. margin: 0px 0px 20px;
  18665. font-size: 20px;
  18666. font-weight: 500;
  18667. border-left: 4px solid #41c4a4;
  18668. padding-left: 4px;
  18669. }
  18670. .cru_selectBox {
  18671. overflow: auto;
  18672. width: 90%;
  18673. margin: 17px auto 0;
  18674. height: calc(100% - 40px - 21px - 20px - 17px);
  18675. }
  18676. .cru_selectBox::-webkit-scrollbar,
  18677. .study_top::-webkit-scrollbar,
  18678. .textContent::-webkit-scrollbar {
  18679. /*滚动条整体样式*/
  18680. width: 6px;
  18681. /*高宽分别对应横竖滚动条的尺寸*/
  18682. height: 6px;
  18683. }
  18684. /*定义滚动条轨道 内阴影+圆角*/
  18685. .cru_selectBox::-webkit-scrollbar-track,
  18686. .study_top::-webkit-scrollbar-track,
  18687. .textContent::-webkit-scrollbar {
  18688. border-radius: 10px;
  18689. background-color: #b8bdc9;
  18690. }
  18691. /*定义滑块 内阴影+圆角*/
  18692. .cru_selectBox::-webkit-scrollbar-thumb,
  18693. .study_top::-webkit-scrollbar-thumb,
  18694. .textContent::-webkit-scrollbar-thumb {
  18695. border-radius: 10px;
  18696. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  18697. background-color: #2c5ab3;
  18698. }
  18699. .vedioBox {
  18700. border-radius: 0 0 20px 20px;
  18701. background: #fff;
  18702. margin-bottom: 10px;
  18703. overflow: auto;
  18704. }
  18705. .taskBox {
  18706. width: 95%;
  18707. margin: 0 auto;
  18708. border-bottom: 1px solid #cad1dc;
  18709. }
  18710. .vedioTaskBox {
  18711. width: 100%;
  18712. display: flex;
  18713. flex-direction: row;
  18714. flex-wrap: nowrap;
  18715. align-items: flex-start;
  18716. position: relative;
  18717. }
  18718. .toolBox {
  18719. padding: 30px 60px 15px;
  18720. display: flex;
  18721. position: relative;
  18722. }
  18723. .btnAll {
  18724. position: absolute;
  18725. right: 0;
  18726. display: flex;
  18727. flex-direction: row;
  18728. flex-wrap: nowrap;
  18729. align-items: center;
  18730. }
  18731. .btnAllNT {
  18732. position: fixed;
  18733. bottom: 50px;
  18734. right: 40px;
  18735. z-index: 999;
  18736. display: flex;
  18737. flex-direction: row;
  18738. }
  18739. .btnAllNT > img {
  18740. cursor: pointer;
  18741. width: 80px;
  18742. }
  18743. /* .vedioTimeBox {
  18744. display: flex;
  18745. flex-direction: row;
  18746. align-items: center;
  18747. flex-wrap: nowrap;
  18748. position: relative;
  18749. } */
  18750. .navBox {
  18751. background: #fff;
  18752. height: calc(100% - 40px);
  18753. overflow-y: auto;
  18754. overflow-x: hidden;
  18755. }
  18756. .tool_work_box {
  18757. width: 100%;
  18758. padding: 0 37px 10px;
  18759. box-sizing: border-box;
  18760. }
  18761. .worksBox {
  18762. padding: 5px 0;
  18763. border-bottom: 1px solid #eeeeee;
  18764. }
  18765. .worksBTitle {
  18766. font-size: 20px;
  18767. padding-bottom: 15px;
  18768. border-bottom: 1px solid #eeeeee;
  18769. display: flex;
  18770. align-items: center;
  18771. }
  18772. .greenBox {
  18773. width: 5px;
  18774. height: 30px;
  18775. background: #63b6fa;
  18776. margin-right: 5px;
  18777. }
  18778. .worksDetailBox {
  18779. display: flex;
  18780. width: 100%;
  18781. flex-direction: row;
  18782. flex-wrap: wrap;
  18783. align-items: flex-end;
  18784. justify-content: flex-start;
  18785. padding: 15px 0;
  18786. }
  18787. .works {
  18788. display: flex;
  18789. flex-direction: column;
  18790. flex-wrap: nowrap;
  18791. align-items: flex-start;
  18792. justify-content: flex-start;
  18793. align-content: center;
  18794. max-width: 240px;
  18795. width: calc(100% / 3 - 10px);
  18796. height: auto;
  18797. margin-right: 10px;
  18798. margin-bottom: 10px;
  18799. overflow: hidden;
  18800. height: 140px;
  18801. box-shadow: 0 0 6px 1px #dfdada;
  18802. border-radius: 15px;
  18803. }
  18804. .workImg {
  18805. width: 100%;
  18806. /* height: calc(100% - 40px); */
  18807. height: 105px;
  18808. position: relative;
  18809. }
  18810. .workImg > img {
  18811. width: 100%;
  18812. height: 100%;
  18813. object-fit: contain;
  18814. cursor: pointer;
  18815. }
  18816. .worksName {
  18817. height: 40px;
  18818. line-height: 40px;
  18819. display: flex;
  18820. width: 100%;
  18821. flex-direction: row;
  18822. flex-wrap: nowrap;
  18823. justify-content: space-between;
  18824. align-items: center;
  18825. margin: 0 0 0 10px;
  18826. }
  18827. .worksName > div:nth-child(1) {
  18828. width: 110px;
  18829. white-space: nowrap;
  18830. overflow: hidden;
  18831. text-overflow: ellipsis;
  18832. }
  18833. .worksName > div:nth-child(2) {
  18834. color: #b7b4b5;
  18835. }
  18836. .noWorksS {
  18837. padding: 15px 0 0;
  18838. display: flex;
  18839. flex-direction: row;
  18840. flex-wrap: wrap;
  18841. align-items: center;
  18842. justify-content: flex-start;
  18843. }
  18844. .noWorksS > div {
  18845. cursor: pointer;
  18846. }
  18847. .noWorksName,
  18848. .isWorksName {
  18849. background: #7cbcf1;
  18850. color: #fff;
  18851. width: 90px;
  18852. height: 25px;
  18853. text-align: center;
  18854. line-height: 25px;
  18855. border-radius: 5px;
  18856. margin: 10px 15px 10px 0;
  18857. white-space: nowrap;
  18858. overflow: hidden;
  18859. padding: 5px;
  18860. text-overflow: ellipsis;
  18861. }
  18862. .noWorksName.isWork {
  18863. background: #165d96 !important;
  18864. }
  18865. .isWorksName {
  18866. cursor: pointer;
  18867. background: #46a1eb !important;
  18868. width: 100px;
  18869. height: 40px;
  18870. line-height: 40px;
  18871. position: relative;
  18872. }
  18873. .noWorksName:hover {
  18874. background: #46a1eb !important;
  18875. }
  18876. .title {
  18877. background: #1e5cc9;
  18878. /* width: 98%; */
  18879. height: 45px;
  18880. color: #fff;
  18881. line-height: 45px;
  18882. padding-left: 20px;
  18883. box-sizing: border-box;
  18884. }
  18885. .textBox {
  18886. font-size: 20px;
  18887. width: 90%;
  18888. display: flex;
  18889. flex-direction: column;
  18890. align-items: center;
  18891. margin: 20px auto 0;
  18892. max-height: 500px;
  18893. overflow: auto;
  18894. }
  18895. .textContent {
  18896. font-size: 18px;
  18897. width: 95%;
  18898. max-width: 95%;
  18899. }
  18900. .answerBg {
  18901. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  18902. background-size: 100% 100%;
  18903. width: 100%;
  18904. height: 100%;
  18905. color: #fff;
  18906. text-align: center;
  18907. display: flex;
  18908. flex-direction: column;
  18909. flex-wrap: nowrap;
  18910. align-items: center;
  18911. position: relative;
  18912. justify-content: center;
  18913. }
  18914. .answerBg > div:nth-child(1) {
  18915. /* font-size: 22px;
  18916. padding: 25px 0 10px; */
  18917. }
  18918. .answerContent {
  18919. width: 215px;
  18920. max-height: 60px;
  18921. word-break: break-all;
  18922. text-align: center;
  18923. /* white-space: nowrap; */
  18924. overflow: hidden;
  18925. text-overflow: ellipsis;
  18926. /* padding: 23px 0 0; */
  18927. -webkit-line-clamp: 3;
  18928. -webkit-box-orient: vertical;
  18929. display: -webkit-box;
  18930. font-size: 15px;
  18931. cursor: pointer;
  18932. }
  18933. .elist_input_box {
  18934. display: flex;
  18935. align-items: flex-start;
  18936. flex-wrap: nowrap;
  18937. padding: 10px 0 15px 30px;
  18938. flex-direction: column;
  18939. }
  18940. .elist_input {
  18941. /* width: 40%; */
  18942. width: 100%;
  18943. }
  18944. .elist_input .elist_input_box input {
  18945. font: inherit;
  18946. color: currentColor;
  18947. width: 200px;
  18948. padding: 8px 14px;
  18949. display: block;
  18950. min-width: 0;
  18951. outline: none;
  18952. border: 1px solid rgba(0, 0, 0, 0.23);
  18953. border-radius: 4px;
  18954. box-sizing: border-box;
  18955. background: #fff;
  18956. margin: 0 20px 0 0;
  18957. }
  18958. .elist_input .elist_input_box span {
  18959. height: 36px;
  18960. line-height: 36px;
  18961. color: rgb(82, 82, 82);
  18962. }
  18963. .elist_input .elist_input_box .remove {
  18964. height: 20px;
  18965. width: 20px;
  18966. background-size: 100% 100%;
  18967. background-position: unset;
  18968. margin-left: 5px;
  18969. }
  18970. .elist_input_box >>> .el-rate {
  18971. display: flex;
  18972. height: 36px;
  18973. align-items: center;
  18974. }
  18975. .elist_input_box .elist_inptu_text {
  18976. min-height: 50px;
  18977. /* width: 500px;
  18978. max-height: 150px; */
  18979. width: 100%;
  18980. line-height: 50px;
  18981. color: rgb(82, 82, 82);
  18982. overflow: auto;
  18983. text-indent: 5px;
  18984. background: #f7f6f9;
  18985. border-radius: 10px;
  18986. }
  18987. .elist_input_box .elist_inptu_text input {
  18988. width: 500px;
  18989. }
  18990. .elist_input_box >>> .el-rate__icon {
  18991. font-size: 24px;
  18992. }
  18993. .isClick {
  18994. background: #4d9def;
  18995. }
  18996. /*定义滚动条轨道 内阴影+圆角*/
  18997. .bzTypeBox::-webkit-scrollbar {
  18998. /*滚动条整体样式*/
  18999. width: 6px;
  19000. /*高宽分别对应横竖滚动条的尺寸*/
  19001. height: 6px;
  19002. }
  19003. /*定义滚动条轨道 内阴影+圆角*/
  19004. .bzTypeBox::-webkit-scrollbar-track {
  19005. border-radius: 10px;
  19006. background-color: rgba(0, 0, 0, 0.1);
  19007. }
  19008. /*定义滑块 内阴影+圆角*/
  19009. .bzTypeBox::-webkit-scrollbar-thumb {
  19010. border-radius: 10px;
  19011. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  19012. background-color: rgba(0, 0, 0, 0.1);
  19013. }
  19014. .choiceBox {
  19015. display: flex;
  19016. margin: 20px 0;
  19017. width: 100%;
  19018. }
  19019. .bzTypeBox {
  19020. display: flex;
  19021. width: 100%;
  19022. overflow: auto;
  19023. white-space: nowrap;
  19024. }
  19025. .bzChild {
  19026. cursor: pointer;
  19027. box-sizing: border-box;
  19028. padding-bottom: 10px;
  19029. font-weight: bold;
  19030. min-width: fit-content;
  19031. }
  19032. .bzChild.active {
  19033. color: #3e88f4;
  19034. border-bottom: 2px solid #2f80f3;
  19035. }
  19036. .bzChild + .bzChild {
  19037. margin-left: 25px;
  19038. }
  19039. .bzBox {
  19040. display: flex;
  19041. flex-direction: row;
  19042. align-items: center;
  19043. }
  19044. .bzBox .yCss {
  19045. width: 14px;
  19046. height: 14px;
  19047. background: #3681fc;
  19048. margin: 0 16px 0 7px;
  19049. border-radius: 50%;
  19050. }
  19051. .bzBox > div:nth-child(2) {
  19052. font-size: 18px;
  19053. font-weight: bold;
  19054. color: #0e1e33;
  19055. }
  19056. .navTitile {
  19057. padding: 0 0px 0 15px;
  19058. font-size: 16px;
  19059. font-weight: bold;
  19060. color: #0e1e33;
  19061. height: 40px;
  19062. line-height: 40px;
  19063. }
  19064. .isTypeOne {
  19065. width: 240px;
  19066. height: 170px;
  19067. /* border: 1px solid #f8f8f8; */
  19068. border-radius: 10px;
  19069. box-shadow: 0 0 6px 1px #dfdada;
  19070. }
  19071. .e_add_top {
  19072. display: flex;
  19073. justify-content: space-between;
  19074. padding: 20px 20px 0 20px;
  19075. border-radius: 3px;
  19076. background: #fff;
  19077. }
  19078. .e_add_title2 {
  19079. display: flex;
  19080. align-items: center;
  19081. }
  19082. .e_add_title2 span {
  19083. width: 40px;
  19084. }
  19085. .e_add_title {
  19086. display: flex;
  19087. align-items: center;
  19088. color: #b8b8b8;
  19089. font-size: 18px;
  19090. position: relative;
  19091. height: 40px;
  19092. }
  19093. .e_add_title span {
  19094. margin-right: 10px;
  19095. }
  19096. .e_add_title .el_input {
  19097. width: 300px;
  19098. }
  19099. .e_add_title >>> .el-input__inner {
  19100. width: 400px;
  19101. }
  19102. .e_add_btn {
  19103. }
  19104. .e_add_content {
  19105. display: flex;
  19106. width: 100%;
  19107. max-width: 650px;
  19108. height: 550px;
  19109. }
  19110. .e_add_list {
  19111. background: #fff;
  19112. height: 500px;
  19113. width: 210px;
  19114. position: relative;
  19115. margin: 15px 5px 0 0;
  19116. flex-shrink: 0;
  19117. display: flex;
  19118. flex-direction: column;
  19119. }
  19120. .e_add_list_title {
  19121. font-size: 20px;
  19122. width: 100%;
  19123. box-sizing: border-box;
  19124. padding: 15px 40px;
  19125. text-align: center;
  19126. border-bottom: 1px solid #eaeaea;
  19127. position: relative;
  19128. display: flex;
  19129. align-items: center;
  19130. justify-content: center;
  19131. height: 57px;
  19132. background: #f6f6f6;
  19133. }
  19134. .e_add_list_title span {
  19135. overflow: hidden;
  19136. white-space: nowrap;
  19137. text-overflow: ellipsis;
  19138. }
  19139. .e_add_list_title img {
  19140. position: absolute;
  19141. right: 15px;
  19142. width: 25px;
  19143. cursor: pointer;
  19144. top: 50%;
  19145. transform: translateY(-50%);
  19146. }
  19147. .e_add_list_body {
  19148. height: calc(100% - 187px);
  19149. overflow: auto;
  19150. }
  19151. .e_add_list_child {
  19152. width: 100%;
  19153. display: flex;
  19154. align-items: center;
  19155. justify-content: center;
  19156. position: relative;
  19157. box-sizing: border-box;
  19158. padding: 15px 40px;
  19159. text-align: center;
  19160. }
  19161. .e_add_list_child span {
  19162. overflow: hidden;
  19163. white-space: nowrap;
  19164. text-overflow: ellipsis;
  19165. cursor: pointer;
  19166. }
  19167. .e_add_list_child img {
  19168. position: absolute;
  19169. right: 10px;
  19170. width: 21px;
  19171. cursor: pointer;
  19172. top: 50%;
  19173. transform: translateY(-50%);
  19174. }
  19175. .e_add_list_child + .e_add_list_child {
  19176. border-top: 1px solid #eaeaea;
  19177. }
  19178. .e_add_list_child .active {
  19179. color: #409eff;
  19180. }
  19181. .e_add_list_btn {
  19182. position: absolute;
  19183. bottom: 0;
  19184. height: 50px;
  19185. background: rgb(120, 120, 254);
  19186. width: 100%;
  19187. color: #fff;
  19188. font-size: 16px;
  19189. text-align: center;
  19190. line-height: 50px;
  19191. cursor: pointer;
  19192. }
  19193. .e_add_list_detail {
  19194. position: absolute;
  19195. bottom: 0;
  19196. height: 130px;
  19197. background: rgb(120, 120, 254);
  19198. width: 100%;
  19199. color: #fff;
  19200. font-size: 16px;
  19201. display: flex;
  19202. align-items: center;
  19203. justify-content: center;
  19204. }
  19205. .e_add_list_detail textarea {
  19206. height: 90%;
  19207. width: 95%;
  19208. border: none;
  19209. resize: none;
  19210. outline: none;
  19211. padding: 5px;
  19212. box-sizing: border-box;
  19213. }
  19214. .e_add_list_pbox {
  19215. width: 100%;
  19216. max-width: 650px;
  19217. /* height: 600px; */
  19218. }
  19219. .e_add_list_pbox_title {
  19220. height: 50px;
  19221. background: #fff;
  19222. display: flex;
  19223. align-items: center;
  19224. width: 100%;
  19225. box-sizing: border-box;
  19226. padding: 0 20px;
  19227. }
  19228. .type_title {
  19229. font-size: 18px;
  19230. font-weight: 700;
  19231. }
  19232. .type_content {
  19233. font-size: 16px;
  19234. margin-left: 30px;
  19235. }
  19236. .type_content span + span {
  19237. margin-left: 20px;
  19238. }
  19239. .type_content span {
  19240. cursor: pointer;
  19241. padding-bottom: 5px;
  19242. box-sizing: border-box;
  19243. }
  19244. .type_content .active {
  19245. color: #409eff;
  19246. border-bottom: 2px solid #409eff;
  19247. }
  19248. .e_add_list_pbox_content {
  19249. height: calc(100% - 50px);
  19250. display: flex;
  19251. align-items: center;
  19252. width: 100%;
  19253. background: #fff;
  19254. }
  19255. .evaCss {
  19256. display: flex;
  19257. flex-direction: row;
  19258. flex-wrap: nowrap;
  19259. align-items: flex-start;
  19260. }
  19261. .cru_line {
  19262. position: absolute;
  19263. bottom: 0px;
  19264. transition: all 0.5s;
  19265. left: 0px;
  19266. width: 125px;
  19267. margin-left: -25px;
  19268. }
  19269. .isNoMessage {
  19270. width: 20%;
  19271. margin: 25% auto 0;
  19272. }
  19273. .isNoMessage > img {
  19274. width: 100%;
  19275. height: 100%;
  19276. }
  19277. .fullStyle >>> .el-dialog__body {
  19278. height: 100% !important;
  19279. }
  19280. .fullStyle >>> .el-dialog,
  19281. .fullStyle {
  19282. width: 100% !important;
  19283. max-width: 100% !important;
  19284. height: 100% !important;
  19285. margin: 0 !important;
  19286. }
  19287. .full_diy >>> .el-dialog {
  19288. margin: 0 !important;
  19289. height: 100%;
  19290. padding: 4px;
  19291. }
  19292. .full_diy >>> .el-dialog__body {
  19293. height: calc(100% - 100px);
  19294. }
  19295. .full_diy2 >>> .el-dialog__body {
  19296. height: calc(100% - 50px);
  19297. padding: 0;
  19298. }
  19299. .switchCss {
  19300. /* width: 100%; */
  19301. display: flex;
  19302. flex-direction: row;
  19303. flex-wrap: nowrap;
  19304. align-items: center;
  19305. /* justify-content: center; */
  19306. }
  19307. .isClickNav {
  19308. color: #499eef;
  19309. }
  19310. .commentImg {
  19311. width: 25px;
  19312. height: 25px;
  19313. cursor: pointer;
  19314. }
  19315. .commentImg > img {
  19316. width: 100%;
  19317. height: 100%;
  19318. }
  19319. .comment {
  19320. background: #f9f9f9;
  19321. border-radius: 0 0 15px 15px;
  19322. display: flex;
  19323. flex-direction: row;
  19324. flex-wrap: nowrap;
  19325. align-items: center;
  19326. justify-content: flex-end;
  19327. height: 35px;
  19328. }
  19329. .commentList {
  19330. display: flex;
  19331. flex-direction: row;
  19332. flex-wrap: nowrap;
  19333. align-items: center;
  19334. justify-content: center;
  19335. align-content: center;
  19336. /* margin-left: 15px; */
  19337. /* margin-left: 8px; */
  19338. }
  19339. .scoreImg {
  19340. width: 17px;
  19341. height: 17px;
  19342. }
  19343. .studentDetail {
  19344. display: flex;
  19345. flex-direction: row;
  19346. flex-wrap: nowrap;
  19347. /* align-items: center; */
  19348. align-items: flex-start;
  19349. }
  19350. .tx {
  19351. width: 50px;
  19352. }
  19353. .tx > img {
  19354. width: 100%;
  19355. height: 100%;
  19356. }
  19357. .nameAndTime {
  19358. display: flex;
  19359. flex-direction: column;
  19360. flex-wrap: nowrap;
  19361. align-items: flex-start;
  19362. margin-left: 10px;
  19363. }
  19364. .worksAnswer {
  19365. color: #4078dd;
  19366. margin: 10px 0;
  19367. font-size: 16px;
  19368. position: relative;
  19369. }
  19370. .worksAnswer > img {
  19371. width: 500px;
  19372. height: 300px;
  19373. object-fit: contain;
  19374. margin: 0 auto;
  19375. display: block;
  19376. }
  19377. .commentTop {
  19378. border-bottom: 1px solid #eaeaea;
  19379. padding-bottom: 10px;
  19380. }
  19381. .commentBox {
  19382. padding-top: 15px;
  19383. }
  19384. .pl {
  19385. font-size: 18px;
  19386. }
  19387. .plPerson {
  19388. width: 100%;
  19389. }
  19390. .plName {
  19391. display: flex;
  19392. flex-direction: row;
  19393. flex-wrap: nowrap;
  19394. align-items: baseline;
  19395. color: #78787a;
  19396. width: 100%;
  19397. }
  19398. .deleteComment {
  19399. cursor: pointer;
  19400. margin-left: auto;
  19401. color: #237ade;
  19402. }
  19403. .plContent {
  19404. margin-top: 5px;
  19405. }
  19406. .evalCss {
  19407. background: #fff;
  19408. font-size: 18px;
  19409. }
  19410. .nav {
  19411. color: #9d9d9d;
  19412. padding: 5px 0 15px 20px;
  19413. }
  19414. .middleBox {
  19415. padding: 5px 0 15px 20px;
  19416. }
  19417. .pfBox {
  19418. padding-bottom: 30px;
  19419. }
  19420. .nameAndrate {
  19421. display: flex;
  19422. flex-direction: row;
  19423. flex-wrap: nowrap;
  19424. align-items: center;
  19425. padding-bottom: 10px;
  19426. height: 30px;
  19427. line-height: 30px;
  19428. }
  19429. .nameAndrate > div {
  19430. margin-left: 10px;
  19431. color: #000;
  19432. height: 30px;
  19433. }
  19434. .nameAndrate >>> .el-rate__icon {
  19435. font-size: 28px !important;
  19436. }
  19437. .pfBox > div:nth-child(2) {
  19438. background: #f7f6f9;
  19439. width: 400px;
  19440. min-height: 45px;
  19441. border-radius: 10px;
  19442. font-size: 16px;
  19443. display: flex;
  19444. flex-wrap: wrap;
  19445. align-items: center;
  19446. padding: 10px 20px;
  19447. box-sizing: border-box;
  19448. color: #000;
  19449. }
  19450. .bz {
  19451. display: flex;
  19452. flex-direction: row;
  19453. flex-wrap: nowrap;
  19454. align-items: flex-start;
  19455. }
  19456. .bz > div {
  19457. padding: 0 10px;
  19458. }
  19459. .select_box2_title {
  19460. background: #fff;
  19461. border-radius: 5px;
  19462. padding: 15px 10px;
  19463. box-sizing: border-box;
  19464. margin-bottom: 10px;
  19465. display: flex;
  19466. flex-direction: row;
  19467. flex-wrap: nowrap;
  19468. align-items: center;
  19469. }
  19470. .select_box2_title > div:nth-child(2) {
  19471. margin-left: 10px;
  19472. color: #c4c4c4;
  19473. }
  19474. .select_box2_box {
  19475. display: flex;
  19476. height: 500px;
  19477. }
  19478. .select_box2_img {
  19479. width: calc(100% - 310px);
  19480. height: 100%;
  19481. overflow: auto;
  19482. background: #fff;
  19483. border-radius: 5px;
  19484. }
  19485. .select_box2_img img {
  19486. width: 100%;
  19487. }
  19488. .select_box2_answer {
  19489. background: #fff;
  19490. margin-left: 10px;
  19491. border-radius: 5px;
  19492. width: 300px;
  19493. overflow: auto;
  19494. height: 90%;
  19495. display: flex;
  19496. flex-direction: column;
  19497. align-items: flex-start;
  19498. padding-top: 10px;
  19499. box-sizing: border-box;
  19500. position: relative;
  19501. }
  19502. .select_answer_title {
  19503. padding: 0 0 15px 20px;
  19504. color: #c4c4c4;
  19505. }
  19506. .select_box2_answer_box {
  19507. margin: 0 0 10px 20px;
  19508. width: 85%;
  19509. display: flex;
  19510. flex-direction: row;
  19511. flex-wrap: nowrap;
  19512. align-items: center;
  19513. }
  19514. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  19515. color: #000;
  19516. }
  19517. .upAnswerCss {
  19518. position: absolute;
  19519. bottom: 15px;
  19520. right: 15px;
  19521. }
  19522. .upAnswerCss >>> .el-button {
  19523. width: 95px;
  19524. height: 35px;
  19525. line-height: 35px;
  19526. padding: 0;
  19527. }
  19528. .rightWidthCss {
  19529. width: 60%;
  19530. display: flex;
  19531. flex-direction: row;
  19532. align-items: flex-start;
  19533. }
  19534. .rightAnswer {
  19535. display: flex;
  19536. flex-direction: row;
  19537. flex-wrap: nowrap;
  19538. align-items: center;
  19539. color: red;
  19540. margin-bottom: 31px;
  19541. }
  19542. .rightAnswerCss {
  19543. display: flex;
  19544. flex-direction: column;
  19545. flex-wrap: nowrap;
  19546. padding-top: 60px;
  19547. }
  19548. .blueCss {
  19549. color: #767de1;
  19550. margin-left: 10px;
  19551. }
  19552. .redCss {
  19553. color: red;
  19554. }
  19555. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  19556. color: rgb(0 123 255) !important;
  19557. }
  19558. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  19559. color: rgb(0 123 255) !important;
  19560. }
  19561. .zuoyeYulan {
  19562. padding-top: 15px;
  19563. font-size: 18px;
  19564. display: flex;
  19565. align-items: flex-end;
  19566. }
  19567. .buttonA {
  19568. margin-left: 10px;
  19569. padding: 0;
  19570. }
  19571. .displayBox {
  19572. margin-bottom: 10px;
  19573. display: block;
  19574. border-bottom: 3px solid #eee;
  19575. display: flex;
  19576. align-items: center;
  19577. }
  19578. .easy_comment {
  19579. width: calc(100% - 90px);
  19580. margin-left: 10px;
  19581. display: flex;
  19582. flex-wrap: wrap;
  19583. }
  19584. .easy_comment > div {
  19585. border: 1px solid #4a4a4a;
  19586. color: #666;
  19587. border-radius: 15px;
  19588. padding: 5px 10px;
  19589. font-size: 16px;
  19590. margin-bottom: 10px;
  19591. margin-right: 5px;
  19592. cursor: pointer;
  19593. }
  19594. .easy_comment div:hover {
  19595. border: 1px solid #f7ba2a;
  19596. color: #c69217;
  19597. }
  19598. .xuan_right_box {
  19599. padding: 10px;
  19600. background: rgb(247, 247, 247);
  19601. margin: 10px 12px;
  19602. border-radius: 5px;
  19603. }
  19604. .tool_right_box {
  19605. display: flex;
  19606. align-items: center;
  19607. }
  19608. .tool_right_box + .tool_right_box {
  19609. margin-top: 10px;
  19610. }
  19611. .right_box_xuan {
  19612. background: rgb(0 123 255);
  19613. color: #fff;
  19614. border-radius: 5px;
  19615. padding: 5px;
  19616. margin-left: 10px;
  19617. }
  19618. .pButton:hover {
  19619. opacity: 1 !important;
  19620. }
  19621. .pButton {
  19622. position: fixed;
  19623. /* right: 5%; */
  19624. /* bottom: 5%; */
  19625. color: #fff;
  19626. /* width: 50px;
  19627. height: 50px; */
  19628. /* border-radius: 50%; */
  19629. text-align: center;
  19630. /* line-height: 50px; */
  19631. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  19632. cursor: pointer;
  19633. z-index: 999;
  19634. right: 20px;
  19635. top: 83px;
  19636. width: 50px;
  19637. height: 50px;
  19638. background: #fff;
  19639. display: flex;
  19640. align-items: center;
  19641. justify-content: center;
  19642. box-shadow: 0px 0 8px 2px #c5c5c5;
  19643. border-radius: 5px;
  19644. }
  19645. .pzClass {
  19646. width: calc(100% - 340px);
  19647. }
  19648. .newDialogCss {
  19649. /* position: fixed;
  19650. right: 5%;
  19651. top: 50%;
  19652. width: 340px;
  19653. transform: translateY(-50%);
  19654. height: 60%;
  19655. box-shadow: 0px 0 8px 0px #555555;
  19656. border-radius: 15px;
  19657. z-index: 999; */
  19658. position: fixed;
  19659. right: 20px;
  19660. top: 70px;
  19661. width: 330px;
  19662. height: calc(100% - 80px);
  19663. z-index: 999;
  19664. background: #fff;
  19665. border-radius: 15px;
  19666. border-top-right-radius: 0px;
  19667. border-bottom-right-radius: 0px;
  19668. overflow: hidden;
  19669. }
  19670. .pzTop {
  19671. color: #fff;
  19672. background: #000;
  19673. display: flex;
  19674. flex-direction: row;
  19675. flex-wrap: nowrap;
  19676. align-items: center;
  19677. justify-content: space-between;
  19678. height: 40px;
  19679. border-radius: 15px 15px 0 0;
  19680. }
  19681. .pzTop2 .checkbox {
  19682. display: flex;
  19683. align-items: center;
  19684. padding: 15px 30px;
  19685. flex: 0 0 auto;
  19686. font-weight: bold;
  19687. border-bottom: 1px solid #eee;
  19688. justify-content: space-between;
  19689. }
  19690. .pzTop2 .check {
  19691. text-align: center;
  19692. cursor: pointer;
  19693. box-sizing: border-box;
  19694. display: flex;
  19695. }
  19696. .pzTop2 img {
  19697. width: 25px;
  19698. cursor: pointer;
  19699. }
  19700. .pzTop > div:nth-child(1) {
  19701. padding-left: 10px;
  19702. }
  19703. .pzTop > div:nth-child(2) {
  19704. width: 15px;
  19705. height: 15px;
  19706. padding-right: 10px;
  19707. cursor: pointer;
  19708. }
  19709. .pzTop > div:nth-child(2) > img {
  19710. width: 100%;
  19711. height: 100%;
  19712. }
  19713. .pzBox,
  19714. .noPzBox {
  19715. height: calc(100% - 60px);
  19716. /* background: #ededed; */
  19717. background: #fff;
  19718. /* border-radius: 0 0 15px 15px; */
  19719. }
  19720. .noPzBox {
  19721. display: flex;
  19722. flex-direction: column;
  19723. flex-wrap: nowrap;
  19724. justify-content: center;
  19725. align-items: center;
  19726. }
  19727. .pzList {
  19728. background: #f7f7f7;
  19729. width: 90%;
  19730. margin: 0 auto 15px;
  19731. border-radius: 5px;
  19732. }
  19733. .pzNavTop {
  19734. display: flex;
  19735. flex-direction: row;
  19736. flex-wrap: nowrap;
  19737. padding: 10px 10px 0 10px;
  19738. align-items: center;
  19739. }
  19740. .pzDelete {
  19741. cursor: pointer;
  19742. margin-left: auto;
  19743. font-size: 14px;
  19744. color: #afafaf;
  19745. }
  19746. .pzNavTop > div:nth-child(1) {
  19747. background: #3760af;
  19748. width: 35px;
  19749. height: 35px;
  19750. color: #fff;
  19751. text-align: center;
  19752. line-height: 35px;
  19753. border-radius: 50%;
  19754. font-size: 14px;
  19755. }
  19756. .pzNavTop > div:nth-child(2) {
  19757. font-size: 18px;
  19758. color: #959595;
  19759. margin-left: 5px;
  19760. }
  19761. .pzContent {
  19762. padding: 10px;
  19763. word-break: break-word;
  19764. }
  19765. .pzContent audio {
  19766. width: 100%;
  19767. }
  19768. .pzContent audio::-webkit-media-controls-panel {
  19769. background: #fff;
  19770. }
  19771. .pzListBox {
  19772. padding-top: 15px;
  19773. height: calc(100% - 100px);
  19774. overflow: auto;
  19775. }
  19776. .addPzButton {
  19777. position: relative;
  19778. margin-top: 3px;
  19779. width: 100%;
  19780. }
  19781. .addPzButton .img1 {
  19782. position: absolute;
  19783. top: 50%;
  19784. right: 25px;
  19785. transform: translateY(-50%);
  19786. height: 100%;
  19787. display: flex;
  19788. align-items: center;
  19789. }
  19790. .addPzButton .img1 div {
  19791. display: flex;
  19792. }
  19793. .addPzButton .img1 div img {
  19794. width: 28px;
  19795. margin-left: 10px;
  19796. cursor: pointer;
  19797. }
  19798. .addPzButton .img1 div span {
  19799. font-size: 14px;
  19800. margin: 4px 0 0 3px;
  19801. color: #afafaf;
  19802. }
  19803. .addPz {
  19804. background: #4b79ce;
  19805. width: 100px;
  19806. color: #fff;
  19807. font-size: 12px;
  19808. height: 30px;
  19809. margin: 0 auto;
  19810. text-align: center;
  19811. line-height: 30px;
  19812. border-radius: 10px;
  19813. cursor: pointer;
  19814. }
  19815. .addDialogCss {
  19816. position: fixed;
  19817. right: 37%;
  19818. top: 50%;
  19819. width: 600px;
  19820. transform: translateY(-50%);
  19821. height: 70%;
  19822. min-height: 450px;
  19823. box-shadow: 0px 0 8px 0px #555555;
  19824. border-radius: 15px;
  19825. z-index: 999;
  19826. }
  19827. .teacherPz {
  19828. display: flex;
  19829. flex-direction: row;
  19830. align-items: center;
  19831. flex-wrap: nowrap;
  19832. }
  19833. .teacherPzImg {
  19834. width: 30px;
  19835. height: 30px;
  19836. }
  19837. .teacherPzImg > img {
  19838. width: 100%;
  19839. height: 100%;
  19840. }
  19841. .addPzBox {
  19842. height: calc(100% - 40px);
  19843. background: #ededed;
  19844. }
  19845. .pzAudioClass {
  19846. margin: 15px 14px;
  19847. background: #fff;
  19848. height: 100%;
  19849. display: flex;
  19850. justify-content: center;
  19851. align-items: center;
  19852. }
  19853. .pzConText {
  19854. width: 95%;
  19855. height: 100%;
  19856. margin: 10px auto 0;
  19857. border: none;
  19858. background: #fff;
  19859. border-radius: 0px;
  19860. }
  19861. .pzConText >>> .text {
  19862. height: calc(100% - 82px);
  19863. }
  19864. .addTextCss {
  19865. background: #4b79ce;
  19866. width: 80px;
  19867. height: 30px;
  19868. text-align: center;
  19869. color: #fff;
  19870. line-height: 30px;
  19871. border-radius: 10px;
  19872. margin: 10px auto 0;
  19873. cursor: pointer;
  19874. }
  19875. .pzConText:focus-visible {
  19876. border: none !important;
  19877. }
  19878. .maxWidth {
  19879. width: 1000px;
  19880. }
  19881. .noPz {
  19882. width: 150px;
  19883. margin: 0 auto 20%;
  19884. }
  19885. .noPz > img {
  19886. width: 100%;
  19887. height: 100%;
  19888. }
  19889. .pzList .time {
  19890. text-align: right;
  19891. box-sizing: border-box;
  19892. padding: 0 10px 10px 0px;
  19893. color: #949494;
  19894. font-size: 14px;
  19895. }
  19896. /* table 样式 */
  19897. .addPzCheck {
  19898. display: flex;
  19899. flex-direction: row;
  19900. flex-wrap: nowrap;
  19901. padding: 10px 15px 0;
  19902. }
  19903. .addPzCheck span {
  19904. cursor: pointer;
  19905. padding-bottom: 5px;
  19906. font-weight: bold;
  19907. }
  19908. .addPzCheck span + span {
  19909. margin-left: 10px;
  19910. }
  19911. .addPzCheck .isChooseActive {
  19912. color: #3e88f4;
  19913. border-bottom: 2px solid #2f80f3;
  19914. }
  19915. /* code 样式 */
  19916. .scoreBox,
  19917. .scoreDetailBox {
  19918. display: flex;
  19919. align-items: center;
  19920. justify-content: flex-start;
  19921. margin-top: 20px;
  19922. font-size: 18px;
  19923. width: 100%;
  19924. }
  19925. .scoreBox .t,
  19926. .scoreDetailBox .t {
  19927. margin-right: 10px;
  19928. width: 100px;
  19929. text-align: right;
  19930. }
  19931. .scoreDetailBox {
  19932. align-items: flex-start;
  19933. }
  19934. .scoreDetailBox >>> .el-textarea {
  19935. width: calc(100% - 200px);
  19936. }
  19937. .scoreBox >>> .el-input {
  19938. width: 130px;
  19939. font-size: 38px;
  19940. }
  19941. .scoreBox >>> .el-input__inner {
  19942. height: 60px;
  19943. }
  19944. .answerScore {
  19945. position: absolute;
  19946. top: 10px;
  19947. right: 10px;
  19948. background: #0000008f;
  19949. border-radius: 5px;
  19950. padding: 3px 5px;
  19951. font-size: 14px;
  19952. color: #fff;
  19953. cursor: pointer;
  19954. }
  19955. .open_box .switch_box {
  19956. width: 100%;
  19957. margin: 0 auto;
  19958. display: flex;
  19959. justify-content: space-between;
  19960. }
  19961. .open_box .switch_box + .switch_box {
  19962. margin-top: 10px;
  19963. }
  19964. .deleteImg {
  19965. width: 25px !important;
  19966. height: 25px !important;
  19967. cursor: pointer;
  19968. position: absolute;
  19969. top: 10px;
  19970. right: 10px;
  19971. }
  19972. .deleteImg2 {
  19973. width: 15px !important;
  19974. height: 15px !important;
  19975. top: 5px;
  19976. right: 5px;
  19977. }
  19978. .rightW {
  19979. right: 40px;
  19980. }
  19981. .drawPBox {
  19982. display: flex;
  19983. flex-direction: column;
  19984. position: relative;
  19985. }
  19986. .drawPBox span {
  19987. font-size: 18px;
  19988. color: #606266;
  19989. padding-bottom: 10px;
  19990. margin: 10px 0;
  19991. border-bottom: 1px solid #eaeaea;
  19992. }
  19993. .drawPBox img {
  19994. width: 500px;
  19995. height: 300px;
  19996. object-fit: contain;
  19997. cursor: pointer;
  19998. margin: 0 auto;
  19999. }
  20000. .sentenBox {
  20001. background: #fff;
  20002. height: 450px;
  20003. overflow: auto;
  20004. background-image: url("../../assets/icon/conSentences/stuBg.png");
  20005. background-position: 102%;
  20006. background-repeat: no-repeat;
  20007. background-size: 60%;
  20008. }
  20009. .addSen {
  20010. background: #409efe;
  20011. width: 90px;
  20012. color: #fff;
  20013. height: 35px;
  20014. text-align: center;
  20015. line-height: 35px;
  20016. border-radius: 5px;
  20017. float: right;
  20018. margin: 10px 20px 0 0;
  20019. cursor: pointer;
  20020. }
  20021. .sentenTop {
  20022. display: flex;
  20023. flex-direction: row;
  20024. flex-wrap: nowrap;
  20025. align-items: center;
  20026. padding: 55px 0 0 20px;
  20027. box-sizing: border-box;
  20028. }
  20029. .sentenTop > div:nth-child(2) {
  20030. width: 300px;
  20031. margin: 0 15px;
  20032. }
  20033. .sentenTop > div:nth-child(3) {
  20034. background: #409efe;
  20035. color: #fff;
  20036. width: 65px;
  20037. height: 35px;
  20038. text-align: center;
  20039. line-height: 35px;
  20040. border-radius: 5px;
  20041. cursor: pointer;
  20042. }
  20043. .cardList,
  20044. .cardList1 {
  20045. padding: 10px 0 10px 0;
  20046. display: flex;
  20047. flex-direction: row;
  20048. flex-wrap: wrap;
  20049. align-items: center;
  20050. box-sizing: border-box;
  20051. border-bottom: 1px solid #f4f4f4;
  20052. width: 98%;
  20053. margin: 0 auto;
  20054. min-width: 60%;
  20055. max-width: 85%;
  20056. }
  20057. .cardList1 {
  20058. padding: 10px 0 10px 10px !important;
  20059. margin: 0 !important;
  20060. }
  20061. .cardBox {
  20062. display: flex;
  20063. flex-direction: row;
  20064. flex-wrap: wrap;
  20065. align-items: center;
  20066. align-content: center;
  20067. }
  20068. .cardBox > div {
  20069. margin-bottom: 10px;
  20070. }
  20071. .isCard,
  20072. .isChooseCard,
  20073. .noCard,
  20074. .isCard1 {
  20075. width: 130px;
  20076. height: 60px;
  20077. text-align: center;
  20078. line-height: 60px;
  20079. font-size: 20px;
  20080. cursor: pointer;
  20081. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  20082. background-size: cover;
  20083. transition: all 2s;
  20084. margin-right: 20px;
  20085. }
  20086. .isCard > div,
  20087. .noCard > div,
  20088. .isCard1 > div {
  20089. white-space: nowrap;
  20090. overflow: hidden;
  20091. text-overflow: ellipsis;
  20092. width: 75%;
  20093. margin: 0 auto;
  20094. }
  20095. .noCard {
  20096. background-image: none;
  20097. }
  20098. .isCard1 {
  20099. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  20100. }
  20101. .isChooseCard {
  20102. background-image: none;
  20103. border: 1px dashed #b9b9b9;
  20104. border-radius: 10px;
  20105. }
  20106. .card {
  20107. width: 130px;
  20108. height: 60px;
  20109. }
  20110. .card > img {
  20111. width: 100%;
  20112. height: 100%;
  20113. }
  20114. .rightCardBox {
  20115. margin: 10px 0 0 10px;
  20116. }
  20117. .rightCardBox > div:nth-child(1) {
  20118. margin-bottom: 10px;
  20119. }
  20120. .cardCss {
  20121. display: flex;
  20122. flex-direction: column;
  20123. flex-wrap: nowrap;
  20124. align-items: center;
  20125. border-bottom: 3px solid #b4c3d3;
  20126. padding: 0 0 5px 0;
  20127. margin-right: 10px;
  20128. }
  20129. .cardCss > div:nth-child(2) {
  20130. background: #5b7b9d;
  20131. color: #fff;
  20132. width: 20px;
  20133. height: 20px;
  20134. border-radius: 50%;
  20135. text-align: center;
  20136. line-height: 20px;
  20137. }
  20138. .isWrong {
  20139. display: flex;
  20140. flex-direction: row;
  20141. flex-wrap: nowrap;
  20142. align-content: center;
  20143. align-items: center;
  20144. }
  20145. .answerRight {
  20146. width: 25%;
  20147. }
  20148. .isTj {
  20149. display: flex;
  20150. flex-direction: row;
  20151. flex-wrap: nowrap;
  20152. align-items: center;
  20153. }
  20154. .isTj > div:nth-child(2) {
  20155. color: #727070;
  20156. margin-left: 10px;
  20157. }
  20158. .isTjImg {
  20159. width: 30px;
  20160. height: 30px;
  20161. }
  20162. .isTjImg > img {
  20163. width: 100%;
  20164. height: 100%;
  20165. }
  20166. .cardAnswerBox {
  20167. font-size: 18px;
  20168. width: 97%;
  20169. border: 5px;
  20170. padding: 0;
  20171. border-radius: 5px;
  20172. margin: 10px auto;
  20173. word-break: break-word;
  20174. }
  20175. .w_name {
  20176. margin-bottom: 10px;
  20177. }
  20178. .w_name span {
  20179. font-size: 16px;
  20180. }
  20181. .w_teachert {
  20182. width: 50px !important;
  20183. position: absolute;
  20184. height: auto !important;
  20185. z-index: 10;
  20186. right: 25px;
  20187. top: -25px;
  20188. }
  20189. .group_workBox {
  20190. }
  20191. .group_workBox + .group_workBox {
  20192. margin-top: 20px;
  20193. }
  20194. .group_box {
  20195. padding-bottom: 20px;
  20196. border-bottom: 2px solid #f0f0f0;
  20197. }
  20198. .group_title {
  20199. display: flex;
  20200. align-items: center;
  20201. justify-content: space-between;
  20202. }
  20203. .group_name {
  20204. background-image: url(../../assets/icon/groupN.png);
  20205. width: 220px;
  20206. background-size: 100% 100%;
  20207. height: 67px;
  20208. padding: 0 20px 0 43px;
  20209. box-sizing: border-box;
  20210. line-height: 63px;
  20211. color: #fff;
  20212. overflow: hidden;
  20213. white-space: nowrap;
  20214. text-overflow: ellipsis;
  20215. }
  20216. .group_work {
  20217. width: 100%;
  20218. padding: 0 10px;
  20219. box-sizing: border-box;
  20220. display: flex;
  20221. flex-wrap: wrap;
  20222. }
  20223. .g_d_box {
  20224. display: flex;
  20225. flex-flow: wrap;
  20226. justify-content: space-around;
  20227. }
  20228. .g_d_box .isChair {
  20229. background-image: url(../../assets/avatar.png) !important;
  20230. }
  20231. .g_d_group {
  20232. width: 500px;
  20233. margin-bottom: 80px;
  20234. }
  20235. .g_d_group_chair {
  20236. display: flex;
  20237. align-items: center;
  20238. justify-content: center;
  20239. }
  20240. .g_d_group_chair > div + div {
  20241. margin-left: 30px;
  20242. }
  20243. .g_d_group_chair > div,
  20244. .g_d_group_chair2 > div {
  20245. display: flex;
  20246. flex-direction: column;
  20247. align-items: center;
  20248. }
  20249. .g_d_group_chair > div > span:nth-child(1),
  20250. .g_d_group_chair2 > div > span:nth-child(1) {
  20251. background-image: url(../../assets/icon/chair.png);
  20252. width: 50px;
  20253. height: 50px;
  20254. display: block;
  20255. background-size: 100% 100%;
  20256. }
  20257. .g_d_group_tableBox {
  20258. display: flex;
  20259. align-items: center;
  20260. justify-content: center;
  20261. }
  20262. .g_d_group_chair2 {
  20263. display: flex;
  20264. flex-direction: column;
  20265. align-items: center;
  20266. justify-content: center;
  20267. }
  20268. .g_d_group_chair2 > div + div {
  20269. margin-top: 10px;
  20270. }
  20271. .g_d_group_table {
  20272. background-image: url(../../assets/icon/groupBg.png);
  20273. width: 354px;
  20274. height: 196px;
  20275. background-size: 100% 100%;
  20276. display: flex;
  20277. align-items: center;
  20278. justify-content: center;
  20279. flex-direction: column;
  20280. color: #fff;
  20281. }
  20282. .g_d_group_table > div:nth-child(1) {
  20283. font-size: 24px;
  20284. margin-bottom: 5px;
  20285. }
  20286. .g_d_group_table > div:nth-child(2) div {
  20287. cursor: pointer;
  20288. background: #2e77bf;
  20289. padding: 4px 10px;
  20290. border-radius: 5px;
  20291. }
  20292. .groupBox {
  20293. }
  20294. .groupContent + .groupContent {
  20295. margin-top: 30px;
  20296. }
  20297. .groupTitle {
  20298. font-size: 24px;
  20299. color: rgb(80, 80, 80);
  20300. margin-bottom: 20px;
  20301. }
  20302. .groupName {
  20303. display: flex;
  20304. align-items: center;
  20305. }
  20306. .groupn {
  20307. font-size: 15px;
  20308. margin-right: 10px;
  20309. }
  20310. .groupName + .groupName {
  20311. margin-top: 15px;
  20312. }
  20313. .groupBtn {
  20314. margin-left: 10px;
  20315. }
  20316. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  20317. text-align: left;
  20318. }
  20319. .g_d_btnBox {
  20320. display: flex;
  20321. justify-content: flex-end;
  20322. align-items: flex-end;
  20323. margin-bottom: 20px;
  20324. }
  20325. .updateChair {
  20326. position: relative;
  20327. }
  20328. .updateChairBtn {
  20329. position: absolute;
  20330. width: 50px;
  20331. height: 50px;
  20332. overflow: hidden;
  20333. /* display: flex; */
  20334. align-items: center;
  20335. justify-content: center;
  20336. background: #00000087;
  20337. color: #fff;
  20338. border-radius: 50px;
  20339. display: none;
  20340. cursor: pointer;
  20341. }
  20342. .updateChair:hover .updateChairBtn {
  20343. display: flex;
  20344. }
  20345. .group_staic_box {
  20346. display: flex;
  20347. padding: 30px 40px 10px;
  20348. flex-wrap: wrap;
  20349. }
  20350. .group_staic {
  20351. /* width: 50%; */
  20352. margin-bottom: 20px;
  20353. display: flex;
  20354. align-items: center;
  20355. }
  20356. .group_staic span:nth-child(1) {
  20357. width: 150px;
  20358. text-align: right;
  20359. margin-right: 15px;
  20360. }
  20361. .group_staic span:nth-child(2) {
  20362. background: rgb(0 123 255);
  20363. color: #fff;
  20364. border-radius: 5px;
  20365. padding: 5px;
  20366. }
  20367. .codeFileBox {
  20368. height: 300px;
  20369. background: #fff;
  20370. display: flex;
  20371. align-items: center;
  20372. justify-content: center;
  20373. }
  20374. .codeFileBox img {
  20375. width: 200px;
  20376. margin: 0;
  20377. height: auto;
  20378. }
  20379. .codeFileBox div {
  20380. background: rgb(80, 142, 226);
  20381. color: #fff;
  20382. padding: 10px 20px;
  20383. border-radius: 25px;
  20384. cursor: pointer;
  20385. margin-left: 15px;
  20386. }
  20387. .radioBox {
  20388. display: flex;
  20389. flex-direction: column;
  20390. flex-wrap: nowrap;
  20391. align-items: flex-start;
  20392. }
  20393. .radioBox > div {
  20394. margin: 10px 0 0 10px;
  20395. }
  20396. /* .radioBox >>> .el-radio__input,
  20397. .radioBox >>> .el-checkbox__inner {
  20398. margin-left: 10px;
  20399. } */
  20400. .radioBox >>> .el-radio__label,
  20401. .radioBox >>> .el-checkbox__label {
  20402. display: flex;
  20403. align-items: center;
  20404. }
  20405. .radioBox >>> .el-radio__label > span {
  20406. width: 100%;
  20407. display: -webkit-box;
  20408. overflow: hidden;
  20409. white-space: normal !important;
  20410. text-overflow: ellipsis;
  20411. word-wrap: break-word;
  20412. }
  20413. .inImg {
  20414. width: 100px;
  20415. cursor: pointer;
  20416. }
  20417. .inImg > img {
  20418. width: 100%;
  20419. height: 100%;
  20420. object-fit: cover;
  20421. }
  20422. .timuImgBox {
  20423. margin: 10px 0;
  20424. display: flex;
  20425. flex-direction: column;
  20426. flex-wrap: wrap;
  20427. align-items: flex-start;
  20428. }
  20429. .timuImg {
  20430. width: 150px;
  20431. margin: 5px 0;
  20432. cursor: pointer;
  20433. }
  20434. .timuImg > img {
  20435. width: 100%;
  20436. height: 100%;
  20437. object-fit: cover;
  20438. }
  20439. .worksTop {
  20440. display: flex;
  20441. flex-direction: row;
  20442. align-items: flex-end;
  20443. }
  20444. .corOpen {
  20445. margin: 0 0 0 10px;
  20446. font-size: 14px;
  20447. cursor: pointer;
  20448. color: #505050;
  20449. }
  20450. .corOpen:hover {
  20451. color: #499eef;
  20452. }
  20453. .navCorOpenBox {
  20454. display: flex;
  20455. flex-direction: row;
  20456. align-items: center;
  20457. justify-content: space-between;
  20458. height: 55px;
  20459. background: #ffffff;
  20460. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  20461. border-radius: 8px 8px 0px 0px;
  20462. z-index: 9;
  20463. position: relative;
  20464. }
  20465. .navCorOpen {
  20466. padding-right: 15px;
  20467. cursor: pointer;
  20468. width: 20px;
  20469. display: flex;
  20470. }
  20471. .navCorOpen > img {
  20472. width: 100%;
  20473. height: 100%;
  20474. }
  20475. .mlImg {
  20476. width: 25px !important;
  20477. min-width: 25px;
  20478. cursor: pointer;
  20479. margin-top: 5px;
  20480. }
  20481. .mlImg > img {
  20482. width: 100%;
  20483. height: 100%;
  20484. }
  20485. .navLeftCss {
  20486. width: 100% !important;
  20487. left: 0 !important;
  20488. }
  20489. .isContentCss {
  20490. width: 100% !important;
  20491. }
  20492. .isAllWidth {
  20493. width: 100% !important;
  20494. }
  20495. .toolBoxSteps {
  20496. position: absolute;
  20497. top: 50%;
  20498. transform: translateY(-50%);
  20499. cursor: pointer;
  20500. width: 60px;
  20501. display: flex;
  20502. align-items: center;
  20503. justify-content: center;
  20504. }
  20505. .toolBoxSteps:nth-child(1) > img,
  20506. .toolBoxSteps:nth-child(2) > img {
  20507. width: 24px;
  20508. }
  20509. .toolBoxSteps:nth-child(1) {
  20510. left: 0;
  20511. }
  20512. .toolBoxSteps:nth-child(2) {
  20513. right: 0;
  20514. }
  20515. .isChooseActive {
  20516. color: #3681fc !important;
  20517. font-weight: bold !important;
  20518. }
  20519. .tool_box {
  20520. width: 100%;
  20521. margin-top: 20px;
  20522. }
  20523. .tool_type_box {
  20524. display: flex;
  20525. flex-direction: row;
  20526. align-items: baseline;
  20527. flex-wrap: nowrap;
  20528. justify-content: flex-start;
  20529. position: relative;
  20530. }
  20531. .toolSort {
  20532. display: flex;
  20533. flex-direction: row;
  20534. flex-wrap: wrap;
  20535. justify-content: flex-start;
  20536. align-items: flex-start;
  20537. }
  20538. .toolSort > div {
  20539. margin: 0 45px 0 0;
  20540. width: auto;
  20541. }
  20542. .tools {
  20543. width: 100%;
  20544. display: flex;
  20545. flex-direction: column;
  20546. flex-wrap: nowrap;
  20547. align-items: flex-start;
  20548. }
  20549. .whiteBIcon {
  20550. width: 80px;
  20551. cursor: pointer;
  20552. display: flex;
  20553. flex-direction: column;
  20554. flex-wrap: nowrap;
  20555. align-items: center;
  20556. }
  20557. .whiteBIcon > img {
  20558. width: 100%;
  20559. height: 100%;
  20560. }
  20561. .whiteBIcon > img {
  20562. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  20563. border-radius: 15px;
  20564. }
  20565. .dia_tool_box {
  20566. display: flex;
  20567. flex-wrap: wrap;
  20568. width: 100%;
  20569. }
  20570. .dia_tool_box > div {
  20571. margin-right: 40px;
  20572. }
  20573. .check {
  20574. /* width: 20px;
  20575. height: 20px; */
  20576. cursor: pointer;
  20577. margin: 10px 0;
  20578. }
  20579. .checkDiv {
  20580. display: flex;
  20581. align-items: center;
  20582. }
  20583. .checkDiv span {
  20584. margin-left: 5px;
  20585. color: #858585;
  20586. }
  20587. .check img {
  20588. width: 20px;
  20589. height: 20px;
  20590. }
  20591. /* code 样式 */
  20592. .cont {
  20593. /* -webkit-user-modify: read-write; */
  20594. overflow-wrap: break-word;
  20595. -webkit-line-break: after-white-space;
  20596. }
  20597. /* table 样式 */
  20598. .cont >>> table {
  20599. border-top: 1px solid #ccc;
  20600. border-left: 1px solid #ccc;
  20601. }
  20602. .cont >>> table td,
  20603. .cont >>> table th {
  20604. border-bottom: 1px solid #ccc;
  20605. border-right: 1px solid #ccc;
  20606. /* padding: 20px 5px; */
  20607. padding: 5px 10px;
  20608. max-width: 0px;
  20609. height: 30px;
  20610. vertical-align: baseline;
  20611. box-sizing: border-box;
  20612. }
  20613. .cont >>> table th {
  20614. border-bottom: 2px solid #ccc;
  20615. text-align: center;
  20616. }
  20617. /* blockquote 样式 */
  20618. .cont >>> blockquote {
  20619. display: block;
  20620. border-left: 8px solid #d0e5f2;
  20621. padding: 5px 10px;
  20622. margin: 10px 0;
  20623. line-height: 1.4;
  20624. font-size: 100%;
  20625. background-color: #f1f1f1;
  20626. }
  20627. /* code 样式 */
  20628. .cont >>> code {
  20629. display: inline-block;
  20630. *display: inline;
  20631. *zoom: 1;
  20632. background-color: #f1f1f1;
  20633. border-radius: 3px;
  20634. padding: 3px 5px;
  20635. margin: 0 3px;
  20636. }
  20637. .cont >>> pre code {
  20638. display: block;
  20639. }
  20640. /* ul ol 样式 */
  20641. .cont >>> ul,
  20642. ol {
  20643. margin: 10px 0 10px 20px;
  20644. }
  20645. .fileC_box > .fileC_title {
  20646. padding: 10px 5px;
  20647. border-top: 1px solid #cdcdcd;
  20648. font-size: 14px;
  20649. color: #868686;
  20650. }
  20651. .pl_select_box {
  20652. height: 40px;
  20653. line-height: 40px;
  20654. width: 100%;
  20655. cursor: pointer;
  20656. padding: 0 20px;
  20657. box-sizing: border-box;
  20658. border-radius: 5px;
  20659. border: 1px solid #d6d6d6;
  20660. white-space: nowrap;
  20661. overflow: hidden;
  20662. text-overflow: ellipsis;
  20663. background: #fff;
  20664. text-align: left;
  20665. }
  20666. .stageBoxCss {
  20667. display: flex;
  20668. flex-direction: row;
  20669. flex-wrap: nowrap;
  20670. align-items: center;
  20671. height: 50px;
  20672. border-bottom: 1px solid #e2f5fc;
  20673. cursor: pointer;
  20674. }
  20675. .stageItemTitle {
  20676. display: flex;
  20677. flex-direction: row;
  20678. flex-wrap: nowrap;
  20679. align-items: center;
  20680. margin-left: 6px;
  20681. }
  20682. .stageItemTitle > div:first-child {
  20683. color: #0e1e33;
  20684. font-size: 16px;
  20685. font-weight: bold;
  20686. }
  20687. .stageItemTitle > div:last-child {
  20688. margin-left: 10px;
  20689. font-size: 14px;
  20690. font-weight: 400;
  20691. color: #acb4bf;
  20692. }
  20693. .stageChild {
  20694. height: 0;
  20695. overflow: hidden;
  20696. transition: all 0.5s;
  20697. }
  20698. .navItem {
  20699. background: #f0f4fa;
  20700. border-radius: 8px;
  20701. width: 90%;
  20702. margin: 10px auto 0;
  20703. display: flex;
  20704. flex-direction: row;
  20705. flex-wrap: nowrap;
  20706. justify-content: flex-start;
  20707. align-items: center;
  20708. }
  20709. .navItemList {
  20710. display: flex;
  20711. flex-direction: row;
  20712. flex-wrap: nowrap;
  20713. align-items: center;
  20714. padding: 18px 13px;
  20715. cursor: pointer;
  20716. font-size: 16px;
  20717. font-weight: 400;
  20718. color: #0e1e33;
  20719. justify-content: flex-start;
  20720. width: 100%;
  20721. border-radius: 8px;
  20722. }
  20723. .navItemList > div {
  20724. font-size: 16px;
  20725. font-weight: 400;
  20726. color: #0e1e33;
  20727. }
  20728. .isItemList {
  20729. background: #3681fc;
  20730. }
  20731. .isItemList > div {
  20732. color: #fff;
  20733. }
  20734. .navListItem {
  20735. width: 280px;
  20736. height: 50px;
  20737. margin: 0px auto 10px;
  20738. display: flex;
  20739. flex-direction: row;
  20740. flex-wrap: nowrap;
  20741. align-items: center;
  20742. justify-content: space-between;
  20743. background: #f0f4fa;
  20744. border-radius: 6px 6px 6px 6px;
  20745. }
  20746. .downIcon {
  20747. width: 20px;
  20748. height: 20px;
  20749. margin-right: 15px;
  20750. cursor: pointer;
  20751. }
  20752. .downIcon > img {
  20753. width: 100%;
  20754. height: 100%;
  20755. }
  20756. .newButton {
  20757. width: 102px;
  20758. height: 36px;
  20759. background: #e7ebf1;
  20760. border-radius: 4px;
  20761. color: #0e1e33;
  20762. font-weight: 400;
  20763. font-size: 14px;
  20764. border: none;
  20765. float: right;
  20766. margin-left: 10px;
  20767. }
  20768. </style>