studyStudent.vue 705 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <!-- 任务模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 900px;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. "
  13. >
  14. <div class="btnAllNT">
  15. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  16. <img
  17. src="../../assets/icon/learn/last.png"
  18. @click="nextOrpreSteps(0)"
  19. />
  20. <img
  21. src="../../assets/icon/learn/next.png"
  22. @click="nextOrpreSteps(1)"
  23. />
  24. <img
  25. src="../../assets/icon/learn/return.png"
  26. @click.stop="
  27. goTo(
  28. '/courseDetail?userid=' +
  29. userid +
  30. '&oid=' +
  31. oid +
  32. '&org=' +
  33. org +
  34. '&cid=' +
  35. classId +
  36. '&courseId=' +
  37. id +
  38. '&tType=' +
  39. tType +
  40. '&screenType=' +
  41. screenType
  42. )
  43. "
  44. />
  45. </div>
  46. <div
  47. class="pButton"
  48. style="
  49. left: 0;
  50. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  51. top: 140px;
  52. "
  53. v-if="mlDialog == false"
  54. @click="setContent2(true)"
  55. >
  56. <!-- 批 , getCourseDetail()-->
  57. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  58. </div>
  59. <div class="pb_left" v-else>
  60. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  61. <div
  62. style="border-bottom: 1px solid #cad1dc; padding: 13px 0; width: 100%"
  63. >
  64. <div class="courseTitle">
  65. <div style="max-width: calc(100% - 40px); width: auto">
  66. <el-tooltip
  67. effect="light"
  68. :content="courseDetail.title"
  69. placement="top"
  70. >
  71. <div class="ctitle">
  72. {{ courseDetail.title }}
  73. </div>
  74. </el-tooltip>
  75. </div>
  76. <el-tooltip effect="light" content="收缩" placement="top">
  77. <div class="mlImg" @click="setContent2(false)">
  78. <img src="../../assets/icon/newIcon/mlBtn.png" alt="" />
  79. </div>
  80. </el-tooltip>
  81. </div>
  82. </div>
  83. <div class="cru_selectBox">
  84. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  85. <div class="stageChild" :class="{ navActive: item.isOpen }">
  86. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  87. <div
  88. class="navItem"
  89. :class="{
  90. openTaskActive:
  91. navIndex == taskCount &&
  92. nav.id == navId &&
  93. stageIndex == courseType,
  94. }"
  95. >
  96. <div
  97. @click="openTask(stageIndex, navIndex, nav.id)"
  98. class="navItemList"
  99. :class="{
  100. isItemList:
  101. navIndex == taskCount &&
  102. nav.id == navId &&
  103. stageIndex == courseType,
  104. }"
  105. >
  106. <div>任务{{ navIndex + 1 }}:</div>
  107. <el-tooltip
  108. effect="light"
  109. :content="nav.taskName"
  110. placement="top"
  111. >
  112. <div
  113. :style="{
  114. width:
  115. IsLookOpen && !nav.isLook
  116. ? 'calc(100% - 75px)'
  117. : 'auto',
  118. }"
  119. >
  120. {{ nav.taskName }}
  121. </div>
  122. </el-tooltip>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  131. <div
  132. class="new_top"
  133. style="
  134. position: fixed;
  135. top: 20px;
  136. left: 22%;
  137. width: 77%;
  138. z-index: 999;
  139. border-radius: 12px 12px 0 0;
  140. border-bottom: 1px solid #cad1dc;
  141. padding: 10px 0;
  142. "
  143. :class="{ navLeftCss: !mlDialog }"
  144. >
  145. <div class="courseIndex">
  146. <div>任务{{ taskCount + 1 }}</div>
  147. <el-tooltip
  148. effect="light"
  149. :content="
  150. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  151. "
  152. placement="top"
  153. >
  154. <div>
  155. {{
  156. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  157. .task
  158. }}
  159. </div>
  160. </el-tooltip>
  161. </div>
  162. <div class="btnAll">
  163. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  164. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  165. <div class="returnBtn" @click="refreshCourse">刷新</div>
  166. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  167. 评论
  168. </div>
  169. <div
  170. class="returnBtn vedioIcon"
  171. @click="startRecording"
  172. v-if="!videoStart && (tType == 1 || tType == 4)"
  173. >
  174. 录制
  175. </div>
  176. <!-- <div class="returnBtn" @click="allScrell">全屏</div> -->
  177. <!-- <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  178. 开始录制
  179. </div>
  180. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  181. style="background: #ee5255">
  182. 下载录制
  183. </div>
  184. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  185. 权限
  186. </div> -->
  187. <div
  188. class="returnBtn returnIcon"
  189. @click.stop="
  190. goTo(
  191. '/courseDetail?userid=' +
  192. userid +
  193. '&oid=' +
  194. oid +
  195. '&org=' +
  196. org +
  197. '&cid=' +
  198. classId +
  199. '&courseId=' +
  200. id +
  201. '&tType=' +
  202. tType +
  203. '&screenType=' +
  204. screenType
  205. )
  206. "
  207. >
  208. 返回
  209. </div>
  210. </div>
  211. </div>
  212. <div
  213. class="isNoMessage"
  214. v-if="
  215. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  216. .chapterData.length == 0 &&
  217. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  218. .toolChoose[0].tool.length == 0 &&
  219. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  220. .taskDetail == '' &&
  221. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  222. .eList &&
  223. !(
  224. courseDetail.userid == userid ||
  225. (courseDetail.course_teacher &&
  226. courseDetail.course_teacher.indexOf(userid) != -1)
  227. )
  228. "
  229. >
  230. <img src="../../assets/icon/isNoMessage.png" alt />
  231. </div>
  232. <div class="study_top" :class="{ pzClass: pzDialog }">
  233. <div
  234. class="vedioBox"
  235. v-if="
  236. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  237. .taskDetail != '' || vChapterData[taskCount].length > 0 || fileC[taskCount].length > 0
  238. "
  239. >
  240. <div
  241. class="taskBox"
  242. v-if="
  243. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  244. .taskDetail != ''
  245. "
  246. >
  247. <div
  248. style="
  249. display: flex;
  250. flex-wrap: nowrap;
  251. flex-direction: column;
  252. position: relative;
  253. "
  254. >
  255. <div
  256. style="
  257. padding: 20px 0px 15px 0;
  258. line-height: 29px;
  259. font-size: 18px;
  260. "
  261. class="cont"
  262. v-if="
  263. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  264. .taskDetail != ''
  265. "
  266. v-html="
  267. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  268. .taskDetail
  269. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  270. taskCount
  271. ].taskDetail
  272. : '暂无描述'
  273. "
  274. ></div>
  275. </div>
  276. </div>
  277. <div
  278. class="student_head"
  279. v-if="
  280. vChapterData[taskCount].length > 0 ||
  281. fileC[taskCount].length > 0
  282. "
  283. >
  284. <div class="vedioTaskBox">
  285. <div
  286. :class="
  287. contentDialog == false
  288. ? 'box_course isContentCss'
  289. : 'box_course'
  290. "
  291. v-if="
  292. vChapterData.length > 0 &&
  293. vChapterData[taskCount] &&
  294. showType !== ''
  295. "
  296. >
  297. <div class="wheel" style="height: auto" v-if="showType === 0">
  298. <div
  299. class="workd_media"
  300. style="height: 650px; width: calc(100% - 50px)"
  301. >
  302. <video-player
  303. class="video-player vjs-custom-skin"
  304. :class="contentDialog == false ? 'isAllWidth' : ''"
  305. :playsinline="true"
  306. :options="playerO[taskCount]"
  307. @play="onPlayerPlay($event)"
  308. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  309. ></video-player>
  310. </div>
  311. </div>
  312. <div
  313. class="wheel"
  314. v-if="showType == 1"
  315. style="
  316. box-shadow: 0 0 6px 1px #f2f2f2;
  317. width: 95%;
  318. margin: 0 auto;
  319. background: #f1f1f1;
  320. "
  321. >
  322. <div class="title">查看文档</div>
  323. <el-form class="textBox">
  324. <el-form-item class="textTitle">
  325. <div style="font-size: 22px">
  326. {{ text.name }}
  327. </div>
  328. </el-form-item>
  329. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  330. <div v-html="text.url" class="textContent cont"></div>
  331. </el-form>
  332. </div>
  333. <div
  334. class="wheel"
  335. v-if="
  336. pptImgUrl1.indexOf(
  337. 'https://view.officeapps.live.com/op/view.aspx?src='
  338. ) != -1 && showType == 2
  339. "
  340. style="width: 95%; margin: 0 auto"
  341. >
  342. <iframe
  343. style="width: 100%; height: 100%; border: none"
  344. :src="pptImgUrl1"
  345. ></iframe>
  346. </div>
  347. <div
  348. class="wheel"
  349. v-else-if="showType == 2"
  350. style="width: 95%; margin: 0 auto"
  351. >
  352. <iframe
  353. style="width: 100%; height: 100%; border: none"
  354. security="restricted"
  355. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  356. :src="pptImgUrl1"
  357. ></iframe>
  358. </div>
  359. <div
  360. class="wheel"
  361. v-if="showType == 3"
  362. style="width: 95%; margin: 0 auto"
  363. >
  364. <pdf
  365. :pdfUrl="pptImgUrl1"
  366. style="width: 100%; height: 100%; overflow: auto"
  367. ></pdf>
  368. </div>
  369. <div
  370. class="wheel"
  371. v-if="showType == 4"
  372. style="width: 95%; margin: 0 auto"
  373. >
  374. <el-image
  375. :src="pptImgUrl1"
  376. fit="contain"
  377. style="width: 100%; height: 100%; cursor: pointer"
  378. @click="previewImg(pptImgUrl1)"
  379. ></el-image>
  380. </div>
  381. </div>
  382. <div
  383. class="pButton"
  384. style="
  385. position: absolute;
  386. right: 20px;
  387. top: 0;
  388. background: #205cc6;
  389. z-index: 998;
  390. opacity: 0.8;
  391. "
  392. v-if="!contentDialog"
  393. @click="setContent(true)"
  394. >
  395. <!-- 批 -->
  396. <img
  397. src="../../assets/mlBtn.png"
  398. style="width: 25px"
  399. alt=""
  400. />
  401. </div>
  402. <div
  403. v-if="contentDialog == true"
  404. :style="{
  405. width:
  406. (vChapterData[taskCount].length > 0 ||
  407. fileC[taskCount].length > 0) &&
  408. showType === ''
  409. ? 'calc(100%)'
  410. : '300px',
  411. margin:
  412. (vChapterData[taskCount].length > 0 ||
  413. fileC[taskCount].length > 0) &&
  414. showType === ''
  415. ? '0 15px'
  416. : '0 15px 0 0',
  417. }"
  418. >
  419. <div
  420. class="vedioList"
  421. v-if="
  422. vChapterData[taskCount].length > 0 ||
  423. fileC[taskCount].length > 0
  424. "
  425. style="height: 650px"
  426. >
  427. <div class="navCorOpenBox">
  428. <div class="navTitile">内容列表:</div>
  429. <div class="navCorOpen" @click="setContent(false)">
  430. <img src="../../assets/icon/newIcon/mlBtn.png" alt="" />
  431. </div>
  432. </div>
  433. <div class="navBox">
  434. <div
  435. v-show="
  436. vChapterData[taskCount].length > 0 ||
  437. fileC[taskCount].length > 0
  438. "
  439. style="padding: 10px 0 25px 0"
  440. >
  441. <div
  442. class="vedioTimeBox"
  443. v-for="(vitem, vindex) in vChapterData[taskCount]"
  444. :key="vindex + '1'"
  445. >
  446. <div class="navListItem" v-if="vitem.type == 2">
  447. <div
  448. @click="lookVedio(vitem.url, vindex)"
  449. class="navText"
  450. :class="isClickNav == vindex ? 'isClickNav' : ''"
  451. >
  452. <span v-if="vitem.text">{{ vitem.text }}-</span
  453. >{{ vitem.name }}
  454. </div>
  455. <div class="downIcon" @click="downloadFile2(vitem)">
  456. <img
  457. src="../../assets/icon/newIcon/down.png"
  458. alt
  459. />
  460. </div>
  461. </div>
  462. <div class="navListItem" v-if="vitem.type == 6">
  463. <div
  464. @click="lookText(taskCount, vindex)"
  465. class="navText"
  466. :class="isClickNav == vindex ? 'isClickNav' : ''"
  467. >
  468. {{ vitem.name }}.doc
  469. </div>
  470. <!-- <div
  471. class="downIcon"
  472. @click="downloadFile(vitem.url)"
  473. >
  474. <img
  475. src="../../assets/icon/newIcon/down.png"
  476. alt
  477. />
  478. </div> -->
  479. </div>
  480. <div class="navListItem" v-if="vitem.type == 8">
  481. <div
  482. @click="doUrl(vitem.url, vindex)"
  483. class="navText"
  484. :class="isClickNav == vindex ? 'isClickNav' : ''"
  485. >
  486. {{ vitem.title ? vitem.title : vitem.url }}
  487. </div>
  488. <!-- <div
  489. class="downIcon"
  490. @click="downloadFile(vitem.url)"
  491. >
  492. <img
  493. src="../../assets/icon/newIcon/down.png"
  494. alt
  495. />
  496. </div> -->
  497. </div>
  498. <div class="navListItem" v-if="vitem.type == 3">
  499. <div
  500. @click="downFile(vitem, vindex)"
  501. class="navText"
  502. :class="isClickNav == vindex ? 'isClickNav' : ''"
  503. >
  504. <span v-if="vitem.text">{{ vitem.text }}-</span
  505. >{{ vitem.name }}
  506. </div>
  507. <div class="downIcon" @click="downloadFile2(vitem)">
  508. <img
  509. src="../../assets/icon/newIcon/down.png"
  510. alt
  511. />
  512. </div>
  513. </div>
  514. <div class="navListItem" v-if="vitem.type == 12">
  515. <div class="navText" @click="downloadFile2(vitem)">
  516. <span v-if="vitem.text">{{ vitem.text }}-</span
  517. >{{ vitem.name }}
  518. </div>
  519. <div class="downIcon" @click="downloadFile2(vitem)">
  520. <img
  521. src="../../assets/icon/newIcon/down.png"
  522. alt
  523. />
  524. </div>
  525. </div>
  526. <div class="navListItem" v-if="vitem.type == 13">
  527. <div
  528. class="navText"
  529. @click="checkPhoto(vitem, vindex)"
  530. :class="isClickNav == vindex ? 'isClickNav' : ''"
  531. >
  532. {{ vitem.name }}
  533. </div>
  534. <div class="downIcon" @click="downloadFile2(vitem)">
  535. <img
  536. src="../../assets/icon/newIcon/down.png"
  537. alt
  538. />
  539. </div>
  540. </div>
  541. </div>
  542. <div
  543. class="fileC_box"
  544. v-if="fileC[taskCount].length > 0"
  545. >
  546. <div class="fileC_title">以下文件不支持预览</div>
  547. <div
  548. class="vedioTimeBox"
  549. v-for="(vitem, vindex) in fileC[taskCount]"
  550. :key="vindex + '1'"
  551. >
  552. <div class="navListItem" v-if="vitem.type == 12">
  553. <div class="navText" style="color: #acb4bf">
  554. <span v-if="vitem.text">{{ vitem.text }}-</span
  555. >{{ vitem.name }}
  556. </div>
  557. <div
  558. class="downIcon"
  559. @click="downloadFile2(vitem)"
  560. >
  561. <img
  562. src="../../assets/icon/newIcon/down.png"
  563. alt
  564. />
  565. </div>
  566. </div>
  567. </div>
  568. </div>
  569. </div>
  570. </div>
  571. </div>
  572. </div>
  573. </div>
  574. <div style="width: calc(100% - 315px)">
  575. <div
  576. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  577. v-if="showType == 2 || showType == 3"
  578. >
  579. <el-button
  580. type="primary"
  581. class="newButton"
  582. @click="checkFileFull(showType, pptImgUrl1)"
  583. >全屏查看</el-button
  584. >
  585. <el-button
  586. type="primary"
  587. class="newButton"
  588. @click="downloadFile(pptImgUrl1)"
  589. v-if="showType != 2"
  590. >文件下载</el-button
  591. >
  592. <el-button
  593. v-if="
  594. showType == 2 &&
  595. pptImgUrl1.indexOf(
  596. 'https://view.officeapps.live.com/op/view.aspx?src='
  597. ) == -1
  598. "
  599. type="primary"
  600. class="newButton"
  601. @click="openLine(pptImgUrl1)"
  602. >打开链接
  603. </el-button>
  604. </div>
  605. <div
  606. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  607. v-if="showType == 1"
  608. >
  609. <el-button
  610. type="primary"
  611. class="newButton"
  612. @click="checkFileFull(showType, text)"
  613. >全屏查看</el-button
  614. >
  615. </div>
  616. </div>
  617. </div>
  618. </div>
  619. <div
  620. class="student_body"
  621. v-resize="resize"
  622. :style="{
  623. borderRadius:
  624. vChapterData[taskCount].length == 0 &&
  625. fileC[taskCount].length == 0
  626. ? '0 0 20px 20px'
  627. : '20px',
  628. }"
  629. v-if="
  630. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  631. .toolChoose[0].tool &&
  632. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  633. .toolChoose[0].tool.length > 0) ||
  634. courseDetail.userid == userid ||
  635. (courseDetail.course_teacher &&
  636. courseDetail.course_teacher.indexOf(userid) != -1)
  637. "
  638. >
  639. <div
  640. class="vedioBox"
  641. v-if="
  642. courseDetail.userid == userid ||
  643. (courseDetail.course_teacher &&
  644. courseDetail.course_teacher.indexOf(userid) != -1)
  645. "
  646. >
  647. <div
  648. class="queTop"
  649. style="
  650. padding: 15px 0 15px 37px;
  651. justify-content: space-between;
  652. "
  653. >
  654. <div class="queTopTitle">工具栏</div>
  655. <div class="queTopRight">
  656. <div
  657. class="queTopClose"
  658. v-if="isClose == 0"
  659. @click="isClose = 1"
  660. >
  661. 展开
  662. </div>
  663. <div
  664. class="queTopClose"
  665. v-if="isClose == 1"
  666. @click="isClose = 0"
  667. >
  668. 收缩
  669. </div>
  670. <el-button
  671. style="margin: 0 30px 0 auto"
  672. type="primary"
  673. size="small"
  674. @click="addToolChoose"
  675. >确定</el-button
  676. >
  677. </div>
  678. </div>
  679. <div
  680. class="tool_work_box"
  681. :style="isClose == 0 ? 'display:none' : 'display:block'"
  682. >
  683. <div class="tool_box">
  684. <div class="tool_type_box">
  685. <div class="chooseWho">
  686. <div
  687. :class="toolType == 0 ? 'isChooseActive' : ''"
  688. @click="(toolType = 0), $forceUpdate()"
  689. >
  690. 互动类
  691. </div>
  692. <div
  693. :class="toolType == 1 ? 'isChooseActive' : ''"
  694. @click="(toolType = 1), $forceUpdate()"
  695. >
  696. 思维类
  697. </div>
  698. <!-- <div
  699. :class="toolType == 6 ? 'isChooseActive' : ''"
  700. @click="(toolType = 6), $forceUpdate()"
  701. >
  702. 协作类
  703. </div> -->
  704. <div
  705. :class="toolType == 2 ? 'isChooseActive' : ''"
  706. @click="(toolType = 2), $forceUpdate()"
  707. >
  708. 测评类
  709. </div>
  710. <!-- <div
  711. :class="toolType == 7 ? 'isChooseActive' : ''"
  712. @click="(toolType = 7), $forceUpdate()"
  713. >
  714. 评价类
  715. </div> -->
  716. <div
  717. :class="toolType == 3 ? 'isChooseActive' : ''"
  718. @click="(toolType = 3), $forceUpdate()"
  719. >
  720. 学科类
  721. </div>
  722. <!-- <div :class="toolType == 5 ? 'isChooseActive' : ''
  723. " @click="(toolType = 5), $forceUpdate()">
  724. 学科类
  725. </div>
  726. <div :class="toolType == 4 ? 'isChooseActive' : ''
  727. " @click="(toolType = 4), $forceUpdate()">
  728. 其他
  729. </div> -->
  730. </div>
  731. </div>
  732. <div>
  733. <div class="toolSort" v-if="toolType == 0">
  734. <div class="tool">
  735. <div class="whiteBIcon" @click="addTools2(10)">
  736. <img
  737. src="../../assets/icon/thirdToolList/time.png"
  738. alt
  739. />
  740. <div style="margin: 5px 0">倒计时</div>
  741. </div>
  742. <div class="check" @click="addTools2(10)">
  743. <img
  744. src="../../assets/icon/checkNo.png"
  745. alt
  746. v-if="checktoolArray.indexOf(10) == -1"
  747. />
  748. <div class="checkDiv" v-else>
  749. <img
  750. src="../../assets/icon/checkedIs.png"
  751. alt
  752. /><span>已选择</span>
  753. </div>
  754. </div>
  755. </div>
  756. </div>
  757. <div class="toolSort" v-if="toolType == 1">
  758. <div class="tool">
  759. <div class="whiteBIcon" @click="addTools2(7)">
  760. <img
  761. src="../../assets/icon/secondToolList/mindNetwork.png"
  762. alt
  763. />
  764. <div style="margin: 5px 0">思维网格</div>
  765. </div>
  766. <div class="check" @click="addTools2(7)">
  767. <img
  768. src="../../assets/icon/checkNo.png"
  769. alt
  770. v-if="checktoolArray.indexOf(7) == -1"
  771. />
  772. <div class="checkDiv" v-else>
  773. <img
  774. src="../../assets/icon/checkedIs.png"
  775. alt
  776. /><span>已选择</span>
  777. </div>
  778. </div>
  779. </div>
  780. <div class="tool">
  781. <div class="whiteBIcon" @click="addTools2(1)">
  782. <img
  783. src="../../assets/icon/secondToolList/whiteBoard.png"
  784. alt
  785. />
  786. <div style="margin: 5px 0">电子白板</div>
  787. </div>
  788. <div class="check" @click="addTools2(1)">
  789. <img
  790. src="../../assets/icon/checkNo.png"
  791. alt
  792. v-if="checktoolArray.indexOf(1) == -1"
  793. />
  794. <div class="checkDiv" v-else>
  795. <img
  796. src="../../assets/icon/checkedIs.png"
  797. alt
  798. /><span>已选择</span>
  799. </div>
  800. </div>
  801. </div>
  802. <div class="tool">
  803. <div class="whiteBIcon" @click="addTools2(52)">
  804. <img
  805. src="../../assets/icon/fourthToolList/text.png"
  806. alt
  807. />
  808. <div style="margin: 5px 0">文档</div>
  809. </div>
  810. <div class="check" @click="addTools2(52)">
  811. <img
  812. src="../../assets/icon/checkNo.png"
  813. alt
  814. v-if="checktoolArray.indexOf(52) == -1"
  815. />
  816. <div class="checkDiv" v-else>
  817. <img
  818. src="../../assets/icon/checkedIs.png"
  819. alt
  820. /><span>已选择</span>
  821. </div>
  822. </div>
  823. </div>
  824. <div class="tool">
  825. <div class="whiteBIcon" @click="addTools2(3)">
  826. <img
  827. src="../../assets/icon/secondToolList/mindMapping.png"
  828. alt
  829. />
  830. <div style="margin: 5px 0">思维导图</div>
  831. </div>
  832. <div class="check" @click="addTools2(3)">
  833. <img
  834. src="../../assets/icon/checkNo.png"
  835. alt
  836. v-if="checktoolArray.indexOf(3) == -1"
  837. />
  838. <div class="checkDiv" v-else>
  839. <img
  840. src="../../assets/icon/checkedIs.png"
  841. alt
  842. /><span>已选择</span>
  843. </div>
  844. </div>
  845. </div>
  846. <div class="tool">
  847. <div class="whiteBIcon" @click="addTools2(48)">
  848. <img
  849. src="../../assets/icon/fourthToolList/table.png"
  850. alt
  851. />
  852. <div style="margin: 5px 0">表格</div>
  853. </div>
  854. <div class="check" @click="addTools2(48)">
  855. <img
  856. src="../../assets/icon/checkNo.png"
  857. alt
  858. v-if="checktoolArray.indexOf(48) == -1"
  859. />
  860. <div class="checkDiv" v-else>
  861. <img
  862. src="../../assets/icon/checkedIs.png"
  863. alt
  864. /><span>已选择</span>
  865. </div>
  866. </div>
  867. </div>
  868. </div>
  869. <div class="toolSort" v-if="toolType == 6">
  870. <div v-show="tooC == 49">
  871. <img
  872. @click="addTools(tooC, toolIndex, taskCount)"
  873. src="../../assets/icon/fourthToolList/group.png"
  874. alt
  875. />
  876. <div style="margin: 5px 0">学生分组</div>
  877. </div>
  878. </div>
  879. <div class="toolSort" v-if="toolType == 2">
  880. <div class="tool">
  881. <div class="whiteBIcon" @click="addTools2(16)">
  882. <img
  883. src="../../assets/icon/thirdToolList/work.png"
  884. alt
  885. />
  886. <div style="margin: 5px 0">作业提交</div>
  887. </div>
  888. <div class="check" @click="addTools2(16)">
  889. <img
  890. src="../../assets/icon/checkNo.png"
  891. alt
  892. v-if="checktoolArray.indexOf(16) == -1"
  893. />
  894. <div class="checkDiv" v-else>
  895. <img
  896. src="../../assets/icon/checkedIs.png"
  897. alt
  898. /><span>已选择</span>
  899. </div>
  900. </div>
  901. </div>
  902. <div class="tool">
  903. <div class="whiteBIcon" @click="addTools2(50)">
  904. <img
  905. src="../../assets/icon/thirdToolList/plwork.png"
  906. alt
  907. />
  908. <div style="margin: 5px 0">批量上传</div>
  909. </div>
  910. <div class="check" @click="addTools2(50)">
  911. <img
  912. src="../../assets/icon/checkNo.png"
  913. alt
  914. v-if="checktoolArray.indexOf(50) == -1"
  915. />
  916. <div class="checkDiv" v-else>
  917. <img
  918. src="../../assets/icon/checkedIs.png"
  919. alt
  920. /><span>已选择</span>
  921. </div>
  922. </div>
  923. </div>
  924. </div>
  925. <div class="toolSort" v-if="toolType == 3">
  926. <div class="tool">
  927. <div class="whiteBIcon" @click="addTools2(18)">
  928. <img
  929. src="../../assets/icon/thirdToolList/trainPlatform.png"
  930. alt
  931. />
  932. <div style="margin: 5px 0">训练平台</div>
  933. </div>
  934. <div class="check" @click="addTools2(18)">
  935. <img
  936. src="../../assets/icon/checkNo.png"
  937. alt
  938. v-if="checktoolArray.indexOf(18) == -1"
  939. />
  940. <div class="checkDiv" v-else>
  941. <img
  942. src="../../assets/icon/checkedIs.png"
  943. alt
  944. /><span>已选择</span>
  945. </div>
  946. </div>
  947. </div>
  948. <div class="tool">
  949. <div class="whiteBIcon" @click="addTools2(21)">
  950. <img
  951. src="../../assets/icon/fourthToolList/program.png"
  952. alt
  953. />
  954. <div style="margin: 5px 0">编程平台</div>
  955. </div>
  956. <div class="check" @click="addTools2(21)">
  957. <img
  958. src="../../assets/icon/checkNo.png"
  959. alt
  960. v-if="checktoolArray.indexOf(21) == -1"
  961. />
  962. <div class="checkDiv" v-else>
  963. <img
  964. src="../../assets/icon/checkedIs.png"
  965. alt
  966. /><span>已选择</span>
  967. </div>
  968. </div>
  969. </div>
  970. <div class="tool">
  971. <div class="whiteBIcon" @click="addTools2(22)">
  972. <img
  973. src="../../assets/icon/fourthToolList/AIprogram2.png"
  974. alt
  975. />
  976. <div style="margin: 5px 0">AI体验</div>
  977. </div>
  978. <div class="check" @click="addTools2(22)">
  979. <img
  980. src="../../assets/icon/checkNo.png"
  981. alt
  982. v-if="checktoolArray.indexOf(22) == -1"
  983. />
  984. <div class="checkDiv" v-else>
  985. <img
  986. src="../../assets/icon/checkedIs.png"
  987. alt
  988. /><span>已选择</span>
  989. </div>
  990. </div>
  991. </div>
  992. <div class="tool">
  993. <div class="whiteBIcon" @click="addTools2(23)">
  994. <img
  995. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  996. alt
  997. />
  998. <div style="margin: 5px 0">Python</div>
  999. </div>
  1000. <div class="check" @click="addTools2(23)">
  1001. <img
  1002. src="../../assets/icon/checkNo.png"
  1003. alt
  1004. v-if="checktoolArray.indexOf(23) == -1"
  1005. />
  1006. <div class="checkDiv" v-else>
  1007. <img
  1008. src="../../assets/icon/checkedIs.png"
  1009. alt
  1010. /><span>已选择</span>
  1011. </div>
  1012. </div>
  1013. </div>
  1014. <div class="tool">
  1015. <div class="whiteBIcon" @click="addTools2(24)">
  1016. <img
  1017. src="../../assets/icon/fourthToolList/AIprogram.png"
  1018. alt
  1019. />
  1020. <div style="margin: 5px 0">AI平台</div>
  1021. </div>
  1022. <div class="check" @click="addTools2(24)">
  1023. <img
  1024. src="../../assets/icon/checkNo.png"
  1025. alt
  1026. v-if="checktoolArray.indexOf(24) == -1"
  1027. />
  1028. <div class="checkDiv" v-else>
  1029. <img
  1030. src="../../assets/icon/checkedIs.png"
  1031. alt
  1032. /><span>已选择</span>
  1033. </div>
  1034. </div>
  1035. </div>
  1036. <div class="tool">
  1037. <div class="whiteBIcon" @click="addTools2(32)">
  1038. <img
  1039. src="../../assets/icon/thirdToolList/code.png"
  1040. alt
  1041. />
  1042. <div style="margin: 5px 0">源码编辑</div>
  1043. </div>
  1044. <div class="check" @click="addTools2(32)">
  1045. <img
  1046. src="../../assets/icon/checkNo.png"
  1047. alt
  1048. v-if="checktoolArray.indexOf(32) == -1"
  1049. />
  1050. <div class="checkDiv" v-else>
  1051. <img
  1052. src="../../assets/icon/checkedIs.png"
  1053. alt
  1054. /><span>已选择</span>
  1055. </div>
  1056. </div>
  1057. </div>
  1058. <div class="tool">
  1059. <div class="whiteBIcon" @click="addTools2(57)">
  1060. <img
  1061. src="../../assets/icon/fourthToolList/cocopi.png"
  1062. alt
  1063. />
  1064. <div style="margin: 5px 0">CocoPi</div>
  1065. </div>
  1066. <div class="check" @click="addTools2(57)">
  1067. <img
  1068. src="../../assets/icon/checkNo.png"
  1069. alt
  1070. v-if="checktoolArray.indexOf(57) == -1"
  1071. />
  1072. <div class="checkDiv" v-else>
  1073. <img
  1074. src="../../assets/icon/checkedIs.png"
  1075. alt
  1076. /><span>已选择</span>
  1077. </div>
  1078. </div>
  1079. </div>
  1080. <div class="tool">
  1081. <div class="whiteBIcon" @click="addTools2(63)">
  1082. <img
  1083. src="../../assets/icon/fourthToolList/Wood.png"
  1084. alt
  1085. />
  1086. <div style="margin: 5px 0">海龟编程</div>
  1087. </div>
  1088. <div class="check" @click="addTools2(63)">
  1089. <img
  1090. src="../../assets/icon/checkNo.png"
  1091. alt
  1092. v-if="checktoolArray.indexOf(63) == -1"
  1093. />
  1094. <div class="checkDiv" v-else>
  1095. <img
  1096. src="../../assets/icon/checkedIs.png"
  1097. alt
  1098. /><span>已选择</span>
  1099. </div>
  1100. </div>
  1101. </div>
  1102. </div>
  1103. <div class="toolSort" v-if="toolType == 7">
  1104. <div class="tool">
  1105. <div class="whiteBIcon" @click="addTools2(40)">
  1106. <img
  1107. src="../../assets/icon/secondToolList/eval.png"
  1108. alt
  1109. />
  1110. <div style="margin: 5px 0">个人评价</div>
  1111. </div>
  1112. <div class="check" @click="addTools2(40)">
  1113. <img
  1114. src="../../assets/icon/checkNo.png"
  1115. alt
  1116. v-if="checktoolArray.indexOf(40) == -1"
  1117. />
  1118. <div class="checkDiv" v-else>
  1119. <img
  1120. src="../../assets/icon/checkedIs.png"
  1121. alt
  1122. /><span>已选择</span>
  1123. </div>
  1124. </div>
  1125. </div>
  1126. </div>
  1127. <div class="toolSort" v-if="toolType == 5">
  1128. <div class="tool">
  1129. <div class="whiteBIcon" @click="addTools2(28)">
  1130. <img
  1131. src="../../assets/icon/secondToolList/translation.png"
  1132. alt
  1133. />
  1134. <div style="margin: 5px 0">翻译</div>
  1135. </div>
  1136. <div class="check" @click="addTools2(28)">
  1137. <img
  1138. src="../../assets/icon/checkNo.png"
  1139. alt
  1140. v-if="checktoolArray.indexOf(28) == -1"
  1141. />
  1142. <div class="checkDiv" v-else>
  1143. <img
  1144. src="../../assets/icon/checkedIs.png"
  1145. alt
  1146. /><span>已选择</span>
  1147. </div>
  1148. </div>
  1149. </div>
  1150. <div class="tool">
  1151. <div class="whiteBIcon" @click="addTools2(37)">
  1152. <img
  1153. src="../../assets/icon/secondToolList/mohe.png"
  1154. alt
  1155. />
  1156. <div style="margin: 5px 0">魔盒识字</div>
  1157. </div>
  1158. <div class="check" @click="addTools2(37)">
  1159. <img
  1160. src="../../assets/icon/checkNo.png"
  1161. alt
  1162. v-if="checktoolArray.indexOf(37) == -1"
  1163. />
  1164. <div class="checkDiv" v-else>
  1165. <img
  1166. src="../../assets/icon/checkedIs.png"
  1167. alt
  1168. /><span>已选择</span>
  1169. </div>
  1170. </div>
  1171. </div>
  1172. <div class="tool">
  1173. <div class="whiteBIcon" @click="addTools2(38)">
  1174. <img
  1175. src="../../assets/icon/secondToolList/24game.png"
  1176. alt
  1177. />
  1178. <div style="margin: 5px 0">24点</div>
  1179. </div>
  1180. <div class="check" @click="addTools2(38)">
  1181. <img
  1182. src="../../assets/icon/checkNo.png"
  1183. alt
  1184. v-if="checktoolArray.indexOf(38) == -1"
  1185. />
  1186. <div class="checkDiv" v-else>
  1187. <img
  1188. src="../../assets/icon/checkedIs.png"
  1189. alt
  1190. /><span>已选择</span>
  1191. </div>
  1192. </div>
  1193. </div>
  1194. <div class="tool">
  1195. <div class="whiteBIcon" @click="addTools2(31)">
  1196. <img
  1197. src="../../assets/icon/secondToolList/networkPanel.png"
  1198. alt
  1199. />
  1200. <div style="margin: 5px 0">数学画板</div>
  1201. </div>
  1202. <div class="check" @click="addTools2(31)">
  1203. <img
  1204. src="../../assets/icon/checkNo.png"
  1205. alt
  1206. v-if="checktoolArray.indexOf(31) == -1"
  1207. />
  1208. <div class="checkDiv" v-else>
  1209. <img
  1210. src="../../assets/icon/checkedIs.png"
  1211. alt
  1212. /><span>已选择</span>
  1213. </div>
  1214. </div>
  1215. </div>
  1216. <div class="tool">
  1217. <div class="whiteBIcon" @click="addTools2(39)">
  1218. <img
  1219. src="../../assets/icon/secondToolList/GeoGebra.png"
  1220. alt
  1221. />
  1222. <div style="margin: 5px 0">GeoGebra</div>
  1223. </div>
  1224. <div class="check" @click="addTools2(39)">
  1225. <img
  1226. src="../../assets/icon/checkNo.png"
  1227. alt
  1228. v-if="checktoolArray.indexOf(39) == -1"
  1229. />
  1230. <div class="checkDiv" v-else>
  1231. <img
  1232. src="../../assets/icon/checkedIs.png"
  1233. alt
  1234. /><span>已选择</span>
  1235. </div>
  1236. </div>
  1237. </div>
  1238. <div class="tool">
  1239. <div class="whiteBIcon" @click="addTools2(58)">
  1240. <img
  1241. src="../../assets/icon/fourthToolList/car.png"
  1242. alt
  1243. />
  1244. <div style="margin: 5px 0">模拟驾驶</div>
  1245. </div>
  1246. <div class="check" @click="addTools2(58)">
  1247. <img
  1248. src="../../assets/icon/checkNo.png"
  1249. alt
  1250. v-if="checktoolArray.indexOf(58) == -1"
  1251. />
  1252. <div class="checkDiv" v-else>
  1253. <img
  1254. src="../../assets/icon/checkedIs.png"
  1255. alt
  1256. /><span>已选择</span>
  1257. </div>
  1258. </div>
  1259. </div>
  1260. <div class="tool">
  1261. <div class="whiteBIcon" @click="addTools2(59)">
  1262. <img
  1263. src="../../assets/icon/fourthToolList/lineSearch.png"
  1264. alt
  1265. />
  1266. <div style="margin: 5px 0">路径搜索</div>
  1267. </div>
  1268. <div class="check" @click="addTools2(59)">
  1269. <img
  1270. src="../../assets/icon/checkNo.png"
  1271. alt
  1272. v-if="checktoolArray.indexOf(59) == -1"
  1273. />
  1274. <div class="checkDiv" v-else>
  1275. <img
  1276. src="../../assets/icon/checkedIs.png"
  1277. alt
  1278. /><span>已选择</span>
  1279. </div>
  1280. </div>
  1281. </div>
  1282. <div class="tool">
  1283. <div class="whiteBIcon" @click="addTools2(60)">
  1284. <img
  1285. src="../../assets/icon/fourthToolList/deepLearning.png"
  1286. alt
  1287. />
  1288. <div style="margin: 5px 0">深度学习</div>
  1289. </div>
  1290. <div class="check" @click="addTools2(60)">
  1291. <img
  1292. src="../../assets/icon/checkNo.png"
  1293. alt
  1294. v-if="checktoolArray.indexOf(60) == -1"
  1295. />
  1296. <div class="checkDiv" v-else>
  1297. <img
  1298. src="../../assets/icon/checkedIs.png"
  1299. alt
  1300. /><span>已选择</span>
  1301. </div>
  1302. </div>
  1303. </div>
  1304. <div class="tool">
  1305. <div class="whiteBIcon" @click="addTools2(61)">
  1306. <img
  1307. src="../../assets/icon/fourthToolList/allHistory.png"
  1308. alt
  1309. />
  1310. <div style="margin: 5px 0">全历史</div>
  1311. </div>
  1312. <div class="check" @click="addTools2(61)">
  1313. <img
  1314. src="../../assets/icon/checkNo.png"
  1315. alt
  1316. v-if="checktoolArray.indexOf(61) == -1"
  1317. />
  1318. <div class="checkDiv" v-else>
  1319. <img
  1320. src="../../assets/icon/checkedIs.png"
  1321. alt
  1322. /><span>已选择</span>
  1323. </div>
  1324. </div>
  1325. </div>
  1326. </div>
  1327. <div class="toolSort" v-if="toolType == 4">
  1328. <div class="tool">
  1329. <div class="whiteBIcon" @click="addTools2(26)">
  1330. <img
  1331. src="../../assets/icon/thirdToolList/courseDesign.png"
  1332. alt
  1333. />
  1334. <div style="margin: 5px 0">课程设计</div>
  1335. </div>
  1336. <div class="check" @click="addTools2(26)">
  1337. <img
  1338. src="../../assets/icon/checkNo.png"
  1339. alt
  1340. v-if="checktoolArray.indexOf(26) == -1"
  1341. />
  1342. <div class="checkDiv" v-else>
  1343. <img
  1344. src="../../assets/icon/checkedIs.png"
  1345. alt
  1346. /><span>已选择</span>
  1347. </div>
  1348. </div>
  1349. </div>
  1350. <div class="tool">
  1351. <div class="whiteBIcon" @click="addTools2(25)">
  1352. <img
  1353. src="../../assets/icon/thirdToolList/evalua.png"
  1354. alt
  1355. />
  1356. <div style="margin: 5px 0">目标管理</div>
  1357. </div>
  1358. <div class="check" @click="addTools2(25)">
  1359. <img
  1360. src="../../assets/icon/checkNo.png"
  1361. alt
  1362. v-if="checktoolArray.indexOf(25) == -1"
  1363. />
  1364. <div class="checkDiv" v-else>
  1365. <img
  1366. src="../../assets/icon/checkedIs.png"
  1367. alt
  1368. /><span>已选择</span>
  1369. </div>
  1370. </div>
  1371. </div>
  1372. </div>
  1373. </div>
  1374. </div>
  1375. </div>
  1376. </div>
  1377. <div
  1378. class="vedioBox"
  1379. v-if="
  1380. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1381. .toolChoose[0].tool &&
  1382. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1383. .toolChoose[0].tool.length &&
  1384. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1385. .toolChoose[0].tool.length > 0
  1386. "
  1387. style="padding: 0 37px"
  1388. >
  1389. <div
  1390. class="queTop"
  1391. style="
  1392. font-size: 20px;
  1393. padding: 15px 0 15px 0;
  1394. font-weight: bold;
  1395. "
  1396. >
  1397. 发布区
  1398. </div>
  1399. <div
  1400. class="toolHeng2"
  1401. style="
  1402. position: relative;
  1403. border-bottom: 1px solid rgb(215, 219, 225);
  1404. "
  1405. >
  1406. <div
  1407. class="filebox"
  1408. style="flex-wrap: nowrap"
  1409. v-if="
  1410. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1411. .toolChoose.length
  1412. "
  1413. >
  1414. <div class="choiceBox">
  1415. <div class="bzChild" style="margin-right: 20px">
  1416. <span>步骤选择:</span>
  1417. </div>
  1418. <div class="bzTypeBox">
  1419. <div
  1420. class="bzChild"
  1421. v-for="(bz, bzIndex) in chapInfoList[courseType]
  1422. .chapterInfo[0].taskJson[taskCount].toolChoose"
  1423. :key="bzIndex"
  1424. :class="{ active: toolIndex == bzIndex }"
  1425. @click="checkBz(bzIndex)"
  1426. >
  1427. <span>步骤{{ bzIndex + 1 }}</span>
  1428. </div>
  1429. </div>
  1430. </div>
  1431. <div class="bzBox">
  1432. <!-- <div class="yCss"></div>
  1433. <div>步骤{{ toolIndex + 1 }}</div> -->
  1434. <div
  1435. style="margin: 0 72px 0 auto"
  1436. v-if="courseDetail.userid == userid || tool.tool[0] == 15"
  1437. >
  1438. <el-button
  1439. type="primary"
  1440. size="mini"
  1441. @click="openWordCloud(toolIndex)"
  1442. v-if="tool.tool[0] == 15"
  1443. >生成词云</el-button
  1444. >
  1445. <el-button
  1446. v-if="courseDetail.userid == userid"
  1447. type="primary"
  1448. size="mini"
  1449. @click="updateToolDetail"
  1450. >{{
  1451. !isUpdateToolDetail ? "编辑" : "确认修改"
  1452. }}</el-button
  1453. >
  1454. </div>
  1455. </div>
  1456. <div class="toolBox">
  1457. <div class="toolBoxSteps" @click="nextToolindex('last')">
  1458. <img src="../../assets/icon/leftIcon.png" />
  1459. </div>
  1460. <div class="toolBoxSteps" @click="nextToolindex('next')">
  1461. <img src="../../assets/icon/rightIcon.png" />
  1462. </div>
  1463. <div>
  1464. <div class="noiframeBox">
  1465. <div
  1466. class="addPoint"
  1467. v-for="(tooC, toolCIndex) in tool.tool"
  1468. :key="toolCIndex"
  1469. >
  1470. <div v-show="tooC == 1">
  1471. <img
  1472. src="../../assets/icon/secondToolList/whiteBoard.png"
  1473. alt
  1474. @click="addTools(tooC, toolIndex, taskCount)"
  1475. />
  1476. <div style="margin: 5px 0">电子白板</div>
  1477. </div>
  1478. <div v-show="tooC == 3">
  1479. <img
  1480. src="../../assets/icon/secondToolList/mindMapping.png"
  1481. alt
  1482. @click="addTools(tooC, toolIndex, taskCount)"
  1483. />
  1484. <div style="margin: 5px 0">思维导图</div>
  1485. </div>
  1486. <div v-show="tooC == 6">
  1487. <img
  1488. src="../../assets/icon/secondToolList/doc.png"
  1489. alt
  1490. @click="addTools(tooC, toolIndex, taskCount)"
  1491. />
  1492. <div style="margin: 5px 0">协同文档</div>
  1493. </div>
  1494. <div v-show="tooC == 7">
  1495. <img
  1496. src="../../assets/icon/secondToolList/mindNetwork.png"
  1497. alt
  1498. @click="addTools(tooC, toolIndex, taskCount)"
  1499. />
  1500. <div style="margin: 5px 0">思维网格</div>
  1501. </div>
  1502. <div v-show="tooC == 8">
  1503. <img
  1504. src="../../assets/icon/secondToolList/library.png"
  1505. alt
  1506. @click="addTools(tooC, toolIndex, taskCount)"
  1507. />
  1508. <div style="margin: 5px 0">素材库</div>
  1509. </div>
  1510. <div v-show="tooC == 17">
  1511. <img
  1512. src="../../assets/icon/secondToolList/library.png"
  1513. alt
  1514. @click="addTools(tooC, toolIndex, taskCount)"
  1515. />
  1516. <div style="margin: 5px 0">学习资料</div>
  1517. </div>
  1518. <div v-show="tooC == 2">
  1519. <img
  1520. @click="addTools(tooC, toolIndex, taskCount)"
  1521. src="../../assets/icon/secondToolList/note.png"
  1522. alt
  1523. />
  1524. <div style="margin: 5px 0">便签</div>
  1525. </div>
  1526. <div v-show="tooC == 4">
  1527. <img
  1528. @click="addTools(tooC, toolIndex, taskCount)"
  1529. src="../../assets/icon/thirdToolList/ask.png"
  1530. alt
  1531. />
  1532. <div style="margin: 5px 0">问卷调查</div>
  1533. </div>
  1534. <div v-show="tooC == 45">
  1535. <img
  1536. @click="addTools(tooC, toolIndex, taskCount)"
  1537. src="../../assets/icon/thirdToolList/choose.png"
  1538. alt
  1539. />
  1540. <div style="margin: 5px 0">选择题</div>
  1541. </div>
  1542. <!-- <div v-show="tooC == 5">
  1543. <img
  1544. @click="addTools(tooC, toolIndex, taskCount)"
  1545. src="../../assets/icon/thirdToolList/score.png"
  1546. alt
  1547. />
  1548. <div style="margin: 5px 0">量规评分</div>
  1549. </div> -->
  1550. <div v-show="tooC == 10">
  1551. <img
  1552. @click="addTools(tooC, toolIndex, taskCount)"
  1553. src="../../assets/icon/thirdToolList/time.png"
  1554. alt
  1555. />
  1556. <div style="margin: 5px 0">倒计时</div>
  1557. </div>
  1558. <div v-show="tooC == 15">
  1559. <img
  1560. @click="addTools(tooC, toolIndex, taskCount)"
  1561. src="../../assets/icon/thirdToolList/answer.png"
  1562. alt
  1563. />
  1564. <div style="margin: 5px 0">问答工具</div>
  1565. </div>
  1566. <div v-show="tooC == 26">
  1567. <img
  1568. @click="addTools(tooC, toolIndex, taskCount)"
  1569. src="../../assets/icon/thirdToolList/courseDesign.png"
  1570. alt
  1571. />
  1572. <div style="margin: 5px 0">课程设计</div>
  1573. </div>
  1574. <div v-show="tooC == 18">
  1575. <img
  1576. @click="addTools(tooC, toolIndex, taskCount)"
  1577. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1578. alt
  1579. />
  1580. <div style="margin: 5px 0">训练服务器</div>
  1581. </div>
  1582. <div v-show="tooC == 16">
  1583. <img
  1584. @click="addTools(tooC, toolIndex, taskCount)"
  1585. src="../../assets/icon/thirdToolList/work.png"
  1586. alt
  1587. />
  1588. <div style="margin: 5px 0">作业提交</div>
  1589. </div>
  1590. <div v-show="tooC == 50">
  1591. <img
  1592. @click="addTools(tooC, toolIndex, taskCount)"
  1593. src="../../assets/icon/thirdToolList/plwork.png"
  1594. alt
  1595. />
  1596. <div style="margin: 5px 0">批量上传</div>
  1597. </div>
  1598. <div v-show="tooC == 21">
  1599. <img
  1600. @click="addTools(tooC, toolIndex, taskCount)"
  1601. src="../../assets/icon/fourthToolList/program.png"
  1602. alt
  1603. />
  1604. <div style="margin: 5px 0">编程平台</div>
  1605. </div>
  1606. <div v-show="tooC == 22">
  1607. <img
  1608. @click="addTools(tooC, toolIndex, taskCount)"
  1609. src="../../assets/icon/fourthToolList/program.png"
  1610. alt
  1611. />
  1612. <div style="margin: 5px 0">AI体验</div>
  1613. </div>
  1614. <div v-show="tooC == 23">
  1615. <img
  1616. @click="addTools(tooC, toolIndex, taskCount)"
  1617. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1618. alt
  1619. />
  1620. <div style="margin: 5px 0">Python</div>
  1621. </div>
  1622. <div v-show="tooC == 24">
  1623. <img
  1624. @click="addTools(tooC, toolIndex, taskCount)"
  1625. src="../../assets/icon/fourthToolList/AIprogram.png"
  1626. alt
  1627. />
  1628. <div style="margin: 5px 0">AI平台</div>
  1629. </div>
  1630. <div v-show="tooC == 25">
  1631. <img
  1632. @click="addTools(tooC, toolIndex, taskCount)"
  1633. src="../../assets/icon/thirdToolList/evalua.png"
  1634. alt
  1635. />
  1636. <div style="margin: 5px 0">目标管理</div>
  1637. </div>
  1638. <div v-show="tooC == 31">
  1639. <img
  1640. @click="addTools(tooC, toolIndex, taskCount)"
  1641. src="../../assets/icon/secondToolList/networkPanel.png"
  1642. alt
  1643. />
  1644. <div style="margin: 5px 0">数学画板</div>
  1645. </div>
  1646. <div v-show="tooC == 28">
  1647. <img
  1648. @click="addTools(tooC, toolIndex, taskCount)"
  1649. src="../../assets/icon/secondToolList/translation.png"
  1650. alt
  1651. />
  1652. <div style="margin: 5px 0">翻译</div>
  1653. </div>
  1654. <div v-show="tooC == 37">
  1655. <img
  1656. @click="addTools(tooC, toolIndex, taskCount)"
  1657. src="../../assets/icon/secondToolList/mohe.png"
  1658. alt
  1659. />
  1660. <div style="margin: 5px 0">魔盒识字</div>
  1661. </div>
  1662. <div v-show="tooC == 38">
  1663. <img
  1664. @click="addTools(tooC, toolIndex, taskCount)"
  1665. src="../../assets/icon/secondToolList/24game.png"
  1666. alt
  1667. />
  1668. <div style="margin: 5px 0">24点</div>
  1669. </div>
  1670. <div v-show="tooC == 39">
  1671. <img
  1672. @click="addTools(tooC, toolIndex, taskCount)"
  1673. src="../../assets/icon/secondToolList/GeoGebra.png"
  1674. alt
  1675. />
  1676. <div style="margin: 5px 0">GeoGebra</div>
  1677. </div>
  1678. <div v-show="tooC == 32">
  1679. <img
  1680. @click="addTools(tooC, toolIndex, taskCount)"
  1681. src="../../assets/icon/thirdToolList/code.png"
  1682. alt
  1683. />
  1684. <div style="margin: 5px 0">源码编辑</div>
  1685. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1686. style="position: absolute;left: 110px;bottom: 30px;">
  1687. 上传文件
  1688. <input type="file" accept="*" style="display: none"
  1689. @change="beforeUpload1($event, 7, toolIndex)" />
  1690. </div> -->
  1691. </div>
  1692. <!-- <div v-show="tooC == 40">
  1693. <img
  1694. @click="addTools(tooC, toolIndex, taskCount)"
  1695. src="../../assets/icon/secondToolList/eval.png"
  1696. alt
  1697. />
  1698. <div style="margin: 5px 0">个人评价</div>
  1699. </div> -->
  1700. <div v-show="tooC == 41">
  1701. <img
  1702. @click="addTools(tooC, toolIndex, taskCount)"
  1703. src="../../assets/icon/thirdToolList/select.png"
  1704. alt
  1705. />
  1706. <div style="margin: 5px 0">选择填空</div>
  1707. </div>
  1708. <div v-show="tooC == 44">
  1709. <img
  1710. @click="addTools(tooC, toolIndex, taskCount)"
  1711. src="../../assets/icon/thirdToolList/hanClass.png"
  1712. alt
  1713. />
  1714. <div style="margin: 5px 0">汉字宫</div>
  1715. </div>
  1716. <div v-show="tooC == 47">
  1717. <img
  1718. @click="addTools(tooC, toolIndex, taskCount)"
  1719. src="../../assets/icon/fourthToolList/conSentences.png"
  1720. alt
  1721. />
  1722. <div style="margin: 5px 0">连词成句</div>
  1723. </div>
  1724. <div v-show="tooC == 48">
  1725. <img
  1726. @click="addTools(tooC, toolIndex, taskCount)"
  1727. src="../../assets/icon/fourthToolList/table.png"
  1728. alt
  1729. />
  1730. <div style="margin: 5px 0">表格</div>
  1731. </div>
  1732. <div v-show="tooC == 52">
  1733. <img
  1734. @click="addTools(tooC, toolIndex, taskCount)"
  1735. src="../../assets/icon/fourthToolList/text.png"
  1736. alt
  1737. />
  1738. <div style="margin: 5px 0">文档</div>
  1739. </div>
  1740. <!-- <div v-show="tooC == 49">
  1741. <img @click="addTools(tooC, toolIndex, taskCount)"
  1742. src="../../assets/icon/fourthToolList/group.png" alt />
  1743. <div style="margin: 5px 0">学生分组</div>
  1744. </div> -->
  1745. <div v-show="tooC == 57">
  1746. <img
  1747. @click="addTools(tooC, toolIndex, taskCount)"
  1748. src="../../assets/icon/fourthToolList/cocopi.png"
  1749. alt
  1750. />
  1751. <div style="margin: 5px 0">CocoPi</div>
  1752. </div>
  1753. <div v-show="tooC == 58">
  1754. <img
  1755. @click="addTools(tooC, toolIndex, taskCount)"
  1756. src="../../assets/icon/fourthToolList/car.png"
  1757. alt
  1758. />
  1759. <div style="margin: 5px 0">模拟驾驶</div>
  1760. </div>
  1761. <div v-show="tooC == 59">
  1762. <img
  1763. @click="addTools(tooC, toolIndex, taskCount)"
  1764. src="../../assets/icon/fourthToolList/lineSearch.png"
  1765. alt
  1766. />
  1767. <div style="margin: 5px 0">路径搜索</div>
  1768. </div>
  1769. <div v-show="tooC == 60">
  1770. <img
  1771. @click="addTools(tooC, toolIndex, taskCount)"
  1772. src="../../assets/icon/fourthToolList/deepLearning.png"
  1773. alt
  1774. />
  1775. <div style="margin: 5px 0">深度学习</div>
  1776. </div>
  1777. <div v-show="tooC == 61">
  1778. <img
  1779. @click="addTools(tooC, toolIndex, taskCount)"
  1780. src="../../assets/icon/fourthToolList/allHistory.png"
  1781. alt
  1782. />
  1783. <div style="margin: 5px 0">全历史</div>
  1784. </div>
  1785. <div v-show="tooC == 62">
  1786. <img
  1787. @click="addTools(tooC, toolIndex, taskCount)"
  1788. src="../../assets/icon/fourthToolList/interVideo.png"
  1789. alt
  1790. />
  1791. <div style="margin: 5px 0">交互视频</div>
  1792. </div>
  1793. <div v-show="tooC == 63">
  1794. <img
  1795. @click="addTools(tooC, toolIndex, taskCount)"
  1796. src="../../assets/icon/fourthToolList/Wood.png"
  1797. alt
  1798. />
  1799. <div style="margin: 5px 0">海龟编程</div>
  1800. </div>
  1801. </div>
  1802. </div>
  1803. </div>
  1804. <div class="tooldetail">
  1805. <!-- <div class="toolTitle">工具描述</div> -->
  1806. <div
  1807. style="height: 100%"
  1808. v-html="
  1809. contentConvent(
  1810. tool.toolDetail ? tool.toolDetail : '暂无描述'
  1811. )
  1812. "
  1813. v-if="!isUpdateToolDetail"
  1814. @click="updateToolDetail"
  1815. ></div>
  1816. <div v-else>
  1817. <el-input
  1818. type="textarea"
  1819. :rows="3"
  1820. resize="none"
  1821. v-model="updateToolDetailInner"
  1822. placeholder="请输入任务描述"
  1823. ></el-input>
  1824. </div>
  1825. </div>
  1826. <el-button
  1827. type="primary"
  1828. v-if="tool.tool[0] == 32"
  1829. style="
  1830. position: absolute;
  1831. right: 30px;
  1832. transform: translateY(-130%);
  1833. "
  1834. @click="addImg($event)"
  1835. >上传作业<input
  1836. type="file"
  1837. accept="*"
  1838. style="display: none"
  1839. @change="beforeUpload1($event, 7, toolIndex)"
  1840. /></el-button>
  1841. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1842. position: absolute;
  1843. right: 30px;
  1844. transform: translateY(-130%);
  1845. " @click="addImg($event)">上传作业<input type="file" accept="*"
  1846. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1847. </div>
  1848. </div>
  1849. </div>
  1850. </div>
  1851. <div
  1852. class="vedioBox"
  1853. v-if="
  1854. arrayToArray(tool.tool, isWorkTool).length &&
  1855. worksTeacher.length &&
  1856. worksTeacher[toolIndex].length &&
  1857. false
  1858. "
  1859. >
  1860. <div
  1861. class="queTop"
  1862. style="
  1863. font-size: 20px;
  1864. padding: 15px 0 15px 30px;
  1865. font-weight: bold;
  1866. "
  1867. >
  1868. 教师工作区
  1869. </div>
  1870. <div class="tool_work_box">
  1871. <div
  1872. v-if="
  1873. tType &&
  1874. ((tType == 2 && sIsOpen == true) ||
  1875. tType == 1 ||
  1876. tType == 4) &&
  1877. tool.tool.indexOf(16) != -1
  1878. "
  1879. class="worksBox"
  1880. >
  1881. <div
  1882. class="zuoyeYulan"
  1883. v-if="
  1884. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1885. "
  1886. >
  1887. <div class="worksTop">
  1888. <div>作业预览</div>
  1889. </div>
  1890. </div>
  1891. <div
  1892. class="worksDetailBox"
  1893. v-if="
  1894. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1895. "
  1896. >
  1897. <div
  1898. class="works"
  1899. style="
  1900. width: 200px;
  1901. height: 140px;
  1902. margin: 10px 10px 10px 0;
  1903. border-radius: 15px;
  1904. box-shadow: 0 0 6px 1px #dfdada;
  1905. "
  1906. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1907. :key="wIndex"
  1908. :class="w.type == 1 ? 'isTypeOne' : ''"
  1909. >
  1910. <div class="workImg" v-if="w.type == 0">
  1911. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1912. <img :src="w.works" @click="previewImg(w.works)" alt />
  1913. <div
  1914. class="answerScore"
  1915. v-if="w.score"
  1916. @click.stop="openScore(w)"
  1917. :class="{
  1918. rightW:
  1919. w.userid == userid ||
  1920. tType == 1 ||
  1921. tType == 4 ||
  1922. w.ateacher == userid,
  1923. }"
  1924. >
  1925. {{ JSON.parse(w.score).wScore }}分
  1926. </div>
  1927. <div
  1928. class="answerScore"
  1929. @click.stop="openScore(w)"
  1930. v-else-if="courseDetail.userid == userid"
  1931. :class="{
  1932. rightW:
  1933. w.userid == userid ||
  1934. tType == 1 ||
  1935. tType == 4 ||
  1936. w.ateacher == userid,
  1937. }"
  1938. >
  1939. 评分
  1940. </div>
  1941. <img
  1942. class="deleteImg"
  1943. src="../../assets/deleteworks.png"
  1944. v-if="w.userid == userid || tType == 1 || tType == 4"
  1945. @click.stop="deleteWorks(w.wid)"
  1946. alt
  1947. />
  1948. </div>
  1949. <div class="workImg" v-if="w.type == 1">
  1950. <img :src="word" @click="openFile(w.works)" alt />
  1951. <!-- @click="openFile(w.works)" -->
  1952. <div
  1953. class="answerScore"
  1954. v-if="w.score"
  1955. @click.stop="openScore(w)"
  1956. :class="{
  1957. rightW:
  1958. w.userid == userid ||
  1959. tType == 1 ||
  1960. tType == 4 ||
  1961. w.ateacher == userid,
  1962. }"
  1963. >
  1964. {{ JSON.parse(w.score).wScore }}分
  1965. </div>
  1966. <div
  1967. class="answerScore"
  1968. @click.stop="openScore(w)"
  1969. v-else-if="courseDetail.userid == userid"
  1970. :class="{
  1971. rightW:
  1972. w.userid == userid ||
  1973. tType == 1 ||
  1974. tType == 4 ||
  1975. w.ateacher == userid,
  1976. }"
  1977. >
  1978. 评分
  1979. </div>
  1980. <img
  1981. class="deleteImg"
  1982. src="../../assets/deleteworks.png"
  1983. v-if="w.userid == userid || tType == 1 || tType == 4"
  1984. @click.stop="deleteWorks(w.wid)"
  1985. alt
  1986. />
  1987. </div>
  1988. <div class="workImg" v-if="w.type == 3">
  1989. <img
  1990. style="cursor: pointer"
  1991. :src="video"
  1992. @click="openVideo(w)"
  1993. alt
  1994. />
  1995. <!-- @click="openVideo(w.works)" -->
  1996. <div
  1997. class="answerScore"
  1998. v-if="w.score"
  1999. @click.stop="openScore(w)"
  2000. :class="{
  2001. rightW:
  2002. w.userid == userid ||
  2003. tType == 1 ||
  2004. tType == 4 ||
  2005. w.ateacher == userid,
  2006. }"
  2007. >
  2008. {{ JSON.parse(w.score).wScore }}分
  2009. </div>
  2010. <div
  2011. class="answerScore"
  2012. @click.stop="openScore(w)"
  2013. v-else-if="courseDetail.userid == userid"
  2014. :class="{
  2015. rightW:
  2016. w.userid == userid ||
  2017. tType == 1 ||
  2018. tType == 4 ||
  2019. w.ateacher == userid,
  2020. }"
  2021. >
  2022. 评分
  2023. </div>
  2024. <img
  2025. class="deleteImg"
  2026. src="../../assets/deleteworks.png"
  2027. v-if="w.userid == userid || tType == 1 || tType == 4"
  2028. @click.stop="deleteWorks(w.wid)"
  2029. alt
  2030. />
  2031. </div>
  2032. <div class="workImg" v-if="w.type == 12">
  2033. <img
  2034. style="cursor: pointer"
  2035. :src="word2"
  2036. @click="downloadFile(w.works)"
  2037. alt
  2038. />
  2039. <!-- @click="openVideo(w.works)" -->
  2040. <div
  2041. class="answerScore"
  2042. v-if="w.score"
  2043. @click.stop="openScore(w)"
  2044. :class="{
  2045. rightW:
  2046. w.userid == userid ||
  2047. tType == 1 ||
  2048. tType == 4 ||
  2049. w.ateacher == userid,
  2050. }"
  2051. >
  2052. {{ JSON.parse(w.score).wScore }}分
  2053. </div>
  2054. <div
  2055. class="answerScore"
  2056. @click.stop="openScore(w)"
  2057. v-else-if="courseDetail.userid == userid"
  2058. :class="{
  2059. rightW:
  2060. w.userid == userid ||
  2061. tType == 1 ||
  2062. tType == 4 ||
  2063. w.ateacher == userid,
  2064. }"
  2065. >
  2066. 评分
  2067. </div>
  2068. <img
  2069. class="deleteImg"
  2070. src="../../assets/deleteworks.png"
  2071. v-if="w.userid == userid || tType == 1 || tType == 4"
  2072. @click.stop="deleteWorks(w.wid)"
  2073. alt
  2074. />
  2075. </div>
  2076. <div class="comment" style="min-width: 200px">
  2077. <div class="worksName">
  2078. <div>{{ w.sName }}</div>
  2079. </div>
  2080. <div class="commentList">
  2081. <div class="commentList">
  2082. <div
  2083. class="commentImg"
  2084. @click="
  2085. isLikes(w.wid, userid, 1, null, w.isLikes)
  2086. "
  2087. >
  2088. <img
  2089. :src="w.isLikes == true ? likes : noLikes"
  2090. alt=""
  2091. />
  2092. </div>
  2093. <div>{{ w.likesCount }}</div>
  2094. </div>
  2095. <div class="commentList" style="margin-right: 15px">
  2096. <div
  2097. class="commentImg"
  2098. @click="commentOther(w, toolIndex, wIndex)"
  2099. >
  2100. <img
  2101. src="../../assets/icon/comment/comment.png"
  2102. alt=""
  2103. />
  2104. </div>
  2105. <div>{{ w.commentCount }}</div>
  2106. </div>
  2107. </div>
  2108. </div>
  2109. </div>
  2110. </div>
  2111. </div>
  2112. <div
  2113. v-if="
  2114. tType &&
  2115. ((tType == 2 && sIsOpen == true) ||
  2116. tType == 1 ||
  2117. tType == 4) &&
  2118. tool.tool.indexOf(32) != -1
  2119. "
  2120. class="worksBox"
  2121. >
  2122. <div
  2123. class="zuoyeYulan"
  2124. v-if="
  2125. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2126. "
  2127. >
  2128. <div class="worksTop">
  2129. <div>作业预览</div>
  2130. </div>
  2131. </div>
  2132. <div
  2133. class="worksDetailBox"
  2134. v-if="
  2135. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2136. "
  2137. >
  2138. <div
  2139. class="works"
  2140. style="
  2141. width: 200px;
  2142. height: 140px;
  2143. margin: 10px 10px 10px 0;
  2144. border-radius: 15px;
  2145. box-shadow: 0 0 6px 1px #dfdada;
  2146. "
  2147. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2148. :key="wIndex"
  2149. :class="w.type == 1 ? 'isTypeOne' : ''"
  2150. >
  2151. <div class="workImg">
  2152. <img :src="word2" @click="downloadFile(w.works)" alt />
  2153. <div
  2154. class="answerScore"
  2155. v-if="w.score"
  2156. @click.stop="openScore(w)"
  2157. :class="{
  2158. rightW:
  2159. w.userid == userid ||
  2160. tType == 1 ||
  2161. tType == 4 ||
  2162. w.ateacher == userid,
  2163. }"
  2164. >
  2165. {{ JSON.parse(w.score).wScore }}分
  2166. </div>
  2167. <div
  2168. class="answerScore"
  2169. @click.stop="openScore(w)"
  2170. v-else-if="courseDetail.userid == userid"
  2171. :class="{
  2172. rightW:
  2173. w.userid == userid ||
  2174. tType == 1 ||
  2175. tType == 4 ||
  2176. w.ateacher == userid,
  2177. }"
  2178. >
  2179. 评分
  2180. </div>
  2181. <img
  2182. class="deleteImg"
  2183. src="../../assets/deleteworks.png"
  2184. v-if="w.userid == userid || tType == 1 || tType == 4"
  2185. @click.stop="deleteWorks(w.wid)"
  2186. alt
  2187. />
  2188. </div>
  2189. <div class="comment" style="min-width: 200px">
  2190. <div class="worksName">
  2191. <div>{{ w.sName }}</div>
  2192. </div>
  2193. <div class="commentList">
  2194. <div class="commentList">
  2195. <div
  2196. class="commentImg"
  2197. @click="
  2198. isLikes(w.wid, userid, 1, null, w.isLikes)
  2199. "
  2200. >
  2201. <img
  2202. :src="w.isLikes == true ? likes : noLikes"
  2203. alt=""
  2204. />
  2205. </div>
  2206. <div>{{ w.likesCount }}</div>
  2207. </div>
  2208. <div class="commentList" style="margin-right: 15px">
  2209. <div
  2210. class="commentImg"
  2211. @click="commentOther(w, toolIndex, wIndex)"
  2212. >
  2213. <img
  2214. src="../../assets/icon/comment/comment.png"
  2215. alt=""
  2216. />
  2217. </div>
  2218. <div>{{ w.commentCount }}</div>
  2219. </div>
  2220. </div>
  2221. </div>
  2222. </div>
  2223. </div>
  2224. </div>
  2225. <div
  2226. v-if="
  2227. tType &&
  2228. ((tType == 2 && sIsOpen == true) ||
  2229. tType == 1 ||
  2230. tType == 4) &&
  2231. tool.tool.indexOf(57) != -1
  2232. "
  2233. class="worksBox"
  2234. >
  2235. <div
  2236. class="zuoyeYulan"
  2237. v-if="
  2238. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2239. "
  2240. >
  2241. <div class="worksTop">
  2242. <div>作业预览</div>
  2243. </div>
  2244. </div>
  2245. <div
  2246. class="worksDetailBox"
  2247. v-if="
  2248. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2249. "
  2250. >
  2251. <div
  2252. class="works"
  2253. style="
  2254. width: 200px;
  2255. height: 140px;
  2256. margin: 10px 10px 10px 0;
  2257. border-radius: 15px;
  2258. box-shadow: 0 0 6px 1px #dfdada;
  2259. "
  2260. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2261. :key="wIndex"
  2262. :class="w.type == 1 ? 'isTypeOne' : ''"
  2263. >
  2264. <div class="workImg">
  2265. <img
  2266. :src="word2"
  2267. @click="downloadFile(w.works)"
  2268. v-if="w.type == 12"
  2269. alt
  2270. />
  2271. <img
  2272. :src="word2"
  2273. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  2274. v-else-if="w.type == 15"
  2275. alt
  2276. />
  2277. <div
  2278. class="answerScore"
  2279. v-if="w.score"
  2280. @click.stop="openScore(w)"
  2281. :class="{
  2282. rightW:
  2283. w.userid == userid ||
  2284. tType == 1 ||
  2285. tType == 4 ||
  2286. w.ateacher == userid,
  2287. }"
  2288. >
  2289. {{ JSON.parse(w.score).wScore }}分
  2290. </div>
  2291. <div
  2292. class="answerScore"
  2293. @click.stop="openScore(w)"
  2294. v-else-if="courseDetail.userid == userid"
  2295. :class="{
  2296. rightW:
  2297. w.userid == userid ||
  2298. tType == 1 ||
  2299. tType == 4 ||
  2300. w.ateacher == userid,
  2301. }"
  2302. >
  2303. 评分
  2304. </div>
  2305. <img
  2306. class="deleteImg"
  2307. src="../../assets/deleteworks.png"
  2308. v-if="w.userid == userid || tType == 1 || tType == 4"
  2309. @click.stop="deleteWorks(w.wid)"
  2310. alt
  2311. />
  2312. </div>
  2313. <div class="comment" style="min-width: 200px">
  2314. <div class="worksName">
  2315. <div>{{ w.sName }}</div>
  2316. </div>
  2317. <div class="commentList">
  2318. <div class="commentList">
  2319. <div
  2320. class="commentImg"
  2321. @click="
  2322. isLikes(w.wid, userid, 1, null, w.isLikes)
  2323. "
  2324. >
  2325. <img
  2326. :src="w.isLikes == true ? likes : noLikes"
  2327. alt=""
  2328. />
  2329. </div>
  2330. <div>{{ w.likesCount }}</div>
  2331. </div>
  2332. <div class="commentList" style="margin-right: 15px">
  2333. <div
  2334. class="commentImg"
  2335. @click="commentOther(w, toolIndex, wIndex)"
  2336. >
  2337. <img
  2338. src="../../assets/icon/comment/comment.png"
  2339. alt=""
  2340. />
  2341. </div>
  2342. <div>{{ w.commentCount }}</div>
  2343. </div>
  2344. </div>
  2345. </div>
  2346. </div>
  2347. </div>
  2348. </div>
  2349. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  2350. <div
  2351. class="zuoyeYulan"
  2352. v-if="
  2353. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2354. "
  2355. >
  2356. <span>作业预览</span>
  2357. </div>
  2358. <div
  2359. class="worksDetailBox"
  2360. v-if="
  2361. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2362. "
  2363. >
  2364. <div
  2365. class="works"
  2366. style="
  2367. width: 200px;
  2368. height: 140px;
  2369. margin: 10px 10px 10px 0;
  2370. border-radius: 15px;
  2371. box-shadow: 0 0 6px 1px #dfdada;
  2372. "
  2373. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2374. :key="wIndex"
  2375. :class="w.type == 1 ? 'isTypeOne' : ''"
  2376. >
  2377. <div class="workImg" v-if="w.type == 0">
  2378. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2379. <img :src="w.works" @click="previewImg(w.works)" alt />
  2380. <div
  2381. class="answerScore"
  2382. v-if="w.score"
  2383. @click.stop="openScore(w)"
  2384. :class="{
  2385. rightW:
  2386. w.userid == userid ||
  2387. tType == 1 ||
  2388. tType == 4 ||
  2389. w.ateacher == userid,
  2390. }"
  2391. >
  2392. {{ JSON.parse(w.score).wScore }}分
  2393. </div>
  2394. <div
  2395. class="answerScore"
  2396. @click.stop="openScore(w)"
  2397. v-else-if="courseDetail.userid == userid"
  2398. :class="{
  2399. rightW:
  2400. w.userid == userid ||
  2401. tType == 1 ||
  2402. tType == 4 ||
  2403. w.ateacher == userid,
  2404. }"
  2405. >
  2406. 评分
  2407. </div>
  2408. <img
  2409. class="deleteImg"
  2410. src="../../assets/deleteworks.png"
  2411. v-if="w.userid == userid || tType == 1 || tType == 4"
  2412. @click.stop="deleteWorks(w.wid)"
  2413. alt
  2414. />
  2415. </div>
  2416. <div
  2417. class="workImg"
  2418. style="cursor: pointer"
  2419. v-if="w.type == 1"
  2420. >
  2421. <img :src="word" @click="openFile(w.works)" alt />
  2422. <!-- @click="openFile(w.works)" -->
  2423. <div
  2424. class="answerScore"
  2425. v-if="w.score"
  2426. @click.stop="openScore(w)"
  2427. :class="{
  2428. rightW:
  2429. w.userid == userid ||
  2430. tType == 1 ||
  2431. tType == 4 ||
  2432. w.ateacher == userid,
  2433. }"
  2434. >
  2435. {{ JSON.parse(w.score).wScore }}分
  2436. </div>
  2437. <div
  2438. class="answerScore"
  2439. @click.stop="openScore(w)"
  2440. v-else-if="courseDetail.userid == userid"
  2441. :class="{
  2442. rightW:
  2443. w.userid == userid ||
  2444. tType == 1 ||
  2445. tType == 4 ||
  2446. w.ateacher == userid,
  2447. }"
  2448. >
  2449. 评分
  2450. </div>
  2451. <img
  2452. class="deleteImg"
  2453. src="../../assets/deleteworks.png"
  2454. v-if="w.userid == userid || tType == 1 || tType == 4"
  2455. @click.stop="deleteWorks(w.wid)"
  2456. alt
  2457. />
  2458. </div>
  2459. <div class="workImg" v-if="w.type == 3">
  2460. <img
  2461. style="cursor: pointer"
  2462. :src="video"
  2463. @click="openVideo(w)"
  2464. alt
  2465. />
  2466. <!-- @click="openVideo(w.works)" -->
  2467. <div
  2468. class="answerScore"
  2469. v-if="w.score"
  2470. @click.stop="openScore(w)"
  2471. :class="{
  2472. rightW:
  2473. w.userid == userid ||
  2474. tType == 1 ||
  2475. tType == 4 ||
  2476. w.ateacher == userid,
  2477. }"
  2478. >
  2479. {{ JSON.parse(w.score).wScore }}分
  2480. </div>
  2481. <div
  2482. class="answerScore"
  2483. @click.stop="openScore(w)"
  2484. v-else-if="courseDetail.userid == userid"
  2485. :class="{
  2486. rightW:
  2487. w.userid == userid ||
  2488. tType == 1 ||
  2489. tType == 4 ||
  2490. w.ateacher == userid,
  2491. }"
  2492. >
  2493. 评分
  2494. </div>
  2495. <img
  2496. class="deleteImg"
  2497. src="../../assets/deleteworks.png"
  2498. v-if="w.userid == userid || tType == 1 || tType == 4"
  2499. @click.stop="deleteWorks(w.wid)"
  2500. alt
  2501. />
  2502. </div>
  2503. <div class="comment" style="min-width: 200px">
  2504. <div class="worksName">
  2505. <div
  2506. style="cursor: pointer"
  2507. @click="
  2508. openSname(w.sName, w.wid, toolIndex, w.userid)
  2509. "
  2510. >
  2511. {{ w.sName }}
  2512. </div>
  2513. </div>
  2514. <div class="commentList">
  2515. <div class="commentList">
  2516. <div
  2517. class="commentImg"
  2518. @click="
  2519. isLikes(w.wid, userid, 1, null, w.isLikes)
  2520. "
  2521. >
  2522. <img
  2523. :src="w.isLikes == true ? likes : noLikes"
  2524. alt=""
  2525. />
  2526. </div>
  2527. <div>{{ w.likesCount }}</div>
  2528. </div>
  2529. <div class="commentList" style="margin-right: 15px">
  2530. <div
  2531. class="commentImg"
  2532. @click="commentOther(w, toolIndex, wIndex)"
  2533. >
  2534. <img
  2535. src="../../assets/icon/comment/comment.png"
  2536. alt=""
  2537. />
  2538. </div>
  2539. <div>{{ w.commentCount }}</div>
  2540. </div>
  2541. </div>
  2542. </div>
  2543. </div>
  2544. </div>
  2545. </div>
  2546. <div
  2547. v-if="
  2548. tType &&
  2549. ((tType == 2 && sIsOpen == true) ||
  2550. tType == 1 ||
  2551. tType == 4) &&
  2552. tool.tool.indexOf(4) != -1
  2553. "
  2554. class="worksBox"
  2555. >
  2556. <div
  2557. class="zuoyeYulan"
  2558. v-if="
  2559. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2560. "
  2561. >
  2562. <div class="worksTop">
  2563. <div>作业预览</div>
  2564. </div>
  2565. </div>
  2566. <div>
  2567. <div
  2568. class="worksDetailBox"
  2569. v-if="
  2570. worksTeacher.length &&
  2571. worksTeacher[toolIndex].length > 0
  2572. "
  2573. >
  2574. <div
  2575. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2576. :key="wIndex"
  2577. class="isWorksName"
  2578. @click="
  2579. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2580. "
  2581. >
  2582. {{ w.sName }}
  2583. <img
  2584. class="deleteImg deleteImg2"
  2585. src="../../assets/deleteworks.png"
  2586. v-if="w.userid == userid || tType == 1 || tType == 4"
  2587. @click.stop="deleteWorks(w.wid)"
  2588. alt
  2589. />
  2590. </div>
  2591. </div>
  2592. </div>
  2593. </div>
  2594. <div
  2595. v-if="
  2596. tType &&
  2597. ((tType == 2 && sIsOpen == true) ||
  2598. tType == 1 ||
  2599. tType == 4) &&
  2600. tool.tool.indexOf(45) != -1
  2601. "
  2602. class="worksBox"
  2603. >
  2604. <div
  2605. class="zuoyeYulan"
  2606. v-if="
  2607. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2608. "
  2609. >
  2610. <div class="worksTop">
  2611. <div>作业预览</div>
  2612. </div>
  2613. </div>
  2614. <div>
  2615. <div
  2616. class="worksDetailBox"
  2617. v-if="
  2618. worksTeacher.length &&
  2619. worksTeacher[toolIndex].length > 0
  2620. "
  2621. >
  2622. <div
  2623. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2624. :key="wIndex"
  2625. class="isWorksName"
  2626. @click="
  2627. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2628. "
  2629. >
  2630. {{ w.sName }}
  2631. <img
  2632. class="deleteImg deleteImg2"
  2633. src="../../assets/deleteworks.png"
  2634. v-if="w.userid == userid || tType == 1 || tType == 4"
  2635. @click.stop="deleteWorks(w.wid)"
  2636. alt
  2637. />
  2638. </div>
  2639. </div>
  2640. </div>
  2641. </div>
  2642. <div
  2643. v-if="
  2644. tType &&
  2645. ((tType == 2 && sIsOpen == true) ||
  2646. tType == 1 ||
  2647. tType == 4) &&
  2648. tool.tool.indexOf(15) != -1
  2649. "
  2650. class="worksBox"
  2651. >
  2652. <div
  2653. class="zuoyeYulan"
  2654. v-if="
  2655. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2656. "
  2657. >
  2658. <div class="worksTop">
  2659. <div>作业预览</div>
  2660. </div>
  2661. </div>
  2662. <div
  2663. class="worksDetailBox"
  2664. v-if="
  2665. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2666. "
  2667. >
  2668. <div
  2669. class="works"
  2670. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2671. :key="wIndex"
  2672. >
  2673. <div
  2674. class="workImg"
  2675. style="
  2676. border-radius: 15px;
  2677. box-shadow: #eee 0px 0px 5px 5px;
  2678. "
  2679. >
  2680. <!-- <img
  2681. src="../../assets/icon/works/noImg.png"
  2682. @click="openTools(15, toolIndex, taskCount, w.works)"
  2683. alt=""
  2684. />-->
  2685. <div
  2686. class="answerBg"
  2687. style="border-radius: 15px 15px 0 0"
  2688. @click="commentOther(w, toolIndex, wIndex)"
  2689. >
  2690. <!-- <div>{{ w.sName }}</div> -->
  2691. <div class="answerContent">
  2692. {{ JSON.parse(w.works)[0].answer }}
  2693. </div>
  2694. <div
  2695. class="answerScore"
  2696. v-if="w.score"
  2697. @click.stop="openScore(w)"
  2698. :class="{
  2699. rightW:
  2700. w.userid == userid || tType == 1 || tType == 4,
  2701. }"
  2702. >
  2703. {{ JSON.parse(w.score).wScore }}分
  2704. </div>
  2705. <div
  2706. class="answerScore"
  2707. @click.stop="openScore(w)"
  2708. v-else-if="courseDetail.userid == userid"
  2709. :class="{
  2710. rightW:
  2711. w.userid == userid || tType == 1 || tType == 4,
  2712. }"
  2713. >
  2714. 评分
  2715. </div>
  2716. <img
  2717. class="deleteImg"
  2718. src="../../assets/deleteworks.png"
  2719. v-if="
  2720. w.userid == userid || tType == 1 || tType == 4
  2721. "
  2722. @click.stop="deleteWorks(w.wid)"
  2723. alt
  2724. />
  2725. </div>
  2726. <div class="comment">
  2727. <div class="worksName">
  2728. <div>{{ w.sName }}</div>
  2729. </div>
  2730. <div class="commentList">
  2731. <div
  2732. class="commentImg"
  2733. @click="
  2734. isLikes(w.wid, userid, 1, null, w.isLikes)
  2735. "
  2736. >
  2737. <img
  2738. :src="w.isLikes == true ? likes : noLikes"
  2739. alt=""
  2740. />
  2741. </div>
  2742. <div>{{ w.likesCount }}</div>
  2743. </div>
  2744. <div class="commentList" style="margin-right: 15px">
  2745. <div
  2746. class="commentImg"
  2747. @click="commentOther(w, toolIndex, wIndex)"
  2748. >
  2749. <img
  2750. src="../../assets/icon/comment/comment.png"
  2751. alt=""
  2752. />
  2753. </div>
  2754. <div>{{ w.commentCount }}</div>
  2755. </div>
  2756. </div>
  2757. </div>
  2758. </div>
  2759. </div>
  2760. </div>
  2761. <div
  2762. v-if="
  2763. tType &&
  2764. ((tType == 2 && sIsOpen == true) ||
  2765. tType == 1 ||
  2766. tType == 4) &&
  2767. tool.tool.indexOf(1) != -1
  2768. "
  2769. class="worksBox"
  2770. >
  2771. <div
  2772. class="zuoyeYulan"
  2773. v-if="
  2774. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2775. "
  2776. >
  2777. <div class="worksTop">
  2778. <div>作业预览</div>
  2779. </div>
  2780. </div>
  2781. <div
  2782. class="worksDetailBox"
  2783. v-if="
  2784. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2785. "
  2786. >
  2787. <div
  2788. class="works"
  2789. style="
  2790. width: 200px;
  2791. height: 140px;
  2792. margin: 10px 10px 10px 0;
  2793. border-radius: 15px;
  2794. box-shadow: 0 0 6px 1px #dfdada;
  2795. "
  2796. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2797. :key="wIndex"
  2798. >
  2799. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2800. <div class="workImg">
  2801. <img :src="w.works" @click="previewImg(w.works)" alt />
  2802. <div
  2803. class="answerScore"
  2804. v-if="w.score"
  2805. @click.stop="openScore(w)"
  2806. :class="{
  2807. rightW:
  2808. w.userid == userid || tType == 1 || tType == 4,
  2809. }"
  2810. >
  2811. {{ JSON.parse(w.score).wScore }}分
  2812. </div>
  2813. <div
  2814. class="answerScore"
  2815. @click.stop="openScore(w)"
  2816. v-else-if="courseDetail.userid == userid"
  2817. :class="{
  2818. rightW:
  2819. w.userid == userid || tType == 1 || tType == 4,
  2820. }"
  2821. >
  2822. 评分
  2823. </div>
  2824. <img
  2825. class="deleteImg"
  2826. src="../../assets/deleteworks.png"
  2827. v-if="w.userid == userid || tType == 1 || tType == 4"
  2828. @click.stop="deleteWorks(w.wid)"
  2829. alt
  2830. />
  2831. </div>
  2832. <div class="comment" style="min-width: 200px">
  2833. <div class="worksName">
  2834. <div>{{ w.sName }}</div>
  2835. </div>
  2836. <div class="commentList">
  2837. <div class="commentList">
  2838. <div
  2839. class="commentImg"
  2840. @click="
  2841. isLikes(w.wid, userid, 1, null, w.isLikes)
  2842. "
  2843. >
  2844. <img
  2845. :src="w.isLikes == true ? likes : noLikes"
  2846. alt=""
  2847. />
  2848. </div>
  2849. <div>{{ w.likesCount }}</div>
  2850. </div>
  2851. <div class="commentList" style="margin-right: 15px">
  2852. <div
  2853. class="commentImg"
  2854. @click="commentOther(w, toolIndex, wIndex)"
  2855. >
  2856. <img
  2857. src="../../assets/icon/comment/comment.png"
  2858. alt=""
  2859. />
  2860. </div>
  2861. <div>{{ w.commentCount }}</div>
  2862. </div>
  2863. </div>
  2864. </div>
  2865. </div>
  2866. </div>
  2867. </div>
  2868. <div
  2869. v-if="
  2870. tType &&
  2871. ((tType == 2 && sIsOpen == true) ||
  2872. tType == 1 ||
  2873. tType == 4) &&
  2874. tool.tool.indexOf(3) != -1
  2875. "
  2876. class="worksBox"
  2877. >
  2878. <div
  2879. class="zuoyeYulan"
  2880. v-if="
  2881. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2882. "
  2883. >
  2884. <div class="worksTop">
  2885. <div>作业预览</div>
  2886. </div>
  2887. </div>
  2888. <div
  2889. class="worksDetailBox"
  2890. v-if="
  2891. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2892. "
  2893. >
  2894. <div
  2895. class="works"
  2896. style="
  2897. width: 200px;
  2898. height: 140px;
  2899. margin: 10px 10px 10px 0;
  2900. border-radius: 15px;
  2901. box-shadow: 0 0 6px 1px #dfdada;
  2902. "
  2903. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2904. :key="wIndex"
  2905. >
  2906. <!-- @click="previewImg(w.works)" -->
  2907. <div class="workImg">
  2908. <img :src="w.works" @click="previewImg(w.works)" alt />
  2909. <div
  2910. class="answerScore"
  2911. v-if="w.score"
  2912. @click.stop="openScore(w)"
  2913. :class="{
  2914. rightW:
  2915. w.userid == userid || tType == 1 || tType == 4,
  2916. }"
  2917. >
  2918. {{ JSON.parse(w.score).wScore }}分
  2919. </div>
  2920. <div
  2921. class="answerScore"
  2922. @click.stop="openScore(w)"
  2923. v-else-if="courseDetail.userid == userid"
  2924. :class="{
  2925. rightW:
  2926. w.userid == userid || tType == 1 || tType == 4,
  2927. }"
  2928. >
  2929. 评分
  2930. </div>
  2931. <img
  2932. class="deleteImg"
  2933. src="../../assets/deleteworks.png"
  2934. v-if="w.userid == userid || tType == 1 || tType == 4"
  2935. @click.stop="deleteWorks(w.wid)"
  2936. alt
  2937. />
  2938. </div>
  2939. <div class="comment" style="min-width: 200px">
  2940. <div class="worksName">
  2941. <div>{{ w.sName }}</div>
  2942. </div>
  2943. <div class="commentList">
  2944. <div class="commentList">
  2945. <div
  2946. class="commentImg"
  2947. @click="
  2948. isLikes(w.wid, userid, 1, null, w.isLikes)
  2949. "
  2950. >
  2951. <img
  2952. :src="w.isLikes == true ? likes : noLikes"
  2953. alt=""
  2954. />
  2955. </div>
  2956. <div>{{ w.likesCount }}</div>
  2957. </div>
  2958. <div class="commentList" style="margin-right: 15px">
  2959. <div
  2960. class="commentImg"
  2961. @click="commentOther(w, toolIndex, wIndex)"
  2962. >
  2963. <img
  2964. src="../../assets/icon/comment/comment.png"
  2965. alt=""
  2966. />
  2967. </div>
  2968. <div>{{ w.commentCount }}</div>
  2969. </div>
  2970. </div>
  2971. </div>
  2972. </div>
  2973. </div>
  2974. </div>
  2975. <div
  2976. v-if="
  2977. tType &&
  2978. ((tType == 2 && sIsOpen == true) ||
  2979. tType == 1 ||
  2980. tType == 4) &&
  2981. tool.tool.indexOf(6) != -1
  2982. "
  2983. class="worksBox"
  2984. >
  2985. <div
  2986. class="zuoyeYulan"
  2987. v-if="
  2988. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2989. "
  2990. >
  2991. <div class="worksTop">
  2992. <div>作业预览</div>
  2993. </div>
  2994. </div>
  2995. <div
  2996. class="worksDetailBox"
  2997. v-if="
  2998. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2999. "
  3000. >
  3001. <div
  3002. class="works"
  3003. style="
  3004. width: 200px;
  3005. height: 140px;
  3006. margin: 10px 10px 10px 0;
  3007. border-radius: 15px;
  3008. box-shadow: 0 0 6px 1px #dfdada;
  3009. "
  3010. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3011. :key="wIndex"
  3012. >
  3013. <!-- @click="previewImg(w.works)" -->
  3014. <div class="workImg">
  3015. <img :src="w.works" @click="previewImg(w.works)" alt />
  3016. <div
  3017. class="answerScore"
  3018. v-if="w.score"
  3019. @click.stop="openScore(w)"
  3020. :class="{
  3021. rightW:
  3022. w.userid == userid || tType == 1 || tType == 4,
  3023. }"
  3024. >
  3025. {{ JSON.parse(w.score).wScore }}分
  3026. </div>
  3027. <div
  3028. class="answerScore"
  3029. @click.stop="openScore(w)"
  3030. v-else-if="courseDetail.userid == userid"
  3031. :class="{
  3032. rightW:
  3033. w.userid == userid || tType == 1 || tType == 4,
  3034. }"
  3035. >
  3036. 评分
  3037. </div>
  3038. <img
  3039. class="deleteImg"
  3040. src="../../assets/deleteworks.png"
  3041. v-if="w.userid == userid || tType == 1 || tType == 4"
  3042. @click.stop="deleteWorks(w.wid)"
  3043. alt
  3044. />
  3045. </div>
  3046. <div class="comment" style="min-width: 200px">
  3047. <div class="worksName">
  3048. <div>{{ w.sName }}</div>
  3049. </div>
  3050. <div class="commentList">
  3051. <div class="commentList">
  3052. <div
  3053. class="commentImg"
  3054. @click="
  3055. isLikes(w.wid, userid, 1, null, w.isLikes)
  3056. "
  3057. >
  3058. <img
  3059. :src="w.isLikes == true ? likes : noLikes"
  3060. alt=""
  3061. />
  3062. </div>
  3063. <div>{{ w.likesCount }}</div>
  3064. </div>
  3065. <div class="commentList" style="margin-right: 15px">
  3066. <div
  3067. class="commentImg"
  3068. @click="commentOther(w, toolIndex, wIndex)"
  3069. >
  3070. <img
  3071. src="../../assets/icon/comment/comment.png"
  3072. alt=""
  3073. />
  3074. </div>
  3075. <div>{{ w.commentCount }}</div>
  3076. </div>
  3077. </div>
  3078. </div>
  3079. </div>
  3080. </div>
  3081. </div>
  3082. <div
  3083. v-if="
  3084. tType &&
  3085. ((tType == 2 && sIsOpen == true) ||
  3086. tType == 1 ||
  3087. tType == 4) &&
  3088. tool.tool.indexOf(7) != -1
  3089. "
  3090. class="worksBox"
  3091. >
  3092. <div
  3093. class="zuoyeYulan"
  3094. v-if="
  3095. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3096. "
  3097. >
  3098. <div class="worksTop">
  3099. <div>作业预览</div>
  3100. </div>
  3101. </div>
  3102. <div
  3103. class="worksDetailBox"
  3104. v-if="
  3105. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3106. "
  3107. >
  3108. <div
  3109. class="works"
  3110. style="
  3111. width: 200px;
  3112. height: 140px;
  3113. margin: 10px 10px 10px 0;
  3114. border-radius: 15px;
  3115. box-shadow: 0 0 6px 1px #dfdada;
  3116. "
  3117. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3118. :key="wIndex"
  3119. >
  3120. <!-- @click="previewImg(w.works)" -->
  3121. <div class="workImg">
  3122. <img :src="w.works" @click="previewImg(w.works)" alt />
  3123. <div
  3124. class="answerScore"
  3125. v-if="w.score"
  3126. @click.stop="openScore(w)"
  3127. :class="{
  3128. rightW:
  3129. w.userid == userid || tType == 1 || tType == 4,
  3130. }"
  3131. >
  3132. {{ JSON.parse(w.score).wScore }}分
  3133. </div>
  3134. <div
  3135. class="answerScore"
  3136. @click.stop="openScore(w)"
  3137. v-else-if="courseDetail.userid == userid"
  3138. :class="{
  3139. rightW:
  3140. w.userid == userid || tType == 1 || tType == 4,
  3141. }"
  3142. >
  3143. 评分
  3144. </div>
  3145. <img
  3146. class="deleteImg"
  3147. src="../../assets/deleteworks.png"
  3148. v-if="w.userid == userid || tType == 1 || tType == 4"
  3149. @click.stop="deleteWorks(w.wid)"
  3150. alt
  3151. />
  3152. </div>
  3153. <div class="comment" style="min-width: 200px">
  3154. <div class="worksName">
  3155. <div>{{ w.sName }}</div>
  3156. </div>
  3157. <div class="commentList">
  3158. <div class="commentList">
  3159. <div
  3160. class="commentImg"
  3161. @click="
  3162. isLikes(w.wid, userid, 1, null, w.isLikes)
  3163. "
  3164. >
  3165. <img
  3166. :src="w.isLikes == true ? likes : noLikes"
  3167. alt=""
  3168. />
  3169. </div>
  3170. <div>{{ w.likesCount }}</div>
  3171. </div>
  3172. <div class="commentList" style="margin-right: 15px">
  3173. <div
  3174. class="commentImg"
  3175. @click="commentOther(w, toolIndex, wIndex)"
  3176. >
  3177. <img
  3178. src="../../assets/icon/comment/comment.png"
  3179. alt=""
  3180. />
  3181. </div>
  3182. <div>{{ w.commentCount }}</div>
  3183. </div>
  3184. </div>
  3185. </div>
  3186. </div>
  3187. </div>
  3188. </div>
  3189. <div
  3190. v-if="
  3191. tType &&
  3192. ((tType == 2 && sIsOpen == true) ||
  3193. tType == 1 ||
  3194. tType == 4) &&
  3195. tool.tool.indexOf(26) != -1
  3196. "
  3197. class="worksBox"
  3198. >
  3199. <div
  3200. class="zuoyeYulan"
  3201. v-if="
  3202. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3203. "
  3204. >
  3205. <div class="worksTop">
  3206. <div>作业预览</div>
  3207. </div>
  3208. </div>
  3209. <div
  3210. class="worksDetailBox"
  3211. v-if="
  3212. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3213. "
  3214. >
  3215. <div
  3216. class="works"
  3217. style="width: 240px; height: 140px; overflow: hidden"
  3218. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3219. :key="wIndex"
  3220. :class="w.type == 1 ? 'isTypeOne' : ''"
  3221. >
  3222. <div class="workImg" v-if="w.type == 0">
  3223. <img :src="w.works" @click="previewImg(w.works)" alt />
  3224. <img
  3225. class="deleteImg"
  3226. src="../../assets/deleteworks.png"
  3227. v-if="w.userid == userid || tType == 1 || tType == 4"
  3228. @click.stop="deleteWorks(w.wid)"
  3229. alt
  3230. />
  3231. </div>
  3232. <div class="workImg" v-if="w.type == 1">
  3233. <img :src="word" @click="openFile(w.works)" alt />
  3234. <img
  3235. class="deleteImg"
  3236. src="../../assets/deleteworks.png"
  3237. v-if="w.userid == userid || tType == 1 || tType == 4"
  3238. @click.stop="deleteWorks(w.wid)"
  3239. alt
  3240. />
  3241. </div>
  3242. <div class="worksName">
  3243. <div>{{ w.sName }}</div>
  3244. </div>
  3245. </div>
  3246. </div>
  3247. </div>
  3248. <div
  3249. v-if="
  3250. tType &&
  3251. ((tType == 2 && sIsOpen == true) ||
  3252. tType == 1 ||
  3253. tType == 4) &&
  3254. tool.tool.indexOf(40) != -1
  3255. "
  3256. class="worksBox"
  3257. >
  3258. <div
  3259. class="zuoyeYulan"
  3260. v-if="
  3261. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3262. "
  3263. >
  3264. <div class="worksTop">
  3265. <div>作业预览</div>
  3266. </div>
  3267. </div>
  3268. <div
  3269. class="worksDetailBox"
  3270. v-if="
  3271. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3272. "
  3273. >
  3274. <div
  3275. class="works"
  3276. style="
  3277. width: 200px;
  3278. height: 140px;
  3279. margin: 10px 10px 10px 0;
  3280. border-radius: 15px;
  3281. box-shadow: 0 0 6px 1px #dfdada;
  3282. "
  3283. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3284. :key="wIndex"
  3285. :class="w.type == 1 ? 'isTypeOne' : ''"
  3286. >
  3287. <div class="workImg">
  3288. <img
  3289. src="../../assets/icon/works/noImg.png"
  3290. @click="openPj(w.works, toolIndex)"
  3291. alt
  3292. />
  3293. <img
  3294. class="deleteImg"
  3295. src="../../assets/deleteworks.png"
  3296. v-if="w.userid == userid || tType == 1 || tType == 4"
  3297. @click.stop="deleteWorks(w.wid)"
  3298. alt
  3299. />
  3300. </div>
  3301. <div class="comment" style="min-width: 200px">
  3302. <div class="worksName">
  3303. <div>{{ w.sName }}</div>
  3304. </div>
  3305. <div class="commentList">
  3306. <div class="commentList">
  3307. <div
  3308. class="commentImg"
  3309. @click="
  3310. isLikes(w.wid, userid, 1, null, w.isLikes)
  3311. "
  3312. >
  3313. <img
  3314. :src="w.isLikes == true ? likes : noLikes"
  3315. alt=""
  3316. />
  3317. </div>
  3318. <div>{{ w.likesCount }}</div>
  3319. </div>
  3320. <div class="commentList" style="margin-right: 15px">
  3321. <div
  3322. class="commentImg"
  3323. @click="commentOther(w, toolIndex, wIndex)"
  3324. >
  3325. <img
  3326. src="../../assets/icon/comment/comment.png"
  3327. alt=""
  3328. />
  3329. </div>
  3330. <div>{{ w.commentCount }}</div>
  3331. </div>
  3332. </div>
  3333. </div>
  3334. </div>
  3335. </div>
  3336. </div>
  3337. <div
  3338. v-if="
  3339. tType &&
  3340. ((tType == 2 && sIsOpen == true) ||
  3341. tType == 1 ||
  3342. tType == 4) &&
  3343. tool.tool.indexOf(41) != -1
  3344. "
  3345. class="worksBox"
  3346. >
  3347. <div
  3348. class="zuoyeYulan"
  3349. v-if="
  3350. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3351. "
  3352. >
  3353. <div class="worksTop">
  3354. <div>作业预览</div>
  3355. </div>
  3356. </div>
  3357. <div
  3358. class="worksDetailBox"
  3359. v-if="
  3360. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3361. "
  3362. >
  3363. <div
  3364. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3365. :key="wIndex"
  3366. class="isWorksName"
  3367. @click="openXz(w, toolIndex)"
  3368. >
  3369. {{ w.sName }}
  3370. <img
  3371. class="deleteImg deleteImg2"
  3372. src="../../assets/deleteworks.png"
  3373. v-if="w.userid == userid || tType == 1 || tType == 4"
  3374. @click.stop="deleteWorks(w.wid)"
  3375. alt
  3376. />
  3377. </div>
  3378. </div>
  3379. </div>
  3380. <div
  3381. v-if="
  3382. tType &&
  3383. ((tType == 2 && sIsOpen == true) ||
  3384. tType == 1 ||
  3385. tType == 4) &&
  3386. tool.tool.indexOf(47) != -1
  3387. "
  3388. class="worksBox"
  3389. >
  3390. <div
  3391. class="zuoyeYulan"
  3392. v-if="
  3393. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3394. "
  3395. >
  3396. <div class="worksTop">
  3397. <div>作业预览</div>
  3398. </div>
  3399. </div>
  3400. <div
  3401. class="worksDetailBox"
  3402. v-if="
  3403. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3404. "
  3405. >
  3406. <!-- @click="openXz(w, toolIndex)" -->
  3407. <div
  3408. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3409. :key="wIndex"
  3410. class="isWorksName"
  3411. @click="openSen(w, toolIndex)"
  3412. >
  3413. {{ w.sName }}
  3414. <img
  3415. class="deleteImg deleteImg2"
  3416. src="../../assets/deleteworks.png"
  3417. v-if="w.userid == userid || tType == 1 || tType == 4"
  3418. @click.stop="deleteWorks(w.wid)"
  3419. alt
  3420. />
  3421. </div>
  3422. </div>
  3423. </div>
  3424. <div
  3425. v-if="
  3426. tType &&
  3427. ((tType == 2 && sIsOpen == true) ||
  3428. tType == 1 ||
  3429. tType == 4) &&
  3430. tool.tool.indexOf(48) != -1
  3431. "
  3432. class="worksBox"
  3433. >
  3434. <div
  3435. class="zuoyeYulan"
  3436. v-if="
  3437. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3438. "
  3439. >
  3440. <div class="worksTop">
  3441. <div>作业预览</div>
  3442. </div>
  3443. </div>
  3444. <div
  3445. class="worksDetailBox"
  3446. v-if="
  3447. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3448. "
  3449. >
  3450. <div
  3451. class="works"
  3452. style="
  3453. width: 200px;
  3454. height: 140px;
  3455. margin: 10px 10px 10px 0;
  3456. border-radius: 15px;
  3457. box-shadow: 0 0 6px 1px #dfdada;
  3458. "
  3459. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3460. :key="wIndex"
  3461. :class="w.type == 1 ? 'isTypeOne' : ''"
  3462. >
  3463. <div class="workImg">
  3464. <img :src="word" @click="openTable(w)" alt />
  3465. <!-- @click="openFile(w.works)" -->
  3466. <div
  3467. class="answerScore"
  3468. v-if="w.score"
  3469. @click.stop="openScore(w)"
  3470. :class="{
  3471. rightW:
  3472. w.userid == userid ||
  3473. tType == 1 ||
  3474. tType == 4 ||
  3475. w.ateacher == userid,
  3476. }"
  3477. >
  3478. {{ JSON.parse(w.score).wScore }}分
  3479. </div>
  3480. <div
  3481. class="answerScore"
  3482. @click.stop="openScore(w)"
  3483. v-else-if="courseDetail.userid == userid"
  3484. :class="{
  3485. rightW:
  3486. w.userid == userid ||
  3487. tType == 1 ||
  3488. tType == 4 ||
  3489. w.ateacher == userid,
  3490. }"
  3491. >
  3492. 评分
  3493. </div>
  3494. <img
  3495. class="deleteImg"
  3496. src="../../assets/deleteworks.png"
  3497. v-if="w.userid == userid || tType == 1 || tType == 4"
  3498. @click.stop="deleteWorks(w.wid)"
  3499. alt
  3500. />
  3501. </div>
  3502. <div class="comment" style="min-width: 200px">
  3503. <div class="worksName">
  3504. <div>{{ w.sName }}</div>
  3505. </div>
  3506. <div class="commentList">
  3507. <div class="commentList">
  3508. <div
  3509. class="commentImg"
  3510. @click="
  3511. isLikes(w.wid, userid, 1, null, w.isLikes)
  3512. "
  3513. >
  3514. <img
  3515. :src="w.isLikes == true ? likes : noLikes"
  3516. alt=""
  3517. />
  3518. </div>
  3519. <div>{{ w.likesCount }}</div>
  3520. </div>
  3521. <div class="commentList" style="margin-right: 15px">
  3522. <div
  3523. class="commentImg"
  3524. @click="commentOther(w, toolIndex, wIndex)"
  3525. >
  3526. <img
  3527. src="../../assets/icon/comment/comment.png"
  3528. alt=""
  3529. />
  3530. </div>
  3531. <div>{{ w.commentCount }}</div>
  3532. </div>
  3533. </div>
  3534. </div>
  3535. </div>
  3536. </div>
  3537. </div>
  3538. <div
  3539. v-if="
  3540. tType &&
  3541. ((tType == 2 && sIsOpen == true) ||
  3542. tType == 1 ||
  3543. tType == 4) &&
  3544. tool.tool.indexOf(52) != -1
  3545. "
  3546. class="worksBox"
  3547. >
  3548. <div
  3549. class="zuoyeYulan"
  3550. v-if="
  3551. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3552. "
  3553. >
  3554. <div class="worksTop">
  3555. <div>作业预览</div>
  3556. </div>
  3557. </div>
  3558. <div
  3559. class="worksDetailBox"
  3560. v-if="
  3561. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3562. "
  3563. >
  3564. <div
  3565. class="works"
  3566. style="
  3567. width: 200px;
  3568. height: 140px;
  3569. margin: 10px 10px 10px 0;
  3570. border-radius: 15px;
  3571. box-shadow: 0 0 6px 1px #dfdada;
  3572. "
  3573. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3574. :key="wIndex"
  3575. :class="w.type == 1 ? 'isTypeOne' : ''"
  3576. >
  3577. <div class="workImg">
  3578. <img :src="word" @click="openWord(w)" alt />
  3579. <!-- @click="openFile(w.works)" -->
  3580. <div
  3581. class="answerScore"
  3582. v-if="w.score"
  3583. @click.stop="openScore(w)"
  3584. :class="{
  3585. rightW:
  3586. w.userid == userid ||
  3587. tType == 1 ||
  3588. tType == 4 ||
  3589. w.ateacher == userid,
  3590. }"
  3591. >
  3592. {{ JSON.parse(w.score).wScore }}分
  3593. </div>
  3594. <div
  3595. class="answerScore"
  3596. @click.stop="openScore(w)"
  3597. v-else-if="courseDetail.userid == userid"
  3598. :class="{
  3599. rightW:
  3600. w.userid == userid ||
  3601. tType == 1 ||
  3602. tType == 4 ||
  3603. w.ateacher == userid,
  3604. }"
  3605. >
  3606. 评分
  3607. </div>
  3608. <img
  3609. class="deleteImg"
  3610. src="../../assets/deleteworks.png"
  3611. v-if="w.userid == userid || tType == 1 || tType == 4"
  3612. @click.stop="deleteWorks(w.wid)"
  3613. alt
  3614. />
  3615. </div>
  3616. <div class="comment" style="min-width: 200px">
  3617. <div class="worksName">
  3618. <div>{{ w.sName }}</div>
  3619. </div>
  3620. <div class="commentList">
  3621. <div class="commentList">
  3622. <div
  3623. class="commentImg"
  3624. @click="
  3625. isLikes(w.wid, userid, 1, null, w.isLikes)
  3626. "
  3627. >
  3628. <img
  3629. :src="w.isLikes == true ? likes : noLikes"
  3630. alt=""
  3631. />
  3632. </div>
  3633. <div>{{ w.likesCount }}</div>
  3634. </div>
  3635. <div class="commentList" style="margin-right: 15px">
  3636. <div
  3637. class="commentImg"
  3638. @click="commentOther(w, toolIndex, wIndex)"
  3639. >
  3640. <img
  3641. src="../../assets/icon/comment/comment.png"
  3642. alt=""
  3643. />
  3644. </div>
  3645. <div>{{ w.commentCount }}</div>
  3646. </div>
  3647. </div>
  3648. </div>
  3649. </div>
  3650. </div>
  3651. </div>
  3652. </div>
  3653. </div>
  3654. <div class="vedioBox">
  3655. <div
  3656. v-if="
  3657. tType &&
  3658. ((tType == 2 && sIsOpen == true) ||
  3659. tType == 1 ||
  3660. tType == 4) &&
  3661. tool.tool.indexOf(4) != -1 &&
  3662. worksStudent.length &&
  3663. worksStudent[toolIndex].length &&
  3664. (tool.askJson[0].answer || tool.askJson[0].answer === 0) &&
  3665. checkJson[toolIndex].length
  3666. "
  3667. class="xuan_right_box"
  3668. >
  3669. <div
  3670. class="tool_right_box"
  3671. v-for="(item, index) in tool.askJson"
  3672. :key="index"
  3673. >
  3674. <div>
  3675. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  3676. </div>
  3677. <div class="right_box_xuan">
  3678. <span>正确率</span>
  3679. <span>{{
  3680. (checkJson[toolIndex][index].right
  3681. ? checkJson[toolIndex][index].right
  3682. : 0) + "%"
  3683. }}</span>
  3684. </div>
  3685. </div>
  3686. </div>
  3687. <div
  3688. class="xuan_right_box"
  3689. style="background: unset"
  3690. v-if="
  3691. tType &&
  3692. ((tType == 2 && sIsOpen == true) ||
  3693. tType == 1 ||
  3694. tType == 4) &&
  3695. tool.tool.indexOf(4) != -1 &&
  3696. worksStudent.length &&
  3697. worksStudent[toolIndex].length
  3698. "
  3699. >
  3700. <AskStatic
  3701. v-if="
  3702. worksStudent.length && worksStudent[toolIndex].length > 0
  3703. "
  3704. :askJSON="tool"
  3705. :checkJson="checkJson[toolIndex]"
  3706. ></AskStatic>
  3707. </div>
  3708. <div
  3709. v-if="
  3710. tType &&
  3711. ((tType == 2 && sIsOpen == true) ||
  3712. tType == 1 ||
  3713. tType == 4) &&
  3714. tool.tool.indexOf(45) != -1 &&
  3715. worksStudent.length &&
  3716. worksStudent[toolIndex].length &&
  3717. (tool.testJson.testJson[0].answer ||
  3718. tool.testJson.testJson[0].answer === 0) &&
  3719. checkJson[toolIndex].length
  3720. "
  3721. class="xuan_right_box"
  3722. >
  3723. <div
  3724. class="tool_right_box"
  3725. v-for="(item, index) in tool.testJson.testJson"
  3726. :key="index"
  3727. >
  3728. <div>
  3729. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  3730. </div>
  3731. <div class="right_box_xuan">
  3732. <span>正确率</span>
  3733. <span>{{
  3734. (checkJson[toolIndex][index].right
  3735. ? checkJson[toolIndex][index].right
  3736. : 0) + "%"
  3737. }}</span>
  3738. </div>
  3739. </div>
  3740. </div>
  3741. <div
  3742. class="xuan_right_box"
  3743. style="background: unset"
  3744. v-if="
  3745. tType &&
  3746. ((tType == 2 && sIsOpen == true) ||
  3747. tType == 1 ||
  3748. tType == 4) &&
  3749. tool.tool.indexOf(45) != -1 &&
  3750. worksStudent.length &&
  3751. worksStudent[toolIndex].length
  3752. "
  3753. >
  3754. <AskStatic2
  3755. v-if="
  3756. worksStudent.length && worksStudent[toolIndex].length > 0
  3757. "
  3758. :askJSON="tool"
  3759. :checkJson="checkJson[toolIndex]"
  3760. ></AskStatic2>
  3761. </div>
  3762. <div
  3763. v-if="
  3764. tType &&
  3765. ((tType == 2 && sIsOpen == true) ||
  3766. tType == 1 ||
  3767. tType == 4) &&
  3768. tool.tool.indexOf(41) != -1
  3769. "
  3770. >
  3771. <AnswerData2
  3772. v-if="
  3773. worksStudent.length && worksStudent[toolIndex].length > 0
  3774. "
  3775. :problemJson="tool.selectJson.answer"
  3776. :people="worksStudent[toolIndex]"
  3777. ></AnswerData2>
  3778. </div>
  3779. <div
  3780. v-if="
  3781. tType &&
  3782. ((tType == 2 && sIsOpen == true) ||
  3783. tType == 1 ||
  3784. tType == 4) &&
  3785. tool.tool.indexOf(47) != -1
  3786. "
  3787. >
  3788. <AnswerData
  3789. v-if="
  3790. checkJson[toolIndex].length &&
  3791. (tool.sentenceList || tool.sentenceList.length > 0)
  3792. "
  3793. :people="checkJson[toolIndex]"
  3794. ></AnswerData>
  3795. </div>
  3796. </div>
  3797. <div
  3798. class="vedioBox"
  3799. v-if="
  3800. noWorksS[toolIndex].length &&
  3801. arrayToArray(tool.tool, isWorkTool).length &&
  3802. false
  3803. "
  3804. >
  3805. <div
  3806. class="queTop"
  3807. style="
  3808. font-size: 20px;
  3809. padding: 15px 0 15px 30px;
  3810. font-weight: bold;
  3811. "
  3812. >
  3813. 学生工作区
  3814. </div>
  3815. <div class="tool_work_box">
  3816. <div
  3817. v-if="
  3818. tType &&
  3819. ((tType == 2 && sIsOpen == true) ||
  3820. tType == 1 ||
  3821. tType == 4) &&
  3822. tool.tool.indexOf(16) != -1
  3823. "
  3824. class="worksBox"
  3825. >
  3826. <div
  3827. class="zuoyeYulan"
  3828. v-if="
  3829. worksStudent2.length &&
  3830. worksStudent2[toolIndex].length > 0
  3831. "
  3832. >
  3833. <div class="worksTop">
  3834. <div>作业预览</div>
  3835. <div
  3836. class="corOpen"
  3837. @click="contract(toolIndex)"
  3838. v-if="
  3839. worksStudent2[toolIndex].length > 6 &&
  3840. isCloseList[toolIndex].isClose == 0
  3841. "
  3842. >
  3843. 收缩
  3844. </div>
  3845. <div
  3846. class="corOpen"
  3847. @click="contract(toolIndex)"
  3848. v-if="isCloseList[toolIndex].isClose == 1"
  3849. >
  3850. 展开
  3851. </div>
  3852. </div>
  3853. </div>
  3854. <div
  3855. class="worksDetailBox"
  3856. v-if="
  3857. worksStudent2.length &&
  3858. worksStudent2[toolIndex].length > 0
  3859. "
  3860. >
  3861. <div
  3862. class="works"
  3863. style="
  3864. width: 200px;
  3865. height: 140px;
  3866. margin: 10px 10px 10px 0;
  3867. border-radius: 15px;
  3868. box-shadow: 0 0 6px 1px #dfdada;
  3869. "
  3870. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3871. ? worksStudent2[toolIndex]
  3872. : worksStudent2[toolIndex].slice(0, 6)"
  3873. :key="wIndex"
  3874. :class="w.type == 1 ? 'isTypeOne' : ''"
  3875. >
  3876. <div class="workImg" v-if="w.type == 0">
  3877. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3878. <img :src="w.works" @click="previewImg(w.works)" alt />
  3879. <div
  3880. class="answerScore"
  3881. v-if="w.score"
  3882. @click.stop="openScore(w)"
  3883. :class="{
  3884. rightW:
  3885. w.userid == userid ||
  3886. tType == 1 ||
  3887. tType == 4 ||
  3888. w.ateacher == userid,
  3889. }"
  3890. >
  3891. {{ JSON.parse(w.score).wScore }}分
  3892. </div>
  3893. <div
  3894. class="answerScore"
  3895. @click.stop="openScore(w)"
  3896. v-else-if="courseDetail.userid == userid"
  3897. :class="{
  3898. rightW:
  3899. w.userid == userid ||
  3900. tType == 1 ||
  3901. tType == 4 ||
  3902. w.ateacher == userid,
  3903. }"
  3904. >
  3905. 评分
  3906. </div>
  3907. <img
  3908. class="deleteImg"
  3909. src="../../assets/deleteworks.png"
  3910. v-if="w.userid == userid || tType == 1 || tType == 4"
  3911. @click.stop="deleteWorks(w.wid)"
  3912. alt
  3913. />
  3914. </div>
  3915. <div class="workImg" v-if="w.type == 1">
  3916. <img :src="word" @click="openFile(w.works)" alt />
  3917. <!-- @click="openFile(w.works)" -->
  3918. <div
  3919. class="answerScore"
  3920. v-if="w.score"
  3921. @click.stop="openScore(w)"
  3922. :class="{
  3923. rightW:
  3924. w.userid == userid ||
  3925. tType == 1 ||
  3926. tType == 4 ||
  3927. w.ateacher == userid,
  3928. }"
  3929. >
  3930. {{ JSON.parse(w.score).wScore }}分
  3931. </div>
  3932. <div
  3933. class="answerScore"
  3934. @click.stop="openScore(w)"
  3935. v-else-if="courseDetail.userid == userid"
  3936. :class="{
  3937. rightW:
  3938. w.userid == userid ||
  3939. tType == 1 ||
  3940. tType == 4 ||
  3941. w.ateacher == userid,
  3942. }"
  3943. >
  3944. 评分
  3945. </div>
  3946. <img
  3947. class="deleteImg"
  3948. src="../../assets/deleteworks.png"
  3949. v-if="w.userid == userid || tType == 1 || tType == 4"
  3950. @click.stop="deleteWorks(w.wid)"
  3951. alt
  3952. />
  3953. </div>
  3954. <div class="workImg" v-if="w.type == 3">
  3955. <img
  3956. style="cursor: pointer"
  3957. :src="video"
  3958. @click="openVideo(w)"
  3959. alt
  3960. />
  3961. <!-- @click="openVideo(w.works)" -->
  3962. <div
  3963. class="answerScore"
  3964. v-if="w.score"
  3965. @click.stop="openScore(w)"
  3966. :class="{
  3967. rightW:
  3968. w.userid == userid ||
  3969. tType == 1 ||
  3970. tType == 4 ||
  3971. w.ateacher == userid,
  3972. }"
  3973. >
  3974. {{ JSON.parse(w.score).wScore }}分
  3975. </div>
  3976. <div
  3977. class="answerScore"
  3978. @click.stop="openScore(w)"
  3979. v-else-if="courseDetail.userid == userid"
  3980. :class="{
  3981. rightW:
  3982. w.userid == userid ||
  3983. tType == 1 ||
  3984. tType == 4 ||
  3985. w.ateacher == userid,
  3986. }"
  3987. >
  3988. 评分
  3989. </div>
  3990. <img
  3991. class="deleteImg"
  3992. src="../../assets/deleteworks.png"
  3993. v-if="w.userid == userid || tType == 1 || tType == 4"
  3994. @click.stop="deleteWorks(w.wid)"
  3995. alt
  3996. />
  3997. </div>
  3998. <div class="workImg" v-if="w.type == 12">
  3999. <img
  4000. style="cursor: pointer"
  4001. :src="word2"
  4002. @click="downloadFile(w.works)"
  4003. alt
  4004. />
  4005. <!-- @click="openVideo(w.works)" -->
  4006. <div
  4007. class="answerScore"
  4008. v-if="w.score"
  4009. @click.stop="openScore(w)"
  4010. :class="{
  4011. rightW:
  4012. w.userid == userid ||
  4013. tType == 1 ||
  4014. tType == 4 ||
  4015. w.ateacher == userid,
  4016. }"
  4017. >
  4018. {{ JSON.parse(w.score).wScore }}分
  4019. </div>
  4020. <div
  4021. class="answerScore"
  4022. @click.stop="openScore(w)"
  4023. v-else-if="courseDetail.userid == userid"
  4024. :class="{
  4025. rightW:
  4026. w.userid == userid ||
  4027. tType == 1 ||
  4028. tType == 4 ||
  4029. w.ateacher == userid,
  4030. }"
  4031. >
  4032. 评分
  4033. </div>
  4034. <img
  4035. class="deleteImg"
  4036. src="../../assets/deleteworks.png"
  4037. v-if="w.userid == userid || tType == 1 || tType == 4"
  4038. @click.stop="deleteWorks(w.wid)"
  4039. alt
  4040. />
  4041. </div>
  4042. <div class="comment" style="min-width: 200px">
  4043. <div class="worksName">
  4044. <div>{{ w.sName }}</div>
  4045. </div>
  4046. <div class="commentList">
  4047. <div class="commentList">
  4048. <div
  4049. class="commentImg"
  4050. @click="
  4051. isLikes(w.wid, userid, 1, null, w.isLikes)
  4052. "
  4053. >
  4054. <img
  4055. :src="w.isLikes == true ? likes : noLikes"
  4056. alt=""
  4057. />
  4058. </div>
  4059. <div>{{ w.likesCount }}</div>
  4060. </div>
  4061. <div class="commentList" style="margin-right: 15px">
  4062. <div
  4063. class="commentImg"
  4064. @click="commentOther(w, toolIndex, wIndex)"
  4065. >
  4066. <img
  4067. src="../../assets/icon/comment/comment.png"
  4068. alt=""
  4069. />
  4070. </div>
  4071. <div>{{ w.commentCount }}</div>
  4072. </div>
  4073. </div>
  4074. </div>
  4075. </div>
  4076. </div>
  4077. <div class="noWorksS">
  4078. <div
  4079. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4080. :key="sIndex"
  4081. class="noWorksName"
  4082. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4083. :class="{ isWork: s.type == '2' }"
  4084. >
  4085. {{ s.student }}
  4086. </div>
  4087. </div>
  4088. </div>
  4089. <div
  4090. v-if="
  4091. tType &&
  4092. ((tType == 2 && sIsOpen == true) ||
  4093. tType == 1 ||
  4094. tType == 4) &&
  4095. tool.tool.indexOf(32) != -1
  4096. "
  4097. class="worksBox"
  4098. >
  4099. <div
  4100. class="zuoyeYulan"
  4101. v-if="
  4102. worksStudent2.length &&
  4103. worksStudent2[toolIndex].length > 0
  4104. "
  4105. >
  4106. <div class="worksTop">
  4107. <div>作业预览</div>
  4108. <div
  4109. class="corOpen"
  4110. @click="contract(toolIndex)"
  4111. v-if="
  4112. worksStudent2[toolIndex].length > 6 &&
  4113. isCloseList[toolIndex].isClose == 0
  4114. "
  4115. >
  4116. 收缩
  4117. </div>
  4118. <div
  4119. class="corOpen"
  4120. @click="contract(toolIndex)"
  4121. v-if="isCloseList[toolIndex].isClose == 1"
  4122. >
  4123. 展开
  4124. </div>
  4125. </div>
  4126. </div>
  4127. <div
  4128. class="worksDetailBox"
  4129. v-if="
  4130. worksStudent2.length &&
  4131. worksStudent2[toolIndex].length > 0
  4132. "
  4133. >
  4134. <div
  4135. class="works"
  4136. style="
  4137. width: 200px;
  4138. height: 140px;
  4139. margin: 10px 10px 10px 0;
  4140. border-radius: 15px;
  4141. box-shadow: 0 0 6px 1px #dfdada;
  4142. "
  4143. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4144. ? worksStudent2[toolIndex]
  4145. : worksStudent2[toolIndex].slice(0, 6)"
  4146. :key="wIndex"
  4147. :class="w.type == 1 ? 'isTypeOne' : ''"
  4148. >
  4149. <div class="workImg">
  4150. <img :src="word2" @click="downloadFile(w.works)" alt />
  4151. <div
  4152. class="answerScore"
  4153. v-if="w.score"
  4154. @click.stop="openScore(w)"
  4155. :class="{
  4156. rightW:
  4157. w.userid == userid ||
  4158. tType == 1 ||
  4159. tType == 4 ||
  4160. w.ateacher == userid,
  4161. }"
  4162. >
  4163. {{ JSON.parse(w.score).wScore }}分
  4164. </div>
  4165. <div
  4166. class="answerScore"
  4167. @click.stop="openScore(w)"
  4168. v-else-if="courseDetail.userid == userid"
  4169. :class="{
  4170. rightW:
  4171. w.userid == userid ||
  4172. tType == 1 ||
  4173. tType == 4 ||
  4174. w.ateacher == userid,
  4175. }"
  4176. >
  4177. 评分
  4178. </div>
  4179. <img
  4180. class="deleteImg"
  4181. src="../../assets/deleteworks.png"
  4182. v-if="w.userid == userid || tType == 1 || tType == 4"
  4183. @click.stop="deleteWorks(w.wid)"
  4184. alt
  4185. />
  4186. </div>
  4187. <div class="comment" style="min-width: 200px">
  4188. <div class="worksName">
  4189. <div>{{ w.sName }}</div>
  4190. </div>
  4191. <div class="commentList">
  4192. <div class="commentList">
  4193. <div
  4194. class="commentImg"
  4195. @click="
  4196. isLikes(w.wid, userid, 1, null, w.isLikes)
  4197. "
  4198. >
  4199. <img
  4200. :src="w.isLikes == true ? likes : noLikes"
  4201. alt=""
  4202. />
  4203. </div>
  4204. <div>{{ w.likesCount }}</div>
  4205. </div>
  4206. <div class="commentList" style="margin-right: 15px">
  4207. <div
  4208. class="commentImg"
  4209. @click="commentOther(w, toolIndex, wIndex)"
  4210. >
  4211. <img
  4212. src="../../assets/icon/comment/comment.png"
  4213. alt=""
  4214. />
  4215. </div>
  4216. <div>{{ w.commentCount }}</div>
  4217. </div>
  4218. </div>
  4219. </div>
  4220. </div>
  4221. </div>
  4222. <div class="noWorksS">
  4223. <div
  4224. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4225. :key="sIndex"
  4226. class="noWorksName"
  4227. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4228. :class="{ isWork: s.type == '2' }"
  4229. >
  4230. {{ s.student }}
  4231. </div>
  4232. </div>
  4233. </div>
  4234. <div
  4235. v-if="
  4236. tType &&
  4237. ((tType == 2 && sIsOpen == true) ||
  4238. tType == 1 ||
  4239. tType == 4) &&
  4240. tool.tool.indexOf(57) != -1
  4241. "
  4242. class="worksBox"
  4243. >
  4244. <div
  4245. class="zuoyeYulan"
  4246. v-if="
  4247. worksStudent2.length &&
  4248. worksStudent2[toolIndex].length > 0
  4249. "
  4250. >
  4251. <div class="worksTop">
  4252. <div>作业预览</div>
  4253. <div
  4254. class="corOpen"
  4255. @click="contract(toolIndex)"
  4256. v-if="
  4257. worksStudent2[toolIndex].length > 6 &&
  4258. isCloseList[toolIndex].isClose == 0
  4259. "
  4260. >
  4261. 收缩
  4262. </div>
  4263. <div
  4264. class="corOpen"
  4265. @click="contract(toolIndex)"
  4266. v-if="isCloseList[toolIndex].isClose == 1"
  4267. >
  4268. 展开
  4269. </div>
  4270. </div>
  4271. </div>
  4272. <div
  4273. class="worksDetailBox"
  4274. v-if="
  4275. worksStudent2.length &&
  4276. worksStudent2[toolIndex].length > 0
  4277. "
  4278. >
  4279. <div
  4280. class="works"
  4281. style="
  4282. width: 200px;
  4283. height: 140px;
  4284. margin: 10px 10px 10px 0;
  4285. border-radius: 15px;
  4286. box-shadow: 0 0 6px 1px #dfdada;
  4287. "
  4288. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4289. ? worksStudent2[toolIndex]
  4290. : worksStudent2[toolIndex].slice(0, 6)"
  4291. :key="wIndex"
  4292. :class="w.type == 1 ? 'isTypeOne' : ''"
  4293. >
  4294. <div class="workImg">
  4295. <img
  4296. :src="word2"
  4297. @click="downloadFile(w.works)"
  4298. v-if="w.type == 12"
  4299. alt
  4300. />
  4301. <img
  4302. :src="word2"
  4303. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  4304. v-else-if="w.type == 15"
  4305. alt
  4306. />
  4307. <div
  4308. class="answerScore"
  4309. v-if="w.score"
  4310. @click.stop="openScore(w)"
  4311. :class="{
  4312. rightW:
  4313. w.userid == userid ||
  4314. tType == 1 ||
  4315. tType == 4 ||
  4316. w.ateacher == userid,
  4317. }"
  4318. >
  4319. {{ JSON.parse(w.score).wScore }}分
  4320. </div>
  4321. <div
  4322. class="answerScore"
  4323. @click.stop="openScore(w)"
  4324. v-else-if="courseDetail.userid == userid"
  4325. :class="{
  4326. rightW:
  4327. w.userid == userid ||
  4328. tType == 1 ||
  4329. tType == 4 ||
  4330. w.ateacher == userid,
  4331. }"
  4332. >
  4333. 评分
  4334. </div>
  4335. <img
  4336. class="deleteImg"
  4337. src="../../assets/deleteworks.png"
  4338. v-if="w.userid == userid || tType == 1 || tType == 4"
  4339. @click.stop="deleteWorks(w.wid)"
  4340. alt
  4341. />
  4342. </div>
  4343. <div class="comment" style="min-width: 200px">
  4344. <div class="worksName">
  4345. <div>{{ w.sName }}</div>
  4346. </div>
  4347. <div class="commentList">
  4348. <div class="commentList">
  4349. <div
  4350. class="commentImg"
  4351. @click="
  4352. isLikes(w.wid, userid, 1, null, w.isLikes)
  4353. "
  4354. >
  4355. <img
  4356. :src="w.isLikes == true ? likes : noLikes"
  4357. alt=""
  4358. />
  4359. </div>
  4360. <div>{{ w.likesCount }}</div>
  4361. </div>
  4362. <div class="commentList" style="margin-right: 15px">
  4363. <div
  4364. class="commentImg"
  4365. @click="commentOther(w, toolIndex, wIndex)"
  4366. >
  4367. <img
  4368. src="../../assets/icon/comment/comment.png"
  4369. alt=""
  4370. />
  4371. </div>
  4372. <div>{{ w.commentCount }}</div>
  4373. </div>
  4374. </div>
  4375. </div>
  4376. </div>
  4377. </div>
  4378. <div class="noWorksS">
  4379. <div
  4380. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4381. :key="sIndex"
  4382. class="noWorksName"
  4383. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4384. :class="{ isWork: s.type == '2' }"
  4385. >
  4386. {{ s.student }}
  4387. </div>
  4388. </div>
  4389. </div>
  4390. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4391. <div
  4392. class="zuoyeYulan"
  4393. v-if="
  4394. worksStudent2.length &&
  4395. worksStudent2[toolIndex].length > 0
  4396. "
  4397. >
  4398. <span>作业预览</span>
  4399. <div
  4400. class="corOpen"
  4401. @click="contract(toolIndex)"
  4402. v-if="
  4403. worksStudent2[toolIndex].length > 6 &&
  4404. isCloseList[toolIndex].isClose == 0
  4405. "
  4406. >
  4407. 收缩
  4408. </div>
  4409. <div
  4410. class="corOpen"
  4411. @click="contract(toolIndex)"
  4412. v-if="isCloseList[toolIndex].isClose == 1"
  4413. >
  4414. 展开
  4415. </div>
  4416. </div>
  4417. <div
  4418. class="worksDetailBox"
  4419. v-if="
  4420. worksStudent2.length &&
  4421. worksStudent2[toolIndex].length > 0
  4422. "
  4423. >
  4424. <div
  4425. class="works"
  4426. style="
  4427. width: 200px;
  4428. height: 140px;
  4429. margin: 10px 10px 10px 0;
  4430. border-radius: 15px;
  4431. box-shadow: 0 0 6px 1px #dfdada;
  4432. "
  4433. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4434. ? worksStudent2[toolIndex]
  4435. : worksStudent2[toolIndex].slice(0, 6)"
  4436. :key="wIndex"
  4437. :class="w.type == 1 ? 'isTypeOne' : ''"
  4438. >
  4439. <div class="workImg" v-if="w.type == 0">
  4440. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4441. <img :src="w.works" @click="previewImg(w.works)" alt />
  4442. <div
  4443. class="answerScore"
  4444. v-if="w.score"
  4445. @click.stop="openScore(w)"
  4446. :class="{
  4447. rightW:
  4448. w.userid == userid ||
  4449. tType == 1 ||
  4450. tType == 4 ||
  4451. w.ateacher == userid,
  4452. }"
  4453. >
  4454. {{ JSON.parse(w.score).wScore }}分
  4455. </div>
  4456. <div
  4457. class="answerScore"
  4458. @click.stop="openScore(w)"
  4459. v-else-if="courseDetail.userid == userid"
  4460. :class="{
  4461. rightW:
  4462. w.userid == userid ||
  4463. tType == 1 ||
  4464. tType == 4 ||
  4465. w.ateacher == userid,
  4466. }"
  4467. >
  4468. 评分
  4469. </div>
  4470. <img
  4471. class="deleteImg"
  4472. src="../../assets/deleteworks.png"
  4473. v-if="w.userid == userid || tType == 1 || tType == 4"
  4474. @click.stop="deleteWorks(w.wid)"
  4475. alt
  4476. />
  4477. </div>
  4478. <div
  4479. class="workImg"
  4480. style="cursor: pointer"
  4481. v-if="w.type == 1"
  4482. >
  4483. <img :src="word" @click="openFile(w.works)" alt />
  4484. <!-- @click="openFile(w.works)" -->
  4485. <div
  4486. class="answerScore"
  4487. v-if="w.score"
  4488. @click.stop="openScore(w)"
  4489. :class="{
  4490. rightW:
  4491. w.userid == userid ||
  4492. tType == 1 ||
  4493. tType == 4 ||
  4494. w.ateacher == userid,
  4495. }"
  4496. >
  4497. {{ JSON.parse(w.score).wScore }}分
  4498. </div>
  4499. <div
  4500. class="answerScore"
  4501. @click.stop="openScore(w)"
  4502. v-else-if="courseDetail.userid == userid"
  4503. :class="{
  4504. rightW:
  4505. w.userid == userid ||
  4506. tType == 1 ||
  4507. tType == 4 ||
  4508. w.ateacher == userid,
  4509. }"
  4510. >
  4511. 评分
  4512. </div>
  4513. <img
  4514. class="deleteImg"
  4515. src="../../assets/deleteworks.png"
  4516. v-if="w.userid == userid || tType == 1 || tType == 4"
  4517. @click.stop="deleteWorks(w.wid)"
  4518. alt
  4519. />
  4520. </div>
  4521. <div class="workImg" v-if="w.type == 3">
  4522. <img
  4523. style="cursor: pointer"
  4524. :src="video"
  4525. @click="openVideo(w)"
  4526. alt
  4527. />
  4528. <!-- @click="openVideo(w.works)" -->
  4529. <div
  4530. class="answerScore"
  4531. v-if="w.score"
  4532. @click.stop="openScore(w)"
  4533. :class="{
  4534. rightW:
  4535. w.userid == userid ||
  4536. tType == 1 ||
  4537. tType == 4 ||
  4538. w.ateacher == userid,
  4539. }"
  4540. >
  4541. {{ JSON.parse(w.score).wScore }}分
  4542. </div>
  4543. <div
  4544. class="answerScore"
  4545. @click.stop="openScore(w)"
  4546. v-else-if="courseDetail.userid == userid"
  4547. :class="{
  4548. rightW:
  4549. w.userid == userid ||
  4550. tType == 1 ||
  4551. tType == 4 ||
  4552. w.ateacher == userid,
  4553. }"
  4554. >
  4555. 评分
  4556. </div>
  4557. <img
  4558. class="deleteImg"
  4559. src="../../assets/deleteworks.png"
  4560. v-if="w.userid == userid || tType == 1 || tType == 4"
  4561. @click.stop="deleteWorks(w.wid)"
  4562. alt
  4563. />
  4564. </div>
  4565. <div class="comment" style="min-width: 200px">
  4566. <div class="worksName">
  4567. <div
  4568. style="cursor: pointer"
  4569. @click="
  4570. openSname(w.sName, w.wid, toolIndex, w.userid)
  4571. "
  4572. >
  4573. {{ w.sName }}
  4574. </div>
  4575. </div>
  4576. <div class="commentList">
  4577. <div class="commentList">
  4578. <div
  4579. class="commentImg"
  4580. @click="
  4581. isLikes(w.wid, userid, 1, null, w.isLikes)
  4582. "
  4583. >
  4584. <img
  4585. :src="w.isLikes == true ? likes : noLikes"
  4586. alt=""
  4587. />
  4588. </div>
  4589. <div>{{ w.likesCount }}</div>
  4590. </div>
  4591. <div class="commentList" style="margin-right: 15px">
  4592. <div
  4593. class="commentImg"
  4594. @click="commentOther(w, toolIndex, wIndex)"
  4595. >
  4596. <img
  4597. src="../../assets/icon/comment/comment.png"
  4598. alt=""
  4599. />
  4600. </div>
  4601. <div>{{ w.commentCount }}</div>
  4602. </div>
  4603. </div>
  4604. </div>
  4605. </div>
  4606. </div>
  4607. <div class="noWorksS">
  4608. <div
  4609. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4610. :key="sIndex"
  4611. class="noWorksName"
  4612. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4613. :class="{ isWork: s.type == '2' }"
  4614. >
  4615. {{ s.student }}
  4616. </div>
  4617. </div>
  4618. </div>
  4619. <div
  4620. v-if="
  4621. tType &&
  4622. ((tType == 2 && sIsOpen == true) ||
  4623. tType == 1 ||
  4624. tType == 4) &&
  4625. tool.tool.indexOf(4) != -1
  4626. "
  4627. class="worksBox"
  4628. >
  4629. <div
  4630. class="zuoyeYulan"
  4631. v-if="
  4632. worksStudent2.length &&
  4633. worksStudent2[toolIndex].length > 0
  4634. "
  4635. >
  4636. <div class="worksTop">
  4637. <div>作业预览</div>
  4638. <div
  4639. class="corOpen"
  4640. @click="contract(toolIndex)"
  4641. v-if="
  4642. worksStudent2[toolIndex].length > 6 &&
  4643. isCloseList[toolIndex].isClose == 0
  4644. "
  4645. >
  4646. 收缩
  4647. </div>
  4648. <div
  4649. class="corOpen"
  4650. @click="contract(toolIndex)"
  4651. v-if="isCloseList[toolIndex].isClose == 1"
  4652. >
  4653. 展开
  4654. </div>
  4655. </div>
  4656. </div>
  4657. <div>
  4658. <div
  4659. class="worksDetailBox"
  4660. v-if="
  4661. worksStudent2.length &&
  4662. worksStudent2[toolIndex].length > 0
  4663. "
  4664. >
  4665. <div
  4666. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4667. 0
  4668. ? worksStudent2[toolIndex]
  4669. : worksStudent2[toolIndex].slice(0, 6)"
  4670. :key="wIndex"
  4671. class="isWorksName"
  4672. @click="
  4673. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4674. "
  4675. >
  4676. {{ w.sName }}
  4677. <img
  4678. class="deleteImg deleteImg2"
  4679. src="../../assets/deleteworks.png"
  4680. v-if="w.userid == userid || tType == 1 || tType == 4"
  4681. @click.stop="deleteWorks(w.wid)"
  4682. alt
  4683. />
  4684. </div>
  4685. </div>
  4686. </div>
  4687. <div class="noWorksS">
  4688. <div
  4689. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4690. :key="sIndex"
  4691. class="noWorksName"
  4692. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4693. :class="{ isWork: s.type == '2' }"
  4694. >
  4695. {{ s.student }}
  4696. </div>
  4697. </div>
  4698. </div>
  4699. <div
  4700. v-if="
  4701. tType &&
  4702. ((tType == 2 && sIsOpen == true) ||
  4703. tType == 1 ||
  4704. tType == 4) &&
  4705. tool.tool.indexOf(45) != -1
  4706. "
  4707. class="worksBox"
  4708. >
  4709. <div
  4710. class="zuoyeYulan"
  4711. v-if="
  4712. worksStudent2.length &&
  4713. worksStudent2[toolIndex].length > 0
  4714. "
  4715. >
  4716. <div class="worksTop">
  4717. <div>作业预览</div>
  4718. <div
  4719. class="corOpen"
  4720. @click="contract(toolIndex)"
  4721. v-if="
  4722. worksStudent2[toolIndex].length > 6 &&
  4723. isCloseList[toolIndex].isClose == 0
  4724. "
  4725. >
  4726. 收缩
  4727. </div>
  4728. <div
  4729. class="corOpen"
  4730. @click="contract(toolIndex)"
  4731. v-if="isCloseList[toolIndex].isClose == 1"
  4732. >
  4733. 展开
  4734. </div>
  4735. </div>
  4736. </div>
  4737. <div>
  4738. <div
  4739. class="worksDetailBox"
  4740. v-if="
  4741. worksStudent2.length &&
  4742. worksStudent2[toolIndex].length > 0
  4743. "
  4744. >
  4745. <div
  4746. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4747. 0
  4748. ? worksStudent2[toolIndex]
  4749. : worksStudent2[toolIndex].slice(0, 6)"
  4750. :key="wIndex"
  4751. class="isWorksName"
  4752. @click="
  4753. openTools(45, toolIndex, taskCount, w.works, w.sName)
  4754. "
  4755. >
  4756. {{ w.sName }}
  4757. <img
  4758. class="deleteImg deleteImg2"
  4759. src="../../assets/deleteworks.png"
  4760. v-if="w.userid == userid || tType == 1 || tType == 4"
  4761. @click.stop="deleteWorks(w.wid)"
  4762. alt
  4763. />
  4764. </div>
  4765. </div>
  4766. </div>
  4767. <div class="noWorksS">
  4768. <div
  4769. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4770. :key="sIndex"
  4771. class="noWorksName"
  4772. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4773. :class="{ isWork: s.type == '2' }"
  4774. >
  4775. {{ s.student }}
  4776. </div>
  4777. </div>
  4778. </div>
  4779. <div
  4780. v-if="
  4781. tType &&
  4782. ((tType == 2 && sIsOpen == true) ||
  4783. tType == 1 ||
  4784. tType == 4) &&
  4785. tool.tool.indexOf(15) != -1
  4786. "
  4787. class="worksBox"
  4788. >
  4789. <div
  4790. class="zuoyeYulan"
  4791. v-if="
  4792. worksStudent2.length &&
  4793. worksStudent2[toolIndex].length > 0
  4794. "
  4795. >
  4796. <div class="worksTop">
  4797. <div>作业预览</div>
  4798. <div
  4799. class="corOpen"
  4800. @click="contract(toolIndex)"
  4801. v-if="
  4802. worksStudent2[toolIndex].length > 6 &&
  4803. isCloseList[toolIndex].isClose == 0
  4804. "
  4805. >
  4806. 收缩
  4807. </div>
  4808. <div
  4809. class="corOpen"
  4810. @click="contract(toolIndex)"
  4811. v-if="isCloseList[toolIndex].isClose == 1"
  4812. >
  4813. 展开
  4814. </div>
  4815. </div>
  4816. </div>
  4817. <div
  4818. class="worksDetailBox"
  4819. v-if="
  4820. worksStudent2.length &&
  4821. worksStudent2[toolIndex].length > 0
  4822. "
  4823. >
  4824. <div
  4825. class="works"
  4826. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4827. ? worksStudent2[toolIndex]
  4828. : worksStudent2[toolIndex].slice(0, 6)"
  4829. :key="wIndex"
  4830. >
  4831. <div
  4832. class="workImg"
  4833. style="
  4834. border-radius: 15px;
  4835. box-shadow: #eee 0px 0px 5px 5px;
  4836. "
  4837. >
  4838. <!-- <img
  4839. src="../../assets/icon/works/noImg.png"
  4840. @click="openTools(15, toolIndex, taskCount, w.works)"
  4841. alt=""
  4842. />-->
  4843. <div
  4844. class="answerBg"
  4845. style="border-radius: 15px 15px 0 0"
  4846. @click="commentOther(w, toolIndex, wIndex)"
  4847. >
  4848. <!-- <div>{{ w.sName }}</div> -->
  4849. <div class="answerContent">
  4850. {{ JSON.parse(w.works)[0].answer }}
  4851. </div>
  4852. <div
  4853. class="answerScore"
  4854. v-if="w.score"
  4855. @click.stop="openScore(w)"
  4856. :class="{
  4857. rightW:
  4858. w.userid == userid || tType == 1 || tType == 4,
  4859. }"
  4860. >
  4861. {{ JSON.parse(w.score).wScore }}分
  4862. </div>
  4863. <div
  4864. class="answerScore"
  4865. @click.stop="openScore(w)"
  4866. v-else-if="courseDetail.userid == userid"
  4867. :class="{
  4868. rightW:
  4869. w.userid == userid || tType == 1 || tType == 4,
  4870. }"
  4871. >
  4872. 评分
  4873. </div>
  4874. <img
  4875. class="deleteImg"
  4876. src="../../assets/deleteworks.png"
  4877. v-if="
  4878. w.userid == userid || tType == 1 || tType == 4
  4879. "
  4880. @click.stop="deleteWorks(w.wid)"
  4881. alt
  4882. />
  4883. </div>
  4884. <div class="comment">
  4885. <div class="worksName">
  4886. <div>{{ w.sName }}</div>
  4887. </div>
  4888. <div class="commentList">
  4889. <div
  4890. class="commentImg"
  4891. @click="
  4892. isLikes(w.wid, userid, 1, null, w.isLikes)
  4893. "
  4894. >
  4895. <img
  4896. :src="w.isLikes == true ? likes : noLikes"
  4897. alt=""
  4898. />
  4899. </div>
  4900. <div>{{ w.likesCount }}</div>
  4901. </div>
  4902. <div class="commentList" style="margin-right: 15px">
  4903. <div
  4904. class="commentImg"
  4905. @click="commentOther(w, toolIndex, wIndex)"
  4906. >
  4907. <img
  4908. src="../../assets/icon/comment/comment.png"
  4909. alt=""
  4910. />
  4911. </div>
  4912. <div>{{ w.commentCount }}</div>
  4913. </div>
  4914. </div>
  4915. </div>
  4916. </div>
  4917. </div>
  4918. <div class="noWorksS">
  4919. <div
  4920. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4921. :key="sIndex"
  4922. class="noWorksName"
  4923. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4924. :class="{ isWork: s.type == '2' }"
  4925. >
  4926. {{ s.student }}
  4927. </div>
  4928. </div>
  4929. </div>
  4930. <div
  4931. v-if="
  4932. tType &&
  4933. ((tType == 2 && sIsOpen == true) ||
  4934. tType == 1 ||
  4935. tType == 4) &&
  4936. tool.tool.indexOf(1) != -1
  4937. "
  4938. class="worksBox"
  4939. >
  4940. <div
  4941. class="zuoyeYulan"
  4942. v-if="
  4943. worksStudent2.length &&
  4944. worksStudent2[toolIndex].length > 0
  4945. "
  4946. >
  4947. <div class="worksTop">
  4948. <div>作业预览</div>
  4949. <div
  4950. class="corOpen"
  4951. @click="contract(toolIndex)"
  4952. v-if="
  4953. worksStudent2[toolIndex].length > 6 &&
  4954. isCloseList[toolIndex].isClose == 0
  4955. "
  4956. >
  4957. 收缩
  4958. </div>
  4959. <div
  4960. class="corOpen"
  4961. @click="contract(toolIndex)"
  4962. v-if="isCloseList[toolIndex].isClose == 1"
  4963. >
  4964. 展开
  4965. </div>
  4966. </div>
  4967. </div>
  4968. <div
  4969. class="worksDetailBox"
  4970. v-if="
  4971. worksStudent2.length &&
  4972. worksStudent2[toolIndex].length > 0
  4973. "
  4974. >
  4975. <div
  4976. class="works"
  4977. style="
  4978. width: 200px;
  4979. height: 140px;
  4980. margin: 10px 10px 10px 0;
  4981. border-radius: 15px;
  4982. box-shadow: 0 0 6px 1px #dfdada;
  4983. "
  4984. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4985. ? worksStudent2[toolIndex]
  4986. : worksStudent2[toolIndex].slice(0, 6)"
  4987. :key="wIndex"
  4988. >
  4989. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4990. <div class="workImg">
  4991. <img :src="w.works" @click="previewImg(w.works)" alt />
  4992. <div
  4993. class="answerScore"
  4994. v-if="w.score"
  4995. @click.stop="openScore(w)"
  4996. :class="{
  4997. rightW:
  4998. w.userid == userid || tType == 1 || tType == 4,
  4999. }"
  5000. >
  5001. {{ JSON.parse(w.score).wScore }}分
  5002. </div>
  5003. <div
  5004. class="answerScore"
  5005. @click.stop="openScore(w)"
  5006. v-else-if="courseDetail.userid == userid"
  5007. :class="{
  5008. rightW:
  5009. w.userid == userid || tType == 1 || tType == 4,
  5010. }"
  5011. >
  5012. 评分
  5013. </div>
  5014. <img
  5015. class="deleteImg"
  5016. src="../../assets/deleteworks.png"
  5017. v-if="w.userid == userid || tType == 1 || tType == 4"
  5018. @click.stop="deleteWorks(w.wid)"
  5019. alt
  5020. />
  5021. </div>
  5022. <div class="comment" style="min-width: 200px">
  5023. <div class="worksName">
  5024. <div>{{ w.sName }}</div>
  5025. </div>
  5026. <div class="commentList">
  5027. <div class="commentList">
  5028. <div
  5029. class="commentImg"
  5030. @click="
  5031. isLikes(w.wid, userid, 1, null, w.isLikes)
  5032. "
  5033. >
  5034. <img
  5035. :src="w.isLikes == true ? likes : noLikes"
  5036. alt=""
  5037. />
  5038. </div>
  5039. <div>{{ w.likesCount }}</div>
  5040. </div>
  5041. <div class="commentList" style="margin-right: 15px">
  5042. <div
  5043. class="commentImg"
  5044. @click="commentOther(w, toolIndex, wIndex)"
  5045. >
  5046. <img
  5047. src="../../assets/icon/comment/comment.png"
  5048. alt=""
  5049. />
  5050. </div>
  5051. <div>{{ w.commentCount }}</div>
  5052. </div>
  5053. </div>
  5054. </div>
  5055. </div>
  5056. </div>
  5057. <div class="noWorksS">
  5058. <div
  5059. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5060. :key="sIndex"
  5061. class="noWorksName"
  5062. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5063. :class="{ isWork: s.type == '2' }"
  5064. >
  5065. {{ s.student }}
  5066. </div>
  5067. </div>
  5068. </div>
  5069. <div
  5070. v-if="
  5071. tType &&
  5072. ((tType == 2 && sIsOpen == true) ||
  5073. tType == 1 ||
  5074. tType == 4) &&
  5075. tool.tool.indexOf(3) != -1
  5076. "
  5077. class="worksBox"
  5078. >
  5079. <div
  5080. class="zuoyeYulan"
  5081. v-if="
  5082. worksStudent2.length &&
  5083. worksStudent2[toolIndex].length > 0
  5084. "
  5085. >
  5086. <div class="worksTop">
  5087. <div>作业预览</div>
  5088. <div
  5089. class="corOpen"
  5090. @click="contract(toolIndex)"
  5091. v-if="
  5092. worksStudent2[toolIndex].length > 6 &&
  5093. isCloseList[toolIndex].isClose == 0
  5094. "
  5095. >
  5096. 收缩
  5097. </div>
  5098. <div
  5099. class="corOpen"
  5100. @click="contract(toolIndex)"
  5101. v-if="isCloseList[toolIndex].isClose == 1"
  5102. >
  5103. 展开
  5104. </div>
  5105. </div>
  5106. </div>
  5107. <div
  5108. class="worksDetailBox"
  5109. v-if="
  5110. worksStudent2.length &&
  5111. worksStudent2[toolIndex].length > 0
  5112. "
  5113. >
  5114. <div
  5115. class="works"
  5116. style="
  5117. width: 200px;
  5118. height: 140px;
  5119. margin: 10px 10px 10px 0;
  5120. border-radius: 15px;
  5121. box-shadow: 0 0 6px 1px #dfdada;
  5122. "
  5123. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5124. ? worksStudent2[toolIndex]
  5125. : worksStudent2[toolIndex].slice(0, 6)"
  5126. :key="wIndex"
  5127. >
  5128. <!-- @click="previewImg(w.works)" -->
  5129. <div class="workImg">
  5130. <img :src="w.works" @click="previewImg(w.works)" alt />
  5131. <div
  5132. class="answerScore"
  5133. v-if="w.score"
  5134. @click.stop="openScore(w)"
  5135. :class="{
  5136. rightW:
  5137. w.userid == userid || tType == 1 || tType == 4,
  5138. }"
  5139. >
  5140. {{ JSON.parse(w.score).wScore }}分
  5141. </div>
  5142. <div
  5143. class="answerScore"
  5144. @click.stop="openScore(w)"
  5145. v-else-if="courseDetail.userid == userid"
  5146. :class="{
  5147. rightW:
  5148. w.userid == userid || tType == 1 || tType == 4,
  5149. }"
  5150. >
  5151. 评分
  5152. </div>
  5153. <img
  5154. class="deleteImg"
  5155. src="../../assets/deleteworks.png"
  5156. v-if="w.userid == userid || tType == 1 || tType == 4"
  5157. @click.stop="deleteWorks(w.wid)"
  5158. alt
  5159. />
  5160. </div>
  5161. <div class="comment" style="min-width: 200px">
  5162. <div class="worksName">
  5163. <div>{{ w.sName }}</div>
  5164. </div>
  5165. <div class="commentList">
  5166. <div class="commentList">
  5167. <div
  5168. class="commentImg"
  5169. @click="
  5170. isLikes(w.wid, userid, 1, null, w.isLikes)
  5171. "
  5172. >
  5173. <img
  5174. :src="w.isLikes == true ? likes : noLikes"
  5175. alt=""
  5176. />
  5177. </div>
  5178. <div>{{ w.likesCount }}</div>
  5179. </div>
  5180. <div class="commentList" style="margin-right: 15px">
  5181. <div
  5182. class="commentImg"
  5183. @click="commentOther(w, toolIndex, wIndex)"
  5184. >
  5185. <img
  5186. src="../../assets/icon/comment/comment.png"
  5187. alt=""
  5188. />
  5189. </div>
  5190. <div>{{ w.commentCount }}</div>
  5191. </div>
  5192. </div>
  5193. </div>
  5194. </div>
  5195. </div>
  5196. <div class="noWorksS">
  5197. <div
  5198. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5199. :key="sIndex"
  5200. class="noWorksName"
  5201. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5202. :class="{ isWork: s.type == '2' }"
  5203. >
  5204. {{ s.student }}
  5205. </div>
  5206. </div>
  5207. </div>
  5208. <div
  5209. v-if="
  5210. tType &&
  5211. ((tType == 2 && sIsOpen == true) ||
  5212. tType == 1 ||
  5213. tType == 4) &&
  5214. tool.tool.indexOf(6) != -1
  5215. "
  5216. class="worksBox"
  5217. >
  5218. <div
  5219. class="zuoyeYulan"
  5220. v-if="
  5221. worksStudent2.length &&
  5222. worksStudent2[toolIndex].length > 0
  5223. "
  5224. >
  5225. <div class="worksTop">
  5226. <div>作业预览</div>
  5227. <div
  5228. class="corOpen"
  5229. @click="contract(toolIndex)"
  5230. v-if="
  5231. worksStudent[toolIndex].length > 6 &&
  5232. isCloseList[toolIndex].isClose == 0
  5233. "
  5234. >
  5235. 收缩
  5236. </div>
  5237. <div
  5238. class="corOpen"
  5239. @click="contract(toolIndex)"
  5240. v-if="isCloseList[toolIndex].isClose == 1"
  5241. >
  5242. 展开
  5243. </div>
  5244. </div>
  5245. </div>
  5246. <div
  5247. class="worksDetailBox"
  5248. v-if="
  5249. worksStudent2.length &&
  5250. worksStudent2[toolIndex].length > 0
  5251. "
  5252. >
  5253. <div
  5254. class="works"
  5255. style="
  5256. width: 200px;
  5257. height: 140px;
  5258. margin: 10px 10px 10px 0;
  5259. border-radius: 15px;
  5260. box-shadow: 0 0 6px 1px #dfdada;
  5261. "
  5262. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5263. ? worksStudent2[toolIndex]
  5264. : worksStudent2[toolIndex].slice(0, 6)"
  5265. :key="wIndex"
  5266. >
  5267. <!-- @click="previewImg(w.works)" -->
  5268. <div class="workImg">
  5269. <img :src="w.works" @click="previewImg(w.works)" alt />
  5270. <div
  5271. class="answerScore"
  5272. v-if="w.score"
  5273. @click.stop="openScore(w)"
  5274. :class="{
  5275. rightW:
  5276. w.userid == userid || tType == 1 || tType == 4,
  5277. }"
  5278. >
  5279. {{ JSON.parse(w.score).wScore }}分
  5280. </div>
  5281. <div
  5282. class="answerScore"
  5283. @click.stop="openScore(w)"
  5284. v-else-if="courseDetail.userid == userid"
  5285. :class="{
  5286. rightW:
  5287. w.userid == userid || tType == 1 || tType == 4,
  5288. }"
  5289. >
  5290. 评分
  5291. </div>
  5292. <img
  5293. class="deleteImg"
  5294. src="../../assets/deleteworks.png"
  5295. v-if="w.userid == userid || tType == 1 || tType == 4"
  5296. @click.stop="deleteWorks(w.wid)"
  5297. alt
  5298. />
  5299. </div>
  5300. <div class="comment" style="min-width: 200px">
  5301. <div class="worksName">
  5302. <div>{{ w.sName }}</div>
  5303. </div>
  5304. <div class="commentList">
  5305. <div class="commentList">
  5306. <div
  5307. class="commentImg"
  5308. @click="
  5309. isLikes(w.wid, userid, 1, null, w.isLikes)
  5310. "
  5311. >
  5312. <img
  5313. :src="w.isLikes == true ? likes : noLikes"
  5314. alt=""
  5315. />
  5316. </div>
  5317. <div>{{ w.likesCount }}</div>
  5318. </div>
  5319. <div class="commentList" style="margin-right: 15px">
  5320. <div
  5321. class="commentImg"
  5322. @click="commentOther(w, toolIndex, wIndex)"
  5323. >
  5324. <img
  5325. src="../../assets/icon/comment/comment.png"
  5326. alt=""
  5327. />
  5328. </div>
  5329. <div>{{ w.commentCount }}</div>
  5330. </div>
  5331. </div>
  5332. </div>
  5333. </div>
  5334. </div>
  5335. <div class="noWorksS">
  5336. <div
  5337. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5338. :key="sIndex"
  5339. class="noWorksName"
  5340. :class="{ isWork: s.type == '2' }"
  5341. >
  5342. {{ s.student }}
  5343. </div>
  5344. </div>
  5345. </div>
  5346. <div
  5347. v-if="
  5348. tType &&
  5349. ((tType == 2 && sIsOpen == true) ||
  5350. tType == 1 ||
  5351. tType == 4) &&
  5352. tool.tool.indexOf(7) != -1
  5353. "
  5354. class="worksBox"
  5355. >
  5356. <div
  5357. class="zuoyeYulan"
  5358. v-if="
  5359. worksStudent2.length &&
  5360. worksStudent2[toolIndex].length > 0
  5361. "
  5362. >
  5363. <div class="worksTop">
  5364. <div>作业预览</div>
  5365. <div
  5366. class="corOpen"
  5367. @click="contract(toolIndex)"
  5368. v-if="
  5369. worksStudent2[toolIndex].length > 6 &&
  5370. isCloseList[toolIndex].isClose == 0
  5371. "
  5372. >
  5373. 收缩
  5374. </div>
  5375. <div
  5376. class="corOpen"
  5377. @click="contract(toolIndex)"
  5378. v-if="isCloseList[toolIndex].isClose == 1"
  5379. >
  5380. 展开
  5381. </div>
  5382. </div>
  5383. </div>
  5384. <div
  5385. class="worksDetailBox"
  5386. v-if="
  5387. worksStudent2.length &&
  5388. worksStudent2[toolIndex].length > 0
  5389. "
  5390. >
  5391. <div
  5392. class="works"
  5393. style="
  5394. width: 200px;
  5395. height: 140px;
  5396. margin: 10px 10px 10px 0;
  5397. border-radius: 15px;
  5398. box-shadow: 0 0 6px 1px #dfdada;
  5399. "
  5400. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5401. ? worksStudent2[toolIndex]
  5402. : worksStudent2[toolIndex].slice(0, 6)"
  5403. :key="wIndex"
  5404. >
  5405. <!-- @click="previewImg(w.works)" -->
  5406. <div class="workImg">
  5407. <img :src="w.works" @click="previewImg(w.works)" alt />
  5408. <div
  5409. class="answerScore"
  5410. v-if="w.score"
  5411. @click.stop="openScore(w)"
  5412. :class="{
  5413. rightW:
  5414. w.userid == userid || tType == 1 || tType == 4,
  5415. }"
  5416. >
  5417. {{ JSON.parse(w.score).wScore }}分
  5418. </div>
  5419. <div
  5420. class="answerScore"
  5421. @click.stop="openScore(w)"
  5422. v-else-if="courseDetail.userid == userid"
  5423. :class="{
  5424. rightW:
  5425. w.userid == userid || tType == 1 || tType == 4,
  5426. }"
  5427. >
  5428. 评分
  5429. </div>
  5430. <img
  5431. class="deleteImg"
  5432. src="../../assets/deleteworks.png"
  5433. v-if="w.userid == userid || tType == 1 || tType == 4"
  5434. @click.stop="deleteWorks(w.wid)"
  5435. alt
  5436. />
  5437. </div>
  5438. <div class="comment" style="min-width: 200px">
  5439. <div class="worksName">
  5440. <div>{{ w.sName }}</div>
  5441. </div>
  5442. <div class="commentList">
  5443. <div class="commentList">
  5444. <div
  5445. class="commentImg"
  5446. @click="
  5447. isLikes(w.wid, userid, 1, null, w.isLikes)
  5448. "
  5449. >
  5450. <img
  5451. :src="w.isLikes == true ? likes : noLikes"
  5452. alt=""
  5453. />
  5454. </div>
  5455. <div>{{ w.likesCount }}</div>
  5456. </div>
  5457. <div class="commentList" style="margin-right: 15px">
  5458. <div
  5459. class="commentImg"
  5460. @click="commentOther(w, toolIndex, wIndex)"
  5461. >
  5462. <img
  5463. src="../../assets/icon/comment/comment.png"
  5464. alt=""
  5465. />
  5466. </div>
  5467. <div>{{ w.commentCount }}</div>
  5468. </div>
  5469. </div>
  5470. </div>
  5471. </div>
  5472. </div>
  5473. <div class="noWorksS">
  5474. <div
  5475. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5476. :key="sIndex"
  5477. class="noWorksName"
  5478. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5479. :class="{ isWork: s.type == '2' }"
  5480. >
  5481. {{ s.student }}
  5482. </div>
  5483. </div>
  5484. </div>
  5485. <div
  5486. v-if="
  5487. tType &&
  5488. ((tType == 2 && sIsOpen == true) ||
  5489. tType == 1 ||
  5490. tType == 4) &&
  5491. tool.tool.indexOf(26) != -1
  5492. "
  5493. class="worksBox"
  5494. >
  5495. <div
  5496. class="zuoyeYulan"
  5497. v-if="
  5498. worksStudent2.length &&
  5499. worksStudent2[toolIndex].length > 0
  5500. "
  5501. >
  5502. <div class="worksTop">
  5503. <div>作业预览</div>
  5504. <div
  5505. class="corOpen"
  5506. @click="contract(toolIndex)"
  5507. v-if="
  5508. worksStudent2[toolIndex].length > 6 &&
  5509. isCloseList[toolIndex].isClose == 0
  5510. "
  5511. >
  5512. 收缩
  5513. </div>
  5514. <div
  5515. class="corOpen"
  5516. @click="contract(toolIndex)"
  5517. v-if="isCloseList[toolIndex].isClose == 1"
  5518. >
  5519. 展开
  5520. </div>
  5521. </div>
  5522. </div>
  5523. <div
  5524. class="worksDetailBox"
  5525. v-if="
  5526. worksStudent2.length &&
  5527. worksStudent2[toolIndex].length > 0
  5528. "
  5529. >
  5530. <div
  5531. class="works"
  5532. style="width: 240px; height: 140px; overflow: hidden"
  5533. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5534. ? worksStudent2[toolIndex]
  5535. : worksStudent2[toolIndex].slice(0, 6)"
  5536. :key="wIndex"
  5537. :class="w.type == 1 ? 'isTypeOne' : ''"
  5538. >
  5539. <div class="workImg" v-if="w.type == 0">
  5540. <img :src="w.works" @click="previewImg(w.works)" alt />
  5541. <img
  5542. class="deleteImg"
  5543. src="../../assets/deleteworks.png"
  5544. v-if="w.userid == userid || tType == 1 || tType == 4"
  5545. @click.stop="deleteWorks(w.wid)"
  5546. alt
  5547. />
  5548. </div>
  5549. <div class="workImg" v-if="w.type == 1">
  5550. <img :src="word" @click="openFile(w.works)" alt />
  5551. <img
  5552. class="deleteImg"
  5553. src="../../assets/deleteworks.png"
  5554. v-if="w.userid == userid || tType == 1 || tType == 4"
  5555. @click.stop="deleteWorks(w.wid)"
  5556. alt
  5557. />
  5558. </div>
  5559. <div class="worksName">
  5560. <div>{{ w.sName }}</div>
  5561. </div>
  5562. </div>
  5563. </div>
  5564. <div class="noWorksS">
  5565. <div
  5566. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5567. :key="sIndex"
  5568. class="noWorksName"
  5569. :class="{ isWork: s.type == '2' }"
  5570. >
  5571. {{ s.student }}
  5572. </div>
  5573. </div>
  5574. </div>
  5575. <div
  5576. v-if="
  5577. tType &&
  5578. ((tType == 2 && sIsOpen == true) ||
  5579. tType == 1 ||
  5580. tType == 4) &&
  5581. tool.tool.indexOf(40) != -1
  5582. "
  5583. class="worksBox"
  5584. >
  5585. <div
  5586. class="zuoyeYulan"
  5587. v-if="
  5588. worksStudent2.length &&
  5589. worksStudent2[toolIndex].length > 0
  5590. "
  5591. >
  5592. <div class="worksTop">
  5593. <div>作业预览</div>
  5594. <div
  5595. class="corOpen"
  5596. @click="contract(toolIndex)"
  5597. v-if="
  5598. worksStudent2[toolIndex].length > 6 &&
  5599. isCloseList[toolIndex].isClose == 0
  5600. "
  5601. >
  5602. 收缩
  5603. </div>
  5604. <div
  5605. class="corOpen"
  5606. @click="contract(toolIndex)"
  5607. v-if="isCloseList[toolIndex].isClose == 1"
  5608. >
  5609. 展开
  5610. </div>
  5611. </div>
  5612. </div>
  5613. <div
  5614. class="worksDetailBox"
  5615. v-if="
  5616. worksStudent2.length &&
  5617. worksStudent2[toolIndex].length > 0
  5618. "
  5619. >
  5620. <div
  5621. class="works"
  5622. style="
  5623. width: 200px;
  5624. height: 140px;
  5625. margin: 10px 10px 10px 0;
  5626. border-radius: 15px;
  5627. box-shadow: 0 0 6px 1px #dfdada;
  5628. "
  5629. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5630. ? worksStudent2[toolIndex]
  5631. : worksStudent2[toolIndex].slice(0, 6)"
  5632. :key="wIndex"
  5633. :class="w.type == 1 ? 'isTypeOne' : ''"
  5634. >
  5635. <div class="workImg">
  5636. <img
  5637. src="../../assets/icon/works/noImg.png"
  5638. @click="openPj(w.works, toolIndex)"
  5639. alt
  5640. />
  5641. <img
  5642. class="deleteImg"
  5643. src="../../assets/deleteworks.png"
  5644. v-if="w.userid == userid || tType == 1 || tType == 4"
  5645. @click.stop="deleteWorks(w.wid)"
  5646. alt
  5647. />
  5648. </div>
  5649. <div class="comment" style="min-width: 200px">
  5650. <div class="worksName">
  5651. <div>{{ w.sName }}</div>
  5652. </div>
  5653. <div class="commentList">
  5654. <div class="commentList">
  5655. <div
  5656. class="commentImg"
  5657. @click="
  5658. isLikes(w.wid, userid, 1, null, w.isLikes)
  5659. "
  5660. >
  5661. <img
  5662. :src="w.isLikes == true ? likes : noLikes"
  5663. alt=""
  5664. />
  5665. </div>
  5666. <div>{{ w.likesCount }}</div>
  5667. </div>
  5668. <div class="commentList" style="margin-right: 15px">
  5669. <div
  5670. class="commentImg"
  5671. @click="commentOther(w, toolIndex, wIndex)"
  5672. >
  5673. <img
  5674. src="../../assets/icon/comment/comment.png"
  5675. alt=""
  5676. />
  5677. </div>
  5678. <div>{{ w.commentCount }}</div>
  5679. </div>
  5680. </div>
  5681. </div>
  5682. </div>
  5683. </div>
  5684. <div class="noWorksS">
  5685. <div
  5686. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5687. :key="sIndex"
  5688. class="noWorksName"
  5689. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5690. :class="{ isWork: s.type == '2' }"
  5691. >
  5692. {{ s.student }}
  5693. </div>
  5694. </div>
  5695. </div>
  5696. <div
  5697. v-if="
  5698. tType &&
  5699. ((tType == 2 && sIsOpen == true) ||
  5700. tType == 1 ||
  5701. tType == 4) &&
  5702. tool.tool.indexOf(41) != -1
  5703. "
  5704. class="worksBox"
  5705. >
  5706. <div class="noWorksS">
  5707. <div
  5708. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5709. :key="sIndex"
  5710. class="noWorksName"
  5711. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5712. :class="{ isWork: s.type == '2' }"
  5713. >
  5714. {{ s.student }}
  5715. </div>
  5716. </div>
  5717. <div
  5718. class="zuoyeYulan"
  5719. v-if="
  5720. worksStudent2.length &&
  5721. worksStudent2[toolIndex].length > 0
  5722. "
  5723. >
  5724. <div class="worksTop">
  5725. <div>作业预览</div>
  5726. <div
  5727. class="corOpen"
  5728. @click="contract(toolIndex)"
  5729. v-if="
  5730. worksStudent2[toolIndex].length > 6 &&
  5731. isCloseList[toolIndex].isClose == 0
  5732. "
  5733. >
  5734. 收缩
  5735. </div>
  5736. <div
  5737. class="corOpen"
  5738. @click="contract(toolIndex)"
  5739. v-if="isCloseList[toolIndex].isClose == 1"
  5740. >
  5741. 展开
  5742. </div>
  5743. </div>
  5744. </div>
  5745. <div
  5746. class="worksDetailBox"
  5747. v-if="
  5748. worksStudent2.length &&
  5749. worksStudent2[toolIndex].length > 0
  5750. "
  5751. >
  5752. <div
  5753. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5754. ? worksStudent2[toolIndex]
  5755. : worksStudent2[toolIndex].slice(0, 6)"
  5756. :key="wIndex"
  5757. class="isWorksName"
  5758. @click="openXz(w, toolIndex)"
  5759. >
  5760. {{ w.sName }}
  5761. <img
  5762. class="deleteImg deleteImg2"
  5763. src="../../assets/deleteworks.png"
  5764. v-if="w.userid == userid || tType == 1 || tType == 4"
  5765. @click.stop="deleteWorks(w.wid)"
  5766. alt
  5767. />
  5768. </div>
  5769. </div>
  5770. </div>
  5771. <div
  5772. v-if="
  5773. tType &&
  5774. ((tType == 2 && sIsOpen == true) ||
  5775. tType == 1 ||
  5776. tType == 4) &&
  5777. tool.tool.indexOf(47) != -1
  5778. "
  5779. class="worksBox"
  5780. >
  5781. <div class="noWorksS">
  5782. <div
  5783. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5784. :key="sIndex"
  5785. class="noWorksName"
  5786. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5787. :class="{ isWork: s.type == '2' }"
  5788. >
  5789. {{ s.student }}
  5790. </div>
  5791. </div>
  5792. <div
  5793. class="zuoyeYulan"
  5794. v-if="
  5795. worksStudent2.length &&
  5796. worksStudent2[toolIndex].length > 0
  5797. "
  5798. >
  5799. <div class="worksTop">
  5800. <div>作业预览</div>
  5801. <div
  5802. class="corOpen"
  5803. @click="contract(toolIndex)"
  5804. v-if="
  5805. worksStudent2[toolIndex].length > 6 &&
  5806. isCloseList[toolIndex].isClose == 0
  5807. "
  5808. >
  5809. 收缩
  5810. </div>
  5811. <div
  5812. class="corOpen"
  5813. @click="contract(toolIndex)"
  5814. v-if="isCloseList[toolIndex].isClose == 1"
  5815. >
  5816. 展开
  5817. </div>
  5818. </div>
  5819. </div>
  5820. <div
  5821. class="worksDetailBox"
  5822. v-if="
  5823. worksStudent2.length &&
  5824. worksStudent2[toolIndex].length > 0
  5825. "
  5826. >
  5827. <!-- @click="openXz(w, toolIndex)" -->
  5828. <div
  5829. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5830. ? worksStudent2[toolIndex]
  5831. : worksStudent2[toolIndex].slice(0, 6)"
  5832. :key="wIndex"
  5833. class="isWorksName"
  5834. @click="openSen(w, toolIndex)"
  5835. >
  5836. {{ w.sName }}
  5837. <img
  5838. class="deleteImg deleteImg2"
  5839. src="../../assets/deleteworks.png"
  5840. v-if="w.userid == userid || tType == 1 || tType == 4"
  5841. @click.stop="deleteWorks(w.wid)"
  5842. alt
  5843. />
  5844. </div>
  5845. </div>
  5846. </div>
  5847. <div
  5848. v-if="
  5849. tType &&
  5850. ((tType == 2 && sIsOpen == true) ||
  5851. tType == 1 ||
  5852. tType == 4) &&
  5853. tool.tool.indexOf(48) != -1
  5854. "
  5855. class="worksBox"
  5856. >
  5857. <div class="noWorksS">
  5858. <div
  5859. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5860. :key="sIndex"
  5861. class="noWorksName"
  5862. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5863. :class="{ isWork: s.type == '2' }"
  5864. >
  5865. {{ s.student }}
  5866. </div>
  5867. </div>
  5868. <div
  5869. class="zuoyeYulan"
  5870. v-if="
  5871. worksStudent2.length &&
  5872. worksStudent2[toolIndex].length > 0
  5873. "
  5874. >
  5875. <div class="worksTop">
  5876. <div>作业预览</div>
  5877. <div
  5878. class="corOpen"
  5879. @click="contract(toolIndex)"
  5880. v-if="
  5881. worksStudent2[toolIndex].length > 6 &&
  5882. isCloseList[toolIndex].isClose == 0
  5883. "
  5884. >
  5885. 收缩
  5886. </div>
  5887. <div
  5888. class="corOpen"
  5889. @click="contract(toolIndex)"
  5890. v-if="isCloseList[toolIndex].isClose == 1"
  5891. >
  5892. 展开
  5893. </div>
  5894. </div>
  5895. </div>
  5896. <div
  5897. class="worksDetailBox"
  5898. v-if="
  5899. worksStudent2.length &&
  5900. worksStudent2[toolIndex].length > 0
  5901. "
  5902. >
  5903. <div
  5904. class="works"
  5905. style="
  5906. width: 200px;
  5907. height: 140px;
  5908. margin: 10px 10px 10px 0;
  5909. border-radius: 15px;
  5910. box-shadow: 0 0 6px 1px #dfdada;
  5911. "
  5912. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5913. ? worksStudent2[toolIndex]
  5914. : worksStudent2[toolIndex].slice(0, 6)"
  5915. :key="wIndex"
  5916. :class="w.type == 1 ? 'isTypeOne' : ''"
  5917. >
  5918. <div class="workImg">
  5919. <img :src="word" @click="openTable(w)" alt />
  5920. <!-- @click="openFile(w.works)" -->
  5921. <div
  5922. class="answerScore"
  5923. v-if="w.score"
  5924. @click.stop="openScore(w)"
  5925. :class="{
  5926. rightW:
  5927. w.userid == userid ||
  5928. tType == 1 ||
  5929. tType == 4 ||
  5930. w.ateacher == userid,
  5931. }"
  5932. >
  5933. {{ JSON.parse(w.score).wScore }}分
  5934. </div>
  5935. <div
  5936. class="answerScore"
  5937. @click.stop="openScore(w)"
  5938. v-else-if="courseDetail.userid == userid"
  5939. :class="{
  5940. rightW:
  5941. w.userid == userid ||
  5942. tType == 1 ||
  5943. tType == 4 ||
  5944. w.ateacher == userid,
  5945. }"
  5946. >
  5947. 评分
  5948. </div>
  5949. <img
  5950. class="deleteImg"
  5951. src="../../assets/deleteworks.png"
  5952. v-if="w.userid == userid || tType == 1 || tType == 4"
  5953. @click.stop="deleteWorks(w.wid)"
  5954. alt
  5955. />
  5956. </div>
  5957. <div class="comment" style="min-width: 200px">
  5958. <div class="worksName">
  5959. <div>{{ w.sName }}</div>
  5960. </div>
  5961. <div class="commentList">
  5962. <div class="commentList">
  5963. <div
  5964. class="commentImg"
  5965. @click="
  5966. isLikes(w.wid, userid, 1, null, w.isLikes)
  5967. "
  5968. >
  5969. <img
  5970. :src="w.isLikes == true ? likes : noLikes"
  5971. alt=""
  5972. />
  5973. </div>
  5974. <div>{{ w.likesCount }}</div>
  5975. </div>
  5976. <div class="commentList" style="margin-right: 15px">
  5977. <div
  5978. class="commentImg"
  5979. @click="commentOther(w, toolIndex, wIndex)"
  5980. >
  5981. <img
  5982. src="../../assets/icon/comment/comment.png"
  5983. alt=""
  5984. />
  5985. </div>
  5986. <div>{{ w.commentCount }}</div>
  5987. </div>
  5988. </div>
  5989. </div>
  5990. </div>
  5991. </div>
  5992. </div>
  5993. <div
  5994. v-if="
  5995. tType &&
  5996. ((tType == 2 && sIsOpen == true) ||
  5997. tType == 1 ||
  5998. tType == 4) &&
  5999. tool.tool.indexOf(52) != -1
  6000. "
  6001. class="worksBox"
  6002. >
  6003. <div class="noWorksS">
  6004. <div
  6005. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6006. :key="sIndex"
  6007. class="noWorksName"
  6008. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6009. :class="{ isWork: s.type == '2' }"
  6010. >
  6011. {{ s.student }}
  6012. </div>
  6013. </div>
  6014. <div
  6015. class="zuoyeYulan"
  6016. v-if="
  6017. worksStudent2.length &&
  6018. worksStudent2[toolIndex].length > 0
  6019. "
  6020. >
  6021. <div class="worksTop">
  6022. <div>作业预览</div>
  6023. <div
  6024. class="corOpen"
  6025. @click="contract(toolIndex)"
  6026. v-if="
  6027. worksStudent2[toolIndex].length > 6 &&
  6028. isCloseList[toolIndex].isClose == 0
  6029. "
  6030. >
  6031. 收缩
  6032. </div>
  6033. <div
  6034. class="corOpen"
  6035. @click="contract(toolIndex)"
  6036. v-if="isCloseList[toolIndex].isClose == 1"
  6037. >
  6038. 展开
  6039. </div>
  6040. </div>
  6041. </div>
  6042. <div
  6043. class="worksDetailBox"
  6044. v-if="
  6045. worksStudent2.length &&
  6046. worksStudent2[toolIndex].length > 0
  6047. "
  6048. >
  6049. <div
  6050. class="works"
  6051. style="
  6052. width: 200px;
  6053. height: 140px;
  6054. margin: 10px 10px 10px 0;
  6055. border-radius: 15px;
  6056. box-shadow: 0 0 6px 1px #dfdada;
  6057. "
  6058. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6059. ? worksStudent2[toolIndex]
  6060. : worksStudent2[toolIndex].slice(0, 6)"
  6061. :key="wIndex"
  6062. :class="w.type == 1 ? 'isTypeOne' : ''"
  6063. >
  6064. <div class="workImg">
  6065. <img :src="word" @click="openWord(w)" alt />
  6066. <!-- @click="openFile(w.works)" -->
  6067. <div
  6068. class="answerScore"
  6069. v-if="w.score"
  6070. @click.stop="openScore(w)"
  6071. :class="{
  6072. rightW:
  6073. w.userid == userid ||
  6074. tType == 1 ||
  6075. tType == 4 ||
  6076. w.ateacher == userid,
  6077. }"
  6078. >
  6079. {{ JSON.parse(w.score).wScore }}分
  6080. </div>
  6081. <div
  6082. class="answerScore"
  6083. @click.stop="openScore(w)"
  6084. v-else-if="courseDetail.userid == userid"
  6085. :class="{
  6086. rightW:
  6087. w.userid == userid ||
  6088. tType == 1 ||
  6089. tType == 4 ||
  6090. w.ateacher == userid,
  6091. }"
  6092. >
  6093. 评分
  6094. </div>
  6095. <img
  6096. class="deleteImg"
  6097. src="../../assets/deleteworks.png"
  6098. v-if="w.userid == userid || tType == 1 || tType == 4"
  6099. @click.stop="deleteWorks(w.wid)"
  6100. alt
  6101. />
  6102. </div>
  6103. <div class="comment" style="min-width: 200px">
  6104. <div class="worksName">
  6105. <div>{{ w.sName }}</div>
  6106. </div>
  6107. <div class="commentList">
  6108. <div class="commentList">
  6109. <div
  6110. class="commentImg"
  6111. @click="
  6112. isLikes(w.wid, userid, 1, null, w.isLikes)
  6113. "
  6114. >
  6115. <img
  6116. :src="w.isLikes == true ? likes : noLikes"
  6117. alt=""
  6118. />
  6119. </div>
  6120. <div>{{ w.likesCount }}</div>
  6121. </div>
  6122. <div class="commentList" style="margin-right: 15px">
  6123. <div
  6124. class="commentImg"
  6125. @click="commentOther(w, toolIndex, wIndex)"
  6126. >
  6127. <img
  6128. src="../../assets/icon/comment/comment.png"
  6129. alt=""
  6130. />
  6131. </div>
  6132. <div>{{ w.commentCount }}</div>
  6133. </div>
  6134. </div>
  6135. </div>
  6136. </div>
  6137. </div>
  6138. </div>
  6139. </div>
  6140. </div>
  6141. <div
  6142. class="vedioBox"
  6143. v-if="
  6144. arrayToArray(tool.tool, isWorkTool).length &&
  6145. (noWorksS[toolIndex].length || worksStudent[toolIndex].length)
  6146. "
  6147. >
  6148. <div
  6149. class="queTop"
  6150. style="
  6151. font-size: 20px;
  6152. padding: 15px 0 15px 30px;
  6153. font-weight: bold;
  6154. "
  6155. >
  6156. 工作区
  6157. </div>
  6158. <div class="tool_work_box">
  6159. <div
  6160. v-if="
  6161. tType &&
  6162. ((tType == 2 && sIsOpen == true) ||
  6163. tType == 1 ||
  6164. tType == 4) &&
  6165. tool.tool.indexOf(16) != -1
  6166. "
  6167. class="worksBox"
  6168. >
  6169. <div
  6170. class="zuoyeYulan"
  6171. v-if="
  6172. worksStudent.length && worksStudent[toolIndex].length > 0
  6173. "
  6174. >
  6175. <div class="worksTop">
  6176. <div>作业预览</div>
  6177. <div
  6178. class="corOpen"
  6179. @click="contract(toolIndex)"
  6180. v-if="
  6181. worksStudent[toolIndex].length > 6 &&
  6182. isCloseList[toolIndex].isClose == 0
  6183. "
  6184. >
  6185. 收缩
  6186. </div>
  6187. <div
  6188. class="corOpen"
  6189. @click="contract(toolIndex)"
  6190. v-if="isCloseList[toolIndex].isClose == 1"
  6191. >
  6192. 展开
  6193. </div>
  6194. </div>
  6195. </div>
  6196. <div
  6197. class="worksDetailBox"
  6198. v-if="
  6199. worksStudent.length && worksStudent[toolIndex].length > 0
  6200. "
  6201. >
  6202. <div
  6203. class="works"
  6204. style="
  6205. width: 200px;
  6206. height: 140px;
  6207. margin: 10px 10px 10px 0;
  6208. border-radius: 15px;
  6209. box-shadow: 0 0 6px 1px #dfdada;
  6210. "
  6211. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6212. ? worksStudent[toolIndex]
  6213. : worksStudent[toolIndex].slice(0, 6)"
  6214. :key="wIndex"
  6215. :class="w.type == 1 ? 'isTypeOne' : ''"
  6216. >
  6217. <div class="workImg" v-if="w.type == 0">
  6218. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6219. <img :src="w.works" @click="previewImg(w.works)" alt />
  6220. <div
  6221. class="answerScore"
  6222. v-if="w.score"
  6223. @click.stop="openScore(w)"
  6224. :class="{
  6225. rightW:
  6226. w.userid == userid ||
  6227. tType == 1 ||
  6228. tType == 4 ||
  6229. w.ateacher == userid,
  6230. }"
  6231. >
  6232. {{ JSON.parse(w.score).wScore }}分
  6233. </div>
  6234. <div
  6235. class="answerScore"
  6236. @click.stop="openScore(w)"
  6237. v-else-if="courseDetail.userid == userid"
  6238. :class="{
  6239. rightW:
  6240. w.userid == userid ||
  6241. tType == 1 ||
  6242. tType == 4 ||
  6243. w.ateacher == userid,
  6244. }"
  6245. >
  6246. 评分
  6247. </div>
  6248. <img
  6249. class="deleteImg"
  6250. src="../../assets/deleteworks.png"
  6251. v-if="w.userid == userid || tType == 1 || tType == 4"
  6252. @click.stop="deleteWorks(w.wid)"
  6253. alt
  6254. />
  6255. </div>
  6256. <div class="workImg" v-if="w.type == 1">
  6257. <img :src="word" @click="openFile(w.works)" alt />
  6258. <!-- @click="openFile(w.works)" -->
  6259. <div
  6260. class="answerScore"
  6261. v-if="w.score"
  6262. @click.stop="openScore(w)"
  6263. :class="{
  6264. rightW:
  6265. w.userid == userid ||
  6266. tType == 1 ||
  6267. tType == 4 ||
  6268. w.ateacher == userid,
  6269. }"
  6270. >
  6271. {{ JSON.parse(w.score).wScore }}分
  6272. </div>
  6273. <div
  6274. class="answerScore"
  6275. @click.stop="openScore(w)"
  6276. v-else-if="courseDetail.userid == userid"
  6277. :class="{
  6278. rightW:
  6279. w.userid == userid ||
  6280. tType == 1 ||
  6281. tType == 4 ||
  6282. w.ateacher == userid,
  6283. }"
  6284. >
  6285. 评分
  6286. </div>
  6287. <img
  6288. class="deleteImg"
  6289. src="../../assets/deleteworks.png"
  6290. v-if="w.userid == userid || tType == 1 || tType == 4"
  6291. @click.stop="deleteWorks(w.wid)"
  6292. alt
  6293. />
  6294. </div>
  6295. <div class="workImg" v-if="w.type == 3">
  6296. <img
  6297. style="cursor: pointer"
  6298. :src="video"
  6299. @click="openVideo(w)"
  6300. alt
  6301. />
  6302. <!-- @click="openVideo(w.works)" -->
  6303. <div
  6304. class="answerScore"
  6305. v-if="w.score"
  6306. @click.stop="openScore(w)"
  6307. :class="{
  6308. rightW:
  6309. w.userid == userid ||
  6310. tType == 1 ||
  6311. tType == 4 ||
  6312. w.ateacher == userid,
  6313. }"
  6314. >
  6315. {{ JSON.parse(w.score).wScore }}分
  6316. </div>
  6317. <div
  6318. class="answerScore"
  6319. @click.stop="openScore(w)"
  6320. v-else-if="courseDetail.userid == userid"
  6321. :class="{
  6322. rightW:
  6323. w.userid == userid ||
  6324. tType == 1 ||
  6325. tType == 4 ||
  6326. w.ateacher == userid,
  6327. }"
  6328. >
  6329. 评分
  6330. </div>
  6331. <img
  6332. class="deleteImg"
  6333. src="../../assets/deleteworks.png"
  6334. v-if="w.userid == userid || tType == 1 || tType == 4"
  6335. @click.stop="deleteWorks(w.wid)"
  6336. alt
  6337. />
  6338. </div>
  6339. <div class="workImg" v-if="w.type == 12">
  6340. <img
  6341. style="cursor: pointer"
  6342. :src="word2"
  6343. @click="downloadFile(w.works)"
  6344. alt
  6345. />
  6346. <!-- @click="openVideo(w.works)" -->
  6347. <div
  6348. class="answerScore"
  6349. v-if="w.score"
  6350. @click.stop="openScore(w)"
  6351. :class="{
  6352. rightW:
  6353. w.userid == userid ||
  6354. tType == 1 ||
  6355. tType == 4 ||
  6356. w.ateacher == userid,
  6357. }"
  6358. >
  6359. {{ JSON.parse(w.score).wScore }}分
  6360. </div>
  6361. <div
  6362. class="answerScore"
  6363. @click.stop="openScore(w)"
  6364. v-else-if="courseDetail.userid == userid"
  6365. :class="{
  6366. rightW:
  6367. w.userid == userid ||
  6368. tType == 1 ||
  6369. tType == 4 ||
  6370. w.ateacher == userid,
  6371. }"
  6372. >
  6373. 评分
  6374. </div>
  6375. <img
  6376. class="deleteImg"
  6377. src="../../assets/deleteworks.png"
  6378. v-if="w.userid == userid || tType == 1 || tType == 4"
  6379. @click.stop="deleteWorks(w.wid)"
  6380. alt
  6381. />
  6382. </div>
  6383. <div class="comment" style="min-width: 200px">
  6384. <div class="worksName">
  6385. <div>{{ w.sName }}</div>
  6386. </div>
  6387. <div class="commentList">
  6388. <div class="commentList">
  6389. <div
  6390. class="commentImg"
  6391. @click="
  6392. isLikes(w.wid, userid, 1, null, w.isLikes)
  6393. "
  6394. >
  6395. <img
  6396. :src="w.isLikes == true ? likes : noLikes"
  6397. alt=""
  6398. />
  6399. </div>
  6400. <div>{{ w.likesCount }}</div>
  6401. </div>
  6402. <div class="commentList" style="margin-right: 15px">
  6403. <div
  6404. class="commentImg"
  6405. @click="commentOther(w, toolIndex, wIndex)"
  6406. >
  6407. <img
  6408. src="../../assets/icon/comment/comment.png"
  6409. alt=""
  6410. />
  6411. </div>
  6412. <div>{{ w.commentCount }}</div>
  6413. </div>
  6414. </div>
  6415. </div>
  6416. </div>
  6417. </div>
  6418. <div class="noWorksS">
  6419. <div
  6420. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6421. :key="sIndex"
  6422. class="noWorksName"
  6423. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  6424. :class="{ isWork: s.type == '2' }"
  6425. >
  6426. {{ s.student }}
  6427. </div>
  6428. </div>
  6429. </div>
  6430. <div
  6431. v-if="
  6432. tType &&
  6433. ((tType == 2 && sIsOpen == true) ||
  6434. tType == 1 ||
  6435. tType == 4) &&
  6436. tool.tool.indexOf(32) != -1
  6437. "
  6438. class="worksBox"
  6439. >
  6440. <div
  6441. class="zuoyeYulan"
  6442. v-if="
  6443. worksStudent.length && worksStudent[toolIndex].length > 0
  6444. "
  6445. >
  6446. <div class="worksTop">
  6447. <div>作业预览</div>
  6448. <div
  6449. class="corOpen"
  6450. @click="contract(toolIndex)"
  6451. v-if="
  6452. worksStudent[toolIndex].length > 6 &&
  6453. isCloseList[toolIndex].isClose == 0
  6454. "
  6455. >
  6456. 收缩
  6457. </div>
  6458. <div
  6459. class="corOpen"
  6460. @click="contract(toolIndex)"
  6461. v-if="isCloseList[toolIndex].isClose == 1"
  6462. >
  6463. 展开
  6464. </div>
  6465. </div>
  6466. </div>
  6467. <div
  6468. class="worksDetailBox"
  6469. v-if="
  6470. worksStudent.length && worksStudent[toolIndex].length > 0
  6471. "
  6472. >
  6473. <div
  6474. class="works"
  6475. style="
  6476. width: 200px;
  6477. height: 140px;
  6478. margin: 10px 10px 10px 0;
  6479. border-radius: 15px;
  6480. box-shadow: 0 0 6px 1px #dfdada;
  6481. "
  6482. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6483. ? worksStudent[toolIndex]
  6484. : worksStudent[toolIndex].slice(0, 6)"
  6485. :key="wIndex"
  6486. :class="w.type == 1 ? 'isTypeOne' : ''"
  6487. >
  6488. <div class="workImg">
  6489. <img :src="word2" @click="downloadFile(w.works)" alt />
  6490. <div
  6491. class="answerScore"
  6492. v-if="w.score"
  6493. @click.stop="openScore(w)"
  6494. :class="{
  6495. rightW:
  6496. w.userid == userid ||
  6497. tType == 1 ||
  6498. tType == 4 ||
  6499. w.ateacher == userid,
  6500. }"
  6501. >
  6502. {{ JSON.parse(w.score).wScore }}分
  6503. </div>
  6504. <div
  6505. class="answerScore"
  6506. @click.stop="openScore(w)"
  6507. v-else-if="courseDetail.userid == userid"
  6508. :class="{
  6509. rightW:
  6510. w.userid == userid ||
  6511. tType == 1 ||
  6512. tType == 4 ||
  6513. w.ateacher == userid,
  6514. }"
  6515. >
  6516. 评分
  6517. </div>
  6518. <img
  6519. class="deleteImg"
  6520. src="../../assets/deleteworks.png"
  6521. v-if="w.userid == userid || tType == 1 || tType == 4"
  6522. @click.stop="deleteWorks(w.wid)"
  6523. alt
  6524. />
  6525. </div>
  6526. <div class="comment" style="min-width: 200px">
  6527. <div class="worksName">
  6528. <div>{{ w.sName }}</div>
  6529. </div>
  6530. <div class="commentList">
  6531. <div class="commentList">
  6532. <div
  6533. class="commentImg"
  6534. @click="
  6535. isLikes(w.wid, userid, 1, null, w.isLikes)
  6536. "
  6537. >
  6538. <img
  6539. :src="w.isLikes == true ? likes : noLikes"
  6540. alt=""
  6541. />
  6542. </div>
  6543. <div>{{ w.likesCount }}</div>
  6544. </div>
  6545. <div class="commentList" style="margin-right: 15px">
  6546. <div
  6547. class="commentImg"
  6548. @click="commentOther(w, toolIndex, wIndex)"
  6549. >
  6550. <img
  6551. src="../../assets/icon/comment/comment.png"
  6552. alt=""
  6553. />
  6554. </div>
  6555. <div>{{ w.commentCount }}</div>
  6556. </div>
  6557. </div>
  6558. </div>
  6559. </div>
  6560. </div>
  6561. <div class="noWorksS">
  6562. <div
  6563. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6564. :key="sIndex"
  6565. class="noWorksName"
  6566. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  6567. :class="{ isWork: s.type == '2' }"
  6568. >
  6569. {{ s.student }}
  6570. </div>
  6571. </div>
  6572. </div>
  6573. <div
  6574. v-if="
  6575. tType &&
  6576. ((tType == 2 && sIsOpen == true) ||
  6577. tType == 1 ||
  6578. tType == 4) &&
  6579. tool.tool.indexOf(57) != -1
  6580. "
  6581. class="worksBox"
  6582. >
  6583. <div
  6584. class="zuoyeYulan"
  6585. v-if="
  6586. worksStudent.length && worksStudent[toolIndex].length > 0
  6587. "
  6588. >
  6589. <div class="worksTop">
  6590. <div>作业预览</div>
  6591. <div
  6592. class="corOpen"
  6593. @click="contract(toolIndex)"
  6594. v-if="
  6595. worksStudent[toolIndex].length > 6 &&
  6596. isCloseList[toolIndex].isClose == 0
  6597. "
  6598. >
  6599. 收缩
  6600. </div>
  6601. <div
  6602. class="corOpen"
  6603. @click="contract(toolIndex)"
  6604. v-if="isCloseList[toolIndex].isClose == 1"
  6605. >
  6606. 展开
  6607. </div>
  6608. </div>
  6609. </div>
  6610. <div
  6611. class="worksDetailBox"
  6612. v-if="
  6613. worksStudent.length && worksStudent[toolIndex].length > 0
  6614. "
  6615. >
  6616. <div
  6617. class="works"
  6618. style="
  6619. width: 200px;
  6620. height: 140px;
  6621. margin: 10px 10px 10px 0;
  6622. border-radius: 15px;
  6623. box-shadow: 0 0 6px 1px #dfdada;
  6624. "
  6625. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6626. ? worksStudent[toolIndex]
  6627. : worksStudent[toolIndex].slice(0, 6)"
  6628. :key="wIndex"
  6629. :class="w.type == 1 ? 'isTypeOne' : ''"
  6630. >
  6631. <div class="workImg">
  6632. <img
  6633. :src="word2"
  6634. @click="downloadFile(w.works)"
  6635. v-if="w.type == 12"
  6636. alt
  6637. />
  6638. <img
  6639. :src="word2"
  6640. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  6641. v-else-if="w.type == 15"
  6642. alt
  6643. />
  6644. <div
  6645. class="answerScore"
  6646. v-if="w.score"
  6647. @click.stop="openScore(w)"
  6648. :class="{
  6649. rightW:
  6650. w.userid == userid ||
  6651. tType == 1 ||
  6652. tType == 4 ||
  6653. w.ateacher == userid,
  6654. }"
  6655. >
  6656. {{ JSON.parse(w.score).wScore }}分
  6657. </div>
  6658. <div
  6659. class="answerScore"
  6660. @click.stop="openScore(w)"
  6661. v-else-if="courseDetail.userid == userid"
  6662. :class="{
  6663. rightW:
  6664. w.userid == userid ||
  6665. tType == 1 ||
  6666. tType == 4 ||
  6667. w.ateacher == userid,
  6668. }"
  6669. >
  6670. 评分
  6671. </div>
  6672. <img
  6673. class="deleteImg"
  6674. src="../../assets/deleteworks.png"
  6675. v-if="w.userid == userid || tType == 1 || tType == 4"
  6676. @click.stop="deleteWorks(w.wid)"
  6677. alt
  6678. />
  6679. </div>
  6680. <div class="comment" style="min-width: 200px">
  6681. <div class="worksName">
  6682. <div>{{ w.sName }}</div>
  6683. </div>
  6684. <div class="commentList">
  6685. <div class="commentList">
  6686. <div
  6687. class="commentImg"
  6688. @click="
  6689. isLikes(w.wid, userid, 1, null, w.isLikes)
  6690. "
  6691. >
  6692. <img
  6693. :src="w.isLikes == true ? likes : noLikes"
  6694. alt=""
  6695. />
  6696. </div>
  6697. <div>{{ w.likesCount }}</div>
  6698. </div>
  6699. <div class="commentList" style="margin-right: 15px">
  6700. <div
  6701. class="commentImg"
  6702. @click="commentOther(w, toolIndex, wIndex)"
  6703. >
  6704. <img
  6705. src="../../assets/icon/comment/comment.png"
  6706. alt=""
  6707. />
  6708. </div>
  6709. <div>{{ w.commentCount }}</div>
  6710. </div>
  6711. </div>
  6712. </div>
  6713. </div>
  6714. </div>
  6715. <div class="noWorksS">
  6716. <div
  6717. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6718. :key="sIndex"
  6719. class="noWorksName"
  6720. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  6721. :class="{ isWork: s.type == '2' }"
  6722. >
  6723. {{ s.student }}
  6724. </div>
  6725. </div>
  6726. </div>
  6727. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  6728. <div
  6729. class="zuoyeYulan"
  6730. v-if="
  6731. worksStudent.length && worksStudent[toolIndex].length > 0
  6732. "
  6733. >
  6734. <span>作业预览</span>
  6735. <div
  6736. class="corOpen"
  6737. @click="contract(toolIndex)"
  6738. v-if="
  6739. worksStudent[toolIndex].length > 6 &&
  6740. isCloseList[toolIndex].isClose == 0
  6741. "
  6742. >
  6743. 收缩
  6744. </div>
  6745. <div
  6746. class="corOpen"
  6747. @click="contract(toolIndex)"
  6748. v-if="isCloseList[toolIndex].isClose == 1"
  6749. >
  6750. 展开
  6751. </div>
  6752. </div>
  6753. <div
  6754. class="worksDetailBox"
  6755. v-if="
  6756. worksStudent.length && worksStudent[toolIndex].length > 0
  6757. "
  6758. >
  6759. <div
  6760. class="works"
  6761. style="
  6762. width: 200px;
  6763. height: 140px;
  6764. margin: 10px 10px 10px 0;
  6765. border-radius: 15px;
  6766. box-shadow: 0 0 6px 1px #dfdada;
  6767. "
  6768. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6769. ? worksStudent[toolIndex]
  6770. : worksStudent[toolIndex].slice(0, 6)"
  6771. :key="wIndex"
  6772. :class="w.type == 1 ? 'isTypeOne' : ''"
  6773. >
  6774. <div class="workImg" v-if="w.type == 0">
  6775. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6776. <img :src="w.works" @click="previewImg(w.works)" alt />
  6777. <div
  6778. class="answerScore"
  6779. v-if="w.score"
  6780. @click.stop="openScore(w)"
  6781. :class="{
  6782. rightW:
  6783. w.userid == userid ||
  6784. tType == 1 ||
  6785. tType == 4 ||
  6786. w.ateacher == userid,
  6787. }"
  6788. >
  6789. {{ JSON.parse(w.score).wScore }}分
  6790. </div>
  6791. <div
  6792. class="answerScore"
  6793. @click.stop="openScore(w)"
  6794. v-else-if="courseDetail.userid == userid"
  6795. :class="{
  6796. rightW:
  6797. w.userid == userid ||
  6798. tType == 1 ||
  6799. tType == 4 ||
  6800. w.ateacher == userid,
  6801. }"
  6802. >
  6803. 评分
  6804. </div>
  6805. <img
  6806. class="deleteImg"
  6807. src="../../assets/deleteworks.png"
  6808. v-if="w.userid == userid || tType == 1 || tType == 4"
  6809. @click.stop="deleteWorks(w.wid)"
  6810. alt
  6811. />
  6812. </div>
  6813. <div
  6814. class="workImg"
  6815. style="cursor: pointer"
  6816. v-if="w.type == 1"
  6817. >
  6818. <img :src="word" @click="openFile(w.works)" alt />
  6819. <!-- @click="openFile(w.works)" -->
  6820. <div
  6821. class="answerScore"
  6822. v-if="w.score"
  6823. @click.stop="openScore(w)"
  6824. :class="{
  6825. rightW:
  6826. w.userid == userid ||
  6827. tType == 1 ||
  6828. tType == 4 ||
  6829. w.ateacher == userid,
  6830. }"
  6831. >
  6832. {{ JSON.parse(w.score).wScore }}分
  6833. </div>
  6834. <div
  6835. class="answerScore"
  6836. @click.stop="openScore(w)"
  6837. v-else-if="courseDetail.userid == userid"
  6838. :class="{
  6839. rightW:
  6840. w.userid == userid ||
  6841. tType == 1 ||
  6842. tType == 4 ||
  6843. w.ateacher == userid,
  6844. }"
  6845. >
  6846. 评分
  6847. </div>
  6848. <img
  6849. class="deleteImg"
  6850. src="../../assets/deleteworks.png"
  6851. v-if="w.userid == userid || tType == 1 || tType == 4"
  6852. @click.stop="deleteWorks(w.wid)"
  6853. alt
  6854. />
  6855. </div>
  6856. <div class="workImg" v-if="w.type == 3">
  6857. <img
  6858. style="cursor: pointer"
  6859. :src="video"
  6860. @click="openVideo(w)"
  6861. alt
  6862. />
  6863. <!-- @click="openVideo(w.works)" -->
  6864. <div
  6865. class="answerScore"
  6866. v-if="w.score"
  6867. @click.stop="openScore(w)"
  6868. :class="{
  6869. rightW:
  6870. w.userid == userid ||
  6871. tType == 1 ||
  6872. tType == 4 ||
  6873. w.ateacher == userid,
  6874. }"
  6875. >
  6876. {{ JSON.parse(w.score).wScore }}分
  6877. </div>
  6878. <div
  6879. class="answerScore"
  6880. @click.stop="openScore(w)"
  6881. v-else-if="courseDetail.userid == userid"
  6882. :class="{
  6883. rightW:
  6884. w.userid == userid ||
  6885. tType == 1 ||
  6886. tType == 4 ||
  6887. w.ateacher == userid,
  6888. }"
  6889. >
  6890. 评分
  6891. </div>
  6892. <img
  6893. class="deleteImg"
  6894. src="../../assets/deleteworks.png"
  6895. v-if="w.userid == userid || tType == 1 || tType == 4"
  6896. @click.stop="deleteWorks(w.wid)"
  6897. alt
  6898. />
  6899. </div>
  6900. <div class="comment" style="min-width: 200px">
  6901. <div class="worksName">
  6902. <div
  6903. style="cursor: pointer"
  6904. @click="
  6905. openSname(w.sName, w.wid, toolIndex, w.userid)
  6906. "
  6907. >
  6908. {{ w.sName }}
  6909. </div>
  6910. </div>
  6911. <div class="commentList">
  6912. <div class="commentList">
  6913. <div
  6914. class="commentImg"
  6915. @click="
  6916. isLikes(w.wid, userid, 1, null, w.isLikes)
  6917. "
  6918. >
  6919. <img
  6920. :src="w.isLikes == true ? likes : noLikes"
  6921. alt=""
  6922. />
  6923. </div>
  6924. <div>{{ w.likesCount }}</div>
  6925. </div>
  6926. <div class="commentList" style="margin-right: 15px">
  6927. <div
  6928. class="commentImg"
  6929. @click="commentOther(w, toolIndex, wIndex)"
  6930. >
  6931. <img
  6932. src="../../assets/icon/comment/comment.png"
  6933. alt=""
  6934. />
  6935. </div>
  6936. <div>{{ w.commentCount }}</div>
  6937. </div>
  6938. </div>
  6939. </div>
  6940. </div>
  6941. </div>
  6942. <div class="noWorksS">
  6943. <div
  6944. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6945. :key="sIndex"
  6946. class="noWorksName"
  6947. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  6948. :class="{ isWork: s.type == '2' }"
  6949. >
  6950. {{ s.student }}
  6951. </div>
  6952. </div>
  6953. </div>
  6954. <div
  6955. v-if="
  6956. tType &&
  6957. ((tType == 2 && sIsOpen == true) ||
  6958. tType == 1 ||
  6959. tType == 4) &&
  6960. tool.tool.indexOf(4) != -1
  6961. "
  6962. class="worksBox"
  6963. >
  6964. <div
  6965. class="zuoyeYulan"
  6966. v-if="
  6967. worksStudent.length && worksStudent[toolIndex].length > 0
  6968. "
  6969. >
  6970. <div class="worksTop">
  6971. <div>作业预览</div>
  6972. <div
  6973. class="corOpen"
  6974. @click="contract(toolIndex)"
  6975. v-if="
  6976. worksStudent[toolIndex].length > 6 &&
  6977. isCloseList[toolIndex].isClose == 0
  6978. "
  6979. >
  6980. 收缩
  6981. </div>
  6982. <div
  6983. class="corOpen"
  6984. @click="contract(toolIndex)"
  6985. v-if="isCloseList[toolIndex].isClose == 1"
  6986. >
  6987. 展开
  6988. </div>
  6989. </div>
  6990. </div>
  6991. <div>
  6992. <div
  6993. class="worksDetailBox"
  6994. v-if="
  6995. worksStudent.length &&
  6996. worksStudent[toolIndex].length > 0
  6997. "
  6998. >
  6999. <div
  7000. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  7001. 0
  7002. ? worksStudent[toolIndex]
  7003. : worksStudent[toolIndex].slice(0, 6)"
  7004. :key="wIndex"
  7005. class="isWorksName"
  7006. @click="
  7007. openTools(4, toolIndex, taskCount, w.works, w.sName)
  7008. "
  7009. >
  7010. {{ w.sName }}
  7011. <img
  7012. class="deleteImg deleteImg2"
  7013. src="../../assets/deleteworks.png"
  7014. v-if="w.userid == userid || tType == 1 || tType == 4"
  7015. @click.stop="deleteWorks(w.wid)"
  7016. alt
  7017. />
  7018. </div>
  7019. </div>
  7020. </div>
  7021. <div class="noWorksS">
  7022. <div
  7023. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7024. :key="sIndex"
  7025. class="noWorksName"
  7026. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  7027. :class="{ isWork: s.type == '2' }"
  7028. >
  7029. {{ s.student }}
  7030. </div>
  7031. </div>
  7032. </div>
  7033. <div
  7034. v-if="
  7035. tType &&
  7036. ((tType == 2 && sIsOpen == true) ||
  7037. tType == 1 ||
  7038. tType == 4) &&
  7039. tool.tool.indexOf(45) != -1
  7040. "
  7041. class="worksBox"
  7042. >
  7043. <div
  7044. class="zuoyeYulan"
  7045. v-if="
  7046. worksStudent.length && worksStudent[toolIndex].length > 0
  7047. "
  7048. >
  7049. <div class="worksTop">
  7050. <div>作业预览</div>
  7051. <div
  7052. class="corOpen"
  7053. @click="contract(toolIndex)"
  7054. v-if="
  7055. worksStudent[toolIndex].length > 6 &&
  7056. isCloseList[toolIndex].isClose == 0
  7057. "
  7058. >
  7059. 收缩
  7060. </div>
  7061. <div
  7062. class="corOpen"
  7063. @click="contract(toolIndex)"
  7064. v-if="isCloseList[toolIndex].isClose == 1"
  7065. >
  7066. 展开
  7067. </div>
  7068. </div>
  7069. </div>
  7070. <div>
  7071. <div
  7072. class="worksDetailBox"
  7073. v-if="
  7074. worksStudent.length &&
  7075. worksStudent[toolIndex].length > 0
  7076. "
  7077. >
  7078. <div
  7079. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  7080. 0
  7081. ? worksStudent[toolIndex]
  7082. : worksStudent[toolIndex].slice(0, 6)"
  7083. :key="wIndex"
  7084. class="isWorksName"
  7085. @click="
  7086. openTools(45, toolIndex, taskCount, w.works, w.sName)
  7087. "
  7088. >
  7089. {{ w.sName }}
  7090. <img
  7091. class="deleteImg deleteImg2"
  7092. src="../../assets/deleteworks.png"
  7093. v-if="w.userid == userid || tType == 1 || tType == 4"
  7094. @click.stop="deleteWorks(w.wid)"
  7095. alt
  7096. />
  7097. </div>
  7098. </div>
  7099. </div>
  7100. <div class="noWorksS">
  7101. <div
  7102. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7103. :key="sIndex"
  7104. class="noWorksName"
  7105. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  7106. :class="{ isWork: s.type == '2' }"
  7107. >
  7108. {{ s.student }}
  7109. </div>
  7110. </div>
  7111. </div>
  7112. <div
  7113. v-if="
  7114. tType &&
  7115. ((tType == 2 && sIsOpen == true) ||
  7116. tType == 1 ||
  7117. tType == 4) &&
  7118. tool.tool.indexOf(15) != -1
  7119. "
  7120. class="worksBox"
  7121. >
  7122. <div
  7123. class="zuoyeYulan"
  7124. v-if="
  7125. worksStudent.length && worksStudent[toolIndex].length > 0
  7126. "
  7127. >
  7128. <div class="worksTop">
  7129. <div>作业预览</div>
  7130. <div
  7131. class="corOpen"
  7132. @click="contract(toolIndex)"
  7133. v-if="
  7134. worksStudent[toolIndex].length > 6 &&
  7135. isCloseList[toolIndex].isClose == 0
  7136. "
  7137. >
  7138. 收缩
  7139. </div>
  7140. <div
  7141. class="corOpen"
  7142. @click="contract(toolIndex)"
  7143. v-if="isCloseList[toolIndex].isClose == 1"
  7144. >
  7145. 展开
  7146. </div>
  7147. </div>
  7148. </div>
  7149. <div
  7150. class="worksDetailBox"
  7151. v-if="
  7152. worksStudent.length && worksStudent[toolIndex].length > 0
  7153. "
  7154. >
  7155. <div
  7156. class="works"
  7157. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7158. ? worksStudent[toolIndex]
  7159. : worksStudent[toolIndex].slice(0, 6)"
  7160. :key="wIndex"
  7161. >
  7162. <div
  7163. class="workImg"
  7164. style="
  7165. border-radius: 15px;
  7166. box-shadow: #eee 0px 0px 5px 5px;
  7167. "
  7168. >
  7169. <!-- <img
  7170. src="../../assets/icon/works/noImg.png"
  7171. @click="openTools(15, toolIndex, taskCount, w.works)"
  7172. alt=""
  7173. />-->
  7174. <div
  7175. class="answerBg"
  7176. style="border-radius: 15px 15px 0 0"
  7177. @click="commentOther(w, toolIndex, wIndex)"
  7178. >
  7179. <!-- <div>{{ w.sName }}</div> -->
  7180. <div class="answerContent">
  7181. {{ JSON.parse(w.works)[0].answer }}
  7182. </div>
  7183. <div
  7184. class="answerScore"
  7185. v-if="w.score"
  7186. @click.stop="openScore(w)"
  7187. :class="{
  7188. rightW:
  7189. w.userid == userid || tType == 1 || tType == 4,
  7190. }"
  7191. >
  7192. {{ JSON.parse(w.score).wScore }}分
  7193. </div>
  7194. <div
  7195. class="answerScore"
  7196. @click.stop="openScore(w)"
  7197. v-else-if="courseDetail.userid == userid"
  7198. :class="{
  7199. rightW:
  7200. w.userid == userid || tType == 1 || tType == 4,
  7201. }"
  7202. >
  7203. 评分
  7204. </div>
  7205. <img
  7206. class="deleteImg"
  7207. src="../../assets/deleteworks.png"
  7208. v-if="
  7209. w.userid == userid || tType == 1 || tType == 4
  7210. "
  7211. @click.stop="deleteWorks(w.wid)"
  7212. alt
  7213. />
  7214. </div>
  7215. <div class="comment">
  7216. <div class="worksName">
  7217. <div>{{ w.sName }}</div>
  7218. </div>
  7219. <div class="commentList">
  7220. <div
  7221. class="commentImg"
  7222. @click="
  7223. isLikes(w.wid, userid, 1, null, w.isLikes)
  7224. "
  7225. >
  7226. <img
  7227. :src="w.isLikes == true ? likes : noLikes"
  7228. alt=""
  7229. />
  7230. </div>
  7231. <div>{{ w.likesCount }}</div>
  7232. </div>
  7233. <div class="commentList" style="margin-right: 15px">
  7234. <div
  7235. class="commentImg"
  7236. @click="commentOther(w, toolIndex, wIndex)"
  7237. >
  7238. <img
  7239. src="../../assets/icon/comment/comment.png"
  7240. alt=""
  7241. />
  7242. </div>
  7243. <div>{{ w.commentCount }}</div>
  7244. </div>
  7245. </div>
  7246. </div>
  7247. </div>
  7248. </div>
  7249. <div class="noWorksS">
  7250. <div
  7251. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7252. :key="sIndex"
  7253. class="noWorksName"
  7254. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  7255. :class="{ isWork: s.type == '2' }"
  7256. >
  7257. {{ s.student }}
  7258. </div>
  7259. </div>
  7260. </div>
  7261. <div
  7262. v-if="
  7263. tType &&
  7264. ((tType == 2 && sIsOpen == true) ||
  7265. tType == 1 ||
  7266. tType == 4) &&
  7267. tool.tool.indexOf(1) != -1
  7268. "
  7269. class="worksBox"
  7270. >
  7271. <div
  7272. class="zuoyeYulan"
  7273. v-if="
  7274. worksStudent.length && worksStudent[toolIndex].length > 0
  7275. "
  7276. >
  7277. <div class="worksTop">
  7278. <div>作业预览</div>
  7279. <div
  7280. class="corOpen"
  7281. @click="contract(toolIndex)"
  7282. v-if="
  7283. worksStudent[toolIndex].length > 6 &&
  7284. isCloseList[toolIndex].isClose == 0
  7285. "
  7286. >
  7287. 收缩
  7288. </div>
  7289. <div
  7290. class="corOpen"
  7291. @click="contract(toolIndex)"
  7292. v-if="isCloseList[toolIndex].isClose == 1"
  7293. >
  7294. 展开
  7295. </div>
  7296. </div>
  7297. </div>
  7298. <div
  7299. class="worksDetailBox"
  7300. v-if="
  7301. worksStudent.length && worksStudent[toolIndex].length > 0
  7302. "
  7303. >
  7304. <div
  7305. class="works"
  7306. style="
  7307. width: 200px;
  7308. height: 140px;
  7309. margin: 10px 10px 10px 0;
  7310. border-radius: 15px;
  7311. box-shadow: 0 0 6px 1px #dfdada;
  7312. "
  7313. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7314. ? worksStudent[toolIndex]
  7315. : worksStudent[toolIndex].slice(0, 6)"
  7316. :key="wIndex"
  7317. >
  7318. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  7319. <div class="workImg">
  7320. <img :src="w.works" @click="previewImg(w.works)" alt />
  7321. <div
  7322. class="answerScore"
  7323. v-if="w.score"
  7324. @click.stop="openScore(w)"
  7325. :class="{
  7326. rightW:
  7327. w.userid == userid || tType == 1 || tType == 4,
  7328. }"
  7329. >
  7330. {{ JSON.parse(w.score).wScore }}分
  7331. </div>
  7332. <div
  7333. class="answerScore"
  7334. @click.stop="openScore(w)"
  7335. v-else-if="courseDetail.userid == userid"
  7336. :class="{
  7337. rightW:
  7338. w.userid == userid || tType == 1 || tType == 4,
  7339. }"
  7340. >
  7341. 评分
  7342. </div>
  7343. <img
  7344. class="deleteImg"
  7345. src="../../assets/deleteworks.png"
  7346. v-if="w.userid == userid || tType == 1 || tType == 4"
  7347. @click.stop="deleteWorks(w.wid)"
  7348. alt
  7349. />
  7350. </div>
  7351. <div class="comment" style="min-width: 200px">
  7352. <div class="worksName">
  7353. <div>{{ w.sName }}</div>
  7354. </div>
  7355. <div class="commentList">
  7356. <div class="commentList">
  7357. <div
  7358. class="commentImg"
  7359. @click="
  7360. isLikes(w.wid, userid, 1, null, w.isLikes)
  7361. "
  7362. >
  7363. <img
  7364. :src="w.isLikes == true ? likes : noLikes"
  7365. alt=""
  7366. />
  7367. </div>
  7368. <div>{{ w.likesCount }}</div>
  7369. </div>
  7370. <div class="commentList" style="margin-right: 15px">
  7371. <div
  7372. class="commentImg"
  7373. @click="commentOther(w, toolIndex, wIndex)"
  7374. >
  7375. <img
  7376. src="../../assets/icon/comment/comment.png"
  7377. alt=""
  7378. />
  7379. </div>
  7380. <div>{{ w.commentCount }}</div>
  7381. </div>
  7382. </div>
  7383. </div>
  7384. </div>
  7385. </div>
  7386. <div class="noWorksS">
  7387. <div
  7388. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7389. :key="sIndex"
  7390. class="noWorksName"
  7391. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7392. :class="{ isWork: s.type == '2' }"
  7393. >
  7394. {{ s.student }}
  7395. </div>
  7396. </div>
  7397. </div>
  7398. <div
  7399. v-if="
  7400. tType &&
  7401. ((tType == 2 && sIsOpen == true) ||
  7402. tType == 1 ||
  7403. tType == 4) &&
  7404. tool.tool.indexOf(3) != -1
  7405. "
  7406. class="worksBox"
  7407. >
  7408. <div
  7409. class="zuoyeYulan"
  7410. v-if="
  7411. worksStudent.length && worksStudent[toolIndex].length > 0
  7412. "
  7413. >
  7414. <div class="worksTop">
  7415. <div>作业预览</div>
  7416. <div
  7417. class="corOpen"
  7418. @click="contract(toolIndex)"
  7419. v-if="
  7420. worksStudent[toolIndex].length > 6 &&
  7421. isCloseList[toolIndex].isClose == 0
  7422. "
  7423. >
  7424. 收缩
  7425. </div>
  7426. <div
  7427. class="corOpen"
  7428. @click="contract(toolIndex)"
  7429. v-if="isCloseList[toolIndex].isClose == 1"
  7430. >
  7431. 展开
  7432. </div>
  7433. </div>
  7434. </div>
  7435. <div
  7436. class="worksDetailBox"
  7437. v-if="
  7438. worksStudent.length && worksStudent[toolIndex].length > 0
  7439. "
  7440. >
  7441. <div
  7442. class="works"
  7443. style="
  7444. width: 200px;
  7445. height: 140px;
  7446. margin: 10px 10px 10px 0;
  7447. border-radius: 15px;
  7448. box-shadow: 0 0 6px 1px #dfdada;
  7449. "
  7450. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7451. ? worksStudent[toolIndex]
  7452. : worksStudent[toolIndex].slice(0, 6)"
  7453. :key="wIndex"
  7454. >
  7455. <!-- @click="previewImg(w.works)" -->
  7456. <div class="workImg">
  7457. <img :src="w.works" @click="previewImg(w.works)" alt />
  7458. <div
  7459. class="answerScore"
  7460. v-if="w.score"
  7461. @click.stop="openScore(w)"
  7462. :class="{
  7463. rightW:
  7464. w.userid == userid || tType == 1 || tType == 4,
  7465. }"
  7466. >
  7467. {{ JSON.parse(w.score).wScore }}分
  7468. </div>
  7469. <div
  7470. class="answerScore"
  7471. @click.stop="openScore(w)"
  7472. v-else-if="courseDetail.userid == userid"
  7473. :class="{
  7474. rightW:
  7475. w.userid == userid || tType == 1 || tType == 4,
  7476. }"
  7477. >
  7478. 评分
  7479. </div>
  7480. <img
  7481. class="deleteImg"
  7482. src="../../assets/deleteworks.png"
  7483. v-if="w.userid == userid || tType == 1 || tType == 4"
  7484. @click.stop="deleteWorks(w.wid)"
  7485. alt
  7486. />
  7487. </div>
  7488. <div class="comment" style="min-width: 200px">
  7489. <div class="worksName">
  7490. <div>{{ w.sName }}</div>
  7491. </div>
  7492. <div class="commentList">
  7493. <div class="commentList">
  7494. <div
  7495. class="commentImg"
  7496. @click="
  7497. isLikes(w.wid, userid, 1, null, w.isLikes)
  7498. "
  7499. >
  7500. <img
  7501. :src="w.isLikes == true ? likes : noLikes"
  7502. alt=""
  7503. />
  7504. </div>
  7505. <div>{{ w.likesCount }}</div>
  7506. </div>
  7507. <div class="commentList" style="margin-right: 15px">
  7508. <div
  7509. class="commentImg"
  7510. @click="commentOther(w, toolIndex, wIndex)"
  7511. >
  7512. <img
  7513. src="../../assets/icon/comment/comment.png"
  7514. alt=""
  7515. />
  7516. </div>
  7517. <div>{{ w.commentCount }}</div>
  7518. </div>
  7519. </div>
  7520. </div>
  7521. </div>
  7522. </div>
  7523. <div class="noWorksS">
  7524. <div
  7525. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7526. :key="sIndex"
  7527. class="noWorksName"
  7528. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7529. :class="{ isWork: s.type == '2' }"
  7530. >
  7531. {{ s.student }}
  7532. </div>
  7533. </div>
  7534. </div>
  7535. <div
  7536. v-if="
  7537. tType &&
  7538. ((tType == 2 && sIsOpen == true) ||
  7539. tType == 1 ||
  7540. tType == 4) &&
  7541. tool.tool.indexOf(6) != -1
  7542. "
  7543. class="worksBox"
  7544. >
  7545. <div
  7546. class="zuoyeYulan"
  7547. v-if="
  7548. worksStudent.length && worksStudent[toolIndex].length > 0
  7549. "
  7550. >
  7551. <div class="worksTop">
  7552. <div>作业预览</div>
  7553. <div
  7554. class="corOpen"
  7555. @click="contract(toolIndex)"
  7556. v-if="
  7557. worksStudent[toolIndex].length > 6 &&
  7558. isCloseList[toolIndex].isClose == 0
  7559. "
  7560. >
  7561. 收缩
  7562. </div>
  7563. <div
  7564. class="corOpen"
  7565. @click="contract(toolIndex)"
  7566. v-if="isCloseList[toolIndex].isClose == 1"
  7567. >
  7568. 展开
  7569. </div>
  7570. </div>
  7571. </div>
  7572. <div
  7573. class="worksDetailBox"
  7574. v-if="
  7575. worksStudent.length && worksStudent[toolIndex].length > 0
  7576. "
  7577. >
  7578. <div
  7579. class="works"
  7580. style="
  7581. width: 200px;
  7582. height: 140px;
  7583. margin: 10px 10px 10px 0;
  7584. border-radius: 15px;
  7585. box-shadow: 0 0 6px 1px #dfdada;
  7586. "
  7587. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7588. ? worksStudent[toolIndex]
  7589. : worksStudent[toolIndex].slice(0, 6)"
  7590. :key="wIndex"
  7591. >
  7592. <!-- @click="previewImg(w.works)" -->
  7593. <div class="workImg">
  7594. <img :src="w.works" @click="previewImg(w.works)" alt />
  7595. <div
  7596. class="answerScore"
  7597. v-if="w.score"
  7598. @click.stop="openScore(w)"
  7599. :class="{
  7600. rightW:
  7601. w.userid == userid || tType == 1 || tType == 4,
  7602. }"
  7603. >
  7604. {{ JSON.parse(w.score).wScore }}分
  7605. </div>
  7606. <div
  7607. class="answerScore"
  7608. @click.stop="openScore(w)"
  7609. v-else-if="courseDetail.userid == userid"
  7610. :class="{
  7611. rightW:
  7612. w.userid == userid || tType == 1 || tType == 4,
  7613. }"
  7614. >
  7615. 评分
  7616. </div>
  7617. <img
  7618. class="deleteImg"
  7619. src="../../assets/deleteworks.png"
  7620. v-if="w.userid == userid || tType == 1 || tType == 4"
  7621. @click.stop="deleteWorks(w.wid)"
  7622. alt
  7623. />
  7624. </div>
  7625. <div class="comment" style="min-width: 200px">
  7626. <div class="worksName">
  7627. <div>{{ w.sName }}</div>
  7628. </div>
  7629. <div class="commentList">
  7630. <div class="commentList">
  7631. <div
  7632. class="commentImg"
  7633. @click="
  7634. isLikes(w.wid, userid, 1, null, w.isLikes)
  7635. "
  7636. >
  7637. <img
  7638. :src="w.isLikes == true ? likes : noLikes"
  7639. alt=""
  7640. />
  7641. </div>
  7642. <div>{{ w.likesCount }}</div>
  7643. </div>
  7644. <div class="commentList" style="margin-right: 15px">
  7645. <div
  7646. class="commentImg"
  7647. @click="commentOther(w, toolIndex, wIndex)"
  7648. >
  7649. <img
  7650. src="../../assets/icon/comment/comment.png"
  7651. alt=""
  7652. />
  7653. </div>
  7654. <div>{{ w.commentCount }}</div>
  7655. </div>
  7656. </div>
  7657. </div>
  7658. </div>
  7659. </div>
  7660. <div class="noWorksS">
  7661. <div
  7662. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7663. :key="sIndex"
  7664. class="noWorksName"
  7665. :class="{ isWork: s.type == '2' }"
  7666. >
  7667. {{ s.student }}
  7668. </div>
  7669. </div>
  7670. </div>
  7671. <div
  7672. v-if="
  7673. tType &&
  7674. ((tType == 2 && sIsOpen == true) ||
  7675. tType == 1 ||
  7676. tType == 4) &&
  7677. tool.tool.indexOf(7) != -1
  7678. "
  7679. class="worksBox"
  7680. >
  7681. <div
  7682. class="zuoyeYulan"
  7683. v-if="
  7684. worksStudent.length && worksStudent[toolIndex].length > 0
  7685. "
  7686. >
  7687. <div class="worksTop">
  7688. <div>作业预览</div>
  7689. <div
  7690. class="corOpen"
  7691. @click="contract(toolIndex)"
  7692. v-if="
  7693. worksStudent[toolIndex].length > 6 &&
  7694. isCloseList[toolIndex].isClose == 0
  7695. "
  7696. >
  7697. 收缩
  7698. </div>
  7699. <div
  7700. class="corOpen"
  7701. @click="contract(toolIndex)"
  7702. v-if="isCloseList[toolIndex].isClose == 1"
  7703. >
  7704. 展开
  7705. </div>
  7706. </div>
  7707. </div>
  7708. <div
  7709. class="worksDetailBox"
  7710. v-if="
  7711. worksStudent.length && worksStudent[toolIndex].length > 0
  7712. "
  7713. >
  7714. <div
  7715. class="works"
  7716. style="
  7717. width: 200px;
  7718. height: 140px;
  7719. margin: 10px 10px 10px 0;
  7720. border-radius: 15px;
  7721. box-shadow: 0 0 6px 1px #dfdada;
  7722. "
  7723. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7724. ? worksStudent[toolIndex]
  7725. : worksStudent[toolIndex].slice(0, 6)"
  7726. :key="wIndex"
  7727. >
  7728. <!-- @click="previewImg(w.works)" -->
  7729. <div class="workImg">
  7730. <img :src="w.works" @click="previewImg(w.works)" alt />
  7731. <div
  7732. class="answerScore"
  7733. v-if="w.score"
  7734. @click.stop="openScore(w)"
  7735. :class="{
  7736. rightW:
  7737. w.userid == userid || tType == 1 || tType == 4,
  7738. }"
  7739. >
  7740. {{ JSON.parse(w.score).wScore }}分
  7741. </div>
  7742. <div
  7743. class="answerScore"
  7744. @click.stop="openScore(w)"
  7745. v-else-if="courseDetail.userid == userid"
  7746. :class="{
  7747. rightW:
  7748. w.userid == userid || tType == 1 || tType == 4,
  7749. }"
  7750. >
  7751. 评分
  7752. </div>
  7753. <img
  7754. class="deleteImg"
  7755. src="../../assets/deleteworks.png"
  7756. v-if="w.userid == userid || tType == 1 || tType == 4"
  7757. @click.stop="deleteWorks(w.wid)"
  7758. alt
  7759. />
  7760. </div>
  7761. <div class="comment" style="min-width: 200px">
  7762. <div class="worksName">
  7763. <div>{{ w.sName }}</div>
  7764. </div>
  7765. <div class="commentList">
  7766. <div class="commentList">
  7767. <div
  7768. class="commentImg"
  7769. @click="
  7770. isLikes(w.wid, userid, 1, null, w.isLikes)
  7771. "
  7772. >
  7773. <img
  7774. :src="w.isLikes == true ? likes : noLikes"
  7775. alt=""
  7776. />
  7777. </div>
  7778. <div>{{ w.likesCount }}</div>
  7779. </div>
  7780. <div class="commentList" style="margin-right: 15px">
  7781. <div
  7782. class="commentImg"
  7783. @click="commentOther(w, toolIndex, wIndex)"
  7784. >
  7785. <img
  7786. src="../../assets/icon/comment/comment.png"
  7787. alt=""
  7788. />
  7789. </div>
  7790. <div>{{ w.commentCount }}</div>
  7791. </div>
  7792. </div>
  7793. </div>
  7794. </div>
  7795. </div>
  7796. <div class="noWorksS">
  7797. <div
  7798. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7799. :key="sIndex"
  7800. class="noWorksName"
  7801. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  7802. :class="{ isWork: s.type == '2' }"
  7803. >
  7804. {{ s.student }}
  7805. </div>
  7806. </div>
  7807. </div>
  7808. <div
  7809. v-if="
  7810. tType &&
  7811. ((tType == 2 && sIsOpen == true) ||
  7812. tType == 1 ||
  7813. tType == 4) &&
  7814. tool.tool.indexOf(26) != -1
  7815. "
  7816. class="worksBox"
  7817. >
  7818. <div
  7819. class="zuoyeYulan"
  7820. v-if="
  7821. worksStudent.length && worksStudent[toolIndex].length > 0
  7822. "
  7823. >
  7824. <div class="worksTop">
  7825. <div>作业预览</div>
  7826. <div
  7827. class="corOpen"
  7828. @click="contract(toolIndex)"
  7829. v-if="
  7830. worksStudent[toolIndex].length > 6 &&
  7831. isCloseList[toolIndex].isClose == 0
  7832. "
  7833. >
  7834. 收缩
  7835. </div>
  7836. <div
  7837. class="corOpen"
  7838. @click="contract(toolIndex)"
  7839. v-if="isCloseList[toolIndex].isClose == 1"
  7840. >
  7841. 展开
  7842. </div>
  7843. </div>
  7844. </div>
  7845. <div
  7846. class="worksDetailBox"
  7847. v-if="
  7848. worksStudent.length && worksStudent[toolIndex].length > 0
  7849. "
  7850. >
  7851. <div
  7852. class="works"
  7853. style="width: 240px; height: 140px; overflow: hidden"
  7854. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7855. ? worksStudent[toolIndex]
  7856. : worksStudent[toolIndex].slice(0, 6)"
  7857. :key="wIndex"
  7858. :class="w.type == 1 ? 'isTypeOne' : ''"
  7859. >
  7860. <div class="workImg" v-if="w.type == 0">
  7861. <img :src="w.works" @click="previewImg(w.works)" alt />
  7862. <img
  7863. class="deleteImg"
  7864. src="../../assets/deleteworks.png"
  7865. v-if="w.userid == userid || tType == 1 || tType == 4"
  7866. @click.stop="deleteWorks(w.wid)"
  7867. alt
  7868. />
  7869. </div>
  7870. <div class="workImg" v-if="w.type == 1">
  7871. <img :src="word" @click="openFile(w.works)" alt />
  7872. <img
  7873. class="deleteImg"
  7874. src="../../assets/deleteworks.png"
  7875. v-if="w.userid == userid || tType == 1 || tType == 4"
  7876. @click.stop="deleteWorks(w.wid)"
  7877. alt
  7878. />
  7879. </div>
  7880. <div class="worksName">
  7881. <div>{{ w.sName }}</div>
  7882. </div>
  7883. </div>
  7884. </div>
  7885. <div class="noWorksS">
  7886. <div
  7887. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7888. :key="sIndex"
  7889. class="noWorksName"
  7890. :class="{ isWork: s.type == '2' }"
  7891. >
  7892. {{ s.student }}
  7893. </div>
  7894. </div>
  7895. </div>
  7896. <div
  7897. v-if="
  7898. tType &&
  7899. ((tType == 2 && sIsOpen == true) ||
  7900. tType == 1 ||
  7901. tType == 4) &&
  7902. tool.tool.indexOf(40) != -1
  7903. "
  7904. class="worksBox"
  7905. >
  7906. <div
  7907. class="zuoyeYulan"
  7908. v-if="
  7909. worksStudent.length && worksStudent[toolIndex].length > 0
  7910. "
  7911. >
  7912. <div class="worksTop">
  7913. <div>作业预览</div>
  7914. <div
  7915. class="corOpen"
  7916. @click="contract(toolIndex)"
  7917. v-if="
  7918. worksStudent[toolIndex].length > 6 &&
  7919. isCloseList[toolIndex].isClose == 0
  7920. "
  7921. >
  7922. 收缩
  7923. </div>
  7924. <div
  7925. class="corOpen"
  7926. @click="contract(toolIndex)"
  7927. v-if="isCloseList[toolIndex].isClose == 1"
  7928. >
  7929. 展开
  7930. </div>
  7931. </div>
  7932. </div>
  7933. <div
  7934. class="worksDetailBox"
  7935. v-if="
  7936. worksStudent.length && worksStudent[toolIndex].length > 0
  7937. "
  7938. >
  7939. <div
  7940. class="works"
  7941. style="
  7942. width: 200px;
  7943. height: 140px;
  7944. margin: 10px 10px 10px 0;
  7945. border-radius: 15px;
  7946. box-shadow: 0 0 6px 1px #dfdada;
  7947. "
  7948. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7949. ? worksStudent[toolIndex]
  7950. : worksStudent[toolIndex].slice(0, 6)"
  7951. :key="wIndex"
  7952. :class="w.type == 1 ? 'isTypeOne' : ''"
  7953. >
  7954. <div class="workImg">
  7955. <img
  7956. src="../../assets/icon/works/noImg.png"
  7957. @click="openPj(w.works, toolIndex)"
  7958. alt
  7959. />
  7960. <img
  7961. class="deleteImg"
  7962. src="../../assets/deleteworks.png"
  7963. v-if="w.userid == userid || tType == 1 || tType == 4"
  7964. @click.stop="deleteWorks(w.wid)"
  7965. alt
  7966. />
  7967. </div>
  7968. <div class="comment" style="min-width: 200px">
  7969. <div class="worksName">
  7970. <div>{{ w.sName }}</div>
  7971. </div>
  7972. <div class="commentList">
  7973. <div class="commentList">
  7974. <div
  7975. class="commentImg"
  7976. @click="
  7977. isLikes(w.wid, userid, 1, null, w.isLikes)
  7978. "
  7979. >
  7980. <img
  7981. :src="w.isLikes == true ? likes : noLikes"
  7982. alt=""
  7983. />
  7984. </div>
  7985. <div>{{ w.likesCount }}</div>
  7986. </div>
  7987. <div class="commentList" style="margin-right: 15px">
  7988. <div
  7989. class="commentImg"
  7990. @click="commentOther(w, toolIndex, wIndex)"
  7991. >
  7992. <img
  7993. src="../../assets/icon/comment/comment.png"
  7994. alt=""
  7995. />
  7996. </div>
  7997. <div>{{ w.commentCount }}</div>
  7998. </div>
  7999. </div>
  8000. </div>
  8001. </div>
  8002. </div>
  8003. <div class="noWorksS">
  8004. <div
  8005. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8006. :key="sIndex"
  8007. class="noWorksName"
  8008. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8009. :class="{ isWork: s.type == '2' }"
  8010. >
  8011. {{ s.student }}
  8012. </div>
  8013. </div>
  8014. </div>
  8015. <div
  8016. v-if="
  8017. tType &&
  8018. ((tType == 2 && sIsOpen == true) ||
  8019. tType == 1 ||
  8020. tType == 4) &&
  8021. tool.tool.indexOf(41) != -1
  8022. "
  8023. class="worksBox"
  8024. >
  8025. <div class="noWorksS">
  8026. <div
  8027. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8028. :key="sIndex"
  8029. class="noWorksName"
  8030. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  8031. :class="{ isWork: s.type == '2' }"
  8032. >
  8033. {{ s.student }}
  8034. </div>
  8035. </div>
  8036. <div
  8037. class="zuoyeYulan"
  8038. v-if="
  8039. worksStudent.length && worksStudent[toolIndex].length > 0
  8040. "
  8041. >
  8042. <div class="worksTop">
  8043. <div>作业预览</div>
  8044. <div
  8045. class="corOpen"
  8046. @click="contract(toolIndex)"
  8047. v-if="
  8048. worksStudent[toolIndex].length > 6 &&
  8049. isCloseList[toolIndex].isClose == 0
  8050. "
  8051. >
  8052. 收缩
  8053. </div>
  8054. <div
  8055. class="corOpen"
  8056. @click="contract(toolIndex)"
  8057. v-if="isCloseList[toolIndex].isClose == 1"
  8058. >
  8059. 展开
  8060. </div>
  8061. </div>
  8062. </div>
  8063. <div
  8064. class="worksDetailBox"
  8065. v-if="
  8066. worksStudent.length && worksStudent[toolIndex].length > 0
  8067. "
  8068. >
  8069. <div
  8070. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8071. ? worksStudent[toolIndex]
  8072. : worksStudent[toolIndex].slice(0, 6)"
  8073. :key="wIndex"
  8074. class="isWorksName"
  8075. @click="openXz(w, toolIndex)"
  8076. >
  8077. {{ w.sName }}
  8078. <img
  8079. class="deleteImg deleteImg2"
  8080. src="../../assets/deleteworks.png"
  8081. v-if="w.userid == userid || tType == 1 || tType == 4"
  8082. @click.stop="deleteWorks(w.wid)"
  8083. alt
  8084. />
  8085. </div>
  8086. </div>
  8087. </div>
  8088. <div
  8089. v-if="
  8090. tType &&
  8091. ((tType == 2 && sIsOpen == true) ||
  8092. tType == 1 ||
  8093. tType == 4) &&
  8094. tool.tool.indexOf(47) != -1
  8095. "
  8096. class="worksBox"
  8097. >
  8098. <div class="noWorksS">
  8099. <div
  8100. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8101. :key="sIndex"
  8102. class="noWorksName"
  8103. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  8104. :class="{ isWork: s.type == '2' }"
  8105. >
  8106. {{ s.student }}
  8107. </div>
  8108. </div>
  8109. <div
  8110. class="zuoyeYulan"
  8111. v-if="
  8112. worksStudent.length && worksStudent[toolIndex].length > 0
  8113. "
  8114. >
  8115. <div class="worksTop">
  8116. <div>作业预览</div>
  8117. <div
  8118. class="corOpen"
  8119. @click="contract(toolIndex)"
  8120. v-if="
  8121. worksStudent[toolIndex].length > 6 &&
  8122. isCloseList[toolIndex].isClose == 0
  8123. "
  8124. >
  8125. 收缩
  8126. </div>
  8127. <div
  8128. class="corOpen"
  8129. @click="contract(toolIndex)"
  8130. v-if="isCloseList[toolIndex].isClose == 1"
  8131. >
  8132. 展开
  8133. </div>
  8134. </div>
  8135. </div>
  8136. <div
  8137. class="worksDetailBox"
  8138. v-if="
  8139. worksStudent.length && worksStudent[toolIndex].length > 0
  8140. "
  8141. >
  8142. <!-- @click="openXz(w, toolIndex)" -->
  8143. <div
  8144. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8145. ? worksStudent[toolIndex]
  8146. : worksStudent[toolIndex].slice(0, 6)"
  8147. :key="wIndex"
  8148. class="isWorksName"
  8149. @click="openSen(w, toolIndex)"
  8150. >
  8151. {{ w.sName }}
  8152. <img
  8153. class="deleteImg deleteImg2"
  8154. src="../../assets/deleteworks.png"
  8155. v-if="w.userid == userid || tType == 1 || tType == 4"
  8156. @click.stop="deleteWorks(w.wid)"
  8157. alt
  8158. />
  8159. </div>
  8160. </div>
  8161. </div>
  8162. <div
  8163. v-if="
  8164. tType &&
  8165. ((tType == 2 && sIsOpen == true) ||
  8166. tType == 1 ||
  8167. tType == 4) &&
  8168. tool.tool.indexOf(48) != -1
  8169. "
  8170. class="worksBox"
  8171. >
  8172. <div class="noWorksS">
  8173. <div
  8174. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8175. :key="sIndex"
  8176. class="noWorksName"
  8177. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  8178. :class="{ isWork: s.type == '2' }"
  8179. >
  8180. {{ s.student }}
  8181. </div>
  8182. </div>
  8183. <div
  8184. class="zuoyeYulan"
  8185. v-if="
  8186. worksStudent.length && worksStudent[toolIndex].length > 0
  8187. "
  8188. >
  8189. <div class="worksTop">
  8190. <div>作业预览</div>
  8191. <div
  8192. class="corOpen"
  8193. @click="contract(toolIndex)"
  8194. v-if="
  8195. worksStudent[toolIndex].length > 6 &&
  8196. isCloseList[toolIndex].isClose == 0
  8197. "
  8198. >
  8199. 收缩
  8200. </div>
  8201. <div
  8202. class="corOpen"
  8203. @click="contract(toolIndex)"
  8204. v-if="isCloseList[toolIndex].isClose == 1"
  8205. >
  8206. 展开
  8207. </div>
  8208. </div>
  8209. </div>
  8210. <div
  8211. class="worksDetailBox"
  8212. v-if="
  8213. worksStudent.length && worksStudent[toolIndex].length > 0
  8214. "
  8215. >
  8216. <div
  8217. class="works"
  8218. style="
  8219. width: 200px;
  8220. height: 140px;
  8221. margin: 10px 10px 10px 0;
  8222. border-radius: 15px;
  8223. box-shadow: 0 0 6px 1px #dfdada;
  8224. "
  8225. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8226. ? worksStudent[toolIndex]
  8227. : worksStudent[toolIndex].slice(0, 6)"
  8228. :key="wIndex"
  8229. :class="w.type == 1 ? 'isTypeOne' : ''"
  8230. >
  8231. <div class="workImg">
  8232. <img :src="word" @click="openTable(w)" alt />
  8233. <!-- @click="openFile(w.works)" -->
  8234. <div
  8235. class="answerScore"
  8236. v-if="w.score"
  8237. @click.stop="openScore(w)"
  8238. :class="{
  8239. rightW:
  8240. w.userid == userid ||
  8241. tType == 1 ||
  8242. tType == 4 ||
  8243. w.ateacher == userid,
  8244. }"
  8245. >
  8246. {{ JSON.parse(w.score).wScore }}分
  8247. </div>
  8248. <div
  8249. class="answerScore"
  8250. @click.stop="openScore(w)"
  8251. v-else-if="courseDetail.userid == userid"
  8252. :class="{
  8253. rightW:
  8254. w.userid == userid ||
  8255. tType == 1 ||
  8256. tType == 4 ||
  8257. w.ateacher == userid,
  8258. }"
  8259. >
  8260. 评分
  8261. </div>
  8262. <img
  8263. class="deleteImg"
  8264. src="../../assets/deleteworks.png"
  8265. v-if="w.userid == userid || tType == 1 || tType == 4"
  8266. @click.stop="deleteWorks(w.wid)"
  8267. alt
  8268. />
  8269. </div>
  8270. <div class="comment" style="min-width: 200px">
  8271. <div class="worksName">
  8272. <div>{{ w.sName }}</div>
  8273. </div>
  8274. <div class="commentList">
  8275. <div class="commentList">
  8276. <div
  8277. class="commentImg"
  8278. @click="
  8279. isLikes(w.wid, userid, 1, null, w.isLikes)
  8280. "
  8281. >
  8282. <img
  8283. :src="w.isLikes == true ? likes : noLikes"
  8284. alt=""
  8285. />
  8286. </div>
  8287. <div>{{ w.likesCount }}</div>
  8288. </div>
  8289. <div class="commentList" style="margin-right: 15px">
  8290. <div
  8291. class="commentImg"
  8292. @click="commentOther(w, toolIndex, wIndex)"
  8293. >
  8294. <img
  8295. src="../../assets/icon/comment/comment.png"
  8296. alt=""
  8297. />
  8298. </div>
  8299. <div>{{ w.commentCount }}</div>
  8300. </div>
  8301. </div>
  8302. </div>
  8303. </div>
  8304. </div>
  8305. </div>
  8306. <div
  8307. v-if="
  8308. tType &&
  8309. ((tType == 2 && sIsOpen == true) ||
  8310. tType == 1 ||
  8311. tType == 4) &&
  8312. tool.tool.indexOf(52) != -1
  8313. "
  8314. class="worksBox"
  8315. >
  8316. <div class="noWorksS">
  8317. <div
  8318. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8319. :key="sIndex"
  8320. class="noWorksName"
  8321. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  8322. :class="{ isWork: s.type == '2' }"
  8323. >
  8324. {{ s.student }}
  8325. </div>
  8326. </div>
  8327. <div
  8328. class="zuoyeYulan"
  8329. v-if="
  8330. worksStudent.length && worksStudent[toolIndex].length > 0
  8331. "
  8332. >
  8333. <div class="worksTop">
  8334. <div>作业预览</div>
  8335. <div
  8336. class="corOpen"
  8337. @click="contract(toolIndex)"
  8338. v-if="
  8339. worksStudent[toolIndex].length > 6 &&
  8340. isCloseList[toolIndex].isClose == 0
  8341. "
  8342. >
  8343. 收缩
  8344. </div>
  8345. <div
  8346. class="corOpen"
  8347. @click="contract(toolIndex)"
  8348. v-if="isCloseList[toolIndex].isClose == 1"
  8349. >
  8350. 展开
  8351. </div>
  8352. </div>
  8353. </div>
  8354. <div
  8355. class="worksDetailBox"
  8356. v-if="
  8357. worksStudent.length && worksStudent[toolIndex].length > 0
  8358. "
  8359. >
  8360. <div
  8361. class="works"
  8362. style="
  8363. width: 200px;
  8364. height: 140px;
  8365. margin: 10px 10px 10px 0;
  8366. border-radius: 15px;
  8367. box-shadow: 0 0 6px 1px #dfdada;
  8368. "
  8369. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8370. ? worksStudent[toolIndex]
  8371. : worksStudent[toolIndex].slice(0, 6)"
  8372. :key="wIndex"
  8373. :class="w.type == 1 ? 'isTypeOne' : ''"
  8374. >
  8375. <div class="workImg">
  8376. <img :src="word" @click="openWord(w)" alt />
  8377. <!-- @click="openFile(w.works)" -->
  8378. <div
  8379. class="answerScore"
  8380. v-if="w.score"
  8381. @click.stop="openScore(w)"
  8382. :class="{
  8383. rightW:
  8384. w.userid == userid ||
  8385. tType == 1 ||
  8386. tType == 4 ||
  8387. w.ateacher == userid,
  8388. }"
  8389. >
  8390. {{ JSON.parse(w.score).wScore }}分
  8391. </div>
  8392. <div
  8393. class="answerScore"
  8394. @click.stop="openScore(w)"
  8395. v-else-if="courseDetail.userid == userid"
  8396. :class="{
  8397. rightW:
  8398. w.userid == userid ||
  8399. tType == 1 ||
  8400. tType == 4 ||
  8401. w.ateacher == userid,
  8402. }"
  8403. >
  8404. 评分
  8405. </div>
  8406. <img
  8407. class="deleteImg"
  8408. src="../../assets/deleteworks.png"
  8409. v-if="w.userid == userid || tType == 1 || tType == 4"
  8410. @click.stop="deleteWorks(w.wid)"
  8411. alt
  8412. />
  8413. </div>
  8414. <div class="comment" style="min-width: 200px">
  8415. <div class="worksName">
  8416. <div>{{ w.sName }}</div>
  8417. </div>
  8418. <div class="commentList">
  8419. <div class="commentList">
  8420. <div
  8421. class="commentImg"
  8422. @click="
  8423. isLikes(w.wid, userid, 1, null, w.isLikes)
  8424. "
  8425. >
  8426. <img
  8427. :src="w.isLikes == true ? likes : noLikes"
  8428. alt=""
  8429. />
  8430. </div>
  8431. <div>{{ w.likesCount }}</div>
  8432. </div>
  8433. <div class="commentList" style="margin-right: 15px">
  8434. <div
  8435. class="commentImg"
  8436. @click="commentOther(w, toolIndex, wIndex)"
  8437. >
  8438. <img
  8439. src="../../assets/icon/comment/comment.png"
  8440. alt=""
  8441. />
  8442. </div>
  8443. <div>{{ w.commentCount }}</div>
  8444. </div>
  8445. </div>
  8446. </div>
  8447. </div>
  8448. </div>
  8449. </div>
  8450. </div>
  8451. </div>
  8452. <div class="vedioBox" v-if="false">
  8453. <div
  8454. class="queTop"
  8455. style="
  8456. font-size: 20px;
  8457. padding: 15px 0 15px 30px;
  8458. font-weight: bold;
  8459. "
  8460. >
  8461. 评一评
  8462. </div>
  8463. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8464. <div class="elist_input">
  8465. <div
  8466. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8467. .chapterInfo[0].taskJson[taskCount].eList"
  8468. :key="eIndex"
  8469. class="elist_input_box"
  8470. >
  8471. <div style="width: 95%">
  8472. <div
  8473. style="
  8474. display: flex;
  8475. flex-direction: row;
  8476. flex-wrap: nowrap;
  8477. align-items: center;
  8478. "
  8479. >
  8480. <div style="max-width: calc(100% - 285px)">
  8481. <span>{{ eItem.value }}</span>
  8482. </div>
  8483. <div
  8484. style="
  8485. padding-left: 25px;
  8486. display: flex;
  8487. flex-direction: row;
  8488. align-items: center;
  8489. "
  8490. >
  8491. <el-rate
  8492. v-model="eItem.score"
  8493. :colors="colors"
  8494. disabled
  8495. ></el-rate>
  8496. </div>
  8497. </div>
  8498. <div class="elist_inptu_text" style="padding-left: 10px">
  8499. <span v-if="eItem.detail != ''">{{
  8500. eItem.detail
  8501. }}</span>
  8502. <span v-else style="color: #b2b1b3; font-size: 14px"
  8503. >暂无描述...</span
  8504. >
  8505. </div>
  8506. </div>
  8507. </div>
  8508. </div>
  8509. <div
  8510. v-if="evalua"
  8511. style="
  8512. border: 1px solid #e5e5e5;
  8513. max-width: 650px;
  8514. width: 100%;
  8515. margin-top: 20px;
  8516. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8517. "
  8518. >
  8519. <div class="e_add_top">
  8520. <div class="e_add_title">
  8521. <span>目标管理名称</span>
  8522. <span>{{ eTitle }}</span>
  8523. <img
  8524. src="../../assets/line.png"
  8525. class="cru_line"
  8526. style="
  8527. width: 125px;
  8528. height: 20px;
  8529. bottom: -10px;
  8530. left: 120px;
  8531. "
  8532. />
  8533. <!-- <el-input
  8534. v-model="eTitle"
  8535. placeholder="请输入名称"
  8536. @change="setMindData"
  8537. ></el-input>-->
  8538. </div>
  8539. </div>
  8540. <div class="e_add_content">
  8541. <div class="e_add_list_pbox">
  8542. <div class="e_add_list_pbox_title">
  8543. <span class="type_title">切换模式</span>
  8544. <div class="type_content">
  8545. <span
  8546. :class="{ active: typeMode == 1 }"
  8547. @click="typeMode = 1"
  8548. >目标树</span
  8549. >
  8550. <span
  8551. :class="{ active: typeMode == 2 }"
  8552. @click="typeMode = 2"
  8553. >目标罗盘</span
  8554. >
  8555. <span
  8556. :class="{ active: typeMode == 3 }"
  8557. @click="typeMode = 3"
  8558. >目标看板</span
  8559. >
  8560. </div>
  8561. </div>
  8562. <div class="e_add_list_pbox_content">
  8563. <Mind
  8564. :showBar="false"
  8565. :mindData="data"
  8566. style="width: 100%"
  8567. v-show="typeMode == 1"
  8568. ></Mind>
  8569. <Sunburst
  8570. :Josn="eJson"
  8571. :num="eJSONNum"
  8572. style="width: 100%"
  8573. v-if="typeMode == 2"
  8574. ></Sunburst>
  8575. <SeeBoard
  8576. :Josn="eJson"
  8577. :num="eJSONNum"
  8578. :ename="eTitle"
  8579. style="width: 100%"
  8580. v-if="typeMode == 3"
  8581. >
  8582. </SeeBoard>
  8583. </div>
  8584. </div>
  8585. </div>
  8586. </div>
  8587. </div>
  8588. </div>
  8589. </div>
  8590. </div>
  8591. <el-dialog
  8592. title="作业提交"
  8593. :visible.sync="dialogVisible"
  8594. :append-to-body="true"
  8595. width="500px"
  8596. :before-close="handleClose"
  8597. class="dialog_change"
  8598. >
  8599. <div class="marginT">
  8600. <div>上传文件</div>
  8601. <div
  8602. class="chapter_add"
  8603. @click="addImg($event)"
  8604. v-if="studyJuri[0].cover.length == 0"
  8605. >
  8606. <div class="up_photo">
  8607. <img src="../../assets/icon/uploadImg.png" alt />
  8608. </div>
  8609. <!-- <input
  8610. type="file"
  8611. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8612. style="display: none"
  8613. @change="beforeUpload1($event, 1)"
  8614. /> -->
  8615. <input
  8616. type="file"
  8617. accept="*"
  8618. style="display: none"
  8619. @change="beforeUpload1($event, 1)"
  8620. />
  8621. <!-- <input
  8622. type="file"
  8623. accept="image/*"
  8624. capture="camera"
  8625. style="display: none"
  8626. @change="beforeUpload1($event, 1)"
  8627. /> -->
  8628. </div>
  8629. <div
  8630. class="chapter_add"
  8631. style="
  8632. display: flex;
  8633. width: 100%;
  8634. flex-direction: row;
  8635. flex-wrap: wrap;
  8636. justify-content: flex-start;
  8637. padding: 15px 0;
  8638. "
  8639. v-if="studyJuri[0].cover.length > 0"
  8640. >
  8641. <div class="upCover">
  8642. <img
  8643. :src="studyJuri[0].cover[0].url"
  8644. alt
  8645. v-if="fileType == 0"
  8646. />
  8647. <img :src="word" alt v-else-if="fileType == 1" />
  8648. <img :src="video" alt v-else-if="fileType == 2" />
  8649. <img :src="word2" alt v-else-if="fileType == 3" />
  8650. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8651. <div class="deleteWord" @click="clean(1)">
  8652. <img src="../../assets/icon/deleteWorks.png" alt />
  8653. </div>
  8654. </div>
  8655. </div>
  8656. </div>
  8657. <div
  8658. class="upload_send"
  8659. @click="addCourseWorks(taskCount)"
  8660. v-if="!proVisible"
  8661. >
  8662. 提交
  8663. </div>
  8664. </el-dialog>
  8665. </div>
  8666. </div>
  8667. <div
  8668. class="pButton"
  8669. @click="(pzDialog = true), selectPz()"
  8670. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8671. >
  8672. <!-- 批 -->
  8673. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  8674. </div>
  8675. <div v-if="pzDialog == true" class="newDialogCss">
  8676. <div class="pzTop2">
  8677. <!-- <div>批注</div>
  8678. <div @click="pzDialog = false">
  8679. <img src="../../assets/close1.png" alt="" />
  8680. </div> -->
  8681. <div class="checkbox">
  8682. <div class="check" style="font-size: 25px">评课笔记</div>
  8683. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8684. </div>
  8685. </div>
  8686. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  8687. <div class="pzListBox" v-if="pzList && pzList.length">
  8688. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8689. <div class="pzNavTop">
  8690. <div>批</div>
  8691. <div>
  8692. {{
  8693. pz.username && pz.username.length > 5
  8694. ? pz.username.substring(0, 5) + "..."
  8695. : pz.username
  8696. }}的批注
  8697. </div>
  8698. <div
  8699. class="pzDelete"
  8700. v-if="pz.userid == userid"
  8701. @click="deletePz(pz.id)"
  8702. >
  8703. 删除
  8704. </div>
  8705. </div>
  8706. <div
  8707. @click="checkImg(getImgList(pz.content))"
  8708. class="pzContent cont"
  8709. v-html="pz.content"
  8710. v-if="pz.type == '1'"
  8711. ></div>
  8712. <div class="pzContent" v-if="pz.type == '2'">
  8713. <audio :src="pz.content" controls="controls" ref="audio">
  8714. Your browser does not support the audio element.
  8715. </audio>
  8716. </div>
  8717. <div class="pzContent" v-if="pz.type == '3'">
  8718. <img
  8719. :src="pz.content"
  8720. style="width: 90%; margin: 0 auto; display: block"
  8721. @click="previewImg(pz.content)"
  8722. />
  8723. </div>
  8724. <div class="time">
  8725. {{ pz.time }}
  8726. </div>
  8727. </div>
  8728. </div>
  8729. <div class="noPz" v-else>
  8730. <img src="../../assets/icon/noPz.png" alt="" />
  8731. </div>
  8732. <div class="addPzButton">
  8733. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8734. 添加批注
  8735. </div>
  8736. <!-- <div class="img1">
  8737. <div @click="(addPzDialog = true), (pzType = 2)">
  8738. <img src="../../assets/audio.png" /><span>音频</span>
  8739. </div>
  8740. </div> -->
  8741. </div>
  8742. </div>
  8743. </div>
  8744. <div v-if="addPzDialog == true" class="addDialogCss">
  8745. <div class="pzTop">
  8746. <div class="teacherPz">
  8747. <div class="teacherPzImg">
  8748. <img src="../../assets/icon/teacherPz.png" alt="" />
  8749. </div>
  8750. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8751. </div>
  8752. <div @click="addPzDialog = false">
  8753. <img src="../../assets/close1.png" alt="" />
  8754. </div>
  8755. </div>
  8756. <div class="addPzBox">
  8757. <div class="addPzCheck">
  8758. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8759. >文本</span
  8760. >
  8761. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8762. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8763. >音频</span
  8764. >
  8765. </div>
  8766. <div style="height: calc(100% - 95px)">
  8767. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8768. v-if="pzType == 1"></textarea> -->
  8769. <editor-bar
  8770. class="binfo_input pzConText"
  8771. style="width: 100% !important"
  8772. placeholder="请输入任务描述"
  8773. v-model="pzConText"
  8774. @change="change"
  8775. v-if="pzType == 1"
  8776. ></editor-bar>
  8777. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8778. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8779. <div @click="addImg($event)">
  8780. <el-button type="primary">上传图片</el-button>
  8781. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8782. @change="beforeUpload1($event, 4)" />
  8783. </div>
  8784. </div> -->
  8785. </div>
  8786. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8787. 确定
  8788. </div>
  8789. </div>
  8790. </div>
  8791. <div v-if="proVisible" class="mask">
  8792. <div class="progressBox">
  8793. <!-- <div id="closePro" class="closeCss">
  8794. <img src="../../assets/icon/close.png" alt />
  8795. </div> -->
  8796. <div class="lbox">
  8797. <img src="../../assets/loading.gif" />上传中,请稍后
  8798. </div>
  8799. <div style="margin-bottom: 10px">
  8800. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8801. </div>
  8802. <el-progress
  8803. :text-inside="true"
  8804. :stroke-width="20"
  8805. :percentage="progress"
  8806. style="width: 80%"
  8807. ></el-progress>
  8808. </div>
  8809. </div>
  8810. <div v-if="proVisible2" class="mask">
  8811. <div class="progressBox">
  8812. <div class="lbox">
  8813. <img src="../../assets/loading.gif" />上传中,请稍后
  8814. </div>
  8815. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8816. </div>
  8817. </div>
  8818. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8819. <img width="100%" :src="dialogImageUrl" alt />
  8820. </el-dialog>
  8821. <el-dialog
  8822. :title="noteName != '' ? noteName : '查看问卷'"
  8823. :visible.sync="dialogVisible5"
  8824. :append-to-body="true"
  8825. width="1000px"
  8826. :before-close="handleClose"
  8827. class="dialog_diy dialog_diy3"
  8828. >
  8829. <div>
  8830. <div
  8831. class="a_add_title"
  8832. style="
  8833. display: flex;
  8834. flex-direction: row;
  8835. align-items: center;
  8836. justify-content: center;
  8837. "
  8838. >
  8839. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8840. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8841. </div>
  8842. <div class="a_addBox">
  8843. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8844. <div
  8845. class="a_add_box"
  8846. v-for="(item1, index1) in askJson.askCount"
  8847. :key="index1"
  8848. >
  8849. <div class="a_add_head">
  8850. <div style="display: flex">
  8851. {{ index1 + 1 + "、" }}
  8852. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8853. </div>
  8854. <img
  8855. v-if="askJson.askJson[index1].img"
  8856. :src="askJson.askJson[index1].img"
  8857. style="height: 300px; margin-top: 10px; max-width: 100%"
  8858. />
  8859. </div>
  8860. <div class="a_add_body">
  8861. <div class="a_add_input">
  8862. <el-radio-group
  8863. v-model="radio[index1]"
  8864. v-if="
  8865. askJson.askJson[index1].type == '1' ||
  8866. !askJson.askJson[index1].type
  8867. "
  8868. >
  8869. <el-radio
  8870. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8871. .checkList"
  8872. :key="checkIndex"
  8873. :label="checkIndex"
  8874. :disabled="isAnswer"
  8875. class="redioStyle"
  8876. ><span v-html="item2"></span
  8877. ></el-radio>
  8878. </el-radio-group>
  8879. <el-checkbox-group
  8880. v-model="radio[index1]"
  8881. v-if="askJson.askJson[index1].type == '2'"
  8882. >
  8883. <el-checkbox
  8884. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8885. .checkList"
  8886. :key="checkIndex1"
  8887. :label="checkIndex1"
  8888. :disabled="isAnswer"
  8889. class="redioStyle"
  8890. ><span v-html="item2"></span>
  8891. </el-checkbox>
  8892. </el-checkbox-group>
  8893. </div>
  8894. </div>
  8895. </div>
  8896. </div>
  8897. </div>
  8898. <span slot="footer" class="dialog-footer">
  8899. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8900. >取 消</el-button
  8901. >
  8902. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8903. >确 定</el-button
  8904. >
  8905. </span>
  8906. </el-dialog>
  8907. <el-dialog
  8908. :title="noteName != '' ? noteName : '查看问卷'"
  8909. :visible.sync="dialogVisible5Teacher"
  8910. :append-to-body="true"
  8911. width="1000px"
  8912. :before-close="handleClose"
  8913. class="dialog_diy dialog_diy3"
  8914. >
  8915. <div>
  8916. <div class="w_name">
  8917. 学生姓名:<span>{{ sStudent.student }}</span>
  8918. </div>
  8919. <div
  8920. class="a_add_title"
  8921. style="
  8922. display: flex;
  8923. flex-direction: row;
  8924. align-items: center;
  8925. justify-content: center;
  8926. "
  8927. >
  8928. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8929. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8930. </div>
  8931. <div class="a_addBox">
  8932. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8933. <div
  8934. class="a_add_box"
  8935. v-for="(item1, index1) in askJson.askCount"
  8936. :key="index1"
  8937. >
  8938. <div class="a_add_head">
  8939. <div style="display: flex">
  8940. {{ index1 + 1 + "、" }}
  8941. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8942. </div>
  8943. <img
  8944. v-if="askJson.askJson[index1].img"
  8945. :src="askJson.askJson[index1].img"
  8946. style="height: 300px; margin-top: 10px; max-width: 100%"
  8947. />
  8948. </div>
  8949. <div class="a_add_body">
  8950. <div class="a_add_input">
  8951. <el-radio-group
  8952. v-model="radio[index1]"
  8953. v-if="
  8954. askJson.askJson[index1].type == '1' ||
  8955. !askJson.askJson[index1].type
  8956. "
  8957. >
  8958. <el-radio
  8959. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8960. .checkList"
  8961. :key="checkIndex"
  8962. :label="checkIndex"
  8963. :disabled="isAnswer"
  8964. class="redioStyle"
  8965. ><span v-html="item2"></span
  8966. ></el-radio>
  8967. </el-radio-group>
  8968. <el-checkbox-group
  8969. v-model="radio[index1]"
  8970. v-if="askJson.askJson[index1].type == '2'"
  8971. >
  8972. <el-checkbox
  8973. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8974. .checkList"
  8975. :key="checkIndex1"
  8976. :label="checkIndex1"
  8977. :disabled="isAnswer"
  8978. class="redioStyle"
  8979. ><span v-html="item2"></span>
  8980. </el-checkbox>
  8981. </el-checkbox-group>
  8982. </div>
  8983. </div>
  8984. </div>
  8985. </div>
  8986. </div>
  8987. <span slot="footer" class="dialog-footer">
  8988. <el-button
  8989. @click="dialogVisible5Teacher = false"
  8990. v-show="noteName == ''"
  8991. >取 消</el-button
  8992. >
  8993. <el-button
  8994. type="primary"
  8995. @click="addStudentAskTeacher"
  8996. v-show="noteName == ''"
  8997. >确 定</el-button
  8998. >
  8999. </span>
  9000. </el-dialog>
  9001. <el-dialog
  9002. :title="noteName != '' ? noteName : '查看选择题'"
  9003. :visible.sync="dialogVisibleChoice"
  9004. :append-to-body="true"
  9005. width="1000px"
  9006. :before-close="handleClose"
  9007. class="dialog_diy dialog_diy3"
  9008. >
  9009. <div>
  9010. <div class="a_addBox">
  9011. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  9012. <div
  9013. class="a_add_box"
  9014. v-for="(item1, index1) in testJson.testCount"
  9015. :key="index1"
  9016. >
  9017. <div class="a_add_head">
  9018. <div style="display: flex">
  9019. {{ index1 + 1 + "、" }}
  9020. <div
  9021. v-if="testJson.testJson[index1].type == '1'"
  9022. style="margin-right: 5px; min-width: 70px"
  9023. >
  9024. (单选题)
  9025. </div>
  9026. <div
  9027. v-if="testJson.testJson[index1].type == '2'"
  9028. style="margin-right: 5px; min-width: 70px"
  9029. >
  9030. (多选题)
  9031. </div>
  9032. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9033. </div>
  9034. <img
  9035. v-if="testJson.testJson[index1].img"
  9036. :src="testJson.testJson[index1].img"
  9037. style="height: 300px; margin-top: 10px; max-width: 100%"
  9038. />
  9039. </div>
  9040. <div
  9041. class="timuImgBox"
  9042. v-if="
  9043. testJson.testJson[index1].timuList &&
  9044. testJson.testJson[index1].timuList.length
  9045. "
  9046. >
  9047. <div
  9048. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9049. :key="tIndex"
  9050. class="timuImg"
  9051. @click.stop="previewImg(timg.src)"
  9052. >
  9053. <img :src="timg.src" alt="" />
  9054. </div>
  9055. </div>
  9056. <div class="a_add_body">
  9057. <div class="a_add_input">
  9058. <el-radio-group
  9059. v-model="radio[index1]"
  9060. v-if="testJson.testJson[index1].type == '1'"
  9061. >
  9062. <div class="radioBox">
  9063. <el-radio
  9064. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9065. .checkList"
  9066. :key="checkIndex"
  9067. :label="checkIndex"
  9068. :disabled="isAnswer"
  9069. class="redioStyle"
  9070. >
  9071. <div
  9072. style="margin-right: 10px"
  9073. v-if="item2 && item2.imgType && item2.imgType == 1"
  9074. >
  9075. <div class="inImg" @click.stop="previewImg(item2.src)">
  9076. <img :src="item2.src" alt="" />
  9077. </div>
  9078. </div>
  9079. <span v-else v-html="item2"></span>
  9080. </el-radio>
  9081. </div>
  9082. </el-radio-group>
  9083. <el-checkbox-group
  9084. v-model="radio[index1]"
  9085. v-if="testJson.testJson[index1].type == '2'"
  9086. >
  9087. <div class="radioBox">
  9088. <el-checkbox
  9089. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9090. .checkList"
  9091. :key="checkIndex"
  9092. :label="checkIndex"
  9093. :disabled="isAnswer"
  9094. class="redioStyle"
  9095. >
  9096. <div
  9097. style="margin-right: 10px"
  9098. v-if="item2 && item2.imgType && item2.imgType == 1"
  9099. >
  9100. <div class="inImg" @click.stop="previewImg(item2.src)">
  9101. <img :src="item2.src" alt="" />
  9102. </div>
  9103. </div>
  9104. <span v-else v-html="item2"></span>
  9105. </el-checkbox>
  9106. </div>
  9107. </el-checkbox-group>
  9108. </div>
  9109. </div>
  9110. </div>
  9111. </div>
  9112. </div>
  9113. <span slot="footer" class="dialog-footer">
  9114. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9115. >取 消</el-button
  9116. >
  9117. <el-button
  9118. type="primary"
  9119. @click="addStudentTest"
  9120. v-show="noteName == ''"
  9121. >确 定</el-button
  9122. >
  9123. </span>
  9124. </el-dialog>
  9125. <el-dialog
  9126. :title="noteName != '' ? noteName : '查看选择题'"
  9127. :visible.sync="dialogVisibleChoiceTeacher"
  9128. :append-to-body="true"
  9129. width="1000px"
  9130. :before-close="handleClose"
  9131. class="dialog_diy dialog_diy3"
  9132. >
  9133. <div>
  9134. <div class="w_name">
  9135. 学生姓名:<span>{{ sStudent.student }}</span>
  9136. </div>
  9137. <div class="a_addBox">
  9138. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  9139. <div
  9140. class="a_add_box"
  9141. v-for="(item1, index1) in testJson.testCount"
  9142. :key="index1"
  9143. >
  9144. <div class="a_add_head">
  9145. <div style="display: flex">
  9146. {{ index1 + 1 + "、" }}
  9147. <div
  9148. v-if="testJson.testJson[index1].type == '1'"
  9149. style="margin-right: 5px; min-width: 70px"
  9150. >
  9151. (单选题)
  9152. </div>
  9153. <div
  9154. v-if="testJson.testJson[index1].type == '2'"
  9155. style="margin-right: 5px; min-width: 70px"
  9156. >
  9157. (多选题)
  9158. </div>
  9159. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9160. </div>
  9161. <img
  9162. v-if="testJson.testJson[index1].img"
  9163. :src="testJson.testJson[index1].img"
  9164. style="height: 300px; margin-top: 10px; max-width: 100%"
  9165. />
  9166. </div>
  9167. <div
  9168. class="timuImgBox"
  9169. v-if="
  9170. testJson.testJson[index1].timuList &&
  9171. testJson.testJson[index1].timuList.length
  9172. "
  9173. >
  9174. <div
  9175. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9176. :key="tIndex"
  9177. class="timuImg"
  9178. @click.stop="previewImg(timg.src)"
  9179. >
  9180. <img :src="timg.src" alt="" />
  9181. </div>
  9182. </div>
  9183. <div class="a_add_body">
  9184. <div class="a_add_input">
  9185. <el-radio-group
  9186. v-model="radio[index1]"
  9187. v-if="testJson.testJson[index1].type == '1'"
  9188. >
  9189. <div class="radioBox">
  9190. <el-radio
  9191. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9192. .checkList"
  9193. :key="checkIndex"
  9194. :label="checkIndex"
  9195. :disabled="isAnswer"
  9196. class="redioStyle"
  9197. >
  9198. <div
  9199. style="margin-right: 10px"
  9200. v-if="item2 && item2.imgType && item2.imgType == 1"
  9201. >
  9202. <div class="inImg" @click.stop="previewImg(item2.src)">
  9203. <img :src="item2.src" alt="" />
  9204. </div>
  9205. </div>
  9206. <span v-else v-html="item2"></span>
  9207. </el-radio>
  9208. </div>
  9209. </el-radio-group>
  9210. <el-checkbox-group
  9211. v-model="radio[index1]"
  9212. v-if="testJson.testJson[index1].type == '2'"
  9213. >
  9214. <div class="radioBox">
  9215. <el-checkbox
  9216. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9217. .checkList"
  9218. :key="checkIndex"
  9219. :label="checkIndex"
  9220. :disabled="isAnswer"
  9221. class="redioStyle"
  9222. >
  9223. <div
  9224. style="margin-right: 10px"
  9225. v-if="item2 && item2.imgType && item2.imgType == 1"
  9226. >
  9227. <div class="inImg" @click.stop="previewImg(item2.src)">
  9228. <img :src="item2.src" alt="" />
  9229. </div>
  9230. </div>
  9231. <span v-else v-html="item2"></span>
  9232. </el-checkbox>
  9233. </div>
  9234. </el-checkbox-group>
  9235. </div>
  9236. </div>
  9237. </div>
  9238. </div>
  9239. </div>
  9240. <span slot="footer" class="dialog-footer">
  9241. <el-button
  9242. @click="dialogVisibleChoiceTeacher = false"
  9243. v-show="noteName == ''"
  9244. >取 消</el-button
  9245. >
  9246. <el-button
  9247. type="primary"
  9248. @click="addStudentTestTeacher"
  9249. v-show="noteName == ''"
  9250. >确 定</el-button
  9251. >
  9252. </span>
  9253. </el-dialog>
  9254. <el-dialog
  9255. title="查看富文本"
  9256. :visible.sync="dialogVisible1"
  9257. :append-to-body="true"
  9258. width="500px"
  9259. :before-close="handleClose"
  9260. class="dialog_diy textCss"
  9261. >
  9262. <el-form style="font-size: 20px">
  9263. <el-form-item label="文本标题" class="textTitle">
  9264. <div style="font-size: 20px">{{ text.name }}</div>
  9265. </el-form-item>
  9266. <div>富文本内容</div>
  9267. <div
  9268. v-html="text.url"
  9269. style="font-size: 18px; padding: 40px 0 0 0"
  9270. ></div>
  9271. </el-form>
  9272. <span slot="footer" class="dialog-footer">
  9273. <el-button type="primary" @click="dialogVisible1 = false"
  9274. >确定</el-button
  9275. >
  9276. </span>
  9277. </el-dialog>
  9278. <el-dialog
  9279. title="文件预览"
  9280. :visible.sync="dialogVisible3"
  9281. width="50%"
  9282. :before-close="handleClose"
  9283. class="dialog_diy"
  9284. :class="{ fullStyle: full }"
  9285. >
  9286. <div slot="title" class="header-title">
  9287. <div style="color: #fff">文件预览</div>
  9288. <div style="position: absolute; top: 19px; right: 50px">
  9289. <img
  9290. src="../../assets/full.png"
  9291. style="height: 16px; cursor: pointer"
  9292. alt=""
  9293. @click="fullTools"
  9294. />
  9295. </div>
  9296. </div>
  9297. <pdf
  9298. v-if="showPDF"
  9299. :pdfUrl="pptImgUrl"
  9300. style="width: 100%; height: 520px; overflow: auto"
  9301. :class="{ fullStyle: full }"
  9302. ></pdf>
  9303. <iframe
  9304. v-else
  9305. :src="pptImgUrl"
  9306. frameborder="0"
  9307. width="100%"
  9308. height="600"
  9309. :class="{ fullStyle: full }"
  9310. ></iframe>
  9311. </el-dialog>
  9312. <el-dialog
  9313. title="文件预览"
  9314. :visible.sync="dialogVisible6"
  9315. width="50%"
  9316. :before-close="handleClose"
  9317. class="dialog_diy"
  9318. >
  9319. <iframe
  9320. :src="pptImgUrl1"
  9321. frameborder="0"
  9322. width="100%"
  9323. height="600"
  9324. ></iframe>
  9325. </el-dialog>
  9326. <el-dialog
  9327. title="提示"
  9328. :visible.sync="dialogVisible4"
  9329. :append-to-body="true"
  9330. width="800px"
  9331. :before-close="handleClose"
  9332. class="dialog_diy notice"
  9333. >
  9334. <div>此功能暂未开放!</div>
  9335. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9336. </el-dialog>
  9337. <el-dialog
  9338. title="问答"
  9339. :visible.sync="answerDialogVisible"
  9340. :append-to-body="true"
  9341. width="800px"
  9342. :before-close="handleClose"
  9343. class="dialog_diy"
  9344. >
  9345. <div>
  9346. <div
  9347. style="
  9348. display: flex;
  9349. flex-wrap: nowrap;
  9350. flex-direction: column;
  9351. position: relative;
  9352. "
  9353. >
  9354. <div class="queTop" style="padding: 20px 0 20px 0">
  9355. <div class="question">
  9356. <img src="../../assets/icon/question.png" alt />
  9357. </div>
  9358. <div class="queTitle">
  9359. <div style="width: 90px; min-width: 90px">提问:</div>
  9360. <div>{{ answerQ }}</div>
  9361. </div>
  9362. </div>
  9363. <div class="ediBottom">
  9364. <textarea
  9365. rows="6"
  9366. class="binfo_input"
  9367. cols
  9368. style="width: 95%; height: 120px"
  9369. v-model="questionAnswer"
  9370. ></textarea>
  9371. </div>
  9372. </div>
  9373. </div>
  9374. <div slot="footer">
  9375. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9376. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9377. </div>
  9378. </el-dialog>
  9379. <el-dialog
  9380. title="倒计时"
  9381. :visible.sync="timeDialogVisible"
  9382. :append-to-body="true"
  9383. width="800px"
  9384. :before-close="handleClose"
  9385. class="dialog_diy"
  9386. >
  9387. <div>
  9388. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9389. </div>
  9390. <div slot="footer">
  9391. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9392. </div>
  9393. </el-dialog>
  9394. <el-dialog
  9395. title="权限设置"
  9396. :visible.sync="juriVisible"
  9397. :append-to-body="true"
  9398. width="400px"
  9399. :before-close="handleClose"
  9400. class="dialog_diy"
  9401. >
  9402. <div>
  9403. <div class="open_box">
  9404. <div class="switch_box">
  9405. <span>允许学生查看所有作业</span>
  9406. <el-switch
  9407. v-model="sIsOpen"
  9408. active-text=""
  9409. class="switchCss"
  9410. @change="updateSLook"
  9411. ></el-switch>
  9412. </div>
  9413. <div
  9414. class="switch_box"
  9415. v-if="
  9416. courseDetail.userid == userid ||
  9417. (courseDetail.course_teacher &&
  9418. courseDetail.course_teacher.indexOf(userid) != -1)
  9419. "
  9420. >
  9421. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9422. <span>禁止学生查看所有阶段</span>
  9423. <el-switch
  9424. v-model="IsLookOpen"
  9425. active-text=""
  9426. class="switchCss"
  9427. @change="updateLookOpen"
  9428. ></el-switch>
  9429. </div>
  9430. <div class="switch_box" v-if="courseDetail.userid == userid">
  9431. <span>开启跟随模式</span>
  9432. <el-switch
  9433. v-model="IsFollow"
  9434. active-text=""
  9435. class="switchCss"
  9436. @change="updateFollow"
  9437. ></el-switch>
  9438. </div>
  9439. </div>
  9440. </div>
  9441. <div slot="footer">
  9442. <el-button
  9443. style="background: #409efe; color: #fff"
  9444. @click="juriVisible = false"
  9445. >关 闭</el-button
  9446. >
  9447. </div>
  9448. </el-dialog>
  9449. <el-dialog
  9450. title="查看视频"
  9451. :visible.sync="videoVisible"
  9452. :append-to-body="true"
  9453. width="1000px"
  9454. :before-close="handleClose"
  9455. class="dialog_diy1"
  9456. >
  9457. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9458. <video-player
  9459. class="video-player vjs-custom-skin"
  9460. :playsinline="true"
  9461. :options="videoDetail"
  9462. @play="onPlayerPlay($event)"
  9463. style="width: 100%; height: 100%"
  9464. ></video-player>
  9465. </div>
  9466. <div slot="footer">
  9467. <el-button
  9468. style="background: #409efe; color: #fff"
  9469. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9470. >
  9471. 关 闭</el-button
  9472. >
  9473. </div>
  9474. </el-dialog>
  9475. <el-dialog
  9476. title="查看详情"
  9477. :visible.sync="commentDialogVisible"
  9478. :append-to-body="true"
  9479. width="800px"
  9480. :before-close="handleClose"
  9481. class="dialog_diy"
  9482. >
  9483. <div class="commentTop">
  9484. <div class="studentDetail">
  9485. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9486. <div class="nameAndTime">
  9487. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9488. <div>{{ commentDetail.time }}</div>
  9489. </div>
  9490. <div
  9491. class="returnBtn"
  9492. style="margin-left: auto; width: 80px"
  9493. v-if="
  9494. commentDetail.works &&
  9495. commentDetail.type == 0 &&
  9496. (tType == 1 || tType == 4)
  9497. "
  9498. @click="
  9499. showPicturePaint(
  9500. commentDetail.img ? commentDetail.img : commentDetail.works
  9501. )
  9502. "
  9503. >
  9504. 教师批注
  9505. </div>
  9506. </div>
  9507. <div
  9508. class="worksAnswer"
  9509. v-if="commentDetail.works && commentDetail.type == 2"
  9510. >
  9511. {{ JSON.parse(commentDetail.works)[0].answer }}
  9512. </div>
  9513. <div
  9514. class="worksAnswer"
  9515. v-if="commentDetail.works && commentDetail.type == 1"
  9516. >
  9517. <img
  9518. src="../../assets/teacherWork.png"
  9519. v-if="commentDetail.ateacher"
  9520. class="w_teachert"
  9521. />
  9522. <pdf
  9523. v-if="showPDF"
  9524. :pdfUrl="pptImgUrl"
  9525. style="width: 100%; height: 520px; overflow: auto"
  9526. :class="{ fullStyle: full }"
  9527. ></pdf>
  9528. <iframe
  9529. v-else
  9530. :src="pptImgUrl"
  9531. frameborder="0"
  9532. width="100%"
  9533. height="600"
  9534. :class="{ fullStyle: full }"
  9535. ></iframe>
  9536. </div>
  9537. <div
  9538. class="worksAnswer"
  9539. v-if="commentDetail.works && commentDetail.type == 0"
  9540. >
  9541. <img
  9542. src="../../assets/teacherWork.png"
  9543. v-if="commentDetail.ateacher"
  9544. class="w_teachert"
  9545. style="right: 105px"
  9546. />
  9547. <img
  9548. :src="commentDetail.works"
  9549. alt=""
  9550. @click="previewImg(commentDetail.works)"
  9551. />
  9552. </div>
  9553. <div
  9554. class="worksAnswer"
  9555. v-if="commentDetail.works && commentDetail.type == 3"
  9556. >
  9557. <img
  9558. src="../../assets/teacherWork.png"
  9559. v-if="commentDetail.ateacher"
  9560. class="w_teachert"
  9561. />
  9562. <video-player
  9563. class="video-player vjs-custom-skin"
  9564. :playsinline="true"
  9565. :options="videoDetail"
  9566. @play="onPlayerPlay($event)"
  9567. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9568. ></video-player>
  9569. </div>
  9570. <div
  9571. class="worksAnswer"
  9572. v-if="commentDetail.works && commentDetail.type == 10"
  9573. >
  9574. <div class="cont" v-html="commentDetail.works.text"></div>
  9575. </div>
  9576. <div
  9577. class="worksAnswer codeFileBox"
  9578. v-if="commentDetail.works && commentDetail.type == 12"
  9579. @click="downloadFile(commentDetail.works)"
  9580. >
  9581. <img src="../../assets/icon/codeFile.png" />
  9582. <div>点击下载文件</div>
  9583. </div>
  9584. <div
  9585. class="worksAnswer codeFileBox"
  9586. v-if="commentDetail.works && commentDetail.type == 15"
  9587. @click="
  9588. openCocoPi(
  9589. 57,
  9590. commentIndexJson.toolIndex,
  9591. commentDetail.userid,
  9592. commentDetail.sName
  9593. )
  9594. "
  9595. >
  9596. <img src="../../assets/icon/codeFile.png" />
  9597. <div>点击打开CocoPi</div>
  9598. </div>
  9599. <div
  9600. class="worksAnswer"
  9601. v-if="commentDetail.works && commentDetail.type == 13"
  9602. >
  9603. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9604. </div>
  9605. <div
  9606. class="worksAnswer"
  9607. v-if="commentDetail.works && commentDetail.type == 4"
  9608. >
  9609. <div class="evalCss">
  9610. <div class="nav">请选择星星进行评分</div>
  9611. <div class="middleBox" v-if="eScore.eStar">
  9612. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9613. <div class="nameAndrate">
  9614. <div>{{ e.value }}</div>
  9615. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9616. </div>
  9617. <div v-if="e.detail">{{ e.detail }}</div>
  9618. </div>
  9619. <div class="bz">
  9620. <textarea
  9621. disabled
  9622. rows="4"
  9623. class="pj"
  9624. style="
  9625. padding: 10px 5px;
  9626. width: 70%;
  9627. background: #f7f6f9;
  9628. font-size: 14px;
  9629. text-indent: 10px;
  9630. color: #000;
  9631. "
  9632. cols
  9633. v-model="eScore.eBzText"
  9634. placeholder="请输入评价内容..."
  9635. ></textarea>
  9636. </div>
  9637. </div>
  9638. </div>
  9639. </div>
  9640. <div class="comment">
  9641. <div class="commentList">
  9642. <div class="commentImg">
  9643. <img
  9644. @click="
  9645. isLikes(
  9646. commentDetail.wid,
  9647. userid,
  9648. 1,
  9649. null,
  9650. commentDetail.isLikes
  9651. )
  9652. "
  9653. :src="commentDetail.isLikes == true ? likes : noLikes"
  9654. alt=""
  9655. />
  9656. </div>
  9657. <div>{{ commentDetail.likesCount }}</div>
  9658. </div>
  9659. <div class="commentList">
  9660. <div class="commentImg">
  9661. <img src="../../assets/icon/comment/comment.png" alt="" />
  9662. </div>
  9663. <div>{{ commentDetail.commentCount }}</div>
  9664. </div>
  9665. </div>
  9666. <div class="drawPBox" v-if="commentDetail.img">
  9667. <span>教师批注</span>
  9668. <img
  9669. :src="commentDetail.img"
  9670. alt=""
  9671. @click="previewImg(commentDetail.img)"
  9672. />
  9673. <span
  9674. class="deleteImg"
  9675. v-if="tType == 1 || tType == 4"
  9676. @click.stop="deletePicturePaint(commentDetail.wid)"
  9677. style="
  9678. font-size: 14px;
  9679. width: auto !important;
  9680. color: #b4b4b4;
  9681. top: unset;
  9682. bottom: 0;
  9683. border: none;
  9684. padding: 0;
  9685. height: auto !important;
  9686. margin: 0;
  9687. "
  9688. >删除</span
  9689. >
  9690. </div>
  9691. </div>
  9692. <div class="commentBox">
  9693. <div class="pl">评论:</div>
  9694. <div style="max-height: 200px; overflow: auto">
  9695. <div
  9696. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9697. style="padding: 10px 0 0 0"
  9698. >
  9699. <div
  9700. class="studentDetail"
  9701. style="padding-top: 10px"
  9702. v-for="(co, coIndex) in commentDetail.commentJson"
  9703. :key="coIndex"
  9704. >
  9705. <div class="tx" style="min-width: 50px">
  9706. <img src="../../assets/avatar.png" alt="" />
  9707. </div>
  9708. <div class="plPerson">
  9709. <div class="plName">
  9710. <div>{{ co.commentPeople }}</div>
  9711. <div style="margin-left: 5px">
  9712. {{ co.commentTime }}
  9713. </div>
  9714. <div
  9715. class="deleteComment"
  9716. v-if="userid == co.userid"
  9717. @click="deleteComment(co.wid)"
  9718. >
  9719. 删除
  9720. </div>
  9721. </div>
  9722. <div class="plContent">{{ co.commentText }}</div>
  9723. </div>
  9724. </div>
  9725. </div>
  9726. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9727. </div>
  9728. </div>
  9729. <div style="margin-top: 10px">
  9730. <div class="displayBox">
  9731. <div
  9732. style="
  9733. color: #556db4;
  9734. font-size: 14px;
  9735. font-weight: bold;
  9736. padding-bottom: 10px;
  9737. "
  9738. >
  9739. 评价
  9740. </div>
  9741. <div class="easy_comment" v-if="false">
  9742. <div
  9743. v-for="(p, pIndex) in PlTextList"
  9744. :key="pIndex"
  9745. @click="fastText(p, 1)"
  9746. >
  9747. {{ p }}
  9748. </div>
  9749. </div>
  9750. </div>
  9751. <div>
  9752. <textarea
  9753. rows="3"
  9754. class="pj"
  9755. style="padding: 10px 5px"
  9756. cols
  9757. v-model="commentText"
  9758. placeholder="请输入评论"
  9759. ></textarea>
  9760. </div>
  9761. </div>
  9762. <div slot="footer">
  9763. <el-button
  9764. @click="
  9765. (commentDialogVisible = false),
  9766. (commentIndexJson = {}),
  9767. videoDetail.sources && videoDetail.sources[0]
  9768. ? (videoDetail.sources[0].src = '')
  9769. : ''
  9770. "
  9771. >取 消</el-button
  9772. >
  9773. <el-button
  9774. type="primary"
  9775. @click="addComment(commentDetail.wid, userid, 2)"
  9776. >确 定</el-button
  9777. >
  9778. </div>
  9779. </el-dialog>
  9780. <el-dialog
  9781. title="查看文档"
  9782. :visible.sync="fullDialogVisible"
  9783. :append-to-body="true"
  9784. width="100%"
  9785. :before-close="handleClose"
  9786. :show-close="false"
  9787. class="dialog_diy full_diy"
  9788. :class="{ full_diy2: fulltype == 3 }"
  9789. >
  9790. <div slot="title" class="header-title">
  9791. <div style="color: #fff">查看文档</div>
  9792. <div
  9793. @click="fullDialogVisible = false"
  9794. style="
  9795. cursor: pointer;
  9796. position: absolute;
  9797. top: 20px;
  9798. right: 20px;
  9799. color: #fff;
  9800. "
  9801. >
  9802. 退出全屏
  9803. </div>
  9804. </div>
  9805. <div style="height: 100%">
  9806. <div
  9807. class="wheel"
  9808. v-if="
  9809. fullUrl.indexOf(
  9810. 'https://view.officeapps.live.com/op/view.aspx?src='
  9811. ) != -1 && fulltype == 2
  9812. "
  9813. style="width: 95%; margin: 0 auto"
  9814. >
  9815. <iframe
  9816. style="width: 100%; height: 100%; border: none"
  9817. :src="fullUrl"
  9818. ></iframe>
  9819. </div>
  9820. <iframe
  9821. v-else-if="fulltype == 2"
  9822. style="width: 100%; height: 100%; border: none"
  9823. :src="fullUrl"
  9824. security="restricted"
  9825. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9826. ></iframe>
  9827. <pdf
  9828. v-else-if="fulltype == 3"
  9829. :pdfUrl="fullUrl"
  9830. style="width: 100%; height: 100%; overflow: auto"
  9831. ></pdf>
  9832. <div
  9833. class="wheel"
  9834. v-if="fulltype == 1"
  9835. style="
  9836. box-shadow: 0 0 6px 1px #f2f2f2;
  9837. width: 100%;
  9838. background: #f1f1f1;
  9839. "
  9840. >
  9841. <div class="title" style="width: 100%; box-sizing: border-box">
  9842. 查看文档
  9843. </div>
  9844. <el-form class="textBox" style="height: 90%">
  9845. <el-form-item class="textTitle">
  9846. <div style="font-size: 22px">
  9847. {{ fullUrl.name }}
  9848. </div>
  9849. </el-form-item>
  9850. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9851. <div
  9852. v-html="fullUrl.url"
  9853. class="textContent"
  9854. style="height: auto"
  9855. ></div>
  9856. </el-form>
  9857. </div>
  9858. </div>
  9859. <!-- <div slot="footer">
  9860. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9861. </div> -->
  9862. </el-dialog>
  9863. <el-dialog
  9864. title="个人评价"
  9865. :visible.sync="studentEvalDialogVisible"
  9866. :append-to-body="true"
  9867. width="800px"
  9868. :before-close="handleClose"
  9869. class="dialog_diy"
  9870. >
  9871. <div class="evalCss">
  9872. <div class="nav">请选择星星进行评分</div>
  9873. <div class="middleBox" v-if="eScore.eStar">
  9874. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9875. <div class="nameAndrate">
  9876. <div>{{ e.value }}</div>
  9877. <el-rate
  9878. v-model="eScore.eStar[eIndex]"
  9879. :disabled="isStar"
  9880. ></el-rate>
  9881. </div>
  9882. <div v-if="e.detail">{{ e.detail }}</div>
  9883. </div>
  9884. <div class="easy_comment" v-if="false">
  9885. <div
  9886. v-for="(p, pIndex) in PlTextList"
  9887. :key="pIndex"
  9888. @click="fastText(p, 2)"
  9889. >
  9890. {{ p }}
  9891. </div>
  9892. </div>
  9893. <div class="bz">
  9894. <textarea
  9895. :disabled="isStar"
  9896. rows="4"
  9897. class="pj"
  9898. style="
  9899. padding: 10px 5px;
  9900. width: 70%;
  9901. background: #f7f6f9;
  9902. font-size: 14px;
  9903. text-indent: 10px;
  9904. "
  9905. cols
  9906. v-model="eScore.eBzText"
  9907. placeholder="请输入评价内容..."
  9908. ></textarea>
  9909. </div>
  9910. </div>
  9911. </div>
  9912. <div slot="footer">
  9913. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9914. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9915. >确 定</el-button
  9916. >
  9917. </div>
  9918. </el-dialog>
  9919. <el-dialog
  9920. title="个人评价"
  9921. :visible.sync="studentEvalDialogVisibleTeacher"
  9922. :append-to-body="true"
  9923. width="800px"
  9924. :before-close="handleClose"
  9925. class="dialog_diy"
  9926. >
  9927. <div class="w_name">
  9928. 学生姓名:<span>{{ sStudent.student }}</span>
  9929. </div>
  9930. <div class="evalCss">
  9931. <div class="nav">请选择星星进行评分</div>
  9932. <div class="middleBox" v-if="eScore.eStar">
  9933. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9934. <div class="nameAndrate">
  9935. <div>{{ e.value }}</div>
  9936. <el-rate
  9937. v-model="eScore.eStar[eIndex]"
  9938. :disabled="isStar"
  9939. ></el-rate>
  9940. </div>
  9941. <div v-if="e.detail">{{ e.detail }}</div>
  9942. </div>
  9943. <div class="easy_comment" v-if="false">
  9944. <div
  9945. v-for="(p, pIndex) in PlTextList"
  9946. :key="pIndex"
  9947. @click="fastText(p, 2)"
  9948. >
  9949. {{ p }}
  9950. </div>
  9951. </div>
  9952. <div class="bz">
  9953. <textarea
  9954. :disabled="isStar"
  9955. rows="4"
  9956. class="pj"
  9957. style="
  9958. padding: 10px 5px;
  9959. width: 70%;
  9960. background: #f7f6f9;
  9961. font-size: 14px;
  9962. text-indent: 10px;
  9963. "
  9964. cols
  9965. v-model="eScore.eBzText"
  9966. placeholder="请输入评价内容..."
  9967. ></textarea>
  9968. </div>
  9969. </div>
  9970. </div>
  9971. <div slot="footer">
  9972. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9973. >取 消</el-button
  9974. >
  9975. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9976. >确 定</el-button
  9977. >
  9978. </div>
  9979. </el-dialog>
  9980. <el-dialog
  9981. title="选择填空"
  9982. :visible.sync="dialogVisibleSelect"
  9983. :append-to-body="true"
  9984. width="90%"
  9985. :before-close="handleClose"
  9986. class="dialog_diy dialog_diy3"
  9987. >
  9988. <div v-if="selectJson">
  9989. <div class="select_box2">
  9990. <div class="select_box2_title">
  9991. <div>选择填空</div>
  9992. <div>请选择对应的答案进行答题!</div>
  9993. </div>
  9994. <div class="select_box2_box">
  9995. <div class="select_box2_img">
  9996. <img
  9997. :src="selectJson.url"
  9998. @click="previewImg(selectJson.url)"
  9999. alt=""
  10000. />
  10001. </div>
  10002. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10003. <div style="padding-top: 15px">
  10004. <div class="select_answer_title" v-if="isSelect">
  10005. {{ selectAnswer.stu }}
  10006. </div>
  10007. <div class="select_answer_title" v-else>
  10008. 根据题目选择对应答案
  10009. </div>
  10010. <div
  10011. class="select_box2_answer_box"
  10012. v-for="(item2, checkIndex) in selectJson.select"
  10013. :key="checkIndex"
  10014. >
  10015. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10016. <el-select
  10017. :disabled="isSelect"
  10018. v-model="selectAnswer.answer[checkIndex]"
  10019. placeholder="请选择正确答案"
  10020. >
  10021. <el-option
  10022. v-for="(e, eIndex) in selectJson.select"
  10023. :key="eIndex"
  10024. :label="e"
  10025. :value="eIndex"
  10026. >
  10027. </el-option>
  10028. </el-select>
  10029. </div>
  10030. </div>
  10031. <div
  10032. class="rightAnswerCss"
  10033. v-if="isSelect && (tType == 1 || tType == 4)"
  10034. >
  10035. <div
  10036. v-for="(a, aIndex) in selectJson.answer"
  10037. :key="aIndex"
  10038. class="rightAnswer"
  10039. >
  10040. <div
  10041. v-if="selectAnswer.answer[aIndex] === a"
  10042. style="color: #767de1"
  10043. >
  10044. 回答正确
  10045. </div>
  10046. <div v-else>回答错误</div>
  10047. <div
  10048. style="margin-left: 10px"
  10049. v-if="selectAnswer.answer[aIndex] !== a"
  10050. >
  10051. 正确答案:
  10052. </div>
  10053. <div
  10054. :class="
  10055. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10056. "
  10057. >
  10058. {{ selectJson.select[a] }}
  10059. </div>
  10060. </div>
  10061. </div>
  10062. </div>
  10063. <div class="upAnswerCss">
  10064. <el-button
  10065. type="primary"
  10066. @click="addSelectAnswer"
  10067. v-if="!isSelect"
  10068. >提交答案</el-button
  10069. >
  10070. </div>
  10071. </div>
  10072. </div>
  10073. </div>
  10074. </el-dialog>
  10075. <el-dialog
  10076. title="选择填空"
  10077. :visible.sync="dialogVisibleSelectTeacher"
  10078. :append-to-body="true"
  10079. width="90%"
  10080. :before-close="handleClose"
  10081. class="dialog_diy dialog_diy3"
  10082. >
  10083. <div v-if="selectJson">
  10084. <div class="w_name">
  10085. 学生姓名:<span>{{ sStudent.student }}</span>
  10086. </div>
  10087. <div class="select_box2">
  10088. <div class="select_box2_title">
  10089. <div>选择填空</div>
  10090. <div>请选择对应的答案进行答题!</div>
  10091. </div>
  10092. <div class="select_box2_box">
  10093. <div class="select_box2_img">
  10094. <img
  10095. :src="selectJson.url"
  10096. @click="previewImg(selectJson.url)"
  10097. alt=""
  10098. />
  10099. </div>
  10100. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10101. <div style="padding-top: 15px">
  10102. <div class="select_answer_title" v-if="isSelect">
  10103. {{ selectAnswer.stu }}
  10104. </div>
  10105. <div class="select_answer_title" v-else>
  10106. 根据题目选择对应答案
  10107. </div>
  10108. <div
  10109. class="select_box2_answer_box"
  10110. v-for="(item2, checkIndex) in selectJson.select"
  10111. :key="checkIndex"
  10112. >
  10113. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10114. <el-select
  10115. :disabled="isSelect"
  10116. v-model="selectAnswer.answer[checkIndex]"
  10117. placeholder="请选择正确答案"
  10118. >
  10119. <el-option
  10120. v-for="(e, eIndex) in selectJson.select"
  10121. :key="eIndex"
  10122. :label="e"
  10123. :value="eIndex"
  10124. >
  10125. </el-option>
  10126. </el-select>
  10127. </div>
  10128. </div>
  10129. <div
  10130. class="rightAnswerCss"
  10131. v-if="isSelect && (tType == 1 || tType == 4)"
  10132. >
  10133. <div
  10134. v-for="(a, aIndex) in selectJson.answer"
  10135. :key="aIndex"
  10136. class="rightAnswer"
  10137. >
  10138. <div
  10139. v-if="selectAnswer.answer[aIndex] === a"
  10140. style="color: #767de1"
  10141. >
  10142. 回答正确
  10143. </div>
  10144. <div v-else>回答错误</div>
  10145. <div
  10146. style="margin-left: 10px"
  10147. v-if="selectAnswer.answer[aIndex] !== a"
  10148. >
  10149. 正确答案:
  10150. </div>
  10151. <div
  10152. :class="
  10153. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10154. "
  10155. >
  10156. {{ selectJson.select[a] }}
  10157. </div>
  10158. </div>
  10159. </div>
  10160. </div>
  10161. <div class="upAnswerCss">
  10162. <el-button
  10163. type="primary"
  10164. @click="addSelectAnswerTeacher"
  10165. v-if="!isSelect"
  10166. >提交答案</el-button
  10167. >
  10168. </div>
  10169. </div>
  10170. </div>
  10171. </div>
  10172. </el-dialog>
  10173. <el-dialog
  10174. title="教师评分"
  10175. :visible.sync="dialogVisibleScore"
  10176. :append-to-body="true"
  10177. width="800px"
  10178. :before-close="handleClose"
  10179. class="dialog_diy"
  10180. >
  10181. <div>
  10182. <div class="studentDetail">
  10183. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10184. <div class="nameAndTime">
  10185. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10186. <div>{{ commentDetail.time }}</div>
  10187. </div>
  10188. </div>
  10189. <div
  10190. class="worksAnswer"
  10191. v-if="commentDetail.works && commentDetail.type == 2"
  10192. >
  10193. {{ JSON.parse(commentDetail.works)[0].answer }}
  10194. </div>
  10195. <div
  10196. class="worksAnswer"
  10197. v-if="commentDetail.works && commentDetail.type == 1"
  10198. >
  10199. <pdf
  10200. v-if="showPDF"
  10201. :pdfUrl="pptImgUrl"
  10202. style="width: 100%; height: 520px; overflow: auto"
  10203. :class="{ fullStyle: full }"
  10204. ></pdf>
  10205. <iframe
  10206. v-else
  10207. :src="pptImgUrl"
  10208. frameborder="0"
  10209. width="100%"
  10210. height="600"
  10211. :class="{ fullStyle: full }"
  10212. ></iframe>
  10213. </div>
  10214. <div
  10215. class="worksAnswer"
  10216. v-if="commentDetail.works && commentDetail.type == 0"
  10217. >
  10218. <img
  10219. :src="commentDetail.works"
  10220. alt=""
  10221. @click="previewImg(commentDetail.works)"
  10222. />
  10223. </div>
  10224. <div
  10225. class="worksAnswer"
  10226. v-if="commentDetail.works && commentDetail.type == 3"
  10227. >
  10228. <video-player
  10229. class="video-player vjs-custom-skin"
  10230. :playsinline="true"
  10231. :options="videoDetail"
  10232. @play="onPlayerPlay($event)"
  10233. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10234. ></video-player>
  10235. </div>
  10236. <div
  10237. class="worksAnswer codeFileBox"
  10238. v-if="commentDetail.works && commentDetail.type == 12"
  10239. @click="downloadFile(commentDetail.works)"
  10240. >
  10241. <img src="../../assets/icon/codeFile.png" />
  10242. <div>点击下载文件</div>
  10243. </div>
  10244. <div
  10245. class="worksAnswer codeFileBox"
  10246. v-if="commentDetail.works && commentDetail.type == 15"
  10247. @click="
  10248. openCocoPi(
  10249. 57,
  10250. commentIndexJson.toolIndex,
  10251. commentDetail.userid,
  10252. commentDetail.sName
  10253. )
  10254. "
  10255. >
  10256. <img src="../../assets/icon/codeFile.png" />
  10257. <div>点击打开CocoPi</div>
  10258. </div>
  10259. <div
  10260. class="worksAnswer"
  10261. v-if="commentDetail.works && commentDetail.type == 13"
  10262. >
  10263. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10264. </div>
  10265. <div class="scoreBox">
  10266. <span class="t">请输入分数</span>
  10267. <el-input-number
  10268. :disabled="courseDetail.userid != userid"
  10269. v-model="wScore"
  10270. :controls="false"
  10271. :min="0"
  10272. :max="100"
  10273. ></el-input-number>
  10274. </div>
  10275. <div class="scoreDetailBox">
  10276. <span class="t">评分评论</span>
  10277. <el-input
  10278. type="textarea"
  10279. :rows="5"
  10280. :disabled="courseDetail.userid != userid"
  10281. resize="none"
  10282. v-model="scoreDetail"
  10283. placeholder="请输入对学生的评价"
  10284. >
  10285. </el-input>
  10286. </div>
  10287. </div>
  10288. <span slot="footer" class="dialog-footer">
  10289. <el-button
  10290. @click="
  10291. (dialogVisibleScore = false),
  10292. (commentIndexJson = {}),
  10293. videoDetail.sources && videoDetail.sources[0]
  10294. ? (videoDetail.sources[0].src = '')
  10295. : ''
  10296. "
  10297. >取 消</el-button
  10298. >
  10299. <el-button
  10300. type="primary"
  10301. v-if="courseDetail.userid == userid"
  10302. @click="scoreWork(commentDetail.wid)"
  10303. >确 定
  10304. </el-button>
  10305. </span>
  10306. </el-dialog>
  10307. <el-dialog
  10308. title="连词成句"
  10309. :visible.sync="dialogVisibleSentence"
  10310. :append-to-body="true"
  10311. width="1000px"
  10312. :before-close="handleClose"
  10313. class="dialog_diy dialog_diy3"
  10314. >
  10315. <div>
  10316. <div class="sentenBox">
  10317. <div
  10318. v-for="(st, stIndex) in sentenceList"
  10319. :key="stIndex"
  10320. style="padding-bottom: 20px"
  10321. >
  10322. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10323. <div class="cardList" v-if="st.chooseSenList">
  10324. <div class="cardBox">
  10325. <div
  10326. v-for="(r, rIndex) in st.chooseSenList"
  10327. :key="rIndex"
  10328. @click="returnCard(r, stIndex, rIndex)"
  10329. >
  10330. <el-tooltip
  10331. class="item"
  10332. effect="light"
  10333. :content="r"
  10334. placement="top"
  10335. v-if="r != '' && r != undefined"
  10336. >
  10337. <div
  10338. :class="{
  10339. isCard: r,
  10340. isChooseCard: r == '' || r == undefined,
  10341. }"
  10342. >
  10343. <div>{{ r }}</div>
  10344. </div>
  10345. </el-tooltip>
  10346. <div
  10347. :class="{
  10348. isCard: r,
  10349. isChooseCard: r == '' || r == undefined,
  10350. }"
  10351. v-else
  10352. >
  10353. <div>{{ r }}</div>
  10354. </div>
  10355. </div>
  10356. </div>
  10357. </div>
  10358. <div class="cardList" v-if="st.addChangeSen">
  10359. <div class="cardBox">
  10360. <div
  10361. v-for="(s, sIndex) in st.addChangeSen"
  10362. :key="sIndex"
  10363. @click="setRightAnswer(s, stIndex, sIndex)"
  10364. >
  10365. <el-tooltip
  10366. class="item"
  10367. effect="light"
  10368. :content="s"
  10369. placement="top"
  10370. v-if="s != '' && s != undefined"
  10371. >
  10372. <div
  10373. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10374. >
  10375. <div>{{ s }}</div>
  10376. </div>
  10377. </el-tooltip>
  10378. <div
  10379. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10380. v-else
  10381. >
  10382. <div>{{ s }}</div>
  10383. </div>
  10384. </div>
  10385. </div>
  10386. </div>
  10387. </div>
  10388. </div>
  10389. </div>
  10390. <span slot="footer" class="dialog-footer">
  10391. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10392. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10393. </span>
  10394. </el-dialog>
  10395. <el-dialog
  10396. title="连词成句"
  10397. :visible.sync="dialogVisibleSentenceTeacher"
  10398. :append-to-body="true"
  10399. width="1000px"
  10400. :before-close="handleClose"
  10401. class="dialog_diy dialog_diy3"
  10402. >
  10403. <div>
  10404. <div class="w_name">
  10405. 学生姓名:<span>{{ sStudent.student }}</span>
  10406. </div>
  10407. <div class="sentenBox">
  10408. <div
  10409. v-for="(st, stIndex) in sentenceList"
  10410. :key="stIndex"
  10411. style="padding-bottom: 20px"
  10412. >
  10413. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10414. <div class="cardList" v-if="st.chooseSenList">
  10415. <div class="cardBox">
  10416. <div
  10417. v-for="(r, rIndex) in st.chooseSenList"
  10418. :key="rIndex"
  10419. @click="returnCard(r, stIndex, rIndex)"
  10420. >
  10421. <el-tooltip
  10422. class="item"
  10423. effect="light"
  10424. :content="r"
  10425. placement="top"
  10426. v-if="r != '' && r != undefined"
  10427. >
  10428. <div
  10429. :class="{
  10430. isCard: r,
  10431. isChooseCard: r == '' || r == undefined,
  10432. }"
  10433. >
  10434. <div>{{ r }}</div>
  10435. </div>
  10436. </el-tooltip>
  10437. <div
  10438. :class="{
  10439. isCard: r,
  10440. isChooseCard: r == '' || r == undefined,
  10441. }"
  10442. v-else
  10443. >
  10444. <div>{{ r }}</div>
  10445. </div>
  10446. </div>
  10447. </div>
  10448. </div>
  10449. <div class="cardList" v-if="st.addChangeSen">
  10450. <div class="cardBox">
  10451. <div
  10452. v-for="(s, sIndex) in st.addChangeSen"
  10453. :key="sIndex"
  10454. @click="setRightAnswer(s, stIndex, sIndex)"
  10455. >
  10456. <el-tooltip
  10457. class="item"
  10458. effect="light"
  10459. :content="s"
  10460. placement="top"
  10461. v-if="s != '' && s != undefined"
  10462. >
  10463. <div
  10464. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10465. >
  10466. <div>{{ s }}</div>
  10467. </div>
  10468. </el-tooltip>
  10469. <div
  10470. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10471. v-else
  10472. >
  10473. <div>{{ s }}</div>
  10474. </div>
  10475. </div>
  10476. </div>
  10477. </div>
  10478. </div>
  10479. </div>
  10480. </div>
  10481. <span slot="footer" class="dialog-footer">
  10482. <el-button @click="dialogVisibleSentenceTeacher = false"
  10483. >取 消</el-button
  10484. >
  10485. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10486. </span>
  10487. </el-dialog>
  10488. <el-dialog
  10489. title="连词成句"
  10490. :visible.sync="dialogVisibleSentence1"
  10491. :append-to-body="true"
  10492. width="1000px"
  10493. :before-close="handleClose"
  10494. class="dialog_diy dialog_diy3"
  10495. >
  10496. <div>
  10497. <div class="sentenBox">
  10498. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10499. {{ sentenceList1.stuName }}的作业
  10500. </div>
  10501. <div
  10502. v-for="(st, stIndex) in sentenceList1"
  10503. :key="stIndex"
  10504. style="padding-bottom: 20px"
  10505. >
  10506. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10507. 第{{ stIndex + 1 }}题
  10508. </div>
  10509. <div class="isWrong">
  10510. <div class="cardList1" v-if="st.chooseSenList">
  10511. <div class="cardBox">
  10512. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10513. <el-tooltip
  10514. class="item"
  10515. effect="light"
  10516. :content="s"
  10517. placement="top"
  10518. >
  10519. <div class="isCard">
  10520. <div>{{ s }}</div>
  10521. </div>
  10522. </el-tooltip>
  10523. </div>
  10524. </div>
  10525. <div class="cardAnswerBox">
  10526. 组成句子:{{ st.chooseSenList.join(" ") }}
  10527. </div>
  10528. </div>
  10529. <div
  10530. class="answerRight isTj"
  10531. v-if="
  10532. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10533. (tType == 1 || tType == 4)
  10534. "
  10535. >
  10536. <div class="isTjImg">
  10537. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10538. </div>
  10539. <div>回答正确</div>
  10540. </div>
  10541. <div
  10542. class="answerRight isTj"
  10543. v-if="
  10544. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10545. (tType == 1 || tType == 4)
  10546. "
  10547. >
  10548. <div class="isTjImg">
  10549. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10550. </div>
  10551. <div>回答错误</div>
  10552. </div>
  10553. </div>
  10554. <div
  10555. v-if="
  10556. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10557. (tType == 1 || tType == 4)
  10558. "
  10559. >
  10560. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10561. <div
  10562. class="cardList"
  10563. v-if="st.rightAnswer"
  10564. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10565. >
  10566. <div class="cardBox">
  10567. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10568. <el-tooltip
  10569. class="item"
  10570. effect="light"
  10571. :content="r"
  10572. placement="top"
  10573. >
  10574. <div class="isCard1">
  10575. <div>{{ r }}</div>
  10576. </div>
  10577. </el-tooltip>
  10578. </div>
  10579. </div>
  10580. <div class="cardAnswerBox">
  10581. 组成句子:{{ st.rightAnswer.join(" ") }}
  10582. </div>
  10583. </div>
  10584. </div>
  10585. </div>
  10586. </div>
  10587. </div>
  10588. <span slot="footer" class="dialog-footer">
  10589. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10590. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10591. >确 定</el-button
  10592. >
  10593. </span>
  10594. </el-dialog>
  10595. <el-dialog
  10596. title="提交作业"
  10597. :visible.sync="dialogVisibleWorks"
  10598. :append-to-body="true"
  10599. width="500px"
  10600. :before-close="handleClose"
  10601. class="dialog_change"
  10602. >
  10603. <div class="marginT">
  10604. <div class="w_name">
  10605. 学生姓名:<span>{{ sStudent.student }}</span>
  10606. </div>
  10607. <div>上传文件</div>
  10608. <div
  10609. class="chapter_add"
  10610. @click="addImg($event)"
  10611. v-if="studyJuri[0].cover.length == 0"
  10612. >
  10613. <div class="up_photo">
  10614. <img src="../../assets/uploadImg2.png" alt />
  10615. </div>
  10616. <!-- <input
  10617. type="file"
  10618. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10619. style="display: none"
  10620. @change="beforeUpload1($event, 1)"
  10621. /> -->
  10622. <input
  10623. type="file"
  10624. accept="*"
  10625. style="display: none"
  10626. @change="beforeUpload1($event, 1)"
  10627. />
  10628. </div>
  10629. <!-- capture="camera" -->
  10630. <div
  10631. class="chapter_add"
  10632. style="
  10633. display: flex;
  10634. width: 100%;
  10635. flex-direction: row;
  10636. flex-wrap: wrap;
  10637. justify-content: flex-start;
  10638. padding: 15px 0;
  10639. "
  10640. v-if="studyJuri[0].cover.length > 0"
  10641. >
  10642. <div class="upCover">
  10643. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10644. <img :src="word" alt v-else-if="fileType == 1" />
  10645. <img :src="video" alt v-else-if="fileType == 2" />
  10646. <img :src="word2" alt v-else-if="fileType == 3" />
  10647. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10648. <div class="deleteWord" @click="clean(1)">
  10649. <img src="../../assets/icon/deleteWorks.png" alt />
  10650. </div>
  10651. </div>
  10652. </div>
  10653. </div>
  10654. <div
  10655. class="upload_send"
  10656. @click="addCourseWorksTeacher(taskCount)"
  10657. v-if="!proVisible"
  10658. >
  10659. 提交
  10660. </div>
  10661. </el-dialog>
  10662. <el-dialog
  10663. title="问答"
  10664. :visible.sync="answerDialogVisibleTeacher"
  10665. :append-to-body="true"
  10666. width="800px"
  10667. :before-close="handleClose"
  10668. class="dialog_diy"
  10669. >
  10670. <div>
  10671. <div class="w_name">
  10672. 学生姓名:<span>{{ sStudent.student }}</span>
  10673. </div>
  10674. <div
  10675. style="
  10676. display: flex;
  10677. flex-wrap: nowrap;
  10678. flex-direction: column;
  10679. position: relative;
  10680. "
  10681. >
  10682. <div class="queTop" style="padding: 20px 0 20px 0">
  10683. <div class="question">
  10684. <img src="../../assets/icon/question.png" alt />
  10685. </div>
  10686. <div class="queTitle">
  10687. <div style="width: 90px; min-width: 90px">提问:</div>
  10688. <div>{{ answerQ }}</div>
  10689. </div>
  10690. </div>
  10691. <div class="ediBottom">
  10692. <textarea
  10693. rows="6"
  10694. class="binfo_input"
  10695. cols
  10696. style="width: 95%; height: 120px"
  10697. v-model="questionAnswer"
  10698. ></textarea>
  10699. </div>
  10700. </div>
  10701. </div>
  10702. <div slot="footer">
  10703. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10704. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10705. </div>
  10706. </el-dialog>
  10707. <ImgDraw
  10708. :drawShow="drawShow"
  10709. @closeDraw="closeDraw"
  10710. @addImgDraw="addImgDraw"
  10711. :bg="bg"
  10712. ></ImgDraw>
  10713. <el-dialog
  10714. title="表格"
  10715. :visible.sync="dialogVisibleTable"
  10716. :append-to-body="true"
  10717. width="95%"
  10718. :before-close="handleClose"
  10719. class="dialog_diy"
  10720. >
  10721. <el-form>
  10722. <div>表格内容</div>
  10723. <Table
  10724. v-model="tableJson.text"
  10725. @change="change"
  10726. v-if="dialogVisibleTable"
  10727. ></Table>
  10728. </el-form>
  10729. <span slot="footer" class="dialog-footer">
  10730. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10731. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10732. </span>
  10733. </el-dialog>
  10734. <el-dialog
  10735. title="表格"
  10736. :visible.sync="dialogVisibleTableTeacher"
  10737. :append-to-body="true"
  10738. width="95%"
  10739. :before-close="handleClose"
  10740. class="dialog_diy"
  10741. >
  10742. <el-form>
  10743. <div class="w_name">
  10744. 学生姓名:<span>{{ sStudent.student }}</span>
  10745. </div>
  10746. <div>表格内容</div>
  10747. <Table
  10748. v-model="tableJson.text"
  10749. @change="change"
  10750. v-if="dialogVisibleTableTeacher"
  10751. ></Table>
  10752. </el-form>
  10753. <span slot="footer" class="dialog-footer">
  10754. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10755. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10756. </span>
  10757. </el-dialog>
  10758. <el-dialog
  10759. title="文档"
  10760. :visible.sync="dialogVisibleWord"
  10761. :append-to-body="true"
  10762. width="95%"
  10763. :before-close="handleClose"
  10764. class="dialog_diy"
  10765. >
  10766. <el-form>
  10767. <div>文档内容</div>
  10768. <editor-bar
  10769. v-model="wordJson.text"
  10770. v-if="dialogVisibleWord"
  10771. ></editor-bar>
  10772. </el-form>
  10773. <span slot="footer" class="dialog-footer">
  10774. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10775. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10776. </span>
  10777. </el-dialog>
  10778. <el-dialog
  10779. title="文档"
  10780. :visible.sync="dialogVisibleWordTeacher"
  10781. :append-to-body="true"
  10782. width="95%"
  10783. :before-close="handleClose"
  10784. class="dialog_diy"
  10785. >
  10786. <el-form>
  10787. <div class="w_name">
  10788. 学生姓名:<span>{{ sStudent.student }}</span>
  10789. </div>
  10790. <div>文档内容</div>
  10791. <editor-bar
  10792. v-model="wordJson.text"
  10793. v-if="dialogVisibleWordTeacher"
  10794. ></editor-bar>
  10795. </el-form>
  10796. <span slot="footer" class="dialog-footer">
  10797. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10798. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10799. </span>
  10800. </el-dialog>
  10801. <el-dialog
  10802. title="表格"
  10803. :visible.sync="dialogVisibleTable2"
  10804. :append-to-body="true"
  10805. width="95%"
  10806. :before-close="handleClose"
  10807. class="dialog_diy"
  10808. >
  10809. <el-form>
  10810. <div class="cont" v-html="tableJson.text"></div>
  10811. </el-form>
  10812. <span slot="footer" class="dialog-footer">
  10813. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10814. </span>
  10815. </el-dialog>
  10816. <el-dialog
  10817. title="文档"
  10818. :visible.sync="dialogVisibleTable3"
  10819. :append-to-body="true"
  10820. width="95%"
  10821. :before-close="handleClose"
  10822. class="dialog_diy"
  10823. >
  10824. <el-form>
  10825. <div class="cont" v-html="tableJson.text"></div>
  10826. </el-form>
  10827. <span slot="footer" class="dialog-footer">
  10828. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10829. </span>
  10830. </el-dialog>
  10831. <el-dialog
  10832. title="分组设置"
  10833. :visible.sync="dialogVisibleGroup"
  10834. :append-to-body="true"
  10835. width="95%"
  10836. :before-close="handleClose"
  10837. class="dialog_diy"
  10838. >
  10839. <div v-if="dialogVisibleGroup">
  10840. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10841. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10842. 提示:需要锁定位置,才能点击头像修改座位。
  10843. </div>
  10844. <div
  10845. type="primary"
  10846. v-if="groupJson.islock == 1"
  10847. class="returnBtn"
  10848. style="background-color: #225bc7"
  10849. @click="lockChair"
  10850. >
  10851. 锁定位置
  10852. </div>
  10853. <div
  10854. type="primary"
  10855. v-else
  10856. class="returnBtn"
  10857. style="background-color: #225bc7"
  10858. @click="lockChair"
  10859. >
  10860. 解锁位置
  10861. </div>
  10862. <div
  10863. type="primary"
  10864. @click="updateGroup"
  10865. class="returnBtn"
  10866. style="background-color: #225bc7"
  10867. >
  10868. 分组设置
  10869. </div>
  10870. </div>
  10871. <div>
  10872. <div
  10873. class="g_d_box"
  10874. v-if="groupJson.group && groupStudent[toolindex]"
  10875. >
  10876. <div
  10877. class="g_d_group"
  10878. v-for="(g, gindex) in groupJson.group"
  10879. :key="gindex"
  10880. >
  10881. <div class="g_d_group_chair">
  10882. <div v-if="groupJson.number > 1">
  10883. <span
  10884. :class="{
  10885. isChair:
  10886. groupStudent[toolindex][gindex] &&
  10887. groupStudent[toolindex][gindex][0],
  10888. updateChair:
  10889. courseDetail.userid == userid &&
  10890. groupStudent[toolindex][gindex] &&
  10891. groupStudent[toolindex][gindex][0] &&
  10892. groupJson.islock == 2,
  10893. }"
  10894. ><span
  10895. class="updateChairBtn"
  10896. @click="
  10897. updateGroupChair(
  10898. groupStudent[toolindex][gindex] &&
  10899. groupStudent[toolindex][gindex][0]
  10900. )
  10901. "
  10902. >修改</span
  10903. ></span
  10904. ><span>{{
  10905. groupStudent[toolindex][gindex] &&
  10906. groupStudent[toolindex][gindex][0]
  10907. ? groupStudent[toolindex][gindex] &&
  10908. groupStudent[toolindex][gindex][0].name
  10909. : "空位置"
  10910. }}</span>
  10911. </div>
  10912. <div v-if="groupJson.number > 4">
  10913. <span
  10914. :class="{
  10915. isChair:
  10916. groupStudent[toolindex][gindex] &&
  10917. groupStudent[toolindex][gindex][4],
  10918. updateChair:
  10919. courseDetail.userid == userid &&
  10920. groupStudent[toolindex][gindex] &&
  10921. groupStudent[toolindex][gindex][4] &&
  10922. groupJson.islock == 2,
  10923. }"
  10924. ><span
  10925. class="updateChairBtn"
  10926. @click="
  10927. updateGroupChair(
  10928. groupStudent[toolindex][gindex] &&
  10929. groupStudent[toolindex][gindex][4]
  10930. )
  10931. "
  10932. >修改</span
  10933. ></span
  10934. ><span>{{
  10935. groupStudent[toolindex][gindex] &&
  10936. groupStudent[toolindex][gindex][4]
  10937. ? groupStudent[toolindex][gindex] &&
  10938. groupStudent[toolindex][gindex][4].name
  10939. : "空位置"
  10940. }}</span>
  10941. </div>
  10942. <div v-if="groupJson.number > 8">
  10943. <span
  10944. :class="{
  10945. isChair:
  10946. groupStudent[toolindex][gindex] &&
  10947. groupStudent[toolindex][gindex][8],
  10948. updateChair:
  10949. courseDetail.userid == userid &&
  10950. groupStudent[toolindex][gindex] &&
  10951. groupStudent[toolindex][gindex][8] &&
  10952. groupJson.islock == 2,
  10953. }"
  10954. ><span
  10955. class="updateChairBtn"
  10956. @click="
  10957. updateGroupChair(
  10958. groupStudent[toolindex][gindex] &&
  10959. groupStudent[toolindex][gindex][8]
  10960. )
  10961. "
  10962. >修改</span
  10963. ></span
  10964. ><span>{{
  10965. groupStudent[toolindex][gindex] &&
  10966. groupStudent[toolindex][gindex][8]
  10967. ? groupStudent[toolindex][gindex] &&
  10968. groupStudent[toolindex][gindex][8].name
  10969. : "空位置"
  10970. }}</span>
  10971. </div>
  10972. </div>
  10973. <div class="g_d_group_tableBox">
  10974. <div class="g_d_group_chair2">
  10975. <div v-if="groupJson.number > 2">
  10976. <span
  10977. :class="{
  10978. isChair:
  10979. groupStudent[toolindex][gindex] &&
  10980. groupStudent[toolindex][gindex][2],
  10981. updateChair:
  10982. courseDetail.userid == userid &&
  10983. groupStudent[toolindex][gindex] &&
  10984. groupStudent[toolindex][gindex][2] &&
  10985. groupJson.islock == 2,
  10986. }"
  10987. ><span
  10988. class="updateChairBtn"
  10989. @click="
  10990. updateGroupChair(
  10991. groupStudent[toolindex][gindex] &&
  10992. groupStudent[toolindex][gindex][2]
  10993. )
  10994. "
  10995. >修改</span
  10996. ></span
  10997. ><span>{{
  10998. groupStudent[toolindex][gindex] &&
  10999. groupStudent[toolindex][gindex][2]
  11000. ? groupStudent[toolindex][gindex] &&
  11001. groupStudent[toolindex][gindex][2].name
  11002. : "空位置"
  11003. }}</span>
  11004. </div>
  11005. <div v-if="groupJson.number > 6">
  11006. <span
  11007. :class="{
  11008. isChair:
  11009. groupStudent[toolindex][gindex] &&
  11010. groupStudent[toolindex][gindex][6],
  11011. updateChair:
  11012. courseDetail.userid == userid &&
  11013. groupStudent[toolindex][gindex] &&
  11014. groupStudent[toolindex][gindex][6] &&
  11015. groupJson.islock == 2,
  11016. }"
  11017. ><span
  11018. class="updateChairBtn"
  11019. @click="
  11020. updateGroupChair(
  11021. groupStudent[toolindex][gindex] &&
  11022. groupStudent[toolindex][gindex][6]
  11023. )
  11024. "
  11025. >修改</span
  11026. ></span
  11027. ><span>{{
  11028. groupStudent[toolindex][gindex] &&
  11029. groupStudent[toolindex][gindex][6]
  11030. ? groupStudent[toolindex][gindex] &&
  11031. groupStudent[toolindex][gindex][6].name
  11032. : "空位置"
  11033. }}</span>
  11034. </div>
  11035. </div>
  11036. <div class="g_d_group_table">
  11037. <div>
  11038. {{ g.name }}
  11039. </div>
  11040. <div>
  11041. <div
  11042. v-if="
  11043. courseDetail.userid == userid && groupJson.islock == 2
  11044. "
  11045. @click="deleteGroupChair(gindex)"
  11046. >
  11047. 移除组员
  11048. </div>
  11049. <div
  11050. @click="selectGroup(gindex)"
  11051. v-else-if="
  11052. groupStudentUid[toolindex] &&
  11053. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11054. "
  11055. >
  11056. 加入分组
  11057. </div>
  11058. <div
  11059. @click="
  11060. exitGroup(
  11061. groupStudent[toolindex][gindex] &&
  11062. groupStudent[toolindex][gindex][
  11063. groupStudentUid[toolindex][gindex].indexOf(userid)
  11064. ].id
  11065. )
  11066. "
  11067. v-else-if="
  11068. groupStudentUid[toolindex] &&
  11069. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11070. "
  11071. >
  11072. 退出分组
  11073. </div>
  11074. </div>
  11075. </div>
  11076. <div class="g_d_group_chair2">
  11077. <div v-if="groupJson.number > 3">
  11078. <span
  11079. :class="{
  11080. isChair:
  11081. groupStudent[toolindex][gindex] &&
  11082. groupStudent[toolindex][gindex][3],
  11083. updateChair:
  11084. courseDetail.userid == userid &&
  11085. groupStudent[toolindex][gindex] &&
  11086. groupStudent[toolindex][gindex][3] &&
  11087. groupJson.islock == 2,
  11088. }"
  11089. ><span
  11090. class="updateChairBtn"
  11091. @click="
  11092. updateGroupChair(
  11093. groupStudent[toolindex][gindex] &&
  11094. groupStudent[toolindex][gindex][3]
  11095. )
  11096. "
  11097. >修改</span
  11098. ></span
  11099. ><span>{{
  11100. groupStudent[toolindex][gindex] &&
  11101. groupStudent[toolindex][gindex][3]
  11102. ? groupStudent[toolindex][gindex] &&
  11103. groupStudent[toolindex][gindex][3].name
  11104. : "空位置"
  11105. }}</span>
  11106. </div>
  11107. <div v-if="groupJson.number > 7">
  11108. <span
  11109. :class="{
  11110. isChair:
  11111. groupStudent[toolindex][gindex] &&
  11112. groupStudent[toolindex][gindex][7],
  11113. updateChair:
  11114. courseDetail.userid == userid &&
  11115. groupStudent[toolindex][gindex] &&
  11116. groupStudent[toolindex][gindex][7] &&
  11117. groupJson.islock == 2,
  11118. }"
  11119. ><span
  11120. class="updateChairBtn"
  11121. @click="
  11122. updateGroupChair(
  11123. groupStudent[toolindex][gindex] &&
  11124. groupStudent[toolindex][gindex][7]
  11125. )
  11126. "
  11127. >修改</span
  11128. ></span
  11129. ><span>{{
  11130. groupStudent[toolindex][gindex] &&
  11131. groupStudent[toolindex][gindex][7]
  11132. ? groupStudent[toolindex][gindex] &&
  11133. groupStudent[toolindex][gindex][7].name
  11134. : "空位置"
  11135. }}</span>
  11136. </div>
  11137. </div>
  11138. </div>
  11139. <div class="g_d_group_chair">
  11140. <div v-if="groupJson.number > 1">
  11141. <span
  11142. :class="{
  11143. isChair:
  11144. groupStudent[toolindex][gindex] &&
  11145. groupStudent[toolindex][gindex][1],
  11146. updateChair:
  11147. courseDetail.userid == userid &&
  11148. groupStudent[toolindex][gindex] &&
  11149. groupStudent[toolindex][gindex][1] &&
  11150. groupJson.islock == 2,
  11151. }"
  11152. ><span
  11153. class="updateChairBtn"
  11154. @click="
  11155. updateGroupChair(
  11156. groupStudent[toolindex][gindex] &&
  11157. groupStudent[toolindex][gindex][1]
  11158. )
  11159. "
  11160. >修改</span
  11161. ></span
  11162. ><span>{{
  11163. groupStudent[toolindex][gindex] &&
  11164. groupStudent[toolindex][gindex][1]
  11165. ? groupStudent[toolindex][gindex] &&
  11166. groupStudent[toolindex][gindex][1].name
  11167. : "空位置"
  11168. }}</span>
  11169. </div>
  11170. <div v-if="groupJson.number > 5">
  11171. <span
  11172. :class="{
  11173. isChair:
  11174. groupStudent[toolindex][gindex] &&
  11175. groupStudent[toolindex][gindex][5],
  11176. updateChair:
  11177. courseDetail.userid == userid &&
  11178. groupStudent[toolindex][gindex] &&
  11179. groupStudent[toolindex][gindex][5] &&
  11180. groupJson.islock == 2,
  11181. }"
  11182. ><span
  11183. class="updateChairBtn"
  11184. @click="
  11185. updateGroupChair(
  11186. groupStudent[toolindex][gindex] &&
  11187. groupStudent[toolindex][gindex][5]
  11188. )
  11189. "
  11190. >修改</span
  11191. ></span
  11192. ><span>{{
  11193. groupStudent[toolindex][gindex] &&
  11194. groupStudent[toolindex][gindex][5]
  11195. ? groupStudent[toolindex][gindex] &&
  11196. groupStudent[toolindex][gindex][5].name
  11197. : "空位置"
  11198. }}</span>
  11199. </div>
  11200. <div v-if="groupJson.number > 9">
  11201. <span
  11202. :class="{
  11203. isChair:
  11204. groupStudent[toolindex][gindex] &&
  11205. groupStudent[toolindex][gindex][9],
  11206. updateChair:
  11207. courseDetail.userid == userid &&
  11208. groupStudent[toolindex][gindex] &&
  11209. groupStudent[toolindex][gindex][9] &&
  11210. groupJson.islock == 2,
  11211. }"
  11212. ><span
  11213. class="updateChairBtn"
  11214. @click="
  11215. updateGroupChair(
  11216. groupStudent[toolindex][gindex] &&
  11217. groupStudent[toolindex][gindex][9]
  11218. )
  11219. "
  11220. >修改</span
  11221. ></span
  11222. ><span>{{
  11223. groupStudent[toolindex][gindex] &&
  11224. groupStudent[toolindex][gindex][9]
  11225. ? groupStudent[toolindex][gindex] &&
  11226. groupStudent[toolindex][gindex][9].name
  11227. : "空位置"
  11228. }}</span>
  11229. </div>
  11230. </div>
  11231. </div>
  11232. </div>
  11233. </div>
  11234. </div>
  11235. <span slot="footer" class="dialog-footer">
  11236. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11237. </span>
  11238. </el-dialog>
  11239. <el-dialog
  11240. title="分组设置"
  11241. :visible.sync="dialogVisibleGroup2"
  11242. :append-to-body="true"
  11243. width="650px"
  11244. :before-close="handleClose"
  11245. class="dialog_diy"
  11246. >
  11247. <div class="groupBox">
  11248. <div v-if="groupJson2.group" class="groupContent">
  11249. <div class="groupTitle">请设置小组数量</div>
  11250. <div
  11251. v-for="(item, index) in groupJson2.group"
  11252. :key="index"
  11253. class="groupName"
  11254. >
  11255. <span class="groupn">组{{ index + 1 }}名称:</span>
  11256. <el-input
  11257. v-model="item.name"
  11258. placeholder="请输入名称..."
  11259. style="width: 250px"
  11260. ></el-input>
  11261. <!-- <div class="groupBtn">
  11262. <el-button type="primary" size="small" @click="addGroup(index)">
  11263. 添加</el-button>
  11264. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11265. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11266. </div> -->
  11267. </div>
  11268. </div>
  11269. <div class="groupContent">
  11270. <div class="groupTitle">请设置每组人数数量</div>
  11271. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11272. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11273. <el-input-number
  11274. v-model="groupJson2.number"
  11275. :controls="false"
  11276. :min="2"
  11277. :max="10"
  11278. placeholder="2-10人以内"
  11279. ></el-input-number>
  11280. </div>
  11281. </div>
  11282. <span slot="footer" class="dialog-footer">
  11283. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11284. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11285. </span>
  11286. </el-dialog>
  11287. <el-dialog
  11288. title="作业提交"
  11289. :visible.sync="dialogVisibleGroupWork"
  11290. :append-to-body="true"
  11291. width="500px"
  11292. :before-close="handleClose"
  11293. class="dialog_change"
  11294. >
  11295. <div class="marginT">
  11296. <div>上传文件</div>
  11297. <div
  11298. class="chapter_add"
  11299. @click="addImg($event)"
  11300. v-if="studyJuri[0].cover.length == 0"
  11301. >
  11302. <div class="up_photo">
  11303. <img src="../../assets/icon/uploadImg.png" alt />
  11304. </div>
  11305. <!-- <input
  11306. type="file"
  11307. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11308. style="display: none"
  11309. @change="beforeUpload1($event, 1)"
  11310. /> -->
  11311. <input
  11312. type="file"
  11313. accept="*"
  11314. style="display: none"
  11315. @change="beforeUpload1($event, 1)"
  11316. />
  11317. </div>
  11318. <!-- capture="camera" -->
  11319. <div
  11320. class="chapter_add"
  11321. style="
  11322. display: flex;
  11323. width: 100%;
  11324. flex-direction: row;
  11325. flex-wrap: wrap;
  11326. justify-content: flex-start;
  11327. padding: 15px 0;
  11328. "
  11329. v-if="studyJuri[0].cover.length > 0"
  11330. >
  11331. <div class="upCover">
  11332. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11333. <img :src="word" alt v-else-if="fileType == 1" />
  11334. <img :src="video" alt v-else-if="fileType == 2" />
  11335. <img :src="word2" alt v-else-if="fileType == 3" />
  11336. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11337. <div class="deleteWord" @click="clean(1)">
  11338. <img src="../../assets/icon/deleteWorks.png" alt />
  11339. </div>
  11340. </div>
  11341. </div>
  11342. </div>
  11343. <div
  11344. class="upload_send"
  11345. @click="addCourseWorks2(taskCount)"
  11346. v-if="!proVisible"
  11347. >
  11348. 提交
  11349. </div>
  11350. </el-dialog>
  11351. <el-dialog
  11352. title="修改分组"
  11353. :visible.sync="dialogVisibleUpdateGroup"
  11354. :append-to-body="true"
  11355. width="350px"
  11356. :before-close="handleClose"
  11357. class="dialog_diy"
  11358. >
  11359. <div>
  11360. <h2>
  11361. {{ this.updateGroupUser.name }}
  11362. </h2>
  11363. <div style="color: rgb(171 171 171); margin-top: 10px">
  11364. 请选择要进入的分组
  11365. </div>
  11366. <el-radio-group v-model="checkChair">
  11367. <el-radio
  11368. style="display: block; margin-top: 20px"
  11369. v-for="(item, index) in updateGroupArray"
  11370. :label="item.label"
  11371. :key="index"
  11372. >{{ item.name }}</el-radio
  11373. >
  11374. </el-radio-group>
  11375. </div>
  11376. <span slot="footer" class="dialog-footer">
  11377. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11378. <el-button type="primary" @click="updateChair">确定</el-button>
  11379. </span>
  11380. </el-dialog>
  11381. <el-dialog
  11382. title="移除组员"
  11383. :visible.sync="dialogVisibleDeleteGroup"
  11384. :append-to-body="true"
  11385. width="350px"
  11386. :before-close="handleClose"
  11387. class="dialog_diy"
  11388. >
  11389. <div>
  11390. <h2>
  11391. {{ this.deleteGroupArray.name }}
  11392. </h2>
  11393. <div style="color: rgb(171 171 171); margin-top: 10px">
  11394. 请选择要删除的组员
  11395. </div>
  11396. <el-checkbox-group v-model="checkDeleteGroup">
  11397. <el-checkbox
  11398. style="display: block; margin-top: 20px"
  11399. v-for="(item, index) in deleteGroupUser"
  11400. :label="item.userid"
  11401. :key="index"
  11402. >{{ item.name }}</el-checkbox
  11403. >
  11404. </el-checkbox-group>
  11405. </div>
  11406. <span slot="footer" class="dialog-footer">
  11407. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11408. <el-button type="primary" @click="deleteChair">确定</el-button>
  11409. </span>
  11410. </el-dialog>
  11411. <el-dialog
  11412. title="批量上传"
  11413. :visible.sync="dialogVisiblePl"
  11414. :append-to-body="true"
  11415. width="700px"
  11416. :before-close="handleClose"
  11417. class="dialog_change"
  11418. >
  11419. <div class="marginT">
  11420. <div class="plworkBox">
  11421. <div
  11422. class="chapter_add"
  11423. style="
  11424. display: flex;
  11425. width: 150px;
  11426. flex-direction: row;
  11427. flex-wrap: wrap;
  11428. justify-content: flex-start;
  11429. margin: 0 10px 10px 0;
  11430. "
  11431. v-for="(item, index) in plworkFile"
  11432. :key="index"
  11433. >
  11434. <div class="upCover2">
  11435. <img
  11436. :src="item.url"
  11437. alt
  11438. v-if="item.fileType == 1"
  11439. @click="previewImg(item.url)"
  11440. />
  11441. <img :src="word" alt v-else-if="item.fileType == 4" />
  11442. <img :src="video" alt v-else />
  11443. <!-- <span class="picName">{{ item.name }}</span> -->
  11444. <!-- <el-input
  11445. v-model="item.username"
  11446. placeholder="请输入学生名字"
  11447. style="margin-top: 10px"
  11448. ></el-input> -->
  11449. <div
  11450. class="pl_select_box"
  11451. @click="
  11452. getUpdateMore(true, checkUpload(), item.username, index)
  11453. "
  11454. >
  11455. {{ getSName(item.username) }}
  11456. </div>
  11457. <!-- <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  11458. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  11459. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  11460. </el-option>
  11461. </el-select> -->
  11462. <div class="deleteWord" @click="clean2(index)">
  11463. <img src="../../assets/icon/deleteWorks.png" alt />
  11464. </div>
  11465. </div>
  11466. </div>
  11467. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11468. <div class="up_photo2">
  11469. <img src="../../assets/icon/plwork.png" alt />
  11470. <span>点击上传文件</span>
  11471. </div>
  11472. <input
  11473. type="file"
  11474. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11475. multiple="multiple"
  11476. style="display: none"
  11477. @change="beforeUpload3($event, 6)"
  11478. />
  11479. </div>
  11480. </div>
  11481. </div>
  11482. <!-- capture="camera" -->
  11483. <div
  11484. class="upload_send"
  11485. @click="addCourseWorksPl(taskCount)"
  11486. v-if="!proVisible2"
  11487. >
  11488. 提交
  11489. </div>
  11490. </el-dialog>
  11491. <el-dialog
  11492. title="修改名称"
  11493. :visible.sync="dialogVisibleSname"
  11494. width="500px"
  11495. :before-close="handleClose"
  11496. class="dialog_diy"
  11497. center
  11498. >
  11499. <div
  11500. style="
  11501. text-align: center;
  11502. display: flex;
  11503. align-items: center;
  11504. justify-content: center;
  11505. "
  11506. >
  11507. <span class="tian1">名称</span>
  11508. <div
  11509. class="pl_select_box"
  11510. style="margin-left: 10px; width: 200px"
  11511. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11512. >
  11513. {{ getSName(worksSName) }}
  11514. </div>
  11515. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11516. placeholder="请选择学生">
  11517. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11518. :value="item.userid">
  11519. </el-option>
  11520. </el-select> -->
  11521. <!-- <el-input
  11522. v-model="worksSName"
  11523. style="width: 250px; margin: 15px 0px"
  11524. ></el-input> -->
  11525. </div>
  11526. <span slot="footer" class="dialog-footer">
  11527. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11528. <el-button type="primary" @click="updateName">确 定</el-button>
  11529. </span>
  11530. </el-dialog>
  11531. <interVideo
  11532. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11533. :videoJson="videoJson"
  11534. :userid="userid"
  11535. :id="id"
  11536. :courseType="courseType"
  11537. :taskCount="taskCount"
  11538. :toolindex="toolindex"
  11539. ></interVideo>
  11540. <UpdateMore
  11541. :dialogVisibleMember.sync="dialogVisibleMember"
  11542. :cList="uploadStudentJuri"
  11543. :userid="userid"
  11544. :searchTN="worksSName2"
  11545. @setPlname="setPlname"
  11546. ></UpdateMore>
  11547. <wordCloud
  11548. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11549. :data="wordCloudData"
  11550. ></wordCloud>
  11551. </div>
  11552. </template>
  11553. <script>
  11554. import "../../common/aws-sdk-2.235.1.min.js";
  11555. // import pdf from "../components/pdf3";
  11556. import pdf from "../components/vpdf";
  11557. import AskStatic from "../components/askStatic";
  11558. import AskStatic2 from "../components/askStatic2";
  11559. import AnswerData2 from "../components/answerData2";
  11560. import AnswerData from "../components/answerData";
  11561. import EditorBar from "../tools/wangEnduit.vue";
  11562. import Table from "../tools/table.vue";
  11563. import Time from "../tools/time.vue";
  11564. import Mind from "../tools/jsmind.vue";
  11565. import Sunburst from "../tools/sunburst";
  11566. import SeeBoard from "../tools/seeBoard";
  11567. import * as imageConversion from "image-conversion";
  11568. import Audio from "../components/audio.vue";
  11569. import ImgDraw from "../tools/imgDraw/imgDraw";
  11570. import { Empty } from "element-ui";
  11571. import RecordRTC from "recordrtc";
  11572. import interVideo from "../interVideo/index.vue";
  11573. import UpdateMore from "../updateMore/updateMore.vue";
  11574. import wordCloud from "../wordCloud/index.vue";
  11575. export default {
  11576. components: {
  11577. EditorBar,
  11578. Time,
  11579. pdf,
  11580. AskStatic,
  11581. AskStatic2,
  11582. Mind,
  11583. Sunburst,
  11584. SeeBoard,
  11585. AnswerData2,
  11586. AnswerData,
  11587. Audio,
  11588. ImgDraw,
  11589. Table,
  11590. interVideo,
  11591. UpdateMore,
  11592. wordCloud,
  11593. },
  11594. data() {
  11595. return {
  11596. bg: null,
  11597. drawShow: false,
  11598. dialogVisible: false,
  11599. dialogVisiblePl: false,
  11600. commentDialogVisible: false,
  11601. videoVisible: false,
  11602. isStar: false,
  11603. studentEvalDialogVisible: false,
  11604. studentEvalDialogVisibleTeacher: false,
  11605. dialogVisibleSelect: false,
  11606. dialogVisibleSelectTeacher: false,
  11607. dialogVisibleScore: false,
  11608. dialogVisibleSentence: false,
  11609. dialogVisibleSentenceTeacher: false,
  11610. dialogVisibleSentence1: false,
  11611. dialogVisibleWorks: false,
  11612. answerDialogVisibleTeacher: false,
  11613. dialogVisibleTable: false,
  11614. dialogVisibleTableTeacher: false,
  11615. dialogVisibleWord: false,
  11616. dialogVisibleWordTeacher: false,
  11617. dialogVisibleTable2: false,
  11618. dialogVisibleTable3: false,
  11619. dialogVisibleGroupWork: false,
  11620. dialogVisibleUpdateGroup: false,
  11621. dialogVisibleDeleteGroup: false,
  11622. dialogVisibleSname: false,
  11623. dialogVisibleVideo: false,
  11624. worksSName: "",
  11625. classJuri: [],
  11626. uploadStudentJuri: [],
  11627. uploadCid: "",
  11628. snameWid: "",
  11629. sStudent: {},
  11630. sTool: "",
  11631. bzText: "",
  11632. commentDetail: [],
  11633. selectAnswer: [],
  11634. videoDetail: {},
  11635. selectJson: {},
  11636. eScore: { eBzText: "", eStar: [] },
  11637. id: this.$route.query.courseId,
  11638. userid: this.$route.query.userid,
  11639. classId: this.$route.query.cid,
  11640. // courseTypeLine: this.$route.query.type,
  11641. oid: this.$route.query.oid,
  11642. org: this.$route.query.org,
  11643. tType: this.$route.query.tType,
  11644. courseType: this.$route.query.type,
  11645. screenType: this.$route.query.screenType,
  11646. tcid2: this.$route.query.tcid,
  11647. tcid: "",
  11648. pptImgUrl: "",
  11649. pptImgUrl1: "",
  11650. commentText: "",
  11651. full: false,
  11652. sIsOpen: false,
  11653. IsLookOpen: false,
  11654. IsFollow: false,
  11655. pzDialog: false,
  11656. contentDialog: false,
  11657. mlDialog: false,
  11658. type: 1,
  11659. isClose: 0,
  11660. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11661. sentenceList1: [],
  11662. tableJson: [],
  11663. wordJson: [],
  11664. vedio: [],
  11665. text: [],
  11666. textList: [],
  11667. line: [],
  11668. lineList: [],
  11669. chapTools: [],
  11670. chapToolList: [],
  11671. file: [],
  11672. fileC: [],
  11673. vedioTime: [],
  11674. upToolImg: "",
  11675. preTime: 0,
  11676. rateList: {
  11677. ca: 0,
  11678. },
  11679. rateParams: [],
  11680. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11681. studyJuri: [
  11682. {
  11683. content: "",
  11684. cover: [],
  11685. upVedio: [],
  11686. upFile: [],
  11687. },
  11688. ],
  11689. plworkFile: [],
  11690. mr: require("../../assets/vedioPic.png"),
  11691. word: require("../../assets/icon/isWord.png"),
  11692. word2: require("../../assets/icon/word2.png"),
  11693. video: require("../../assets/icon/isVideo.png"),
  11694. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11695. likes: require("../../assets/icon/comment/likes.png"),
  11696. scoreImg: require("../../assets/score.png"),
  11697. courseDetail: {},
  11698. isSelect: false,
  11699. chapInfo: [],
  11700. chapInfoList: [],
  11701. taskCount: 0,
  11702. imgList: [],
  11703. noImgList: [],
  11704. pzList: [],
  11705. PlTextList: [
  11706. "Excellent!",
  11707. "nice!",
  11708. "很有创意!",
  11709. "还不错哦~",
  11710. "继续努力哦~",
  11711. ],
  11712. isClickNav: "",
  11713. navId: "",
  11714. playerOptions: {
  11715. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11716. autoplay: false, //如果true,浏览器准备好时开始回放。
  11717. muted: false, // 默认情况下将会消除任何音频。
  11718. loop: false, // 导致视频一结束就重新开始。
  11719. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11720. language: "zh-CN",
  11721. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11722. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11723. sources: [
  11724. {
  11725. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11726. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11727. },
  11728. ],
  11729. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11730. // poster: dataRes.imgUrl, //你的封面地址
  11731. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11732. controlBar: {
  11733. timeDivider: true, //当前时间和持续时间的分隔符
  11734. durationDisplay: true, //显示持续时间
  11735. remainingTimeDisplay: false, //是否显示剩余时间功能
  11736. fullscreenToggle: true, //全屏按钮
  11737. },
  11738. },
  11739. playerOptions1: {
  11740. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11741. autoplay: false, //如果true,浏览器准备好时开始回放。
  11742. muted: false, // 默认情况下将会消除任何音频。
  11743. loop: false, // 导致视频一结束就重新开始。
  11744. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11745. language: "zh-CN",
  11746. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11747. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11748. sources: [
  11749. {
  11750. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11751. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11752. },
  11753. ],
  11754. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11755. // poster: dataRes.imgUrl, //你的封面地址
  11756. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11757. controlBar: {
  11758. timeDivider: true, //当前时间和持续时间的分隔符
  11759. durationDisplay: true, //显示持续时间
  11760. remainingTimeDisplay: false, //是否显示剩余时间功能
  11761. fullscreenToggle: true, //全屏按钮
  11762. },
  11763. },
  11764. playerO: {},
  11765. noneBtnImg: false,
  11766. proVisible: false,
  11767. proVisible2: false,
  11768. progress: 0,
  11769. isFinishSize: 0,
  11770. isAllSize: 0,
  11771. questionAnswer: "",
  11772. answerQ: "", //问答标题
  11773. rateJson: [],
  11774. wbCount: 0,
  11775. wordCount: 0,
  11776. mindCount: 0,
  11777. askCount: 0,
  11778. noteCount: 0,
  11779. mindNetWorkCount: 0,
  11780. libraryCount: 0,
  11781. workCount: 0,
  11782. timeCount: 0,
  11783. answerCount: 0,
  11784. trainCount: 0,
  11785. evalCount: 0,
  11786. dialogImageUrl: "",
  11787. pictureDialog: false,
  11788. toolTypeList: [],
  11789. dialogVisible1: false,
  11790. dialogVisible2: false,
  11791. dialogVisible3: false,
  11792. dialogVisible6: false,
  11793. dialogVisible4: false,
  11794. isNoHomeWork: false,
  11795. dialogVisible5: false,
  11796. dialogVisible5Teacher: false,
  11797. dialogVisibleChoice: false,
  11798. dialogVisibleChoiceTeacher: false,
  11799. answerDialogVisible: false,
  11800. juriVisible: false,
  11801. timeDialogVisible: false,
  11802. radio: [],
  11803. isAsk: false,
  11804. askJson: {
  11805. askCount: 1,
  11806. askTitle: "",
  11807. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11808. },
  11809. testJson: {},
  11810. checkJson: [],
  11811. askList: [],
  11812. answerList: [],
  11813. navList: [],
  11814. addPzDialog: false,
  11815. ispzType: 1,
  11816. pzConText: "",
  11817. worksStudent: [],
  11818. worksStudent2: [],
  11819. worksTeacher: [],
  11820. isCloseList: [],
  11821. workStudent: [],
  11822. groupStudent: [],
  11823. groupStudentUid: [],
  11824. noWorksS: [],
  11825. isWorksS: [],
  11826. noWorksStudent: [],
  11827. toolindex: 0,
  11828. groupIndex: 0,
  11829. workTypeB: false,
  11830. workTypeC: false,
  11831. isAnswer: false,
  11832. timer: null,
  11833. opertimer: null,
  11834. showType: 0,
  11835. fileType: 0,
  11836. showPDF: false,
  11837. noteName: "",
  11838. evaJuri: [],
  11839. evalua: "",
  11840. eTitle: "",
  11841. eName: "",
  11842. eJson: {},
  11843. fid: "", //一级
  11844. sid: "", //二级
  11845. tid: "", //二级
  11846. typeMode: 1,
  11847. eJSONNum: 0,
  11848. Etype: 1,
  11849. data: {
  11850. meta: {
  11851. name: "example",
  11852. author: "dd@163.com",
  11853. version: "0.2",
  11854. },
  11855. format: "node_array",
  11856. data: [{ id: "root", isroot: true, topic: "" }],
  11857. },
  11858. fullDialogVisible: false,
  11859. fulltype: "",
  11860. fullUrl: "",
  11861. commentIndexJson: {},
  11862. Stbodywidth: 0,
  11863. pzType: 1,
  11864. wScore: 0,
  11865. scoreDetail: "",
  11866. videoStart: false,
  11867. recorder: null,
  11868. groupJson: {},
  11869. groupJson2: {},
  11870. dialogVisibleGroup: false,
  11871. dialogVisibleGroup2: false,
  11872. updateGroupArray: [],
  11873. updateGroupUser: {},
  11874. deleteGroupUser: [],
  11875. deleteGroupArray: {},
  11876. checkChair: "",
  11877. checkDeleteGroup: [],
  11878. inviteCode: "",
  11879. courseGroupStudent: [],
  11880. courseGroupStudentUid: [],
  11881. courseGroup: {},
  11882. isGroup: false,
  11883. toolIndex: null,
  11884. tool: {},
  11885. isWorkTool: [
  11886. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11887. ], //, 40
  11888. videoJson: {},
  11889. toolType: 0,
  11890. checktoolArray: [],
  11891. vChapterData: [],
  11892. isUpdateToolDetail: false,
  11893. updateToolDetailInner: "",
  11894. plIndex: "",
  11895. worksSName2: "",
  11896. worksSid: "",
  11897. dialogVisibleWordCloud: false,
  11898. wordCloudData: [],
  11899. };
  11900. },
  11901. methods: {
  11902. jump() {
  11903. window.parent.postMessage({ tools: "43" }, "*");
  11904. },
  11905. getUpdateMore(f, checkboxList, searchTN, index) {
  11906. this.dialogVisibleMember = f;
  11907. this.checkboxList = checkboxList;
  11908. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  11909. this.plIndex = index;
  11910. },
  11911. setPlname(a) {
  11912. if (this.plworkFile.length) {
  11913. this.plworkFile[this.plIndex].username = a;
  11914. } else {
  11915. this.worksSName = a;
  11916. }
  11917. this.dialogVisibleMember = false;
  11918. },
  11919. previewImg(url) {
  11920. this.$hevueImgPreview(url);
  11921. },
  11922. checkImg(list) {
  11923. if (!list.length) {
  11924. return;
  11925. }
  11926. this.$hevueImgPreview({
  11927. multiple: true, // 开启多图预览模式
  11928. imgList: list, // 需要预览的多图数组
  11929. });
  11930. },
  11931. change(val) {
  11932. console.log(val);
  11933. },
  11934. goTo(path) {
  11935. this.$router.push(path);
  11936. },
  11937. handlePictureCardPreview(url) {
  11938. this.dialogImageUrl = url;
  11939. this.pictureDialog = true;
  11940. },
  11941. clean(type) {
  11942. if (type == 1) {
  11943. this.studyJuri[0].cover.splice(0, 1);
  11944. } else if (type == 2) {
  11945. this.studyJuri[0].upVedio.splice(0, 1);
  11946. } else {
  11947. this.studyJuri[0].upFile.splice(0, 1);
  11948. }
  11949. },
  11950. clean2(index) {
  11951. this.plworkFile.splice(index, 1);
  11952. },
  11953. handleClose(done) {
  11954. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  11955. this.videoDetail.sources[0].src = "";
  11956. }
  11957. this.commentIndexJson = {};
  11958. done();
  11959. },
  11960. fullTools() {
  11961. this.full = !this.full;
  11962. },
  11963. imgChange(file, fileList, type) {
  11964. if (type == 1) {
  11965. var _tmp = this.studyJuri[0].cover;
  11966. } else if (type == 2) {
  11967. var _tmp = this.studyJuri[0].upVedio;
  11968. } else {
  11969. var _tmp = this.studyJuri[0].upFile;
  11970. }
  11971. this.noneBtnImg = _tmp.length >= 1;
  11972. },
  11973. setContent(bool) {
  11974. this.contentDialog = bool;
  11975. if (bool && this.mlDialog) {
  11976. document.querySelector(".workd_media").style.height = "650px";
  11977. } else {
  11978. document.querySelector(".workd_media").style.height = "auto";
  11979. }
  11980. },
  11981. setContent2(bool) {
  11982. this.mlDialog = bool;
  11983. if (bool && this.contentDialog) {
  11984. document.querySelector(".workd_media").style.height = "650px";
  11985. } else {
  11986. document.querySelector(".workd_media").style.height = "auto";
  11987. }
  11988. },
  11989. addImg(e) {
  11990. var el = e.currentTarget;
  11991. // this.$message.success('触发上传')
  11992. el.getElementsByTagName("input")[0].click();
  11993. e.target.value = "";
  11994. },
  11995. addSelectAnswer() {
  11996. let params = [
  11997. {
  11998. uid: this.userid,
  11999. cid: this.id,
  12000. stage: this.courseType,
  12001. task: this.taskCount,
  12002. tool: this.toolindex,
  12003. content: this.selectAnswer.answer,
  12004. type: 7,
  12005. },
  12006. ];
  12007. this.ajax
  12008. .post(this.$store.state.api + "addCourseWorks", params)
  12009. .then((res) => {
  12010. this.$message({
  12011. message: "提交成功",
  12012. type: "success",
  12013. });
  12014. this.dialogVisibleSelect = false;
  12015. // this.selectAnswer = {};
  12016. this.selectSWorks();
  12017. this.selectStudent();
  12018. })
  12019. .catch((err) => {
  12020. this.$message.error("提交失败");
  12021. console.error(err);
  12022. });
  12023. },
  12024. addSelectAnswerTeacher() {
  12025. let params = [
  12026. {
  12027. uid: this.sStudent.userid,
  12028. cid: this.id,
  12029. stage: this.courseType,
  12030. task: this.taskCount,
  12031. tool: this.toolindex,
  12032. content: this.selectAnswer.answer,
  12033. type: 7,
  12034. },
  12035. ];
  12036. this.ajax
  12037. .post(this.$store.state.api + "addCourseWorks", params)
  12038. .then((res) => {
  12039. this.$message({
  12040. message: "提交成功",
  12041. type: "success",
  12042. });
  12043. this.dialogVisibleSelectTeacher = false;
  12044. // this.selectAnswer = {};
  12045. this.selectSWorks();
  12046. this.selectStudent();
  12047. })
  12048. .catch((err) => {
  12049. this.$message.error("提交失败");
  12050. console.error(err);
  12051. });
  12052. },
  12053. addSenWorks() {
  12054. for (var i = 0; i < this.sentenceList.length; i++) {
  12055. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12056. if (
  12057. this.sentenceList[i].chooseSenList[j] == undefined ||
  12058. this.sentenceList[i].chooseSenList[j] == ""
  12059. ) {
  12060. this.$message.error("请将答案填写完整!");
  12061. return;
  12062. }
  12063. }
  12064. }
  12065. let params = [
  12066. {
  12067. uid: this.userid,
  12068. cid: this.id,
  12069. stage: this.courseType,
  12070. task: this.taskCount,
  12071. tool: this.toolindex,
  12072. content: JSON.stringify(this.sentenceList),
  12073. type: 9,
  12074. },
  12075. ];
  12076. this.ajax
  12077. .post(this.$store.state.api + "addCourseWorks", params)
  12078. .then((res) => {
  12079. this.$message({
  12080. message: "提交成功",
  12081. type: "success",
  12082. });
  12083. this.dialogVisibleSentence = false;
  12084. // this.selectAnswer = {};
  12085. this.selectSWorks();
  12086. this.selectStudent();
  12087. })
  12088. .catch((err) => {
  12089. this.$message.error("提交失败");
  12090. console.error(err);
  12091. });
  12092. },
  12093. addSenWorksTeacher() {
  12094. for (var i = 0; i < this.sentenceList.length; i++) {
  12095. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12096. if (
  12097. this.sentenceList[i].chooseSenList[j] == undefined ||
  12098. this.sentenceList[i].chooseSenList[j] == ""
  12099. ) {
  12100. this.$message.error("请将答案填写完整!");
  12101. return;
  12102. }
  12103. }
  12104. }
  12105. let params = [
  12106. {
  12107. uid: this.sStudent.userid,
  12108. cid: this.id,
  12109. stage: this.courseType,
  12110. task: this.taskCount,
  12111. tool: this.toolindex,
  12112. content: JSON.stringify(this.sentenceList),
  12113. type: 9,
  12114. },
  12115. ];
  12116. this.ajax
  12117. .post(this.$store.state.api + "addCourseWorks", params)
  12118. .then((res) => {
  12119. this.$message({
  12120. message: "提交成功",
  12121. type: "success",
  12122. });
  12123. this.dialogVisibleSentenceTeacher = false;
  12124. // this.selectAnswer = {};
  12125. this.selectSWorks();
  12126. this.selectStudent();
  12127. })
  12128. .catch((err) => {
  12129. this.$message.error("提交失败");
  12130. console.error(err);
  12131. });
  12132. },
  12133. addTableWorks() {
  12134. let params = [
  12135. {
  12136. uid: this.userid,
  12137. cid: this.id,
  12138. stage: this.courseType,
  12139. task: this.taskCount,
  12140. tool: this.toolindex,
  12141. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12142. type: 10,
  12143. },
  12144. ];
  12145. this.ajax
  12146. .post(this.$store.state.api + "addCourseWorks", params)
  12147. .then((res) => {
  12148. this.$message({
  12149. message: "提交成功",
  12150. type: "success",
  12151. });
  12152. this.dialogVisibleTable = false;
  12153. // this.selectAnswer = {};
  12154. this.selectSWorks();
  12155. this.selectStudent();
  12156. })
  12157. .catch((err) => {
  12158. this.$message.error("提交失败");
  12159. console.error(err);
  12160. });
  12161. },
  12162. addTableWorksTeacher() {
  12163. let params = [
  12164. {
  12165. uid: this.sStudent.userid,
  12166. cid: this.id,
  12167. stage: this.courseType,
  12168. task: this.taskCount,
  12169. tool: this.toolindex,
  12170. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12171. type: 10,
  12172. },
  12173. ];
  12174. this.ajax
  12175. .post(this.$store.state.api + "addCourseWorks", params)
  12176. .then((res) => {
  12177. this.$message({
  12178. message: "提交成功",
  12179. type: "success",
  12180. });
  12181. this.dialogVisibleTableTeacher = false;
  12182. // this.selectAnswer = {};
  12183. this.selectSWorks();
  12184. this.selectStudent();
  12185. })
  12186. .catch((err) => {
  12187. this.$message.error("提交失败");
  12188. console.error(err);
  12189. });
  12190. },
  12191. addWordWorks() {
  12192. let params = [
  12193. {
  12194. uid: this.userid,
  12195. cid: this.id,
  12196. stage: this.courseType,
  12197. task: this.taskCount,
  12198. tool: this.toolindex,
  12199. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12200. type: 13,
  12201. atool: 52,
  12202. },
  12203. ];
  12204. console.log(params);
  12205. this.ajax
  12206. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12207. .then((res) => {
  12208. this.$message({
  12209. message: "提交成功",
  12210. type: "success",
  12211. });
  12212. this.dialogVisibleWord = false;
  12213. // this.selectAnswer = {};
  12214. this.selectSWorks();
  12215. this.selectStudent();
  12216. })
  12217. .catch((err) => {
  12218. this.$message.error("提交失败");
  12219. console.error(err);
  12220. });
  12221. },
  12222. addWordWorksTeacher() {
  12223. let params = [
  12224. {
  12225. uid: this.sStudent.userid,
  12226. cid: this.id,
  12227. stage: this.courseType,
  12228. task: this.taskCount,
  12229. tool: this.toolindex,
  12230. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12231. type: 13,
  12232. atool: 52,
  12233. },
  12234. ];
  12235. console.log(params);
  12236. this.ajax
  12237. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12238. .then((res) => {
  12239. this.$message({
  12240. message: "提交成功",
  12241. type: "success",
  12242. });
  12243. this.dialogVisibleWordTeacher = false;
  12244. // this.selectAnswer = {};
  12245. this.selectSWorks();
  12246. this.selectStudent();
  12247. })
  12248. .catch((err) => {
  12249. this.$message.error("提交失败");
  12250. console.error(err);
  12251. });
  12252. },
  12253. addCourseWorks(i) {
  12254. var typesql;
  12255. if (this.fileType === 0) {
  12256. typesql = 1;
  12257. } else if (this.fileType === 1) {
  12258. typesql = 4;
  12259. } else if (this.fileType === 2) {
  12260. typesql = 5;
  12261. } else if (this.fileType === 3) {
  12262. typesql = 12;
  12263. }
  12264. if (!this.studyJuri[0].cover[0].url) {
  12265. this.$message.error("请上传文件");
  12266. return;
  12267. }
  12268. let params = [
  12269. {
  12270. uid: this.userid,
  12271. cid: this.id,
  12272. stage: this.courseType,
  12273. task: i,
  12274. tool: this.toolindex,
  12275. content: this.studyJuri[0].cover[0].url,
  12276. type: typesql,
  12277. },
  12278. ];
  12279. this.ajax
  12280. .post(this.$store.state.api + "addCourseWorksR", params)
  12281. .then((res) => {
  12282. this.$message({
  12283. message: "提交成功",
  12284. type: "success",
  12285. });
  12286. this.studyJuri[0].cover = [];
  12287. this.dialogVisible = false;
  12288. this.getCourseDetail();
  12289. })
  12290. .catch((err) => {
  12291. this.$message.error("提交失败");
  12292. console.error(err);
  12293. });
  12294. },
  12295. addCourseWorksPl(i) {
  12296. let _files = this.plworkFile;
  12297. var c = 1;
  12298. for (var k = 0; k < _files.length; k++) {
  12299. if (!_files[k].username) {
  12300. c = 2;
  12301. }
  12302. }
  12303. if (c == 2) {
  12304. this.$message.error("请填写学生姓名");
  12305. return;
  12306. }
  12307. let params = [
  12308. {
  12309. ateacher: this.userid,
  12310. cid: this.id,
  12311. stage: this.courseType,
  12312. task: i,
  12313. tool: this.toolindex,
  12314. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12315. },
  12316. ];
  12317. this.ajax
  12318. .post(this.$store.state.api + "addCourseWorksPl", params)
  12319. .then((res) => {
  12320. this.$message({
  12321. message: "提交成功",
  12322. type: "success",
  12323. });
  12324. this.plworkFile = [];
  12325. this.dialogVisiblePl = false;
  12326. this.getCourseDetail();
  12327. })
  12328. .catch((err) => {
  12329. this.$message.error("提交失败");
  12330. console.error(err);
  12331. });
  12332. },
  12333. addCourseWorks2(i) {
  12334. var typesql;
  12335. if (this.fileType === 0) {
  12336. typesql = 0;
  12337. } else if (this.fileType === 1) {
  12338. typesql = 1;
  12339. } else if (this.fileType === 2) {
  12340. typesql = 3;
  12341. } else if (this.fileType === 3) {
  12342. typesql = 12;
  12343. }
  12344. if (!this.studyJuri[0].cover[0].url) {
  12345. this.$message.error("请上传文件");
  12346. return;
  12347. }
  12348. let params = [
  12349. {
  12350. uid: this.userid,
  12351. cid: this.id,
  12352. stage: this.courseType,
  12353. task: i,
  12354. tool: this.toolindex,
  12355. content: JSON.stringify({
  12356. type: typesql,
  12357. groupIndex: this.groupIndex,
  12358. url: this.studyJuri[0].cover[0].url,
  12359. }).replaceAll(/%/g, "%25"),
  12360. type: 11,
  12361. atool: 49,
  12362. text: "",
  12363. },
  12364. ];
  12365. this.ajax
  12366. .post(this.$store.state.api + "addCourseWorks5", params)
  12367. .then((res) => {
  12368. this.$message({
  12369. message: "提交成功",
  12370. type: "success",
  12371. });
  12372. this.studyJuri[0].cover = [];
  12373. this.dialogVisibleGroupWork = false;
  12374. this.getCourseDetail();
  12375. })
  12376. .catch((err) => {
  12377. this.$message.error("提交失败");
  12378. console.error(err);
  12379. });
  12380. },
  12381. addCourseWorksGong(i, data, tool) {
  12382. let params = [
  12383. {
  12384. uid: this.userid,
  12385. cid: this.id,
  12386. stage: this.courseType,
  12387. task: this.taskCount,
  12388. tool: i,
  12389. content: data,
  12390. type: 12,
  12391. atool: tool,
  12392. text: "",
  12393. },
  12394. ];
  12395. this.ajax
  12396. .post(this.$store.state.api + "addCourseWorks5", params)
  12397. .then((res) => {
  12398. this.$message({
  12399. message: "提交成功",
  12400. type: "success",
  12401. });
  12402. this.studyJuri[0].cover = [];
  12403. this.selectSWorks();
  12404. this.selectStudent();
  12405. })
  12406. .catch((err) => {
  12407. this.$message.error("提交失败");
  12408. console.error(err);
  12409. });
  12410. },
  12411. addCourseWorksGongTeacher(i, data, tool) {
  12412. let params = [
  12413. {
  12414. uid: this.sStudent.userid,
  12415. cid: this.id,
  12416. stage: this.courseType,
  12417. task: this.taskCount,
  12418. tool: i,
  12419. content: data,
  12420. type: 12,
  12421. atool: tool,
  12422. text: "",
  12423. },
  12424. ];
  12425. this.ajax
  12426. .post(this.$store.state.api + "addCourseWorks5", params)
  12427. .then((res) => {
  12428. this.$message({
  12429. message: "提交成功",
  12430. type: "success",
  12431. });
  12432. this.studyJuri[0].cover = [];
  12433. this.dialogVisibleWorks = false;
  12434. this.selectSWorks();
  12435. this.selectStudent();
  12436. })
  12437. .catch((err) => {
  12438. this.$message.error("提交失败");
  12439. console.error(err);
  12440. });
  12441. },
  12442. addCourseWorksGongPl(i, data, tool, type) {
  12443. let params = [
  12444. {
  12445. uid: this.sStudent.userid,
  12446. cid: this.id,
  12447. stage: this.courseType,
  12448. task: this.taskCount,
  12449. tool: i,
  12450. content: data,
  12451. type: type,
  12452. atool: tool,
  12453. text: "",
  12454. },
  12455. ];
  12456. this.ajax
  12457. .post(this.$store.state.api + "addCourseWorks5", params)
  12458. .then((res) => {
  12459. this.$message({
  12460. message: "提交成功",
  12461. type: "success",
  12462. });
  12463. this.studyJuri[0].cover = [];
  12464. this.dialogVisibleWorks = false;
  12465. this.selectSWorks();
  12466. this.selectStudent();
  12467. })
  12468. .catch((err) => {
  12469. this.$message.error("提交失败");
  12470. console.error(err);
  12471. });
  12472. },
  12473. addCourseWorksTeacher(i) {
  12474. var typesql;
  12475. if (this.sTool == 32) {
  12476. this.addCourseWorksGongTeacher(
  12477. this.toolindex,
  12478. this.studyJuri[0].cover[0].url,
  12479. this.sTool
  12480. );
  12481. return;
  12482. }
  12483. if (this.fileType === 0) {
  12484. typesql = 1;
  12485. } else if (this.fileType === 1) {
  12486. typesql = 4;
  12487. } else if (this.fileType === 2) {
  12488. typesql = 5;
  12489. } else if (this.fileType === 3) {
  12490. typesql = 12;
  12491. }
  12492. if (this.sTool == 50) {
  12493. this.addCourseWorksGongPl(
  12494. this.toolindex,
  12495. this.studyJuri[0].cover[0].url,
  12496. this.sTool,
  12497. typesql
  12498. );
  12499. return;
  12500. }
  12501. if (!this.studyJuri[0].cover[0].url) {
  12502. this.$message.error("请上传文件");
  12503. return;
  12504. }
  12505. let params = [
  12506. {
  12507. uid: this.sStudent.userid,
  12508. cid: this.id,
  12509. stage: this.courseType,
  12510. task: i,
  12511. tool: this.toolindex,
  12512. content: this.studyJuri[0].cover[0].url,
  12513. type: typesql,
  12514. ateacher: this.userid,
  12515. },
  12516. ];
  12517. this.ajax
  12518. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12519. .then((res) => {
  12520. this.$message({
  12521. message: "提交成功",
  12522. type: "success",
  12523. });
  12524. this.studyJuri[0].cover = [];
  12525. this.dialogVisibleWorks = false;
  12526. this.getCourseDetail();
  12527. })
  12528. .catch((err) => {
  12529. this.$message.error("提交失败");
  12530. console.error(err);
  12531. });
  12532. },
  12533. selectUploadStudent(type) {
  12534. const loading = this.$loading.service({
  12535. background: "rgba(255, 255, 255, 0.7)",
  12536. target: document.body,
  12537. });
  12538. let params = {
  12539. cid: this.uploadCid,
  12540. oid: this.oid,
  12541. cn: "",
  12542. };
  12543. this.ajax
  12544. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12545. .then((res) => {
  12546. loading.close();
  12547. var studentK = [];
  12548. if (this.isWorksS[this.toolindex].length > 0) {
  12549. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12550. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12551. }
  12552. studentK = studentK.join(",");
  12553. }
  12554. this.uploadStudentJuri = res.data[0].filter((el) => {
  12555. return studentK.indexOf(el.userid) == -1;
  12556. });
  12557. if (this.worksSName && this.worksSid) {
  12558. this.uploadStudentJuri.push({
  12559. userid: this.worksSid,
  12560. name: this.worksSName,
  12561. });
  12562. }
  12563. if (type == 1) {
  12564. this.plworkFile = [];
  12565. this.dialogVisibleSname = true;
  12566. } else if (type == 2) {
  12567. this.dialogVisiblePl = true;
  12568. }
  12569. })
  12570. .catch((err) => {
  12571. loading.close();
  12572. console.error(err);
  12573. });
  12574. },
  12575. arrayToArray(arrayo, arrayt) {
  12576. let array1 = arrayo;
  12577. let array2 = arrayt;
  12578. let commonElements = [];
  12579. for (let i = 0; i < array1.length; i++) {
  12580. for (let j = 0; j < array2.length; j++) {
  12581. if (array1[i] === array2[j]) {
  12582. commonElements.push(array1[i]);
  12583. }
  12584. }
  12585. }
  12586. return commonElements;
  12587. },
  12588. selectWorksStudent() {
  12589. let params = {
  12590. oid: this.oid,
  12591. cid: this.courseDetail.juri,
  12592. };
  12593. this.ajax
  12594. .get(this.$store.state.api + "selectWorksStudent", params)
  12595. .then((res) => {
  12596. var a = res.data[0];
  12597. for (var i = 0; i < this.isWorksS.length; i++) {
  12598. this.noWorksS[i] = [];
  12599. var studentK = [];
  12600. if (this.isWorksS[i].length > 0) {
  12601. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12602. studentK.push(this.isWorksS[i][z].uid);
  12603. }
  12604. studentK = studentK.join(",");
  12605. for (var j = 0; j < a.length; j++) {
  12606. // if (studentK.indexOf(a[j].userid) == -1) {
  12607. if (this.tcid) {
  12608. // a[j].classid.indexOf(this.tcid) != -1
  12609. if (
  12610. this.arrayToArray(
  12611. a[j].classid.split(","),
  12612. this.tcid.split(",")
  12613. ).length
  12614. ) {
  12615. this.noWorksS[i].push({
  12616. student: a[j].name,
  12617. userid: a[j].userid,
  12618. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12619. });
  12620. }
  12621. } else {
  12622. this.noWorksS[i].push({
  12623. student: a[j].name,
  12624. userid: a[j].userid,
  12625. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12626. });
  12627. }
  12628. // }
  12629. }
  12630. } else {
  12631. for (var k = 0; k < a.length; k++) {
  12632. if (this.tcid) {
  12633. if (
  12634. this.arrayToArray(
  12635. a[k].classid.split(","),
  12636. this.tcid.split(",")
  12637. ).length
  12638. ) {
  12639. this.noWorksS[i].push({
  12640. student: a[k].name,
  12641. userid: a[k].userid,
  12642. type: "1",
  12643. });
  12644. }
  12645. } else {
  12646. this.noWorksS[i].push({
  12647. student: a[k].name,
  12648. userid: a[k].userid,
  12649. type: "1",
  12650. });
  12651. }
  12652. }
  12653. }
  12654. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  12655. // let jscoreA = parseInt(a.type);
  12656. // let jscoreB = parseInt(b.type);
  12657. // return jscoreB - jscoreA;
  12658. // });
  12659. }
  12660. this.$forceUpdate();
  12661. if (
  12662. Object.keys(this.commentDetail).length &&
  12663. Object.keys(this.commentIndexJson).length &&
  12664. !this.dialogVisibleScore
  12665. ) {
  12666. let a = 1;
  12667. let c = this.commentIndexJson;
  12668. console.log(c);
  12669. if (
  12670. this.commentIndexJson.gindex ||
  12671. this.commentIndexJson.gindex === 0
  12672. ) {
  12673. for (
  12674. var i = 0;
  12675. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12676. i++
  12677. ) {
  12678. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12679. groupA: for (var k = 0; k < _el.length; k++) {
  12680. let el = _el[k];
  12681. if (el.wid == this.commentDetail.wid) {
  12682. a = 2;
  12683. this.commentOther(
  12684. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12685. this.commentIndexJson.toolIndex,
  12686. k,
  12687. this.commentIndexJson.gindex
  12688. );
  12689. break groupA;
  12690. }
  12691. }
  12692. }
  12693. if (a === 1) {
  12694. this.commentDetail = [];
  12695. this.commentIndexJson = {};
  12696. this.commentDialogVisible = false;
  12697. this.$message("此作业已被删除");
  12698. }
  12699. } else {
  12700. if (this.isGroup && this.commentIndexJson.gid) {
  12701. groupA: for (
  12702. var i = 0;
  12703. i < this.courseGroup.group.length;
  12704. i++
  12705. ) {
  12706. let _group = this.courseGroup.group[i];
  12707. if (_group.id == this.commentIndexJson.gid) {
  12708. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12709. for (var k = 0; k < _el2.length; k++) {
  12710. let el2 = _el2[k];
  12711. if (el2.wid == this.commentDetail.wid) {
  12712. a = 2;
  12713. this.commentOther(
  12714. _el2[k],
  12715. this.commentIndexJson.toolIndex,
  12716. k,
  12717. null,
  12718. this.commentIndexJson.gid
  12719. );
  12720. break groupA;
  12721. }
  12722. }
  12723. }
  12724. }
  12725. }
  12726. if (a == 1) {
  12727. for (
  12728. var i = 0;
  12729. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12730. i++
  12731. ) {
  12732. let el =
  12733. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12734. if (el.wid == this.commentDetail.wid) {
  12735. a = 2;
  12736. this.commentOther(
  12737. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12738. this.commentIndexJson.toolIndex,
  12739. i
  12740. );
  12741. break;
  12742. }
  12743. }
  12744. }
  12745. if (a === 1) {
  12746. this.commentDetail = [];
  12747. this.commentIndexJson = {};
  12748. this.commentDialogVisible = false;
  12749. this.$message("此作业已被删除");
  12750. }
  12751. }
  12752. }
  12753. })
  12754. .catch((err) => {
  12755. console.error(err);
  12756. });
  12757. },
  12758. selectStudent() {},
  12759. openVideo(w) {
  12760. this.videoDetail = {};
  12761. this.playerOptions1.sources[0].src = w.works;
  12762. this.videoDetail = this.playerOptions1;
  12763. this.videoVisible = true;
  12764. },
  12765. isLikes(wid, uid, t, c, isLikes) {
  12766. if (isLikes == false) {
  12767. let params = [
  12768. {
  12769. wid: wid,
  12770. lid: uid,
  12771. t: t,
  12772. c: c,
  12773. },
  12774. ];
  12775. this.ajax
  12776. .post(this.$store.state.api + "insertComment", params)
  12777. .then((res) => {
  12778. this.$message({
  12779. message: "点赞成功",
  12780. type: "success",
  12781. });
  12782. this.selectSWorks();
  12783. this.selectStudent();
  12784. })
  12785. .catch((err) => {
  12786. this.$message.error("点赞失败");
  12787. console.error(err);
  12788. });
  12789. } else {
  12790. let params = {
  12791. wid: wid,
  12792. lid: uid,
  12793. type: t,
  12794. };
  12795. this.ajax
  12796. .get(this.$store.state.api + "deleteComment", params)
  12797. .then((res) => {
  12798. this.$message({
  12799. message: "取消点赞成功",
  12800. type: "success",
  12801. });
  12802. this.selectSWorks();
  12803. this.selectStudent();
  12804. })
  12805. .catch((err) => {
  12806. console.error(err);
  12807. });
  12808. }
  12809. },
  12810. deleteComment(wid) {
  12811. this.$confirm("确定删除此评论吗?", "提示", {
  12812. confirmButtonText: "确定",
  12813. cancelButtonText: "取消",
  12814. type: "warning",
  12815. })
  12816. .then(() => {
  12817. let params = {
  12818. id: wid,
  12819. };
  12820. this.ajax
  12821. .get(this.$store.state.api + "deleteComment2", params)
  12822. .then((res) => {
  12823. this.$message({
  12824. message: "删除评论成功",
  12825. type: "success",
  12826. });
  12827. this.selectSWorks();
  12828. this.selectStudent();
  12829. })
  12830. .catch((err) => {
  12831. console.error(err);
  12832. });
  12833. })
  12834. .catch(() => {});
  12835. },
  12836. commentOther(w, toolIndex, wIndex, gindex, gid) {
  12837. this.commentIndexJson = {
  12838. toolIndex: toolIndex,
  12839. wIndex: wIndex,
  12840. gindex: gindex,
  12841. gid: gid,
  12842. };
  12843. this.commentDetail = [];
  12844. this.commentDialogVisible = true;
  12845. this.commentDetail = w;
  12846. if (w.works && w.type == 1) {
  12847. this.pptImgUrl = "";
  12848. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12849. if (
  12850. a.indexOf(
  12851. w.works
  12852. .split(".")
  12853. [w.works.split(".").length - 1].toLocaleUpperCase()
  12854. ) != -1
  12855. ) {
  12856. this.pptImgUrl =
  12857. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12858. this.showPDF = false;
  12859. } else if (
  12860. w.works
  12861. .split(".")
  12862. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12863. ) {
  12864. this.pptImgUrl = w.works;
  12865. this.showPDF = true;
  12866. }
  12867. } else if (w.works && w.type == 3) {
  12868. this.videoDetail = {};
  12869. this.playerOptions1.sources[0].src = w.works;
  12870. this.videoDetail = this.playerOptions1;
  12871. // this.videoVisible = true;
  12872. } else if (w.works && w.type == 4) {
  12873. this.eScore = JSON.parse(w.works);
  12874. this.rateJson =
  12875. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12876. this.taskCount
  12877. ].toolChoose[toolIndex].rateJson;
  12878. } else if (w.works && w.type == 10) {
  12879. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  12880. } else if (w.works && w.type == 13) {
  12881. this.wordJson =
  12882. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12883. this.taskCount
  12884. ].toolChoose[toolIndex].wordJson;
  12885. }
  12886. },
  12887. openScore(w) {
  12888. this.wScore = 0;
  12889. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  12890. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  12891. this.commentDetail = [];
  12892. this.dialogVisibleScore = true;
  12893. this.commentDetail = w;
  12894. if (w.works && w.type == 1) {
  12895. this.pptImgUrl = "";
  12896. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12897. if (
  12898. a.indexOf(
  12899. w.works
  12900. .split(".")
  12901. [w.works.split(".").length - 1].toLocaleUpperCase()
  12902. ) != -1
  12903. ) {
  12904. this.pptImgUrl =
  12905. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12906. this.showPDF = false;
  12907. } else if (
  12908. w.works
  12909. .split(".")
  12910. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12911. ) {
  12912. this.pptImgUrl = w.works;
  12913. this.showPDF = true;
  12914. }
  12915. } else if (w.works && w.type == 3) {
  12916. this.videoDetail = {};
  12917. this.playerOptions1.sources[0].src = w.works;
  12918. this.videoDetail = this.playerOptions1;
  12919. }
  12920. },
  12921. addComment(wid, uid, t) {
  12922. if (this.commentText == "") {
  12923. this.$message.error("请输入评论");
  12924. return;
  12925. }
  12926. let params2 = [
  12927. {
  12928. wid: wid,
  12929. lid: uid,
  12930. t: t,
  12931. },
  12932. ];
  12933. this.ajax
  12934. .post(this.$store.state.api + "getComment", params2)
  12935. .then((res) => {
  12936. if (res.data[0].length > 0) {
  12937. this.$message.error("一个作业只能评论一条");
  12938. } else {
  12939. let params = [
  12940. {
  12941. wid: wid,
  12942. lid: uid,
  12943. t: t,
  12944. c: this.commentText,
  12945. },
  12946. ];
  12947. this.ajax
  12948. .post(this.$store.state.api + "insertComment", params)
  12949. .then((res) => {
  12950. this.$message({
  12951. message: "评论成功",
  12952. type: "success",
  12953. });
  12954. this.commentText = "";
  12955. this.selectSWorks();
  12956. this.selectStudent();
  12957. })
  12958. .catch((err) => {
  12959. this.$message.error("评论失败");
  12960. console.error(err);
  12961. });
  12962. }
  12963. })
  12964. .catch((err) => {
  12965. // this.$message.error("评论失败");
  12966. console.error(err);
  12967. });
  12968. },
  12969. scoreWork(wid) {
  12970. if (this.wScore == 0) {
  12971. this.$message.error("请评分");
  12972. return;
  12973. }
  12974. let params = [
  12975. {
  12976. wid: wid,
  12977. score: JSON.stringify({
  12978. wScore: this.wScore,
  12979. detail: this.scoreDetail,
  12980. }),
  12981. },
  12982. ];
  12983. this.ajax
  12984. .post(this.$store.state.api + "scoreWork", params)
  12985. .then((res) => {
  12986. this.$message({
  12987. message: "评分成功",
  12988. type: "success",
  12989. });
  12990. this.wScore = 0;
  12991. this.scoreDetail = "";
  12992. this.dialogVisibleScore = false;
  12993. this.selectSWorks();
  12994. this.selectStudent();
  12995. })
  12996. .catch((err) => {
  12997. this.$message.error("评分失败");
  12998. console.error(err);
  12999. });
  13000. },
  13001. openXz(w, i) {
  13002. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13003. .taskJson[this.taskCount].toolChoose[i].selectJson
  13004. ? JSON.parse(
  13005. JSON.stringify(
  13006. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13007. this.taskCount
  13008. ].toolChoose[i].selectJson
  13009. )
  13010. )
  13011. : { url: "", select: [], answer: [] };
  13012. var a = w.works.split(",");
  13013. for (var k = 0; k < a.length; k++) {
  13014. a[k] = parseInt(a[k]);
  13015. }
  13016. this.selectAnswer = { answer: a, stu: w.sName };
  13017. this.isSelect = true;
  13018. this.dialogVisibleSelect = true;
  13019. },
  13020. openSen(w, i) {
  13021. this.sentenceList1 = JSON.parse(w.works);
  13022. this.sentenceList1.stuName = w.sName;
  13023. this.dialogVisibleSentence1 = true;
  13024. },
  13025. openPj(w, toolindex) {
  13026. this.isStar = true;
  13027. this.eScore = JSON.parse(w);
  13028. this.rateJson =
  13029. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13030. this.taskCount
  13031. ].toolChoose[toolindex].rateJson;
  13032. this.studentEvalDialogVisible = true;
  13033. },
  13034. deleteWorks(id) {
  13035. this.$confirm("确定删除此作业吗?", "提示", {
  13036. confirmButtonText: "确定",
  13037. cancelButtonText: "取消",
  13038. type: "warning",
  13039. })
  13040. .then(() => {
  13041. let params = [
  13042. {
  13043. id: id,
  13044. },
  13045. ];
  13046. this.ajax
  13047. .post(this.$store.state.api + "deleteCourseWork", params)
  13048. .then((res) => {
  13049. this.$message({
  13050. message: "删除成功",
  13051. type: "success",
  13052. });
  13053. this.selectStudent();
  13054. this.selectSWorks();
  13055. this.selectSLook();
  13056. })
  13057. .catch((err) => {
  13058. this.$message.error("网络异常");
  13059. console.error(err);
  13060. });
  13061. })
  13062. .catch(() => {});
  13063. },
  13064. selectSWorks(gindex) {
  13065. //教师查看全部作业
  13066. let params = {
  13067. cid: this.id,
  13068. s: this.courseType,
  13069. t: this.taskCount,
  13070. };
  13071. this.ajax
  13072. .get(this.$store.state.api + "selectSWorks", params)
  13073. .then((res) => {
  13074. var a =
  13075. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13076. this.taskCount
  13077. ].toolChoose;
  13078. var b = res.data[0];
  13079. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13080. var y = [
  13081. "AVI",
  13082. "NAVI",
  13083. "MPEG",
  13084. "ASF",
  13085. "MOV",
  13086. "WMV",
  13087. "3GP",
  13088. "RM",
  13089. "RMVB",
  13090. "FLV",
  13091. "F4V",
  13092. "H.264",
  13093. "H.265",
  13094. "REAL VIDEO",
  13095. "MKV",
  13096. "WebM",
  13097. "HDDVD",
  13098. "MP4",
  13099. "MPG",
  13100. "M4V",
  13101. "MGV",
  13102. "OGV",
  13103. "QTM",
  13104. "STR",
  13105. "AMC",
  13106. "DVX",
  13107. "EVO",
  13108. "DAT",
  13109. "OGG",
  13110. "OGM",
  13111. ];
  13112. var d = res.data[1];
  13113. var e = res.data[2];
  13114. var f = res.data[3];
  13115. for (var i = 0; i < a.length; i++) {
  13116. this.worksStudent[i] = [];
  13117. this.worksTeacher[i] = [];
  13118. this.worksStudent2[i] = [];
  13119. if (
  13120. !this.isCloseList[i] ||
  13121. this.isCloseList[i].isClose == undefined
  13122. ) {
  13123. this.isCloseList[i] = { isClose: 0 };
  13124. }
  13125. this.groupStudent[i] = [];
  13126. this.groupStudentUid[i] = [];
  13127. this.isWorksS[i] = [];
  13128. this.checkJson[i] = [];
  13129. if (a[i].tool[0] == 49) {
  13130. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13131. this.groupStudent[i][gA] = [];
  13132. this.groupStudentUid[i][gA] = [];
  13133. this.worksStudent[i][gA] = [];
  13134. this.isCloseList[i][gA] = [];
  13135. for (var g = 0; g < f.length; g++) {
  13136. if (
  13137. f[g].ttype == 2 &&
  13138. this.tcid &&
  13139. this.arrayToArray(
  13140. f[g].classid.split(","),
  13141. this.tcid.split(",")
  13142. ).length == 0
  13143. ) {
  13144. continue;
  13145. }
  13146. if (gA == f[g].group && f[g].tool == i) {
  13147. this.groupStudent[i][gA].push(f[g]);
  13148. this.groupStudentUid[i][gA].push(f[g].userid);
  13149. }
  13150. }
  13151. }
  13152. this.$forceUpdate();
  13153. }
  13154. for (var j = 0; j < b.length; j++) {
  13155. if (
  13156. b[j].ttype == 2 &&
  13157. this.tcid &&
  13158. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13159. .length == 0
  13160. ) {
  13161. continue;
  13162. }
  13163. var likesCount = 0;
  13164. var commentCount = 0;
  13165. var isLikes = false;
  13166. var commentJson = [];
  13167. var data = b[j];
  13168. if (i == b[j].tool) {
  13169. if (data.type == 2 && a[i].tool[0] == 4) {
  13170. // if(JSON.parse(data.content)[0].anwer){
  13171. var checkL =
  13172. JSON.parse(data.content)[0].anwer instanceof Array
  13173. ? JSON.parse(data.content)[0].anwer
  13174. : JSON.parse(data.content)[0].anwer.split(",");
  13175. for (var z = 0; z < checkL.length; z++) {
  13176. if (!this.checkJson[i][z]) {
  13177. this.checkJson[i].push({
  13178. checkCount: [],
  13179. checkPerson: [],
  13180. rightPerson: [],
  13181. });
  13182. }
  13183. if (!this.checkJson[i][z].checkCount.length) {
  13184. this.checkJson[i][z].checkCount = [];
  13185. let _askItemCount = JSON.parse(data.content)[0].askJson
  13186. .askJson[z].askItem;
  13187. for (var aic = 0; aic < _askItemCount; aic++) {
  13188. this.checkJson[i][z].checkCount.push(0);
  13189. }
  13190. }
  13191. if (checkL[z] instanceof Array) {
  13192. if (
  13193. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13194. checkL[z].sort().join(",")
  13195. ) {
  13196. this.checkJson[i][z].rightPerson.push(data.name);
  13197. }
  13198. for (var q = 0; q < checkL[z].length; q++) {
  13199. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13200. ? this.checkJson[i][z].checkPerson[
  13201. parseInt(checkL[z][q])
  13202. ].push(data.name)
  13203. : (this.checkJson[i][z].checkPerson[
  13204. parseInt(checkL[z][q])
  13205. ] = [data.name]);
  13206. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13207. ? this.checkJson[i][z].checkCount[
  13208. parseInt(checkL[z][q])
  13209. ]++
  13210. : (this.checkJson[i][z].checkCount[
  13211. parseInt(checkL[z][q])
  13212. ] = 1);
  13213. }
  13214. } else {
  13215. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13216. this.checkJson[i][z].rightPerson.push(data.name);
  13217. }
  13218. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13219. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13220. ? this.checkJson[i][z].checkPerson[
  13221. parseInt(checkL[z])
  13222. ].push(data.name)
  13223. : (this.checkJson[i][z].checkPerson[
  13224. parseInt(checkL[z])
  13225. ] = [data.name]);
  13226. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13227. ? this.checkJson[i][z].checkCount[
  13228. parseInt(checkL[z])
  13229. ]++
  13230. : (this.checkJson[i][z].checkCount[
  13231. parseInt(checkL[z])
  13232. ] = 1);
  13233. }
  13234. }
  13235. }
  13236. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13237. var checkL = JSON.parse(data.content)[0].anwer;
  13238. for (var z = 0; z < checkL.length; z++) {
  13239. if (!this.checkJson[i][z]) {
  13240. this.checkJson[i].push({
  13241. checkCount: [],
  13242. checkPerson: [],
  13243. rightPerson: [],
  13244. });
  13245. }
  13246. if (!this.checkJson[i][z].checkCount.length) {
  13247. this.checkJson[i][z].checkCount = [];
  13248. let _askItemCount = JSON.parse(data.content)[0].testJson
  13249. .testJson[z].testItem;
  13250. console.log(_askItemCount);
  13251. for (var aic = 0; aic < _askItemCount; aic++) {
  13252. this.checkJson[i][z].checkCount.push(0);
  13253. }
  13254. }
  13255. if (checkL[z] instanceof Array) {
  13256. if (
  13257. JSON.parse(data.content)[0]
  13258. .testJson.testJson[z].answer.sort()
  13259. .join(",") == checkL[z].sort().join(",")
  13260. ) {
  13261. this.checkJson[i][z].rightPerson.push(data.name);
  13262. }
  13263. for (var q = 0; q < checkL[z].length; q++) {
  13264. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13265. ? this.checkJson[i][z].checkPerson[
  13266. parseInt(checkL[z][q])
  13267. ].push(data.name)
  13268. : (this.checkJson[i][z].checkPerson[
  13269. parseInt(checkL[z][q])
  13270. ] = [data.name]);
  13271. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13272. ? this.checkJson[i][z].checkCount[
  13273. parseInt(checkL[z][q])
  13274. ]++
  13275. : (this.checkJson[i][z].checkCount[
  13276. parseInt(checkL[z][q])
  13277. ] = 1);
  13278. }
  13279. } else {
  13280. if (
  13281. JSON.parse(data.content)[0].testJson.testJson[z]
  13282. .answer == checkL[z]
  13283. ) {
  13284. this.checkJson[i][z].rightPerson.push(data.name);
  13285. }
  13286. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13287. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13288. ? this.checkJson[i][z].checkPerson[
  13289. parseInt(checkL[z])
  13290. ].push(data.name)
  13291. : (this.checkJson[i][z].checkPerson[
  13292. parseInt(checkL[z])
  13293. ] = [data.name]);
  13294. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13295. ? this.checkJson[i][z].checkCount[
  13296. parseInt(checkL[z])
  13297. ]++
  13298. : (this.checkJson[i][z].checkCount[
  13299. parseInt(checkL[z])
  13300. ] = 1);
  13301. }
  13302. }
  13303. }
  13304. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13305. var checkL = JSON.parse(data.content);
  13306. for (var z = 0; z < checkL.length; z++) {
  13307. if (!this.checkJson[i][z]) {
  13308. this.checkJson[i].push({
  13309. checkCount: [],
  13310. checkPerson: [],
  13311. rightPerson: [],
  13312. });
  13313. }
  13314. this.checkJson[i][z].checkPerson.push(data.name);
  13315. if (
  13316. checkL[z].chooseSenList.toString() ==
  13317. checkL[z].rightAnswer.toString()
  13318. ) {
  13319. this.checkJson[i][z].rightPerson.push(data.name);
  13320. }
  13321. }
  13322. }
  13323. for (var k = 0; k < d.length; k++) {
  13324. //点赞
  13325. if (d[k].workId == b[j].id) {
  13326. likesCount++;
  13327. if (d[k].likesId == this.userid) {
  13328. isLikes = true;
  13329. }
  13330. }
  13331. }
  13332. for (var l = 0; l < e.length; l++) {
  13333. //评论
  13334. if (e[l].workId == b[j].id) {
  13335. if (e[l].comment != "") {
  13336. commentCount++;
  13337. commentJson.push({
  13338. commentText: e[l].comment,
  13339. commentTime: e[l].commentTime,
  13340. commentPeople: e[l].commentPeople,
  13341. userid: e[l].userid,
  13342. wid: e[l].id,
  13343. });
  13344. }
  13345. }
  13346. }
  13347. if (
  13348. (b[j].type == 1 ||
  13349. b[j].type == 4 ||
  13350. b[j].type == 5 ||
  13351. b[j].type == 6 ||
  13352. b[j].type == 12 ||
  13353. b[j].type == 7) &&
  13354. a[i].tool[0] != 15 &&
  13355. a[i].tool[0] != 4 &&
  13356. a[i].tool[0] != 45 &&
  13357. a[i].tool[0] != 50 &&
  13358. a[i].tool[0] != 32 &&
  13359. a[i].tool[0] != 57 &&
  13360. a[i].tool[0] != 52
  13361. ) {
  13362. if (
  13363. c.indexOf(
  13364. b[j].content
  13365. .split(".")
  13366. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13367. ) != -1 &&
  13368. a[i].tool[0] == 16 &&
  13369. b[j].atool != 50
  13370. ) {
  13371. let _works = {
  13372. userid: b[j].userid,
  13373. ateacher: b[j].ateacher,
  13374. wid: b[j].id,
  13375. works: b[j].content,
  13376. sName: b[j].name,
  13377. type: 1,
  13378. time: b[j].time,
  13379. score: b[j].score,
  13380. img: b[j].img,
  13381. likesCount: likesCount,
  13382. commentCount: commentCount,
  13383. isLikes: isLikes,
  13384. commentJson: commentJson,
  13385. };
  13386. if (b[j].ttype == 1) {
  13387. this.worksTeacher[i].push(_works);
  13388. } else {
  13389. this.worksStudent2[i].push(_works);
  13390. }
  13391. this.worksStudent[i].push(_works);
  13392. this.isWorksS[i].push({
  13393. uid: b[j].userid,
  13394. sName: b[j].name,
  13395. });
  13396. } else if (
  13397. y.indexOf(
  13398. b[j].content
  13399. .split(".")
  13400. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13401. ) != -1 &&
  13402. a[i].tool[0] == 16 &&
  13403. b[j].atool != 50
  13404. ) {
  13405. let _works = {
  13406. userid: b[j].userid,
  13407. ateacher: b[j].ateacher,
  13408. wid: b[j].id,
  13409. works: b[j].content,
  13410. sName: b[j].name,
  13411. type: 3,
  13412. time: b[j].time,
  13413. score: b[j].score,
  13414. img: b[j].img,
  13415. likesCount: likesCount,
  13416. commentCount: commentCount,
  13417. isLikes: isLikes,
  13418. commentJson: commentJson,
  13419. };
  13420. if (b[j].ttype == 1) {
  13421. this.worksTeacher[i].push(_works);
  13422. } else {
  13423. this.worksStudent2[i].push(_works);
  13424. }
  13425. this.worksStudent[i].push(_works);
  13426. this.isWorksS[i].push({
  13427. uid: b[j].userid,
  13428. sName: b[j].name,
  13429. });
  13430. } else if (b[j].type == 6 && b[j].atool != 50) {
  13431. let _works = {
  13432. userid: b[j].userid,
  13433. ateacher: b[j].ateacher,
  13434. wid: b[j].id,
  13435. works: b[j].content,
  13436. sName: b[j].name,
  13437. type: 4,
  13438. time: b[j].time,
  13439. score: b[j].score,
  13440. img: b[j].img,
  13441. likesCount: likesCount,
  13442. commentCount: commentCount,
  13443. isLikes: isLikes,
  13444. commentJson: commentJson,
  13445. };
  13446. if (b[j].ttype == 1) {
  13447. this.worksTeacher[i].push(_works);
  13448. } else {
  13449. this.worksStudent2[i].push(_works);
  13450. }
  13451. this.worksStudent[i].push(_works);
  13452. this.isWorksS[i].push({
  13453. uid: b[j].userid,
  13454. sName: b[j].name,
  13455. });
  13456. } else if (b[j].type == 7 && b[j].atool != 50) {
  13457. let _works = {
  13458. userid: b[j].userid,
  13459. ateacher: b[j].ateacher,
  13460. wid: b[j].id,
  13461. works: b[j].content,
  13462. sName: b[j].name,
  13463. type: 5,
  13464. time: b[j].time,
  13465. score: b[j].score,
  13466. img: b[j].img,
  13467. likesCount: likesCount,
  13468. commentCount: commentCount,
  13469. isLikes: isLikes,
  13470. commentJson: commentJson,
  13471. };
  13472. if (b[j].ttype == 1) {
  13473. this.worksTeacher[i].push(_works);
  13474. } else {
  13475. this.worksStudent2[i].push(_works);
  13476. }
  13477. this.worksStudent[i].push(_works);
  13478. this.isWorksS[i].push({
  13479. uid: b[j].userid,
  13480. sName: b[j].name,
  13481. });
  13482. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13483. let _works = {
  13484. userid: b[j].userid,
  13485. ateacher: b[j].ateacher,
  13486. wid: b[j].id,
  13487. works: b[j].content,
  13488. sName: b[j].name,
  13489. type: 12,
  13490. time: b[j].time,
  13491. score: b[j].score,
  13492. img: b[j].img,
  13493. likesCount: likesCount,
  13494. commentCount: commentCount,
  13495. isLikes: isLikes,
  13496. commentJson: commentJson,
  13497. };
  13498. if (b[j].ttype == 1) {
  13499. this.worksTeacher[i].push(_works);
  13500. } else {
  13501. this.worksStudent2[i].push(_works);
  13502. }
  13503. this.worksStudent[i].push(_works);
  13504. this.isWorksS[i].push({
  13505. uid: b[j].userid,
  13506. sName: b[j].name,
  13507. });
  13508. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13509. let _works = {
  13510. userid: b[j].userid,
  13511. ateacher: b[j].ateacher,
  13512. wid: b[j].id,
  13513. works: b[j].content,
  13514. sName: b[j].name,
  13515. type: 0,
  13516. time: b[j].time,
  13517. score: b[j].score,
  13518. img: b[j].img,
  13519. likesCount: likesCount,
  13520. commentCount: commentCount,
  13521. isLikes: isLikes,
  13522. commentJson: commentJson,
  13523. };
  13524. if (b[j].ttype == 1) {
  13525. this.worksTeacher[i].push(_works);
  13526. } else {
  13527. this.worksStudent2[i].push(_works);
  13528. }
  13529. this.worksStudent[i].push(_works);
  13530. this.isWorksS[i].push({
  13531. uid: b[j].userid,
  13532. sName: b[j].name,
  13533. });
  13534. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  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: 0,
  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({
  13557. uid: b[j].userid,
  13558. sName: b[j].name,
  13559. });
  13560. }
  13561. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13562. let _works = {
  13563. userid: b[j].userid,
  13564. ateacher: b[j].ateacher,
  13565. wid: b[j].id,
  13566. works: b[j].content,
  13567. sName: b[j].name,
  13568. type: 2,
  13569. time: b[j].time,
  13570. score: b[j].score,
  13571. img: b[j].img,
  13572. likesCount: likesCount,
  13573. commentCount: commentCount,
  13574. isLikes: isLikes,
  13575. commentJson: commentJson,
  13576. };
  13577. if (b[j].ttype == 1) {
  13578. this.worksTeacher[i].push(_works);
  13579. } else {
  13580. this.worksStudent2[i].push(_works);
  13581. }
  13582. this.worksStudent[i].push(_works);
  13583. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13584. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13585. //问卷
  13586. let _works = {
  13587. userid: b[j].userid,
  13588. ateacher: b[j].ateacher,
  13589. wid: b[j].id,
  13590. works: b[j].content,
  13591. sName: b[j].name,
  13592. type: 2,
  13593. time: b[j].time,
  13594. score: b[j].score,
  13595. img: b[j].img,
  13596. likesCount: likesCount,
  13597. commentCount: commentCount,
  13598. isLikes: isLikes,
  13599. commentJson: commentJson,
  13600. };
  13601. if (b[j].ttype == 1) {
  13602. this.worksTeacher[i].push(_works);
  13603. } else {
  13604. this.worksStudent2[i].push(_works);
  13605. }
  13606. this.worksStudent[i].push(_works);
  13607. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13608. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13609. //选择题
  13610. let _works = {
  13611. userid: b[j].userid,
  13612. ateacher: b[j].ateacher,
  13613. wid: b[j].id,
  13614. works: b[j].content,
  13615. sName: b[j].name,
  13616. type: 8,
  13617. time: b[j].time,
  13618. score: b[j].score,
  13619. img: b[j].img,
  13620. likesCount: likesCount,
  13621. commentCount: commentCount,
  13622. isLikes: isLikes,
  13623. commentJson: commentJson,
  13624. };
  13625. if (b[j].ttype == 1) {
  13626. this.worksTeacher[i].push(_works);
  13627. } else {
  13628. this.worksStudent2[i].push(_works);
  13629. }
  13630. this.worksStudent[i].push(_works);
  13631. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13632. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13633. //选择题
  13634. let _works = {
  13635. userid: b[j].userid,
  13636. ateacher: b[j].ateacher,
  13637. wid: b[j].id,
  13638. works: b[j].content,
  13639. sName: b[j].name,
  13640. type: 9,
  13641. time: b[j].time,
  13642. score: b[j].score,
  13643. img: b[j].img,
  13644. likesCount: likesCount,
  13645. commentCount: commentCount,
  13646. isLikes: isLikes,
  13647. commentJson: commentJson,
  13648. };
  13649. if (b[j].ttype == 1) {
  13650. this.worksTeacher[i].push(_works);
  13651. } else {
  13652. this.worksStudent2[i].push(_works);
  13653. }
  13654. this.worksStudent[i].push(_works);
  13655. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13656. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13657. //选择题
  13658. let _works = {
  13659. userid: b[j].userid,
  13660. ateacher: b[j].ateacher,
  13661. wid: b[j].id,
  13662. works: b[j].content,
  13663. sName: b[j].name,
  13664. type: 10,
  13665. time: b[j].time,
  13666. score: b[j].score,
  13667. img: b[j].img,
  13668. likesCount: likesCount,
  13669. commentCount: commentCount,
  13670. isLikes: isLikes,
  13671. commentJson: commentJson,
  13672. };
  13673. if (b[j].ttype == 1) {
  13674. this.worksTeacher[i].push(_works);
  13675. } else {
  13676. this.worksStudent2[i].push(_works);
  13677. }
  13678. this.worksStudent[i].push(_works);
  13679. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13680. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13681. //选择题
  13682. let _works = {
  13683. userid: b[j].userid,
  13684. ateacher: b[j].ateacher,
  13685. wid: b[j].id,
  13686. works: b[j].content,
  13687. sName: b[j].name,
  13688. type: 13,
  13689. time: b[j].time,
  13690. score: b[j].score,
  13691. img: b[j].img,
  13692. likesCount: likesCount,
  13693. commentCount: commentCount,
  13694. isLikes: isLikes,
  13695. commentJson: commentJson,
  13696. };
  13697. if (b[j].ttype == 1) {
  13698. this.worksTeacher[i].push(_works);
  13699. } else {
  13700. this.worksStudent2[i].push(_works);
  13701. }
  13702. this.worksStudent[i].push(_works);
  13703. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13704. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  13705. let _gindex = JSON.parse(b[j].content);
  13706. if (
  13707. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  13708. b[j].userid
  13709. ) != -1
  13710. ) {
  13711. this.worksStudent[i][_gindex.groupIndex].push({
  13712. userid: b[j].userid,
  13713. ateacher: b[j].ateacher,
  13714. wid: b[j].id,
  13715. works: _gindex.url,
  13716. sName: b[j].name,
  13717. type: _gindex.type,
  13718. time: b[j].time,
  13719. score: b[j].score,
  13720. img: b[j].img,
  13721. likesCount: likesCount,
  13722. commentCount: commentCount,
  13723. isLikes: isLikes,
  13724. commentJson: commentJson,
  13725. });
  13726. }
  13727. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13728. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  13729. let _works = {
  13730. userid: b[j].userid,
  13731. ateacher: b[j].ateacher,
  13732. wid: b[j].id,
  13733. works: b[j].content,
  13734. sName: b[j].name ? b[j].name : b[j].userid,
  13735. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  13736. time: b[j].time,
  13737. score: b[j].score,
  13738. img: b[j].img,
  13739. likesCount: likesCount,
  13740. commentCount: commentCount,
  13741. isLikes: isLikes,
  13742. commentJson: commentJson,
  13743. };
  13744. if (b[j].ttype == 1) {
  13745. this.worksTeacher[i].push(_works);
  13746. } else {
  13747. this.worksStudent2[i].push(_works);
  13748. }
  13749. this.worksStudent[i].push(_works);
  13750. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13751. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  13752. let _works = {
  13753. userid: b[j].userid,
  13754. ateacher: b[j].ateacher,
  13755. wid: b[j].id,
  13756. works: b[j].content,
  13757. sName: b[j].name ? b[j].name : b[j].userid,
  13758. type: 12,
  13759. time: b[j].time,
  13760. score: b[j].score,
  13761. img: b[j].img,
  13762. likesCount: likesCount,
  13763. commentCount: commentCount,
  13764. isLikes: isLikes,
  13765. commentJson: commentJson,
  13766. };
  13767. if (b[j].ttype == 1) {
  13768. this.worksTeacher[i].push(_works);
  13769. } else {
  13770. this.worksStudent2[i].push(_works);
  13771. }
  13772. this.worksStudent[i].push(_works);
  13773. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13774. } else if (
  13775. a[i].tool[0] == 57 &&
  13776. b[j].atool == 57 &&
  13777. b[j].type == 12
  13778. ) {
  13779. let _works = {
  13780. userid: b[j].userid,
  13781. ateacher: b[j].ateacher,
  13782. wid: b[j].id,
  13783. works: b[j].content,
  13784. sName: b[j].name ? b[j].name : b[j].userid,
  13785. type: 12,
  13786. time: b[j].time,
  13787. score: b[j].score,
  13788. img: b[j].img,
  13789. likesCount: likesCount,
  13790. commentCount: commentCount,
  13791. isLikes: isLikes,
  13792. commentJson: commentJson,
  13793. };
  13794. if (b[j].ttype == 1) {
  13795. this.worksTeacher[i].push(_works);
  13796. } else {
  13797. this.worksStudent2[i].push(_works);
  13798. }
  13799. this.worksStudent[i].push(_works);
  13800. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13801. } else if (
  13802. a[i].tool[0] == 57 &&
  13803. b[j].atool == 57 &&
  13804. b[j].type == 15
  13805. ) {
  13806. let _works = {
  13807. userid: b[j].userid,
  13808. ateacher: b[j].ateacher,
  13809. wid: b[j].id,
  13810. works: b[j].content,
  13811. sName: b[j].name ? b[j].name : b[j].userid,
  13812. type: 15,
  13813. time: b[j].time,
  13814. score: b[j].score,
  13815. img: b[j].img,
  13816. likesCount: likesCount,
  13817. commentCount: commentCount,
  13818. isLikes: isLikes,
  13819. commentJson: commentJson,
  13820. };
  13821. if (b[j].ttype == 1) {
  13822. this.worksTeacher[i].push(_works);
  13823. } else {
  13824. this.worksStudent2[i].push(_works);
  13825. }
  13826. this.worksStudent[i].push(_works);
  13827. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13828. }
  13829. }
  13830. }
  13831. if (this.worksStudent[i] && this.worksStudent[i].length) {
  13832. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  13833. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13834. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13835. var scoreA = parseFloat(jscoreA);
  13836. var scoreB = parseFloat(jscoreB);
  13837. if (scoreA == scoreB) {
  13838. return b.likesCount - a.likesCount;
  13839. }
  13840. return scoreB - scoreA;
  13841. });
  13842. }
  13843. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  13844. this.worksStudent2[i] = this.worksStudent2[i].sort(function (
  13845. a,
  13846. b
  13847. ) {
  13848. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13849. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13850. var scoreA = parseFloat(jscoreA);
  13851. var scoreB = parseFloat(jscoreB);
  13852. if (scoreA == scoreB) {
  13853. return b.likesCount - a.likesCount;
  13854. }
  13855. return scoreB - scoreA;
  13856. });
  13857. }
  13858. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  13859. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  13860. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13861. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13862. var scoreA = parseFloat(jscoreA);
  13863. var scoreB = parseFloat(jscoreB);
  13864. if (scoreA == scoreB) {
  13865. return b.likesCount - a.likesCount;
  13866. }
  13867. return scoreB - scoreA;
  13868. });
  13869. }
  13870. }
  13871. for (var i = 0; i < a.length; i++) {
  13872. for (var j = 0; j < b.length; j++) {
  13873. var data = b[j];
  13874. if (i == b[j].tool) {
  13875. if (data.type == 2 || data.type == 8) {
  13876. for (var z = 0; z < this.checkJson[i].length; z++) {
  13877. this.checkJson[i][z].checkPerent = [];
  13878. this.checkJson[i][z].right = Math.round(
  13879. (this.checkJson[i][z].rightPerson.length /
  13880. parseInt(this.worksStudent[i].length)) *
  13881. 100
  13882. );
  13883. let aaaa = this.checkJson[i][z];
  13884. console.log(aaaa);
  13885. for (
  13886. var k = 0;
  13887. k < this.checkJson[i][z].checkCount.length;
  13888. k++
  13889. ) {
  13890. this.checkJson[i][z].checkPerent.push(
  13891. Math.round(
  13892. (this.checkJson[i][z].checkCount[k] /
  13893. parseInt(this.worksStudent[i].length)) *
  13894. 100
  13895. )
  13896. );
  13897. }
  13898. }
  13899. } else if (data.type == 9) {
  13900. for (var z = 0; z < this.checkJson[i].length; z++) {
  13901. this.checkJson[i][z].checkPerent = [];
  13902. this.checkJson[i][z].right = Math.round(
  13903. (this.checkJson[i][z].rightPerson.length /
  13904. this.checkJson[i][z].checkPerson.length) *
  13905. 100
  13906. );
  13907. }
  13908. }
  13909. }
  13910. }
  13911. }
  13912. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  13913. this.joinGroup(gindex);
  13914. }
  13915. this.selectWorksStudent();
  13916. })
  13917. .catch((err) => {
  13918. console.error(err);
  13919. });
  13920. },
  13921. pngToWhiteBg(file) {
  13922. const _file = file;
  13923. let read = new FileReader();
  13924. read.readAsDataURL(file); // 文件转base64
  13925. return new Promise((resolve, reject) => {
  13926. read.onload = (e) => {
  13927. let img = new Image();
  13928. img.src = e.target.result;
  13929. img.onload = async () => {
  13930. // 生成canvas
  13931. let canvas = document.createElement("canvas");
  13932. let context = canvas.getContext("2d");
  13933. // 绘制图片到canvas上
  13934. canvas.width = img.width;
  13935. canvas.height = img.height;
  13936. // 在canvas绘制前填充白色背景
  13937. context.fillStyle = "#fff";
  13938. context.fillRect(0, 0, canvas.width, canvas.height);
  13939. context.drawImage(img, 0, 0);
  13940. let base64 = canvas.toDataURL(file["type"], 1);
  13941. let newFile = this.dataUrlToFile(base64, _file);
  13942. resolve(newFile);
  13943. };
  13944. };
  13945. });
  13946. },
  13947. dataUrlToFile(dataurl, file) {
  13948. let arr = dataurl.split(","),
  13949. mime = arr[0].match(/:(.*?);/)[1],
  13950. bstr = atob(arr[1]),
  13951. n = bstr.length,
  13952. u8arr = new Uint8Array(n);
  13953. while (n--) {
  13954. u8arr[n] = bstr.charCodeAt(n);
  13955. }
  13956. // return new Blob([u8arr], { type: mime });
  13957. return new File([new Blob([u8arr], { type: mime })], file.name, {
  13958. type: mime,
  13959. });
  13960. },
  13961. async beforeUpload1(event, type, i) {
  13962. // this.$message.success('进入上传')
  13963. var file = "";
  13964. if (type == 5) {
  13965. file = event;
  13966. } else {
  13967. file = event.target.files[0];
  13968. }
  13969. var credentials = {
  13970. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13971. secretAccessKey: "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",
  13972. }; //秘钥形式的登录上传
  13973. window.AWS.config.update(credentials);
  13974. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13975. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  13976. var _this = this;
  13977. _this.progress = 0;
  13978. _this.proVisible = true;
  13979. _this.isFinishSize = 0;
  13980. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  13981. var b = [
  13982. "DOC",
  13983. "DOCX",
  13984. "DOCM",
  13985. "DOTM",
  13986. "DOTX",
  13987. "PPTX",
  13988. "PPSX",
  13989. "PPT",
  13990. "PPS",
  13991. "PPTM",
  13992. "POTM",
  13993. "PPAM",
  13994. "POTX",
  13995. "PPSM",
  13996. ];
  13997. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  13998. var photoA = [
  13999. "BMP",
  14000. "GIF",
  14001. "PNG",
  14002. "JPGE",
  14003. "JPG",
  14004. "TIF",
  14005. "PCX",
  14006. "TGA",
  14007. "EXIF",
  14008. "FPX",
  14009. "SVG",
  14010. "APNG",
  14011. ];
  14012. // if (
  14013. // b.indexOf(
  14014. // file.name
  14015. // .split(".")
  14016. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14017. // ) != -1
  14018. // ) {
  14019. // if (file.size / 1024 / 1024 > 10) {
  14020. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14021. // return;
  14022. // }
  14023. // } else if (
  14024. // excelA.indexOf(
  14025. // file.name
  14026. // .split(".")
  14027. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14028. // ) != "-1"
  14029. // ) {
  14030. // if (file.size / 1024 / 1024 > 5) {
  14031. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14032. // return;
  14033. // }
  14034. // }
  14035. if (
  14036. photoA.indexOf(
  14037. file.name
  14038. .split(".")
  14039. [file.name.split(".").length - 1].toLocaleUpperCase()
  14040. ) != -1 &&
  14041. type != 4
  14042. ) {
  14043. // const blob = await imageConversion.compress(file, 0.8)
  14044. file = await this.pngToWhiteBg(file);
  14045. const blob = await imageConversion.compressAccurately(file, 256);
  14046. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14047. file = new File([blob], file.name, { type: file.type });
  14048. }
  14049. if (file) {
  14050. var params = {
  14051. Key:
  14052. file.name.split(".")[0] +
  14053. new Date().getTime() +
  14054. "." +
  14055. file.name.split(".")[file.name.split(".").length - 1],
  14056. ContentType: file.type,
  14057. Body: file,
  14058. "Access-Control-Allow-Credentials": "*",
  14059. ACL: "public-read",
  14060. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14061. var options = {
  14062. // partSize: 2048 * 1024 * 1024,
  14063. partSize: 1024 * 1024 * 1024,
  14064. queueSize: 2,
  14065. leavePartsOnError: true,
  14066. };
  14067. bucket
  14068. .upload(params, options)
  14069. .on("httpUploadProgress", function (evt) {
  14070. //这里可以写进度条
  14071. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14072. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14073. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14074. })
  14075. .send(function (err, data) {
  14076. _this.progress = 100;
  14077. _this.isFinishSize = _this.isAllSize;
  14078. setTimeout(() => {
  14079. _this.proVisible = false;
  14080. }, 1000);
  14081. if (err) {
  14082. var a = _this.$refs.upload1.uploadFiles;
  14083. a.splice(a.length - 1, a.length);
  14084. _this.$message.error("上传失败");
  14085. } else {
  14086. // _this.$message.success('上传成功')
  14087. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14088. var c = [
  14089. "AVI",
  14090. "NAVI",
  14091. "MPEG",
  14092. "ASF",
  14093. "MOV",
  14094. "WMV",
  14095. "3GP",
  14096. "RM",
  14097. "RMVB",
  14098. "FLV",
  14099. "F4V",
  14100. "H.264",
  14101. "H.265",
  14102. "REAL VIDEO",
  14103. "MKV",
  14104. "WebM",
  14105. "HDDVD",
  14106. "MP4",
  14107. "MPG",
  14108. "M4V",
  14109. "MGV",
  14110. "OGV",
  14111. "QTM",
  14112. "STR",
  14113. "AMC",
  14114. "DVX",
  14115. "EVO",
  14116. "DAT",
  14117. "OGG",
  14118. "OGM",
  14119. ];
  14120. if (type == 1) {
  14121. _this.studyJuri[0].cover.push({
  14122. name: file.name,
  14123. url: data.Location,
  14124. uid: file.uid,
  14125. });
  14126. if (
  14127. c.indexOf(
  14128. _this.studyJuri[0].cover[0].url
  14129. .split(".")
  14130. [
  14131. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14132. ].toLocaleUpperCase()
  14133. ) != -1
  14134. ) {
  14135. _this.fileType = 2;
  14136. } else if (
  14137. b.indexOf(
  14138. _this.studyJuri[0].cover[0].url
  14139. .split(".")
  14140. [
  14141. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14142. ].toLocaleUpperCase()
  14143. ) != -1
  14144. ) {
  14145. _this.fileType = 1;
  14146. } else if (
  14147. photoA.indexOf(
  14148. _this.studyJuri[0].cover[0].url
  14149. .split(".")
  14150. [
  14151. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14152. ].toLocaleUpperCase()
  14153. ) != -1
  14154. ) {
  14155. _this.fileType = 0;
  14156. } else {
  14157. _this.fileType = 3;
  14158. }
  14159. _this.imgChange(null, null, type);
  14160. } else if (type == 2) {
  14161. _this.upToolImg = data.Location;
  14162. _this.imgChange(null, null, type);
  14163. _this.addCourseWorks(i);
  14164. } else if (type == 4) {
  14165. _this.addPz("3", data.Location);
  14166. } else if (type == 5) {
  14167. _this.addImgDrawImG(data.Location);
  14168. } else if (type == 6) {
  14169. var _ftype = 1;
  14170. if (
  14171. c.indexOf(
  14172. data.Location.split(".")[
  14173. data.Location.split(".").length - 1
  14174. ].toLocaleUpperCase()
  14175. ) != -1
  14176. ) {
  14177. _ftype = 5;
  14178. } else if (
  14179. b.indexOf(
  14180. data.Location.split(".")[
  14181. data.Location.split(".").length - 1
  14182. ].toLocaleUpperCase()
  14183. ) != -1
  14184. ) {
  14185. _ftype = 4;
  14186. } else {
  14187. _ftype = 1;
  14188. }
  14189. _this.plworkFile.push({
  14190. name: file.name,
  14191. url: data.Location,
  14192. uid: file.uid,
  14193. fileType: _ftype,
  14194. username:
  14195. _this.plworkFile.length + 1 > 10
  14196. ? _this.plworkFile.length + 1
  14197. : "0" + (_this.plworkFile.length + 1),
  14198. });
  14199. } else if (type == 7) {
  14200. _this.addCourseWorksGong(i, data.Location, 32);
  14201. } else if (type == 8) {
  14202. _this.addCourseWorksGong(i, data.Location, 57);
  14203. }
  14204. _this.imgChange(null, null, type);
  14205. console.log(data.Location);
  14206. // _this.$message.success('上传成功'+data.Location)
  14207. }
  14208. });
  14209. }
  14210. },
  14211. async beforeUpload3(event, type, i) {
  14212. // this.$message.success('进入上传')
  14213. let file = "";
  14214. let cfindex2 = 0;
  14215. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14216. file = event.target.files[cfindex];
  14217. var credentials = {
  14218. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14219. secretAccessKey: "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",
  14220. }; //秘钥形式的登录上传
  14221. window.AWS.config.update(credentials);
  14222. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14223. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14224. var _this = this;
  14225. // _this.progress = 0;
  14226. _this.proVisible2 = true;
  14227. var b = [
  14228. "DOC",
  14229. "DOCX",
  14230. "DOCM",
  14231. "DOTM",
  14232. "DOTX",
  14233. "PPTX",
  14234. "PPSX",
  14235. "PPT",
  14236. "PPS",
  14237. "PPTM",
  14238. "POTM",
  14239. "PPAM",
  14240. "POTX",
  14241. "PPSM",
  14242. ];
  14243. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14244. var photoA = [
  14245. "BMP",
  14246. "GIF",
  14247. "PNG",
  14248. "JPGE",
  14249. "JPG",
  14250. "TIF",
  14251. "PCX",
  14252. "TGA",
  14253. "EXIF",
  14254. "FPX",
  14255. "SVG",
  14256. "APNG",
  14257. ];
  14258. if (
  14259. photoA.indexOf(
  14260. file.name
  14261. .split(".")
  14262. [file.name.split(".").length - 1].toLocaleUpperCase()
  14263. ) != -1 &&
  14264. type != 4
  14265. ) {
  14266. // const blob = await imageConversion.compress(file, 0.8)
  14267. file = await this.pngToWhiteBg(file);
  14268. const blob = await imageConversion.compressAccurately(file, 256);
  14269. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14270. file = new File([blob], file.name, { type: file.type });
  14271. }
  14272. if (file) {
  14273. var params = {
  14274. Key:
  14275. file.name.split(".")[0] +
  14276. new Date().getTime() +
  14277. "." +
  14278. file.name.split(".")[file.name.split(".").length - 1],
  14279. ContentType: file.type,
  14280. Body: file,
  14281. "Access-Control-Allow-Credentials": "*",
  14282. ACL: "public-read",
  14283. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14284. var options = {
  14285. // partSize: 2048 * 1024 * 1024,
  14286. partSize: 1024 * 1024 * 1024,
  14287. queueSize: 2,
  14288. leavePartsOnError: true,
  14289. };
  14290. bucket
  14291. .upload(params, options)
  14292. .on("httpUploadProgress", function (evt) {
  14293. //这里可以写进度条
  14294. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14295. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14296. })
  14297. .send(function (err, data) {
  14298. // _this.progress = 100;
  14299. cfindex2++;
  14300. setTimeout(() => {
  14301. if (
  14302. cfindex2 == event.target.files.length - 1 ||
  14303. cfindex2 > event.target.files.length - 1
  14304. ) {
  14305. _this.proVisible2 = false;
  14306. }
  14307. }, 1000);
  14308. if (err) {
  14309. var a = _this.$refs.upload1.uploadFiles;
  14310. a.splice(a.length - 1, a.length);
  14311. _this.$message.error("上传失败");
  14312. } else {
  14313. // _this.$message.success('上传成功')
  14314. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14315. var c = [
  14316. "AVI",
  14317. "NAVI",
  14318. "MPEG",
  14319. "ASF",
  14320. "MOV",
  14321. "WMV",
  14322. "3GP",
  14323. "RM",
  14324. "RMVB",
  14325. "FLV",
  14326. "F4V",
  14327. "H.264",
  14328. "H.265",
  14329. "REAL VIDEO",
  14330. "MKV",
  14331. "WebM",
  14332. "HDDVD",
  14333. "MP4",
  14334. "MPG",
  14335. "M4V",
  14336. "MGV",
  14337. "OGV",
  14338. "QTM",
  14339. "STR",
  14340. "AMC",
  14341. "DVX",
  14342. "EVO",
  14343. "DAT",
  14344. "OGG",
  14345. "OGM",
  14346. ];
  14347. if (type == 1) {
  14348. _this.studyJuri[0].cover.push({
  14349. name: file.name,
  14350. url: data.Location,
  14351. uid: file.uid,
  14352. });
  14353. if (
  14354. c.indexOf(
  14355. _this.studyJuri[0].cover[0].url
  14356. .split(".")
  14357. [
  14358. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14359. ].toLocaleUpperCase()
  14360. ) != -1
  14361. ) {
  14362. _this.fileType = 2;
  14363. } else if (
  14364. b.indexOf(
  14365. _this.studyJuri[0].cover[0].url
  14366. .split(".")
  14367. [
  14368. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14369. ].toLocaleUpperCase()
  14370. ) != -1
  14371. ) {
  14372. _this.fileType = 1;
  14373. } else {
  14374. _this.fileType = 0;
  14375. }
  14376. _this.imgChange(null, null, type);
  14377. } else if (type == 2) {
  14378. _this.upToolImg = data.Location;
  14379. _this.imgChange(null, null, type);
  14380. _this.addCourseWorks(i);
  14381. } else if (type == 4) {
  14382. _this.addPz("3", data.Location);
  14383. } else if (type == 5) {
  14384. _this.addImgDrawImG(data.Location);
  14385. } else if (type == 6) {
  14386. var _ftype = 1;
  14387. if (
  14388. c.indexOf(
  14389. data.Location.split(".")[
  14390. data.Location.split(".").length - 1
  14391. ].toLocaleUpperCase()
  14392. ) != -1
  14393. ) {
  14394. _ftype = 5;
  14395. } else if (
  14396. b.indexOf(
  14397. data.Location.split(".")[
  14398. data.Location.split(".").length - 1
  14399. ].toLocaleUpperCase()
  14400. ) != -1
  14401. ) {
  14402. _ftype = 4;
  14403. } else {
  14404. _ftype = 1;
  14405. }
  14406. _this.plworkFile.push({
  14407. name: file.name,
  14408. url: data.Location,
  14409. uid: file.uid,
  14410. fileType: _ftype,
  14411. username:
  14412. _this.plworkFile.length + 1 > 9
  14413. ? _this.plworkFile.length + 1
  14414. : "0" + (_this.plworkFile.length + 1),
  14415. });
  14416. }
  14417. _this.imgChange(null, null, type);
  14418. console.log(data.Location);
  14419. // _this.$message.success('上传成功'+data.Location)
  14420. }
  14421. });
  14422. }
  14423. }
  14424. },
  14425. beforeUpload2(event, type) {
  14426. var file = event.target.files[0];
  14427. var credentials = {
  14428. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14429. secretAccessKey: "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",
  14430. }; //秘钥形式的登录上传
  14431. window.AWS.config.update(credentials);
  14432. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14433. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14434. var _this = this;
  14435. _this.progress = 0;
  14436. _this.proVisible = true;
  14437. if (file) {
  14438. var params = {
  14439. Key:
  14440. file.name.split(".")[0] +
  14441. new Date().getTime() +
  14442. "." +
  14443. file.name.split(".")[file.name.split(".").length - 1],
  14444. ContentType: file.type,
  14445. Body: file,
  14446. "Access-Control-Allow-Credentials": "*",
  14447. ACL: "public-read",
  14448. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14449. var options = {
  14450. partSize: 2048 * 1024 * 1024,
  14451. queueSize: 2,
  14452. leavePartsOnError: true,
  14453. };
  14454. bucket
  14455. .upload(params, options)
  14456. .on("httpUploadProgress", function (evt) {
  14457. //这里可以写进度条
  14458. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14459. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14460. })
  14461. .send(function (err, data) {
  14462. _this.progress = 100;
  14463. setTimeout(() => {
  14464. _this.proVisible = false;
  14465. }, 1000);
  14466. if (err) {
  14467. var a = _this.$refs.upload1.uploadFiles;
  14468. a.splice(a.length - 1, a.length);
  14469. _this.$message.error("上传失败");
  14470. } else {
  14471. if (type == 2) {
  14472. _this.studyJuri[0].upVedio.push({
  14473. name: file.name,
  14474. url: data.Location,
  14475. uid: file.uid,
  14476. });
  14477. _this.imgChange(null, null, type);
  14478. } else if (type == 3) {
  14479. _this.studyJuri[0].upFile.push({
  14480. name: file.name,
  14481. url: data.Location,
  14482. uid: file.uid,
  14483. });
  14484. _this.imgChange(null, null, type);
  14485. }
  14486. console.log(data.Location);
  14487. }
  14488. });
  14489. }
  14490. },
  14491. allScrell() {
  14492. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  14493. },
  14494. nextToolindex(type) {
  14495. if (type == "last") {
  14496. if (this.toolIndex == 0) {
  14497. this.$message.error("已经是第一个步骤");
  14498. return;
  14499. }
  14500. this.toolIndex = this.toolIndex - 1;
  14501. this.tool =
  14502. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14503. this.taskCount
  14504. ].toolChoose[this.toolIndex];
  14505. } else if (type == "next") {
  14506. if (
  14507. this.toolIndex ==
  14508. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14509. this.taskCount
  14510. ].toolChoose.length -
  14511. 1
  14512. ) {
  14513. this.$message.error("已经是最后一个步骤");
  14514. return;
  14515. }
  14516. this.toolIndex = this.toolIndex + 1;
  14517. this.tool =
  14518. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14519. this.taskCount
  14520. ].toolChoose[this.toolIndex];
  14521. }
  14522. this.$forceUpdate();
  14523. },
  14524. checkBz(index) {
  14525. this.toolIndex = index;
  14526. this.tool =
  14527. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14528. this.taskCount
  14529. ].toolChoose[this.toolIndex];
  14530. this.isUpdateToolDetail = false;
  14531. this.$forceUpdate();
  14532. },
  14533. nextOrpreSteps(t) {
  14534. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14535. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14536. return;
  14537. }
  14538. var b = this.chapInfoList.length - 1;
  14539. if (t == 0) {
  14540. if (this.courseType == 0) {
  14541. if (this.taskCount == 0) {
  14542. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  14543. if (this.IsLookOpen) {
  14544. if (
  14545. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  14546. ) {
  14547. if (
  14548. this.courseDetail.userid != this.userid &&
  14549. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14550. ) {
  14551. this.$message.error("任务未解锁");
  14552. } else {
  14553. this.$message.error("上一任务未解锁");
  14554. }
  14555. return;
  14556. }
  14557. }
  14558. this.navList[this.courseType].isOpen = false;
  14559. this.courseType = b;
  14560. this.taskCount =
  14561. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14562. .length - 1;
  14563. this.navList[this.courseType].isOpen = true;
  14564. } else {
  14565. this.taskCount--;
  14566. }
  14567. } else {
  14568. if (this.taskCount == 0) {
  14569. this.navList[this.courseType].isOpen = false;
  14570. this.courseType--;
  14571. this.taskCount =
  14572. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14573. .length - 1;
  14574. this.navList[this.courseType].isOpen = true;
  14575. } else {
  14576. this.taskCount--;
  14577. }
  14578. }
  14579. } else {
  14580. if (this.courseType == b) {
  14581. if (
  14582. this.taskCount ==
  14583. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14584. 1
  14585. ) {
  14586. this.navList[this.courseType].isOpen = false;
  14587. this.courseType = 0;
  14588. this.taskCount = 0;
  14589. this.navList[this.courseType].isOpen = true;
  14590. } else {
  14591. var bbb = parseInt(this.taskCount) + 1;
  14592. if (
  14593. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14594. .isLook &&
  14595. this.courseDetail.userid != this.userid &&
  14596. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14597. this.IsLookOpen
  14598. ) {
  14599. this.$message.error("任务未解锁");
  14600. return;
  14601. }
  14602. this.taskCount++;
  14603. if (this.IsLookOpen) {
  14604. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14605. this.taskCount
  14606. ].isLook = true;
  14607. this.addCourseState(3);
  14608. }
  14609. }
  14610. } else {
  14611. if (
  14612. this.taskCount ==
  14613. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14614. 1
  14615. ) {
  14616. var bbb = parseInt(this.courseType) + 1;
  14617. if (
  14618. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  14619. this.courseDetail.userid != this.userid &&
  14620. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14621. this.IsLookOpen
  14622. ) {
  14623. this.$message.error("任务未解锁");
  14624. return;
  14625. }
  14626. this.navList[this.courseType].isOpen = false;
  14627. this.courseType++;
  14628. this.taskCount = 0;
  14629. this.navList[this.courseType].isOpen = true;
  14630. } else {
  14631. var bbb = parseInt(this.taskCount) + 1;
  14632. if (
  14633. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14634. .isLook &&
  14635. this.courseDetail.userid != this.userid &&
  14636. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14637. this.IsLookOpen
  14638. ) {
  14639. this.$message.error("任务未解锁");
  14640. return;
  14641. }
  14642. this.taskCount++;
  14643. }
  14644. if (this.IsLookOpen) {
  14645. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14646. this.taskCount
  14647. ].isLook = true;
  14648. this.addCourseState(3);
  14649. }
  14650. }
  14651. }
  14652. document.scrollingElement.scrollTop = 0;
  14653. this.showType = 0;
  14654. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14655. this.toolIndex = null;
  14656. this.isNoHomeWork = false;
  14657. (this.studyJuri = [
  14658. {
  14659. content: "",
  14660. cover: [],
  14661. upVedio: [],
  14662. upFile: [],
  14663. },
  14664. ]),
  14665. (this.radio = []);
  14666. this.isClickNav = "";
  14667. this.selectPz();
  14668. this.getHomeWork();
  14669. this.getCourseDetail();
  14670. this.$forceUpdate();
  14671. },
  14672. openTask(s, n, i) {
  14673. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14674. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14675. return;
  14676. }
  14677. if (this.IsLookOpen) {
  14678. if (
  14679. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  14680. this.courseDetail.userid != this.userid &&
  14681. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14682. ) {
  14683. this.$message.error("任务未解锁");
  14684. return;
  14685. }
  14686. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  14687. if (
  14688. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  14689. .isLook
  14690. ) {
  14691. this.$message.error("上一任务未解锁");
  14692. return;
  14693. }
  14694. } else if (s > this.courseType) {
  14695. if (n > 0) {
  14696. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  14697. this.$message.error("上一任务未解锁");
  14698. return;
  14699. }
  14700. } else {
  14701. if (
  14702. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  14703. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  14704. ].isLook
  14705. ) {
  14706. this.$message.error("上一任务未解锁");
  14707. return;
  14708. }
  14709. }
  14710. }
  14711. }
  14712. this.courseType = s;
  14713. this.navId = i;
  14714. this.taskCount = n;
  14715. if (this.IsLookOpen) {
  14716. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14717. this.taskCount
  14718. ].isLook = true;
  14719. this.addCourseState(3);
  14720. }
  14721. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  14722. this.isCloseList[ci].isClose = 0;
  14723. }
  14724. this.showType = 0;
  14725. this.isNoHomeWork = false;
  14726. (this.studyJuri = [
  14727. {
  14728. content: "",
  14729. cover: [],
  14730. upVedio: [],
  14731. upFile: [],
  14732. },
  14733. ]),
  14734. (this.radio = []);
  14735. document.scrollingElement.scrollTop = 0;
  14736. this.toolIndex = null;
  14737. // setTimeout(() => {
  14738. // let a = document.getElementById(i);
  14739. // if (a.offsetTop - 110 == 0) {
  14740. // window.scrollTo(0, 0);
  14741. // } else {
  14742. // window.scrollTo(0, a.offsetTop);
  14743. // }
  14744. // }, 0);
  14745. this.selectPz();
  14746. this.getHomeWork();
  14747. this.getCourseDetail();
  14748. },
  14749. get(i) {
  14750. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14751. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14752. return;
  14753. }
  14754. this.navList[i].isOpen = !this.navList[i].isOpen;
  14755. },
  14756. addQuestion() {
  14757. this.answerList.push({
  14758. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14759. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14760. });
  14761. let params = [
  14762. {
  14763. uid: this.userid,
  14764. cid: this.id,
  14765. stage: this.courseType,
  14766. task: this.taskCount,
  14767. tool: this.toolindex,
  14768. content: JSON.stringify(this.answerList),
  14769. type: 3,
  14770. },
  14771. ];
  14772. this.ajax
  14773. .post(this.$store.state.api + "addCourseWorks", params)
  14774. .then((res) => {
  14775. this.$message({
  14776. message: "提交成功",
  14777. type: "success",
  14778. });
  14779. this.answerList = [];
  14780. this.questionAnswer = "";
  14781. this.answerDialogVisible = false;
  14782. this.selectStudent();
  14783. this.selectSWorks();
  14784. this.selectSLook();
  14785. })
  14786. .catch((err) => {
  14787. this.$message.error("提交失败");
  14788. console.error(err);
  14789. });
  14790. },
  14791. addQuestionTeacher() {
  14792. this.answerList.push({
  14793. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14794. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14795. });
  14796. let params = [
  14797. {
  14798. uid: this.sStudent.userid,
  14799. cid: this.id,
  14800. stage: this.courseType,
  14801. task: this.taskCount,
  14802. tool: this.toolindex,
  14803. content: JSON.stringify(this.answerList),
  14804. type: 3,
  14805. ateacher: this.userid,
  14806. },
  14807. ];
  14808. this.ajax
  14809. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14810. .then((res) => {
  14811. this.$message({
  14812. message: "提交成功",
  14813. type: "success",
  14814. });
  14815. this.answerList = [];
  14816. this.questionAnswer = "";
  14817. this.answerDialogVisibleTeacher = false;
  14818. this.selectStudent();
  14819. this.selectSWorks();
  14820. this.selectSLook();
  14821. })
  14822. .catch((err) => {
  14823. this.$message.error("提交失败");
  14824. console.error(err);
  14825. });
  14826. },
  14827. refreshCourse() {
  14828. this.navList = [];
  14829. this.getCourseDetail(1);
  14830. },
  14831. setPz() {
  14832. if (this.ispzType == 4) {
  14833. this.ispzType = 0;
  14834. this.pzDialog = false;
  14835. return;
  14836. }
  14837. this.ispzType = 4;
  14838. this.pzDialog = true;
  14839. this.selectPz();
  14840. },
  14841. getCourseDetail(type, gindex) {
  14842. let loading;
  14843. if (type != 2 && type != 3) {
  14844. loading = this.$loading.service({
  14845. background: "rgba(255, 255, 255, 0.7)",
  14846. target: document.querySelector(".student_table"),
  14847. });
  14848. }
  14849. let params = {
  14850. courseId: this.id,
  14851. };
  14852. this.ajax
  14853. .get(this.$store.state.api + "selectCourseDetail3", params)
  14854. .then((res) => {
  14855. if (type != 2 && type != 3) {
  14856. loading.close();
  14857. if (
  14858. this.courseType >
  14859. JSON.parse(res.data[0][0].chapters).length - 1
  14860. ) {
  14861. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  14862. }
  14863. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  14864. .chapterInfo[0].taskJson;
  14865. var b = [
  14866. "AVI",
  14867. "NAVI",
  14868. "MPEG",
  14869. "ASF",
  14870. "MOV",
  14871. "WMV",
  14872. "3GP",
  14873. "RM",
  14874. "RMVB",
  14875. "FLV",
  14876. "F4V",
  14877. "H.264",
  14878. "H.265",
  14879. "REAL VIDEO",
  14880. "MKV",
  14881. "WebM",
  14882. "HDDVD",
  14883. "MP4",
  14884. "MPG",
  14885. "M4V",
  14886. "MGV",
  14887. "OGV",
  14888. "QTM",
  14889. "STR",
  14890. "AMC",
  14891. "DVX",
  14892. "EVO",
  14893. "DAT",
  14894. "OGG",
  14895. "OGM",
  14896. "MP3",
  14897. ];
  14898. let _chapterData = [];
  14899. for (var i = 0; i < a.length; i++) {
  14900. var c = a[i].chapterData;
  14901. this.vedio[i] = [];
  14902. this.textList[i] = [];
  14903. this.lineList[i] = [];
  14904. this.chapToolList[i] = [];
  14905. this.file[i] = [];
  14906. this.fileC[i] = [];
  14907. _chapterData[i] = c.filter((el) => {
  14908. return el.type != 12;
  14909. });
  14910. this.fileC[i] = c.filter((el) => {
  14911. return el.type == 12;
  14912. });
  14913. for (var j = 0; j < c.length; j++) {
  14914. if (c[j].type == 7) {
  14915. this.chapToolList[i].push(c[j]);
  14916. } else if (c[j].type == 8) {
  14917. this.lineList[i].push(c[j]);
  14918. } else if (c[j].type == 6) {
  14919. this.textList[i].push(c[j]);
  14920. } else {
  14921. if (
  14922. b.indexOf(
  14923. c[j].url
  14924. .split(".")
  14925. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  14926. ) != -1
  14927. ) {
  14928. this.vedio[i].push(c[j]);
  14929. } else {
  14930. this.file[i].push(c[j]);
  14931. }
  14932. }
  14933. }
  14934. var d = JSON.parse(JSON.stringify(this.playerOptions));
  14935. d.sources[0].src =
  14936. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  14937. this.playerO[i] = d;
  14938. }
  14939. this.courseDetail = res.data[0][0];
  14940. this.tcid = this.arrayToArray(
  14941. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14942. this.tcid2 ? this.tcid2.split(",") : []
  14943. ).join(",");
  14944. console.log(this.tcid);
  14945. this.evalua = res.data[0][0].evaId;
  14946. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  14947. this.courseType
  14948. ];
  14949. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  14950. if (this.tcid && res.data[1].length) {
  14951. let _inviteA = [];
  14952. for (var ik = 0; ik < res.data[1].length; ik++) {
  14953. _inviteA.push({
  14954. cid: res.data[1][ik].classid,
  14955. ic: res.data[1][ik].code,
  14956. });
  14957. }
  14958. for (var ik = 0; ik < _inviteA.length; ik++) {
  14959. if (
  14960. this.arrayToArray(
  14961. _inviteA[ik].cid.split(","),
  14962. this.tcid.split(",")
  14963. ).length
  14964. ) {
  14965. this.inviteCode = _inviteA[ik].ic;
  14966. break;
  14967. }
  14968. }
  14969. }
  14970. for (var l = 0; l < this.chapInfoList.length; l++) {
  14971. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  14972. for (var m = 0; m < w.length; m++) {
  14973. w[m].id = l + "-" + m;
  14974. }
  14975. }
  14976. if (
  14977. _chapterData[this.taskCount].length &&
  14978. _chapterData[this.taskCount][0].type == 2
  14979. ) {
  14980. this.showType = 0;
  14981. } else {
  14982. if (_chapterData[this.taskCount].length > 0) {
  14983. let _url = _chapterData[this.taskCount][0].url;
  14984. if (_chapterData[this.taskCount][0].type == 8) {
  14985. this.showType = 2;
  14986. if (
  14987. _url.indexOf("https://") == -1 &&
  14988. _url.indexOf("http://") == -1
  14989. ) {
  14990. _url = "https://" + _url;
  14991. }
  14992. this.pptImgUrl1 = _url;
  14993. } else if (_chapterData[this.taskCount][0].type == 3) {
  14994. if (
  14995. _url
  14996. .split(".")
  14997. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14998. ) {
  14999. this.showType = 3;
  15000. this.pptImgUrl1 = _url;
  15001. } else if (
  15002. this.isAssetTypeAnImage(
  15003. _url
  15004. .split(".")
  15005. [_url.split(".").length - 1].toLocaleLowerCase()
  15006. )
  15007. ) {
  15008. this.showType = 4;
  15009. this.pptImgUrl1 = _url;
  15010. } else {
  15011. this.showType = 2;
  15012. this.pptImgUrl1 =
  15013. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15014. _url;
  15015. }
  15016. } else if (_chapterData[this.taskCount][0].type == 13) {
  15017. this.showType = 4;
  15018. this.pptImgUrl1 = _url;
  15019. } else if (_chapterData[this.taskCount][0].type == 6) {
  15020. this.showType = 1;
  15021. this.text = this.textList[this.taskCount][0];
  15022. }
  15023. }
  15024. }
  15025. this.isClickNav = 0;
  15026. if (
  15027. !_chapterData[this.taskCount].length ||
  15028. _chapterData[this.taskCount][0].type == 12
  15029. ) {
  15030. this.isClickNav = "";
  15031. this.showType = "";
  15032. }
  15033. this.vChapterData = _chapterData;
  15034. if (
  15035. this.toolIndex == null &&
  15036. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15037. this.taskCount
  15038. ].toolChoose.length
  15039. ) {
  15040. this.toolIndex = 0;
  15041. this.tool =
  15042. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15043. this.taskCount
  15044. ].toolChoose[this.toolIndex];
  15045. }
  15046. } else if (type != 3) {
  15047. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15048. .chapterInfo[0].taskJson;
  15049. var b = [
  15050. "AVI",
  15051. "NAVI",
  15052. "MPEG",
  15053. "ASF",
  15054. "MOV",
  15055. "WMV",
  15056. "3GP",
  15057. "RM",
  15058. "RMVB",
  15059. "FLV",
  15060. "F4V",
  15061. "H.264",
  15062. "H.265",
  15063. "REAL VIDEO",
  15064. "MKV",
  15065. "WebM",
  15066. "HDDVD",
  15067. "MP4",
  15068. "MPG",
  15069. "M4V",
  15070. "MGV",
  15071. "OGV",
  15072. "QTM",
  15073. "STR",
  15074. "AMC",
  15075. "DVX",
  15076. "EVO",
  15077. "DAT",
  15078. "OGG",
  15079. "OGM",
  15080. "MP3",
  15081. ];
  15082. let _chapterData = [];
  15083. for (var i = 0; i < a.length; i++) {
  15084. var c = a[i].chapterData;
  15085. this.vedio[i] = [];
  15086. this.textList[i] = [];
  15087. this.lineList[i] = [];
  15088. this.chapToolList[i] = [];
  15089. this.file[i] = [];
  15090. this.fileC[i] = [];
  15091. _chapterData[i] = c.filter((el) => {
  15092. return el.type != 12;
  15093. });
  15094. this.fileC[i] = c.filter((el) => {
  15095. return el.type == 12;
  15096. });
  15097. for (var j = 0; j < c.length; j++) {
  15098. if (c[j].type == 7) {
  15099. this.chapToolList[i].push(c[j]);
  15100. } else if (c[j].type == 8) {
  15101. this.lineList[i].push(c[j]);
  15102. } else if (c[j].type == 6) {
  15103. this.textList[i].push(c[j]);
  15104. } else {
  15105. if (
  15106. b.indexOf(
  15107. c[j].url
  15108. .split(".")
  15109. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15110. ) != -1
  15111. ) {
  15112. this.vedio[i].push(c[j]);
  15113. } else {
  15114. this.file[i].push(c[j]);
  15115. }
  15116. }
  15117. }
  15118. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15119. d.sources[0].src =
  15120. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15121. this.playerO[i] = d;
  15122. }
  15123. if (
  15124. _chapterData[this.taskCount].length &&
  15125. _chapterData[this.taskCount][0].type == 2
  15126. ) {
  15127. this.showType = 0;
  15128. } else {
  15129. if (_chapterData[this.taskCount].length > 0) {
  15130. let _url = _chapterData[this.taskCount][0].url;
  15131. if (_chapterData[this.taskCount][0].type == 8) {
  15132. this.showType = 2;
  15133. if (
  15134. _url.indexOf("https://") == -1 &&
  15135. _url.indexOf("http://") == -1
  15136. ) {
  15137. _url = "https://" + _url;
  15138. }
  15139. this.pptImgUrl1 = _url;
  15140. } else if (_chapterData[this.taskCount][0].type == 3) {
  15141. if (
  15142. _url
  15143. .split(".")
  15144. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15145. ) {
  15146. this.showType = 3;
  15147. this.pptImgUrl1 = _url;
  15148. } else if (
  15149. this.isAssetTypeAnImage(
  15150. _url
  15151. .split(".")
  15152. [_url.split(".").length - 1].toLocaleLowerCase()
  15153. )
  15154. ) {
  15155. this.showType = 4;
  15156. this.pptImgUrl1 = _url;
  15157. } else {
  15158. this.showType = 2;
  15159. this.pptImgUrl1 =
  15160. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15161. _url;
  15162. }
  15163. } else if (_chapterData[this.taskCount][0].type == 13) {
  15164. this.showType = 4;
  15165. this.pptImgUrl1 = _url;
  15166. } else if (_chapterData[this.taskCount][0].type == 6) {
  15167. this.showType = 1;
  15168. this.text = this.textList[this.taskCount][0];
  15169. }
  15170. }
  15171. }
  15172. this.isClickNav = 0;
  15173. if (
  15174. !_chapterData[this.taskCount].length ||
  15175. _chapterData[this.taskCount][0].type == 12
  15176. ) {
  15177. this.isClickNav = "";
  15178. this.showType = "";
  15179. }
  15180. this.vChapterData = _chapterData;
  15181. this.$forceUpdate();
  15182. }
  15183. this.isUpdateToolDetail = false;
  15184. this.$nextTick(() => {
  15185. setTimeout(() => {
  15186. this.checkEva();
  15187. }, 1000);
  15188. });
  15189. let _this = this;
  15190. if (_this.timer) {
  15191. clearInterval(_this.timer);
  15192. _this.timer = null;
  15193. }
  15194. _this.selectSWorks(gindex);
  15195. _this.selectStudent();
  15196. _this.selectSLook();
  15197. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15198. _this.setCTask();
  15199. }
  15200. if (_this.dialogVisibleGroup) {
  15201. _this.groupJson =
  15202. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15203. _this.taskCount
  15204. ].toolChoose[_this.toolindex].groupJson;
  15205. }
  15206. _this.timer = setInterval(function () {
  15207. if (_this.tcid) {
  15208. _this.getCourseGroup(gindex);
  15209. } else {
  15210. _this.selectSWorks(gindex);
  15211. }
  15212. _this.selectStudent();
  15213. _this.selectSLook();
  15214. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15215. _this.setCTask();
  15216. }
  15217. if (_this.dialogVisibleGroup) {
  15218. _this.groupJson =
  15219. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15220. _this.taskCount
  15221. ].toolChoose[_this.toolindex].groupJson;
  15222. }
  15223. if (_this.tType == 4 || _this.ispzType == 4) {
  15224. _this.selectPz();
  15225. }
  15226. }, 5000);
  15227. })
  15228. .catch((err) => {
  15229. loading.close();
  15230. console.error(err);
  15231. });
  15232. },
  15233. getCourseGroup(gindex) {
  15234. let params = {
  15235. cid: this.id,
  15236. classid: this.tcid ? this.tcid : "1",
  15237. };
  15238. this.ajax
  15239. .get(this.$store.state.api + "getCourseGroup", params)
  15240. .then((res) => {
  15241. if (res.data && res.data[0].length) {
  15242. if (!this.isGroup) {
  15243. let courseGroup = JSON.parse(res.data[0][0].group);
  15244. courseGroup.group = courseGroup.group.filter((el) => {
  15245. el.works = [];
  15246. return el;
  15247. });
  15248. this.courseGroup = courseGroup;
  15249. let groupPerson = res.data[1];
  15250. let group = JSON.parse(res.data[0][0].group).group;
  15251. let courseGroupStudent = {};
  15252. let courseGroupStudentUid = {};
  15253. for (var i = 0; i < group.length; i++) {
  15254. courseGroupStudent[group[i].id] = [];
  15255. courseGroupStudentUid[group[i].id] = [];
  15256. for (var j = 0; j < groupPerson.length; j++) {
  15257. if (groupPerson[j].groupCid == group[i].id) {
  15258. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15259. courseGroupStudentUid[group[i].id].push(
  15260. groupPerson[j].userid
  15261. );
  15262. }
  15263. }
  15264. }
  15265. this.courseGroupStudent = courseGroupStudent;
  15266. this.courseGroupStudentUid = courseGroupStudentUid;
  15267. }
  15268. this.isGroup = true;
  15269. this.selectSWorks(gindex);
  15270. } else {
  15271. this.selectSWorks(gindex);
  15272. this.isGroup = false;
  15273. }
  15274. })
  15275. .catch((err) => {
  15276. // this.$message.error("网络不佳");
  15277. console.error(err);
  15278. });
  15279. },
  15280. setOperationTime() {
  15281. let _this = this;
  15282. if (_this.opertimer) {
  15283. clearInterval(_this.opertimer);
  15284. _this.opertimer = null;
  15285. }
  15286. _this.opertimer = setInterval(() => {
  15287. _this.setoTime("600");
  15288. }, 600000);
  15289. },
  15290. setoTime(time) {
  15291. let params = [
  15292. {
  15293. uid: this.userid,
  15294. cid: this.id,
  15295. type: "2",
  15296. time: time,
  15297. },
  15298. ];
  15299. this.ajax
  15300. .post(this.$store.state.api + "addOperationTimeT2", params)
  15301. .then((res) => {})
  15302. .catch((err) => {
  15303. console.error(err);
  15304. });
  15305. },
  15306. addPz(type, content) {
  15307. if (type == "1" && this.pzConText == "") {
  15308. this.$message.error("批注不能为空!");
  15309. return;
  15310. }
  15311. let params = [
  15312. {
  15313. cid: this.id,
  15314. uid: this.userid,
  15315. s: this.courseType,
  15316. t: this.taskCount,
  15317. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15318. type: type,
  15319. },
  15320. ];
  15321. this.ajax
  15322. .post(this.$store.state.api + "addPz2", params)
  15323. .then((res) => {
  15324. this.$message({
  15325. message: "添加成功",
  15326. type: "success",
  15327. });
  15328. this.pzConText = "";
  15329. this.addPzDialog = false;
  15330. this.selectPz();
  15331. })
  15332. .catch((err) => {
  15333. this.$message.error("添加失败");
  15334. console.error(err);
  15335. });
  15336. },
  15337. deletePz(id) {
  15338. this.$confirm("确定删除此批注吗?", "提示", {
  15339. confirmButtonText: "确定",
  15340. cancelButtonText: "取消",
  15341. type: "warning",
  15342. })
  15343. .then(() => {
  15344. let params = [
  15345. {
  15346. id: id,
  15347. },
  15348. ];
  15349. this.ajax
  15350. .post(this.$store.state.api + "deletePz", params)
  15351. .then((res) => {
  15352. this.$message({
  15353. message: "删除成功",
  15354. type: "success",
  15355. });
  15356. this.selectPz();
  15357. })
  15358. .catch((err) => {
  15359. this.$message.error("网络异常");
  15360. console.error(err);
  15361. });
  15362. })
  15363. .catch(() => {});
  15364. },
  15365. selectPz() {
  15366. let params = {
  15367. cid: this.id,
  15368. s: this.courseType,
  15369. t: this.taskCount,
  15370. };
  15371. this.ajax
  15372. .get(this.$store.state.api + "selectPzList", params)
  15373. .then((res) => {
  15374. this.pzList = res.data[0];
  15375. })
  15376. .catch((err) => {
  15377. console.error(err);
  15378. });
  15379. },
  15380. updateSLook() {
  15381. let params = {
  15382. sopen: this.sIsOpen == false ? 1 : 2,
  15383. cid: this.id,
  15384. };
  15385. this.ajax
  15386. .get(this.$store.state.api + "updateCourseSLook", params)
  15387. .then((res) => {
  15388. if (this.sIsOpen == true) {
  15389. this.$message({
  15390. message: "权限设置成功",
  15391. type: "success",
  15392. });
  15393. } else {
  15394. this.$message({
  15395. message: "权限关闭成功",
  15396. type: "success",
  15397. });
  15398. }
  15399. })
  15400. .catch((err) => {
  15401. console.error(err);
  15402. });
  15403. },
  15404. updateFollow() {
  15405. let params = [
  15406. {
  15407. sopen: this.IsFollow == false ? 1 : 2,
  15408. cid: this.id,
  15409. },
  15410. ];
  15411. this.ajax
  15412. .post(this.$store.state.api + "updateCourseFollow", params)
  15413. .then((res) => {
  15414. if (this.IsFollow == true) {
  15415. this.$message({
  15416. message: "开启成功",
  15417. type: "success",
  15418. });
  15419. } else {
  15420. this.$message({
  15421. message: "关闭成功",
  15422. type: "success",
  15423. });
  15424. }
  15425. this.setCTask();
  15426. })
  15427. .catch((err) => {
  15428. console.error(err);
  15429. });
  15430. },
  15431. setCTask() {
  15432. let params = [
  15433. {
  15434. sopen: this.courseType + "-" + this.taskCount,
  15435. cid: this.id,
  15436. },
  15437. ];
  15438. this.ajax
  15439. .post(this.$store.state.api + "updateCourseFollowC", params)
  15440. .then((res) => {})
  15441. .catch((err) => {
  15442. console.error(err);
  15443. });
  15444. },
  15445. updateLookOpen() {
  15446. let params = [
  15447. {
  15448. sopen: this.IsLookOpen == false ? 1 : 2,
  15449. cid: this.id,
  15450. },
  15451. ];
  15452. this.ajax
  15453. .post(this.$store.state.api + "updateCourseLookOpen", params)
  15454. .then((res) => {
  15455. if (this.IsLookOpen == true) {
  15456. // if (this.courseType != 0 && this.taskCount != 0) {
  15457. // this.openTask(0, 0, "0-0");
  15458. // }
  15459. this.$message({
  15460. message: "权限设置成功",
  15461. type: "success",
  15462. });
  15463. } else {
  15464. this.$message({
  15465. message: "权限关闭成功",
  15466. type: "success",
  15467. });
  15468. }
  15469. this.getCourseState(2);
  15470. })
  15471. .catch((err) => {
  15472. console.error(err);
  15473. });
  15474. },
  15475. selectSLook() {
  15476. let params = {
  15477. cid: this.id,
  15478. };
  15479. this.ajax
  15480. .get(this.$store.state.api + "selectCourseSLook", params)
  15481. .then((res) => {
  15482. // this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  15483. this.sIsOpen = true;
  15484. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  15485. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  15486. if (!this.IsLookOpen) {
  15487. this.setNavList();
  15488. } else {
  15489. this.getCourseState(1);
  15490. }
  15491. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15492. let _followC = res.data[0][0].followC.split("-");
  15493. if (
  15494. this.courseType != _followC[0] ||
  15495. this.taskCount != _followC[1]
  15496. ) {
  15497. this.navList[this.courseType].isOpen = false;
  15498. this.courseType = _followC[0];
  15499. this.navList[this.courseType].isOpen = true;
  15500. this.taskCount = parseInt(_followC[1]);
  15501. this.navId = res.data[0][0].followC;
  15502. this.getCourseDetail();
  15503. }
  15504. }
  15505. })
  15506. .catch((err) => {
  15507. console.error(err);
  15508. });
  15509. },
  15510. setNavList() {
  15511. if (this.navList.length == 0) {
  15512. this.navList = [];
  15513. for (var l = 0; l < this.chapInfoList.length; l++) {
  15514. var q = this.chapInfoList[l].dyName;
  15515. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15516. var e;
  15517. this.navList.push({
  15518. dyName: q,
  15519. isOpen: l === 0 ? true : false,
  15520. task: [],
  15521. });
  15522. for (var r = 0; r < w.length; r++) {
  15523. e = w[r].task;
  15524. if (this.chapInfoList[l].easy == 1) {
  15525. this.navList[l].task.push({
  15526. taskName: q,
  15527. id: l + "-" + r,
  15528. isLook: w[r].isLook,
  15529. });
  15530. } else {
  15531. this.navList[l].task.push({
  15532. taskName: e,
  15533. id: l + "-" + r,
  15534. isLook: w[r].isLook,
  15535. });
  15536. }
  15537. // this.navId = this.navId ? this.navId : l + "-" + r;
  15538. // this.navId = l + "-" + r;
  15539. }
  15540. }
  15541. this.navList[0].isOpen = false;
  15542. this.navList[this.courseType].isOpen = true;
  15543. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15544. } else {
  15545. this.setNavList2();
  15546. }
  15547. },
  15548. setNavList2() {
  15549. for (var l = 0; l < this.chapInfoList.length; l++) {
  15550. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15551. for (var r = 0; r < w.length; r++) {
  15552. this.navList[l].task[r].isLook = w[r].isLook;
  15553. }
  15554. }
  15555. if (
  15556. this.IsLookOpen &&
  15557. !this.navList[this.courseType].task[this.taskCount].isLook
  15558. ) {
  15559. this.openTask(0, 0, "0-0");
  15560. }
  15561. this.$forceUpdate();
  15562. },
  15563. getCourseState(type) {
  15564. let params = {
  15565. cid: this.id,
  15566. };
  15567. this.ajax
  15568. .get(this.$store.state.api + "getCourseState", params)
  15569. .then((res) => {
  15570. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  15571. this.chapInfoList = JSON.parse(res.data[0][0].state);
  15572. this.setNavList();
  15573. this.$forceUpdate();
  15574. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  15575. this.addCourseState(2);
  15576. } else {
  15577. this.addCourseState(1);
  15578. }
  15579. })
  15580. .catch((err) => {
  15581. console.error(err);
  15582. });
  15583. },
  15584. addCourseState(type) {
  15585. let _state = this.chapInfoList;
  15586. // this.courseType this.taskCount
  15587. if (type == 1 || type == 2) {
  15588. for (var i = 0; i < _state.length; i++) {
  15589. let el = _state[i].chapterInfo[0].taskJson;
  15590. for (var j = 0; j < el.length; j++) {
  15591. // if (i == 0 && j == 0) {
  15592. // el[j].isLook = true;
  15593. // } else {
  15594. // el[j].isLook = false;
  15595. // }
  15596. if (
  15597. this.courseType > i ||
  15598. (this.courseType == i && this.taskCount + 1 > j)
  15599. ) {
  15600. el[j].isLook = true;
  15601. } else {
  15602. el[j].isLook = false;
  15603. }
  15604. }
  15605. }
  15606. }
  15607. let params = [
  15608. {
  15609. cid: this.id,
  15610. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  15611. },
  15612. ];
  15613. this.ajax
  15614. .post(
  15615. this.$store.state.api +
  15616. (type == 1 ? "addCourseState" : "updateCourseSate"),
  15617. params
  15618. )
  15619. .then((res) => {
  15620. if (this.IsLookOpen) {
  15621. this.setNavList();
  15622. }
  15623. if (type == 3 && type == 2) {
  15624. this.getCourseState(1);
  15625. }
  15626. })
  15627. .catch((err) => {
  15628. console.error(err);
  15629. });
  15630. },
  15631. getHomeWork() {
  15632. let params = {
  15633. cid: this.id,
  15634. stage: this.courseType,
  15635. task: this.taskCount,
  15636. uid: this.userid,
  15637. };
  15638. this.ajax
  15639. .get(this.$store.state.api + "selectWork", params)
  15640. .then((res) => {
  15641. if (res.data[0].length > 0) {
  15642. this.studyJuri = JSON.parse(res.data[0][0].content);
  15643. this.isNoHomeWork = true;
  15644. }
  15645. })
  15646. .catch((err) => {
  15647. console.error(err);
  15648. });
  15649. },
  15650. isAssetTypeAnImage(ext) {
  15651. return (
  15652. [
  15653. "png",
  15654. "jpg",
  15655. "jpeg",
  15656. "bmp",
  15657. "gif",
  15658. "webp",
  15659. "psd",
  15660. "svg",
  15661. "tiff",
  15662. ].indexOf(ext) !== -1
  15663. );
  15664. },
  15665. switchVideo(media) {
  15666. this.playerO = {};
  15667. this.playerOptions.poster = "";
  15668. this.playerOptions.sources[0].src = media;
  15669. this.playerO = this.playerOptions;
  15670. },
  15671. onPlayerPlay() {},
  15672. lookVedio(u, i) {
  15673. this.isClickNav = "";
  15674. // this.playerOptions.sources[0].src = u;
  15675. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15676. d.sources[0].src = u;
  15677. this.playerO[this.taskCount] = d;
  15678. this.showType = 0;
  15679. // this.isClickNav = "video" + i;
  15680. this.isClickNav = i;
  15681. this.$forceUpdate();
  15682. },
  15683. lookText(i, t) {
  15684. this.isClickNav = "";
  15685. // this.text = this.textList[i][t];
  15686. this.text = this.vChapterData[i][t];
  15687. // this.dialogVisible1 = true;
  15688. this.showType = 1;
  15689. // this.isClickNav = "text" + t;
  15690. this.isClickNav = t;
  15691. },
  15692. lookTools(i, t) {
  15693. this.chapTools = this.chapToolList[i][t];
  15694. this.dialogVisible2 = true;
  15695. },
  15696. openFile(f) {
  15697. this.pptImgUrl = "";
  15698. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15699. if (
  15700. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  15701. -1
  15702. ) {
  15703. this.pptImgUrl =
  15704. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  15705. this.showPDF = false;
  15706. this.dialogVisible3 = true;
  15707. } else if (
  15708. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15709. ) {
  15710. this.pptImgUrl = f;
  15711. this.showPDF = true;
  15712. this.dialogVisible3 = true;
  15713. }
  15714. },
  15715. openTable(f) {
  15716. this.tableJson = JSON.parse(f.works);
  15717. this.$forceUpdate();
  15718. this.dialogVisibleTable2 = true;
  15719. },
  15720. openWord(f) {
  15721. this.tableJson = JSON.parse(f.works);
  15722. this.$forceUpdate();
  15723. this.dialogVisibleTable3 = true;
  15724. },
  15725. doUrl(url, i) {
  15726. this.isClickNav = "";
  15727. this.pptImgUrl1 = "";
  15728. this.showType = 2;
  15729. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  15730. url = "https://" + url;
  15731. }
  15732. this.pptImgUrl1 = url;
  15733. // this.isClickNav = "line" + i;
  15734. this.isClickNav = i;
  15735. },
  15736. checkPhoto(f, i) {
  15737. this.showType = 4;
  15738. this.pptImgUrl1 = f.url;
  15739. this.isClickNav = i;
  15740. this.$forceUpdate();
  15741. },
  15742. downFile(f, i) {
  15743. this.isClickNav = "";
  15744. this.pptImgUrl1 = "";
  15745. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  15746. if (
  15747. a.indexOf(
  15748. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  15749. ) != -1
  15750. ) {
  15751. this.pptImgUrl1 =
  15752. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  15753. // this.dialogVisible3 = true;
  15754. this.showType = 2;
  15755. } else if (
  15756. this.isAssetTypeAnImage(
  15757. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  15758. )
  15759. ) {
  15760. this.showType = 4;
  15761. this.pptImgUrl1 = f.url;
  15762. } else if (
  15763. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  15764. "PDF"
  15765. ) {
  15766. this.pptImgUrl1 = f.url;
  15767. // this.dialogVisible3 = true;
  15768. this.showType = 3;
  15769. } else {
  15770. window.open(this.file[i].url);
  15771. }
  15772. // this.isClickNav = "word" + i;
  15773. this.isClickNav = i;
  15774. },
  15775. downFileList(i) {
  15776. window.open(this.noImgList[i].url);
  15777. },
  15778. openAddWork() {
  15779. this.dialogVisible = true;
  15780. },
  15781. addBzWorks() {
  15782. let params = [
  15783. {
  15784. uid: this.userid,
  15785. cid: this.id,
  15786. stage: this.courseType,
  15787. task: this.taskCount,
  15788. tool: this.toolindex,
  15789. content: JSON.stringify(this.eScore),
  15790. type: 6,
  15791. },
  15792. ];
  15793. this.ajax
  15794. .post(this.$store.state.api + "addCourseWorks", params)
  15795. .then((res) => {
  15796. this.$message({
  15797. message: "提交成功",
  15798. type: "success",
  15799. });
  15800. this.eScore = { eBzText: "", eStar: [] };
  15801. this.studentEvalDialogVisible = false;
  15802. this.selectSWorks();
  15803. })
  15804. .catch((err) => {
  15805. this.$message.error("提交失败");
  15806. console.error(err);
  15807. });
  15808. },
  15809. addBzWorksTeacher() {
  15810. let params = [
  15811. {
  15812. uid: this.sStudent.userid,
  15813. cid: this.id,
  15814. stage: this.courseType,
  15815. task: this.taskCount,
  15816. tool: this.toolindex,
  15817. content: JSON.stringify(this.eScore),
  15818. type: 6,
  15819. },
  15820. ];
  15821. this.ajax
  15822. .post(this.$store.state.api + "addCourseWorks", params)
  15823. .then((res) => {
  15824. this.$message({
  15825. message: "提交成功",
  15826. type: "success",
  15827. });
  15828. this.eScore = { eBzText: "", eStar: [] };
  15829. this.studentEvalDialogVisibleTeacher = false;
  15830. this.selectSWorks();
  15831. })
  15832. .catch((err) => {
  15833. this.$message.error("提交失败");
  15834. console.error(err);
  15835. });
  15836. },
  15837. addStudentAsk() {
  15838. if (!this.radio.length) {
  15839. this.$message.error("请选择选项");
  15840. return;
  15841. }
  15842. for (var i = 0; i < this.askJson.askCount; i++) {
  15843. if (
  15844. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15845. (this.radio[i] !== 0 && !this.radio[i])
  15846. ) {
  15847. this.$message.error("请选择选项");
  15848. return;
  15849. }
  15850. }
  15851. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15852. let params = [
  15853. {
  15854. uid: this.userid,
  15855. cid: this.id,
  15856. stage: this.courseType,
  15857. task: this.taskCount,
  15858. tool: this.toolindex,
  15859. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15860. type: 2,
  15861. },
  15862. ];
  15863. this.ajax
  15864. .post(this.$store.state.api + "addCourseWorks", params)
  15865. .then((res) => {
  15866. this.$message({
  15867. message: "提交成功",
  15868. type: "success",
  15869. });
  15870. this.askList = [];
  15871. this.dialogVisible5 = false;
  15872. this.selectStudent();
  15873. this.selectSWorks();
  15874. this.selectSLook();
  15875. })
  15876. .catch((err) => {
  15877. this.$message.error("提交失败");
  15878. console.error(err);
  15879. });
  15880. },
  15881. addStudentAskTeacher() {
  15882. if (!this.radio.length) {
  15883. this.$message.error("请选择选项");
  15884. return;
  15885. }
  15886. for (var i = 0; i < this.askJson.askCount; i++) {
  15887. if (
  15888. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15889. (this.radio[i] !== 0 && !this.radio[i])
  15890. ) {
  15891. this.$message.error("请选择选项");
  15892. return;
  15893. }
  15894. }
  15895. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15896. let params = [
  15897. {
  15898. uid: this.sStudent.userid,
  15899. cid: this.id,
  15900. stage: this.courseType,
  15901. task: this.taskCount,
  15902. tool: this.toolindex,
  15903. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15904. type: 2,
  15905. },
  15906. ];
  15907. this.ajax
  15908. .post(this.$store.state.api + "addCourseWorks", params)
  15909. .then((res) => {
  15910. this.$message({
  15911. message: "提交成功",
  15912. type: "success",
  15913. });
  15914. this.askList = [];
  15915. this.dialogVisible5Teacher = false;
  15916. this.selectStudent();
  15917. this.selectSWorks();
  15918. this.selectSLook();
  15919. })
  15920. .catch((err) => {
  15921. this.$message.error("提交失败");
  15922. console.error(err);
  15923. });
  15924. },
  15925. addStudentTest() {
  15926. if (!this.radio.length) {
  15927. this.$message.error("请选择选项");
  15928. return;
  15929. }
  15930. for (var i = 0; i < this.testJson.testCount; i++) {
  15931. if (
  15932. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15933. (this.radio[i] !== 0 && !this.radio[i])
  15934. ) {
  15935. this.$message.error("请选择选项");
  15936. return;
  15937. }
  15938. }
  15939. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15940. let params = [
  15941. {
  15942. uid: this.userid,
  15943. cid: this.id,
  15944. stage: this.courseType,
  15945. task: this.taskCount,
  15946. tool: this.toolindex,
  15947. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15948. type: 8,
  15949. },
  15950. ];
  15951. this.ajax
  15952. .post(this.$store.state.api + "addCourseWorks", params)
  15953. .then((res) => {
  15954. this.$message({
  15955. message: "提交成功",
  15956. type: "success",
  15957. });
  15958. this.askList = [];
  15959. this.dialogVisibleChoice = false;
  15960. this.selectStudent();
  15961. this.selectSWorks();
  15962. this.selectSLook();
  15963. })
  15964. .catch((err) => {
  15965. this.$message.error("提交失败");
  15966. console.error(err);
  15967. });
  15968. },
  15969. addStudentTestTeacher() {
  15970. if (!this.radio.length) {
  15971. this.$message.error("请选择选项");
  15972. return;
  15973. }
  15974. for (var i = 0; i < this.testJson.testCount; i++) {
  15975. if (
  15976. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15977. (this.radio[i] !== 0 && !this.radio[i])
  15978. ) {
  15979. this.$message.error("请选择选项");
  15980. return;
  15981. }
  15982. }
  15983. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15984. let params = [
  15985. {
  15986. uid: this.sStudent.userid,
  15987. cid: this.id,
  15988. stage: this.courseType,
  15989. task: this.taskCount,
  15990. tool: this.toolindex,
  15991. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15992. type: 8,
  15993. },
  15994. ];
  15995. this.ajax
  15996. .post(this.$store.state.api + "addCourseWorks", params)
  15997. .then((res) => {
  15998. this.$message({
  15999. message: "提交成功",
  16000. type: "success",
  16001. });
  16002. this.askList = [];
  16003. this.dialogVisibleChoiceTeacher = false;
  16004. this.selectStudent();
  16005. this.selectSWorks();
  16006. this.selectSLook();
  16007. })
  16008. .catch((err) => {
  16009. this.$message.error("提交失败");
  16010. console.error(err);
  16011. });
  16012. },
  16013. addWork() {
  16014. if (this.studyJuri[0].content == "") {
  16015. this.$message.error("请将信息填写完整");
  16016. return;
  16017. } else if (this.studyJuri[0].cover.length == 0) {
  16018. this.$message.error("请将信息填写完整");
  16019. return;
  16020. } else if (this.studyJuri[0].upVedio.length == 0) {
  16021. this.$message.error("请将信息填写完整");
  16022. return;
  16023. }
  16024. if (this.isNoHomeWork) {
  16025. this.$confirm(
  16026. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16027. "提示",
  16028. {
  16029. confirmButtonText: "确定",
  16030. cancelButtonText: "取消",
  16031. type: "warning",
  16032. }
  16033. )
  16034. .then(() => {
  16035. let params = [
  16036. {
  16037. uid: this.userid,
  16038. cid: this.id,
  16039. stage: this.courseType,
  16040. task: this.taskCount,
  16041. content: JSON.stringify(this.studyJuri),
  16042. },
  16043. ];
  16044. this.ajax
  16045. .post(this.$store.state.api + "addWorks", params)
  16046. .then((res) => {
  16047. this.$message({
  16048. message: "提交成功",
  16049. type: "success",
  16050. });
  16051. this.isNoHomeWork = true;
  16052. this.dialogVisible = false;
  16053. })
  16054. .catch((err) => {
  16055. this.$message.error("提交失败");
  16056. console.error(err);
  16057. });
  16058. })
  16059. .catch(() => {});
  16060. } else {
  16061. let params = [
  16062. {
  16063. uid: this.userid,
  16064. cid: this.id,
  16065. stage: this.courseType,
  16066. task: this.taskCount,
  16067. content: JSON.stringify(this.studyJuri),
  16068. },
  16069. ];
  16070. this.ajax
  16071. .post(this.$store.state.api + "addWorks", params)
  16072. .then((res) => {
  16073. this.$message({
  16074. message: "提交成功",
  16075. type: "success",
  16076. });
  16077. this.isNoHomeWork = true;
  16078. this.dialogVisible = false;
  16079. })
  16080. .catch((err) => {
  16081. this.$message.error("提交失败");
  16082. console.error(err);
  16083. });
  16084. }
  16085. },
  16086. selectCount() {
  16087. let params = {
  16088. cid: this.id,
  16089. chid: this.courseType,
  16090. uid: this.userid,
  16091. };
  16092. this.ajax
  16093. .get(this.$store.state.api + "selectToolsCount", params)
  16094. .then((res) => {
  16095. for (var i = 0; i < res.data[0].length; i++) {
  16096. if (res.data[0][i].tools == 1) {
  16097. this.wbCount = res.data[0][i].count;
  16098. } else if (res.data[0][i].tools == 2) {
  16099. this.wordCount = res.data[0][i].count;
  16100. } else if (res.data[0][i].tools == 3) {
  16101. this.mindCount = res.data[0][i].count;
  16102. } else if (res.data[0][i].tools == 4) {
  16103. this.askCount = res.data[0][i].count;
  16104. } else if (res.data[0][i].tools == 6) {
  16105. this.noteCount = res.data[0][i].count;
  16106. } else if (res.data[0][i].tools == 7) {
  16107. this.mindNetWorkCount = res.data[0][i].count;
  16108. } else if (res.data[0][i].tools == 8) {
  16109. this.libraryCount = res.data[0][i].count;
  16110. } else if (res.data[0][i].tools == 16) {
  16111. this.workCount = res.data[0][i].count;
  16112. } else if (res.data[0][i].tools == 10) {
  16113. this.timeCount = res.data[0][i].count;
  16114. } else if (res.data[0][i].tools == 15) {
  16115. this.answerCount = res.data[0][i].count;
  16116. } else if (res.data[0][i].tools == 18) {
  16117. this.trainCount = res.data[0][i].count;
  16118. }
  16119. }
  16120. })
  16121. .catch((err) => {
  16122. console.error(err);
  16123. });
  16124. },
  16125. openTools(t, i, index, c, sName) {
  16126. var z = JSON.parse(c);
  16127. this.noteName = sName;
  16128. if (t == 4) {
  16129. this.radio = [];
  16130. this.isAnswer = false;
  16131. let b = z[0].anwer;
  16132. this.radio = b;
  16133. this.askJson = z[0].askJson;
  16134. this.isAnswer = true;
  16135. this.dialogVisible5 = true;
  16136. } else if (t == 45) {
  16137. this.radio = [];
  16138. this.isAnswer = false;
  16139. let b = z[0].anwer;
  16140. this.radio = b;
  16141. this.testJson = z[0].testJson;
  16142. this.isAnswer = true;
  16143. this.dialogVisibleChoice = true;
  16144. }
  16145. // else if (t == 15) {
  16146. // this.answerQ = "";
  16147. // this.questionAnswer = "";
  16148. // this.answerQ = z[0].answerTitle;
  16149. // this.questionAnswer = z[0].answer;
  16150. // this.answerDialogVisible = true;
  16151. // }
  16152. },
  16153. fastText(p, t) {
  16154. if (t == 1) {
  16155. this.commentText += p;
  16156. } else {
  16157. this.eScore.eBzText += p;
  16158. }
  16159. },
  16160. addTools(t, i, index) {
  16161. var a = 0;
  16162. // this.taskCount = index;
  16163. this.toolindex = i;
  16164. if (t == 1) {
  16165. if (this.wbCount > 0) {
  16166. this.updateCount(this.wbCount, t);
  16167. } else {
  16168. this.wbCount++;
  16169. a = this.wbCount;
  16170. this.toolsCount(a, t);
  16171. }
  16172. window.parent.postMessage(
  16173. {
  16174. tools: "1",
  16175. cid: this.id,
  16176. stage: this.courseType,
  16177. task: this.taskCount,
  16178. tool: i,
  16179. },
  16180. "*"
  16181. );
  16182. } else if (t == 2) {
  16183. if (this.wordCount > 0) {
  16184. this.updateCount(this.wordCount, t);
  16185. } else {
  16186. this.wordCount++;
  16187. a = this.wordCount;
  16188. this.toolsCount(a, t);
  16189. }
  16190. window.parent.postMessage({ tools: "2" }, "*");
  16191. } else if (t == 3) {
  16192. if (this.mindCount > 0) {
  16193. this.updateCount(this.mindCount, t);
  16194. } else {
  16195. this.mindCount++;
  16196. a = this.mindCount;
  16197. this.toolsCount(a, t);
  16198. }
  16199. window.parent.postMessage(
  16200. {
  16201. tools: "3",
  16202. cid: this.id,
  16203. stage: this.courseType,
  16204. task: this.taskCount,
  16205. tool: i,
  16206. },
  16207. "*"
  16208. );
  16209. } else if (t == 4) {
  16210. this.radio = [];
  16211. this.noteName = "";
  16212. this.isAnswer = false;
  16213. if (this.askCount > 0) {
  16214. this.updateCount(this.askCount, t);
  16215. } else {
  16216. this.askCount++;
  16217. a = this.askCount;
  16218. this.toolsCount(a, t);
  16219. }
  16220. this.askJson.askJson =
  16221. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16222. index
  16223. ].toolChoose[i].askJson;
  16224. this.askJson.askTitle =
  16225. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16226. index
  16227. ].toolChoose[i].askTitle;
  16228. this.askJson.askCount =
  16229. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16230. index
  16231. ].toolChoose[i].askCount;
  16232. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16233. if (this.askJson.askJson[k].type == "2") {
  16234. this.radio.push([]);
  16235. } else {
  16236. this.radio.push("");
  16237. }
  16238. }
  16239. this.dialogVisible5 = true;
  16240. // window.parent.postMessage({ tools: "4" }, "*");
  16241. } else if (t == 45) {
  16242. this.noteName = "";
  16243. this.radio = [];
  16244. this.isAnswer = false;
  16245. if (this.askCount > 0) {
  16246. this.updateCount(this.askCount, t);
  16247. } else {
  16248. this.askCount++;
  16249. a = this.askCount;
  16250. this.toolsCount(a, t);
  16251. }
  16252. this.testJson =
  16253. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16254. index
  16255. ].toolChoose[i].testJson;
  16256. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16257. if (this.testJson.testJson[k].type == "2") {
  16258. this.radio.push([]);
  16259. } else {
  16260. this.radio.push("");
  16261. }
  16262. }
  16263. this.dialogVisibleChoice = true;
  16264. // window.parent.postMessage({ tools: "4" }, "*");
  16265. } else if (t == 5) {
  16266. if (this.scoreCount > 0) {
  16267. this.updateCount(this.scoreCount, t);
  16268. } else {
  16269. this.scoreCount++;
  16270. a = this.scoreCount;
  16271. this.toolsCount(a, t);
  16272. }
  16273. this.dialogVisible4 = true;
  16274. // window.parent.postMessage({ tools: "5" }, "*");
  16275. } else if (t == 6) {
  16276. if (this.noteCount > 0) {
  16277. this.updateCount(this.noteCount, t);
  16278. } else {
  16279. this.noteCount++;
  16280. a = this.noteCount;
  16281. this.toolsCount(a, t);
  16282. }
  16283. window.parent.postMessage(
  16284. {
  16285. tools: "6",
  16286. cid: this.id,
  16287. stage: this.courseType,
  16288. task: this.taskCount,
  16289. tool: i,
  16290. },
  16291. "*"
  16292. );
  16293. } else if (t == 7) {
  16294. if (this.mindNetWorkCount > 0) {
  16295. this.updateCount(this.mindNetWorkCount, t);
  16296. } else {
  16297. this.mindNetWorkCount++;
  16298. a = this.mindNetWorkCount;
  16299. this.toolsCount(a, t);
  16300. }
  16301. window.parent.postMessage(
  16302. {
  16303. tools: "7",
  16304. cid: this.id,
  16305. stage: this.courseType,
  16306. task: this.taskCount,
  16307. tool: i,
  16308. },
  16309. "*"
  16310. );
  16311. } else if (t == 16) {
  16312. if (this.workCount > 0) {
  16313. this.updateCount(this.workCount, t);
  16314. } else {
  16315. this.workCount++;
  16316. a = this.workCount;
  16317. this.toolsCount(a, t);
  16318. }
  16319. this.dialogVisible = true;
  16320. } else if (t == 50) {
  16321. if (this.tType == 2) {
  16322. this.$message.error("不支持学生使用");
  16323. return;
  16324. }
  16325. this.plworkFile = [];
  16326. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16327. if (!this.uploadCid) {
  16328. this.$message.error(
  16329. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16330. );
  16331. return;
  16332. }
  16333. this.selectUploadStudent(2);
  16334. } else if (t == 8) {
  16335. if (this.libraryCount > 0) {
  16336. this.updateCount(this.libraryCount, t);
  16337. } else {
  16338. this.libraryCount++;
  16339. a = this.libraryCount;
  16340. this.toolsCount(a, t);
  16341. }
  16342. window.parent.postMessage({ tools: "8" }, "*");
  16343. } else if (t == 17) {
  16344. if (this.libraryCount > 0) {
  16345. this.updateCount(this.libraryCount, t);
  16346. } else {
  16347. this.libraryCount++;
  16348. a = this.libraryCount;
  16349. this.toolsCount(a, t);
  16350. }
  16351. window.parent.postMessage({ tools: "17" }, "*");
  16352. } else if (t == 18) {
  16353. if (this.trainCount > 0) {
  16354. this.updateCount(this.trainCount, t);
  16355. } else {
  16356. this.trainCount++;
  16357. a = this.trainCount;
  16358. this.toolsCount(a, t);
  16359. }
  16360. window.parent.postMessage({ tools: "18" }, "*");
  16361. } else if (t == 10) {
  16362. if (this.timeCount > 0) {
  16363. this.updateCount(this.timeCount, t);
  16364. } else {
  16365. this.timeCount++;
  16366. a = this.timeCount;
  16367. this.toolsCount(a, t);
  16368. }
  16369. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  16370. .taskJson[index].toolChoose[i].preTime
  16371. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16372. .toolChoose[i].preTime
  16373. : "";
  16374. this.timeDialogVisible = true;
  16375. } else if (t == 15) {
  16376. this.answerQ = "";
  16377. this.questionAnswer = "";
  16378. if (this.answerCount > 0) {
  16379. this.updateCount(this.answerCount, t);
  16380. } else {
  16381. this.answerCount++;
  16382. a = this.answerCount;
  16383. this.toolsCount(a, t);
  16384. }
  16385. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16386. .taskJson[index].toolChoose[i].answerQ
  16387. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16388. .toolChoose[i].answerQ
  16389. : "";
  16390. this.answerDialogVisible = true;
  16391. } else if (t == 21) {
  16392. window.parent.postMessage({ tools: "21" }, "*");
  16393. } else if (t == 22) {
  16394. window.parent.postMessage({ tools: "22" }, "*");
  16395. } else if (t == 23) {
  16396. window.parent.postMessage({ tools: "23" }, "*");
  16397. } else if (t == 24) {
  16398. window.parent.postMessage({ tools: "24" }, "*");
  16399. } else if (t == 25) {
  16400. window.parent.postMessage({ tools: "25" }, "*");
  16401. } else if (t == 31) {
  16402. window.parent.postMessage({ tools: "31" }, "*");
  16403. } else if (t == 28) {
  16404. window.parent.postMessage({ tools: "28" }, "*");
  16405. } else if (t == 37) {
  16406. window.parent.postMessage({ tools: "37" }, "*");
  16407. } else if (t == 38) {
  16408. window.parent.postMessage({ tools: "38" }, "*");
  16409. } else if (t == 39) {
  16410. window.parent.postMessage({ tools: "39" }, "*");
  16411. } else if (t == 32) {
  16412. window.parent.postMessage({ tools: "32" }, "*");
  16413. } else if (t == 57) {
  16414. // window.parent.postMessage({ tools: "57" }, "*");
  16415. window.parent.postMessage(
  16416. {
  16417. tools: "57u",
  16418. cid: this.id,
  16419. stage: this.courseType,
  16420. task: this.taskCount,
  16421. tool: i,
  16422. },
  16423. "*"
  16424. );
  16425. } else if (t == 58) {
  16426. window.parent.postMessage({ tools: "58" }, "*");
  16427. } else if (t == 59) {
  16428. window.parent.postMessage({ tools: "59" }, "*");
  16429. } else if (t == 60) {
  16430. window.parent.postMessage({ tools: "60" }, "*");
  16431. } else if (t == 61) {
  16432. window.parent.postMessage({ tools: "61" }, "*");
  16433. } else if (t == 63) {
  16434. window.parent.postMessage({ tools: "63" }, "*");
  16435. } else if (t == 26) {
  16436. window.parent.postMessage(
  16437. {
  16438. tools: "26",
  16439. cid: this.id,
  16440. stage: this.courseType,
  16441. task: this.taskCount,
  16442. tool: i,
  16443. },
  16444. "*"
  16445. );
  16446. } else if (t == 40) {
  16447. if (this.evalCount > 0) {
  16448. this.updateCount(this.evalCount, t);
  16449. } else {
  16450. this.evalCount++;
  16451. a = this.evalCount;
  16452. this.toolsCount(a, t);
  16453. }
  16454. this.eScore = { eBzText: "", eStar: [] };
  16455. if (this.worksStudent[i].length) {
  16456. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16457. if (this.userid == this.worksStudent[i][k].userid) {
  16458. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16459. this.rateJson =
  16460. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16461. index
  16462. ].toolChoose[i].rateJson;
  16463. break;
  16464. } else {
  16465. this.rateJson =
  16466. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16467. index
  16468. ].toolChoose[i].rateJson;
  16469. }
  16470. }
  16471. } else {
  16472. this.rateJson =
  16473. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16474. index
  16475. ].toolChoose[i].rateJson;
  16476. }
  16477. this.isStar = false;
  16478. this.studentEvalDialogVisible = true;
  16479. } else if (t == 41) {
  16480. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16481. .taskJson[index].toolChoose[i].selectJson
  16482. ? JSON.parse(
  16483. JSON.stringify(
  16484. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16485. index
  16486. ].toolChoose[i].selectJson
  16487. )
  16488. )
  16489. : { url: "", select: [], answer: [] };
  16490. if (this.worksStudent[i].length) {
  16491. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16492. if (this.userid == this.worksStudent[i][k].userid) {
  16493. var a = this.worksStudent[i][k].works.split(",");
  16494. for (var ki = 0; ki < a.length; ki++) {
  16495. a[ki] = parseInt(a[ki]);
  16496. }
  16497. this.selectAnswer = {
  16498. answer: a,
  16499. stu: this.worksStudent[i][k].sName,
  16500. };
  16501. break;
  16502. } else {
  16503. this.selectAnswer = { answer: [], stu: "" };
  16504. }
  16505. }
  16506. } else {
  16507. this.selectAnswer = { answer: [], stu: "" };
  16508. }
  16509. this.isSelect = false;
  16510. this.dialogVisibleSelect = true;
  16511. } else if (t == 44) {
  16512. window.parent.postMessage({ tools: "44" }, "*");
  16513. } else if (t == 47) {
  16514. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16515. .taskJson[index].toolChoose[i].sentenceList
  16516. ? JSON.parse(
  16517. JSON.stringify(
  16518. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16519. index
  16520. ].toolChoose[i].sentenceList
  16521. )
  16522. )
  16523. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16524. for (var q = 0; q < this.sentenceList.length; q++) {
  16525. this.sentenceList[q].chooseSenList = [];
  16526. this.sentenceList[q].addChangeSen = [];
  16527. this.sentenceList[q].addChangeSen = JSON.parse(
  16528. JSON.stringify(this.sentenceList[q].addSentence)
  16529. );
  16530. this.sentenceList[q].chooseSenList.length =
  16531. this.sentenceList[q].rightAnswer.length;
  16532. }
  16533. this.dialogVisibleSentence = true;
  16534. } else if (t == 48) {
  16535. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16536. .taskJson[index].toolChoose[i].tableJson
  16537. ? JSON.parse(
  16538. JSON.stringify(
  16539. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16540. index
  16541. ].toolChoose[i].tableJson
  16542. )
  16543. )
  16544. : { text: "" };
  16545. if (this.worksStudent[i].length) {
  16546. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16547. if (this.userid == this.worksStudent[i][k].userid) {
  16548. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16549. break;
  16550. }
  16551. }
  16552. }
  16553. this.dialogVisibleTable = true;
  16554. } else if (t == 52) {
  16555. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16556. .taskJson[index].toolChoose[i].wordJson
  16557. ? JSON.parse(
  16558. JSON.stringify(
  16559. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16560. index
  16561. ].toolChoose[i].wordJson
  16562. )
  16563. )
  16564. : { text: "" };
  16565. this.dialogVisibleWord = true;
  16566. } else if (t == 49) {
  16567. this.groupJson =
  16568. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16569. index
  16570. ].toolChoose[i].groupJson;
  16571. this.dialogVisibleGroup = true;
  16572. } else if (t == 62) {
  16573. this.videoJson =
  16574. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16575. index
  16576. ].toolChoose[i].videoJson;
  16577. this.dialogVisibleVideo = true;
  16578. }
  16579. },
  16580. teacherWorkSubmit(t, i, index, s) {
  16581. this.sStudent = s;
  16582. this.sTool = t;
  16583. this.toolindex = i;
  16584. if (this.tType !== "1" && this.tType !== "4") {
  16585. return;
  16586. }
  16587. if (t == 16 || t == 32 || t == 50) {
  16588. this.dialogVisibleWorks = true; //作业提交
  16589. } else if (t == 15) {
  16590. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16591. .taskJson[index].toolChoose[i].answerQ
  16592. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16593. .toolChoose[i].answerQ
  16594. : "";
  16595. this.questionAnswer = "";
  16596. this.answerDialogVisibleTeacher = true; //问答
  16597. } else if (t == 52) {
  16598. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16599. .taskJson[index].toolChoose[i].wordJson
  16600. ? JSON.parse(
  16601. JSON.stringify(
  16602. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16603. index
  16604. ].toolChoose[i].wordJson
  16605. )
  16606. )
  16607. : { text: "" };
  16608. this.dialogVisibleWordTeacher = true; //文档
  16609. } else if (t == 4) {
  16610. this.radio = [];
  16611. this.noteName = "";
  16612. this.isAnswer = false;
  16613. if (this.askCount > 0) {
  16614. this.updateCount(this.askCount, t);
  16615. } else {
  16616. this.askCount++;
  16617. a = this.askCount;
  16618. this.toolsCount(a, t);
  16619. }
  16620. if (!this.dialogVisible2) {
  16621. this.askJson.askJson =
  16622. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16623. index
  16624. ].toolChoose[i].askJson;
  16625. this.askJson.askTitle =
  16626. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16627. index
  16628. ].toolChoose[i].askTitle;
  16629. this.askJson.askCount =
  16630. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16631. index
  16632. ].toolChoose[i].askCount;
  16633. } else {
  16634. this.askJson.askJson = this.chapTools.askJson.askJson;
  16635. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16636. this.askJson.askCount = this.chapTools.askJson.askCount;
  16637. }
  16638. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16639. if (this.askJson.askJson[k].type == "2") {
  16640. this.radio.push([]);
  16641. } else {
  16642. this.radio.push("");
  16643. }
  16644. }
  16645. this.dialogVisible5Teacher = true;
  16646. } else if (t == 45) {
  16647. this.noteName = "";
  16648. this.radio = [];
  16649. this.isAnswer = false;
  16650. if (this.askCount > 0) {
  16651. this.updateCount(this.askCount, t);
  16652. } else {
  16653. this.askCount++;
  16654. a = this.askCount;
  16655. this.toolsCount(a, t);
  16656. }
  16657. this.testJson =
  16658. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16659. index
  16660. ].toolChoose[i].testJson;
  16661. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16662. if (this.testJson.testJson[k].type == "2") {
  16663. this.radio.push([]);
  16664. } else {
  16665. this.radio.push("");
  16666. }
  16667. }
  16668. this.dialogVisibleChoiceTeacher = true;
  16669. } else if (t == 41) {
  16670. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16671. .taskJson[index].toolChoose[i].selectJson
  16672. ? JSON.parse(
  16673. JSON.stringify(
  16674. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16675. index
  16676. ].toolChoose[i].selectJson
  16677. )
  16678. )
  16679. : { url: "", select: [], answer: [] };
  16680. if (this.worksStudent[i].length) {
  16681. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16682. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16683. var a = this.worksStudent[i][k].works.split(",");
  16684. for (var ki = 0; ki < a.length; ki++) {
  16685. a[ki] = parseInt(a[ki]);
  16686. }
  16687. this.selectAnswer = {
  16688. answer: a,
  16689. stu: this.worksStudent[i][k].sName,
  16690. };
  16691. break;
  16692. } else {
  16693. this.selectAnswer = { answer: [], stu: "" };
  16694. }
  16695. }
  16696. } else {
  16697. this.selectAnswer = { answer: [], stu: "" };
  16698. }
  16699. this.isSelect = false;
  16700. this.dialogVisibleSelectTeacher = true;
  16701. } else if (t == 47) {
  16702. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16703. .taskJson[index].toolChoose[i].sentenceList
  16704. ? JSON.parse(
  16705. JSON.stringify(
  16706. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16707. index
  16708. ].toolChoose[i].sentenceList
  16709. )
  16710. )
  16711. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16712. for (var q = 0; q < this.sentenceList.length; q++) {
  16713. this.sentenceList[q].chooseSenList = [];
  16714. this.sentenceList[q].addChangeSen = [];
  16715. this.sentenceList[q].addChangeSen = JSON.parse(
  16716. JSON.stringify(this.sentenceList[q].addSentence)
  16717. );
  16718. this.sentenceList[q].chooseSenList.length =
  16719. this.sentenceList[q].rightAnswer.length;
  16720. }
  16721. this.dialogVisibleSentenceTeacher = true;
  16722. } else if (t == 48) {
  16723. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16724. .taskJson[index].toolChoose[i].tableJson
  16725. ? JSON.parse(
  16726. JSON.stringify(
  16727. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16728. index
  16729. ].toolChoose[i].tableJson
  16730. )
  16731. )
  16732. : { text: "" };
  16733. if (this.worksStudent[i].length) {
  16734. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16735. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16736. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16737. break;
  16738. }
  16739. }
  16740. }
  16741. this.dialogVisibleTableTeacher = true;
  16742. } else if (t == 40) {
  16743. if (this.evalCount > 0) {
  16744. this.updateCount(this.evalCount, t);
  16745. } else {
  16746. this.evalCount++;
  16747. a = this.evalCount;
  16748. this.toolsCount(a, t);
  16749. }
  16750. this.eScore = { eBzText: "", eStar: [] };
  16751. if (this.worksStudent[i].length) {
  16752. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16753. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16754. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16755. this.rateJson =
  16756. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16757. index
  16758. ].toolChoose[i].rateJson;
  16759. break;
  16760. } else {
  16761. this.rateJson =
  16762. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16763. index
  16764. ].toolChoose[i].rateJson;
  16765. }
  16766. }
  16767. } else {
  16768. this.rateJson =
  16769. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16770. index
  16771. ].toolChoose[i].rateJson;
  16772. }
  16773. this.isStar = false;
  16774. this.studentEvalDialogVisibleTeacher = true;
  16775. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  16776. window.parent.postMessage(
  16777. {
  16778. tools: t + "teacher",
  16779. cid: this.id,
  16780. stage: this.courseType,
  16781. task: this.taskCount,
  16782. tool: i,
  16783. student: this.sStudent,
  16784. },
  16785. "*"
  16786. );
  16787. }
  16788. },
  16789. openCocoPi(tool, i, uid, uname) {
  16790. let student = {
  16791. userid: uid,
  16792. student: uname,
  16793. };
  16794. if (tool == 57) {
  16795. window.parent.postMessage(
  16796. {
  16797. tools: tool + "teacher",
  16798. cid: this.id,
  16799. stage: this.courseType,
  16800. task: this.taskCount,
  16801. tool: i,
  16802. student: student,
  16803. },
  16804. "*"
  16805. );
  16806. }
  16807. },
  16808. setRightAnswer(s, i, j) {
  16809. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  16810. if (
  16811. this.sentenceList[i].chooseSenList[q] == undefined ||
  16812. this.sentenceList[i].chooseSenList[q] == ""
  16813. ) {
  16814. this.sentenceList[i].chooseSenList[q] = s;
  16815. this.sentenceList[i].addChangeSen[j] = "";
  16816. break;
  16817. }
  16818. }
  16819. this.$forceUpdate();
  16820. },
  16821. returnCard(r, i, j) {
  16822. var a = this.sentenceList[i].addSentence.indexOf(r);
  16823. this.sentenceList[i].chooseSenList[j] = "";
  16824. this.sentenceList[i].addChangeSen[a] = r;
  16825. this.$forceUpdate();
  16826. },
  16827. // addSentenceTool() {
  16828. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16829. // this.taskCount
  16830. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  16831. // this.sentenceList = [
  16832. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  16833. // ];
  16834. // this.dialogVisibleSentence = false;
  16835. // },
  16836. toolsCount(a, t) {
  16837. let params = {
  16838. cid: this.id,
  16839. chid: this.courseType,
  16840. uid: this.userid,
  16841. tid: t,
  16842. count: a,
  16843. };
  16844. this.ajax
  16845. .get(this.$store.state.api + "insertToolsCount", params)
  16846. .then((res) => {
  16847. this.selectCount();
  16848. })
  16849. .catch((err) => {
  16850. console.error(err);
  16851. });
  16852. },
  16853. updateCount(c, t) {
  16854. c++;
  16855. let params = {
  16856. cid: this.id,
  16857. chid: this.courseType,
  16858. uid: this.userid,
  16859. tid: t,
  16860. count: c,
  16861. };
  16862. this.ajax
  16863. .get(this.$store.state.api + "updateToolsCount", params)
  16864. .then((res) => {
  16865. this.selectCount();
  16866. })
  16867. .catch((err) => {
  16868. console.error(err);
  16869. });
  16870. },
  16871. checkEva() {
  16872. if (this.evalua != "") {
  16873. for (var i = 0; i < this.evaJuri.length; i++) {
  16874. if (this.evalua == this.evaJuri[i].id) {
  16875. this.eTitle = this.evaJuri[i].title;
  16876. this.eJson = JSON.parse(this.evaJuri[i].content);
  16877. }
  16878. }
  16879. this.$forceUpdate();
  16880. setTimeout(() => {
  16881. this.setMindData();
  16882. }, 0);
  16883. }
  16884. },
  16885. selectEva() {
  16886. let params = {
  16887. oid: this.oid,
  16888. };
  16889. this.ajax
  16890. .get(this.$store.state.api + "selectAllEvaluation", params)
  16891. .then((res) => {
  16892. this.evaJuri = res.data[0];
  16893. })
  16894. .catch((err) => {
  16895. console.error(err);
  16896. });
  16897. },
  16898. setMindData() {
  16899. this.data.data = [];
  16900. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  16901. let _eJson = Object.keys(this.eJson);
  16902. let _e = this.eJson;
  16903. for (let i = 0; i < _eJson.length; i++) {
  16904. let element = _e[_eJson[i]];
  16905. this.data.data.push({
  16906. id: element.id,
  16907. parentid: "root",
  16908. topic: element.name,
  16909. });
  16910. let _eJsonc = Object.keys(element.child);
  16911. let _e2 = element.child;
  16912. for (let j = 0; j < _eJsonc.length; j++) {
  16913. let _ec = _e2[_eJsonc[j]];
  16914. this.data.data.push({
  16915. id: _ec.id,
  16916. parentid: element.id,
  16917. topic: _ec.name,
  16918. });
  16919. let _eJsonz = Object.keys(_ec.child);
  16920. let _e3 = _ec.child;
  16921. for (let z = 0; z < _eJsonz.length; z++) {
  16922. let _ez = _e3[_eJsonz[z]];
  16923. this.data.data.push({
  16924. id: _ez.id,
  16925. parentid: _ec.id,
  16926. topic: _ez.name,
  16927. });
  16928. }
  16929. }
  16930. }
  16931. this.$forceUpdate();
  16932. },
  16933. checkFileFull(type, url) {
  16934. this.fullDialogVisible = true;
  16935. this.fulltype = type;
  16936. this.fullUrl = url;
  16937. },
  16938. openSname(n, id, i, uid) {
  16939. this.snameWid = id;
  16940. this.worksSName = n;
  16941. this.worksSid = uid == n ? "" : uid;
  16942. this.toolindex = i;
  16943. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16944. if (!this.uploadCid) {
  16945. this.$message.error(
  16946. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16947. );
  16948. return;
  16949. }
  16950. this.selectUploadStudent(1);
  16951. },
  16952. updateName() {
  16953. let params = {
  16954. n: this.worksSName,
  16955. cid: this.snameWid,
  16956. };
  16957. this.ajax
  16958. .get(this.$store.state.api + "updateCourseWorksName", params)
  16959. .then((res) => {
  16960. this.$message({
  16961. message: "修改成功",
  16962. type: "success",
  16963. });
  16964. this.dialogVisibleSname = false;
  16965. this.getCourseDetail();
  16966. this.snameWid = "";
  16967. this.worksSName = "";
  16968. })
  16969. .catch((err) => {
  16970. console.error(err);
  16971. });
  16972. },
  16973. downloadFile2(f) {
  16974. const loading = this.$loading.service({
  16975. background: "rgba(255, 255, 255, 0.7)",
  16976. target: document.body,
  16977. text: "文件加载中...",
  16978. });
  16979. let url2 = f.url;
  16980. let _url2 = "";
  16981. if (
  16982. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16983. ) {
  16984. _url2 = url2.split(
  16985. "https://view.officeapps.live.com/op/view.aspx?src="
  16986. )[1];
  16987. } else {
  16988. _url2 = url2;
  16989. }
  16990. let params = {
  16991. url: _url2,
  16992. name: f.name,
  16993. };
  16994. this.ajax
  16995. .get(this.$store.state.api + "download", params)
  16996. .then((res) => {
  16997. console.log(res);
  16998. loading.close();
  16999. let content = res.data.data.data;
  17000. let ab = new ArrayBuffer(content.length);
  17001. let view = new Uint8Array(ab);
  17002. for (var i = 0; i < content.length; ++i) {
  17003. view[i] = content[i];
  17004. }
  17005. let elink = document.createElement("a");
  17006. elink.download = f.name;
  17007. elink.style.display = "none";
  17008. let blob = new Blob([ab], {
  17009. type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  17010. });
  17011. elink.href = URL.createObjectURL(blob);
  17012. document.body.appendChild(elink);
  17013. elink.click();
  17014. document.body.removeChild(elink);
  17015. })
  17016. .catch((err) => {
  17017. loading.close();
  17018. console.error(err);
  17019. });
  17020. },
  17021. downloadFile(url) {
  17022. let _this = this;
  17023. let _url = "";
  17024. if (
  17025. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17026. ) {
  17027. _url = url.split(
  17028. "https://view.officeapps.live.com/op/view.aspx?src="
  17029. )[1];
  17030. } else {
  17031. _url = url;
  17032. }
  17033. const x = new XMLHttpRequest();
  17034. x.open("GET", _url, true);
  17035. x.responseType = "blob";
  17036. const loading = _this.$loading.service({
  17037. background: "rgba(255, 255, 255, 0.7)",
  17038. target: document.body,
  17039. text: "文件加载中...",
  17040. });
  17041. // _this.$message.success("文件下载中...");
  17042. x.onload = function (e) {
  17043. loading.close();
  17044. // const url = window.URL.createObjectURL(x.response);
  17045. // const a = document.createElement("a");
  17046. // a.href = url;
  17047. // a.target = "_blank";
  17048. // a.download = url;
  17049. // a.click();
  17050. // a.remove();
  17051. let content = x.response;
  17052. let elink = document.createElement("a");
  17053. elink.download = decodeURI(
  17054. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17055. );
  17056. elink.style.display = "none";
  17057. let blob = new Blob([content]);
  17058. elink.href = URL.createObjectURL(blob);
  17059. document.body.appendChild(elink);
  17060. elink.click();
  17061. document.body.removeChild(elink);
  17062. };
  17063. x.send();
  17064. },
  17065. openLine(url) {
  17066. window.open(url);
  17067. },
  17068. resize() {
  17069. if (document.getElementsByClassName("box_course").length) {
  17070. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17071. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17072. if (this.showType == 2 || this.showType == 3) {
  17073. document.getElementsByClassName("navBox")[0].style.height =
  17074. a - 40 + 46 + "px";
  17075. } else {
  17076. document.getElementsByClassName("navBox")[0].style.height =
  17077. a - 40 + "px";
  17078. }
  17079. }
  17080. this.Stbodywidth =
  17081. document.getElementsByClassName("student_body").length &&
  17082. document.getElementsByClassName("student_body")[0].offsetWidth;
  17083. },
  17084. closeDraw() {
  17085. this.bg = null;
  17086. this.drawShow = false;
  17087. },
  17088. showPicturePaint(url) {
  17089. let params = {
  17090. img: url,
  17091. };
  17092. this.ajax
  17093. .get(this.$store.state.api + "imgToBase64", params)
  17094. .then((res) => {
  17095. console.log(res);
  17096. this.drawShow = true;
  17097. this.bg = res.data[0].img;
  17098. })
  17099. .catch((err) => {
  17100. console.error(err);
  17101. });
  17102. },
  17103. addImgDraw(base64) {
  17104. let file = { name: "批注图.png" };
  17105. let img = this.dataUrlToFile(base64, file);
  17106. this.beforeUpload1(img, 5);
  17107. },
  17108. addImgDrawImG(url) {
  17109. // console.log(url);
  17110. let params = [
  17111. {
  17112. wid: this.commentDetail.wid,
  17113. img: url,
  17114. },
  17115. ];
  17116. this.ajax
  17117. .post(this.$store.state.api + "updateCourseWorks", params)
  17118. .then((res) => {
  17119. this.$message({
  17120. message: "提交成功",
  17121. type: "success",
  17122. });
  17123. this.drawShow = false;
  17124. this.bg = "";
  17125. this.selectSWorks();
  17126. this.selectStudent();
  17127. })
  17128. .catch((err) => {
  17129. this.$message.error("提交失败");
  17130. console.error(err);
  17131. });
  17132. },
  17133. deletePicturePaint() {
  17134. this.$confirm("确定删除此批注吗?", "提示", {
  17135. confirmButtonText: "确定",
  17136. cancelButtonText: "取消",
  17137. type: "warning",
  17138. })
  17139. .then(() => {
  17140. let params = [
  17141. {
  17142. wid: this.commentDetail.wid,
  17143. img: "",
  17144. },
  17145. ];
  17146. this.ajax
  17147. .post(this.$store.state.api + "updateCourseWorks", params)
  17148. .then((res) => {
  17149. this.$message({
  17150. message: "删除成功",
  17151. type: "success",
  17152. });
  17153. this.selectSWorks();
  17154. this.selectStudent();
  17155. })
  17156. .catch((err) => {
  17157. this.$message.error("删除失败");
  17158. console.error(err);
  17159. });
  17160. })
  17161. .catch(() => {});
  17162. },
  17163. getAudioVideo(constraintsData) {
  17164. if (navigator.mediaDevices === undefined) {
  17165. navigator.mediaDevices = {};
  17166. }
  17167. if (navigator.mediaDevices.getUserMedia === undefined) {
  17168. navigator.mediaDevices.getUserMedia = function (constraints) {
  17169. // 首先,如果有getUserMedia的话,就获得它
  17170. var getUserMedia =
  17171. navigator.getUserMedia ||
  17172. navigator.webkitGetUserMedia ||
  17173. navigator.mozGetUserMedia ||
  17174. navigator.msGetUserMedia;
  17175. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  17176. if (!getUserMedia) {
  17177. return Promise.reject({ code: 404 });
  17178. }
  17179. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  17180. return new Promise(function (resolve, reject) {
  17181. getUserMedia.call(navigator, constraints, resolve, reject);
  17182. });
  17183. };
  17184. }
  17185. return navigator.mediaDevices.getUserMedia(constraintsData);
  17186. },
  17187. /**
  17188. * 开始录制
  17189. */
  17190. startRecording(callback) {
  17191. let _function = (screenStream) => {
  17192. this.addStreamStopListener(screenStream, () => {
  17193. console.log("流停止监听");
  17194. this.stopRecording();
  17195. this.$emit("streamStop", {});
  17196. // this.stopRecording();
  17197. });
  17198. var options = {
  17199. type: "video",
  17200. mimeType: "video/webm",
  17201. disableLogs: false,
  17202. getNativeBlob: false, // enable it for longer recordings
  17203. ignoreMutedMedia: false,
  17204. };
  17205. // this.video.srcObject = screenStream;
  17206. this.recorder = RecordRTC(screenStream, options);
  17207. this.recorder.startRecording();
  17208. this.recorder.screen = screenStream;
  17209. this.videoStart = true;
  17210. // callback(true);
  17211. };
  17212. this.getAudioVideo({ audio: true })
  17213. .then((res) => {
  17214. this.captureScreen(_function, true);
  17215. console.log("已点击允许,开启成功");
  17216. })
  17217. .catch((err) => {
  17218. // console.log('浏览器不支持,请更换浏览器')
  17219. // } else {
  17220. this.captureScreen(_function, false);
  17221. console.log("请检查是否存在麦克风");
  17222. });
  17223. },
  17224. /**
  17225. * 停止录制
  17226. */
  17227. stopRecording(callback) {
  17228. this.recorder.stopRecording(() => {
  17229. // this.video.src = this.video.srcObject = null;
  17230. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  17231. const url = URL.createObjectURL(this.recorder.getBlob());
  17232. const a = document.createElement("a"); //this.fileName+
  17233. let videoFile = new File(
  17234. [this.recorder.getBlob()],
  17235. this.courseDetail.title + "录屏.mp4",
  17236. {
  17237. type: "video/mp4",
  17238. }
  17239. );
  17240. let downloadUrl = URL.createObjectURL(videoFile);
  17241. document.body.appendChild(a);
  17242. a.style.display = "none";
  17243. a.href = url;
  17244. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  17245. a.click();
  17246. this.recorder.screen.stop();
  17247. this.recorder.destroy();
  17248. this.recorder = null;
  17249. this.videoStart = false;
  17250. // callback(false);
  17251. });
  17252. },
  17253. //初始化
  17254. captureScreen(callback, type) {
  17255. if (navigator.getDisplayMedia) {
  17256. //录制结束,文件下载
  17257. navigator
  17258. .getDisplayMedia({
  17259. video: true,
  17260. })
  17261. .then((screenStream) => {
  17262. if (type) {
  17263. navigator.mediaDevices
  17264. .getUserMedia({ audio: true })
  17265. .then((mic) => {
  17266. screenStream.addTrack(mic.getTracks()[0]);
  17267. callback(screenStream);
  17268. });
  17269. } else {
  17270. callback(screenStream);
  17271. }
  17272. })
  17273. .catch(function (error) {
  17274. console.log("error", error);
  17275. });
  17276. } else if (navigator.mediaDevices.getDisplayMedia) {
  17277. navigator.mediaDevices
  17278. .getDisplayMedia({
  17279. video: true,
  17280. })
  17281. .then((screenStream) => {
  17282. if (type) {
  17283. navigator.mediaDevices
  17284. .getUserMedia({ audio: true })
  17285. .then((mic) => {
  17286. screenStream.addTrack(mic.getTracks()[0]);
  17287. callback(screenStream);
  17288. });
  17289. } else {
  17290. callback(screenStream);
  17291. }
  17292. })
  17293. .catch(function (error) {
  17294. console.log("error", error);
  17295. });
  17296. } else {
  17297. var error = "getDisplayMedia API are not supported in this browser.";
  17298. console.log("error", error);
  17299. alert(error);
  17300. }
  17301. },
  17302. //流监听
  17303. addStreamStopListener(stream, callback) {
  17304. stream.addEventListener(
  17305. "ended",
  17306. function () {
  17307. callback();
  17308. callback = function () {};
  17309. },
  17310. false
  17311. );
  17312. stream.addEventListener(
  17313. "inactive",
  17314. function () {
  17315. callback();
  17316. callback = function () {};
  17317. },
  17318. false
  17319. );
  17320. stream.getTracks().forEach(function (track) {
  17321. track.addEventListener(
  17322. "ended",
  17323. function () {
  17324. callback();
  17325. callback = function () {};
  17326. },
  17327. false
  17328. );
  17329. track.addEventListener(
  17330. "inactive",
  17331. function () {
  17332. callback();
  17333. callback = function () {};
  17334. },
  17335. false
  17336. );
  17337. });
  17338. },
  17339. updateGroup() {
  17340. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17341. this.dialogVisibleGroup2 = true;
  17342. },
  17343. updateGroupJson() {
  17344. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  17345. if (
  17346. this.groupStudentUid[this.toolindex][i].length >
  17347. this.groupJson2.number
  17348. ) {
  17349. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  17350. return;
  17351. }
  17352. }
  17353. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  17354. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17355. this.taskCount
  17356. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  17357. let params = [
  17358. {
  17359. cid: this.id,
  17360. chapters: JSON.stringify(this.chapInfoList),
  17361. uid: this.userid,
  17362. unitIndex: this.courseType,
  17363. },
  17364. ];
  17365. this.ajax
  17366. .post(this.$store.state.api + "updateWorkNew4", params)
  17367. .then((res) => {
  17368. this.$message.success("设置成功");
  17369. this.getCourseDetail(2);
  17370. this.dialogVisibleGroup2 = false;
  17371. this.groupJson2 = {};
  17372. this.$forceUpdate();
  17373. })
  17374. .catch((err) => {
  17375. this.$message.error("网络不佳");
  17376. console.error(err);
  17377. });
  17378. },
  17379. lockChair() {
  17380. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17381. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  17382. this.updateGroupJson();
  17383. },
  17384. selectGroup(index) {
  17385. this.getCourseDetail(2, index);
  17386. },
  17387. joinGroup(index) {
  17388. if (this.groupJson.islock == 2) {
  17389. this.$message.error("位置已被锁定,无法加入");
  17390. return;
  17391. }
  17392. if (
  17393. this.groupStudent[this.toolindex][index].length >
  17394. this.groupJson.number ||
  17395. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  17396. ) {
  17397. this.$message.error("位置已满,无法加入");
  17398. return;
  17399. }
  17400. let params = [
  17401. {
  17402. cid: this.id,
  17403. stage: this.courseType,
  17404. task: this.taskCount,
  17405. tool: this.toolindex,
  17406. g: index,
  17407. uid: this.userid,
  17408. },
  17409. ];
  17410. this.ajax
  17411. .post(this.$store.state.api + "joinGroup", params)
  17412. .then((res) => {
  17413. this.$message.success("加入成功");
  17414. this.getCourseDetail();
  17415. })
  17416. .catch((err) => {
  17417. this.$message.error("网络不佳");
  17418. console.error(err);
  17419. });
  17420. },
  17421. exitGroup(id) {
  17422. if (this.groupJson.islock == 2) {
  17423. this.$message.error("位置已被锁定,无法退出");
  17424. return;
  17425. }
  17426. let params = [
  17427. {
  17428. gid: id,
  17429. },
  17430. ];
  17431. this.ajax
  17432. .post(this.$store.state.api + "exitGroup", params)
  17433. .then((res) => {
  17434. this.$message.success("退出成功");
  17435. this.getCourseDetail();
  17436. })
  17437. .catch((err) => {
  17438. this.$message.error("网络不佳");
  17439. console.error(err);
  17440. });
  17441. },
  17442. groupUpload(index, task, gindex) {
  17443. this.taskCount = task;
  17444. this.toolindex = index;
  17445. this.groupIndex = gindex;
  17446. this.dialogVisibleGroupWork = true;
  17447. },
  17448. updateGroupChair(user) {
  17449. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  17450. el.label = index;
  17451. return index != user.group;
  17452. });
  17453. this.updateGroupUser = user;
  17454. this.dialogVisibleUpdateGroup = true;
  17455. },
  17456. updateChair() {
  17457. if (
  17458. this.groupStudent[this.toolindex][this.checkChair].length >
  17459. this.groupJson.number ||
  17460. this.groupStudent[this.toolindex][this.checkChair].length ==
  17461. this.groupJson.number
  17462. ) {
  17463. this.$message.error("位置已满,无法加入");
  17464. return;
  17465. }
  17466. let params = [
  17467. {
  17468. cid: this.id,
  17469. stage: this.courseType,
  17470. task: this.taskCount,
  17471. tool: this.toolindex,
  17472. g: this.checkChair,
  17473. uid: this.updateGroupUser.userid,
  17474. },
  17475. ];
  17476. this.ajax
  17477. .post(this.$store.state.api + "joinGroup", params)
  17478. .then((res) => {
  17479. this.$message.success("修改成功");
  17480. this.updateGroupUser = {};
  17481. this.checkChair = "";
  17482. this.updateGroupArray = {};
  17483. this.dialogVisibleUpdateGroup = false;
  17484. this.getCourseDetail();
  17485. })
  17486. .catch((err) => {
  17487. this.$message.error("网络不佳");
  17488. console.error(err);
  17489. });
  17490. },
  17491. deleteGroupChair(gindex) {
  17492. this.checkDeleteGroup = [];
  17493. this.deleteGroupUser = JSON.parse(
  17494. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  17495. );
  17496. this.deleteGroupArray = this.groupJson.group[gindex];
  17497. this.groupIndex = gindex;
  17498. this.dialogVisibleDeleteGroup = true;
  17499. },
  17500. async deleteChair() {
  17501. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  17502. const gid =
  17503. this.groupStudent[this.toolindex][this.groupIndex][
  17504. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  17505. this.checkDeleteGroup[i]
  17506. )
  17507. ];
  17508. let params = [
  17509. {
  17510. gid: gid.id,
  17511. },
  17512. ];
  17513. var a = await this.deleteChairA(params);
  17514. if (i == this.checkDeleteGroup.length - 1) {
  17515. this.$message.success("退出成功");
  17516. this.dialogVisibleDeleteGroup = false;
  17517. this.deleteGroupUser = [];
  17518. this.deleteGroupArray = {};
  17519. this.groupIndex = "";
  17520. this.checkDeleteGroup = [];
  17521. this.getCourseDetail();
  17522. }
  17523. }
  17524. },
  17525. deleteChairA(params) {
  17526. return new Promise((resolve, reject) => {
  17527. this.ajax
  17528. .post(this.$store.state.api + "exitGroup", params)
  17529. .then((res) => {
  17530. resolve(1);
  17531. })
  17532. .catch((err) => {
  17533. this.$message.error("网络不佳");
  17534. console.error(err);
  17535. });
  17536. });
  17537. },
  17538. contract(i) {
  17539. if (this.isCloseList[i].isClose == 0) {
  17540. this.isCloseList[i].isClose = 1;
  17541. } else {
  17542. this.isCloseList[i].isClose = 0;
  17543. }
  17544. this.$forceUpdate();
  17545. },
  17546. openTools2(i) {
  17547. this.$message.error("暂未开放");
  17548. return;
  17549. },
  17550. addTools2(i) {
  17551. if (i == 4) {
  17552. // this.openTools2(4);
  17553. this.$message.error("暂未开放");
  17554. return;
  17555. }
  17556. if (i == 45) {
  17557. // this.openTools2(45);
  17558. this.$message.error("暂未开放");
  17559. return;
  17560. }
  17561. if (i == 47) {
  17562. // this.openTools2(47);
  17563. this.$message.error("暂未开放");
  17564. return;
  17565. }
  17566. if (i == 49) {
  17567. // this.openTools2(49);
  17568. this.$message.error("暂未开放");
  17569. return;
  17570. }
  17571. if (i == 62) {
  17572. // this.openTools(itemTaskIndex, 62, toolIndex);
  17573. this.$message.error("暂未开放");
  17574. return;
  17575. }
  17576. if (i == 15) {
  17577. // this.openTools(itemTaskIndex, 15, toolIndex);
  17578. this.$message.error("暂未开放");
  17579. return;
  17580. }
  17581. if (i == 40) {
  17582. // this.openTools(itemTaskIndex, 40, toolIndex);
  17583. this.$message.error("暂未开放");
  17584. return;
  17585. }
  17586. if (i == 41) {
  17587. // this.openTools(itemTaskIndex, 41, toolIndex);
  17588. this.$message.error("暂未开放");
  17589. return;
  17590. }
  17591. if (i == 42) {
  17592. // this.openTools(itemTaskIndex, 42, toolIndex);
  17593. this.$message.error("暂未开放");
  17594. return;
  17595. }
  17596. if (this.checktoolArray.length > 0) {
  17597. if (this.checktoolArray.indexOf(i) != -1) {
  17598. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17599. } else {
  17600. this.checktoolArray = [];
  17601. this.checktoolArray.push(i);
  17602. }
  17603. } else {
  17604. this.checktoolArray.push(i);
  17605. }
  17606. this.$forceUpdate();
  17607. },
  17608. addToolChoose() {
  17609. if (!this.checktoolArray.length) {
  17610. this.$message.error("请选择要添加的任务");
  17611. return;
  17612. }
  17613. if (
  17614. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17615. this.taskCount
  17616. ].toolChoose[0].tool.length
  17617. ) {
  17618. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17619. this.taskCount
  17620. ].toolChoose[0].tool = this.checktoolArray;
  17621. } else {
  17622. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17623. this.taskCount
  17624. ].toolChoose.push({
  17625. tool: this.checktoolArray,
  17626. toolDetail: "",
  17627. toolType: 0,
  17628. askCount: 1,
  17629. askTitle: "",
  17630. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  17631. });
  17632. }
  17633. let params = [
  17634. {
  17635. cid: this.id,
  17636. chapters: JSON.stringify(this.chapInfoList),
  17637. uid: this.userid,
  17638. unitIndex: this.courseType,
  17639. },
  17640. ];
  17641. this.ajax
  17642. .post(this.$store.state.api + "updateWorkNew4", params)
  17643. .then((res) => {
  17644. this.$message({
  17645. message: "添加成功",
  17646. type: "success",
  17647. });
  17648. this.checktoolArray = [];
  17649. this.getCourseDetail(3);
  17650. this.checkBz(
  17651. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17652. this.taskCount
  17653. ].toolChoose.length - 1
  17654. );
  17655. this.$forceUpdate();
  17656. })
  17657. .catch((err) => {
  17658. console.error(err);
  17659. });
  17660. },
  17661. updateToolDetail() {
  17662. if (!this.isUpdateToolDetail) {
  17663. this.isUpdateToolDetail = true;
  17664. this.updateToolDetailInner = JSON.parse(
  17665. JSON.stringify(this.tool.toolDetail)
  17666. );
  17667. } else {
  17668. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17669. this.taskCount
  17670. ].toolChoose[this.toolIndex].toolDetail = JSON.parse(
  17671. JSON.stringify(this.updateToolDetailInner)
  17672. );
  17673. let params = [
  17674. {
  17675. cid: this.id,
  17676. chapters: JSON.stringify(this.chapInfoList),
  17677. uid: this.userid,
  17678. unitIndex: this.courseType,
  17679. },
  17680. ];
  17681. this.ajax
  17682. .post(this.$store.state.api + "updateWorkNew4", params)
  17683. .then((res) => {
  17684. this.isUpdateToolDetail = false;
  17685. this.$message({
  17686. message: "修改成功",
  17687. type: "success",
  17688. });
  17689. this.updateToolDetailInner = "";
  17690. this.getCourseDetail(3);
  17691. this.$forceUpdate();
  17692. })
  17693. .catch((err) => {
  17694. console.error(err);
  17695. });
  17696. }
  17697. },
  17698. openWordCloud(toolindex) {
  17699. let array = [];
  17700. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  17701. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  17702. array.push({ name: works });
  17703. }
  17704. if (this.isGroup) {
  17705. for (var i = 0; i < this.courseGroup.group.length; i++) {
  17706. let works = this.courseGroup.group[i].works[toolindex];
  17707. for (var j = 0; j < works.length; j++) {
  17708. let answer = JSON.parse(works[j].works)[0].answer;
  17709. array.push({ name: answer });
  17710. }
  17711. }
  17712. }
  17713. this.wordCloudData = array;
  17714. this.dialogVisibleWordCloud = true;
  17715. },
  17716. },
  17717. directives: {
  17718. // 使用局部注册指令的方式
  17719. resize: {
  17720. // 指令的名称
  17721. bind(el, binding) {
  17722. // el为绑定的元素,binding为绑定给指令的对象
  17723. let width = "",
  17724. height = "";
  17725. function isReize() {
  17726. const style = document.defaultView.getComputedStyle(el);
  17727. if (width !== style.width || height !== style.height) {
  17728. binding.value(); // 关键
  17729. }
  17730. width = style.width;
  17731. height = style.height;
  17732. }
  17733. el.__vueSetInterval__ = setInterval(isReize, 300);
  17734. },
  17735. unbind(el) {
  17736. clearInterval(el.__vueSetInterval__);
  17737. },
  17738. },
  17739. },
  17740. beforeDestroy() {
  17741. window.onresize = null;
  17742. clearInterval(this.timer);
  17743. this.timer = null;
  17744. clearInterval(this.opertimer);
  17745. this.opertimer = null;
  17746. },
  17747. computed: {
  17748. contentConvent() {
  17749. return function (c) {
  17750. return c
  17751. ? c
  17752. .replaceAll(/\r\n/g, "<br/>")
  17753. .replaceAll(/\n/g, "<br/>")
  17754. .replaceAll(/\s/g, " &nbsp")
  17755. : "";
  17756. };
  17757. },
  17758. checkUpload() {
  17759. return function () {
  17760. var studentK = [];
  17761. if (this.plworkFile.length > 0) {
  17762. for (var z = 0; z < this.plworkFile.length; z++) {
  17763. studentK.push(this.plworkFile[z].username);
  17764. }
  17765. studentK = studentK.join(",");
  17766. }
  17767. var a = this.uploadStudentJuri.filter((el) => {
  17768. return studentK.indexOf(el.userid) == -1;
  17769. });
  17770. return a;
  17771. };
  17772. },
  17773. getSName() {
  17774. return function (name) {
  17775. var check = name;
  17776. this.uploadStudentJuri.forEach((el) => {
  17777. if (el.userid == check) {
  17778. check = el.name ? el.name : el.username;
  17779. }
  17780. });
  17781. return check;
  17782. };
  17783. },
  17784. getImgList() {
  17785. return function (val) {
  17786. let srcList = []; // 定义一个数组用来接收后面的img地址
  17787. val.replace(
  17788. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  17789. function (match, capture) {
  17790. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  17791. srcList.push(capture);
  17792. }
  17793. );
  17794. return srcList;
  17795. };
  17796. },
  17797. },
  17798. mounted() {
  17799. if (this.screenType == 2) {
  17800. window.parent.postMessage({ allScreen: 4 }, "*");
  17801. } else if (this.screenType == 3) {
  17802. window.parent.postMessage({ allScreen: 5 }, "*");
  17803. } else if (this.screenType == 1) {
  17804. window.parent.postMessage({ allScreen: 6 }, "*");
  17805. }
  17806. this.setOperationTime();
  17807. this.selectEva();
  17808. this.getCourseDetail();
  17809. this.selectCount();
  17810. this.getHomeWork();
  17811. this.toolIndex = null;
  17812. this.contentDialog = true;
  17813. this.setContent2(true);
  17814. if (this.tType == 4) {
  17815. this.pzDialog = true;
  17816. this.selectPz();
  17817. }
  17818. document.scrollingElement.scrollTop = 0;
  17819. window.addEventListener("resize", () => {
  17820. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17821. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17822. if (this.showType == 2 || this.showType == 3) {
  17823. document.getElementsByClassName("navBox")[0].style.height =
  17824. a - 40 + 46 + "px";
  17825. } else {
  17826. document.getElementsByClassName("navBox")[0].style.height =
  17827. a - 40 + "px";
  17828. }
  17829. });
  17830. let _this = this;
  17831. setTimeout(() => {
  17832. // _this.vedioTime = [];
  17833. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17834. // _this.vedioTime[i] = document.getElementsByClassName(
  17835. // "vjs-duration-display"
  17836. // )[i].textContent;
  17837. // }
  17838. }, 1000);
  17839. },
  17840. };
  17841. </script>
  17842. <style scoped>
  17843. @media screen and (max-width: 1280px) {
  17844. /* .courseIndex > div:first-child(2) {
  17845. width: 15% !important;
  17846. } */
  17847. /* .navText {
  17848. width: 120px !important;
  17849. } */
  17850. .evaCss {
  17851. flex-direction: column !important;
  17852. align-items: center !important;
  17853. }
  17854. .dialog_diy1 >>> .el-dialog {
  17855. width: 100% !important;
  17856. }
  17857. .rightWidthCss {
  17858. width: 100% !important;
  17859. }
  17860. .dialog_diy3 >>> .el-dialog {
  17861. width: 100% !important;
  17862. }
  17863. /* .textTitle >>> .el-form-item__label {
  17864. width: 150px !important;
  17865. } */
  17866. }
  17867. .evaCssMax {
  17868. flex-direction: column !important;
  17869. align-items: center !important;
  17870. }
  17871. .dialog_diy >>> .el-dialog {
  17872. margin-top: 10vh !important;
  17873. }
  17874. .body_student {
  17875. width: 77%;
  17876. height: 100%;
  17877. position: absolute;
  17878. left: 22%;
  17879. top: 0;
  17880. }
  17881. .student_head {
  17882. width: 100%;
  17883. margin: 0 auto;
  17884. padding-bottom: 20px;
  17885. display: flex;
  17886. flex-direction: column;
  17887. flex-wrap: nowrap;
  17888. align-items: flex-start;
  17889. justify-content: flex-start;
  17890. }
  17891. .pb_left {
  17892. width: 20%;
  17893. margin-right: 10px;
  17894. background: rgb(255, 255, 255);
  17895. position: fixed;
  17896. height: calc(100% - 40px);
  17897. border-radius: 20px;
  17898. padding-bottom: 15px;
  17899. box-sizing: border-box;
  17900. }
  17901. .wheel > img,
  17902. .project > img,
  17903. .star > img,
  17904. .evaluate > img,
  17905. .up_photo > img,
  17906. .chapter_add > img,
  17907. .deleteWord > img,
  17908. .question > img,
  17909. .homework > img {
  17910. width: 100%;
  17911. height: 100%;
  17912. }
  17913. .upCover > img {
  17914. width: 131px;
  17915. height: 69px;
  17916. object-fit: cover;
  17917. }
  17918. .upCover {
  17919. width: calc(100% / 3.5);
  17920. position: relative;
  17921. margin: 0 15px 10px 0;
  17922. display: flex;
  17923. flex-direction: column;
  17924. flex-wrap: nowrap;
  17925. justify-content: center;
  17926. align-content: center;
  17927. align-items: center;
  17928. height: fit-content;
  17929. }
  17930. .upCover2 {
  17931. width: 100%;
  17932. position: relative;
  17933. margin: 0 15px 10px 0;
  17934. display: flex;
  17935. flex-direction: column;
  17936. flex-wrap: nowrap;
  17937. justify-content: center;
  17938. align-content: center;
  17939. align-items: center;
  17940. }
  17941. .upCover2 > img {
  17942. width: 100%;
  17943. height: 90px;
  17944. object-fit: contain;
  17945. }
  17946. .chapter_add {
  17947. width: 120px;
  17948. position: relative;
  17949. text-align: center;
  17950. }
  17951. .isAddThings {
  17952. margin-top: 20px;
  17953. position: relative;
  17954. text-align: center;
  17955. background: #f7f8fa;
  17956. height: 90px;
  17957. width: 90px;
  17958. display: flex;
  17959. flex-direction: column;
  17960. justify-content: center;
  17961. }
  17962. .deleteWord {
  17963. width: 22px;
  17964. height: 22px;
  17965. position: absolute;
  17966. right: -5px;
  17967. top: -5px;
  17968. cursor: pointer;
  17969. }
  17970. .box_course {
  17971. /* width: 60%; */
  17972. width: calc(100% - 300px);
  17973. }
  17974. .wheel {
  17975. width: 100%;
  17976. /* height: 100%; */
  17977. height: 650px;
  17978. }
  17979. .right_box {
  17980. display: flex;
  17981. flex-direction: column;
  17982. margin-left: 30px;
  17983. justify-content: space-around;
  17984. }
  17985. .right_box_title {
  17986. font-size: 23px;
  17987. }
  17988. .people {
  17989. display: flex;
  17990. }
  17991. .student_body {
  17992. width: 100%;
  17993. margin: 0 auto;
  17994. margin-top: 10px;
  17995. padding: 0 0 20px;
  17996. background: #fff;
  17997. border-radius: 20px;
  17998. }
  17999. .study_top {
  18000. margin-top: 100px;
  18001. width: 100%;
  18002. /* overflow: auto; */
  18003. height: auto;
  18004. padding-bottom: 20px;
  18005. }
  18006. .study_top .checkbox {
  18007. display: flex;
  18008. align-items: center;
  18009. padding: 15px 0 15px 30px;
  18010. flex: 0 0 auto;
  18011. font-weight: bold;
  18012. border-bottom: 1px solid #eee;
  18013. }
  18014. .study_top .check {
  18015. padding-bottom: 5px;
  18016. text-align: center;
  18017. cursor: pointer;
  18018. height: 30px;
  18019. box-sizing: border-box;
  18020. display: flex;
  18021. }
  18022. .study_top .checked {
  18023. border-bottom: 4px solid #3fc6a0;
  18024. padding-bottom: 5px;
  18025. color: #3fc6a0;
  18026. display: flex;
  18027. height: 35px;
  18028. }
  18029. .study_top .checked > div,
  18030. .study_top .check > div {
  18031. margin-right: 5px;
  18032. }
  18033. .videoTop {
  18034. display: flex;
  18035. flex-direction: row;
  18036. justify-content: space-between;
  18037. background: #fff;
  18038. align-items: center;
  18039. width: 95%;
  18040. padding: 20px;
  18041. }
  18042. .upbtn {
  18043. margin: 25px;
  18044. background: #70afdb;
  18045. color: #fff;
  18046. width: 120px;
  18047. text-align: center;
  18048. height: 30px;
  18049. line-height: 30px;
  18050. font-size: 13px;
  18051. border-radius: 5px;
  18052. cursor: pointer;
  18053. }
  18054. .filebox {
  18055. display: flex;
  18056. flex-wrap: wrap;
  18057. flex-direction: column;
  18058. padding: 0 0 5px;
  18059. }
  18060. .filebox .tooldetail {
  18061. width: 100%;
  18062. margin: 0px 12px;
  18063. background: rgb(247, 247, 247);
  18064. padding: 20px;
  18065. line-height: 30px;
  18066. word-break: break-word;
  18067. }
  18068. .file {
  18069. display: flex;
  18070. flex-direction: column;
  18071. align-items: center;
  18072. justify-content: center;
  18073. cursor: pointer;
  18074. width: 200px;
  18075. }
  18076. .file div {
  18077. margin-top: 10px;
  18078. width: 150px;
  18079. text-align: center;
  18080. overflow: hidden;
  18081. white-space: nowrap;
  18082. text-overflow: ellipsis;
  18083. }
  18084. .media {
  18085. display: flex;
  18086. flex-direction: column;
  18087. align-items: center;
  18088. justify-content: center;
  18089. margin: 0 20px 20px 0;
  18090. cursor: pointer;
  18091. margin: 12px 0 5px 15px;
  18092. overflow: hidden;
  18093. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  18094. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  18095. box-sizing: border-box;
  18096. }
  18097. .media img {
  18098. height: 90px;
  18099. width: 160px;
  18100. object-fit: cover;
  18101. }
  18102. .media .title {
  18103. padding: 5px;
  18104. text-align: left;
  18105. width: 100%;
  18106. box-sizing: border-box;
  18107. }
  18108. .media .btn {
  18109. width: 100%;
  18110. height: 35px;
  18111. line-height: 35px;
  18112. color: #fff;
  18113. background: #606060;
  18114. text-align: center;
  18115. overflow: hidden;
  18116. white-space: nowrap;
  18117. text-overflow: ellipsis;
  18118. }
  18119. .detail_content_top {
  18120. width: 100%;
  18121. padding: 25px 0 25px 0;
  18122. }
  18123. .detail_title {
  18124. text-align: center;
  18125. font-size: 24px;
  18126. }
  18127. .detail_time {
  18128. font-size: 13px;
  18129. padding: 15px 0 0 40px;
  18130. }
  18131. .detail_content {
  18132. line-height: 2pc;
  18133. width: 90%;
  18134. margin: 0 auto;
  18135. padding-top: 30px;
  18136. text-indent: 30px;
  18137. overflow: auto;
  18138. height: 200px;
  18139. }
  18140. .score_box >>> .el-rate {
  18141. margin-left: 10px;
  18142. }
  18143. .dialog_change >>> .el-dialog {
  18144. border-radius: 5px;
  18145. }
  18146. .dialog_change >>> .el-dialog__header {
  18147. background: #f2f2f2;
  18148. text-align: center;
  18149. }
  18150. .dialog_change >>> .el-dialog__title {
  18151. line-height: 5px;
  18152. }
  18153. .dialog_change >>> .el-dialog__body {
  18154. background: #fff;
  18155. padding: 10px 20px;
  18156. }
  18157. .score_box {
  18158. display: flex;
  18159. align-items: center;
  18160. margin-bottom: 18px;
  18161. margin-top: 20px;
  18162. }
  18163. .up_photo {
  18164. width: 120px;
  18165. cursor: pointer;
  18166. margin-top: 10px;
  18167. }
  18168. .up_photo2 {
  18169. width: 180px;
  18170. box-sizing: border-box;
  18171. min-width: 180px;
  18172. height: 180px;
  18173. max-height: 180px;
  18174. min-height: 180px;
  18175. cursor: pointer;
  18176. display: flex;
  18177. flex-direction: column;
  18178. align-items: center;
  18179. justify-content: center;
  18180. background: rgb(242, 246, 255);
  18181. /* padding: 25px; */
  18182. margin-bottom: 10px;
  18183. }
  18184. .up_photo2 img {
  18185. width: 50%;
  18186. height: auto;
  18187. }
  18188. .up_photo2 span {
  18189. color: #898989;
  18190. }
  18191. .plworkBox {
  18192. display: flex;
  18193. align-items: center;
  18194. margin-top: 10px;
  18195. flex-wrap: wrap;
  18196. }
  18197. .upload_send {
  18198. margin: 30px auto 30px;
  18199. width: 60%;
  18200. background: #169bd6;
  18201. text-align: center;
  18202. height: 35px;
  18203. line-height: 35px;
  18204. color: #fff;
  18205. border-radius: 5px;
  18206. cursor: pointer;
  18207. }
  18208. .marginT {
  18209. margin-top: 20px;
  18210. }
  18211. .cd_content_steps {
  18212. display: flex;
  18213. width: 90%;
  18214. justify-content: space-around;
  18215. border-top: 1px solid #eeeeee;
  18216. }
  18217. .cd_steps_box {
  18218. display: flex;
  18219. justify-content: center;
  18220. align-items: center;
  18221. flex-direction: column;
  18222. cursor: pointer;
  18223. }
  18224. .first {
  18225. display: flex;
  18226. align-items: center;
  18227. margin: 15px 0 20px 0;
  18228. font-size: 20px;
  18229. }
  18230. .first > div:nth-child(2) {
  18231. font-size: 16px !important;
  18232. padding-left: 10px;
  18233. line-height: 26px;
  18234. box-sizing: border-box;
  18235. }
  18236. .blue_box_one {
  18237. text-align: center;
  18238. color: #fff;
  18239. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  18240. border-radius: 7px;
  18241. margin: 10px;
  18242. cursor: pointer;
  18243. width: 95%;
  18244. height: 45px;
  18245. display: flex;
  18246. flex-direction: row;
  18247. justify-content: flex-start;
  18248. align-items: center;
  18249. }
  18250. .blue_box_one > div:nth-child(1) {
  18251. line-height: 30px;
  18252. margin: 0 5px 0 10px;
  18253. width: 30%;
  18254. min-width: 70px;
  18255. border-radius: 4px;
  18256. }
  18257. .blue_box_one > div:nth-child(2) {
  18258. white-space: nowrap;
  18259. text-overflow: ellipsis;
  18260. overflow: hidden;
  18261. word-break: break-all;
  18262. width: 70%;
  18263. text-align: left;
  18264. margin-right: 10px;
  18265. max-width: calc(100% - 85px);
  18266. }
  18267. .blue_box_one > div:nth-child(2):hover {
  18268. overflow: hidden;
  18269. text-overflow: ellipsis;
  18270. white-space: nowrap;
  18271. cursor: pointer;
  18272. }
  18273. .upFile {
  18274. margin: 0 auto;
  18275. width: 120px;
  18276. background: #70afdb;
  18277. color: #fff;
  18278. height: 30px;
  18279. text-align: center;
  18280. line-height: 30px;
  18281. border-radius: 5px;
  18282. font-size: 14px;
  18283. cursor: pointer;
  18284. }
  18285. .courseTitle {
  18286. width: 85%;
  18287. margin: 10px auto;
  18288. display: flex;
  18289. flex-direction: row;
  18290. align-items: center;
  18291. justify-content: space-between;
  18292. text-align: center;
  18293. }
  18294. .courseTitle .ctitle {
  18295. font-size: 24px;
  18296. font-weight: bold;
  18297. color: #0e1e33;
  18298. white-space: nowrap;
  18299. overflow: hidden;
  18300. text-overflow: ellipsis;
  18301. }
  18302. .courseTitle .inviteBox {
  18303. font-size: 14px;
  18304. margin-top: 5px;
  18305. color: #a6cbff;
  18306. }
  18307. .courseTitle >>> .el-tooltip {
  18308. width: 100%;
  18309. white-space: nowrap;
  18310. overflow: hidden;
  18311. text-overflow: ellipsis;
  18312. word-break: break-word;
  18313. }
  18314. .ml {
  18315. margin-left: 20px;
  18316. color: #5b7dba;
  18317. border-left: 3px solid #5b7dba;
  18318. padding-left: 5px;
  18319. font-weight: bold;
  18320. }
  18321. .return {
  18322. width: 2rem;
  18323. height: 2rem;
  18324. cursor: pointer;
  18325. }
  18326. .return > img {
  18327. width: 100%;
  18328. height: 100%;
  18329. }
  18330. .returnBtn {
  18331. width: 86px;
  18332. height: 36px;
  18333. background: #409eff;
  18334. border-radius: 4px;
  18335. color: #fff;
  18336. text-align: center;
  18337. line-height: 36px;
  18338. margin-right: 20px;
  18339. cursor: pointer;
  18340. font-size: 14px;
  18341. font-weight: 400;
  18342. display: flex;
  18343. flex-direction: row;
  18344. flex-wrap: nowrap;
  18345. align-items: center;
  18346. justify-content: center;
  18347. }
  18348. .commentIcon::before,
  18349. .vedioIcon::before,
  18350. .lockIcon::before,
  18351. .returnIcon::before {
  18352. content: "";
  18353. display: block;
  18354. background-size: 100% 100%;
  18355. background-repeat: no-repeat;
  18356. width: 20px;
  18357. height: 20px;
  18358. margin-right: 5px;
  18359. }
  18360. .commentIcon::before {
  18361. background-image: url("../../assets/icon/newIcon/comment.png");
  18362. }
  18363. .vedioIcon::before {
  18364. background-image: url("../../assets/icon/newIcon/vedio.png");
  18365. }
  18366. .lockIcon::before {
  18367. background-image: url("../../assets/icon/newIcon/lock.png");
  18368. }
  18369. .returnIcon::before {
  18370. background-image: url("../../assets/icon/newIcon/return.png");
  18371. }
  18372. .tool {
  18373. display: flex;
  18374. flex-direction: column;
  18375. flex-wrap: nowrap;
  18376. width: 13%;
  18377. margin: 0 30px;
  18378. align-items: center;
  18379. }
  18380. .whiteBIcon {
  18381. width: 150px;
  18382. cursor: pointer;
  18383. }
  18384. .whiteBIcon > img {
  18385. width: 100%;
  18386. height: 100%;
  18387. }
  18388. .mask {
  18389. background-color: rgba(0, 0, 0, 0);
  18390. position: fixed;
  18391. top: 0;
  18392. left: 0;
  18393. width: 100%;
  18394. height: 100%;
  18395. z-index: 20000;
  18396. display: flex;
  18397. align-items: center;
  18398. justify-content: center;
  18399. }
  18400. .progressBox {
  18401. width: 500px;
  18402. height: 180px;
  18403. background: #fff;
  18404. border-radius: 10px;
  18405. box-shadow: 0 0 6px 1px #bfbfbf;
  18406. display: flex;
  18407. align-items: center;
  18408. justify-content: center;
  18409. flex-direction: column;
  18410. position: relative;
  18411. color: #6c6c6c;
  18412. }
  18413. .progressBox >>> .el-progress-bar__outer {
  18414. background-color: #d1dfff !important;
  18415. }
  18416. .progressBox .lbox {
  18417. height: 50px;
  18418. font-size: 19px;
  18419. display: flex;
  18420. align-items: center;
  18421. color: #747474;
  18422. }
  18423. .progressBox .lbox img {
  18424. width: 40px;
  18425. margin-right: 20px;
  18426. }
  18427. .closeCss {
  18428. position: absolute;
  18429. top: 8px;
  18430. right: 8px;
  18431. cursor: pointer;
  18432. width: 20px;
  18433. height: 20px;
  18434. }
  18435. .closeCss > img {
  18436. width: 100%;
  18437. height: 100%;
  18438. }
  18439. .uploadVedio {
  18440. display: flex;
  18441. flex-direction: column;
  18442. flex-wrap: nowrap;
  18443. justify-content: center;
  18444. align-items: center;
  18445. margin: 0 15px 10px 0;
  18446. }
  18447. .uploadVedio > img {
  18448. width: 30px;
  18449. height: 30px;
  18450. }
  18451. .uploadVedio > span {
  18452. white-space: nowrap;
  18453. overflow: hidden;
  18454. text-overflow: ellipsis;
  18455. width: 75px;
  18456. margin-top: 7px;
  18457. }
  18458. .picName {
  18459. white-space: nowrap;
  18460. overflow: hidden;
  18461. text-overflow: ellipsis;
  18462. width: 75px;
  18463. margin-top: 7px;
  18464. }
  18465. .new_top {
  18466. display: flex;
  18467. background: #fff;
  18468. flex-direction: row;
  18469. justify-content: flex-start;
  18470. align-items: center;
  18471. height: 60px;
  18472. position: relative;
  18473. }
  18474. .new_top::before {
  18475. content: "";
  18476. width: 100%;
  18477. height: 20px;
  18478. position: absolute;
  18479. top: -20px;
  18480. display: block;
  18481. background: #f2f2f2;
  18482. }
  18483. .before {
  18484. position: absolute;
  18485. background: #c3dad4;
  18486. width: 6px;
  18487. height: 100%;
  18488. }
  18489. .courseIndex {
  18490. display: flex;
  18491. flex-direction: row;
  18492. align-items: center;
  18493. width: calc(100% - 600px);
  18494. }
  18495. .courseIndex > div:nth-child(1) {
  18496. margin: 0 0 0 10px;
  18497. font-size: 24px;
  18498. min-width: 100px;
  18499. font-weight: bold;
  18500. border-left: 4px solid #3363b9;
  18501. height: 35px;
  18502. text-align: center;
  18503. line-height: 35px;
  18504. }
  18505. .courseIndex > div:nth-child(2) {
  18506. font-size: 23px;
  18507. /* width: 300px; */
  18508. max-width: calc(100% - 180px);
  18509. white-space: nowrap;
  18510. overflow: hidden;
  18511. text-overflow: ellipsis;
  18512. }
  18513. .courseIndex > div:nth-child(3) {
  18514. border-bottom: 1px solid #d7d7d7;
  18515. padding-bottom: 5px;
  18516. background: #49a0f0;
  18517. width: 55px;
  18518. min-width: 55px;
  18519. border-radius: 5px;
  18520. color: #fff;
  18521. text-align: center;
  18522. height: 20px;
  18523. line-height: 26px;
  18524. font-size: 14px;
  18525. margin: 0 0 0 10px;
  18526. }
  18527. .course_text {
  18528. padding: 20px 0 0 15px;
  18529. text-indent: 30px;
  18530. width: 80%;
  18531. min-height: 20px;
  18532. }
  18533. .vedioList {
  18534. background: #f2f2f2;
  18535. border: 1px solid #ececec;
  18536. /* width: 38.8%; */
  18537. width: 300px;
  18538. height: 445px;
  18539. border-radius: 10px;
  18540. overflow: hidden;
  18541. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  18542. }
  18543. .vedioNav {
  18544. margin: 10px 0 0 15px;
  18545. border-bottom: 1px solid #d7d7d7;
  18546. padding-bottom: 5px;
  18547. background: #96d1ff;
  18548. width: 55px;
  18549. min-width: 55px;
  18550. border-radius: 5px;
  18551. color: #fff;
  18552. text-align: center;
  18553. height: 20px;
  18554. line-height: 26px;
  18555. font-size: 14px;
  18556. }
  18557. .queTop {
  18558. display: flex;
  18559. padding: 20px 0 20px 30px;
  18560. width: 100%;
  18561. flex-direction: row;
  18562. justify-content: flex-start;
  18563. align-items: center;
  18564. box-sizing: border-box;
  18565. }
  18566. .queTopTitle {
  18567. display: flex;
  18568. flex-direction: row;
  18569. flex-wrap: nowrap;
  18570. align-items: center;
  18571. font-weight: bold;
  18572. font-size: 20px;
  18573. color: rgb(14, 30, 51);
  18574. }
  18575. .queTopTitle::before {
  18576. content: "";
  18577. width: 2px;
  18578. height: 22px;
  18579. background: #3681fc;
  18580. border-radius: 3px;
  18581. display: block;
  18582. margin: 2px 6px 0 0;
  18583. }
  18584. .queTopRight {
  18585. display: flex;
  18586. flex-direction: row;
  18587. flex-wrap: nowrap;
  18588. align-items: center;
  18589. }
  18590. .queTopClose {
  18591. margin-right: 20px;
  18592. cursor: pointer;
  18593. }
  18594. .question {
  18595. width: 40px;
  18596. margin-right: 10px;
  18597. margin-top: 7px;
  18598. }
  18599. .queTitle {
  18600. margin-left: 5px;
  18601. font-size: 25px;
  18602. display: flex;
  18603. align-items: center;
  18604. }
  18605. .addEditor {
  18606. width: 100px;
  18607. height: 30px;
  18608. background: #42cda6;
  18609. color: #fff;
  18610. border-radius: 5px;
  18611. text-align: center;
  18612. line-height: 30px;
  18613. box-shadow: 1px 3px 6px 1px #bfbfbf;
  18614. cursor: pointer;
  18615. }
  18616. .vedioName {
  18617. /* text-overflow: ellipsis;
  18618. top: 8px;
  18619. font-size: 14px;
  18620. overflow: hidden;
  18621. width: 100%;
  18622. word-break: break-all;
  18623. white-space: nowrap; */
  18624. cursor: pointer;
  18625. margin: 0px 0px 10px 5px;
  18626. white-space: nowrap;
  18627. overflow: hidden;
  18628. text-overflow: ellipsis;
  18629. width: 100%;
  18630. }
  18631. .vedioTime {
  18632. width: 35px;
  18633. position: absolute;
  18634. color: #fff;
  18635. bottom: 0px;
  18636. right: 0px;
  18637. text-align: center;
  18638. background: #46411f;
  18639. height: 20px;
  18640. font-size: 14px;
  18641. line-height: 20px;
  18642. }
  18643. .homework {
  18644. width: 200px;
  18645. display: flex;
  18646. flex-direction: column;
  18647. flex-wrap: nowrap;
  18648. align-items: center;
  18649. cursor: pointer;
  18650. }
  18651. .homebox {
  18652. display: flex;
  18653. flex-wrap: wrap;
  18654. flex-direction: row;
  18655. justify-content: flex-start;
  18656. align-items: center;
  18657. padding: 15px 0;
  18658. }
  18659. .isChooseActive {
  18660. color: #3e88f4;
  18661. border-bottom: 2px solid #2f80f3;
  18662. }
  18663. .chooseWho {
  18664. display: flex;
  18665. width: 100%;
  18666. flex-direction: row;
  18667. flex-wrap: nowrap;
  18668. justify-content: flex-start;
  18669. padding-bottom: 10px;
  18670. }
  18671. .chooseWho > div {
  18672. cursor: pointer;
  18673. padding-bottom: 10px;
  18674. margin: 0 30px 0 0;
  18675. font-weight: 400;
  18676. color: #0e1e33;
  18677. }
  18678. .addPoint > div > img {
  18679. cursor: pointer;
  18680. margin: 0 10px;
  18681. width: 85px;
  18682. border-radius: 15px;
  18683. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  18684. }
  18685. .addPoint > div {
  18686. display: flex;
  18687. flex-direction: column;
  18688. flex-wrap: nowrap;
  18689. align-items: center;
  18690. }
  18691. .isBorder > div {
  18692. margin: 0 0 10px 0;
  18693. align-items: flex-start !important;
  18694. }
  18695. .noiframeBox {
  18696. display: flex;
  18697. flex-wrap: wrap;
  18698. }
  18699. .iframeBox iframe {
  18700. width: 100%;
  18701. height: 800px;
  18702. border: none;
  18703. margin-bottom: 20px;
  18704. border: 1px solid #ccc;
  18705. }
  18706. .upload_toolBtn {
  18707. background: #6b92c9;
  18708. color: #fff;
  18709. width: 110px;
  18710. text-align: center;
  18711. height: 35px;
  18712. line-height: 35px;
  18713. font-size: 14px;
  18714. border-radius: 5px;
  18715. cursor: pointer;
  18716. position: absolute;
  18717. right: 10px;
  18718. bottom: 0;
  18719. }
  18720. .binfo_input,
  18721. .pj {
  18722. font: inherit;
  18723. color: currentColor;
  18724. width: 100%;
  18725. margin: 0;
  18726. padding: 15px 14px;
  18727. display: block;
  18728. min-width: 0;
  18729. outline: none;
  18730. box-sizing: content-box;
  18731. background: none;
  18732. -webkit-tap-highlight-color: transparent;
  18733. border: 1px solid rgba(0, 0, 0, 0.23);
  18734. border-radius: 4px;
  18735. box-sizing: border-box;
  18736. resize: none;
  18737. }
  18738. .binfo_input:focus-visible {
  18739. border: 1px solid rgba(61, 103, 188);
  18740. }
  18741. .dialog_diy >>> .el-dialog__header,
  18742. .dialog_diy1 >>> .el-dialog__header {
  18743. background: #454545 !important;
  18744. padding: 15px 20px;
  18745. }
  18746. .dialog_diy >>> .el-dialog__title,
  18747. .dialog_diy1 >>> .el-dialog__title {
  18748. color: #fff;
  18749. }
  18750. .dialog_diy >>> .el-dialog__headerbtn,
  18751. .dialog_diy1 >>> .el-dialog__headerbtn {
  18752. top: 19px;
  18753. }
  18754. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  18755. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  18756. color: #fff;
  18757. }
  18758. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  18759. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  18760. color: #fff;
  18761. }
  18762. .dialog_diy1 >>> .el-dialog__body {
  18763. padding: 0;
  18764. }
  18765. .dialog_diy >>> .el-dialog__body,
  18766. .dialog_diy >>> .el-dialog__footer,
  18767. .dialog_diy1 >>> .el-dialog__footer {
  18768. background: #fafafa;
  18769. }
  18770. .a_addBox {
  18771. margin: 10px 0;
  18772. background: #fff;
  18773. padding: 15px;
  18774. }
  18775. .a_add_box {
  18776. border-bottom: 2px solid #eee;
  18777. padding-bottom: 10px;
  18778. }
  18779. .a_add_head {
  18780. display: flex;
  18781. align-items: flex-start;
  18782. /* justify-content: space-between; */
  18783. flex-direction: column;
  18784. /* flex-direction: row; */
  18785. margin: 10px 0 20px 0;
  18786. font-size: 18px;
  18787. width: 100%;
  18788. }
  18789. .a_add_head .a_add_head_input {
  18790. width: 300px;
  18791. }
  18792. .a_add_head .a_add_head_div {
  18793. display: flex;
  18794. align-items: center;
  18795. justify-content: space-between;
  18796. }
  18797. .a_add_body {
  18798. display: flex;
  18799. align-items: center;
  18800. }
  18801. .a_add_input {
  18802. display: flex;
  18803. align-items: center;
  18804. flex-wrap: wrap;
  18805. }
  18806. .a_add_input >>> el-radio-group {
  18807. margin: 10px 0;
  18808. }
  18809. .a_add_input >>> .el-radio,
  18810. .a_add_input >>> .el-checkbox {
  18811. margin-bottom: 10px;
  18812. display: flex;
  18813. flex-direction: row;
  18814. flex-wrap: nowrap;
  18815. align-items: center;
  18816. }
  18817. .redioStyle >>> .el-radio__label {
  18818. font-size: 18px;
  18819. }
  18820. .redioStyle >>> .el-checkbox__label {
  18821. font-size: 18px;
  18822. }
  18823. .toolHeng2 {
  18824. width: 100%;
  18825. box-sizing: border-box;
  18826. }
  18827. .toolHeng {
  18828. display: flex;
  18829. flex-direction: row;
  18830. flex-wrap: wrap;
  18831. justify-content: flex-start;
  18832. align-items: center;
  18833. width: 100%;
  18834. }
  18835. .toolHeng > div {
  18836. padding-left: 20px;
  18837. }
  18838. .isWidth {
  18839. width: 20%;
  18840. }
  18841. .textTitle {
  18842. display: flex;
  18843. flex-direction: row;
  18844. flex-wrap: nowrap;
  18845. align-items: center;
  18846. width: 95%;
  18847. }
  18848. .textTitle >>> .el-form-item__label {
  18849. font-size: 22px;
  18850. color: #918f8f;
  18851. width: 100px;
  18852. }
  18853. .textTitle >>> .el-form-item__content {
  18854. width: calc(100% - 100px);
  18855. }
  18856. .textCss >>> .el-dialog {
  18857. width: 800px !important;
  18858. height: 400px;
  18859. background: #fafafa;
  18860. }
  18861. .textCss >>> .el-dialog__body {
  18862. margin: 55px 8% 0 8%;
  18863. padding: 0 !important;
  18864. }
  18865. .textCss >>> .el-dialog__footer {
  18866. padding-top: 38px;
  18867. }
  18868. .toolsCss >>> .el-dialog__body {
  18869. padding: 20px;
  18870. }
  18871. .lineCss >>> .el-dialog__body {
  18872. display: flex;
  18873. flex-direction: row;
  18874. align-items: center;
  18875. justify-content: center;
  18876. }
  18877. .newNav {
  18878. display: flex;
  18879. flex-direction: row;
  18880. align-items: baseline;
  18881. justify-content: flex-start;
  18882. }
  18883. .navText {
  18884. cursor: pointer;
  18885. white-space: nowrap;
  18886. overflow: hidden;
  18887. text-overflow: ellipsis;
  18888. width: 220px;
  18889. padding: 0 10px;
  18890. font-weight: 400;
  18891. color: #0e1e33;
  18892. }
  18893. .noVedio {
  18894. display: flex;
  18895. flex-direction: row;
  18896. justify-content: center;
  18897. align-content: center;
  18898. }
  18899. .noNavText {
  18900. cursor: pointer;
  18901. margin: 0px 0px 10px 5px;
  18902. width: 112px;
  18903. }
  18904. .listNoVedio {
  18905. margin: 0 0 0 30px;
  18906. width: 97%;
  18907. }
  18908. .video-player >>> .video-js {
  18909. height: 100%;
  18910. }
  18911. .hangVedioList {
  18912. width: 90% !important;
  18913. height: 150px !important;
  18914. margin: 20px 0 0 30px;
  18915. }
  18916. .hangVedio {
  18917. width: 100%;
  18918. height: 170px !important;
  18919. align-items: flex-start !important;
  18920. }
  18921. .hangHand {
  18922. height: 150px !important;
  18923. }
  18924. .twoChild {
  18925. width: 95%;
  18926. margin: 10px;
  18927. border-radius: 5px;
  18928. background: #f2f2f2;
  18929. display: flex;
  18930. flex-direction: column;
  18931. flex-wrap: nowrap;
  18932. justify-content: flex-start;
  18933. align-items: flex-start;
  18934. transition: all 0.5s;
  18935. overflow: hidden;
  18936. height: 0;
  18937. background: #e7f3ff;
  18938. }
  18939. .twoChild > div:nth-child(1) {
  18940. margin-top: 5px;
  18941. }
  18942. .navChild {
  18943. width: 100%;
  18944. cursor: pointer;
  18945. margin-bottom: 10px;
  18946. position: relative;
  18947. }
  18948. .navChild img {
  18949. position: absolute;
  18950. right: 11px;
  18951. width: 15px;
  18952. top: 50%;
  18953. transform: translateY(-50%);
  18954. }
  18955. .navActive {
  18956. height: auto !important;
  18957. overflow: auto !important;
  18958. padding-bottom: 10px;
  18959. }
  18960. .navTask {
  18961. display: flex;
  18962. flex-direction: row;
  18963. flex-wrap: nowrap;
  18964. align-items: center;
  18965. align-content: flex-start;
  18966. height: 40px;
  18967. justify-content: flex-start;
  18968. padding: 0 10px;
  18969. width: 100%;
  18970. box-sizing: border-box;
  18971. }
  18972. .navTaskname {
  18973. white-space: nowrap;
  18974. text-overflow: ellipsis;
  18975. overflow: hidden;
  18976. word-break: break-all;
  18977. padding-left: 5px;
  18978. }
  18979. .openTaskActive {
  18980. color: #4386e6;
  18981. }
  18982. .iframeName {
  18983. margin: 5px 0;
  18984. border-left: 4px solid #41c4a4;
  18985. padding-left: 4px;
  18986. }
  18987. .toolTitle {
  18988. margin: 0px 0px 20px;
  18989. font-size: 20px;
  18990. font-weight: 500;
  18991. border-left: 4px solid #41c4a4;
  18992. padding-left: 4px;
  18993. }
  18994. .cru_selectBox {
  18995. overflow: auto;
  18996. width: 90%;
  18997. margin: 17px auto 0;
  18998. height: calc(100% - 40px - 21px - 20px - 17px);
  18999. }
  19000. .cru_selectBox::-webkit-scrollbar,
  19001. .study_top::-webkit-scrollbar,
  19002. .textContent::-webkit-scrollbar {
  19003. /*滚动条整体样式*/
  19004. width: 6px;
  19005. /*高宽分别对应横竖滚动条的尺寸*/
  19006. height: 6px;
  19007. }
  19008. /*定义滚动条轨道 内阴影+圆角*/
  19009. .cru_selectBox::-webkit-scrollbar-track,
  19010. .study_top::-webkit-scrollbar-track,
  19011. .textContent::-webkit-scrollbar {
  19012. border-radius: 10px;
  19013. background-color: #b8bdc9;
  19014. }
  19015. /*定义滑块 内阴影+圆角*/
  19016. .cru_selectBox::-webkit-scrollbar-thumb,
  19017. .study_top::-webkit-scrollbar-thumb,
  19018. .textContent::-webkit-scrollbar-thumb {
  19019. border-radius: 10px;
  19020. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  19021. background-color: #2c5ab3;
  19022. }
  19023. .vedioBox {
  19024. border-radius: 0 0 20px 20px;
  19025. background: #fff;
  19026. margin-bottom: 10px;
  19027. overflow: auto;
  19028. }
  19029. .taskBox {
  19030. width: 95%;
  19031. margin: 0 auto;
  19032. }
  19033. .vedioTaskBox {
  19034. width: 100%;
  19035. display: flex;
  19036. flex-direction: row;
  19037. flex-wrap: nowrap;
  19038. align-items: flex-start;
  19039. position: relative;
  19040. }
  19041. .toolBox {
  19042. padding: 30px 60px 15px;
  19043. display: flex;
  19044. position: relative;
  19045. }
  19046. .btnAll {
  19047. position: absolute;
  19048. right: 0;
  19049. display: flex;
  19050. flex-direction: row;
  19051. flex-wrap: nowrap;
  19052. align-items: center;
  19053. }
  19054. .btnAllNT {
  19055. position: fixed;
  19056. bottom: 50px;
  19057. right: 40px;
  19058. z-index: 999;
  19059. display: flex;
  19060. flex-direction: row;
  19061. }
  19062. .btnAllNT > img {
  19063. cursor: pointer;
  19064. width: 80px;
  19065. }
  19066. /* .vedioTimeBox {
  19067. display: flex;
  19068. flex-direction: row;
  19069. align-items: center;
  19070. flex-wrap: nowrap;
  19071. position: relative;
  19072. } */
  19073. .navBox {
  19074. background: #fff;
  19075. height: calc(100% - 40px);
  19076. overflow-y: auto;
  19077. overflow-x: hidden;
  19078. }
  19079. .tool_work_box {
  19080. width: 100%;
  19081. padding: 0 37px 10px;
  19082. box-sizing: border-box;
  19083. }
  19084. .worksBox {
  19085. padding: 5px 0;
  19086. border-bottom: 1px solid #eeeeee;
  19087. }
  19088. .worksBTitle {
  19089. font-size: 20px;
  19090. padding-bottom: 15px;
  19091. border-bottom: 1px solid #eeeeee;
  19092. display: flex;
  19093. align-items: center;
  19094. }
  19095. .greenBox {
  19096. width: 5px;
  19097. height: 30px;
  19098. background: #63b6fa;
  19099. margin-right: 5px;
  19100. }
  19101. .worksDetailBox {
  19102. display: flex;
  19103. width: 100%;
  19104. flex-direction: row;
  19105. flex-wrap: wrap;
  19106. align-items: flex-end;
  19107. justify-content: flex-start;
  19108. padding: 15px 0;
  19109. }
  19110. .works {
  19111. display: flex;
  19112. flex-direction: column;
  19113. flex-wrap: nowrap;
  19114. align-items: flex-start;
  19115. justify-content: flex-start;
  19116. align-content: center;
  19117. max-width: 240px;
  19118. width: calc(100% / 3 - 10px);
  19119. height: auto;
  19120. margin-right: 10px;
  19121. margin-bottom: 10px;
  19122. overflow: hidden;
  19123. height: 140px;
  19124. box-shadow: 0 0 6px 1px #dfdada;
  19125. border-radius: 15px;
  19126. }
  19127. .workImg {
  19128. width: 100%;
  19129. /* height: calc(100% - 40px); */
  19130. height: 105px;
  19131. position: relative;
  19132. }
  19133. .workImg > img {
  19134. width: 100%;
  19135. height: 100%;
  19136. object-fit: contain;
  19137. cursor: pointer;
  19138. }
  19139. .worksName {
  19140. height: 40px;
  19141. line-height: 40px;
  19142. display: flex;
  19143. width: 100%;
  19144. flex-direction: row;
  19145. flex-wrap: nowrap;
  19146. justify-content: space-between;
  19147. align-items: center;
  19148. margin: 0 0 0 10px;
  19149. }
  19150. .worksName > div:nth-child(1) {
  19151. width: 110px;
  19152. white-space: nowrap;
  19153. overflow: hidden;
  19154. text-overflow: ellipsis;
  19155. }
  19156. .worksName > div:nth-child(2) {
  19157. color: #b7b4b5;
  19158. }
  19159. .noWorksS {
  19160. padding: 15px 0 0;
  19161. display: flex;
  19162. flex-direction: row;
  19163. flex-wrap: wrap;
  19164. align-items: center;
  19165. justify-content: flex-start;
  19166. }
  19167. .noWorksS > div {
  19168. cursor: pointer;
  19169. }
  19170. .noWorksName,
  19171. .isWorksName {
  19172. background: #e1e9fb;
  19173. color: #3383fa;
  19174. width: 90px;
  19175. height: 25px;
  19176. text-align: center;
  19177. line-height: 25px;
  19178. border-radius: 4px;
  19179. margin: 10px 15px 10px 0;
  19180. white-space: nowrap;
  19181. overflow: hidden;
  19182. padding: 5px;
  19183. text-overflow: ellipsis;
  19184. cursor: pointer;
  19185. border: 1px solid #3681FC;
  19186. }
  19187. .noWorksName.isWork {
  19188. background: #E7EBF1 !important;
  19189. border: 1px solid #CAD1DC !important;
  19190. color: #ACB4BF !important;
  19191. }
  19192. .isWorksName {
  19193. cursor: pointer;
  19194. background: #46a1eb !important;
  19195. width: 100px;
  19196. height: 40px;
  19197. line-height: 40px;
  19198. position: relative;
  19199. }
  19200. .noWorksName:hover {
  19201. background: #3383fa;
  19202. color: #fff;
  19203. border: 1px solid #3383fa;
  19204. }
  19205. .title {
  19206. background: #1e5cc9;
  19207. /* width: 98%; */
  19208. height: 45px;
  19209. color: #fff;
  19210. line-height: 45px;
  19211. padding-left: 20px;
  19212. box-sizing: border-box;
  19213. }
  19214. .textBox {
  19215. font-size: 20px;
  19216. width: 90%;
  19217. display: flex;
  19218. flex-direction: column;
  19219. align-items: center;
  19220. margin: 20px auto 0;
  19221. max-height: 500px;
  19222. overflow: auto;
  19223. }
  19224. .textContent {
  19225. font-size: 18px;
  19226. width: 95%;
  19227. max-width: 95%;
  19228. }
  19229. .answerBg {
  19230. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  19231. background-size: 100% 100%;
  19232. width: 100%;
  19233. height: 100%;
  19234. color: #fff;
  19235. text-align: center;
  19236. display: flex;
  19237. flex-direction: column;
  19238. flex-wrap: nowrap;
  19239. align-items: center;
  19240. position: relative;
  19241. justify-content: center;
  19242. }
  19243. .answerBg > div:nth-child(1) {
  19244. /* font-size: 22px;
  19245. padding: 25px 0 10px; */
  19246. }
  19247. .answerContent {
  19248. width: 215px;
  19249. max-height: 60px;
  19250. word-break: break-all;
  19251. text-align: center;
  19252. /* white-space: nowrap; */
  19253. overflow: hidden;
  19254. text-overflow: ellipsis;
  19255. /* padding: 23px 0 0; */
  19256. -webkit-line-clamp: 3;
  19257. -webkit-box-orient: vertical;
  19258. display: -webkit-box;
  19259. font-size: 15px;
  19260. cursor: pointer;
  19261. }
  19262. .elist_input_box {
  19263. display: flex;
  19264. align-items: flex-start;
  19265. flex-wrap: nowrap;
  19266. padding: 10px 0 15px 30px;
  19267. flex-direction: column;
  19268. }
  19269. .elist_input {
  19270. /* width: 40%; */
  19271. width: 100%;
  19272. }
  19273. .elist_input .elist_input_box input {
  19274. font: inherit;
  19275. color: currentColor;
  19276. width: 200px;
  19277. padding: 8px 14px;
  19278. display: block;
  19279. min-width: 0;
  19280. outline: none;
  19281. border: 1px solid rgba(0, 0, 0, 0.23);
  19282. border-radius: 4px;
  19283. box-sizing: border-box;
  19284. background: #fff;
  19285. margin: 0 20px 0 0;
  19286. }
  19287. .elist_input .elist_input_box span {
  19288. height: 36px;
  19289. line-height: 36px;
  19290. color: rgb(82, 82, 82);
  19291. }
  19292. .elist_input .elist_input_box .remove {
  19293. height: 20px;
  19294. width: 20px;
  19295. background-size: 100% 100%;
  19296. background-position: unset;
  19297. margin-left: 5px;
  19298. }
  19299. .elist_input_box >>> .el-rate {
  19300. display: flex;
  19301. height: 36px;
  19302. align-items: center;
  19303. }
  19304. .elist_input_box .elist_inptu_text {
  19305. min-height: 50px;
  19306. /* width: 500px;
  19307. max-height: 150px; */
  19308. width: 100%;
  19309. line-height: 50px;
  19310. color: rgb(82, 82, 82);
  19311. overflow: auto;
  19312. text-indent: 5px;
  19313. background: #f7f6f9;
  19314. border-radius: 10px;
  19315. }
  19316. .elist_input_box .elist_inptu_text input {
  19317. width: 500px;
  19318. }
  19319. .elist_input_box >>> .el-rate__icon {
  19320. font-size: 24px;
  19321. }
  19322. .isClick {
  19323. background: #4d9def;
  19324. }
  19325. /*定义滚动条轨道 内阴影+圆角*/
  19326. .bzTypeBox::-webkit-scrollbar {
  19327. /*滚动条整体样式*/
  19328. width: 6px;
  19329. /*高宽分别对应横竖滚动条的尺寸*/
  19330. height: 6px;
  19331. }
  19332. /*定义滚动条轨道 内阴影+圆角*/
  19333. .bzTypeBox::-webkit-scrollbar-track {
  19334. border-radius: 10px;
  19335. background-color: rgba(0, 0, 0, 0.1);
  19336. }
  19337. /*定义滑块 内阴影+圆角*/
  19338. .bzTypeBox::-webkit-scrollbar-thumb {
  19339. border-radius: 10px;
  19340. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  19341. background-color: rgba(0, 0, 0, 0.1);
  19342. }
  19343. .choiceBox {
  19344. display: flex;
  19345. margin: 20px 0;
  19346. width: 100%;
  19347. }
  19348. .bzTypeBox {
  19349. display: flex;
  19350. width: 100%;
  19351. overflow: auto;
  19352. white-space: nowrap;
  19353. }
  19354. .bzChild {
  19355. cursor: pointer;
  19356. box-sizing: border-box;
  19357. padding-bottom: 10px;
  19358. font-weight: bold;
  19359. min-width: fit-content;
  19360. }
  19361. .bzChild.active {
  19362. color: #3e88f4;
  19363. border-bottom: 2px solid #2f80f3;
  19364. }
  19365. .bzChild + .bzChild {
  19366. margin-left: 25px;
  19367. }
  19368. .bzBox {
  19369. display: flex;
  19370. flex-direction: row;
  19371. align-items: center;
  19372. }
  19373. .bzBox .yCss {
  19374. width: 14px;
  19375. height: 14px;
  19376. background: #3681fc;
  19377. margin: 0 16px 0 7px;
  19378. border-radius: 50%;
  19379. }
  19380. .bzBox > div:nth-child(2) {
  19381. font-size: 18px;
  19382. font-weight: bold;
  19383. color: #0e1e33;
  19384. }
  19385. .navTitile {
  19386. padding: 0 0px 0 15px;
  19387. font-size: 16px;
  19388. font-weight: bold;
  19389. color: #0e1e33;
  19390. height: 40px;
  19391. line-height: 40px;
  19392. }
  19393. .isTypeOne {
  19394. width: 240px;
  19395. height: 170px;
  19396. /* border: 1px solid #f8f8f8; */
  19397. border-radius: 10px;
  19398. box-shadow: 0 0 6px 1px #dfdada;
  19399. }
  19400. .e_add_top {
  19401. display: flex;
  19402. justify-content: space-between;
  19403. padding: 20px 20px 0 20px;
  19404. border-radius: 3px;
  19405. background: #fff;
  19406. }
  19407. .e_add_title2 {
  19408. display: flex;
  19409. align-items: center;
  19410. }
  19411. .e_add_title2 span {
  19412. width: 40px;
  19413. }
  19414. .e_add_title {
  19415. display: flex;
  19416. align-items: center;
  19417. color: #b8b8b8;
  19418. font-size: 18px;
  19419. position: relative;
  19420. height: 40px;
  19421. }
  19422. .e_add_title span {
  19423. margin-right: 10px;
  19424. }
  19425. .e_add_title .el_input {
  19426. width: 300px;
  19427. }
  19428. .e_add_title >>> .el-input__inner {
  19429. width: 400px;
  19430. }
  19431. .e_add_btn {
  19432. }
  19433. .e_add_content {
  19434. display: flex;
  19435. width: 100%;
  19436. max-width: 650px;
  19437. height: 550px;
  19438. }
  19439. .e_add_list {
  19440. background: #fff;
  19441. height: 500px;
  19442. width: 210px;
  19443. position: relative;
  19444. margin: 15px 5px 0 0;
  19445. flex-shrink: 0;
  19446. display: flex;
  19447. flex-direction: column;
  19448. }
  19449. .e_add_list_title {
  19450. font-size: 20px;
  19451. width: 100%;
  19452. box-sizing: border-box;
  19453. padding: 15px 40px;
  19454. text-align: center;
  19455. border-bottom: 1px solid #eaeaea;
  19456. position: relative;
  19457. display: flex;
  19458. align-items: center;
  19459. justify-content: center;
  19460. height: 57px;
  19461. background: #f6f6f6;
  19462. }
  19463. .e_add_list_title span {
  19464. overflow: hidden;
  19465. white-space: nowrap;
  19466. text-overflow: ellipsis;
  19467. }
  19468. .e_add_list_title img {
  19469. position: absolute;
  19470. right: 15px;
  19471. width: 25px;
  19472. cursor: pointer;
  19473. top: 50%;
  19474. transform: translateY(-50%);
  19475. }
  19476. .e_add_list_body {
  19477. height: calc(100% - 187px);
  19478. overflow: auto;
  19479. }
  19480. .e_add_list_child {
  19481. width: 100%;
  19482. display: flex;
  19483. align-items: center;
  19484. justify-content: center;
  19485. position: relative;
  19486. box-sizing: border-box;
  19487. padding: 15px 40px;
  19488. text-align: center;
  19489. }
  19490. .e_add_list_child span {
  19491. overflow: hidden;
  19492. white-space: nowrap;
  19493. text-overflow: ellipsis;
  19494. cursor: pointer;
  19495. }
  19496. .e_add_list_child img {
  19497. position: absolute;
  19498. right: 10px;
  19499. width: 21px;
  19500. cursor: pointer;
  19501. top: 50%;
  19502. transform: translateY(-50%);
  19503. }
  19504. .e_add_list_child + .e_add_list_child {
  19505. border-top: 1px solid #eaeaea;
  19506. }
  19507. .e_add_list_child .active {
  19508. color: #409eff;
  19509. }
  19510. .e_add_list_btn {
  19511. position: absolute;
  19512. bottom: 0;
  19513. height: 50px;
  19514. background: rgb(120, 120, 254);
  19515. width: 100%;
  19516. color: #fff;
  19517. font-size: 16px;
  19518. text-align: center;
  19519. line-height: 50px;
  19520. cursor: pointer;
  19521. }
  19522. .e_add_list_detail {
  19523. position: absolute;
  19524. bottom: 0;
  19525. height: 130px;
  19526. background: rgb(120, 120, 254);
  19527. width: 100%;
  19528. color: #fff;
  19529. font-size: 16px;
  19530. display: flex;
  19531. align-items: center;
  19532. justify-content: center;
  19533. }
  19534. .e_add_list_detail textarea {
  19535. height: 90%;
  19536. width: 95%;
  19537. border: none;
  19538. resize: none;
  19539. outline: none;
  19540. padding: 5px;
  19541. box-sizing: border-box;
  19542. }
  19543. .e_add_list_pbox {
  19544. width: 100%;
  19545. max-width: 650px;
  19546. /* height: 600px; */
  19547. }
  19548. .e_add_list_pbox_title {
  19549. height: 50px;
  19550. background: #fff;
  19551. display: flex;
  19552. align-items: center;
  19553. width: 100%;
  19554. box-sizing: border-box;
  19555. padding: 0 20px;
  19556. }
  19557. .type_title {
  19558. font-size: 18px;
  19559. font-weight: 700;
  19560. }
  19561. .type_content {
  19562. font-size: 16px;
  19563. margin-left: 30px;
  19564. }
  19565. .type_content span + span {
  19566. margin-left: 20px;
  19567. }
  19568. .type_content span {
  19569. cursor: pointer;
  19570. padding-bottom: 5px;
  19571. box-sizing: border-box;
  19572. }
  19573. .type_content .active {
  19574. color: #409eff;
  19575. border-bottom: 2px solid #409eff;
  19576. }
  19577. .e_add_list_pbox_content {
  19578. height: calc(100% - 50px);
  19579. display: flex;
  19580. align-items: center;
  19581. width: 100%;
  19582. background: #fff;
  19583. }
  19584. .evaCss {
  19585. display: flex;
  19586. flex-direction: row;
  19587. flex-wrap: nowrap;
  19588. align-items: flex-start;
  19589. }
  19590. .cru_line {
  19591. position: absolute;
  19592. bottom: 0px;
  19593. transition: all 0.5s;
  19594. left: 0px;
  19595. width: 125px;
  19596. margin-left: -25px;
  19597. }
  19598. .isNoMessage {
  19599. width: 20%;
  19600. margin: 25% auto 0;
  19601. }
  19602. .isNoMessage > img {
  19603. width: 100%;
  19604. height: 100%;
  19605. }
  19606. .fullStyle >>> .el-dialog__body {
  19607. height: 100% !important;
  19608. }
  19609. .fullStyle >>> .el-dialog,
  19610. .fullStyle {
  19611. width: 100% !important;
  19612. max-width: 100% !important;
  19613. height: 100% !important;
  19614. margin: 0 !important;
  19615. }
  19616. .full_diy >>> .el-dialog {
  19617. margin: 0 !important;
  19618. height: 100%;
  19619. padding: 4px;
  19620. }
  19621. .full_diy >>> .el-dialog__body {
  19622. height: calc(100% - 100px);
  19623. }
  19624. .full_diy2 >>> .el-dialog__body {
  19625. height: calc(100% - 50px);
  19626. padding: 0;
  19627. }
  19628. .switchCss {
  19629. /* width: 100%; */
  19630. display: flex;
  19631. flex-direction: row;
  19632. flex-wrap: nowrap;
  19633. align-items: center;
  19634. /* justify-content: center; */
  19635. }
  19636. .isClickNav {
  19637. color: #499eef;
  19638. }
  19639. .commentImg {
  19640. width: 25px;
  19641. height: 25px;
  19642. cursor: pointer;
  19643. }
  19644. .commentImg > img {
  19645. width: 100%;
  19646. height: 100%;
  19647. }
  19648. .comment {
  19649. background: #f9f9f9;
  19650. border-radius: 0 0 15px 15px;
  19651. display: flex;
  19652. flex-direction: row;
  19653. flex-wrap: nowrap;
  19654. align-items: center;
  19655. justify-content: flex-end;
  19656. height: 35px;
  19657. }
  19658. .commentList {
  19659. display: flex;
  19660. flex-direction: row;
  19661. flex-wrap: nowrap;
  19662. align-items: center;
  19663. justify-content: center;
  19664. align-content: center;
  19665. /* margin-left: 15px; */
  19666. /* margin-left: 8px; */
  19667. }
  19668. .scoreImg {
  19669. width: 17px;
  19670. height: 17px;
  19671. }
  19672. .studentDetail {
  19673. display: flex;
  19674. flex-direction: row;
  19675. flex-wrap: nowrap;
  19676. /* align-items: center; */
  19677. align-items: flex-start;
  19678. }
  19679. .tx {
  19680. width: 50px;
  19681. }
  19682. .tx > img {
  19683. width: 100%;
  19684. height: 100%;
  19685. }
  19686. .nameAndTime {
  19687. display: flex;
  19688. flex-direction: column;
  19689. flex-wrap: nowrap;
  19690. align-items: flex-start;
  19691. margin-left: 10px;
  19692. }
  19693. .worksAnswer {
  19694. color: #4078dd;
  19695. margin: 10px 0;
  19696. font-size: 16px;
  19697. position: relative;
  19698. }
  19699. .worksAnswer > img {
  19700. width: 500px;
  19701. height: 300px;
  19702. object-fit: contain;
  19703. margin: 0 auto;
  19704. display: block;
  19705. }
  19706. .commentTop {
  19707. border-bottom: 1px solid #eaeaea;
  19708. padding-bottom: 10px;
  19709. }
  19710. .commentBox {
  19711. padding-top: 15px;
  19712. }
  19713. .pl {
  19714. font-size: 18px;
  19715. }
  19716. .plPerson {
  19717. width: 100%;
  19718. }
  19719. .plName {
  19720. display: flex;
  19721. flex-direction: row;
  19722. flex-wrap: nowrap;
  19723. align-items: baseline;
  19724. color: #78787a;
  19725. width: 100%;
  19726. }
  19727. .deleteComment {
  19728. cursor: pointer;
  19729. margin-left: auto;
  19730. color: #237ade;
  19731. }
  19732. .plContent {
  19733. margin-top: 5px;
  19734. }
  19735. .evalCss {
  19736. background: #fff;
  19737. font-size: 18px;
  19738. }
  19739. .nav {
  19740. color: #9d9d9d;
  19741. padding: 5px 0 15px 20px;
  19742. }
  19743. .middleBox {
  19744. padding: 5px 0 15px 20px;
  19745. }
  19746. .pfBox {
  19747. padding-bottom: 30px;
  19748. }
  19749. .nameAndrate {
  19750. display: flex;
  19751. flex-direction: row;
  19752. flex-wrap: nowrap;
  19753. align-items: center;
  19754. padding-bottom: 10px;
  19755. height: 30px;
  19756. line-height: 30px;
  19757. }
  19758. .nameAndrate > div {
  19759. margin-left: 10px;
  19760. color: #000;
  19761. height: 30px;
  19762. }
  19763. .nameAndrate >>> .el-rate__icon {
  19764. font-size: 28px !important;
  19765. }
  19766. .pfBox > div:nth-child(2) {
  19767. background: #f7f6f9;
  19768. width: 400px;
  19769. min-height: 45px;
  19770. border-radius: 10px;
  19771. font-size: 16px;
  19772. display: flex;
  19773. flex-wrap: wrap;
  19774. align-items: center;
  19775. padding: 10px 20px;
  19776. box-sizing: border-box;
  19777. color: #000;
  19778. }
  19779. .bz {
  19780. display: flex;
  19781. flex-direction: row;
  19782. flex-wrap: nowrap;
  19783. align-items: flex-start;
  19784. }
  19785. .bz > div {
  19786. padding: 0 10px;
  19787. }
  19788. .select_box2_title {
  19789. background: #fff;
  19790. border-radius: 5px;
  19791. padding: 15px 10px;
  19792. box-sizing: border-box;
  19793. margin-bottom: 10px;
  19794. display: flex;
  19795. flex-direction: row;
  19796. flex-wrap: nowrap;
  19797. align-items: center;
  19798. }
  19799. .select_box2_title > div:nth-child(2) {
  19800. margin-left: 10px;
  19801. color: #c4c4c4;
  19802. }
  19803. .select_box2_box {
  19804. display: flex;
  19805. height: 500px;
  19806. }
  19807. .select_box2_img {
  19808. width: calc(100% - 310px);
  19809. height: 100%;
  19810. overflow: auto;
  19811. background: #fff;
  19812. border-radius: 5px;
  19813. }
  19814. .select_box2_img img {
  19815. width: 100%;
  19816. }
  19817. .select_box2_answer {
  19818. background: #fff;
  19819. margin-left: 10px;
  19820. border-radius: 5px;
  19821. width: 300px;
  19822. overflow: auto;
  19823. height: 90%;
  19824. display: flex;
  19825. flex-direction: column;
  19826. align-items: flex-start;
  19827. padding-top: 10px;
  19828. box-sizing: border-box;
  19829. position: relative;
  19830. }
  19831. .select_answer_title {
  19832. padding: 0 0 15px 20px;
  19833. color: #c4c4c4;
  19834. }
  19835. .select_box2_answer_box {
  19836. margin: 0 0 10px 20px;
  19837. width: 85%;
  19838. display: flex;
  19839. flex-direction: row;
  19840. flex-wrap: nowrap;
  19841. align-items: center;
  19842. }
  19843. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  19844. color: #000;
  19845. }
  19846. .upAnswerCss {
  19847. position: absolute;
  19848. bottom: 15px;
  19849. right: 15px;
  19850. }
  19851. .upAnswerCss >>> .el-button {
  19852. width: 95px;
  19853. height: 35px;
  19854. line-height: 35px;
  19855. padding: 0;
  19856. }
  19857. .rightWidthCss {
  19858. width: 60%;
  19859. display: flex;
  19860. flex-direction: row;
  19861. align-items: flex-start;
  19862. }
  19863. .rightAnswer {
  19864. display: flex;
  19865. flex-direction: row;
  19866. flex-wrap: nowrap;
  19867. align-items: center;
  19868. color: red;
  19869. margin-bottom: 31px;
  19870. }
  19871. .rightAnswerCss {
  19872. display: flex;
  19873. flex-direction: column;
  19874. flex-wrap: nowrap;
  19875. padding-top: 60px;
  19876. }
  19877. .blueCss {
  19878. color: #767de1;
  19879. margin-left: 10px;
  19880. }
  19881. .redCss {
  19882. color: red;
  19883. }
  19884. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  19885. color: rgb(0 123 255) !important;
  19886. }
  19887. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  19888. color: rgb(0 123 255) !important;
  19889. }
  19890. .zuoyeYulan {
  19891. padding-top: 15px;
  19892. font-size: 18px;
  19893. display: flex;
  19894. align-items: flex-end;
  19895. }
  19896. .buttonA {
  19897. margin-left: 10px;
  19898. padding: 0;
  19899. }
  19900. .displayBox {
  19901. margin-bottom: 10px;
  19902. display: block;
  19903. border-bottom: 3px solid #eee;
  19904. display: flex;
  19905. align-items: center;
  19906. }
  19907. .easy_comment {
  19908. width: calc(100% - 90px);
  19909. margin-left: 10px;
  19910. display: flex;
  19911. flex-wrap: wrap;
  19912. }
  19913. .easy_comment > div {
  19914. border: 1px solid #4a4a4a;
  19915. color: #666;
  19916. border-radius: 15px;
  19917. padding: 5px 10px;
  19918. font-size: 16px;
  19919. margin-bottom: 10px;
  19920. margin-right: 5px;
  19921. cursor: pointer;
  19922. }
  19923. .easy_comment div:hover {
  19924. border: 1px solid #f7ba2a;
  19925. color: #c69217;
  19926. }
  19927. .xuan_right_box {
  19928. padding: 10px;
  19929. background: rgb(247, 247, 247);
  19930. margin: 10px 12px;
  19931. border-radius: 5px;
  19932. }
  19933. .tool_right_box {
  19934. display: flex;
  19935. align-items: center;
  19936. }
  19937. .tool_right_box + .tool_right_box {
  19938. margin-top: 10px;
  19939. }
  19940. .right_box_xuan {
  19941. background: rgb(0 123 255);
  19942. color: #fff;
  19943. border-radius: 5px;
  19944. padding: 5px;
  19945. margin-left: 10px;
  19946. }
  19947. .pButton:hover {
  19948. opacity: 1 !important;
  19949. }
  19950. .pButton {
  19951. position: fixed;
  19952. /* right: 5%; */
  19953. /* bottom: 5%; */
  19954. color: #fff;
  19955. /* width: 50px;
  19956. height: 50px; */
  19957. /* border-radius: 50%; */
  19958. text-align: center;
  19959. /* line-height: 50px; */
  19960. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  19961. cursor: pointer;
  19962. z-index: 999;
  19963. right: 20px;
  19964. top: 110px;
  19965. width: 50px;
  19966. height: 50px;
  19967. background: #fff;
  19968. display: flex;
  19969. align-items: center;
  19970. justify-content: center;
  19971. box-shadow: 0px 0 8px 2px #c5c5c5;
  19972. border-radius: 5px;
  19973. }
  19974. .pzClass {
  19975. width: calc(100% - 340px);
  19976. }
  19977. .newDialogCss {
  19978. /* position: fixed;
  19979. right: 5%;
  19980. top: 50%;
  19981. width: 340px;
  19982. transform: translateY(-50%);
  19983. height: 60%;
  19984. box-shadow: 0px 0 8px 0px #555555;
  19985. border-radius: 15px;
  19986. z-index: 999; */
  19987. position: fixed;
  19988. right: 20px;
  19989. top: 101px;
  19990. width: 330px;
  19991. height: calc(100% - 80px);
  19992. z-index: 999;
  19993. background: #fff;
  19994. border-top-right-radius: 0px;
  19995. border-bottom-right-radius: 0px;
  19996. overflow: hidden;
  19997. }
  19998. .pzTop {
  19999. color: #fff;
  20000. background: #000;
  20001. display: flex;
  20002. flex-direction: row;
  20003. flex-wrap: nowrap;
  20004. align-items: center;
  20005. justify-content: space-between;
  20006. height: 40px;
  20007. border-radius: 15px 15px 0 0;
  20008. }
  20009. .pzTop2 .checkbox {
  20010. display: flex;
  20011. align-items: center;
  20012. padding: 15px 30px;
  20013. flex: 0 0 auto;
  20014. font-weight: bold;
  20015. border-bottom: 1px solid #eee;
  20016. justify-content: space-between;
  20017. }
  20018. .pzTop2 .check {
  20019. text-align: center;
  20020. cursor: pointer;
  20021. box-sizing: border-box;
  20022. display: flex;
  20023. }
  20024. .pzTop2 img {
  20025. width: 25px;
  20026. cursor: pointer;
  20027. }
  20028. .pzTop > div:nth-child(1) {
  20029. padding-left: 10px;
  20030. }
  20031. .pzTop > div:nth-child(2) {
  20032. width: 15px;
  20033. height: 15px;
  20034. padding-right: 10px;
  20035. cursor: pointer;
  20036. }
  20037. .pzTop > div:nth-child(2) > img {
  20038. width: 100%;
  20039. height: 100%;
  20040. }
  20041. .pzBox,
  20042. .noPzBox {
  20043. height: calc(100% - 60px);
  20044. /* background: #ededed; */
  20045. background: #fff;
  20046. /* border-radius: 0 0 15px 15px; */
  20047. }
  20048. .noPzBox {
  20049. display: flex;
  20050. flex-direction: column;
  20051. flex-wrap: nowrap;
  20052. justify-content: center;
  20053. align-items: center;
  20054. }
  20055. .pzList {
  20056. background: #f7f7f7;
  20057. width: 90%;
  20058. margin: 0 auto 15px;
  20059. border-radius: 5px;
  20060. }
  20061. .pzNavTop {
  20062. display: flex;
  20063. flex-direction: row;
  20064. flex-wrap: nowrap;
  20065. padding: 10px 10px 0 10px;
  20066. align-items: center;
  20067. }
  20068. .pzDelete {
  20069. cursor: pointer;
  20070. margin-left: auto;
  20071. font-size: 14px;
  20072. color: #afafaf;
  20073. }
  20074. .pzNavTop > div:nth-child(1) {
  20075. background: #3760af;
  20076. width: 35px;
  20077. height: 35px;
  20078. color: #fff;
  20079. text-align: center;
  20080. line-height: 35px;
  20081. border-radius: 50%;
  20082. font-size: 14px;
  20083. }
  20084. .pzNavTop > div:nth-child(2) {
  20085. font-size: 18px;
  20086. color: #959595;
  20087. margin-left: 5px;
  20088. }
  20089. .pzContent {
  20090. padding: 10px;
  20091. word-break: break-word;
  20092. }
  20093. .pzContent audio {
  20094. width: 100%;
  20095. }
  20096. .pzContent audio::-webkit-media-controls-panel {
  20097. background: #fff;
  20098. }
  20099. .pzContent >>> img {
  20100. max-width: 100%;
  20101. }
  20102. .pzListBox {
  20103. padding-top: 15px;
  20104. height: calc(100% - 110px);
  20105. overflow: auto;
  20106. }
  20107. .addPzButton {
  20108. position: relative;
  20109. margin-top: 3px;
  20110. width: 100%;
  20111. }
  20112. .addPzButton .img1 {
  20113. position: absolute;
  20114. top: 50%;
  20115. right: 25px;
  20116. transform: translateY(-50%);
  20117. height: 100%;
  20118. display: flex;
  20119. align-items: center;
  20120. }
  20121. .addPzButton .img1 div {
  20122. display: flex;
  20123. }
  20124. .addPzButton .img1 div img {
  20125. width: 28px;
  20126. margin-left: 10px;
  20127. cursor: pointer;
  20128. }
  20129. .addPzButton .img1 div span {
  20130. font-size: 14px;
  20131. margin: 4px 0 0 3px;
  20132. color: #afafaf;
  20133. }
  20134. .addPz {
  20135. background: #4b79ce;
  20136. width: 100px;
  20137. color: #fff;
  20138. font-size: 12px;
  20139. height: 30px;
  20140. margin: 0 auto;
  20141. text-align: center;
  20142. line-height: 30px;
  20143. border-radius: 10px;
  20144. cursor: pointer;
  20145. }
  20146. .addDialogCss {
  20147. position: fixed;
  20148. right: 37%;
  20149. top: 50%;
  20150. width: 600px;
  20151. transform: translateY(-50%);
  20152. height: 70%;
  20153. min-height: 450px;
  20154. box-shadow: 0px 0 8px 0px #555555;
  20155. border-radius: 15px;
  20156. z-index: 999;
  20157. }
  20158. .teacherPz {
  20159. display: flex;
  20160. flex-direction: row;
  20161. align-items: center;
  20162. flex-wrap: nowrap;
  20163. }
  20164. .teacherPzImg {
  20165. width: 30px;
  20166. height: 30px;
  20167. }
  20168. .teacherPzImg > img {
  20169. width: 100%;
  20170. height: 100%;
  20171. }
  20172. .addPzBox {
  20173. height: calc(100% - 40px);
  20174. background: #ededed;
  20175. }
  20176. .pzAudioClass {
  20177. margin: 15px 14px;
  20178. background: #fff;
  20179. height: 100%;
  20180. display: flex;
  20181. justify-content: center;
  20182. align-items: center;
  20183. }
  20184. .pzConText {
  20185. width: 95%;
  20186. height: 100%;
  20187. margin: 10px auto 0;
  20188. border: none;
  20189. background: #fff;
  20190. border-radius: 0px;
  20191. }
  20192. .pzConText >>> .text {
  20193. height: calc(100% - 82px);
  20194. }
  20195. .addTextCss {
  20196. background: #4b79ce;
  20197. width: 80px;
  20198. height: 30px;
  20199. text-align: center;
  20200. color: #fff;
  20201. line-height: 30px;
  20202. border-radius: 10px;
  20203. margin: 10px auto 0;
  20204. cursor: pointer;
  20205. }
  20206. .pzConText:focus-visible {
  20207. border: none !important;
  20208. }
  20209. .maxWidth {
  20210. width: 1000px;
  20211. }
  20212. .noPz {
  20213. width: 150px;
  20214. margin: 0 auto 20%;
  20215. }
  20216. .noPz > img {
  20217. width: 100%;
  20218. height: 100%;
  20219. }
  20220. .pzList .time {
  20221. text-align: right;
  20222. box-sizing: border-box;
  20223. padding: 0 10px 10px 0px;
  20224. color: #949494;
  20225. font-size: 14px;
  20226. }
  20227. /* code 样式 */
  20228. .cont {
  20229. /* -webkit-user-modify: read-write; */
  20230. overflow-wrap: break-word;
  20231. -webkit-line-break: after-white-space;
  20232. }
  20233. /* table 样式 */
  20234. .cont >>> table {
  20235. border-top: 1px solid #ccc;
  20236. border-left: 1px solid #ccc;
  20237. }
  20238. .cont >>> table td,
  20239. .cont >>> table th {
  20240. border-bottom: 1px solid #ccc;
  20241. border-right: 1px solid #ccc;
  20242. /* padding: 20px 5px; */
  20243. padding: 5px 10px;
  20244. max-width: 0px;
  20245. height: 30px;
  20246. vertical-align: baseline;
  20247. box-sizing: border-box;
  20248. }
  20249. .cont >>> table th {
  20250. border-bottom: 2px solid #ccc;
  20251. text-align: center;
  20252. }
  20253. /* blockquote 样式 */
  20254. .cont >>> blockquote {
  20255. display: block;
  20256. border-left: 8px solid #d0e5f2;
  20257. padding: 5px 10px;
  20258. margin: 10px 0;
  20259. line-height: 1.4;
  20260. font-size: 100%;
  20261. background-color: #f1f1f1;
  20262. }
  20263. /* code 样式 */
  20264. .cont >>> code {
  20265. display: inline-block;
  20266. /* *display: inline; */
  20267. zoom: 1;
  20268. background-color: #f1f1f1;
  20269. border-radius: 3px;
  20270. padding: 3px 5px;
  20271. margin: 0 3px;
  20272. }
  20273. .cont >>> pre code {
  20274. display: block;
  20275. }
  20276. /* ul ol 样式 */
  20277. .cont >>> ul,
  20278. ol {
  20279. margin: 10px 0 10px 20px;
  20280. }
  20281. .addPzCheck {
  20282. display: flex;
  20283. flex-direction: row;
  20284. flex-wrap: nowrap;
  20285. padding: 10px 15px 0;
  20286. }
  20287. .addPzCheck span {
  20288. cursor: pointer;
  20289. padding-bottom: 5px;
  20290. font-weight: bold;
  20291. }
  20292. .addPzCheck span + span {
  20293. margin-left: 10px;
  20294. }
  20295. .addPzCheck .isChooseActive {
  20296. color: #3e88f4;
  20297. border-bottom: 2px solid #2f80f3;
  20298. }
  20299. .scoreBox,
  20300. .scoreDetailBox {
  20301. display: flex;
  20302. align-items: center;
  20303. justify-content: flex-start;
  20304. margin-top: 20px;
  20305. font-size: 18px;
  20306. width: 100%;
  20307. }
  20308. .scoreBox .t,
  20309. .scoreDetailBox .t {
  20310. margin-right: 10px;
  20311. width: 100px;
  20312. text-align: right;
  20313. }
  20314. .scoreDetailBox {
  20315. align-items: flex-start;
  20316. }
  20317. .scoreDetailBox >>> .el-textarea {
  20318. width: calc(100% - 200px);
  20319. }
  20320. .scoreBox >>> .el-input {
  20321. width: 130px;
  20322. font-size: 38px;
  20323. }
  20324. .scoreBox >>> .el-input__inner {
  20325. height: 60px;
  20326. }
  20327. .answerScore {
  20328. position: absolute;
  20329. top: 10px;
  20330. right: 10px;
  20331. background: #0000008f;
  20332. border-radius: 5px;
  20333. padding: 3px 5px;
  20334. font-size: 14px;
  20335. color: #fff;
  20336. cursor: pointer;
  20337. }
  20338. .open_box .switch_box {
  20339. width: 100%;
  20340. margin: 0 auto;
  20341. display: flex;
  20342. justify-content: space-between;
  20343. }
  20344. .open_box .switch_box + .switch_box {
  20345. margin-top: 10px;
  20346. }
  20347. .deleteImg {
  20348. width: 25px !important;
  20349. height: 25px !important;
  20350. cursor: pointer;
  20351. position: absolute;
  20352. top: 10px;
  20353. right: 10px;
  20354. }
  20355. .deleteImg2 {
  20356. width: 15px !important;
  20357. height: 15px !important;
  20358. top: 5px;
  20359. right: 5px;
  20360. }
  20361. .rightW {
  20362. right: 40px;
  20363. }
  20364. .drawPBox {
  20365. display: flex;
  20366. flex-direction: column;
  20367. position: relative;
  20368. }
  20369. .drawPBox span {
  20370. font-size: 18px;
  20371. color: #606266;
  20372. padding-bottom: 10px;
  20373. margin: 10px 0;
  20374. border-bottom: 1px solid #eaeaea;
  20375. }
  20376. .drawPBox img {
  20377. width: 500px;
  20378. height: 300px;
  20379. object-fit: contain;
  20380. cursor: pointer;
  20381. margin: 0 auto;
  20382. }
  20383. .sentenBox {
  20384. background: #fff;
  20385. height: 450px;
  20386. overflow: auto;
  20387. background-image: url("../../assets/icon/conSentences/stuBg.png");
  20388. background-position: 102%;
  20389. background-repeat: no-repeat;
  20390. background-size: 60%;
  20391. }
  20392. .addSen {
  20393. background: #409efe;
  20394. width: 90px;
  20395. color: #fff;
  20396. height: 35px;
  20397. text-align: center;
  20398. line-height: 35px;
  20399. border-radius: 5px;
  20400. float: right;
  20401. margin: 10px 20px 0 0;
  20402. cursor: pointer;
  20403. }
  20404. .sentenTop {
  20405. display: flex;
  20406. flex-direction: row;
  20407. flex-wrap: nowrap;
  20408. align-items: center;
  20409. padding: 55px 0 0 20px;
  20410. box-sizing: border-box;
  20411. }
  20412. .sentenTop > div:nth-child(2) {
  20413. width: 300px;
  20414. margin: 0 15px;
  20415. }
  20416. .sentenTop > div:nth-child(3) {
  20417. background: #409efe;
  20418. color: #fff;
  20419. width: 65px;
  20420. height: 35px;
  20421. text-align: center;
  20422. line-height: 35px;
  20423. border-radius: 5px;
  20424. cursor: pointer;
  20425. }
  20426. .cardList,
  20427. .cardList1 {
  20428. padding: 10px 0 10px 0;
  20429. display: flex;
  20430. flex-direction: row;
  20431. flex-wrap: wrap;
  20432. align-items: center;
  20433. box-sizing: border-box;
  20434. border-bottom: 1px solid #f4f4f4;
  20435. width: 98%;
  20436. margin: 0 auto;
  20437. min-width: 60%;
  20438. max-width: 85%;
  20439. }
  20440. .cardList1 {
  20441. padding: 10px 0 10px 10px !important;
  20442. margin: 0 !important;
  20443. }
  20444. .cardBox {
  20445. display: flex;
  20446. flex-direction: row;
  20447. flex-wrap: wrap;
  20448. align-items: center;
  20449. align-content: center;
  20450. }
  20451. .cardBox > div {
  20452. margin-bottom: 10px;
  20453. }
  20454. .isCard,
  20455. .isChooseCard,
  20456. .noCard,
  20457. .isCard1 {
  20458. width: 130px;
  20459. height: 60px;
  20460. text-align: center;
  20461. line-height: 60px;
  20462. font-size: 20px;
  20463. cursor: pointer;
  20464. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  20465. background-size: cover;
  20466. transition: all 2s;
  20467. margin-right: 20px;
  20468. }
  20469. .isCard > div,
  20470. .noCard > div,
  20471. .isCard1 > div {
  20472. white-space: nowrap;
  20473. overflow: hidden;
  20474. text-overflow: ellipsis;
  20475. width: 75%;
  20476. margin: 0 auto;
  20477. }
  20478. .noCard {
  20479. background-image: none;
  20480. }
  20481. .isCard1 {
  20482. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  20483. }
  20484. .isChooseCard {
  20485. background-image: none;
  20486. border: 1px dashed #b9b9b9;
  20487. border-radius: 10px;
  20488. }
  20489. .card {
  20490. width: 130px;
  20491. height: 60px;
  20492. }
  20493. .card > img {
  20494. width: 100%;
  20495. height: 100%;
  20496. }
  20497. .rightCardBox {
  20498. margin: 10px 0 0 10px;
  20499. }
  20500. .rightCardBox > div:nth-child(1) {
  20501. margin-bottom: 10px;
  20502. }
  20503. .cardCss {
  20504. display: flex;
  20505. flex-direction: column;
  20506. flex-wrap: nowrap;
  20507. align-items: center;
  20508. border-bottom: 3px solid #b4c3d3;
  20509. padding: 0 0 5px 0;
  20510. margin-right: 10px;
  20511. }
  20512. .cardCss > div:nth-child(2) {
  20513. background: #5b7b9d;
  20514. color: #fff;
  20515. width: 20px;
  20516. height: 20px;
  20517. border-radius: 50%;
  20518. text-align: center;
  20519. line-height: 20px;
  20520. }
  20521. .isWrong {
  20522. display: flex;
  20523. flex-direction: row;
  20524. flex-wrap: nowrap;
  20525. align-content: center;
  20526. align-items: center;
  20527. }
  20528. .answerRight {
  20529. width: 25%;
  20530. }
  20531. .isTj {
  20532. display: flex;
  20533. flex-direction: row;
  20534. flex-wrap: nowrap;
  20535. align-items: center;
  20536. }
  20537. .isTj > div:nth-child(2) {
  20538. color: #727070;
  20539. margin-left: 10px;
  20540. }
  20541. .isTjImg {
  20542. width: 30px;
  20543. height: 30px;
  20544. }
  20545. .isTjImg > img {
  20546. width: 100%;
  20547. height: 100%;
  20548. }
  20549. .cardAnswerBox {
  20550. font-size: 18px;
  20551. width: 97%;
  20552. border: 5px;
  20553. padding: 0;
  20554. border-radius: 5px;
  20555. margin: 10px auto;
  20556. word-break: break-word;
  20557. }
  20558. .w_name {
  20559. margin-bottom: 10px;
  20560. }
  20561. .w_name span {
  20562. font-size: 16px;
  20563. }
  20564. .w_teachert {
  20565. width: 50px !important;
  20566. position: absolute;
  20567. height: auto !important;
  20568. z-index: 10;
  20569. right: 25px;
  20570. top: -25px;
  20571. }
  20572. .group_workBox {
  20573. }
  20574. .group_workBox + .group_workBox {
  20575. margin-top: 20px;
  20576. }
  20577. .group_box {
  20578. padding-bottom: 20px;
  20579. border-bottom: 2px solid #f0f0f0;
  20580. }
  20581. .group_title {
  20582. display: flex;
  20583. align-items: center;
  20584. justify-content: space-between;
  20585. }
  20586. .group_name {
  20587. background-image: url(../../assets/icon/groupN.png);
  20588. width: 220px;
  20589. background-size: 100% 100%;
  20590. height: 67px;
  20591. padding: 0 20px 0 43px;
  20592. box-sizing: border-box;
  20593. line-height: 63px;
  20594. color: #fff;
  20595. overflow: hidden;
  20596. white-space: nowrap;
  20597. text-overflow: ellipsis;
  20598. }
  20599. .group_work {
  20600. width: 100%;
  20601. padding: 0 10px;
  20602. box-sizing: border-box;
  20603. display: flex;
  20604. flex-wrap: wrap;
  20605. }
  20606. .g_d_box {
  20607. display: flex;
  20608. flex-flow: wrap;
  20609. justify-content: space-around;
  20610. }
  20611. .g_d_box .isChair {
  20612. background-image: url(../../assets/avatar.png) !important;
  20613. }
  20614. .g_d_group {
  20615. width: 500px;
  20616. margin-bottom: 80px;
  20617. }
  20618. .g_d_group_chair {
  20619. display: flex;
  20620. align-items: center;
  20621. justify-content: center;
  20622. }
  20623. .g_d_group_chair > div + div {
  20624. margin-left: 30px;
  20625. }
  20626. .g_d_group_chair > div,
  20627. .g_d_group_chair2 > div {
  20628. display: flex;
  20629. flex-direction: column;
  20630. align-items: center;
  20631. }
  20632. .g_d_group_chair > div > span:nth-child(1),
  20633. .g_d_group_chair2 > div > span:nth-child(1) {
  20634. background-image: url(../../assets/icon/chair.png);
  20635. width: 50px;
  20636. height: 50px;
  20637. display: block;
  20638. background-size: 100% 100%;
  20639. }
  20640. .g_d_group_tableBox {
  20641. display: flex;
  20642. align-items: center;
  20643. justify-content: center;
  20644. }
  20645. .g_d_group_chair2 {
  20646. display: flex;
  20647. flex-direction: column;
  20648. align-items: center;
  20649. justify-content: center;
  20650. }
  20651. .g_d_group_chair2 > div + div {
  20652. margin-top: 10px;
  20653. }
  20654. .g_d_group_table {
  20655. background-image: url(../../assets/icon/groupBg.png);
  20656. width: 354px;
  20657. height: 196px;
  20658. background-size: 100% 100%;
  20659. display: flex;
  20660. align-items: center;
  20661. justify-content: center;
  20662. flex-direction: column;
  20663. color: #fff;
  20664. }
  20665. .g_d_group_table > div:nth-child(1) {
  20666. font-size: 24px;
  20667. margin-bottom: 5px;
  20668. }
  20669. .g_d_group_table > div:nth-child(2) div {
  20670. cursor: pointer;
  20671. background: #2e77bf;
  20672. padding: 4px 10px;
  20673. border-radius: 5px;
  20674. }
  20675. .groupBox {
  20676. }
  20677. .groupContent + .groupContent {
  20678. margin-top: 30px;
  20679. }
  20680. .groupTitle {
  20681. font-size: 24px;
  20682. color: rgb(80, 80, 80);
  20683. margin-bottom: 20px;
  20684. }
  20685. .groupName {
  20686. display: flex;
  20687. align-items: center;
  20688. }
  20689. .groupn {
  20690. font-size: 15px;
  20691. margin-right: 10px;
  20692. }
  20693. .groupName + .groupName {
  20694. margin-top: 15px;
  20695. }
  20696. .groupBtn {
  20697. margin-left: 10px;
  20698. }
  20699. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  20700. text-align: left;
  20701. }
  20702. .g_d_btnBox {
  20703. display: flex;
  20704. justify-content: flex-end;
  20705. align-items: flex-end;
  20706. margin-bottom: 20px;
  20707. }
  20708. .updateChair {
  20709. position: relative;
  20710. }
  20711. .updateChairBtn {
  20712. position: absolute;
  20713. width: 50px;
  20714. height: 50px;
  20715. overflow: hidden;
  20716. /* display: flex; */
  20717. align-items: center;
  20718. justify-content: center;
  20719. background: #00000087;
  20720. color: #fff;
  20721. border-radius: 50px;
  20722. display: none;
  20723. cursor: pointer;
  20724. }
  20725. .updateChair:hover .updateChairBtn {
  20726. display: flex;
  20727. }
  20728. .group_staic_box {
  20729. display: flex;
  20730. padding: 30px 40px 10px;
  20731. flex-wrap: wrap;
  20732. }
  20733. .group_staic {
  20734. /* width: 50%; */
  20735. margin-bottom: 20px;
  20736. display: flex;
  20737. align-items: center;
  20738. }
  20739. .group_staic span:nth-child(1) {
  20740. width: 150px;
  20741. text-align: right;
  20742. margin-right: 15px;
  20743. }
  20744. .group_staic span:nth-child(2) {
  20745. background: rgb(0 123 255);
  20746. color: #fff;
  20747. border-radius: 5px;
  20748. padding: 5px;
  20749. }
  20750. .codeFileBox {
  20751. height: 300px;
  20752. background: #fff;
  20753. display: flex;
  20754. align-items: center;
  20755. justify-content: center;
  20756. }
  20757. .codeFileBox img {
  20758. width: 200px;
  20759. margin: 0;
  20760. height: auto;
  20761. }
  20762. .codeFileBox div {
  20763. background: rgb(80, 142, 226);
  20764. color: #fff;
  20765. padding: 10px 20px;
  20766. border-radius: 25px;
  20767. cursor: pointer;
  20768. margin-left: 15px;
  20769. }
  20770. .radioBox {
  20771. display: flex;
  20772. flex-direction: column;
  20773. flex-wrap: nowrap;
  20774. align-items: flex-start;
  20775. }
  20776. .radioBox > div {
  20777. margin: 10px 0 0 10px;
  20778. }
  20779. /* .radioBox >>> .el-radio__input,
  20780. .radioBox >>> .el-checkbox__inner {
  20781. margin-left: 10px;
  20782. } */
  20783. .radioBox >>> .el-radio__label,
  20784. .radioBox >>> .el-checkbox__label {
  20785. display: flex;
  20786. align-items: center;
  20787. }
  20788. .radioBox >>> .el-radio__label > span {
  20789. width: 100%;
  20790. display: -webkit-box;
  20791. overflow: hidden;
  20792. white-space: normal !important;
  20793. text-overflow: ellipsis;
  20794. word-wrap: break-word;
  20795. }
  20796. .inImg {
  20797. width: 100px;
  20798. cursor: pointer;
  20799. }
  20800. .inImg > img {
  20801. width: 100%;
  20802. height: 100%;
  20803. object-fit: cover;
  20804. }
  20805. .timuImgBox {
  20806. margin: 10px 0;
  20807. display: flex;
  20808. flex-direction: column;
  20809. flex-wrap: wrap;
  20810. align-items: flex-start;
  20811. }
  20812. .timuImg {
  20813. width: 150px;
  20814. margin: 5px 0;
  20815. cursor: pointer;
  20816. }
  20817. .timuImg > img {
  20818. width: 100%;
  20819. height: 100%;
  20820. object-fit: cover;
  20821. }
  20822. .worksTop {
  20823. display: flex;
  20824. flex-direction: row;
  20825. align-items: flex-end;
  20826. }
  20827. .corOpen {
  20828. margin: 0 0 0 10px;
  20829. font-size: 14px;
  20830. cursor: pointer;
  20831. color: #505050;
  20832. }
  20833. .corOpen:hover {
  20834. color: #499eef;
  20835. }
  20836. .navCorOpenBox {
  20837. display: flex;
  20838. flex-direction: row;
  20839. align-items: center;
  20840. justify-content: space-between;
  20841. height: 55px;
  20842. background: #ffffff;
  20843. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  20844. border-radius: 8px 8px 0px 0px;
  20845. z-index: 9;
  20846. position: relative;
  20847. }
  20848. .navCorOpen {
  20849. padding-right: 15px;
  20850. cursor: pointer;
  20851. width: 20px;
  20852. display: flex;
  20853. }
  20854. .navCorOpen > img {
  20855. width: 100%;
  20856. height: 100%;
  20857. }
  20858. .mlImg {
  20859. width: 25px !important;
  20860. min-width: 25px;
  20861. cursor: pointer;
  20862. margin-top: 5px;
  20863. }
  20864. .mlImg > img {
  20865. width: 100%;
  20866. height: 100%;
  20867. }
  20868. .navLeftCss {
  20869. width: 100% !important;
  20870. left: 0 !important;
  20871. }
  20872. .isContentCss {
  20873. width: 100% !important;
  20874. }
  20875. .isAllWidth {
  20876. width: 100% !important;
  20877. }
  20878. .toolBoxSteps {
  20879. position: absolute;
  20880. top: 50%;
  20881. transform: translateY(-50%);
  20882. cursor: pointer;
  20883. width: 60px;
  20884. display: flex;
  20885. align-items: center;
  20886. justify-content: center;
  20887. }
  20888. .toolBoxSteps:nth-child(1) > img,
  20889. .toolBoxSteps:nth-child(2) > img {
  20890. width: 24px;
  20891. }
  20892. .toolBoxSteps:nth-child(1) {
  20893. left: 0;
  20894. }
  20895. .toolBoxSteps:nth-child(2) {
  20896. right: 0;
  20897. }
  20898. .isChooseActive {
  20899. color: #3681fc !important;
  20900. font-weight: bold !important;
  20901. }
  20902. .tool_box {
  20903. width: 100%;
  20904. }
  20905. .tool_type_box {
  20906. display: flex;
  20907. flex-direction: row;
  20908. align-items: baseline;
  20909. flex-wrap: nowrap;
  20910. justify-content: flex-start;
  20911. position: relative;
  20912. }
  20913. .toolSort {
  20914. display: flex;
  20915. flex-direction: row;
  20916. flex-wrap: wrap;
  20917. justify-content: flex-start;
  20918. align-items: flex-start;
  20919. }
  20920. .toolSort > div {
  20921. margin: 0 45px 0 0;
  20922. width: auto;
  20923. }
  20924. .tools {
  20925. width: 100%;
  20926. display: flex;
  20927. flex-direction: column;
  20928. flex-wrap: nowrap;
  20929. align-items: flex-start;
  20930. }
  20931. .whiteBIcon {
  20932. width: 80px;
  20933. cursor: pointer;
  20934. display: flex;
  20935. flex-direction: column;
  20936. flex-wrap: nowrap;
  20937. align-items: center;
  20938. }
  20939. .whiteBIcon > img {
  20940. width: 100%;
  20941. height: 100%;
  20942. }
  20943. .whiteBIcon > img {
  20944. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  20945. border-radius: 15px;
  20946. }
  20947. .dia_tool_box {
  20948. display: flex;
  20949. flex-wrap: wrap;
  20950. width: 100%;
  20951. }
  20952. .dia_tool_box > div {
  20953. margin-right: 40px;
  20954. }
  20955. .check {
  20956. /* width: 20px;
  20957. height: 20px; */
  20958. cursor: pointer;
  20959. margin: 10px 0;
  20960. }
  20961. .checkDiv {
  20962. display: flex;
  20963. align-items: center;
  20964. }
  20965. .checkDiv span {
  20966. margin-left: 5px;
  20967. color: #858585;
  20968. }
  20969. .check img {
  20970. width: 20px;
  20971. height: 20px;
  20972. }
  20973. .fileC_box > .fileC_title {
  20974. padding: 10px 5px;
  20975. border-top: 1px solid #cdcdcd;
  20976. font-size: 14px;
  20977. color: #868686;
  20978. width: 88%;
  20979. margin: 0 auto;
  20980. }
  20981. .pl_select_box {
  20982. height: 40px;
  20983. line-height: 40px;
  20984. width: 100%;
  20985. cursor: pointer;
  20986. padding: 0 20px;
  20987. box-sizing: border-box;
  20988. border-radius: 5px;
  20989. border: 1px solid #d6d6d6;
  20990. white-space: nowrap;
  20991. overflow: hidden;
  20992. text-overflow: ellipsis;
  20993. background: #fff;
  20994. text-align: left;
  20995. }
  20996. .stageBoxCss {
  20997. display: flex;
  20998. flex-direction: row;
  20999. flex-wrap: nowrap;
  21000. align-items: center;
  21001. height: 50px;
  21002. border-bottom: 1px solid #e2f5fc;
  21003. cursor: pointer;
  21004. }
  21005. .stageChild {
  21006. height: 0;
  21007. overflow: hidden;
  21008. transition: all 0.5s;
  21009. }
  21010. .navItem {
  21011. background: #f0f4fa;
  21012. border-radius: 8px;
  21013. width: 90%;
  21014. margin: 10px auto 0;
  21015. display: flex;
  21016. flex-direction: row;
  21017. flex-wrap: nowrap;
  21018. justify-content: flex-start;
  21019. align-items: center;
  21020. }
  21021. .navItemList {
  21022. display: flex;
  21023. flex-direction: row;
  21024. flex-wrap: nowrap;
  21025. align-items: center;
  21026. padding: 18px 13px;
  21027. cursor: pointer;
  21028. font-size: 16px;
  21029. font-weight: 400;
  21030. color: #0e1e33;
  21031. justify-content: flex-start;
  21032. width: 100%;
  21033. border-radius: 8px;
  21034. }
  21035. .navItemList > div {
  21036. font-size: 16px;
  21037. font-weight: 400;
  21038. color: #0e1e33;
  21039. }
  21040. .navItemList > div:first-child {
  21041. min-width: 60px;
  21042. }
  21043. .navItemList > div:last-child {
  21044. display: -webkit-box;
  21045. overflow: hidden;
  21046. white-space: normal !important;
  21047. text-overflow: ellipsis;
  21048. word-wrap: break-word;
  21049. -webkit-line-clamp: 2;
  21050. -webkit-box-orient: vertical;
  21051. }
  21052. .isItemList {
  21053. background: #3681fc;
  21054. }
  21055. .isItemList > div {
  21056. color: #fff;
  21057. }
  21058. .navListItem {
  21059. width: 280px;
  21060. height: 50px;
  21061. margin: 0px auto 10px;
  21062. display: flex;
  21063. flex-direction: row;
  21064. flex-wrap: nowrap;
  21065. align-items: center;
  21066. justify-content: space-between;
  21067. background: #f0f4fa;
  21068. border-radius: 6px 6px 6px 6px;
  21069. }
  21070. .downIcon {
  21071. width: 20px;
  21072. height: 20px;
  21073. margin-right: 15px;
  21074. cursor: pointer;
  21075. }
  21076. .downIcon > img {
  21077. width: 100%;
  21078. height: 100%;
  21079. }
  21080. .newButton {
  21081. width: 102px;
  21082. height: 36px;
  21083. background: #e7ebf1;
  21084. border-radius: 4px;
  21085. color: #0e1e33;
  21086. font-weight: 400;
  21087. font-size: 14px;
  21088. border: none;
  21089. float: right;
  21090. margin-left: 10px;
  21091. }
  21092. </style>