studyStudent.vue 702 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <div class="btnAllNT">
  14. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  15. <img
  16. src="../../assets/icon/learn/last.png"
  17. @click="nextOrpreSteps(0)"
  18. />
  19. <img
  20. src="../../assets/icon/learn/next.png"
  21. @click="nextOrpreSteps(1)"
  22. />
  23. <img
  24. src="../../assets/icon/learn/return.png"
  25. @click.stop="
  26. goTo(
  27. '/courseDetail?userid=' +
  28. userid +
  29. '&oid=' +
  30. oid +
  31. '&org=' +
  32. org +
  33. '&cid=' +
  34. classId +
  35. '&courseId=' +
  36. id +
  37. '&tType=' +
  38. tType +
  39. '&screenType=' +
  40. screenType
  41. )
  42. "
  43. />
  44. </div>
  45. <div
  46. class="pButton"
  47. style="
  48. left: 0;
  49. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  50. top: 140px;
  51. "
  52. v-if="mlDialog == false"
  53. @click="setContent2(true)"
  54. >
  55. <!-- 批 , getCourseDetail()-->
  56. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  57. </div>
  58. <div class="pb_left" v-else>
  59. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  60. <div
  61. style="border-bottom: 1px solid #cad1dc; padding: 13px 0; width: 100%"
  62. >
  63. <div class="courseTitle">
  64. <div style="max-width: calc(100% - 40px); width: auto">
  65. <div class="ctitle">{{ courseDetail.title }}</div>
  66. </div>
  67. <el-tooltip effect="light" content="收缩" placement="top">
  68. <div class="mlImg" @click="setContent2(false)">
  69. <img src="../../assets/icon/newIcon/mlBtn.png" alt="" />
  70. </div>
  71. </el-tooltip>
  72. </div>
  73. </div>
  74. <div class="cru_selectBox">
  75. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  76. <div class="stageChild" :class="{ navActive: item.isOpen }">
  77. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  78. <div
  79. class="navItem"
  80. :class="{
  81. openTaskActive:
  82. navIndex == taskCount &&
  83. nav.id == navId &&
  84. stageIndex == courseType,
  85. }"
  86. >
  87. <div
  88. @click="openTask(stageIndex, navIndex, nav.id)"
  89. class="navItemList"
  90. :class="{
  91. isItemList:
  92. navIndex == taskCount &&
  93. nav.id == navId &&
  94. stageIndex == courseType,
  95. }"
  96. >
  97. <div>任务{{ navIndex + 1 }}:</div>
  98. <el-tooltip
  99. effect="light"
  100. :content="nav.taskName"
  101. placement="top"
  102. >
  103. <div
  104. :style="{
  105. width:
  106. IsLookOpen && !nav.isLook
  107. ? 'calc(100% - 75px)'
  108. : 'auto',
  109. }"
  110. >
  111. {{ nav.taskName }}
  112. </div>
  113. </el-tooltip>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  122. <div
  123. class="new_top"
  124. style="
  125. position: fixed;
  126. top: 20px;
  127. left: 22%;
  128. width: 77%;
  129. z-index: 999;
  130. border-radius: 12px 12px 0 0;
  131. border-bottom: 1px solid #cad1dc;
  132. padding: 10px 0;
  133. "
  134. :class="{ navLeftCss: !mlDialog }"
  135. >
  136. <div class="courseIndex">
  137. <div>任务{{ taskCount + 1 }}</div>
  138. <el-tooltip
  139. effect="light"
  140. :content="
  141. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  142. "
  143. placement="top"
  144. >
  145. <div>
  146. {{
  147. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  148. .task
  149. }}
  150. </div>
  151. </el-tooltip>
  152. </div>
  153. <div class="btnAll">
  154. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  155. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  156. <div class="returnBtn" @click="refreshCourse">刷新</div>
  157. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  158. 评论
  159. </div>
  160. <div
  161. class="returnBtn vedioIcon"
  162. @click="startRecording"
  163. v-if="!videoStart && (tType == 1 || tType == 4)"
  164. >
  165. 录制
  166. </div>
  167. <!-- <div class="returnBtn" @click="allScrell">全屏</div> -->
  168. <!-- <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  169. 开始录制
  170. </div>
  171. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  172. style="background: #ee5255">
  173. 下载录制
  174. </div>
  175. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  176. 权限
  177. </div> -->
  178. <div
  179. class="returnBtn returnIcon"
  180. @click.stop="
  181. goTo(
  182. '/courseDetail?userid=' +
  183. userid +
  184. '&oid=' +
  185. oid +
  186. '&org=' +
  187. org +
  188. '&cid=' +
  189. classId +
  190. '&courseId=' +
  191. id +
  192. '&tType=' +
  193. tType +
  194. '&screenType=' +
  195. screenType
  196. )
  197. "
  198. >
  199. 返回
  200. </div>
  201. </div>
  202. </div>
  203. <div
  204. class="isNoMessage"
  205. v-if="
  206. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  207. .chapterData.length == 0 &&
  208. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  209. .toolChoose[0].tool.length == 0 &&
  210. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  211. .taskDetail == '' &&
  212. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && !(courseDetail.userid == userid ||
  213. (courseDetail.course_teacher &&
  214. courseDetail.course_teacher.indexOf(userid) != -1))
  215. "
  216. >
  217. <img src="../../assets/icon/isNoMessage.png" alt />
  218. </div>
  219. <div class="study_top" :class="{ pzClass: pzDialog }">
  220. <div
  221. class="vedioBox"
  222. v-if="
  223. vChapterData[taskCount].length > 0 || fileC[taskCount].length > 0
  224. "
  225. >
  226. <div
  227. class="student_head"
  228. v-if="
  229. vChapterData[taskCount].length > 0 ||
  230. fileC[taskCount].length > 0
  231. "
  232. >
  233. <div class="vedioTaskBox">
  234. <div
  235. :class="
  236. contentDialog == false
  237. ? 'box_course isContentCss'
  238. : 'box_course'
  239. "
  240. v-if="
  241. vChapterData.length > 0 &&
  242. vChapterData[taskCount] &&
  243. showType !== ''
  244. "
  245. >
  246. <div class="wheel" style="height: auto" v-if="showType === 0">
  247. <div
  248. class="workd_media"
  249. style="height: 650px; width: calc(100% - 50px)"
  250. >
  251. <video-player
  252. class="video-player vjs-custom-skin"
  253. :class="contentDialog == false ? 'isAllWidth' : ''"
  254. :playsinline="true"
  255. :options="playerO[taskCount]"
  256. @play="onPlayerPlay($event)"
  257. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  258. ></video-player>
  259. </div>
  260. </div>
  261. <div
  262. class="wheel"
  263. v-if="showType == 1"
  264. style="
  265. box-shadow: 0 0 6px 1px #f2f2f2;
  266. width: 95%;
  267. margin: 0 auto;
  268. background: #f1f1f1;
  269. "
  270. >
  271. <div class="title">查看文档</div>
  272. <el-form class="textBox">
  273. <el-form-item class="textTitle">
  274. <div style="font-size: 22px">
  275. {{ text.name }}
  276. </div>
  277. </el-form-item>
  278. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  279. <div v-html="text.url" class="textContent cont"></div>
  280. </el-form>
  281. </div>
  282. <div
  283. class="wheel"
  284. v-if="
  285. pptImgUrl1.indexOf(
  286. 'https://view.officeapps.live.com/op/view.aspx?src='
  287. ) != -1 && showType == 2
  288. "
  289. style="width: 95%; margin: 0 auto"
  290. >
  291. <iframe
  292. style="width: 100%; height: 100%; border: none"
  293. :src="pptImgUrl1"
  294. ></iframe>
  295. </div>
  296. <div
  297. class="wheel"
  298. v-else-if="showType == 2"
  299. style="width: 95%; margin: 0 auto"
  300. >
  301. <iframe
  302. style="width: 100%; height: 100%; border: none"
  303. security="restricted"
  304. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  305. :src="pptImgUrl1"
  306. ></iframe>
  307. </div>
  308. <div
  309. class="wheel"
  310. v-if="showType == 3"
  311. style="width: 95%; margin: 0 auto"
  312. >
  313. <pdf
  314. :pdfUrl="pptImgUrl1"
  315. style="width: 100%; height: 100%; overflow: auto"
  316. ></pdf>
  317. </div>
  318. <div
  319. class="wheel"
  320. v-if="showType == 4"
  321. style="width: 95%; margin: 0 auto"
  322. >
  323. <el-image
  324. :src="pptImgUrl1"
  325. fit="contain"
  326. style="width: 100%; height: 100%; cursor: pointer"
  327. @click="previewImg(pptImgUrl1)"
  328. ></el-image>
  329. </div>
  330. </div>
  331. <div
  332. class="pButton"
  333. style="
  334. position: absolute;
  335. right: 20px;
  336. top: 0;
  337. background: #205cc6;
  338. z-index: 998;
  339. opacity: 0.8;
  340. "
  341. v-if="!contentDialog"
  342. @click="setContent(true)"
  343. >
  344. <!-- 批 -->
  345. <img
  346. src="../../assets/mlBtn.png"
  347. style="width: 25px"
  348. alt=""
  349. />
  350. </div>
  351. <div
  352. v-if="contentDialog == true"
  353. :style="{
  354. width:
  355. (vChapterData[taskCount].length > 0 ||
  356. fileC[taskCount].length > 0) &&
  357. showType === ''
  358. ? 'calc(100%)'
  359. : '300px',
  360. margin:
  361. (vChapterData[taskCount].length > 0 ||
  362. fileC[taskCount].length > 0) &&
  363. showType === ''
  364. ? '0 15px'
  365. : '0 15px 0 0',
  366. }"
  367. >
  368. <div
  369. class="vedioList"
  370. v-if="
  371. vChapterData[taskCount].length > 0 ||
  372. fileC[taskCount].length > 0
  373. "
  374. style="height: 650px"
  375. >
  376. <div class="navCorOpenBox">
  377. <div class="navTitile">内容列表:</div>
  378. <div class="navCorOpen" @click="setContent(false)">
  379. <img src="../../assets/icon/newIcon/mlBtn.png" alt="" />
  380. </div>
  381. </div>
  382. <div class="navBox">
  383. <div
  384. v-show="
  385. vChapterData[taskCount].length > 0 ||
  386. fileC[taskCount].length > 0
  387. "
  388. style="padding: 10px 0 25px 0"
  389. >
  390. <div
  391. class="vedioTimeBox"
  392. v-for="(vitem, vindex) in vChapterData[taskCount]"
  393. :key="vindex + '1'"
  394. >
  395. <div class="navListItem" v-if="vitem.type == 2">
  396. <div
  397. @click="lookVedio(vitem.url, vindex)"
  398. class="navText"
  399. :class="isClickNav == vindex ? 'isClickNav' : ''"
  400. >
  401. <span v-if="vitem.text">{{ vitem.text }}-</span
  402. >{{ vitem.name }}
  403. </div>
  404. <div class="downIcon" @click="downloadFile2(vitem)">
  405. <img
  406. src="../../assets/icon/newIcon/down.png"
  407. alt
  408. />
  409. </div>
  410. </div>
  411. <div class="navListItem" v-if="vitem.type == 6">
  412. <div
  413. @click="lookText(taskCount, vindex)"
  414. class="navText"
  415. :class="isClickNav == vindex ? 'isClickNav' : ''"
  416. >
  417. {{ vitem.name }}.doc
  418. </div>
  419. <!-- <div
  420. class="downIcon"
  421. @click="downloadFile(vitem.url)"
  422. >
  423. <img
  424. src="../../assets/icon/newIcon/down.png"
  425. alt
  426. />
  427. </div> -->
  428. </div>
  429. <div class="navListItem" v-if="vitem.type == 8">
  430. <div
  431. @click="doUrl(vitem.url, vindex)"
  432. class="navText"
  433. :class="isClickNav == vindex ? 'isClickNav' : ''"
  434. >
  435. {{ vitem.title ? vitem.title : vitem.url }}
  436. </div>
  437. <!-- <div
  438. class="downIcon"
  439. @click="downloadFile(vitem.url)"
  440. >
  441. <img
  442. src="../../assets/icon/newIcon/down.png"
  443. alt
  444. />
  445. </div> -->
  446. </div>
  447. <div class="navListItem" v-if="vitem.type == 3">
  448. <div
  449. @click="downFile(vitem, vindex)"
  450. class="navText"
  451. :class="isClickNav == vindex ? 'isClickNav' : ''"
  452. >
  453. <span v-if="vitem.text">{{ vitem.text }}-</span
  454. >{{ vitem.name }}
  455. </div>
  456. <div class="downIcon" @click="downloadFile2(vitem)">
  457. <img
  458. src="../../assets/icon/newIcon/down.png"
  459. alt
  460. />
  461. </div>
  462. </div>
  463. <div class="navListItem" v-if="vitem.type == 12">
  464. <div class="navText" @click="downloadFile2(vitem)">
  465. <span v-if="vitem.text">{{ vitem.text }}-</span
  466. >{{ vitem.name }}
  467. </div>
  468. <div class="downIcon" @click="downloadFile2(vitem)">
  469. <img
  470. src="../../assets/icon/newIcon/down.png"
  471. alt
  472. />
  473. </div>
  474. </div>
  475. <div class="navListItem" v-if="vitem.type == 13">
  476. <div
  477. class="navText"
  478. @click="checkPhoto(vitem, vindex)"
  479. :class="isClickNav == vindex ? 'isClickNav' : ''"
  480. >
  481. {{ vitem.name }}
  482. </div>
  483. <div class="downIcon" @click="downloadFile2(vitem)">
  484. <img
  485. src="../../assets/icon/newIcon/down.png"
  486. alt
  487. />
  488. </div>
  489. </div>
  490. </div>
  491. <div
  492. class="fileC_box"
  493. v-if="fileC[taskCount].length > 0"
  494. >
  495. <div class="fileC_title">以下文件不支持预览</div>
  496. <div
  497. class="vedioTimeBox"
  498. v-for="(vitem, vindex) in fileC[taskCount]"
  499. :key="vindex + '1'"
  500. >
  501. <div class="navListItem" v-if="vitem.type == 12">
  502. <div class="navText" style="color: #acb4bf">
  503. <span v-if="vitem.text">{{ vitem.text }}-</span
  504. >{{ vitem.name }}
  505. </div>
  506. <div
  507. class="downIcon"
  508. @click="downloadFile2(vitem)"
  509. >
  510. <img
  511. src="../../assets/icon/newIcon/down.png"
  512. alt
  513. />
  514. </div>
  515. </div>
  516. </div>
  517. </div>
  518. </div>
  519. </div>
  520. </div>
  521. </div>
  522. </div>
  523. <div style="width: calc(100% - 315px)">
  524. <div
  525. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  526. v-if="showType == 2 || showType == 3"
  527. >
  528. <el-button
  529. type="primary"
  530. class="newButton"
  531. @click="checkFileFull(showType, pptImgUrl1)"
  532. >全屏查看</el-button
  533. >
  534. <el-button
  535. type="primary"
  536. class="newButton"
  537. @click="downloadFile(pptImgUrl1)"
  538. v-if="showType != 2"
  539. >文件下载</el-button
  540. >
  541. <el-button
  542. v-if="
  543. showType == 2 &&
  544. pptImgUrl1.indexOf(
  545. 'https://view.officeapps.live.com/op/view.aspx?src='
  546. ) == -1
  547. "
  548. type="primary"
  549. class="newButton"
  550. @click="openLine(pptImgUrl1)"
  551. >打开链接
  552. </el-button>
  553. </div>
  554. <div
  555. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  556. v-if="showType == 1"
  557. >
  558. <el-button
  559. type="primary"
  560. class="newButton"
  561. @click="checkFileFull(showType, text)"
  562. >全屏查看</el-button
  563. >
  564. </div>
  565. </div>
  566. </div>
  567. </div>
  568. <div
  569. class="student_body"
  570. v-resize="resize"
  571. :style="{
  572. borderRadius:
  573. vChapterData[taskCount].length == 0 &&
  574. fileC[taskCount].length == 0
  575. ? '0 0 20px 20px'
  576. : '20px',
  577. }"
  578. v-if="
  579. ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  580. .toolChoose[0].tool &&
  581. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  582. .toolChoose[0].tool.length > 0) || (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  583. .taskDetail != '')) || (courseDetail.userid == userid ||
  584. (courseDetail.course_teacher &&
  585. courseDetail.course_teacher.indexOf(userid) != -1))
  586. "
  587. >
  588. <div
  589. class="taskBox"
  590. v-if="
  591. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  592. .taskDetail != ''
  593. "
  594. :style="
  595. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  596. .toolChoose[0].tool &&
  597. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  598. .toolChoose[0].tool.length &&
  599. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  600. .toolChoose[0].tool.length > 0
  601. ? 'border-bottom: 1px solid #cad1dc'
  602. : ''
  603. "
  604. >
  605. <div
  606. style="
  607. display: flex;
  608. flex-wrap: nowrap;
  609. flex-direction: column;
  610. position: relative;
  611. "
  612. >
  613. <div
  614. style="
  615. padding: 20px 0px 15px 0;
  616. line-height: 29px;
  617. font-size: 18px;
  618. "
  619. class="cont"
  620. v-if="
  621. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  622. .taskDetail != ''
  623. "
  624. v-html="
  625. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  626. .taskDetail
  627. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  628. taskCount
  629. ].taskDetail
  630. : '暂无描述'
  631. "
  632. ></div>
  633. </div>
  634. </div>
  635. <div
  636. class="vedioBox"
  637. v-if="
  638. courseDetail.userid == userid ||
  639. (courseDetail.course_teacher &&
  640. courseDetail.course_teacher.indexOf(userid) != -1)
  641. "
  642. >
  643. <div
  644. class="queTop"
  645. style="
  646. padding: 15px 0 15px 37px;
  647. font-weight: bold;
  648. font-size: 20px;
  649. color: #0e1e33;
  650. "
  651. >
  652. 工具栏
  653. <el-button
  654. style="margin: 0 30px 0 auto"
  655. type="primary"
  656. size="small"
  657. @click="addToolChoose"
  658. >确定</el-button
  659. >
  660. </div>
  661. <div class="tool_work_box">
  662. <div class="tool_box">
  663. <div class="tool_type_box">
  664. <div class="chooseWho">
  665. <!-- <div :class="toolType == 0 ? 'isChooseActive' : ''
  666. " @click="(toolType = 0), $forceUpdate()">
  667. 互动类
  668. </div> -->
  669. <div
  670. :class="toolType == 1 ? 'isChooseActive' : ''"
  671. @click="(toolType = 1), $forceUpdate()"
  672. >
  673. 思维类
  674. </div>
  675. <!-- <div
  676. :class="toolType == 6 ? 'isChooseActive' : ''"
  677. @click="(toolType = 6), $forceUpdate()"
  678. >
  679. 协作类
  680. </div> -->
  681. <div
  682. :class="toolType == 2 ? 'isChooseActive' : ''"
  683. @click="(toolType = 2), $forceUpdate()"
  684. >
  685. 测评类
  686. </div>
  687. <!-- <div
  688. :class="toolType == 7 ? 'isChooseActive' : ''"
  689. @click="(toolType = 7), $forceUpdate()"
  690. >
  691. 评价类
  692. </div> -->
  693. <div
  694. :class="toolType == 3 ? 'isChooseActive' : ''"
  695. @click="(toolType = 3), $forceUpdate()"
  696. >
  697. 学科类
  698. </div>
  699. <!-- <div :class="toolType == 5 ? 'isChooseActive' : ''
  700. " @click="(toolType = 5), $forceUpdate()">
  701. 学科类
  702. </div>
  703. <div :class="toolType == 4 ? 'isChooseActive' : ''
  704. " @click="(toolType = 4), $forceUpdate()">
  705. 其他
  706. </div> -->
  707. </div>
  708. </div>
  709. <div>
  710. <div class="toolSort" v-if="toolType == 0">
  711. <div class="tool">
  712. <div class="whiteBIcon" @click="addTools2(10)">
  713. <img
  714. src="../../assets/icon/thirdToolList/time.png"
  715. alt
  716. />
  717. <div style="margin: 5px 0">倒计时</div>
  718. </div>
  719. <div class="check" @click="addTools2(10)">
  720. <img
  721. src="../../assets/icon/checkNo.png"
  722. alt
  723. v-if="checktoolArray.indexOf(10) == -1"
  724. />
  725. <div class="checkDiv" v-else>
  726. <img
  727. src="../../assets/icon/checkedIs.png"
  728. alt
  729. /><span>已选择</span>
  730. </div>
  731. </div>
  732. </div>
  733. </div>
  734. <div class="toolSort" v-if="toolType == 1">
  735. <div class="tool">
  736. <div class="whiteBIcon" @click="addTools2(7)">
  737. <img
  738. src="../../assets/icon/secondToolList/mindNetwork.png"
  739. alt
  740. />
  741. <div style="margin: 5px 0">思维网格</div>
  742. </div>
  743. <div class="check" @click="addTools2(7)">
  744. <img
  745. src="../../assets/icon/checkNo.png"
  746. alt
  747. v-if="checktoolArray.indexOf(7) == -1"
  748. />
  749. <div class="checkDiv" v-else>
  750. <img
  751. src="../../assets/icon/checkedIs.png"
  752. alt
  753. /><span>已选择</span>
  754. </div>
  755. </div>
  756. </div>
  757. <div class="tool">
  758. <div class="whiteBIcon" @click="addTools2(1)">
  759. <img
  760. src="../../assets/icon/secondToolList/whiteBoard.png"
  761. alt
  762. />
  763. <div style="margin: 5px 0">电子白板</div>
  764. </div>
  765. <div class="check" @click="addTools2(1)">
  766. <img
  767. src="../../assets/icon/checkNo.png"
  768. alt
  769. v-if="checktoolArray.indexOf(1) == -1"
  770. />
  771. <div class="checkDiv" v-else>
  772. <img
  773. src="../../assets/icon/checkedIs.png"
  774. alt
  775. /><span>已选择</span>
  776. </div>
  777. </div>
  778. </div>
  779. <div class="tool">
  780. <div class="whiteBIcon" @click="addTools2(52)">
  781. <img
  782. src="../../assets/icon/fourthToolList/text.png"
  783. alt
  784. />
  785. <div style="margin: 5px 0">文档</div>
  786. </div>
  787. <div class="check" @click="addTools2(52)">
  788. <img
  789. src="../../assets/icon/checkNo.png"
  790. alt
  791. v-if="checktoolArray.indexOf(52) == -1"
  792. />
  793. <div class="checkDiv" v-else>
  794. <img
  795. src="../../assets/icon/checkedIs.png"
  796. alt
  797. /><span>已选择</span>
  798. </div>
  799. </div>
  800. </div>
  801. <div class="tool">
  802. <div class="whiteBIcon" @click="addTools2(3)">
  803. <img
  804. src="../../assets/icon/secondToolList/mindMapping.png"
  805. alt
  806. />
  807. <div style="margin: 5px 0">思维导图</div>
  808. </div>
  809. <div class="check" @click="addTools2(3)">
  810. <img
  811. src="../../assets/icon/checkNo.png"
  812. alt
  813. v-if="checktoolArray.indexOf(3) == -1"
  814. />
  815. <div class="checkDiv" v-else>
  816. <img
  817. src="../../assets/icon/checkedIs.png"
  818. alt
  819. /><span>已选择</span>
  820. </div>
  821. </div>
  822. </div>
  823. <div class="tool">
  824. <div class="whiteBIcon" @click="addTools2(48)">
  825. <img
  826. src="../../assets/icon/fourthToolList/table.png"
  827. alt
  828. />
  829. <div style="margin: 5px 0">表格</div>
  830. </div>
  831. <div class="check" @click="addTools2(48)">
  832. <img
  833. src="../../assets/icon/checkNo.png"
  834. alt
  835. v-if="checktoolArray.indexOf(48) == -1"
  836. />
  837. <div class="checkDiv" v-else>
  838. <img
  839. src="../../assets/icon/checkedIs.png"
  840. alt
  841. /><span>已选择</span>
  842. </div>
  843. </div>
  844. </div>
  845. </div>
  846. <div class="toolSort" v-if="toolType == 6">
  847. <div v-show="tooC == 49">
  848. <img
  849. @click="addTools(tooC, toolIndex, taskCount)"
  850. src="../../assets/icon/fourthToolList/group.png"
  851. alt
  852. />
  853. <div style="margin: 5px 0">学生分组</div>
  854. </div>
  855. </div>
  856. <div class="toolSort" v-if="toolType == 2">
  857. <div class="tool">
  858. <div class="whiteBIcon" @click="addTools2(16)">
  859. <img
  860. src="../../assets/icon/thirdToolList/work.png"
  861. alt
  862. />
  863. <div style="margin: 5px 0">作业提交</div>
  864. </div>
  865. <div class="check" @click="addTools2(16)">
  866. <img
  867. src="../../assets/icon/checkNo.png"
  868. alt
  869. v-if="checktoolArray.indexOf(16) == -1"
  870. />
  871. <div class="checkDiv" v-else>
  872. <img
  873. src="../../assets/icon/checkedIs.png"
  874. alt
  875. /><span>已选择</span>
  876. </div>
  877. </div>
  878. </div>
  879. <div class="tool">
  880. <div class="whiteBIcon" @click="addTools2(50)">
  881. <img
  882. src="../../assets/icon/thirdToolList/plwork.png"
  883. alt
  884. />
  885. <div style="margin: 5px 0">批量上传</div>
  886. </div>
  887. <div class="check" @click="addTools2(50)">
  888. <img
  889. src="../../assets/icon/checkNo.png"
  890. alt
  891. v-if="checktoolArray.indexOf(50) == -1"
  892. />
  893. <div class="checkDiv" v-else>
  894. <img
  895. src="../../assets/icon/checkedIs.png"
  896. alt
  897. /><span>已选择</span>
  898. </div>
  899. </div>
  900. </div>
  901. </div>
  902. <div class="toolSort" v-if="toolType == 3">
  903. <div class="tool">
  904. <div class="whiteBIcon" @click="addTools2(18)">
  905. <img
  906. src="../../assets/icon/thirdToolList/trainPlatform.png"
  907. alt
  908. />
  909. <div style="margin: 5px 0">训练平台</div>
  910. </div>
  911. <div class="check" @click="addTools2(18)">
  912. <img
  913. src="../../assets/icon/checkNo.png"
  914. alt
  915. v-if="checktoolArray.indexOf(18) == -1"
  916. />
  917. <div class="checkDiv" v-else>
  918. <img
  919. src="../../assets/icon/checkedIs.png"
  920. alt
  921. /><span>已选择</span>
  922. </div>
  923. </div>
  924. </div>
  925. <div class="tool">
  926. <div class="whiteBIcon" @click="addTools2(21)">
  927. <img
  928. src="../../assets/icon/fourthToolList/program.png"
  929. alt
  930. />
  931. <div style="margin: 5px 0">编程平台</div>
  932. </div>
  933. <div class="check" @click="addTools2(21)">
  934. <img
  935. src="../../assets/icon/checkNo.png"
  936. alt
  937. v-if="checktoolArray.indexOf(21) == -1"
  938. />
  939. <div class="checkDiv" v-else>
  940. <img
  941. src="../../assets/icon/checkedIs.png"
  942. alt
  943. /><span>已选择</span>
  944. </div>
  945. </div>
  946. </div>
  947. <div class="tool">
  948. <div class="whiteBIcon" @click="addTools2(22)">
  949. <img
  950. src="../../assets/icon/fourthToolList/AIprogram2.png"
  951. alt
  952. />
  953. <div style="margin: 5px 0">AI体验</div>
  954. </div>
  955. <div class="check" @click="addTools2(22)">
  956. <img
  957. src="../../assets/icon/checkNo.png"
  958. alt
  959. v-if="checktoolArray.indexOf(22) == -1"
  960. />
  961. <div class="checkDiv" v-else>
  962. <img
  963. src="../../assets/icon/checkedIs.png"
  964. alt
  965. /><span>已选择</span>
  966. </div>
  967. </div>
  968. </div>
  969. <div class="tool">
  970. <div class="whiteBIcon" @click="addTools2(23)">
  971. <img
  972. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  973. alt
  974. />
  975. <div style="margin: 5px 0">Python</div>
  976. </div>
  977. <div class="check" @click="addTools2(23)">
  978. <img
  979. src="../../assets/icon/checkNo.png"
  980. alt
  981. v-if="checktoolArray.indexOf(23) == -1"
  982. />
  983. <div class="checkDiv" v-else>
  984. <img
  985. src="../../assets/icon/checkedIs.png"
  986. alt
  987. /><span>已选择</span>
  988. </div>
  989. </div>
  990. </div>
  991. <div class="tool">
  992. <div class="whiteBIcon" @click="addTools2(24)">
  993. <img
  994. src="../../assets/icon/fourthToolList/AIprogram.png"
  995. alt
  996. />
  997. <div style="margin: 5px 0">AI平台</div>
  998. </div>
  999. <div class="check" @click="addTools2(24)">
  1000. <img
  1001. src="../../assets/icon/checkNo.png"
  1002. alt
  1003. v-if="checktoolArray.indexOf(24) == -1"
  1004. />
  1005. <div class="checkDiv" v-else>
  1006. <img
  1007. src="../../assets/icon/checkedIs.png"
  1008. alt
  1009. /><span>已选择</span>
  1010. </div>
  1011. </div>
  1012. </div>
  1013. <div class="tool">
  1014. <div class="whiteBIcon" @click="addTools2(32)">
  1015. <img
  1016. src="../../assets/icon/thirdToolList/code.png"
  1017. alt
  1018. />
  1019. <div style="margin: 5px 0">源码编辑</div>
  1020. </div>
  1021. <div class="check" @click="addTools2(32)">
  1022. <img
  1023. src="../../assets/icon/checkNo.png"
  1024. alt
  1025. v-if="checktoolArray.indexOf(32) == -1"
  1026. />
  1027. <div class="checkDiv" v-else>
  1028. <img
  1029. src="../../assets/icon/checkedIs.png"
  1030. alt
  1031. /><span>已选择</span>
  1032. </div>
  1033. </div>
  1034. </div>
  1035. <div class="tool">
  1036. <div class="whiteBIcon" @click="addTools2(57)">
  1037. <img
  1038. src="../../assets/icon/fourthToolList/cocopi.png"
  1039. alt
  1040. />
  1041. <div style="margin: 5px 0">CocoPi</div>
  1042. </div>
  1043. <div class="check" @click="addTools2(57)">
  1044. <img
  1045. src="../../assets/icon/checkNo.png"
  1046. alt
  1047. v-if="checktoolArray.indexOf(57) == -1"
  1048. />
  1049. <div class="checkDiv" v-else>
  1050. <img
  1051. src="../../assets/icon/checkedIs.png"
  1052. alt
  1053. /><span>已选择</span>
  1054. </div>
  1055. </div>
  1056. </div>
  1057. <div class="tool">
  1058. <div class="whiteBIcon" @click="addTools2(63)">
  1059. <img
  1060. src="../../assets/icon/fourthToolList/Wood.png"
  1061. alt
  1062. />
  1063. <div style="margin: 5px 0">海龟编程</div>
  1064. </div>
  1065. <div class="check" @click="addTools2(63)">
  1066. <img
  1067. src="../../assets/icon/checkNo.png"
  1068. alt
  1069. v-if="checktoolArray.indexOf(63) == -1"
  1070. />
  1071. <div class="checkDiv" v-else>
  1072. <img
  1073. src="../../assets/icon/checkedIs.png"
  1074. alt
  1075. /><span>已选择</span>
  1076. </div>
  1077. </div>
  1078. </div>
  1079. </div>
  1080. <div class="toolSort" v-if="toolType == 7">
  1081. <div class="tool">
  1082. <div class="whiteBIcon" @click="addTools2(40)">
  1083. <img
  1084. src="../../assets/icon/secondToolList/eval.png"
  1085. alt
  1086. />
  1087. <div style="margin: 5px 0">个人评价</div>
  1088. </div>
  1089. <div class="check" @click="addTools2(40)">
  1090. <img
  1091. src="../../assets/icon/checkNo.png"
  1092. alt
  1093. v-if="checktoolArray.indexOf(40) == -1"
  1094. />
  1095. <div class="checkDiv" v-else>
  1096. <img
  1097. src="../../assets/icon/checkedIs.png"
  1098. alt
  1099. /><span>已选择</span>
  1100. </div>
  1101. </div>
  1102. </div>
  1103. </div>
  1104. <div class="toolSort" v-if="toolType == 5">
  1105. <div class="tool">
  1106. <div class="whiteBIcon" @click="addTools2(28)">
  1107. <img
  1108. src="../../assets/icon/secondToolList/translation.png"
  1109. alt
  1110. />
  1111. <div style="margin: 5px 0">翻译</div>
  1112. </div>
  1113. <div class="check" @click="addTools2(28)">
  1114. <img
  1115. src="../../assets/icon/checkNo.png"
  1116. alt
  1117. v-if="checktoolArray.indexOf(28) == -1"
  1118. />
  1119. <div class="checkDiv" v-else>
  1120. <img
  1121. src="../../assets/icon/checkedIs.png"
  1122. alt
  1123. /><span>已选择</span>
  1124. </div>
  1125. </div>
  1126. </div>
  1127. <div class="tool">
  1128. <div class="whiteBIcon" @click="addTools2(37)">
  1129. <img
  1130. src="../../assets/icon/secondToolList/mohe.png"
  1131. alt
  1132. />
  1133. <div style="margin: 5px 0">魔盒识字</div>
  1134. </div>
  1135. <div class="check" @click="addTools2(37)">
  1136. <img
  1137. src="../../assets/icon/checkNo.png"
  1138. alt
  1139. v-if="checktoolArray.indexOf(37) == -1"
  1140. />
  1141. <div class="checkDiv" v-else>
  1142. <img
  1143. src="../../assets/icon/checkedIs.png"
  1144. alt
  1145. /><span>已选择</span>
  1146. </div>
  1147. </div>
  1148. </div>
  1149. <div class="tool">
  1150. <div class="whiteBIcon" @click="addTools2(38)">
  1151. <img
  1152. src="../../assets/icon/secondToolList/24game.png"
  1153. alt
  1154. />
  1155. <div style="margin: 5px 0">24点</div>
  1156. </div>
  1157. <div class="check" @click="addTools2(38)">
  1158. <img
  1159. src="../../assets/icon/checkNo.png"
  1160. alt
  1161. v-if="checktoolArray.indexOf(38) == -1"
  1162. />
  1163. <div class="checkDiv" v-else>
  1164. <img
  1165. src="../../assets/icon/checkedIs.png"
  1166. alt
  1167. /><span>已选择</span>
  1168. </div>
  1169. </div>
  1170. </div>
  1171. <div class="tool">
  1172. <div class="whiteBIcon" @click="addTools2(31)">
  1173. <img
  1174. src="../../assets/icon/secondToolList/networkPanel.png"
  1175. alt
  1176. />
  1177. <div style="margin: 5px 0">数学画板</div>
  1178. </div>
  1179. <div class="check" @click="addTools2(31)">
  1180. <img
  1181. src="../../assets/icon/checkNo.png"
  1182. alt
  1183. v-if="checktoolArray.indexOf(31) == -1"
  1184. />
  1185. <div class="checkDiv" v-else>
  1186. <img
  1187. src="../../assets/icon/checkedIs.png"
  1188. alt
  1189. /><span>已选择</span>
  1190. </div>
  1191. </div>
  1192. </div>
  1193. <div class="tool">
  1194. <div class="whiteBIcon" @click="addTools2(39)">
  1195. <img
  1196. src="../../assets/icon/secondToolList/GeoGebra.png"
  1197. alt
  1198. />
  1199. <div style="margin: 5px 0">GeoGebra</div>
  1200. </div>
  1201. <div class="check" @click="addTools2(39)">
  1202. <img
  1203. src="../../assets/icon/checkNo.png"
  1204. alt
  1205. v-if="checktoolArray.indexOf(39) == -1"
  1206. />
  1207. <div class="checkDiv" v-else>
  1208. <img
  1209. src="../../assets/icon/checkedIs.png"
  1210. alt
  1211. /><span>已选择</span>
  1212. </div>
  1213. </div>
  1214. </div>
  1215. <div class="tool">
  1216. <div class="whiteBIcon" @click="addTools2(58)">
  1217. <img
  1218. src="../../assets/icon/fourthToolList/car.png"
  1219. alt
  1220. />
  1221. <div style="margin: 5px 0">模拟驾驶</div>
  1222. </div>
  1223. <div class="check" @click="addTools2(58)">
  1224. <img
  1225. src="../../assets/icon/checkNo.png"
  1226. alt
  1227. v-if="checktoolArray.indexOf(58) == -1"
  1228. />
  1229. <div class="checkDiv" v-else>
  1230. <img
  1231. src="../../assets/icon/checkedIs.png"
  1232. alt
  1233. /><span>已选择</span>
  1234. </div>
  1235. </div>
  1236. </div>
  1237. <div class="tool">
  1238. <div class="whiteBIcon" @click="addTools2(59)">
  1239. <img
  1240. src="../../assets/icon/fourthToolList/lineSearch.png"
  1241. alt
  1242. />
  1243. <div style="margin: 5px 0">路径搜索</div>
  1244. </div>
  1245. <div class="check" @click="addTools2(59)">
  1246. <img
  1247. src="../../assets/icon/checkNo.png"
  1248. alt
  1249. v-if="checktoolArray.indexOf(59) == -1"
  1250. />
  1251. <div class="checkDiv" v-else>
  1252. <img
  1253. src="../../assets/icon/checkedIs.png"
  1254. alt
  1255. /><span>已选择</span>
  1256. </div>
  1257. </div>
  1258. </div>
  1259. <div class="tool">
  1260. <div class="whiteBIcon" @click="addTools2(60)">
  1261. <img
  1262. src="../../assets/icon/fourthToolList/deepLearning.png"
  1263. alt
  1264. />
  1265. <div style="margin: 5px 0">深度学习</div>
  1266. </div>
  1267. <div class="check" @click="addTools2(60)">
  1268. <img
  1269. src="../../assets/icon/checkNo.png"
  1270. alt
  1271. v-if="checktoolArray.indexOf(60) == -1"
  1272. />
  1273. <div class="checkDiv" v-else>
  1274. <img
  1275. src="../../assets/icon/checkedIs.png"
  1276. alt
  1277. /><span>已选择</span>
  1278. </div>
  1279. </div>
  1280. </div>
  1281. <div class="tool">
  1282. <div class="whiteBIcon" @click="addTools2(61)">
  1283. <img
  1284. src="../../assets/icon/fourthToolList/allHistory.png"
  1285. alt
  1286. />
  1287. <div style="margin: 5px 0">全历史</div>
  1288. </div>
  1289. <div class="check" @click="addTools2(61)">
  1290. <img
  1291. src="../../assets/icon/checkNo.png"
  1292. alt
  1293. v-if="checktoolArray.indexOf(61) == -1"
  1294. />
  1295. <div class="checkDiv" v-else>
  1296. <img
  1297. src="../../assets/icon/checkedIs.png"
  1298. alt
  1299. /><span>已选择</span>
  1300. </div>
  1301. </div>
  1302. </div>
  1303. </div>
  1304. <div class="toolSort" v-if="toolType == 4">
  1305. <div class="tool">
  1306. <div class="whiteBIcon" @click="addTools2(26)">
  1307. <img
  1308. src="../../assets/icon/thirdToolList/courseDesign.png"
  1309. alt
  1310. />
  1311. <div style="margin: 5px 0">课程设计</div>
  1312. </div>
  1313. <div class="check" @click="addTools2(26)">
  1314. <img
  1315. src="../../assets/icon/checkNo.png"
  1316. alt
  1317. v-if="checktoolArray.indexOf(26) == -1"
  1318. />
  1319. <div class="checkDiv" v-else>
  1320. <img
  1321. src="../../assets/icon/checkedIs.png"
  1322. alt
  1323. /><span>已选择</span>
  1324. </div>
  1325. </div>
  1326. </div>
  1327. <div class="tool">
  1328. <div class="whiteBIcon" @click="addTools2(25)">
  1329. <img
  1330. src="../../assets/icon/thirdToolList/evalua.png"
  1331. alt
  1332. />
  1333. <div style="margin: 5px 0">目标管理</div>
  1334. </div>
  1335. <div class="check" @click="addTools2(25)">
  1336. <img
  1337. src="../../assets/icon/checkNo.png"
  1338. alt
  1339. v-if="checktoolArray.indexOf(25) == -1"
  1340. />
  1341. <div class="checkDiv" v-else>
  1342. <img
  1343. src="../../assets/icon/checkedIs.png"
  1344. alt
  1345. /><span>已选择</span>
  1346. </div>
  1347. </div>
  1348. </div>
  1349. </div>
  1350. </div>
  1351. </div>
  1352. </div>
  1353. </div>
  1354. <div
  1355. class="vedioBox"
  1356. v-if="
  1357. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1358. .toolChoose[0].tool &&
  1359. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1360. .toolChoose[0].tool.length &&
  1361. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1362. .toolChoose[0].tool.length > 0
  1363. "
  1364. style="padding: 0 37px"
  1365. >
  1366. <div
  1367. class="queTop"
  1368. style="
  1369. font-size: 20px;
  1370. padding: 15px 0 15px 0;
  1371. font-weight: bold;
  1372. "
  1373. >
  1374. 发布区
  1375. </div>
  1376. <div
  1377. class="toolHeng2"
  1378. style="
  1379. position: relative;
  1380. border-bottom: 1px solid rgb(215, 219, 225);
  1381. "
  1382. >
  1383. <div
  1384. class="filebox"
  1385. style="flex-wrap: nowrap"
  1386. v-if="
  1387. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1388. .toolChoose.length
  1389. "
  1390. >
  1391. <div class="choiceBox">
  1392. <div class="bzChild" style="margin-right: 20px">
  1393. <span>步骤选择:</span>
  1394. </div>
  1395. <div class="bzTypeBox">
  1396. <div
  1397. class="bzChild"
  1398. v-for="(bz, bzIndex) in chapInfoList[courseType]
  1399. .chapterInfo[0].taskJson[taskCount].toolChoose"
  1400. :key="bzIndex"
  1401. :class="{ active: toolIndex == bzIndex }"
  1402. @click="checkBz(bzIndex)"
  1403. >
  1404. <span>步骤{{ bzIndex + 1 }}</span>
  1405. </div>
  1406. </div>
  1407. </div>
  1408. <div class="bzBox">
  1409. <div class="yCss"></div>
  1410. <div>步骤{{ toolIndex + 1 }}</div>
  1411. <div
  1412. style="margin: 0 72px 0 auto"
  1413. v-if="courseDetail.userid == userid"
  1414. >
  1415. <el-button
  1416. type="primary"
  1417. size="mini"
  1418. @click="updateToolDetail"
  1419. >{{
  1420. !isUpdateToolDetail ? "编辑" : "确认修改"
  1421. }}</el-button
  1422. >
  1423. </div>
  1424. </div>
  1425. <div class="toolBox">
  1426. <div class="toolBoxSteps" @click="nextToolindex('last')">
  1427. <img src="../../assets/icon/leftIcon.png" />
  1428. </div>
  1429. <div class="toolBoxSteps" @click="nextToolindex('next')">
  1430. <img src="../../assets/icon/rightIcon.png" />
  1431. </div>
  1432. <div>
  1433. <div class="noiframeBox">
  1434. <div
  1435. class="addPoint"
  1436. v-for="(tooC, toolCIndex) in tool.tool"
  1437. :key="toolCIndex"
  1438. >
  1439. <div v-show="tooC == 1">
  1440. <img
  1441. src="../../assets/icon/secondToolList/whiteBoard.png"
  1442. alt
  1443. @click="addTools(tooC, toolIndex, taskCount)"
  1444. />
  1445. <div style="margin: 5px 0">电子白板</div>
  1446. </div>
  1447. <div v-show="tooC == 3">
  1448. <img
  1449. src="../../assets/icon/secondToolList/mindMapping.png"
  1450. alt
  1451. @click="addTools(tooC, toolIndex, taskCount)"
  1452. />
  1453. <div style="margin: 5px 0">思维导图</div>
  1454. </div>
  1455. <div v-show="tooC == 6">
  1456. <img
  1457. src="../../assets/icon/secondToolList/doc.png"
  1458. alt
  1459. @click="addTools(tooC, toolIndex, taskCount)"
  1460. />
  1461. <div style="margin: 5px 0">协同文档</div>
  1462. </div>
  1463. <div v-show="tooC == 7">
  1464. <img
  1465. src="../../assets/icon/secondToolList/mindNetwork.png"
  1466. alt
  1467. @click="addTools(tooC, toolIndex, taskCount)"
  1468. />
  1469. <div style="margin: 5px 0">思维网格</div>
  1470. </div>
  1471. <div v-show="tooC == 8">
  1472. <img
  1473. src="../../assets/icon/secondToolList/library.png"
  1474. alt
  1475. @click="addTools(tooC, toolIndex, taskCount)"
  1476. />
  1477. <div style="margin: 5px 0">素材库</div>
  1478. </div>
  1479. <div v-show="tooC == 17">
  1480. <img
  1481. src="../../assets/icon/secondToolList/library.png"
  1482. alt
  1483. @click="addTools(tooC, toolIndex, taskCount)"
  1484. />
  1485. <div style="margin: 5px 0">学习资料</div>
  1486. </div>
  1487. <div v-show="tooC == 2">
  1488. <img
  1489. @click="addTools(tooC, toolIndex, taskCount)"
  1490. src="../../assets/icon/secondToolList/note.png"
  1491. alt
  1492. />
  1493. <div style="margin: 5px 0">便签</div>
  1494. </div>
  1495. <div v-show="tooC == 4">
  1496. <img
  1497. @click="addTools(tooC, toolIndex, taskCount)"
  1498. src="../../assets/icon/thirdToolList/ask.png"
  1499. alt
  1500. />
  1501. <div style="margin: 5px 0">问卷调查</div>
  1502. </div>
  1503. <div v-show="tooC == 45">
  1504. <img
  1505. @click="addTools(tooC, toolIndex, taskCount)"
  1506. src="../../assets/icon/thirdToolList/choose.png"
  1507. alt
  1508. />
  1509. <div style="margin: 5px 0">选择题</div>
  1510. </div>
  1511. <!-- <div v-show="tooC == 5">
  1512. <img
  1513. @click="addTools(tooC, toolIndex, taskCount)"
  1514. src="../../assets/icon/thirdToolList/score.png"
  1515. alt
  1516. />
  1517. <div style="margin: 5px 0">量规评分</div>
  1518. </div> -->
  1519. <div v-show="tooC == 10">
  1520. <img
  1521. @click="addTools(tooC, toolIndex, taskCount)"
  1522. src="../../assets/icon/thirdToolList/time.png"
  1523. alt
  1524. />
  1525. <div style="margin: 5px 0">倒计时</div>
  1526. </div>
  1527. <div v-show="tooC == 15">
  1528. <img
  1529. @click="addTools(tooC, toolIndex, taskCount)"
  1530. src="../../assets/icon/thirdToolList/answer.png"
  1531. alt
  1532. />
  1533. <div style="margin: 5px 0">问答工具</div>
  1534. </div>
  1535. <div v-show="tooC == 26">
  1536. <img
  1537. @click="addTools(tooC, toolIndex, taskCount)"
  1538. src="../../assets/icon/thirdToolList/courseDesign.png"
  1539. alt
  1540. />
  1541. <div style="margin: 5px 0">课程设计</div>
  1542. </div>
  1543. <div v-show="tooC == 18">
  1544. <img
  1545. @click="addTools(tooC, toolIndex, taskCount)"
  1546. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1547. alt
  1548. />
  1549. <div style="margin: 5px 0">训练服务器</div>
  1550. </div>
  1551. <div v-show="tooC == 16">
  1552. <img
  1553. @click="addTools(tooC, toolIndex, taskCount)"
  1554. src="../../assets/icon/thirdToolList/work.png"
  1555. alt
  1556. />
  1557. <div style="margin: 5px 0">作业提交</div>
  1558. </div>
  1559. <div v-show="tooC == 50">
  1560. <img
  1561. @click="addTools(tooC, toolIndex, taskCount)"
  1562. src="../../assets/icon/thirdToolList/plwork.png"
  1563. alt
  1564. />
  1565. <div style="margin: 5px 0">批量上传</div>
  1566. </div>
  1567. <div v-show="tooC == 21">
  1568. <img
  1569. @click="addTools(tooC, toolIndex, taskCount)"
  1570. src="../../assets/icon/fourthToolList/program.png"
  1571. alt
  1572. />
  1573. <div style="margin: 5px 0">编程平台</div>
  1574. </div>
  1575. <div v-show="tooC == 22">
  1576. <img
  1577. @click="addTools(tooC, toolIndex, taskCount)"
  1578. src="../../assets/icon/fourthToolList/program.png"
  1579. alt
  1580. />
  1581. <div style="margin: 5px 0">AI体验</div>
  1582. </div>
  1583. <div v-show="tooC == 23">
  1584. <img
  1585. @click="addTools(tooC, toolIndex, taskCount)"
  1586. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1587. alt
  1588. />
  1589. <div style="margin: 5px 0">Python</div>
  1590. </div>
  1591. <div v-show="tooC == 24">
  1592. <img
  1593. @click="addTools(tooC, toolIndex, taskCount)"
  1594. src="../../assets/icon/fourthToolList/AIprogram.png"
  1595. alt
  1596. />
  1597. <div style="margin: 5px 0">AI平台</div>
  1598. </div>
  1599. <div v-show="tooC == 25">
  1600. <img
  1601. @click="addTools(tooC, toolIndex, taskCount)"
  1602. src="../../assets/icon/thirdToolList/evalua.png"
  1603. alt
  1604. />
  1605. <div style="margin: 5px 0">目标管理</div>
  1606. </div>
  1607. <div v-show="tooC == 31">
  1608. <img
  1609. @click="addTools(tooC, toolIndex, taskCount)"
  1610. src="../../assets/icon/secondToolList/networkPanel.png"
  1611. alt
  1612. />
  1613. <div style="margin: 5px 0">数学画板</div>
  1614. </div>
  1615. <div v-show="tooC == 28">
  1616. <img
  1617. @click="addTools(tooC, toolIndex, taskCount)"
  1618. src="../../assets/icon/secondToolList/translation.png"
  1619. alt
  1620. />
  1621. <div style="margin: 5px 0">翻译</div>
  1622. </div>
  1623. <div v-show="tooC == 37">
  1624. <img
  1625. @click="addTools(tooC, toolIndex, taskCount)"
  1626. src="../../assets/icon/secondToolList/mohe.png"
  1627. alt
  1628. />
  1629. <div style="margin: 5px 0">魔盒识字</div>
  1630. </div>
  1631. <div v-show="tooC == 38">
  1632. <img
  1633. @click="addTools(tooC, toolIndex, taskCount)"
  1634. src="../../assets/icon/secondToolList/24game.png"
  1635. alt
  1636. />
  1637. <div style="margin: 5px 0">24点</div>
  1638. </div>
  1639. <div v-show="tooC == 39">
  1640. <img
  1641. @click="addTools(tooC, toolIndex, taskCount)"
  1642. src="../../assets/icon/secondToolList/GeoGebra.png"
  1643. alt
  1644. />
  1645. <div style="margin: 5px 0">GeoGebra</div>
  1646. </div>
  1647. <div v-show="tooC == 32">
  1648. <img
  1649. @click="addTools(tooC, toolIndex, taskCount)"
  1650. src="../../assets/icon/thirdToolList/code.png"
  1651. alt
  1652. />
  1653. <div style="margin: 5px 0">源码编辑</div>
  1654. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1655. style="position: absolute;left: 110px;bottom: 30px;">
  1656. 上传文件
  1657. <input type="file" accept="*" style="display: none"
  1658. @change="beforeUpload1($event, 7, toolIndex)" />
  1659. </div> -->
  1660. </div>
  1661. <!-- <div v-show="tooC == 40">
  1662. <img
  1663. @click="addTools(tooC, toolIndex, taskCount)"
  1664. src="../../assets/icon/secondToolList/eval.png"
  1665. alt
  1666. />
  1667. <div style="margin: 5px 0">个人评价</div>
  1668. </div> -->
  1669. <div v-show="tooC == 41">
  1670. <img
  1671. @click="addTools(tooC, toolIndex, taskCount)"
  1672. src="../../assets/icon/thirdToolList/select.png"
  1673. alt
  1674. />
  1675. <div style="margin: 5px 0">选择填空</div>
  1676. </div>
  1677. <div v-show="tooC == 44">
  1678. <img
  1679. @click="addTools(tooC, toolIndex, taskCount)"
  1680. src="../../assets/icon/thirdToolList/hanClass.png"
  1681. alt
  1682. />
  1683. <div style="margin: 5px 0">汉字宫</div>
  1684. </div>
  1685. <div v-show="tooC == 47">
  1686. <img
  1687. @click="addTools(tooC, toolIndex, taskCount)"
  1688. src="../../assets/icon/fourthToolList/conSentences.png"
  1689. alt
  1690. />
  1691. <div style="margin: 5px 0">连词成句</div>
  1692. </div>
  1693. <div v-show="tooC == 48">
  1694. <img
  1695. @click="addTools(tooC, toolIndex, taskCount)"
  1696. src="../../assets/icon/fourthToolList/table.png"
  1697. alt
  1698. />
  1699. <div style="margin: 5px 0">表格</div>
  1700. </div>
  1701. <div v-show="tooC == 52">
  1702. <img
  1703. @click="addTools(tooC, toolIndex, taskCount)"
  1704. src="../../assets/icon/fourthToolList/text.png"
  1705. alt
  1706. />
  1707. <div style="margin: 5px 0">文档</div>
  1708. </div>
  1709. <!-- <div v-show="tooC == 49">
  1710. <img @click="addTools(tooC, toolIndex, taskCount)"
  1711. src="../../assets/icon/fourthToolList/group.png" alt />
  1712. <div style="margin: 5px 0">学生分组</div>
  1713. </div> -->
  1714. <div v-show="tooC == 57">
  1715. <img
  1716. @click="addTools(tooC, toolIndex, taskCount)"
  1717. src="../../assets/icon/fourthToolList/cocopi.png"
  1718. alt
  1719. />
  1720. <div style="margin: 5px 0">CocoPi</div>
  1721. </div>
  1722. <div v-show="tooC == 58">
  1723. <img
  1724. @click="addTools(tooC, toolIndex, taskCount)"
  1725. src="../../assets/icon/fourthToolList/car.png"
  1726. alt
  1727. />
  1728. <div style="margin: 5px 0">模拟驾驶</div>
  1729. </div>
  1730. <div v-show="tooC == 59">
  1731. <img
  1732. @click="addTools(tooC, toolIndex, taskCount)"
  1733. src="../../assets/icon/fourthToolList/lineSearch.png"
  1734. alt
  1735. />
  1736. <div style="margin: 5px 0">路径搜索</div>
  1737. </div>
  1738. <div v-show="tooC == 60">
  1739. <img
  1740. @click="addTools(tooC, toolIndex, taskCount)"
  1741. src="../../assets/icon/fourthToolList/deepLearning.png"
  1742. alt
  1743. />
  1744. <div style="margin: 5px 0">深度学习</div>
  1745. </div>
  1746. <div v-show="tooC == 61">
  1747. <img
  1748. @click="addTools(tooC, toolIndex, taskCount)"
  1749. src="../../assets/icon/fourthToolList/allHistory.png"
  1750. alt
  1751. />
  1752. <div style="margin: 5px 0">全历史</div>
  1753. </div>
  1754. <div v-show="tooC == 62">
  1755. <img
  1756. @click="addTools(tooC, toolIndex, taskCount)"
  1757. src="../../assets/icon/fourthToolList/interVideo.png"
  1758. alt
  1759. />
  1760. <div style="margin: 5px 0">交互视频</div>
  1761. </div>
  1762. <div v-show="tooC == 63">
  1763. <img
  1764. @click="addTools(tooC, toolIndex, taskCount)"
  1765. src="../../assets/icon/fourthToolList/Wood.png"
  1766. alt
  1767. />
  1768. <div style="margin: 5px 0">海龟编程</div>
  1769. </div>
  1770. </div>
  1771. </div>
  1772. </div>
  1773. <div class="tooldetail">
  1774. <!-- <div class="toolTitle">工具描述</div> -->
  1775. <div
  1776. style="height: 100%"
  1777. v-html="
  1778. contentConvent(
  1779. tool.toolDetail ? tool.toolDetail : '暂无描述'
  1780. )
  1781. "
  1782. v-if="!isUpdateToolDetail"
  1783. @click="updateToolDetail"
  1784. ></div>
  1785. <div v-else>
  1786. <el-input
  1787. type="textarea"
  1788. :rows="3"
  1789. resize="none"
  1790. v-model="updateToolDetailInner"
  1791. placeholder="请输入任务描述"
  1792. ></el-input>
  1793. </div>
  1794. </div>
  1795. <el-button
  1796. type="primary"
  1797. v-if="tool.tool[0] == 32"
  1798. style="
  1799. position: absolute;
  1800. right: 30px;
  1801. transform: translateY(-130%);
  1802. "
  1803. @click="addImg($event)"
  1804. >上传作业<input
  1805. type="file"
  1806. accept="*"
  1807. style="display: none"
  1808. @change="beforeUpload1($event, 7, toolIndex)"
  1809. /></el-button>
  1810. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1811. position: absolute;
  1812. right: 30px;
  1813. transform: translateY(-130%);
  1814. " @click="addImg($event)">上传作业<input type="file" accept="*"
  1815. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1816. </div>
  1817. </div>
  1818. </div>
  1819. </div>
  1820. <div
  1821. class="vedioBox"
  1822. v-if="
  1823. arrayToArray(tool.tool, isWorkTool).length &&
  1824. worksTeacher.length &&
  1825. worksTeacher[toolIndex].length &&
  1826. false
  1827. "
  1828. >
  1829. <div
  1830. class="queTop"
  1831. style="
  1832. font-size: 20px;
  1833. padding: 15px 0 15px 30px;
  1834. font-weight: bold;
  1835. "
  1836. >
  1837. 教师工作区
  1838. </div>
  1839. <div class="tool_work_box">
  1840. <div
  1841. v-if="
  1842. tType &&
  1843. ((tType == 2 && sIsOpen == true) ||
  1844. tType == 1 ||
  1845. tType == 4) &&
  1846. tool.tool.indexOf(16) != -1
  1847. "
  1848. class="worksBox"
  1849. >
  1850. <div
  1851. class="zuoyeYulan"
  1852. v-if="
  1853. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1854. "
  1855. >
  1856. <div class="worksTop">
  1857. <div>作业预览</div>
  1858. </div>
  1859. </div>
  1860. <div
  1861. class="worksDetailBox"
  1862. v-if="
  1863. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1864. "
  1865. >
  1866. <div
  1867. class="works"
  1868. style="
  1869. width: 200px;
  1870. height: 140px;
  1871. margin: 10px 10px 10px 0;
  1872. border-radius: 15px;
  1873. box-shadow: 0 0 6px 1px #dfdada;
  1874. "
  1875. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1876. :key="wIndex"
  1877. :class="w.type == 1 ? 'isTypeOne' : ''"
  1878. >
  1879. <div class="workImg" v-if="w.type == 0">
  1880. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1881. <img :src="w.works" @click="previewImg(w.works)" alt />
  1882. <div
  1883. class="answerScore"
  1884. v-if="w.score"
  1885. @click.stop="openScore(w)"
  1886. :class="{
  1887. rightW:
  1888. w.userid == userid ||
  1889. tType == 1 ||
  1890. tType == 4 ||
  1891. w.ateacher == userid,
  1892. }"
  1893. >
  1894. {{ JSON.parse(w.score).wScore }}分
  1895. </div>
  1896. <div
  1897. class="answerScore"
  1898. @click.stop="openScore(w)"
  1899. v-else-if="courseDetail.userid == userid"
  1900. :class="{
  1901. rightW:
  1902. w.userid == userid ||
  1903. tType == 1 ||
  1904. tType == 4 ||
  1905. w.ateacher == userid,
  1906. }"
  1907. >
  1908. 评分
  1909. </div>
  1910. <img
  1911. class="deleteImg"
  1912. src="../../assets/deleteworks.png"
  1913. v-if="w.userid == userid || tType == 1 || tType == 4"
  1914. @click.stop="deleteWorks(w.wid)"
  1915. alt
  1916. />
  1917. </div>
  1918. <div class="workImg" v-if="w.type == 1">
  1919. <img :src="word" @click="openFile(w.works)" alt />
  1920. <!-- @click="openFile(w.works)" -->
  1921. <div
  1922. class="answerScore"
  1923. v-if="w.score"
  1924. @click.stop="openScore(w)"
  1925. :class="{
  1926. rightW:
  1927. w.userid == userid ||
  1928. tType == 1 ||
  1929. tType == 4 ||
  1930. w.ateacher == userid,
  1931. }"
  1932. >
  1933. {{ JSON.parse(w.score).wScore }}分
  1934. </div>
  1935. <div
  1936. class="answerScore"
  1937. @click.stop="openScore(w)"
  1938. v-else-if="courseDetail.userid == userid"
  1939. :class="{
  1940. rightW:
  1941. w.userid == userid ||
  1942. tType == 1 ||
  1943. tType == 4 ||
  1944. w.ateacher == userid,
  1945. }"
  1946. >
  1947. 评分
  1948. </div>
  1949. <img
  1950. class="deleteImg"
  1951. src="../../assets/deleteworks.png"
  1952. v-if="w.userid == userid || tType == 1 || tType == 4"
  1953. @click.stop="deleteWorks(w.wid)"
  1954. alt
  1955. />
  1956. </div>
  1957. <div class="workImg" v-if="w.type == 3">
  1958. <img
  1959. style="cursor: pointer"
  1960. :src="video"
  1961. @click="openVideo(w)"
  1962. alt
  1963. />
  1964. <!-- @click="openVideo(w.works)" -->
  1965. <div
  1966. class="answerScore"
  1967. v-if="w.score"
  1968. @click.stop="openScore(w)"
  1969. :class="{
  1970. rightW:
  1971. w.userid == userid ||
  1972. tType == 1 ||
  1973. tType == 4 ||
  1974. w.ateacher == userid,
  1975. }"
  1976. >
  1977. {{ JSON.parse(w.score).wScore }}分
  1978. </div>
  1979. <div
  1980. class="answerScore"
  1981. @click.stop="openScore(w)"
  1982. v-else-if="courseDetail.userid == userid"
  1983. :class="{
  1984. rightW:
  1985. w.userid == userid ||
  1986. tType == 1 ||
  1987. tType == 4 ||
  1988. w.ateacher == userid,
  1989. }"
  1990. >
  1991. 评分
  1992. </div>
  1993. <img
  1994. class="deleteImg"
  1995. src="../../assets/deleteworks.png"
  1996. v-if="w.userid == userid || tType == 1 || tType == 4"
  1997. @click.stop="deleteWorks(w.wid)"
  1998. alt
  1999. />
  2000. </div>
  2001. <div class="workImg" v-if="w.type == 12">
  2002. <img
  2003. style="cursor: pointer"
  2004. :src="word2"
  2005. @click="downloadFile(w.works)"
  2006. alt
  2007. />
  2008. <!-- @click="openVideo(w.works)" -->
  2009. <div
  2010. class="answerScore"
  2011. v-if="w.score"
  2012. @click.stop="openScore(w)"
  2013. :class="{
  2014. rightW:
  2015. w.userid == userid ||
  2016. tType == 1 ||
  2017. tType == 4 ||
  2018. w.ateacher == userid,
  2019. }"
  2020. >
  2021. {{ JSON.parse(w.score).wScore }}分
  2022. </div>
  2023. <div
  2024. class="answerScore"
  2025. @click.stop="openScore(w)"
  2026. v-else-if="courseDetail.userid == userid"
  2027. :class="{
  2028. rightW:
  2029. w.userid == userid ||
  2030. tType == 1 ||
  2031. tType == 4 ||
  2032. w.ateacher == userid,
  2033. }"
  2034. >
  2035. 评分
  2036. </div>
  2037. <img
  2038. class="deleteImg"
  2039. src="../../assets/deleteworks.png"
  2040. v-if="w.userid == userid || tType == 1 || tType == 4"
  2041. @click.stop="deleteWorks(w.wid)"
  2042. alt
  2043. />
  2044. </div>
  2045. <div class="comment" style="min-width: 200px">
  2046. <div class="worksName">
  2047. <div>{{ w.sName }}</div>
  2048. </div>
  2049. <div class="commentList">
  2050. <div class="commentList">
  2051. <div
  2052. class="commentImg"
  2053. @click="
  2054. isLikes(w.wid, userid, 1, null, w.isLikes)
  2055. "
  2056. >
  2057. <img
  2058. :src="w.isLikes == true ? likes : noLikes"
  2059. alt=""
  2060. />
  2061. </div>
  2062. <div>{{ w.likesCount }}</div>
  2063. </div>
  2064. <div class="commentList" style="margin-right: 15px">
  2065. <div
  2066. class="commentImg"
  2067. @click="commentOther(w, toolIndex, wIndex)"
  2068. >
  2069. <img
  2070. src="../../assets/icon/comment/comment.png"
  2071. alt=""
  2072. />
  2073. </div>
  2074. <div>{{ w.commentCount }}</div>
  2075. </div>
  2076. </div>
  2077. </div>
  2078. </div>
  2079. </div>
  2080. </div>
  2081. <div
  2082. v-if="
  2083. tType &&
  2084. ((tType == 2 && sIsOpen == true) ||
  2085. tType == 1 ||
  2086. tType == 4) &&
  2087. tool.tool.indexOf(32) != -1
  2088. "
  2089. class="worksBox"
  2090. >
  2091. <div
  2092. class="zuoyeYulan"
  2093. v-if="
  2094. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2095. "
  2096. >
  2097. <div class="worksTop">
  2098. <div>作业预览</div>
  2099. </div>
  2100. </div>
  2101. <div
  2102. class="worksDetailBox"
  2103. v-if="
  2104. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2105. "
  2106. >
  2107. <div
  2108. class="works"
  2109. style="
  2110. width: 200px;
  2111. height: 140px;
  2112. margin: 10px 10px 10px 0;
  2113. border-radius: 15px;
  2114. box-shadow: 0 0 6px 1px #dfdada;
  2115. "
  2116. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2117. :key="wIndex"
  2118. :class="w.type == 1 ? 'isTypeOne' : ''"
  2119. >
  2120. <div class="workImg">
  2121. <img :src="word2" @click="downloadFile(w.works)" alt />
  2122. <div
  2123. class="answerScore"
  2124. v-if="w.score"
  2125. @click.stop="openScore(w)"
  2126. :class="{
  2127. rightW:
  2128. w.userid == userid ||
  2129. tType == 1 ||
  2130. tType == 4 ||
  2131. w.ateacher == userid,
  2132. }"
  2133. >
  2134. {{ JSON.parse(w.score).wScore }}分
  2135. </div>
  2136. <div
  2137. class="answerScore"
  2138. @click.stop="openScore(w)"
  2139. v-else-if="courseDetail.userid == userid"
  2140. :class="{
  2141. rightW:
  2142. w.userid == userid ||
  2143. tType == 1 ||
  2144. tType == 4 ||
  2145. w.ateacher == userid,
  2146. }"
  2147. >
  2148. 评分
  2149. </div>
  2150. <img
  2151. class="deleteImg"
  2152. src="../../assets/deleteworks.png"
  2153. v-if="w.userid == userid || tType == 1 || tType == 4"
  2154. @click.stop="deleteWorks(w.wid)"
  2155. alt
  2156. />
  2157. </div>
  2158. <div class="comment" style="min-width: 200px">
  2159. <div class="worksName">
  2160. <div>{{ w.sName }}</div>
  2161. </div>
  2162. <div class="commentList">
  2163. <div class="commentList">
  2164. <div
  2165. class="commentImg"
  2166. @click="
  2167. isLikes(w.wid, userid, 1, null, w.isLikes)
  2168. "
  2169. >
  2170. <img
  2171. :src="w.isLikes == true ? likes : noLikes"
  2172. alt=""
  2173. />
  2174. </div>
  2175. <div>{{ w.likesCount }}</div>
  2176. </div>
  2177. <div class="commentList" style="margin-right: 15px">
  2178. <div
  2179. class="commentImg"
  2180. @click="commentOther(w, toolIndex, wIndex)"
  2181. >
  2182. <img
  2183. src="../../assets/icon/comment/comment.png"
  2184. alt=""
  2185. />
  2186. </div>
  2187. <div>{{ w.commentCount }}</div>
  2188. </div>
  2189. </div>
  2190. </div>
  2191. </div>
  2192. </div>
  2193. </div>
  2194. <div
  2195. v-if="
  2196. tType &&
  2197. ((tType == 2 && sIsOpen == true) ||
  2198. tType == 1 ||
  2199. tType == 4) &&
  2200. tool.tool.indexOf(57) != -1
  2201. "
  2202. class="worksBox"
  2203. >
  2204. <div
  2205. class="zuoyeYulan"
  2206. v-if="
  2207. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2208. "
  2209. >
  2210. <div class="worksTop">
  2211. <div>作业预览</div>
  2212. </div>
  2213. </div>
  2214. <div
  2215. class="worksDetailBox"
  2216. v-if="
  2217. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2218. "
  2219. >
  2220. <div
  2221. class="works"
  2222. style="
  2223. width: 200px;
  2224. height: 140px;
  2225. margin: 10px 10px 10px 0;
  2226. border-radius: 15px;
  2227. box-shadow: 0 0 6px 1px #dfdada;
  2228. "
  2229. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2230. :key="wIndex"
  2231. :class="w.type == 1 ? 'isTypeOne' : ''"
  2232. >
  2233. <div class="workImg">
  2234. <img
  2235. :src="word2"
  2236. @click="downloadFile(w.works)"
  2237. v-if="w.type == 12"
  2238. alt
  2239. />
  2240. <img
  2241. :src="word2"
  2242. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  2243. v-else-if="w.type == 15"
  2244. alt
  2245. />
  2246. <div
  2247. class="answerScore"
  2248. v-if="w.score"
  2249. @click.stop="openScore(w)"
  2250. :class="{
  2251. rightW:
  2252. w.userid == userid ||
  2253. tType == 1 ||
  2254. tType == 4 ||
  2255. w.ateacher == userid,
  2256. }"
  2257. >
  2258. {{ JSON.parse(w.score).wScore }}分
  2259. </div>
  2260. <div
  2261. class="answerScore"
  2262. @click.stop="openScore(w)"
  2263. v-else-if="courseDetail.userid == userid"
  2264. :class="{
  2265. rightW:
  2266. w.userid == userid ||
  2267. tType == 1 ||
  2268. tType == 4 ||
  2269. w.ateacher == userid,
  2270. }"
  2271. >
  2272. 评分
  2273. </div>
  2274. <img
  2275. class="deleteImg"
  2276. src="../../assets/deleteworks.png"
  2277. v-if="w.userid == userid || tType == 1 || tType == 4"
  2278. @click.stop="deleteWorks(w.wid)"
  2279. alt
  2280. />
  2281. </div>
  2282. <div class="comment" style="min-width: 200px">
  2283. <div class="worksName">
  2284. <div>{{ w.sName }}</div>
  2285. </div>
  2286. <div class="commentList">
  2287. <div class="commentList">
  2288. <div
  2289. class="commentImg"
  2290. @click="
  2291. isLikes(w.wid, userid, 1, null, w.isLikes)
  2292. "
  2293. >
  2294. <img
  2295. :src="w.isLikes == true ? likes : noLikes"
  2296. alt=""
  2297. />
  2298. </div>
  2299. <div>{{ w.likesCount }}</div>
  2300. </div>
  2301. <div class="commentList" style="margin-right: 15px">
  2302. <div
  2303. class="commentImg"
  2304. @click="commentOther(w, toolIndex, wIndex)"
  2305. >
  2306. <img
  2307. src="../../assets/icon/comment/comment.png"
  2308. alt=""
  2309. />
  2310. </div>
  2311. <div>{{ w.commentCount }}</div>
  2312. </div>
  2313. </div>
  2314. </div>
  2315. </div>
  2316. </div>
  2317. </div>
  2318. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  2319. <div
  2320. class="zuoyeYulan"
  2321. v-if="
  2322. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2323. "
  2324. >
  2325. <span>作业预览</span>
  2326. </div>
  2327. <div
  2328. class="worksDetailBox"
  2329. v-if="
  2330. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2331. "
  2332. >
  2333. <div
  2334. class="works"
  2335. style="
  2336. width: 200px;
  2337. height: 140px;
  2338. margin: 10px 10px 10px 0;
  2339. border-radius: 15px;
  2340. box-shadow: 0 0 6px 1px #dfdada;
  2341. "
  2342. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2343. :key="wIndex"
  2344. :class="w.type == 1 ? 'isTypeOne' : ''"
  2345. >
  2346. <div class="workImg" v-if="w.type == 0">
  2347. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2348. <img :src="w.works" @click="previewImg(w.works)" alt />
  2349. <div
  2350. class="answerScore"
  2351. v-if="w.score"
  2352. @click.stop="openScore(w)"
  2353. :class="{
  2354. rightW:
  2355. w.userid == userid ||
  2356. tType == 1 ||
  2357. tType == 4 ||
  2358. w.ateacher == userid,
  2359. }"
  2360. >
  2361. {{ JSON.parse(w.score).wScore }}分
  2362. </div>
  2363. <div
  2364. class="answerScore"
  2365. @click.stop="openScore(w)"
  2366. v-else-if="courseDetail.userid == userid"
  2367. :class="{
  2368. rightW:
  2369. w.userid == userid ||
  2370. tType == 1 ||
  2371. tType == 4 ||
  2372. w.ateacher == userid,
  2373. }"
  2374. >
  2375. 评分
  2376. </div>
  2377. <img
  2378. class="deleteImg"
  2379. src="../../assets/deleteworks.png"
  2380. v-if="w.userid == userid || tType == 1 || tType == 4"
  2381. @click.stop="deleteWorks(w.wid)"
  2382. alt
  2383. />
  2384. </div>
  2385. <div
  2386. class="workImg"
  2387. style="cursor: pointer"
  2388. v-if="w.type == 1"
  2389. >
  2390. <img :src="word" @click="openFile(w.works)" alt />
  2391. <!-- @click="openFile(w.works)" -->
  2392. <div
  2393. class="answerScore"
  2394. v-if="w.score"
  2395. @click.stop="openScore(w)"
  2396. :class="{
  2397. rightW:
  2398. w.userid == userid ||
  2399. tType == 1 ||
  2400. tType == 4 ||
  2401. w.ateacher == userid,
  2402. }"
  2403. >
  2404. {{ JSON.parse(w.score).wScore }}分
  2405. </div>
  2406. <div
  2407. class="answerScore"
  2408. @click.stop="openScore(w)"
  2409. v-else-if="courseDetail.userid == userid"
  2410. :class="{
  2411. rightW:
  2412. w.userid == userid ||
  2413. tType == 1 ||
  2414. tType == 4 ||
  2415. w.ateacher == userid,
  2416. }"
  2417. >
  2418. 评分
  2419. </div>
  2420. <img
  2421. class="deleteImg"
  2422. src="../../assets/deleteworks.png"
  2423. v-if="w.userid == userid || tType == 1 || tType == 4"
  2424. @click.stop="deleteWorks(w.wid)"
  2425. alt
  2426. />
  2427. </div>
  2428. <div class="workImg" v-if="w.type == 3">
  2429. <img
  2430. style="cursor: pointer"
  2431. :src="video"
  2432. @click="openVideo(w)"
  2433. alt
  2434. />
  2435. <!-- @click="openVideo(w.works)" -->
  2436. <div
  2437. class="answerScore"
  2438. v-if="w.score"
  2439. @click.stop="openScore(w)"
  2440. :class="{
  2441. rightW:
  2442. w.userid == userid ||
  2443. tType == 1 ||
  2444. tType == 4 ||
  2445. w.ateacher == userid,
  2446. }"
  2447. >
  2448. {{ JSON.parse(w.score).wScore }}分
  2449. </div>
  2450. <div
  2451. class="answerScore"
  2452. @click.stop="openScore(w)"
  2453. v-else-if="courseDetail.userid == userid"
  2454. :class="{
  2455. rightW:
  2456. w.userid == userid ||
  2457. tType == 1 ||
  2458. tType == 4 ||
  2459. w.ateacher == userid,
  2460. }"
  2461. >
  2462. 评分
  2463. </div>
  2464. <img
  2465. class="deleteImg"
  2466. src="../../assets/deleteworks.png"
  2467. v-if="w.userid == userid || tType == 1 || tType == 4"
  2468. @click.stop="deleteWorks(w.wid)"
  2469. alt
  2470. />
  2471. </div>
  2472. <div class="comment" style="min-width: 200px">
  2473. <div class="worksName">
  2474. <div
  2475. style="cursor: pointer"
  2476. @click="
  2477. openSname(w.sName, w.wid, toolIndex, w.userid)
  2478. "
  2479. >
  2480. {{ w.sName }}
  2481. </div>
  2482. </div>
  2483. <div class="commentList">
  2484. <div class="commentList">
  2485. <div
  2486. class="commentImg"
  2487. @click="
  2488. isLikes(w.wid, userid, 1, null, w.isLikes)
  2489. "
  2490. >
  2491. <img
  2492. :src="w.isLikes == true ? likes : noLikes"
  2493. alt=""
  2494. />
  2495. </div>
  2496. <div>{{ w.likesCount }}</div>
  2497. </div>
  2498. <div class="commentList" style="margin-right: 15px">
  2499. <div
  2500. class="commentImg"
  2501. @click="commentOther(w, toolIndex, wIndex)"
  2502. >
  2503. <img
  2504. src="../../assets/icon/comment/comment.png"
  2505. alt=""
  2506. />
  2507. </div>
  2508. <div>{{ w.commentCount }}</div>
  2509. </div>
  2510. </div>
  2511. </div>
  2512. </div>
  2513. </div>
  2514. </div>
  2515. <div
  2516. v-if="
  2517. tType &&
  2518. ((tType == 2 && sIsOpen == true) ||
  2519. tType == 1 ||
  2520. tType == 4) &&
  2521. tool.tool.indexOf(4) != -1
  2522. "
  2523. class="worksBox"
  2524. >
  2525. <div
  2526. class="zuoyeYulan"
  2527. v-if="
  2528. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2529. "
  2530. >
  2531. <div class="worksTop">
  2532. <div>作业预览</div>
  2533. </div>
  2534. </div>
  2535. <div>
  2536. <div
  2537. class="worksDetailBox"
  2538. v-if="
  2539. worksTeacher.length &&
  2540. worksTeacher[toolIndex].length > 0
  2541. "
  2542. >
  2543. <div
  2544. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2545. :key="wIndex"
  2546. class="isWorksName"
  2547. @click="
  2548. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2549. "
  2550. >
  2551. {{ w.sName }}
  2552. <img
  2553. class="deleteImg deleteImg2"
  2554. src="../../assets/deleteworks.png"
  2555. v-if="w.userid == userid || tType == 1 || tType == 4"
  2556. @click.stop="deleteWorks(w.wid)"
  2557. alt
  2558. />
  2559. </div>
  2560. </div>
  2561. </div>
  2562. </div>
  2563. <div
  2564. v-if="
  2565. tType &&
  2566. ((tType == 2 && sIsOpen == true) ||
  2567. tType == 1 ||
  2568. tType == 4) &&
  2569. tool.tool.indexOf(45) != -1
  2570. "
  2571. class="worksBox"
  2572. >
  2573. <div
  2574. class="zuoyeYulan"
  2575. v-if="
  2576. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2577. "
  2578. >
  2579. <div class="worksTop">
  2580. <div>作业预览</div>
  2581. </div>
  2582. </div>
  2583. <div>
  2584. <div
  2585. class="worksDetailBox"
  2586. v-if="
  2587. worksTeacher.length &&
  2588. worksTeacher[toolIndex].length > 0
  2589. "
  2590. >
  2591. <div
  2592. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2593. :key="wIndex"
  2594. class="isWorksName"
  2595. @click="
  2596. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2597. "
  2598. >
  2599. {{ w.sName }}
  2600. <img
  2601. class="deleteImg deleteImg2"
  2602. src="../../assets/deleteworks.png"
  2603. v-if="w.userid == userid || tType == 1 || tType == 4"
  2604. @click.stop="deleteWorks(w.wid)"
  2605. alt
  2606. />
  2607. </div>
  2608. </div>
  2609. </div>
  2610. </div>
  2611. <div
  2612. v-if="
  2613. tType &&
  2614. ((tType == 2 && sIsOpen == true) ||
  2615. tType == 1 ||
  2616. tType == 4) &&
  2617. tool.tool.indexOf(15) != -1
  2618. "
  2619. class="worksBox"
  2620. >
  2621. <div
  2622. class="zuoyeYulan"
  2623. v-if="
  2624. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2625. "
  2626. >
  2627. <div class="worksTop">
  2628. <div>作业预览</div>
  2629. </div>
  2630. </div>
  2631. <div
  2632. class="worksDetailBox"
  2633. v-if="
  2634. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2635. "
  2636. >
  2637. <div
  2638. class="works"
  2639. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2640. :key="wIndex"
  2641. >
  2642. <div
  2643. class="workImg"
  2644. style="
  2645. border-radius: 15px;
  2646. box-shadow: #eee 0px 0px 5px 5px;
  2647. "
  2648. >
  2649. <!-- <img
  2650. src="../../assets/icon/works/noImg.png"
  2651. @click="openTools(15, toolIndex, taskCount, w.works)"
  2652. alt=""
  2653. />-->
  2654. <div
  2655. class="answerBg"
  2656. style="border-radius: 15px 15px 0 0"
  2657. @click="commentOther(w, toolIndex, wIndex)"
  2658. >
  2659. <!-- <div>{{ w.sName }}</div> -->
  2660. <div class="answerContent">
  2661. {{ JSON.parse(w.works)[0].answer }}
  2662. </div>
  2663. <div
  2664. class="answerScore"
  2665. v-if="w.score"
  2666. @click.stop="openScore(w)"
  2667. :class="{
  2668. rightW:
  2669. w.userid == userid || tType == 1 || tType == 4,
  2670. }"
  2671. >
  2672. {{ JSON.parse(w.score).wScore }}分
  2673. </div>
  2674. <div
  2675. class="answerScore"
  2676. @click.stop="openScore(w)"
  2677. v-else-if="courseDetail.userid == userid"
  2678. :class="{
  2679. rightW:
  2680. w.userid == userid || tType == 1 || tType == 4,
  2681. }"
  2682. >
  2683. 评分
  2684. </div>
  2685. <img
  2686. class="deleteImg"
  2687. src="../../assets/deleteworks.png"
  2688. v-if="
  2689. w.userid == userid || tType == 1 || tType == 4
  2690. "
  2691. @click.stop="deleteWorks(w.wid)"
  2692. alt
  2693. />
  2694. </div>
  2695. <div class="comment">
  2696. <div class="worksName">
  2697. <div>{{ w.sName }}</div>
  2698. </div>
  2699. <div class="commentList">
  2700. <div
  2701. class="commentImg"
  2702. @click="
  2703. isLikes(w.wid, userid, 1, null, w.isLikes)
  2704. "
  2705. >
  2706. <img
  2707. :src="w.isLikes == true ? likes : noLikes"
  2708. alt=""
  2709. />
  2710. </div>
  2711. <div>{{ w.likesCount }}</div>
  2712. </div>
  2713. <div class="commentList" style="margin-right: 15px">
  2714. <div
  2715. class="commentImg"
  2716. @click="commentOther(w, toolIndex, wIndex)"
  2717. >
  2718. <img
  2719. src="../../assets/icon/comment/comment.png"
  2720. alt=""
  2721. />
  2722. </div>
  2723. <div>{{ w.commentCount }}</div>
  2724. </div>
  2725. </div>
  2726. </div>
  2727. </div>
  2728. </div>
  2729. </div>
  2730. <div
  2731. v-if="
  2732. tType &&
  2733. ((tType == 2 && sIsOpen == true) ||
  2734. tType == 1 ||
  2735. tType == 4) &&
  2736. tool.tool.indexOf(1) != -1
  2737. "
  2738. class="worksBox"
  2739. >
  2740. <div
  2741. class="zuoyeYulan"
  2742. v-if="
  2743. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2744. "
  2745. >
  2746. <div class="worksTop">
  2747. <div>作业预览</div>
  2748. </div>
  2749. </div>
  2750. <div
  2751. class="worksDetailBox"
  2752. v-if="
  2753. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2754. "
  2755. >
  2756. <div
  2757. class="works"
  2758. style="
  2759. width: 200px;
  2760. height: 140px;
  2761. margin: 10px 10px 10px 0;
  2762. border-radius: 15px;
  2763. box-shadow: 0 0 6px 1px #dfdada;
  2764. "
  2765. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2766. :key="wIndex"
  2767. >
  2768. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2769. <div class="workImg">
  2770. <img :src="w.works" @click="previewImg(w.works)" alt />
  2771. <div
  2772. class="answerScore"
  2773. v-if="w.score"
  2774. @click.stop="openScore(w)"
  2775. :class="{
  2776. rightW:
  2777. w.userid == userid || tType == 1 || tType == 4,
  2778. }"
  2779. >
  2780. {{ JSON.parse(w.score).wScore }}分
  2781. </div>
  2782. <div
  2783. class="answerScore"
  2784. @click.stop="openScore(w)"
  2785. v-else-if="courseDetail.userid == userid"
  2786. :class="{
  2787. rightW:
  2788. w.userid == userid || tType == 1 || tType == 4,
  2789. }"
  2790. >
  2791. 评分
  2792. </div>
  2793. <img
  2794. class="deleteImg"
  2795. src="../../assets/deleteworks.png"
  2796. v-if="w.userid == userid || tType == 1 || tType == 4"
  2797. @click.stop="deleteWorks(w.wid)"
  2798. alt
  2799. />
  2800. </div>
  2801. <div class="comment" style="min-width: 200px">
  2802. <div class="worksName">
  2803. <div>{{ w.sName }}</div>
  2804. </div>
  2805. <div class="commentList">
  2806. <div class="commentList">
  2807. <div
  2808. class="commentImg"
  2809. @click="
  2810. isLikes(w.wid, userid, 1, null, w.isLikes)
  2811. "
  2812. >
  2813. <img
  2814. :src="w.isLikes == true ? likes : noLikes"
  2815. alt=""
  2816. />
  2817. </div>
  2818. <div>{{ w.likesCount }}</div>
  2819. </div>
  2820. <div class="commentList" style="margin-right: 15px">
  2821. <div
  2822. class="commentImg"
  2823. @click="commentOther(w, toolIndex, wIndex)"
  2824. >
  2825. <img
  2826. src="../../assets/icon/comment/comment.png"
  2827. alt=""
  2828. />
  2829. </div>
  2830. <div>{{ w.commentCount }}</div>
  2831. </div>
  2832. </div>
  2833. </div>
  2834. </div>
  2835. </div>
  2836. </div>
  2837. <div
  2838. v-if="
  2839. tType &&
  2840. ((tType == 2 && sIsOpen == true) ||
  2841. tType == 1 ||
  2842. tType == 4) &&
  2843. tool.tool.indexOf(3) != -1
  2844. "
  2845. class="worksBox"
  2846. >
  2847. <div
  2848. class="zuoyeYulan"
  2849. v-if="
  2850. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2851. "
  2852. >
  2853. <div class="worksTop">
  2854. <div>作业预览</div>
  2855. </div>
  2856. </div>
  2857. <div
  2858. class="worksDetailBox"
  2859. v-if="
  2860. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2861. "
  2862. >
  2863. <div
  2864. class="works"
  2865. style="
  2866. width: 200px;
  2867. height: 140px;
  2868. margin: 10px 10px 10px 0;
  2869. border-radius: 15px;
  2870. box-shadow: 0 0 6px 1px #dfdada;
  2871. "
  2872. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2873. :key="wIndex"
  2874. >
  2875. <!-- @click="previewImg(w.works)" -->
  2876. <div class="workImg">
  2877. <img :src="w.works" @click="previewImg(w.works)" alt />
  2878. <div
  2879. class="answerScore"
  2880. v-if="w.score"
  2881. @click.stop="openScore(w)"
  2882. :class="{
  2883. rightW:
  2884. w.userid == userid || tType == 1 || tType == 4,
  2885. }"
  2886. >
  2887. {{ JSON.parse(w.score).wScore }}分
  2888. </div>
  2889. <div
  2890. class="answerScore"
  2891. @click.stop="openScore(w)"
  2892. v-else-if="courseDetail.userid == userid"
  2893. :class="{
  2894. rightW:
  2895. w.userid == userid || tType == 1 || tType == 4,
  2896. }"
  2897. >
  2898. 评分
  2899. </div>
  2900. <img
  2901. class="deleteImg"
  2902. src="../../assets/deleteworks.png"
  2903. v-if="w.userid == userid || tType == 1 || tType == 4"
  2904. @click.stop="deleteWorks(w.wid)"
  2905. alt
  2906. />
  2907. </div>
  2908. <div class="comment" style="min-width: 200px">
  2909. <div class="worksName">
  2910. <div>{{ w.sName }}</div>
  2911. </div>
  2912. <div class="commentList">
  2913. <div class="commentList">
  2914. <div
  2915. class="commentImg"
  2916. @click="
  2917. isLikes(w.wid, userid, 1, null, w.isLikes)
  2918. "
  2919. >
  2920. <img
  2921. :src="w.isLikes == true ? likes : noLikes"
  2922. alt=""
  2923. />
  2924. </div>
  2925. <div>{{ w.likesCount }}</div>
  2926. </div>
  2927. <div class="commentList" style="margin-right: 15px">
  2928. <div
  2929. class="commentImg"
  2930. @click="commentOther(w, toolIndex, wIndex)"
  2931. >
  2932. <img
  2933. src="../../assets/icon/comment/comment.png"
  2934. alt=""
  2935. />
  2936. </div>
  2937. <div>{{ w.commentCount }}</div>
  2938. </div>
  2939. </div>
  2940. </div>
  2941. </div>
  2942. </div>
  2943. </div>
  2944. <div
  2945. v-if="
  2946. tType &&
  2947. ((tType == 2 && sIsOpen == true) ||
  2948. tType == 1 ||
  2949. tType == 4) &&
  2950. tool.tool.indexOf(6) != -1
  2951. "
  2952. class="worksBox"
  2953. >
  2954. <div
  2955. class="zuoyeYulan"
  2956. v-if="
  2957. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2958. "
  2959. >
  2960. <div class="worksTop">
  2961. <div>作业预览</div>
  2962. </div>
  2963. </div>
  2964. <div
  2965. class="worksDetailBox"
  2966. v-if="
  2967. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2968. "
  2969. >
  2970. <div
  2971. class="works"
  2972. style="
  2973. width: 200px;
  2974. height: 140px;
  2975. margin: 10px 10px 10px 0;
  2976. border-radius: 15px;
  2977. box-shadow: 0 0 6px 1px #dfdada;
  2978. "
  2979. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2980. :key="wIndex"
  2981. >
  2982. <!-- @click="previewImg(w.works)" -->
  2983. <div class="workImg">
  2984. <img :src="w.works" @click="previewImg(w.works)" alt />
  2985. <div
  2986. class="answerScore"
  2987. v-if="w.score"
  2988. @click.stop="openScore(w)"
  2989. :class="{
  2990. rightW:
  2991. w.userid == userid || tType == 1 || tType == 4,
  2992. }"
  2993. >
  2994. {{ JSON.parse(w.score).wScore }}分
  2995. </div>
  2996. <div
  2997. class="answerScore"
  2998. @click.stop="openScore(w)"
  2999. v-else-if="courseDetail.userid == userid"
  3000. :class="{
  3001. rightW:
  3002. w.userid == userid || tType == 1 || tType == 4,
  3003. }"
  3004. >
  3005. 评分
  3006. </div>
  3007. <img
  3008. class="deleteImg"
  3009. src="../../assets/deleteworks.png"
  3010. v-if="w.userid == userid || tType == 1 || tType == 4"
  3011. @click.stop="deleteWorks(w.wid)"
  3012. alt
  3013. />
  3014. </div>
  3015. <div class="comment" style="min-width: 200px">
  3016. <div class="worksName">
  3017. <div>{{ w.sName }}</div>
  3018. </div>
  3019. <div class="commentList">
  3020. <div class="commentList">
  3021. <div
  3022. class="commentImg"
  3023. @click="
  3024. isLikes(w.wid, userid, 1, null, w.isLikes)
  3025. "
  3026. >
  3027. <img
  3028. :src="w.isLikes == true ? likes : noLikes"
  3029. alt=""
  3030. />
  3031. </div>
  3032. <div>{{ w.likesCount }}</div>
  3033. </div>
  3034. <div class="commentList" style="margin-right: 15px">
  3035. <div
  3036. class="commentImg"
  3037. @click="commentOther(w, toolIndex, wIndex)"
  3038. >
  3039. <img
  3040. src="../../assets/icon/comment/comment.png"
  3041. alt=""
  3042. />
  3043. </div>
  3044. <div>{{ w.commentCount }}</div>
  3045. </div>
  3046. </div>
  3047. </div>
  3048. </div>
  3049. </div>
  3050. </div>
  3051. <div
  3052. v-if="
  3053. tType &&
  3054. ((tType == 2 && sIsOpen == true) ||
  3055. tType == 1 ||
  3056. tType == 4) &&
  3057. tool.tool.indexOf(7) != -1
  3058. "
  3059. class="worksBox"
  3060. >
  3061. <div
  3062. class="zuoyeYulan"
  3063. v-if="
  3064. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3065. "
  3066. >
  3067. <div class="worksTop">
  3068. <div>作业预览</div>
  3069. </div>
  3070. </div>
  3071. <div
  3072. class="worksDetailBox"
  3073. v-if="
  3074. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3075. "
  3076. >
  3077. <div
  3078. class="works"
  3079. style="
  3080. width: 200px;
  3081. height: 140px;
  3082. margin: 10px 10px 10px 0;
  3083. border-radius: 15px;
  3084. box-shadow: 0 0 6px 1px #dfdada;
  3085. "
  3086. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3087. :key="wIndex"
  3088. >
  3089. <!-- @click="previewImg(w.works)" -->
  3090. <div class="workImg">
  3091. <img :src="w.works" @click="previewImg(w.works)" alt />
  3092. <div
  3093. class="answerScore"
  3094. v-if="w.score"
  3095. @click.stop="openScore(w)"
  3096. :class="{
  3097. rightW:
  3098. w.userid == userid || tType == 1 || tType == 4,
  3099. }"
  3100. >
  3101. {{ JSON.parse(w.score).wScore }}分
  3102. </div>
  3103. <div
  3104. class="answerScore"
  3105. @click.stop="openScore(w)"
  3106. v-else-if="courseDetail.userid == userid"
  3107. :class="{
  3108. rightW:
  3109. w.userid == userid || tType == 1 || tType == 4,
  3110. }"
  3111. >
  3112. 评分
  3113. </div>
  3114. <img
  3115. class="deleteImg"
  3116. src="../../assets/deleteworks.png"
  3117. v-if="w.userid == userid || tType == 1 || tType == 4"
  3118. @click.stop="deleteWorks(w.wid)"
  3119. alt
  3120. />
  3121. </div>
  3122. <div class="comment" style="min-width: 200px">
  3123. <div class="worksName">
  3124. <div>{{ w.sName }}</div>
  3125. </div>
  3126. <div class="commentList">
  3127. <div class="commentList">
  3128. <div
  3129. class="commentImg"
  3130. @click="
  3131. isLikes(w.wid, userid, 1, null, w.isLikes)
  3132. "
  3133. >
  3134. <img
  3135. :src="w.isLikes == true ? likes : noLikes"
  3136. alt=""
  3137. />
  3138. </div>
  3139. <div>{{ w.likesCount }}</div>
  3140. </div>
  3141. <div class="commentList" style="margin-right: 15px">
  3142. <div
  3143. class="commentImg"
  3144. @click="commentOther(w, toolIndex, wIndex)"
  3145. >
  3146. <img
  3147. src="../../assets/icon/comment/comment.png"
  3148. alt=""
  3149. />
  3150. </div>
  3151. <div>{{ w.commentCount }}</div>
  3152. </div>
  3153. </div>
  3154. </div>
  3155. </div>
  3156. </div>
  3157. </div>
  3158. <div
  3159. v-if="
  3160. tType &&
  3161. ((tType == 2 && sIsOpen == true) ||
  3162. tType == 1 ||
  3163. tType == 4) &&
  3164. tool.tool.indexOf(26) != -1
  3165. "
  3166. class="worksBox"
  3167. >
  3168. <div
  3169. class="zuoyeYulan"
  3170. v-if="
  3171. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3172. "
  3173. >
  3174. <div class="worksTop">
  3175. <div>作业预览</div>
  3176. </div>
  3177. </div>
  3178. <div
  3179. class="worksDetailBox"
  3180. v-if="
  3181. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3182. "
  3183. >
  3184. <div
  3185. class="works"
  3186. style="width: 240px; height: 140px; overflow: hidden"
  3187. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3188. :key="wIndex"
  3189. :class="w.type == 1 ? 'isTypeOne' : ''"
  3190. >
  3191. <div class="workImg" v-if="w.type == 0">
  3192. <img :src="w.works" @click="previewImg(w.works)" alt />
  3193. <img
  3194. class="deleteImg"
  3195. src="../../assets/deleteworks.png"
  3196. v-if="w.userid == userid || tType == 1 || tType == 4"
  3197. @click.stop="deleteWorks(w.wid)"
  3198. alt
  3199. />
  3200. </div>
  3201. <div class="workImg" v-if="w.type == 1">
  3202. <img :src="word" @click="openFile(w.works)" alt />
  3203. <img
  3204. class="deleteImg"
  3205. src="../../assets/deleteworks.png"
  3206. v-if="w.userid == userid || tType == 1 || tType == 4"
  3207. @click.stop="deleteWorks(w.wid)"
  3208. alt
  3209. />
  3210. </div>
  3211. <div class="worksName">
  3212. <div>{{ w.sName }}</div>
  3213. </div>
  3214. </div>
  3215. </div>
  3216. </div>
  3217. <div
  3218. v-if="
  3219. tType &&
  3220. ((tType == 2 && sIsOpen == true) ||
  3221. tType == 1 ||
  3222. tType == 4) &&
  3223. tool.tool.indexOf(40) != -1
  3224. "
  3225. class="worksBox"
  3226. >
  3227. <div
  3228. class="zuoyeYulan"
  3229. v-if="
  3230. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3231. "
  3232. >
  3233. <div class="worksTop">
  3234. <div>作业预览</div>
  3235. </div>
  3236. </div>
  3237. <div
  3238. class="worksDetailBox"
  3239. v-if="
  3240. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3241. "
  3242. >
  3243. <div
  3244. class="works"
  3245. style="
  3246. width: 200px;
  3247. height: 140px;
  3248. margin: 10px 10px 10px 0;
  3249. border-radius: 15px;
  3250. box-shadow: 0 0 6px 1px #dfdada;
  3251. "
  3252. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3253. :key="wIndex"
  3254. :class="w.type == 1 ? 'isTypeOne' : ''"
  3255. >
  3256. <div class="workImg">
  3257. <img
  3258. src="../../assets/icon/works/noImg.png"
  3259. @click="openPj(w.works, toolIndex)"
  3260. alt
  3261. />
  3262. <img
  3263. class="deleteImg"
  3264. src="../../assets/deleteworks.png"
  3265. v-if="w.userid == userid || tType == 1 || tType == 4"
  3266. @click.stop="deleteWorks(w.wid)"
  3267. alt
  3268. />
  3269. </div>
  3270. <div class="comment" style="min-width: 200px">
  3271. <div class="worksName">
  3272. <div>{{ w.sName }}</div>
  3273. </div>
  3274. <div class="commentList">
  3275. <div class="commentList">
  3276. <div
  3277. class="commentImg"
  3278. @click="
  3279. isLikes(w.wid, userid, 1, null, w.isLikes)
  3280. "
  3281. >
  3282. <img
  3283. :src="w.isLikes == true ? likes : noLikes"
  3284. alt=""
  3285. />
  3286. </div>
  3287. <div>{{ w.likesCount }}</div>
  3288. </div>
  3289. <div class="commentList" style="margin-right: 15px">
  3290. <div
  3291. class="commentImg"
  3292. @click="commentOther(w, toolIndex, wIndex)"
  3293. >
  3294. <img
  3295. src="../../assets/icon/comment/comment.png"
  3296. alt=""
  3297. />
  3298. </div>
  3299. <div>{{ w.commentCount }}</div>
  3300. </div>
  3301. </div>
  3302. </div>
  3303. </div>
  3304. </div>
  3305. </div>
  3306. <div
  3307. v-if="
  3308. tType &&
  3309. ((tType == 2 && sIsOpen == true) ||
  3310. tType == 1 ||
  3311. tType == 4) &&
  3312. tool.tool.indexOf(41) != -1
  3313. "
  3314. class="worksBox"
  3315. >
  3316. <div
  3317. class="zuoyeYulan"
  3318. v-if="
  3319. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3320. "
  3321. >
  3322. <div class="worksTop">
  3323. <div>作业预览</div>
  3324. </div>
  3325. </div>
  3326. <div
  3327. class="worksDetailBox"
  3328. v-if="
  3329. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3330. "
  3331. >
  3332. <div
  3333. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3334. :key="wIndex"
  3335. class="isWorksName"
  3336. @click="openXz(w, toolIndex)"
  3337. >
  3338. {{ w.sName }}
  3339. <img
  3340. class="deleteImg deleteImg2"
  3341. src="../../assets/deleteworks.png"
  3342. v-if="w.userid == userid || tType == 1 || tType == 4"
  3343. @click.stop="deleteWorks(w.wid)"
  3344. alt
  3345. />
  3346. </div>
  3347. </div>
  3348. </div>
  3349. <div
  3350. v-if="
  3351. tType &&
  3352. ((tType == 2 && sIsOpen == true) ||
  3353. tType == 1 ||
  3354. tType == 4) &&
  3355. tool.tool.indexOf(47) != -1
  3356. "
  3357. class="worksBox"
  3358. >
  3359. <div
  3360. class="zuoyeYulan"
  3361. v-if="
  3362. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3363. "
  3364. >
  3365. <div class="worksTop">
  3366. <div>作业预览</div>
  3367. </div>
  3368. </div>
  3369. <div
  3370. class="worksDetailBox"
  3371. v-if="
  3372. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3373. "
  3374. >
  3375. <!-- @click="openXz(w, toolIndex)" -->
  3376. <div
  3377. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3378. :key="wIndex"
  3379. class="isWorksName"
  3380. @click="openSen(w, toolIndex)"
  3381. >
  3382. {{ w.sName }}
  3383. <img
  3384. class="deleteImg deleteImg2"
  3385. src="../../assets/deleteworks.png"
  3386. v-if="w.userid == userid || tType == 1 || tType == 4"
  3387. @click.stop="deleteWorks(w.wid)"
  3388. alt
  3389. />
  3390. </div>
  3391. </div>
  3392. </div>
  3393. <div
  3394. v-if="
  3395. tType &&
  3396. ((tType == 2 && sIsOpen == true) ||
  3397. tType == 1 ||
  3398. tType == 4) &&
  3399. tool.tool.indexOf(48) != -1
  3400. "
  3401. class="worksBox"
  3402. >
  3403. <div
  3404. class="zuoyeYulan"
  3405. v-if="
  3406. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3407. "
  3408. >
  3409. <div class="worksTop">
  3410. <div>作业预览</div>
  3411. </div>
  3412. </div>
  3413. <div
  3414. class="worksDetailBox"
  3415. v-if="
  3416. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3417. "
  3418. >
  3419. <div
  3420. class="works"
  3421. style="
  3422. width: 200px;
  3423. height: 140px;
  3424. margin: 10px 10px 10px 0;
  3425. border-radius: 15px;
  3426. box-shadow: 0 0 6px 1px #dfdada;
  3427. "
  3428. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3429. :key="wIndex"
  3430. :class="w.type == 1 ? 'isTypeOne' : ''"
  3431. >
  3432. <div class="workImg">
  3433. <img :src="word" @click="openTable(w)" alt />
  3434. <!-- @click="openFile(w.works)" -->
  3435. <div
  3436. class="answerScore"
  3437. v-if="w.score"
  3438. @click.stop="openScore(w)"
  3439. :class="{
  3440. rightW:
  3441. w.userid == userid ||
  3442. tType == 1 ||
  3443. tType == 4 ||
  3444. w.ateacher == userid,
  3445. }"
  3446. >
  3447. {{ JSON.parse(w.score).wScore }}分
  3448. </div>
  3449. <div
  3450. class="answerScore"
  3451. @click.stop="openScore(w)"
  3452. v-else-if="courseDetail.userid == userid"
  3453. :class="{
  3454. rightW:
  3455. w.userid == userid ||
  3456. tType == 1 ||
  3457. tType == 4 ||
  3458. w.ateacher == userid,
  3459. }"
  3460. >
  3461. 评分
  3462. </div>
  3463. <img
  3464. class="deleteImg"
  3465. src="../../assets/deleteworks.png"
  3466. v-if="w.userid == userid || tType == 1 || tType == 4"
  3467. @click.stop="deleteWorks(w.wid)"
  3468. alt
  3469. />
  3470. </div>
  3471. <div class="comment" style="min-width: 200px">
  3472. <div class="worksName">
  3473. <div>{{ w.sName }}</div>
  3474. </div>
  3475. <div class="commentList">
  3476. <div class="commentList">
  3477. <div
  3478. class="commentImg"
  3479. @click="
  3480. isLikes(w.wid, userid, 1, null, w.isLikes)
  3481. "
  3482. >
  3483. <img
  3484. :src="w.isLikes == true ? likes : noLikes"
  3485. alt=""
  3486. />
  3487. </div>
  3488. <div>{{ w.likesCount }}</div>
  3489. </div>
  3490. <div class="commentList" style="margin-right: 15px">
  3491. <div
  3492. class="commentImg"
  3493. @click="commentOther(w, toolIndex, wIndex)"
  3494. >
  3495. <img
  3496. src="../../assets/icon/comment/comment.png"
  3497. alt=""
  3498. />
  3499. </div>
  3500. <div>{{ w.commentCount }}</div>
  3501. </div>
  3502. </div>
  3503. </div>
  3504. </div>
  3505. </div>
  3506. </div>
  3507. <div
  3508. v-if="
  3509. tType &&
  3510. ((tType == 2 && sIsOpen == true) ||
  3511. tType == 1 ||
  3512. tType == 4) &&
  3513. tool.tool.indexOf(52) != -1
  3514. "
  3515. class="worksBox"
  3516. >
  3517. <div
  3518. class="zuoyeYulan"
  3519. v-if="
  3520. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3521. "
  3522. >
  3523. <div class="worksTop">
  3524. <div>作业预览</div>
  3525. </div>
  3526. </div>
  3527. <div
  3528. class="worksDetailBox"
  3529. v-if="
  3530. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3531. "
  3532. >
  3533. <div
  3534. class="works"
  3535. style="
  3536. width: 200px;
  3537. height: 140px;
  3538. margin: 10px 10px 10px 0;
  3539. border-radius: 15px;
  3540. box-shadow: 0 0 6px 1px #dfdada;
  3541. "
  3542. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3543. :key="wIndex"
  3544. :class="w.type == 1 ? 'isTypeOne' : ''"
  3545. >
  3546. <div class="workImg">
  3547. <img :src="word" @click="openWord(w)" alt />
  3548. <!-- @click="openFile(w.works)" -->
  3549. <div
  3550. class="answerScore"
  3551. v-if="w.score"
  3552. @click.stop="openScore(w)"
  3553. :class="{
  3554. rightW:
  3555. w.userid == userid ||
  3556. tType == 1 ||
  3557. tType == 4 ||
  3558. w.ateacher == userid,
  3559. }"
  3560. >
  3561. {{ JSON.parse(w.score).wScore }}分
  3562. </div>
  3563. <div
  3564. class="answerScore"
  3565. @click.stop="openScore(w)"
  3566. v-else-if="courseDetail.userid == userid"
  3567. :class="{
  3568. rightW:
  3569. w.userid == userid ||
  3570. tType == 1 ||
  3571. tType == 4 ||
  3572. w.ateacher == userid,
  3573. }"
  3574. >
  3575. 评分
  3576. </div>
  3577. <img
  3578. class="deleteImg"
  3579. src="../../assets/deleteworks.png"
  3580. v-if="w.userid == userid || tType == 1 || tType == 4"
  3581. @click.stop="deleteWorks(w.wid)"
  3582. alt
  3583. />
  3584. </div>
  3585. <div class="comment" style="min-width: 200px">
  3586. <div class="worksName">
  3587. <div>{{ w.sName }}</div>
  3588. </div>
  3589. <div class="commentList">
  3590. <div class="commentList">
  3591. <div
  3592. class="commentImg"
  3593. @click="
  3594. isLikes(w.wid, userid, 1, null, w.isLikes)
  3595. "
  3596. >
  3597. <img
  3598. :src="w.isLikes == true ? likes : noLikes"
  3599. alt=""
  3600. />
  3601. </div>
  3602. <div>{{ w.likesCount }}</div>
  3603. </div>
  3604. <div class="commentList" style="margin-right: 15px">
  3605. <div
  3606. class="commentImg"
  3607. @click="commentOther(w, toolIndex, wIndex)"
  3608. >
  3609. <img
  3610. src="../../assets/icon/comment/comment.png"
  3611. alt=""
  3612. />
  3613. </div>
  3614. <div>{{ w.commentCount }}</div>
  3615. </div>
  3616. </div>
  3617. </div>
  3618. </div>
  3619. </div>
  3620. </div>
  3621. </div>
  3622. </div>
  3623. <div class="vedioBox">
  3624. <div
  3625. v-if="
  3626. tType &&
  3627. ((tType == 2 && sIsOpen == true) ||
  3628. tType == 1 ||
  3629. tType == 4) &&
  3630. tool.tool.indexOf(4) != -1 &&
  3631. worksStudent.length &&
  3632. worksStudent[toolIndex].length &&
  3633. (tool.askJson[0].answer || tool.askJson[0].answer === 0) &&
  3634. checkJson[toolIndex].length
  3635. "
  3636. class="xuan_right_box"
  3637. >
  3638. <div
  3639. class="tool_right_box"
  3640. v-for="(item, index) in tool.askJson"
  3641. :key="index"
  3642. >
  3643. <div>
  3644. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  3645. </div>
  3646. <div class="right_box_xuan">
  3647. <span>正确率</span>
  3648. <span>{{
  3649. (checkJson[toolIndex][index].right
  3650. ? checkJson[toolIndex][index].right
  3651. : 0) + "%"
  3652. }}</span>
  3653. </div>
  3654. </div>
  3655. </div>
  3656. <div
  3657. class="xuan_right_box"
  3658. style="background: unset"
  3659. v-if="
  3660. tType &&
  3661. ((tType == 2 && sIsOpen == true) ||
  3662. tType == 1 ||
  3663. tType == 4) &&
  3664. tool.tool.indexOf(4) != -1 &&
  3665. worksStudent.length &&
  3666. worksStudent[toolIndex].length
  3667. "
  3668. >
  3669. <AskStatic
  3670. v-if="
  3671. worksStudent.length && worksStudent[toolIndex].length > 0
  3672. "
  3673. :askJSON="tool"
  3674. :checkJson="checkJson[toolIndex]"
  3675. ></AskStatic>
  3676. </div>
  3677. <div
  3678. v-if="
  3679. tType &&
  3680. ((tType == 2 && sIsOpen == true) ||
  3681. tType == 1 ||
  3682. tType == 4) &&
  3683. tool.tool.indexOf(45) != -1 &&
  3684. worksStudent.length &&
  3685. worksStudent[toolIndex].length &&
  3686. (tool.testJson.testJson[0].answer ||
  3687. tool.testJson.testJson[0].answer === 0) &&
  3688. checkJson[toolIndex].length
  3689. "
  3690. class="xuan_right_box"
  3691. >
  3692. <div
  3693. class="tool_right_box"
  3694. v-for="(item, index) in tool.testJson.testJson"
  3695. :key="index"
  3696. >
  3697. <div>
  3698. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  3699. </div>
  3700. <div class="right_box_xuan">
  3701. <span>正确率</span>
  3702. <span>{{
  3703. (checkJson[toolIndex][index].right
  3704. ? checkJson[toolIndex][index].right
  3705. : 0) + "%"
  3706. }}</span>
  3707. </div>
  3708. </div>
  3709. </div>
  3710. <div
  3711. class="xuan_right_box"
  3712. style="background: unset"
  3713. v-if="
  3714. tType &&
  3715. ((tType == 2 && sIsOpen == true) ||
  3716. tType == 1 ||
  3717. tType == 4) &&
  3718. tool.tool.indexOf(45) != -1 &&
  3719. worksStudent.length &&
  3720. worksStudent[toolIndex].length
  3721. "
  3722. >
  3723. <AskStatic2
  3724. v-if="
  3725. worksStudent.length && worksStudent[toolIndex].length > 0
  3726. "
  3727. :askJSON="tool"
  3728. :checkJson="checkJson[toolIndex]"
  3729. ></AskStatic2>
  3730. </div>
  3731. <div
  3732. v-if="
  3733. tType &&
  3734. ((tType == 2 && sIsOpen == true) ||
  3735. tType == 1 ||
  3736. tType == 4) &&
  3737. tool.tool.indexOf(41) != -1
  3738. "
  3739. >
  3740. <AnswerData2
  3741. v-if="
  3742. worksStudent.length && worksStudent[toolIndex].length > 0
  3743. "
  3744. :problemJson="tool.selectJson.answer"
  3745. :people="worksStudent[toolIndex]"
  3746. ></AnswerData2>
  3747. </div>
  3748. <div
  3749. v-if="
  3750. tType &&
  3751. ((tType == 2 && sIsOpen == true) ||
  3752. tType == 1 ||
  3753. tType == 4) &&
  3754. tool.tool.indexOf(47) != -1
  3755. "
  3756. >
  3757. <AnswerData
  3758. v-if="
  3759. checkJson[toolIndex].length &&
  3760. (tool.sentenceList || tool.sentenceList.length > 0)
  3761. "
  3762. :people="checkJson[toolIndex]"
  3763. ></AnswerData>
  3764. </div>
  3765. </div>
  3766. <div
  3767. class="vedioBox"
  3768. v-if="
  3769. noWorksS[toolIndex].length &&
  3770. arrayToArray(tool.tool, isWorkTool).length &&
  3771. false
  3772. "
  3773. >
  3774. <div
  3775. class="queTop"
  3776. style="
  3777. font-size: 20px;
  3778. padding: 15px 0 15px 30px;
  3779. font-weight: bold;
  3780. "
  3781. >
  3782. 学生工作区
  3783. </div>
  3784. <div class="tool_work_box">
  3785. <div
  3786. v-if="
  3787. tType &&
  3788. ((tType == 2 && sIsOpen == true) ||
  3789. tType == 1 ||
  3790. tType == 4) &&
  3791. tool.tool.indexOf(16) != -1
  3792. "
  3793. class="worksBox"
  3794. >
  3795. <div
  3796. class="zuoyeYulan"
  3797. v-if="
  3798. worksStudent2.length &&
  3799. worksStudent2[toolIndex].length > 0
  3800. "
  3801. >
  3802. <div class="worksTop">
  3803. <div>作业预览</div>
  3804. <div
  3805. class="corOpen"
  3806. @click="contract(toolIndex)"
  3807. v-if="
  3808. worksStudent2[toolIndex].length > 6 &&
  3809. isCloseList[toolIndex].isClose == 0
  3810. "
  3811. >
  3812. 收缩
  3813. </div>
  3814. <div
  3815. class="corOpen"
  3816. @click="contract(toolIndex)"
  3817. v-if="isCloseList[toolIndex].isClose == 1"
  3818. >
  3819. 展开
  3820. </div>
  3821. </div>
  3822. </div>
  3823. <div
  3824. class="worksDetailBox"
  3825. v-if="
  3826. worksStudent2.length &&
  3827. worksStudent2[toolIndex].length > 0
  3828. "
  3829. >
  3830. <div
  3831. class="works"
  3832. style="
  3833. width: 200px;
  3834. height: 140px;
  3835. margin: 10px 10px 10px 0;
  3836. border-radius: 15px;
  3837. box-shadow: 0 0 6px 1px #dfdada;
  3838. "
  3839. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3840. ? worksStudent2[toolIndex]
  3841. : worksStudent2[toolIndex].slice(0, 6)"
  3842. :key="wIndex"
  3843. :class="w.type == 1 ? 'isTypeOne' : ''"
  3844. >
  3845. <div class="workImg" v-if="w.type == 0">
  3846. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3847. <img :src="w.works" @click="previewImg(w.works)" alt />
  3848. <div
  3849. class="answerScore"
  3850. v-if="w.score"
  3851. @click.stop="openScore(w)"
  3852. :class="{
  3853. rightW:
  3854. w.userid == userid ||
  3855. tType == 1 ||
  3856. tType == 4 ||
  3857. w.ateacher == userid,
  3858. }"
  3859. >
  3860. {{ JSON.parse(w.score).wScore }}分
  3861. </div>
  3862. <div
  3863. class="answerScore"
  3864. @click.stop="openScore(w)"
  3865. v-else-if="courseDetail.userid == userid"
  3866. :class="{
  3867. rightW:
  3868. w.userid == userid ||
  3869. tType == 1 ||
  3870. tType == 4 ||
  3871. w.ateacher == userid,
  3872. }"
  3873. >
  3874. 评分
  3875. </div>
  3876. <img
  3877. class="deleteImg"
  3878. src="../../assets/deleteworks.png"
  3879. v-if="w.userid == userid || tType == 1 || tType == 4"
  3880. @click.stop="deleteWorks(w.wid)"
  3881. alt
  3882. />
  3883. </div>
  3884. <div class="workImg" v-if="w.type == 1">
  3885. <img :src="word" @click="openFile(w.works)" alt />
  3886. <!-- @click="openFile(w.works)" -->
  3887. <div
  3888. class="answerScore"
  3889. v-if="w.score"
  3890. @click.stop="openScore(w)"
  3891. :class="{
  3892. rightW:
  3893. w.userid == userid ||
  3894. tType == 1 ||
  3895. tType == 4 ||
  3896. w.ateacher == userid,
  3897. }"
  3898. >
  3899. {{ JSON.parse(w.score).wScore }}分
  3900. </div>
  3901. <div
  3902. class="answerScore"
  3903. @click.stop="openScore(w)"
  3904. v-else-if="courseDetail.userid == userid"
  3905. :class="{
  3906. rightW:
  3907. w.userid == userid ||
  3908. tType == 1 ||
  3909. tType == 4 ||
  3910. w.ateacher == userid,
  3911. }"
  3912. >
  3913. 评分
  3914. </div>
  3915. <img
  3916. class="deleteImg"
  3917. src="../../assets/deleteworks.png"
  3918. v-if="w.userid == userid || tType == 1 || tType == 4"
  3919. @click.stop="deleteWorks(w.wid)"
  3920. alt
  3921. />
  3922. </div>
  3923. <div class="workImg" v-if="w.type == 3">
  3924. <img
  3925. style="cursor: pointer"
  3926. :src="video"
  3927. @click="openVideo(w)"
  3928. alt
  3929. />
  3930. <!-- @click="openVideo(w.works)" -->
  3931. <div
  3932. class="answerScore"
  3933. v-if="w.score"
  3934. @click.stop="openScore(w)"
  3935. :class="{
  3936. rightW:
  3937. w.userid == userid ||
  3938. tType == 1 ||
  3939. tType == 4 ||
  3940. w.ateacher == userid,
  3941. }"
  3942. >
  3943. {{ JSON.parse(w.score).wScore }}分
  3944. </div>
  3945. <div
  3946. class="answerScore"
  3947. @click.stop="openScore(w)"
  3948. v-else-if="courseDetail.userid == userid"
  3949. :class="{
  3950. rightW:
  3951. w.userid == userid ||
  3952. tType == 1 ||
  3953. tType == 4 ||
  3954. w.ateacher == userid,
  3955. }"
  3956. >
  3957. 评分
  3958. </div>
  3959. <img
  3960. class="deleteImg"
  3961. src="../../assets/deleteworks.png"
  3962. v-if="w.userid == userid || tType == 1 || tType == 4"
  3963. @click.stop="deleteWorks(w.wid)"
  3964. alt
  3965. />
  3966. </div>
  3967. <div class="workImg" v-if="w.type == 12">
  3968. <img
  3969. style="cursor: pointer"
  3970. :src="word2"
  3971. @click="downloadFile(w.works)"
  3972. alt
  3973. />
  3974. <!-- @click="openVideo(w.works)" -->
  3975. <div
  3976. class="answerScore"
  3977. v-if="w.score"
  3978. @click.stop="openScore(w)"
  3979. :class="{
  3980. rightW:
  3981. w.userid == userid ||
  3982. tType == 1 ||
  3983. tType == 4 ||
  3984. w.ateacher == userid,
  3985. }"
  3986. >
  3987. {{ JSON.parse(w.score).wScore }}分
  3988. </div>
  3989. <div
  3990. class="answerScore"
  3991. @click.stop="openScore(w)"
  3992. v-else-if="courseDetail.userid == userid"
  3993. :class="{
  3994. rightW:
  3995. w.userid == userid ||
  3996. tType == 1 ||
  3997. tType == 4 ||
  3998. w.ateacher == userid,
  3999. }"
  4000. >
  4001. 评分
  4002. </div>
  4003. <img
  4004. class="deleteImg"
  4005. src="../../assets/deleteworks.png"
  4006. v-if="w.userid == userid || tType == 1 || tType == 4"
  4007. @click.stop="deleteWorks(w.wid)"
  4008. alt
  4009. />
  4010. </div>
  4011. <div class="comment" style="min-width: 200px">
  4012. <div class="worksName">
  4013. <div>{{ w.sName }}</div>
  4014. </div>
  4015. <div class="commentList">
  4016. <div class="commentList">
  4017. <div
  4018. class="commentImg"
  4019. @click="
  4020. isLikes(w.wid, userid, 1, null, w.isLikes)
  4021. "
  4022. >
  4023. <img
  4024. :src="w.isLikes == true ? likes : noLikes"
  4025. alt=""
  4026. />
  4027. </div>
  4028. <div>{{ w.likesCount }}</div>
  4029. </div>
  4030. <div class="commentList" style="margin-right: 15px">
  4031. <div
  4032. class="commentImg"
  4033. @click="commentOther(w, toolIndex, wIndex)"
  4034. >
  4035. <img
  4036. src="../../assets/icon/comment/comment.png"
  4037. alt=""
  4038. />
  4039. </div>
  4040. <div>{{ w.commentCount }}</div>
  4041. </div>
  4042. </div>
  4043. </div>
  4044. </div>
  4045. </div>
  4046. <div class="noWorksS">
  4047. <div
  4048. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4049. :key="sIndex"
  4050. class="noWorksName"
  4051. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4052. :class="{ isWork: s.type == '2' }"
  4053. >
  4054. {{ s.student }}
  4055. </div>
  4056. </div>
  4057. </div>
  4058. <div
  4059. v-if="
  4060. tType &&
  4061. ((tType == 2 && sIsOpen == true) ||
  4062. tType == 1 ||
  4063. tType == 4) &&
  4064. tool.tool.indexOf(32) != -1
  4065. "
  4066. class="worksBox"
  4067. >
  4068. <div
  4069. class="zuoyeYulan"
  4070. v-if="
  4071. worksStudent2.length &&
  4072. worksStudent2[toolIndex].length > 0
  4073. "
  4074. >
  4075. <div class="worksTop">
  4076. <div>作业预览</div>
  4077. <div
  4078. class="corOpen"
  4079. @click="contract(toolIndex)"
  4080. v-if="
  4081. worksStudent2[toolIndex].length > 6 &&
  4082. isCloseList[toolIndex].isClose == 0
  4083. "
  4084. >
  4085. 收缩
  4086. </div>
  4087. <div
  4088. class="corOpen"
  4089. @click="contract(toolIndex)"
  4090. v-if="isCloseList[toolIndex].isClose == 1"
  4091. >
  4092. 展开
  4093. </div>
  4094. </div>
  4095. </div>
  4096. <div
  4097. class="worksDetailBox"
  4098. v-if="
  4099. worksStudent2.length &&
  4100. worksStudent2[toolIndex].length > 0
  4101. "
  4102. >
  4103. <div
  4104. class="works"
  4105. style="
  4106. width: 200px;
  4107. height: 140px;
  4108. margin: 10px 10px 10px 0;
  4109. border-radius: 15px;
  4110. box-shadow: 0 0 6px 1px #dfdada;
  4111. "
  4112. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4113. ? worksStudent2[toolIndex]
  4114. : worksStudent2[toolIndex].slice(0, 6)"
  4115. :key="wIndex"
  4116. :class="w.type == 1 ? 'isTypeOne' : ''"
  4117. >
  4118. <div class="workImg">
  4119. <img :src="word2" @click="downloadFile(w.works)" alt />
  4120. <div
  4121. class="answerScore"
  4122. v-if="w.score"
  4123. @click.stop="openScore(w)"
  4124. :class="{
  4125. rightW:
  4126. w.userid == userid ||
  4127. tType == 1 ||
  4128. tType == 4 ||
  4129. w.ateacher == userid,
  4130. }"
  4131. >
  4132. {{ JSON.parse(w.score).wScore }}分
  4133. </div>
  4134. <div
  4135. class="answerScore"
  4136. @click.stop="openScore(w)"
  4137. v-else-if="courseDetail.userid == userid"
  4138. :class="{
  4139. rightW:
  4140. w.userid == userid ||
  4141. tType == 1 ||
  4142. tType == 4 ||
  4143. w.ateacher == userid,
  4144. }"
  4145. >
  4146. 评分
  4147. </div>
  4148. <img
  4149. class="deleteImg"
  4150. src="../../assets/deleteworks.png"
  4151. v-if="w.userid == userid || tType == 1 || tType == 4"
  4152. @click.stop="deleteWorks(w.wid)"
  4153. alt
  4154. />
  4155. </div>
  4156. <div class="comment" style="min-width: 200px">
  4157. <div class="worksName">
  4158. <div>{{ w.sName }}</div>
  4159. </div>
  4160. <div class="commentList">
  4161. <div class="commentList">
  4162. <div
  4163. class="commentImg"
  4164. @click="
  4165. isLikes(w.wid, userid, 1, null, w.isLikes)
  4166. "
  4167. >
  4168. <img
  4169. :src="w.isLikes == true ? likes : noLikes"
  4170. alt=""
  4171. />
  4172. </div>
  4173. <div>{{ w.likesCount }}</div>
  4174. </div>
  4175. <div class="commentList" style="margin-right: 15px">
  4176. <div
  4177. class="commentImg"
  4178. @click="commentOther(w, toolIndex, wIndex)"
  4179. >
  4180. <img
  4181. src="../../assets/icon/comment/comment.png"
  4182. alt=""
  4183. />
  4184. </div>
  4185. <div>{{ w.commentCount }}</div>
  4186. </div>
  4187. </div>
  4188. </div>
  4189. </div>
  4190. </div>
  4191. <div class="noWorksS">
  4192. <div
  4193. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4194. :key="sIndex"
  4195. class="noWorksName"
  4196. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4197. :class="{ isWork: s.type == '2' }"
  4198. >
  4199. {{ s.student }}
  4200. </div>
  4201. </div>
  4202. </div>
  4203. <div
  4204. v-if="
  4205. tType &&
  4206. ((tType == 2 && sIsOpen == true) ||
  4207. tType == 1 ||
  4208. tType == 4) &&
  4209. tool.tool.indexOf(57) != -1
  4210. "
  4211. class="worksBox"
  4212. >
  4213. <div
  4214. class="zuoyeYulan"
  4215. v-if="
  4216. worksStudent2.length &&
  4217. worksStudent2[toolIndex].length > 0
  4218. "
  4219. >
  4220. <div class="worksTop">
  4221. <div>作业预览</div>
  4222. <div
  4223. class="corOpen"
  4224. @click="contract(toolIndex)"
  4225. v-if="
  4226. worksStudent2[toolIndex].length > 6 &&
  4227. isCloseList[toolIndex].isClose == 0
  4228. "
  4229. >
  4230. 收缩
  4231. </div>
  4232. <div
  4233. class="corOpen"
  4234. @click="contract(toolIndex)"
  4235. v-if="isCloseList[toolIndex].isClose == 1"
  4236. >
  4237. 展开
  4238. </div>
  4239. </div>
  4240. </div>
  4241. <div
  4242. class="worksDetailBox"
  4243. v-if="
  4244. worksStudent2.length &&
  4245. worksStudent2[toolIndex].length > 0
  4246. "
  4247. >
  4248. <div
  4249. class="works"
  4250. style="
  4251. width: 200px;
  4252. height: 140px;
  4253. margin: 10px 10px 10px 0;
  4254. border-radius: 15px;
  4255. box-shadow: 0 0 6px 1px #dfdada;
  4256. "
  4257. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4258. ? worksStudent2[toolIndex]
  4259. : worksStudent2[toolIndex].slice(0, 6)"
  4260. :key="wIndex"
  4261. :class="w.type == 1 ? 'isTypeOne' : ''"
  4262. >
  4263. <div class="workImg">
  4264. <img
  4265. :src="word2"
  4266. @click="downloadFile(w.works)"
  4267. v-if="w.type == 12"
  4268. alt
  4269. />
  4270. <img
  4271. :src="word2"
  4272. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  4273. v-else-if="w.type == 15"
  4274. alt
  4275. />
  4276. <div
  4277. class="answerScore"
  4278. v-if="w.score"
  4279. @click.stop="openScore(w)"
  4280. :class="{
  4281. rightW:
  4282. w.userid == userid ||
  4283. tType == 1 ||
  4284. tType == 4 ||
  4285. w.ateacher == userid,
  4286. }"
  4287. >
  4288. {{ JSON.parse(w.score).wScore }}分
  4289. </div>
  4290. <div
  4291. class="answerScore"
  4292. @click.stop="openScore(w)"
  4293. v-else-if="courseDetail.userid == userid"
  4294. :class="{
  4295. rightW:
  4296. w.userid == userid ||
  4297. tType == 1 ||
  4298. tType == 4 ||
  4299. w.ateacher == userid,
  4300. }"
  4301. >
  4302. 评分
  4303. </div>
  4304. <img
  4305. class="deleteImg"
  4306. src="../../assets/deleteworks.png"
  4307. v-if="w.userid == userid || tType == 1 || tType == 4"
  4308. @click.stop="deleteWorks(w.wid)"
  4309. alt
  4310. />
  4311. </div>
  4312. <div class="comment" style="min-width: 200px">
  4313. <div class="worksName">
  4314. <div>{{ w.sName }}</div>
  4315. </div>
  4316. <div class="commentList">
  4317. <div class="commentList">
  4318. <div
  4319. class="commentImg"
  4320. @click="
  4321. isLikes(w.wid, userid, 1, null, w.isLikes)
  4322. "
  4323. >
  4324. <img
  4325. :src="w.isLikes == true ? likes : noLikes"
  4326. alt=""
  4327. />
  4328. </div>
  4329. <div>{{ w.likesCount }}</div>
  4330. </div>
  4331. <div class="commentList" style="margin-right: 15px">
  4332. <div
  4333. class="commentImg"
  4334. @click="commentOther(w, toolIndex, wIndex)"
  4335. >
  4336. <img
  4337. src="../../assets/icon/comment/comment.png"
  4338. alt=""
  4339. />
  4340. </div>
  4341. <div>{{ w.commentCount }}</div>
  4342. </div>
  4343. </div>
  4344. </div>
  4345. </div>
  4346. </div>
  4347. <div class="noWorksS">
  4348. <div
  4349. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4350. :key="sIndex"
  4351. class="noWorksName"
  4352. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4353. :class="{ isWork: s.type == '2' }"
  4354. >
  4355. {{ s.student }}
  4356. </div>
  4357. </div>
  4358. </div>
  4359. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4360. <div
  4361. class="zuoyeYulan"
  4362. v-if="
  4363. worksStudent2.length &&
  4364. worksStudent2[toolIndex].length > 0
  4365. "
  4366. >
  4367. <span>作业预览</span>
  4368. <div
  4369. class="corOpen"
  4370. @click="contract(toolIndex)"
  4371. v-if="
  4372. worksStudent2[toolIndex].length > 6 &&
  4373. isCloseList[toolIndex].isClose == 0
  4374. "
  4375. >
  4376. 收缩
  4377. </div>
  4378. <div
  4379. class="corOpen"
  4380. @click="contract(toolIndex)"
  4381. v-if="isCloseList[toolIndex].isClose == 1"
  4382. >
  4383. 展开
  4384. </div>
  4385. </div>
  4386. <div
  4387. class="worksDetailBox"
  4388. v-if="
  4389. worksStudent2.length &&
  4390. worksStudent2[toolIndex].length > 0
  4391. "
  4392. >
  4393. <div
  4394. class="works"
  4395. style="
  4396. width: 200px;
  4397. height: 140px;
  4398. margin: 10px 10px 10px 0;
  4399. border-radius: 15px;
  4400. box-shadow: 0 0 6px 1px #dfdada;
  4401. "
  4402. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4403. ? worksStudent2[toolIndex]
  4404. : worksStudent2[toolIndex].slice(0, 6)"
  4405. :key="wIndex"
  4406. :class="w.type == 1 ? 'isTypeOne' : ''"
  4407. >
  4408. <div class="workImg" v-if="w.type == 0">
  4409. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4410. <img :src="w.works" @click="previewImg(w.works)" alt />
  4411. <div
  4412. class="answerScore"
  4413. v-if="w.score"
  4414. @click.stop="openScore(w)"
  4415. :class="{
  4416. rightW:
  4417. w.userid == userid ||
  4418. tType == 1 ||
  4419. tType == 4 ||
  4420. w.ateacher == userid,
  4421. }"
  4422. >
  4423. {{ JSON.parse(w.score).wScore }}分
  4424. </div>
  4425. <div
  4426. class="answerScore"
  4427. @click.stop="openScore(w)"
  4428. v-else-if="courseDetail.userid == userid"
  4429. :class="{
  4430. rightW:
  4431. w.userid == userid ||
  4432. tType == 1 ||
  4433. tType == 4 ||
  4434. w.ateacher == userid,
  4435. }"
  4436. >
  4437. 评分
  4438. </div>
  4439. <img
  4440. class="deleteImg"
  4441. src="../../assets/deleteworks.png"
  4442. v-if="w.userid == userid || tType == 1 || tType == 4"
  4443. @click.stop="deleteWorks(w.wid)"
  4444. alt
  4445. />
  4446. </div>
  4447. <div
  4448. class="workImg"
  4449. style="cursor: pointer"
  4450. v-if="w.type == 1"
  4451. >
  4452. <img :src="word" @click="openFile(w.works)" alt />
  4453. <!-- @click="openFile(w.works)" -->
  4454. <div
  4455. class="answerScore"
  4456. v-if="w.score"
  4457. @click.stop="openScore(w)"
  4458. :class="{
  4459. rightW:
  4460. w.userid == userid ||
  4461. tType == 1 ||
  4462. tType == 4 ||
  4463. w.ateacher == userid,
  4464. }"
  4465. >
  4466. {{ JSON.parse(w.score).wScore }}分
  4467. </div>
  4468. <div
  4469. class="answerScore"
  4470. @click.stop="openScore(w)"
  4471. v-else-if="courseDetail.userid == userid"
  4472. :class="{
  4473. rightW:
  4474. w.userid == userid ||
  4475. tType == 1 ||
  4476. tType == 4 ||
  4477. w.ateacher == userid,
  4478. }"
  4479. >
  4480. 评分
  4481. </div>
  4482. <img
  4483. class="deleteImg"
  4484. src="../../assets/deleteworks.png"
  4485. v-if="w.userid == userid || tType == 1 || tType == 4"
  4486. @click.stop="deleteWorks(w.wid)"
  4487. alt
  4488. />
  4489. </div>
  4490. <div class="workImg" v-if="w.type == 3">
  4491. <img
  4492. style="cursor: pointer"
  4493. :src="video"
  4494. @click="openVideo(w)"
  4495. alt
  4496. />
  4497. <!-- @click="openVideo(w.works)" -->
  4498. <div
  4499. class="answerScore"
  4500. v-if="w.score"
  4501. @click.stop="openScore(w)"
  4502. :class="{
  4503. rightW:
  4504. w.userid == userid ||
  4505. tType == 1 ||
  4506. tType == 4 ||
  4507. w.ateacher == userid,
  4508. }"
  4509. >
  4510. {{ JSON.parse(w.score).wScore }}分
  4511. </div>
  4512. <div
  4513. class="answerScore"
  4514. @click.stop="openScore(w)"
  4515. v-else-if="courseDetail.userid == userid"
  4516. :class="{
  4517. rightW:
  4518. w.userid == userid ||
  4519. tType == 1 ||
  4520. tType == 4 ||
  4521. w.ateacher == userid,
  4522. }"
  4523. >
  4524. 评分
  4525. </div>
  4526. <img
  4527. class="deleteImg"
  4528. src="../../assets/deleteworks.png"
  4529. v-if="w.userid == userid || tType == 1 || tType == 4"
  4530. @click.stop="deleteWorks(w.wid)"
  4531. alt
  4532. />
  4533. </div>
  4534. <div class="comment" style="min-width: 200px">
  4535. <div class="worksName">
  4536. <div
  4537. style="cursor: pointer"
  4538. @click="
  4539. openSname(w.sName, w.wid, toolIndex, w.userid)
  4540. "
  4541. >
  4542. {{ w.sName }}
  4543. </div>
  4544. </div>
  4545. <div class="commentList">
  4546. <div class="commentList">
  4547. <div
  4548. class="commentImg"
  4549. @click="
  4550. isLikes(w.wid, userid, 1, null, w.isLikes)
  4551. "
  4552. >
  4553. <img
  4554. :src="w.isLikes == true ? likes : noLikes"
  4555. alt=""
  4556. />
  4557. </div>
  4558. <div>{{ w.likesCount }}</div>
  4559. </div>
  4560. <div class="commentList" style="margin-right: 15px">
  4561. <div
  4562. class="commentImg"
  4563. @click="commentOther(w, toolIndex, wIndex)"
  4564. >
  4565. <img
  4566. src="../../assets/icon/comment/comment.png"
  4567. alt=""
  4568. />
  4569. </div>
  4570. <div>{{ w.commentCount }}</div>
  4571. </div>
  4572. </div>
  4573. </div>
  4574. </div>
  4575. </div>
  4576. <div class="noWorksS">
  4577. <div
  4578. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4579. :key="sIndex"
  4580. class="noWorksName"
  4581. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4582. :class="{ isWork: s.type == '2' }"
  4583. >
  4584. {{ s.student }}
  4585. </div>
  4586. </div>
  4587. </div>
  4588. <div
  4589. v-if="
  4590. tType &&
  4591. ((tType == 2 && sIsOpen == true) ||
  4592. tType == 1 ||
  4593. tType == 4) &&
  4594. tool.tool.indexOf(4) != -1
  4595. "
  4596. class="worksBox"
  4597. >
  4598. <div
  4599. class="zuoyeYulan"
  4600. v-if="
  4601. worksStudent2.length &&
  4602. worksStudent2[toolIndex].length > 0
  4603. "
  4604. >
  4605. <div class="worksTop">
  4606. <div>作业预览</div>
  4607. <div
  4608. class="corOpen"
  4609. @click="contract(toolIndex)"
  4610. v-if="
  4611. worksStudent2[toolIndex].length > 6 &&
  4612. isCloseList[toolIndex].isClose == 0
  4613. "
  4614. >
  4615. 收缩
  4616. </div>
  4617. <div
  4618. class="corOpen"
  4619. @click="contract(toolIndex)"
  4620. v-if="isCloseList[toolIndex].isClose == 1"
  4621. >
  4622. 展开
  4623. </div>
  4624. </div>
  4625. </div>
  4626. <div>
  4627. <div
  4628. class="worksDetailBox"
  4629. v-if="
  4630. worksStudent2.length &&
  4631. worksStudent2[toolIndex].length > 0
  4632. "
  4633. >
  4634. <div
  4635. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4636. 0
  4637. ? worksStudent2[toolIndex]
  4638. : worksStudent2[toolIndex].slice(0, 6)"
  4639. :key="wIndex"
  4640. class="isWorksName"
  4641. @click="
  4642. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4643. "
  4644. >
  4645. {{ w.sName }}
  4646. <img
  4647. class="deleteImg deleteImg2"
  4648. src="../../assets/deleteworks.png"
  4649. v-if="w.userid == userid || tType == 1 || tType == 4"
  4650. @click.stop="deleteWorks(w.wid)"
  4651. alt
  4652. />
  4653. </div>
  4654. </div>
  4655. </div>
  4656. <div class="noWorksS">
  4657. <div
  4658. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4659. :key="sIndex"
  4660. class="noWorksName"
  4661. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4662. :class="{ isWork: s.type == '2' }"
  4663. >
  4664. {{ s.student }}
  4665. </div>
  4666. </div>
  4667. </div>
  4668. <div
  4669. v-if="
  4670. tType &&
  4671. ((tType == 2 && sIsOpen == true) ||
  4672. tType == 1 ||
  4673. tType == 4) &&
  4674. tool.tool.indexOf(45) != -1
  4675. "
  4676. class="worksBox"
  4677. >
  4678. <div
  4679. class="zuoyeYulan"
  4680. v-if="
  4681. worksStudent2.length &&
  4682. worksStudent2[toolIndex].length > 0
  4683. "
  4684. >
  4685. <div class="worksTop">
  4686. <div>作业预览</div>
  4687. <div
  4688. class="corOpen"
  4689. @click="contract(toolIndex)"
  4690. v-if="
  4691. worksStudent2[toolIndex].length > 6 &&
  4692. isCloseList[toolIndex].isClose == 0
  4693. "
  4694. >
  4695. 收缩
  4696. </div>
  4697. <div
  4698. class="corOpen"
  4699. @click="contract(toolIndex)"
  4700. v-if="isCloseList[toolIndex].isClose == 1"
  4701. >
  4702. 展开
  4703. </div>
  4704. </div>
  4705. </div>
  4706. <div>
  4707. <div
  4708. class="worksDetailBox"
  4709. v-if="
  4710. worksStudent2.length &&
  4711. worksStudent2[toolIndex].length > 0
  4712. "
  4713. >
  4714. <div
  4715. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4716. 0
  4717. ? worksStudent2[toolIndex]
  4718. : worksStudent2[toolIndex].slice(0, 6)"
  4719. :key="wIndex"
  4720. class="isWorksName"
  4721. @click="
  4722. openTools(45, toolIndex, taskCount, w.works, w.sName)
  4723. "
  4724. >
  4725. {{ w.sName }}
  4726. <img
  4727. class="deleteImg deleteImg2"
  4728. src="../../assets/deleteworks.png"
  4729. v-if="w.userid == userid || tType == 1 || tType == 4"
  4730. @click.stop="deleteWorks(w.wid)"
  4731. alt
  4732. />
  4733. </div>
  4734. </div>
  4735. </div>
  4736. <div class="noWorksS">
  4737. <div
  4738. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4739. :key="sIndex"
  4740. class="noWorksName"
  4741. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4742. :class="{ isWork: s.type == '2' }"
  4743. >
  4744. {{ s.student }}
  4745. </div>
  4746. </div>
  4747. </div>
  4748. <div
  4749. v-if="
  4750. tType &&
  4751. ((tType == 2 && sIsOpen == true) ||
  4752. tType == 1 ||
  4753. tType == 4) &&
  4754. tool.tool.indexOf(15) != -1
  4755. "
  4756. class="worksBox"
  4757. >
  4758. <div
  4759. class="zuoyeYulan"
  4760. v-if="
  4761. worksStudent2.length &&
  4762. worksStudent2[toolIndex].length > 0
  4763. "
  4764. >
  4765. <div class="worksTop">
  4766. <div>作业预览</div>
  4767. <div
  4768. class="corOpen"
  4769. @click="contract(toolIndex)"
  4770. v-if="
  4771. worksStudent2[toolIndex].length > 6 &&
  4772. isCloseList[toolIndex].isClose == 0
  4773. "
  4774. >
  4775. 收缩
  4776. </div>
  4777. <div
  4778. class="corOpen"
  4779. @click="contract(toolIndex)"
  4780. v-if="isCloseList[toolIndex].isClose == 1"
  4781. >
  4782. 展开
  4783. </div>
  4784. </div>
  4785. </div>
  4786. <div
  4787. class="worksDetailBox"
  4788. v-if="
  4789. worksStudent2.length &&
  4790. worksStudent2[toolIndex].length > 0
  4791. "
  4792. >
  4793. <div
  4794. class="works"
  4795. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4796. ? worksStudent2[toolIndex]
  4797. : worksStudent2[toolIndex].slice(0, 6)"
  4798. :key="wIndex"
  4799. >
  4800. <div
  4801. class="workImg"
  4802. style="
  4803. border-radius: 15px;
  4804. box-shadow: #eee 0px 0px 5px 5px;
  4805. "
  4806. >
  4807. <!-- <img
  4808. src="../../assets/icon/works/noImg.png"
  4809. @click="openTools(15, toolIndex, taskCount, w.works)"
  4810. alt=""
  4811. />-->
  4812. <div
  4813. class="answerBg"
  4814. style="border-radius: 15px 15px 0 0"
  4815. @click="commentOther(w, toolIndex, wIndex)"
  4816. >
  4817. <!-- <div>{{ w.sName }}</div> -->
  4818. <div class="answerContent">
  4819. {{ JSON.parse(w.works)[0].answer }}
  4820. </div>
  4821. <div
  4822. class="answerScore"
  4823. v-if="w.score"
  4824. @click.stop="openScore(w)"
  4825. :class="{
  4826. rightW:
  4827. w.userid == userid || tType == 1 || tType == 4,
  4828. }"
  4829. >
  4830. {{ JSON.parse(w.score).wScore }}分
  4831. </div>
  4832. <div
  4833. class="answerScore"
  4834. @click.stop="openScore(w)"
  4835. v-else-if="courseDetail.userid == userid"
  4836. :class="{
  4837. rightW:
  4838. w.userid == userid || tType == 1 || tType == 4,
  4839. }"
  4840. >
  4841. 评分
  4842. </div>
  4843. <img
  4844. class="deleteImg"
  4845. src="../../assets/deleteworks.png"
  4846. v-if="
  4847. w.userid == userid || tType == 1 || tType == 4
  4848. "
  4849. @click.stop="deleteWorks(w.wid)"
  4850. alt
  4851. />
  4852. </div>
  4853. <div class="comment">
  4854. <div class="worksName">
  4855. <div>{{ w.sName }}</div>
  4856. </div>
  4857. <div class="commentList">
  4858. <div
  4859. class="commentImg"
  4860. @click="
  4861. isLikes(w.wid, userid, 1, null, w.isLikes)
  4862. "
  4863. >
  4864. <img
  4865. :src="w.isLikes == true ? likes : noLikes"
  4866. alt=""
  4867. />
  4868. </div>
  4869. <div>{{ w.likesCount }}</div>
  4870. </div>
  4871. <div class="commentList" style="margin-right: 15px">
  4872. <div
  4873. class="commentImg"
  4874. @click="commentOther(w, toolIndex, wIndex)"
  4875. >
  4876. <img
  4877. src="../../assets/icon/comment/comment.png"
  4878. alt=""
  4879. />
  4880. </div>
  4881. <div>{{ w.commentCount }}</div>
  4882. </div>
  4883. </div>
  4884. </div>
  4885. </div>
  4886. </div>
  4887. <div class="noWorksS">
  4888. <div
  4889. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4890. :key="sIndex"
  4891. class="noWorksName"
  4892. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4893. :class="{ isWork: s.type == '2' }"
  4894. >
  4895. {{ s.student }}
  4896. </div>
  4897. </div>
  4898. </div>
  4899. <div
  4900. v-if="
  4901. tType &&
  4902. ((tType == 2 && sIsOpen == true) ||
  4903. tType == 1 ||
  4904. tType == 4) &&
  4905. tool.tool.indexOf(1) != -1
  4906. "
  4907. class="worksBox"
  4908. >
  4909. <div
  4910. class="zuoyeYulan"
  4911. v-if="
  4912. worksStudent2.length &&
  4913. worksStudent2[toolIndex].length > 0
  4914. "
  4915. >
  4916. <div class="worksTop">
  4917. <div>作业预览</div>
  4918. <div
  4919. class="corOpen"
  4920. @click="contract(toolIndex)"
  4921. v-if="
  4922. worksStudent2[toolIndex].length > 6 &&
  4923. isCloseList[toolIndex].isClose == 0
  4924. "
  4925. >
  4926. 收缩
  4927. </div>
  4928. <div
  4929. class="corOpen"
  4930. @click="contract(toolIndex)"
  4931. v-if="isCloseList[toolIndex].isClose == 1"
  4932. >
  4933. 展开
  4934. </div>
  4935. </div>
  4936. </div>
  4937. <div
  4938. class="worksDetailBox"
  4939. v-if="
  4940. worksStudent2.length &&
  4941. worksStudent2[toolIndex].length > 0
  4942. "
  4943. >
  4944. <div
  4945. class="works"
  4946. style="
  4947. width: 200px;
  4948. height: 140px;
  4949. margin: 10px 10px 10px 0;
  4950. border-radius: 15px;
  4951. box-shadow: 0 0 6px 1px #dfdada;
  4952. "
  4953. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4954. ? worksStudent2[toolIndex]
  4955. : worksStudent2[toolIndex].slice(0, 6)"
  4956. :key="wIndex"
  4957. >
  4958. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4959. <div class="workImg">
  4960. <img :src="w.works" @click="previewImg(w.works)" alt />
  4961. <div
  4962. class="answerScore"
  4963. v-if="w.score"
  4964. @click.stop="openScore(w)"
  4965. :class="{
  4966. rightW:
  4967. w.userid == userid || tType == 1 || tType == 4,
  4968. }"
  4969. >
  4970. {{ JSON.parse(w.score).wScore }}分
  4971. </div>
  4972. <div
  4973. class="answerScore"
  4974. @click.stop="openScore(w)"
  4975. v-else-if="courseDetail.userid == userid"
  4976. :class="{
  4977. rightW:
  4978. w.userid == userid || tType == 1 || tType == 4,
  4979. }"
  4980. >
  4981. 评分
  4982. </div>
  4983. <img
  4984. class="deleteImg"
  4985. src="../../assets/deleteworks.png"
  4986. v-if="w.userid == userid || tType == 1 || tType == 4"
  4987. @click.stop="deleteWorks(w.wid)"
  4988. alt
  4989. />
  4990. </div>
  4991. <div class="comment" style="min-width: 200px">
  4992. <div class="worksName">
  4993. <div>{{ w.sName }}</div>
  4994. </div>
  4995. <div class="commentList">
  4996. <div class="commentList">
  4997. <div
  4998. class="commentImg"
  4999. @click="
  5000. isLikes(w.wid, userid, 1, null, w.isLikes)
  5001. "
  5002. >
  5003. <img
  5004. :src="w.isLikes == true ? likes : noLikes"
  5005. alt=""
  5006. />
  5007. </div>
  5008. <div>{{ w.likesCount }}</div>
  5009. </div>
  5010. <div class="commentList" style="margin-right: 15px">
  5011. <div
  5012. class="commentImg"
  5013. @click="commentOther(w, toolIndex, wIndex)"
  5014. >
  5015. <img
  5016. src="../../assets/icon/comment/comment.png"
  5017. alt=""
  5018. />
  5019. </div>
  5020. <div>{{ w.commentCount }}</div>
  5021. </div>
  5022. </div>
  5023. </div>
  5024. </div>
  5025. </div>
  5026. <div class="noWorksS">
  5027. <div
  5028. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5029. :key="sIndex"
  5030. class="noWorksName"
  5031. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5032. :class="{ isWork: s.type == '2' }"
  5033. >
  5034. {{ s.student }}
  5035. </div>
  5036. </div>
  5037. </div>
  5038. <div
  5039. v-if="
  5040. tType &&
  5041. ((tType == 2 && sIsOpen == true) ||
  5042. tType == 1 ||
  5043. tType == 4) &&
  5044. tool.tool.indexOf(3) != -1
  5045. "
  5046. class="worksBox"
  5047. >
  5048. <div
  5049. class="zuoyeYulan"
  5050. v-if="
  5051. worksStudent2.length &&
  5052. worksStudent2[toolIndex].length > 0
  5053. "
  5054. >
  5055. <div class="worksTop">
  5056. <div>作业预览</div>
  5057. <div
  5058. class="corOpen"
  5059. @click="contract(toolIndex)"
  5060. v-if="
  5061. worksStudent2[toolIndex].length > 6 &&
  5062. isCloseList[toolIndex].isClose == 0
  5063. "
  5064. >
  5065. 收缩
  5066. </div>
  5067. <div
  5068. class="corOpen"
  5069. @click="contract(toolIndex)"
  5070. v-if="isCloseList[toolIndex].isClose == 1"
  5071. >
  5072. 展开
  5073. </div>
  5074. </div>
  5075. </div>
  5076. <div
  5077. class="worksDetailBox"
  5078. v-if="
  5079. worksStudent2.length &&
  5080. worksStudent2[toolIndex].length > 0
  5081. "
  5082. >
  5083. <div
  5084. class="works"
  5085. style="
  5086. width: 200px;
  5087. height: 140px;
  5088. margin: 10px 10px 10px 0;
  5089. border-radius: 15px;
  5090. box-shadow: 0 0 6px 1px #dfdada;
  5091. "
  5092. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5093. ? worksStudent2[toolIndex]
  5094. : worksStudent2[toolIndex].slice(0, 6)"
  5095. :key="wIndex"
  5096. >
  5097. <!-- @click="previewImg(w.works)" -->
  5098. <div class="workImg">
  5099. <img :src="w.works" @click="previewImg(w.works)" alt />
  5100. <div
  5101. class="answerScore"
  5102. v-if="w.score"
  5103. @click.stop="openScore(w)"
  5104. :class="{
  5105. rightW:
  5106. w.userid == userid || tType == 1 || tType == 4,
  5107. }"
  5108. >
  5109. {{ JSON.parse(w.score).wScore }}分
  5110. </div>
  5111. <div
  5112. class="answerScore"
  5113. @click.stop="openScore(w)"
  5114. v-else-if="courseDetail.userid == userid"
  5115. :class="{
  5116. rightW:
  5117. w.userid == userid || tType == 1 || tType == 4,
  5118. }"
  5119. >
  5120. 评分
  5121. </div>
  5122. <img
  5123. class="deleteImg"
  5124. src="../../assets/deleteworks.png"
  5125. v-if="w.userid == userid || tType == 1 || tType == 4"
  5126. @click.stop="deleteWorks(w.wid)"
  5127. alt
  5128. />
  5129. </div>
  5130. <div class="comment" style="min-width: 200px">
  5131. <div class="worksName">
  5132. <div>{{ w.sName }}</div>
  5133. </div>
  5134. <div class="commentList">
  5135. <div class="commentList">
  5136. <div
  5137. class="commentImg"
  5138. @click="
  5139. isLikes(w.wid, userid, 1, null, w.isLikes)
  5140. "
  5141. >
  5142. <img
  5143. :src="w.isLikes == true ? likes : noLikes"
  5144. alt=""
  5145. />
  5146. </div>
  5147. <div>{{ w.likesCount }}</div>
  5148. </div>
  5149. <div class="commentList" style="margin-right: 15px">
  5150. <div
  5151. class="commentImg"
  5152. @click="commentOther(w, toolIndex, wIndex)"
  5153. >
  5154. <img
  5155. src="../../assets/icon/comment/comment.png"
  5156. alt=""
  5157. />
  5158. </div>
  5159. <div>{{ w.commentCount }}</div>
  5160. </div>
  5161. </div>
  5162. </div>
  5163. </div>
  5164. </div>
  5165. <div class="noWorksS">
  5166. <div
  5167. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5168. :key="sIndex"
  5169. class="noWorksName"
  5170. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5171. :class="{ isWork: s.type == '2' }"
  5172. >
  5173. {{ s.student }}
  5174. </div>
  5175. </div>
  5176. </div>
  5177. <div
  5178. v-if="
  5179. tType &&
  5180. ((tType == 2 && sIsOpen == true) ||
  5181. tType == 1 ||
  5182. tType == 4) &&
  5183. tool.tool.indexOf(6) != -1
  5184. "
  5185. class="worksBox"
  5186. >
  5187. <div
  5188. class="zuoyeYulan"
  5189. v-if="
  5190. worksStudent2.length &&
  5191. worksStudent2[toolIndex].length > 0
  5192. "
  5193. >
  5194. <div class="worksTop">
  5195. <div>作业预览</div>
  5196. <div
  5197. class="corOpen"
  5198. @click="contract(toolIndex)"
  5199. v-if="
  5200. worksStudent[toolIndex].length > 6 &&
  5201. isCloseList[toolIndex].isClose == 0
  5202. "
  5203. >
  5204. 收缩
  5205. </div>
  5206. <div
  5207. class="corOpen"
  5208. @click="contract(toolIndex)"
  5209. v-if="isCloseList[toolIndex].isClose == 1"
  5210. >
  5211. 展开
  5212. </div>
  5213. </div>
  5214. </div>
  5215. <div
  5216. class="worksDetailBox"
  5217. v-if="
  5218. worksStudent2.length &&
  5219. worksStudent2[toolIndex].length > 0
  5220. "
  5221. >
  5222. <div
  5223. class="works"
  5224. style="
  5225. width: 200px;
  5226. height: 140px;
  5227. margin: 10px 10px 10px 0;
  5228. border-radius: 15px;
  5229. box-shadow: 0 0 6px 1px #dfdada;
  5230. "
  5231. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5232. ? worksStudent2[toolIndex]
  5233. : worksStudent2[toolIndex].slice(0, 6)"
  5234. :key="wIndex"
  5235. >
  5236. <!-- @click="previewImg(w.works)" -->
  5237. <div class="workImg">
  5238. <img :src="w.works" @click="previewImg(w.works)" alt />
  5239. <div
  5240. class="answerScore"
  5241. v-if="w.score"
  5242. @click.stop="openScore(w)"
  5243. :class="{
  5244. rightW:
  5245. w.userid == userid || tType == 1 || tType == 4,
  5246. }"
  5247. >
  5248. {{ JSON.parse(w.score).wScore }}分
  5249. </div>
  5250. <div
  5251. class="answerScore"
  5252. @click.stop="openScore(w)"
  5253. v-else-if="courseDetail.userid == userid"
  5254. :class="{
  5255. rightW:
  5256. w.userid == userid || tType == 1 || tType == 4,
  5257. }"
  5258. >
  5259. 评分
  5260. </div>
  5261. <img
  5262. class="deleteImg"
  5263. src="../../assets/deleteworks.png"
  5264. v-if="w.userid == userid || tType == 1 || tType == 4"
  5265. @click.stop="deleteWorks(w.wid)"
  5266. alt
  5267. />
  5268. </div>
  5269. <div class="comment" style="min-width: 200px">
  5270. <div class="worksName">
  5271. <div>{{ w.sName }}</div>
  5272. </div>
  5273. <div class="commentList">
  5274. <div class="commentList">
  5275. <div
  5276. class="commentImg"
  5277. @click="
  5278. isLikes(w.wid, userid, 1, null, w.isLikes)
  5279. "
  5280. >
  5281. <img
  5282. :src="w.isLikes == true ? likes : noLikes"
  5283. alt=""
  5284. />
  5285. </div>
  5286. <div>{{ w.likesCount }}</div>
  5287. </div>
  5288. <div class="commentList" style="margin-right: 15px">
  5289. <div
  5290. class="commentImg"
  5291. @click="commentOther(w, toolIndex, wIndex)"
  5292. >
  5293. <img
  5294. src="../../assets/icon/comment/comment.png"
  5295. alt=""
  5296. />
  5297. </div>
  5298. <div>{{ w.commentCount }}</div>
  5299. </div>
  5300. </div>
  5301. </div>
  5302. </div>
  5303. </div>
  5304. <div class="noWorksS">
  5305. <div
  5306. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5307. :key="sIndex"
  5308. class="noWorksName"
  5309. :class="{ isWork: s.type == '2' }"
  5310. >
  5311. {{ s.student }}
  5312. </div>
  5313. </div>
  5314. </div>
  5315. <div
  5316. v-if="
  5317. tType &&
  5318. ((tType == 2 && sIsOpen == true) ||
  5319. tType == 1 ||
  5320. tType == 4) &&
  5321. tool.tool.indexOf(7) != -1
  5322. "
  5323. class="worksBox"
  5324. >
  5325. <div
  5326. class="zuoyeYulan"
  5327. v-if="
  5328. worksStudent2.length &&
  5329. worksStudent2[toolIndex].length > 0
  5330. "
  5331. >
  5332. <div class="worksTop">
  5333. <div>作业预览</div>
  5334. <div
  5335. class="corOpen"
  5336. @click="contract(toolIndex)"
  5337. v-if="
  5338. worksStudent2[toolIndex].length > 6 &&
  5339. isCloseList[toolIndex].isClose == 0
  5340. "
  5341. >
  5342. 收缩
  5343. </div>
  5344. <div
  5345. class="corOpen"
  5346. @click="contract(toolIndex)"
  5347. v-if="isCloseList[toolIndex].isClose == 1"
  5348. >
  5349. 展开
  5350. </div>
  5351. </div>
  5352. </div>
  5353. <div
  5354. class="worksDetailBox"
  5355. v-if="
  5356. worksStudent2.length &&
  5357. worksStudent2[toolIndex].length > 0
  5358. "
  5359. >
  5360. <div
  5361. class="works"
  5362. style="
  5363. width: 200px;
  5364. height: 140px;
  5365. margin: 10px 10px 10px 0;
  5366. border-radius: 15px;
  5367. box-shadow: 0 0 6px 1px #dfdada;
  5368. "
  5369. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5370. ? worksStudent2[toolIndex]
  5371. : worksStudent2[toolIndex].slice(0, 6)"
  5372. :key="wIndex"
  5373. >
  5374. <!-- @click="previewImg(w.works)" -->
  5375. <div class="workImg">
  5376. <img :src="w.works" @click="previewImg(w.works)" alt />
  5377. <div
  5378. class="answerScore"
  5379. v-if="w.score"
  5380. @click.stop="openScore(w)"
  5381. :class="{
  5382. rightW:
  5383. w.userid == userid || tType == 1 || tType == 4,
  5384. }"
  5385. >
  5386. {{ JSON.parse(w.score).wScore }}分
  5387. </div>
  5388. <div
  5389. class="answerScore"
  5390. @click.stop="openScore(w)"
  5391. v-else-if="courseDetail.userid == userid"
  5392. :class="{
  5393. rightW:
  5394. w.userid == userid || tType == 1 || tType == 4,
  5395. }"
  5396. >
  5397. 评分
  5398. </div>
  5399. <img
  5400. class="deleteImg"
  5401. src="../../assets/deleteworks.png"
  5402. v-if="w.userid == userid || tType == 1 || tType == 4"
  5403. @click.stop="deleteWorks(w.wid)"
  5404. alt
  5405. />
  5406. </div>
  5407. <div class="comment" style="min-width: 200px">
  5408. <div class="worksName">
  5409. <div>{{ w.sName }}</div>
  5410. </div>
  5411. <div class="commentList">
  5412. <div class="commentList">
  5413. <div
  5414. class="commentImg"
  5415. @click="
  5416. isLikes(w.wid, userid, 1, null, w.isLikes)
  5417. "
  5418. >
  5419. <img
  5420. :src="w.isLikes == true ? likes : noLikes"
  5421. alt=""
  5422. />
  5423. </div>
  5424. <div>{{ w.likesCount }}</div>
  5425. </div>
  5426. <div class="commentList" style="margin-right: 15px">
  5427. <div
  5428. class="commentImg"
  5429. @click="commentOther(w, toolIndex, wIndex)"
  5430. >
  5431. <img
  5432. src="../../assets/icon/comment/comment.png"
  5433. alt=""
  5434. />
  5435. </div>
  5436. <div>{{ w.commentCount }}</div>
  5437. </div>
  5438. </div>
  5439. </div>
  5440. </div>
  5441. </div>
  5442. <div class="noWorksS">
  5443. <div
  5444. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5445. :key="sIndex"
  5446. class="noWorksName"
  5447. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5448. :class="{ isWork: s.type == '2' }"
  5449. >
  5450. {{ s.student }}
  5451. </div>
  5452. </div>
  5453. </div>
  5454. <div
  5455. v-if="
  5456. tType &&
  5457. ((tType == 2 && sIsOpen == true) ||
  5458. tType == 1 ||
  5459. tType == 4) &&
  5460. tool.tool.indexOf(26) != -1
  5461. "
  5462. class="worksBox"
  5463. >
  5464. <div
  5465. class="zuoyeYulan"
  5466. v-if="
  5467. worksStudent2.length &&
  5468. worksStudent2[toolIndex].length > 0
  5469. "
  5470. >
  5471. <div class="worksTop">
  5472. <div>作业预览</div>
  5473. <div
  5474. class="corOpen"
  5475. @click="contract(toolIndex)"
  5476. v-if="
  5477. worksStudent2[toolIndex].length > 6 &&
  5478. isCloseList[toolIndex].isClose == 0
  5479. "
  5480. >
  5481. 收缩
  5482. </div>
  5483. <div
  5484. class="corOpen"
  5485. @click="contract(toolIndex)"
  5486. v-if="isCloseList[toolIndex].isClose == 1"
  5487. >
  5488. 展开
  5489. </div>
  5490. </div>
  5491. </div>
  5492. <div
  5493. class="worksDetailBox"
  5494. v-if="
  5495. worksStudent2.length &&
  5496. worksStudent2[toolIndex].length > 0
  5497. "
  5498. >
  5499. <div
  5500. class="works"
  5501. style="width: 240px; height: 140px; overflow: hidden"
  5502. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5503. ? worksStudent2[toolIndex]
  5504. : worksStudent2[toolIndex].slice(0, 6)"
  5505. :key="wIndex"
  5506. :class="w.type == 1 ? 'isTypeOne' : ''"
  5507. >
  5508. <div class="workImg" v-if="w.type == 0">
  5509. <img :src="w.works" @click="previewImg(w.works)" alt />
  5510. <img
  5511. class="deleteImg"
  5512. src="../../assets/deleteworks.png"
  5513. v-if="w.userid == userid || tType == 1 || tType == 4"
  5514. @click.stop="deleteWorks(w.wid)"
  5515. alt
  5516. />
  5517. </div>
  5518. <div class="workImg" v-if="w.type == 1">
  5519. <img :src="word" @click="openFile(w.works)" alt />
  5520. <img
  5521. class="deleteImg"
  5522. src="../../assets/deleteworks.png"
  5523. v-if="w.userid == userid || tType == 1 || tType == 4"
  5524. @click.stop="deleteWorks(w.wid)"
  5525. alt
  5526. />
  5527. </div>
  5528. <div class="worksName">
  5529. <div>{{ w.sName }}</div>
  5530. </div>
  5531. </div>
  5532. </div>
  5533. <div class="noWorksS">
  5534. <div
  5535. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5536. :key="sIndex"
  5537. class="noWorksName"
  5538. :class="{ isWork: s.type == '2' }"
  5539. >
  5540. {{ s.student }}
  5541. </div>
  5542. </div>
  5543. </div>
  5544. <div
  5545. v-if="
  5546. tType &&
  5547. ((tType == 2 && sIsOpen == true) ||
  5548. tType == 1 ||
  5549. tType == 4) &&
  5550. tool.tool.indexOf(40) != -1
  5551. "
  5552. class="worksBox"
  5553. >
  5554. <div
  5555. class="zuoyeYulan"
  5556. v-if="
  5557. worksStudent2.length &&
  5558. worksStudent2[toolIndex].length > 0
  5559. "
  5560. >
  5561. <div class="worksTop">
  5562. <div>作业预览</div>
  5563. <div
  5564. class="corOpen"
  5565. @click="contract(toolIndex)"
  5566. v-if="
  5567. worksStudent2[toolIndex].length > 6 &&
  5568. isCloseList[toolIndex].isClose == 0
  5569. "
  5570. >
  5571. 收缩
  5572. </div>
  5573. <div
  5574. class="corOpen"
  5575. @click="contract(toolIndex)"
  5576. v-if="isCloseList[toolIndex].isClose == 1"
  5577. >
  5578. 展开
  5579. </div>
  5580. </div>
  5581. </div>
  5582. <div
  5583. class="worksDetailBox"
  5584. v-if="
  5585. worksStudent2.length &&
  5586. worksStudent2[toolIndex].length > 0
  5587. "
  5588. >
  5589. <div
  5590. class="works"
  5591. style="
  5592. width: 200px;
  5593. height: 140px;
  5594. margin: 10px 10px 10px 0;
  5595. border-radius: 15px;
  5596. box-shadow: 0 0 6px 1px #dfdada;
  5597. "
  5598. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5599. ? worksStudent2[toolIndex]
  5600. : worksStudent2[toolIndex].slice(0, 6)"
  5601. :key="wIndex"
  5602. :class="w.type == 1 ? 'isTypeOne' : ''"
  5603. >
  5604. <div class="workImg">
  5605. <img
  5606. src="../../assets/icon/works/noImg.png"
  5607. @click="openPj(w.works, toolIndex)"
  5608. alt
  5609. />
  5610. <img
  5611. class="deleteImg"
  5612. src="../../assets/deleteworks.png"
  5613. v-if="w.userid == userid || tType == 1 || tType == 4"
  5614. @click.stop="deleteWorks(w.wid)"
  5615. alt
  5616. />
  5617. </div>
  5618. <div class="comment" style="min-width: 200px">
  5619. <div class="worksName">
  5620. <div>{{ w.sName }}</div>
  5621. </div>
  5622. <div class="commentList">
  5623. <div class="commentList">
  5624. <div
  5625. class="commentImg"
  5626. @click="
  5627. isLikes(w.wid, userid, 1, null, w.isLikes)
  5628. "
  5629. >
  5630. <img
  5631. :src="w.isLikes == true ? likes : noLikes"
  5632. alt=""
  5633. />
  5634. </div>
  5635. <div>{{ w.likesCount }}</div>
  5636. </div>
  5637. <div class="commentList" style="margin-right: 15px">
  5638. <div
  5639. class="commentImg"
  5640. @click="commentOther(w, toolIndex, wIndex)"
  5641. >
  5642. <img
  5643. src="../../assets/icon/comment/comment.png"
  5644. alt=""
  5645. />
  5646. </div>
  5647. <div>{{ w.commentCount }}</div>
  5648. </div>
  5649. </div>
  5650. </div>
  5651. </div>
  5652. </div>
  5653. <div class="noWorksS">
  5654. <div
  5655. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5656. :key="sIndex"
  5657. class="noWorksName"
  5658. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5659. :class="{ isWork: s.type == '2' }"
  5660. >
  5661. {{ s.student }}
  5662. </div>
  5663. </div>
  5664. </div>
  5665. <div
  5666. v-if="
  5667. tType &&
  5668. ((tType == 2 && sIsOpen == true) ||
  5669. tType == 1 ||
  5670. tType == 4) &&
  5671. tool.tool.indexOf(41) != -1
  5672. "
  5673. class="worksBox"
  5674. >
  5675. <div class="noWorksS">
  5676. <div
  5677. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5678. :key="sIndex"
  5679. class="noWorksName"
  5680. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5681. :class="{ isWork: s.type == '2' }"
  5682. >
  5683. {{ s.student }}
  5684. </div>
  5685. </div>
  5686. <div
  5687. class="zuoyeYulan"
  5688. v-if="
  5689. worksStudent2.length &&
  5690. worksStudent2[toolIndex].length > 0
  5691. "
  5692. >
  5693. <div class="worksTop">
  5694. <div>作业预览</div>
  5695. <div
  5696. class="corOpen"
  5697. @click="contract(toolIndex)"
  5698. v-if="
  5699. worksStudent2[toolIndex].length > 6 &&
  5700. isCloseList[toolIndex].isClose == 0
  5701. "
  5702. >
  5703. 收缩
  5704. </div>
  5705. <div
  5706. class="corOpen"
  5707. @click="contract(toolIndex)"
  5708. v-if="isCloseList[toolIndex].isClose == 1"
  5709. >
  5710. 展开
  5711. </div>
  5712. </div>
  5713. </div>
  5714. <div
  5715. class="worksDetailBox"
  5716. v-if="
  5717. worksStudent2.length &&
  5718. worksStudent2[toolIndex].length > 0
  5719. "
  5720. >
  5721. <div
  5722. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5723. ? worksStudent2[toolIndex]
  5724. : worksStudent2[toolIndex].slice(0, 6)"
  5725. :key="wIndex"
  5726. class="isWorksName"
  5727. @click="openXz(w, toolIndex)"
  5728. >
  5729. {{ w.sName }}
  5730. <img
  5731. class="deleteImg deleteImg2"
  5732. src="../../assets/deleteworks.png"
  5733. v-if="w.userid == userid || tType == 1 || tType == 4"
  5734. @click.stop="deleteWorks(w.wid)"
  5735. alt
  5736. />
  5737. </div>
  5738. </div>
  5739. </div>
  5740. <div
  5741. v-if="
  5742. tType &&
  5743. ((tType == 2 && sIsOpen == true) ||
  5744. tType == 1 ||
  5745. tType == 4) &&
  5746. tool.tool.indexOf(47) != -1
  5747. "
  5748. class="worksBox"
  5749. >
  5750. <div class="noWorksS">
  5751. <div
  5752. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5753. :key="sIndex"
  5754. class="noWorksName"
  5755. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5756. :class="{ isWork: s.type == '2' }"
  5757. >
  5758. {{ s.student }}
  5759. </div>
  5760. </div>
  5761. <div
  5762. class="zuoyeYulan"
  5763. v-if="
  5764. worksStudent2.length &&
  5765. worksStudent2[toolIndex].length > 0
  5766. "
  5767. >
  5768. <div class="worksTop">
  5769. <div>作业预览</div>
  5770. <div
  5771. class="corOpen"
  5772. @click="contract(toolIndex)"
  5773. v-if="
  5774. worksStudent2[toolIndex].length > 6 &&
  5775. isCloseList[toolIndex].isClose == 0
  5776. "
  5777. >
  5778. 收缩
  5779. </div>
  5780. <div
  5781. class="corOpen"
  5782. @click="contract(toolIndex)"
  5783. v-if="isCloseList[toolIndex].isClose == 1"
  5784. >
  5785. 展开
  5786. </div>
  5787. </div>
  5788. </div>
  5789. <div
  5790. class="worksDetailBox"
  5791. v-if="
  5792. worksStudent2.length &&
  5793. worksStudent2[toolIndex].length > 0
  5794. "
  5795. >
  5796. <!-- @click="openXz(w, toolIndex)" -->
  5797. <div
  5798. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5799. ? worksStudent2[toolIndex]
  5800. : worksStudent2[toolIndex].slice(0, 6)"
  5801. :key="wIndex"
  5802. class="isWorksName"
  5803. @click="openSen(w, toolIndex)"
  5804. >
  5805. {{ w.sName }}
  5806. <img
  5807. class="deleteImg deleteImg2"
  5808. src="../../assets/deleteworks.png"
  5809. v-if="w.userid == userid || tType == 1 || tType == 4"
  5810. @click.stop="deleteWorks(w.wid)"
  5811. alt
  5812. />
  5813. </div>
  5814. </div>
  5815. </div>
  5816. <div
  5817. v-if="
  5818. tType &&
  5819. ((tType == 2 && sIsOpen == true) ||
  5820. tType == 1 ||
  5821. tType == 4) &&
  5822. tool.tool.indexOf(48) != -1
  5823. "
  5824. class="worksBox"
  5825. >
  5826. <div class="noWorksS">
  5827. <div
  5828. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5829. :key="sIndex"
  5830. class="noWorksName"
  5831. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5832. :class="{ isWork: s.type == '2' }"
  5833. >
  5834. {{ s.student }}
  5835. </div>
  5836. </div>
  5837. <div
  5838. class="zuoyeYulan"
  5839. v-if="
  5840. worksStudent2.length &&
  5841. worksStudent2[toolIndex].length > 0
  5842. "
  5843. >
  5844. <div class="worksTop">
  5845. <div>作业预览</div>
  5846. <div
  5847. class="corOpen"
  5848. @click="contract(toolIndex)"
  5849. v-if="
  5850. worksStudent2[toolIndex].length > 6 &&
  5851. isCloseList[toolIndex].isClose == 0
  5852. "
  5853. >
  5854. 收缩
  5855. </div>
  5856. <div
  5857. class="corOpen"
  5858. @click="contract(toolIndex)"
  5859. v-if="isCloseList[toolIndex].isClose == 1"
  5860. >
  5861. 展开
  5862. </div>
  5863. </div>
  5864. </div>
  5865. <div
  5866. class="worksDetailBox"
  5867. v-if="
  5868. worksStudent2.length &&
  5869. worksStudent2[toolIndex].length > 0
  5870. "
  5871. >
  5872. <div
  5873. class="works"
  5874. style="
  5875. width: 200px;
  5876. height: 140px;
  5877. margin: 10px 10px 10px 0;
  5878. border-radius: 15px;
  5879. box-shadow: 0 0 6px 1px #dfdada;
  5880. "
  5881. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5882. ? worksStudent2[toolIndex]
  5883. : worksStudent2[toolIndex].slice(0, 6)"
  5884. :key="wIndex"
  5885. :class="w.type == 1 ? 'isTypeOne' : ''"
  5886. >
  5887. <div class="workImg">
  5888. <img :src="word" @click="openTable(w)" alt />
  5889. <!-- @click="openFile(w.works)" -->
  5890. <div
  5891. class="answerScore"
  5892. v-if="w.score"
  5893. @click.stop="openScore(w)"
  5894. :class="{
  5895. rightW:
  5896. w.userid == userid ||
  5897. tType == 1 ||
  5898. tType == 4 ||
  5899. w.ateacher == userid,
  5900. }"
  5901. >
  5902. {{ JSON.parse(w.score).wScore }}分
  5903. </div>
  5904. <div
  5905. class="answerScore"
  5906. @click.stop="openScore(w)"
  5907. v-else-if="courseDetail.userid == userid"
  5908. :class="{
  5909. rightW:
  5910. w.userid == userid ||
  5911. tType == 1 ||
  5912. tType == 4 ||
  5913. w.ateacher == userid,
  5914. }"
  5915. >
  5916. 评分
  5917. </div>
  5918. <img
  5919. class="deleteImg"
  5920. src="../../assets/deleteworks.png"
  5921. v-if="w.userid == userid || tType == 1 || tType == 4"
  5922. @click.stop="deleteWorks(w.wid)"
  5923. alt
  5924. />
  5925. </div>
  5926. <div class="comment" style="min-width: 200px">
  5927. <div class="worksName">
  5928. <div>{{ w.sName }}</div>
  5929. </div>
  5930. <div class="commentList">
  5931. <div class="commentList">
  5932. <div
  5933. class="commentImg"
  5934. @click="
  5935. isLikes(w.wid, userid, 1, null, w.isLikes)
  5936. "
  5937. >
  5938. <img
  5939. :src="w.isLikes == true ? likes : noLikes"
  5940. alt=""
  5941. />
  5942. </div>
  5943. <div>{{ w.likesCount }}</div>
  5944. </div>
  5945. <div class="commentList" style="margin-right: 15px">
  5946. <div
  5947. class="commentImg"
  5948. @click="commentOther(w, toolIndex, wIndex)"
  5949. >
  5950. <img
  5951. src="../../assets/icon/comment/comment.png"
  5952. alt=""
  5953. />
  5954. </div>
  5955. <div>{{ w.commentCount }}</div>
  5956. </div>
  5957. </div>
  5958. </div>
  5959. </div>
  5960. </div>
  5961. </div>
  5962. <div
  5963. v-if="
  5964. tType &&
  5965. ((tType == 2 && sIsOpen == true) ||
  5966. tType == 1 ||
  5967. tType == 4) &&
  5968. tool.tool.indexOf(52) != -1
  5969. "
  5970. class="worksBox"
  5971. >
  5972. <div class="noWorksS">
  5973. <div
  5974. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5975. :key="sIndex"
  5976. class="noWorksName"
  5977. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  5978. :class="{ isWork: s.type == '2' }"
  5979. >
  5980. {{ s.student }}
  5981. </div>
  5982. </div>
  5983. <div
  5984. class="zuoyeYulan"
  5985. v-if="
  5986. worksStudent2.length &&
  5987. worksStudent2[toolIndex].length > 0
  5988. "
  5989. >
  5990. <div class="worksTop">
  5991. <div>作业预览</div>
  5992. <div
  5993. class="corOpen"
  5994. @click="contract(toolIndex)"
  5995. v-if="
  5996. worksStudent2[toolIndex].length > 6 &&
  5997. isCloseList[toolIndex].isClose == 0
  5998. "
  5999. >
  6000. 收缩
  6001. </div>
  6002. <div
  6003. class="corOpen"
  6004. @click="contract(toolIndex)"
  6005. v-if="isCloseList[toolIndex].isClose == 1"
  6006. >
  6007. 展开
  6008. </div>
  6009. </div>
  6010. </div>
  6011. <div
  6012. class="worksDetailBox"
  6013. v-if="
  6014. worksStudent2.length &&
  6015. worksStudent2[toolIndex].length > 0
  6016. "
  6017. >
  6018. <div
  6019. class="works"
  6020. style="
  6021. width: 200px;
  6022. height: 140px;
  6023. margin: 10px 10px 10px 0;
  6024. border-radius: 15px;
  6025. box-shadow: 0 0 6px 1px #dfdada;
  6026. "
  6027. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6028. ? worksStudent2[toolIndex]
  6029. : worksStudent2[toolIndex].slice(0, 6)"
  6030. :key="wIndex"
  6031. :class="w.type == 1 ? 'isTypeOne' : ''"
  6032. >
  6033. <div class="workImg">
  6034. <img :src="word" @click="openWord(w)" alt />
  6035. <!-- @click="openFile(w.works)" -->
  6036. <div
  6037. class="answerScore"
  6038. v-if="w.score"
  6039. @click.stop="openScore(w)"
  6040. :class="{
  6041. rightW:
  6042. w.userid == userid ||
  6043. tType == 1 ||
  6044. tType == 4 ||
  6045. w.ateacher == userid,
  6046. }"
  6047. >
  6048. {{ JSON.parse(w.score).wScore }}分
  6049. </div>
  6050. <div
  6051. class="answerScore"
  6052. @click.stop="openScore(w)"
  6053. v-else-if="courseDetail.userid == userid"
  6054. :class="{
  6055. rightW:
  6056. w.userid == userid ||
  6057. tType == 1 ||
  6058. tType == 4 ||
  6059. w.ateacher == userid,
  6060. }"
  6061. >
  6062. 评分
  6063. </div>
  6064. <img
  6065. class="deleteImg"
  6066. src="../../assets/deleteworks.png"
  6067. v-if="w.userid == userid || tType == 1 || tType == 4"
  6068. @click.stop="deleteWorks(w.wid)"
  6069. alt
  6070. />
  6071. </div>
  6072. <div class="comment" style="min-width: 200px">
  6073. <div class="worksName">
  6074. <div>{{ w.sName }}</div>
  6075. </div>
  6076. <div class="commentList">
  6077. <div class="commentList">
  6078. <div
  6079. class="commentImg"
  6080. @click="
  6081. isLikes(w.wid, userid, 1, null, w.isLikes)
  6082. "
  6083. >
  6084. <img
  6085. :src="w.isLikes == true ? likes : noLikes"
  6086. alt=""
  6087. />
  6088. </div>
  6089. <div>{{ w.likesCount }}</div>
  6090. </div>
  6091. <div class="commentList" style="margin-right: 15px">
  6092. <div
  6093. class="commentImg"
  6094. @click="commentOther(w, toolIndex, wIndex)"
  6095. >
  6096. <img
  6097. src="../../assets/icon/comment/comment.png"
  6098. alt=""
  6099. />
  6100. </div>
  6101. <div>{{ w.commentCount }}</div>
  6102. </div>
  6103. </div>
  6104. </div>
  6105. </div>
  6106. </div>
  6107. </div>
  6108. </div>
  6109. </div>
  6110. <div
  6111. class="vedioBox"
  6112. v-if="
  6113. arrayToArray(tool.tool, isWorkTool).length &&
  6114. (noWorksS[toolIndex].length || worksStudent[toolIndex].length)
  6115. "
  6116. >
  6117. <div
  6118. class="queTop"
  6119. style="
  6120. font-size: 20px;
  6121. padding: 15px 0 15px 30px;
  6122. font-weight: bold;
  6123. "
  6124. >
  6125. 工作区
  6126. </div>
  6127. <div class="tool_work_box">
  6128. <div
  6129. v-if="
  6130. tType &&
  6131. ((tType == 2 && sIsOpen == true) ||
  6132. tType == 1 ||
  6133. tType == 4) &&
  6134. tool.tool.indexOf(16) != -1
  6135. "
  6136. class="worksBox"
  6137. >
  6138. <div
  6139. class="zuoyeYulan"
  6140. v-if="
  6141. worksStudent.length && worksStudent[toolIndex].length > 0
  6142. "
  6143. >
  6144. <div class="worksTop">
  6145. <div>作业预览</div>
  6146. <div
  6147. class="corOpen"
  6148. @click="contract(toolIndex)"
  6149. v-if="
  6150. worksStudent[toolIndex].length > 6 &&
  6151. isCloseList[toolIndex].isClose == 0
  6152. "
  6153. >
  6154. 收缩
  6155. </div>
  6156. <div
  6157. class="corOpen"
  6158. @click="contract(toolIndex)"
  6159. v-if="isCloseList[toolIndex].isClose == 1"
  6160. >
  6161. 展开
  6162. </div>
  6163. </div>
  6164. </div>
  6165. <div
  6166. class="worksDetailBox"
  6167. v-if="
  6168. worksStudent.length && worksStudent[toolIndex].length > 0
  6169. "
  6170. >
  6171. <div
  6172. class="works"
  6173. style="
  6174. width: 200px;
  6175. height: 140px;
  6176. margin: 10px 10px 10px 0;
  6177. border-radius: 15px;
  6178. box-shadow: 0 0 6px 1px #dfdada;
  6179. "
  6180. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6181. ? worksStudent[toolIndex]
  6182. : worksStudent[toolIndex].slice(0, 6)"
  6183. :key="wIndex"
  6184. :class="w.type == 1 ? 'isTypeOne' : ''"
  6185. >
  6186. <div class="workImg" v-if="w.type == 0">
  6187. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6188. <img :src="w.works" @click="previewImg(w.works)" alt />
  6189. <div
  6190. class="answerScore"
  6191. v-if="w.score"
  6192. @click.stop="openScore(w)"
  6193. :class="{
  6194. rightW:
  6195. w.userid == userid ||
  6196. tType == 1 ||
  6197. tType == 4 ||
  6198. w.ateacher == userid,
  6199. }"
  6200. >
  6201. {{ JSON.parse(w.score).wScore }}分
  6202. </div>
  6203. <div
  6204. class="answerScore"
  6205. @click.stop="openScore(w)"
  6206. v-else-if="courseDetail.userid == userid"
  6207. :class="{
  6208. rightW:
  6209. w.userid == userid ||
  6210. tType == 1 ||
  6211. tType == 4 ||
  6212. w.ateacher == userid,
  6213. }"
  6214. >
  6215. 评分
  6216. </div>
  6217. <img
  6218. class="deleteImg"
  6219. src="../../assets/deleteworks.png"
  6220. v-if="w.userid == userid || tType == 1 || tType == 4"
  6221. @click.stop="deleteWorks(w.wid)"
  6222. alt
  6223. />
  6224. </div>
  6225. <div class="workImg" v-if="w.type == 1">
  6226. <img :src="word" @click="openFile(w.works)" alt />
  6227. <!-- @click="openFile(w.works)" -->
  6228. <div
  6229. class="answerScore"
  6230. v-if="w.score"
  6231. @click.stop="openScore(w)"
  6232. :class="{
  6233. rightW:
  6234. w.userid == userid ||
  6235. tType == 1 ||
  6236. tType == 4 ||
  6237. w.ateacher == userid,
  6238. }"
  6239. >
  6240. {{ JSON.parse(w.score).wScore }}分
  6241. </div>
  6242. <div
  6243. class="answerScore"
  6244. @click.stop="openScore(w)"
  6245. v-else-if="courseDetail.userid == userid"
  6246. :class="{
  6247. rightW:
  6248. w.userid == userid ||
  6249. tType == 1 ||
  6250. tType == 4 ||
  6251. w.ateacher == userid,
  6252. }"
  6253. >
  6254. 评分
  6255. </div>
  6256. <img
  6257. class="deleteImg"
  6258. src="../../assets/deleteworks.png"
  6259. v-if="w.userid == userid || tType == 1 || tType == 4"
  6260. @click.stop="deleteWorks(w.wid)"
  6261. alt
  6262. />
  6263. </div>
  6264. <div class="workImg" v-if="w.type == 3">
  6265. <img
  6266. style="cursor: pointer"
  6267. :src="video"
  6268. @click="openVideo(w)"
  6269. alt
  6270. />
  6271. <!-- @click="openVideo(w.works)" -->
  6272. <div
  6273. class="answerScore"
  6274. v-if="w.score"
  6275. @click.stop="openScore(w)"
  6276. :class="{
  6277. rightW:
  6278. w.userid == userid ||
  6279. tType == 1 ||
  6280. tType == 4 ||
  6281. w.ateacher == userid,
  6282. }"
  6283. >
  6284. {{ JSON.parse(w.score).wScore }}分
  6285. </div>
  6286. <div
  6287. class="answerScore"
  6288. @click.stop="openScore(w)"
  6289. v-else-if="courseDetail.userid == userid"
  6290. :class="{
  6291. rightW:
  6292. w.userid == userid ||
  6293. tType == 1 ||
  6294. tType == 4 ||
  6295. w.ateacher == userid,
  6296. }"
  6297. >
  6298. 评分
  6299. </div>
  6300. <img
  6301. class="deleteImg"
  6302. src="../../assets/deleteworks.png"
  6303. v-if="w.userid == userid || tType == 1 || tType == 4"
  6304. @click.stop="deleteWorks(w.wid)"
  6305. alt
  6306. />
  6307. </div>
  6308. <div class="workImg" v-if="w.type == 12">
  6309. <img
  6310. style="cursor: pointer"
  6311. :src="word2"
  6312. @click="downloadFile(w.works)"
  6313. alt
  6314. />
  6315. <!-- @click="openVideo(w.works)" -->
  6316. <div
  6317. class="answerScore"
  6318. v-if="w.score"
  6319. @click.stop="openScore(w)"
  6320. :class="{
  6321. rightW:
  6322. w.userid == userid ||
  6323. tType == 1 ||
  6324. tType == 4 ||
  6325. w.ateacher == userid,
  6326. }"
  6327. >
  6328. {{ JSON.parse(w.score).wScore }}分
  6329. </div>
  6330. <div
  6331. class="answerScore"
  6332. @click.stop="openScore(w)"
  6333. v-else-if="courseDetail.userid == userid"
  6334. :class="{
  6335. rightW:
  6336. w.userid == userid ||
  6337. tType == 1 ||
  6338. tType == 4 ||
  6339. w.ateacher == userid,
  6340. }"
  6341. >
  6342. 评分
  6343. </div>
  6344. <img
  6345. class="deleteImg"
  6346. src="../../assets/deleteworks.png"
  6347. v-if="w.userid == userid || tType == 1 || tType == 4"
  6348. @click.stop="deleteWorks(w.wid)"
  6349. alt
  6350. />
  6351. </div>
  6352. <div class="comment" style="min-width: 200px">
  6353. <div class="worksName">
  6354. <div>{{ w.sName }}</div>
  6355. </div>
  6356. <div class="commentList">
  6357. <div class="commentList">
  6358. <div
  6359. class="commentImg"
  6360. @click="
  6361. isLikes(w.wid, userid, 1, null, w.isLikes)
  6362. "
  6363. >
  6364. <img
  6365. :src="w.isLikes == true ? likes : noLikes"
  6366. alt=""
  6367. />
  6368. </div>
  6369. <div>{{ w.likesCount }}</div>
  6370. </div>
  6371. <div class="commentList" style="margin-right: 15px">
  6372. <div
  6373. class="commentImg"
  6374. @click="commentOther(w, toolIndex, wIndex)"
  6375. >
  6376. <img
  6377. src="../../assets/icon/comment/comment.png"
  6378. alt=""
  6379. />
  6380. </div>
  6381. <div>{{ w.commentCount }}</div>
  6382. </div>
  6383. </div>
  6384. </div>
  6385. </div>
  6386. </div>
  6387. <div class="noWorksS">
  6388. <div
  6389. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6390. :key="sIndex"
  6391. class="noWorksName"
  6392. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  6393. :class="{ isWork: s.type == '2' }"
  6394. >
  6395. {{ s.student }}
  6396. </div>
  6397. </div>
  6398. </div>
  6399. <div
  6400. v-if="
  6401. tType &&
  6402. ((tType == 2 && sIsOpen == true) ||
  6403. tType == 1 ||
  6404. tType == 4) &&
  6405. tool.tool.indexOf(32) != -1
  6406. "
  6407. class="worksBox"
  6408. >
  6409. <div
  6410. class="zuoyeYulan"
  6411. v-if="
  6412. worksStudent.length && worksStudent[toolIndex].length > 0
  6413. "
  6414. >
  6415. <div class="worksTop">
  6416. <div>作业预览</div>
  6417. <div
  6418. class="corOpen"
  6419. @click="contract(toolIndex)"
  6420. v-if="
  6421. worksStudent[toolIndex].length > 6 &&
  6422. isCloseList[toolIndex].isClose == 0
  6423. "
  6424. >
  6425. 收缩
  6426. </div>
  6427. <div
  6428. class="corOpen"
  6429. @click="contract(toolIndex)"
  6430. v-if="isCloseList[toolIndex].isClose == 1"
  6431. >
  6432. 展开
  6433. </div>
  6434. </div>
  6435. </div>
  6436. <div
  6437. class="worksDetailBox"
  6438. v-if="
  6439. worksStudent.length && worksStudent[toolIndex].length > 0
  6440. "
  6441. >
  6442. <div
  6443. class="works"
  6444. style="
  6445. width: 200px;
  6446. height: 140px;
  6447. margin: 10px 10px 10px 0;
  6448. border-radius: 15px;
  6449. box-shadow: 0 0 6px 1px #dfdada;
  6450. "
  6451. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6452. ? worksStudent[toolIndex]
  6453. : worksStudent[toolIndex].slice(0, 6)"
  6454. :key="wIndex"
  6455. :class="w.type == 1 ? 'isTypeOne' : ''"
  6456. >
  6457. <div class="workImg">
  6458. <img :src="word2" @click="downloadFile(w.works)" alt />
  6459. <div
  6460. class="answerScore"
  6461. v-if="w.score"
  6462. @click.stop="openScore(w)"
  6463. :class="{
  6464. rightW:
  6465. w.userid == userid ||
  6466. tType == 1 ||
  6467. tType == 4 ||
  6468. w.ateacher == userid,
  6469. }"
  6470. >
  6471. {{ JSON.parse(w.score).wScore }}分
  6472. </div>
  6473. <div
  6474. class="answerScore"
  6475. @click.stop="openScore(w)"
  6476. v-else-if="courseDetail.userid == userid"
  6477. :class="{
  6478. rightW:
  6479. w.userid == userid ||
  6480. tType == 1 ||
  6481. tType == 4 ||
  6482. w.ateacher == userid,
  6483. }"
  6484. >
  6485. 评分
  6486. </div>
  6487. <img
  6488. class="deleteImg"
  6489. src="../../assets/deleteworks.png"
  6490. v-if="w.userid == userid || tType == 1 || tType == 4"
  6491. @click.stop="deleteWorks(w.wid)"
  6492. alt
  6493. />
  6494. </div>
  6495. <div class="comment" style="min-width: 200px">
  6496. <div class="worksName">
  6497. <div>{{ w.sName }}</div>
  6498. </div>
  6499. <div class="commentList">
  6500. <div class="commentList">
  6501. <div
  6502. class="commentImg"
  6503. @click="
  6504. isLikes(w.wid, userid, 1, null, w.isLikes)
  6505. "
  6506. >
  6507. <img
  6508. :src="w.isLikes == true ? likes : noLikes"
  6509. alt=""
  6510. />
  6511. </div>
  6512. <div>{{ w.likesCount }}</div>
  6513. </div>
  6514. <div class="commentList" style="margin-right: 15px">
  6515. <div
  6516. class="commentImg"
  6517. @click="commentOther(w, toolIndex, wIndex)"
  6518. >
  6519. <img
  6520. src="../../assets/icon/comment/comment.png"
  6521. alt=""
  6522. />
  6523. </div>
  6524. <div>{{ w.commentCount }}</div>
  6525. </div>
  6526. </div>
  6527. </div>
  6528. </div>
  6529. </div>
  6530. <div class="noWorksS">
  6531. <div
  6532. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6533. :key="sIndex"
  6534. class="noWorksName"
  6535. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  6536. :class="{ isWork: s.type == '2' }"
  6537. >
  6538. {{ s.student }}
  6539. </div>
  6540. </div>
  6541. </div>
  6542. <div
  6543. v-if="
  6544. tType &&
  6545. ((tType == 2 && sIsOpen == true) ||
  6546. tType == 1 ||
  6547. tType == 4) &&
  6548. tool.tool.indexOf(57) != -1
  6549. "
  6550. class="worksBox"
  6551. >
  6552. <div
  6553. class="zuoyeYulan"
  6554. v-if="
  6555. worksStudent.length && worksStudent[toolIndex].length > 0
  6556. "
  6557. >
  6558. <div class="worksTop">
  6559. <div>作业预览</div>
  6560. <div
  6561. class="corOpen"
  6562. @click="contract(toolIndex)"
  6563. v-if="
  6564. worksStudent[toolIndex].length > 6 &&
  6565. isCloseList[toolIndex].isClose == 0
  6566. "
  6567. >
  6568. 收缩
  6569. </div>
  6570. <div
  6571. class="corOpen"
  6572. @click="contract(toolIndex)"
  6573. v-if="isCloseList[toolIndex].isClose == 1"
  6574. >
  6575. 展开
  6576. </div>
  6577. </div>
  6578. </div>
  6579. <div
  6580. class="worksDetailBox"
  6581. v-if="
  6582. worksStudent.length && worksStudent[toolIndex].length > 0
  6583. "
  6584. >
  6585. <div
  6586. class="works"
  6587. style="
  6588. width: 200px;
  6589. height: 140px;
  6590. margin: 10px 10px 10px 0;
  6591. border-radius: 15px;
  6592. box-shadow: 0 0 6px 1px #dfdada;
  6593. "
  6594. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6595. ? worksStudent[toolIndex]
  6596. : worksStudent[toolIndex].slice(0, 6)"
  6597. :key="wIndex"
  6598. :class="w.type == 1 ? 'isTypeOne' : ''"
  6599. >
  6600. <div class="workImg">
  6601. <img
  6602. :src="word2"
  6603. @click="downloadFile(w.works)"
  6604. v-if="w.type == 12"
  6605. alt
  6606. />
  6607. <img
  6608. :src="word2"
  6609. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  6610. v-else-if="w.type == 15"
  6611. alt
  6612. />
  6613. <div
  6614. class="answerScore"
  6615. v-if="w.score"
  6616. @click.stop="openScore(w)"
  6617. :class="{
  6618. rightW:
  6619. w.userid == userid ||
  6620. tType == 1 ||
  6621. tType == 4 ||
  6622. w.ateacher == userid,
  6623. }"
  6624. >
  6625. {{ JSON.parse(w.score).wScore }}分
  6626. </div>
  6627. <div
  6628. class="answerScore"
  6629. @click.stop="openScore(w)"
  6630. v-else-if="courseDetail.userid == userid"
  6631. :class="{
  6632. rightW:
  6633. w.userid == userid ||
  6634. tType == 1 ||
  6635. tType == 4 ||
  6636. w.ateacher == userid,
  6637. }"
  6638. >
  6639. 评分
  6640. </div>
  6641. <img
  6642. class="deleteImg"
  6643. src="../../assets/deleteworks.png"
  6644. v-if="w.userid == userid || tType == 1 || tType == 4"
  6645. @click.stop="deleteWorks(w.wid)"
  6646. alt
  6647. />
  6648. </div>
  6649. <div class="comment" style="min-width: 200px">
  6650. <div class="worksName">
  6651. <div>{{ w.sName }}</div>
  6652. </div>
  6653. <div class="commentList">
  6654. <div class="commentList">
  6655. <div
  6656. class="commentImg"
  6657. @click="
  6658. isLikes(w.wid, userid, 1, null, w.isLikes)
  6659. "
  6660. >
  6661. <img
  6662. :src="w.isLikes == true ? likes : noLikes"
  6663. alt=""
  6664. />
  6665. </div>
  6666. <div>{{ w.likesCount }}</div>
  6667. </div>
  6668. <div class="commentList" style="margin-right: 15px">
  6669. <div
  6670. class="commentImg"
  6671. @click="commentOther(w, toolIndex, wIndex)"
  6672. >
  6673. <img
  6674. src="../../assets/icon/comment/comment.png"
  6675. alt=""
  6676. />
  6677. </div>
  6678. <div>{{ w.commentCount }}</div>
  6679. </div>
  6680. </div>
  6681. </div>
  6682. </div>
  6683. </div>
  6684. <div class="noWorksS">
  6685. <div
  6686. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6687. :key="sIndex"
  6688. class="noWorksName"
  6689. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  6690. :class="{ isWork: s.type == '2' }"
  6691. >
  6692. {{ s.student }}
  6693. </div>
  6694. </div>
  6695. </div>
  6696. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  6697. <div
  6698. class="zuoyeYulan"
  6699. v-if="
  6700. worksStudent.length && worksStudent[toolIndex].length > 0
  6701. "
  6702. >
  6703. <span>作业预览</span>
  6704. <div
  6705. class="corOpen"
  6706. @click="contract(toolIndex)"
  6707. v-if="
  6708. worksStudent[toolIndex].length > 6 &&
  6709. isCloseList[toolIndex].isClose == 0
  6710. "
  6711. >
  6712. 收缩
  6713. </div>
  6714. <div
  6715. class="corOpen"
  6716. @click="contract(toolIndex)"
  6717. v-if="isCloseList[toolIndex].isClose == 1"
  6718. >
  6719. 展开
  6720. </div>
  6721. </div>
  6722. <div
  6723. class="worksDetailBox"
  6724. v-if="
  6725. worksStudent.length && worksStudent[toolIndex].length > 0
  6726. "
  6727. >
  6728. <div
  6729. class="works"
  6730. style="
  6731. width: 200px;
  6732. height: 140px;
  6733. margin: 10px 10px 10px 0;
  6734. border-radius: 15px;
  6735. box-shadow: 0 0 6px 1px #dfdada;
  6736. "
  6737. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6738. ? worksStudent[toolIndex]
  6739. : worksStudent[toolIndex].slice(0, 6)"
  6740. :key="wIndex"
  6741. :class="w.type == 1 ? 'isTypeOne' : ''"
  6742. >
  6743. <div class="workImg" v-if="w.type == 0">
  6744. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6745. <img :src="w.works" @click="previewImg(w.works)" alt />
  6746. <div
  6747. class="answerScore"
  6748. v-if="w.score"
  6749. @click.stop="openScore(w)"
  6750. :class="{
  6751. rightW:
  6752. w.userid == userid ||
  6753. tType == 1 ||
  6754. tType == 4 ||
  6755. w.ateacher == userid,
  6756. }"
  6757. >
  6758. {{ JSON.parse(w.score).wScore }}分
  6759. </div>
  6760. <div
  6761. class="answerScore"
  6762. @click.stop="openScore(w)"
  6763. v-else-if="courseDetail.userid == userid"
  6764. :class="{
  6765. rightW:
  6766. w.userid == userid ||
  6767. tType == 1 ||
  6768. tType == 4 ||
  6769. w.ateacher == userid,
  6770. }"
  6771. >
  6772. 评分
  6773. </div>
  6774. <img
  6775. class="deleteImg"
  6776. src="../../assets/deleteworks.png"
  6777. v-if="w.userid == userid || tType == 1 || tType == 4"
  6778. @click.stop="deleteWorks(w.wid)"
  6779. alt
  6780. />
  6781. </div>
  6782. <div
  6783. class="workImg"
  6784. style="cursor: pointer"
  6785. v-if="w.type == 1"
  6786. >
  6787. <img :src="word" @click="openFile(w.works)" alt />
  6788. <!-- @click="openFile(w.works)" -->
  6789. <div
  6790. class="answerScore"
  6791. v-if="w.score"
  6792. @click.stop="openScore(w)"
  6793. :class="{
  6794. rightW:
  6795. w.userid == userid ||
  6796. tType == 1 ||
  6797. tType == 4 ||
  6798. w.ateacher == userid,
  6799. }"
  6800. >
  6801. {{ JSON.parse(w.score).wScore }}分
  6802. </div>
  6803. <div
  6804. class="answerScore"
  6805. @click.stop="openScore(w)"
  6806. v-else-if="courseDetail.userid == userid"
  6807. :class="{
  6808. rightW:
  6809. w.userid == userid ||
  6810. tType == 1 ||
  6811. tType == 4 ||
  6812. w.ateacher == userid,
  6813. }"
  6814. >
  6815. 评分
  6816. </div>
  6817. <img
  6818. class="deleteImg"
  6819. src="../../assets/deleteworks.png"
  6820. v-if="w.userid == userid || tType == 1 || tType == 4"
  6821. @click.stop="deleteWorks(w.wid)"
  6822. alt
  6823. />
  6824. </div>
  6825. <div class="workImg" v-if="w.type == 3">
  6826. <img
  6827. style="cursor: pointer"
  6828. :src="video"
  6829. @click="openVideo(w)"
  6830. alt
  6831. />
  6832. <!-- @click="openVideo(w.works)" -->
  6833. <div
  6834. class="answerScore"
  6835. v-if="w.score"
  6836. @click.stop="openScore(w)"
  6837. :class="{
  6838. rightW:
  6839. w.userid == userid ||
  6840. tType == 1 ||
  6841. tType == 4 ||
  6842. w.ateacher == userid,
  6843. }"
  6844. >
  6845. {{ JSON.parse(w.score).wScore }}分
  6846. </div>
  6847. <div
  6848. class="answerScore"
  6849. @click.stop="openScore(w)"
  6850. v-else-if="courseDetail.userid == userid"
  6851. :class="{
  6852. rightW:
  6853. w.userid == userid ||
  6854. tType == 1 ||
  6855. tType == 4 ||
  6856. w.ateacher == userid,
  6857. }"
  6858. >
  6859. 评分
  6860. </div>
  6861. <img
  6862. class="deleteImg"
  6863. src="../../assets/deleteworks.png"
  6864. v-if="w.userid == userid || tType == 1 || tType == 4"
  6865. @click.stop="deleteWorks(w.wid)"
  6866. alt
  6867. />
  6868. </div>
  6869. <div class="comment" style="min-width: 200px">
  6870. <div class="worksName">
  6871. <div
  6872. style="cursor: pointer"
  6873. @click="
  6874. openSname(w.sName, w.wid, toolIndex, w.userid)
  6875. "
  6876. >
  6877. {{ w.sName }}
  6878. </div>
  6879. </div>
  6880. <div class="commentList">
  6881. <div class="commentList">
  6882. <div
  6883. class="commentImg"
  6884. @click="
  6885. isLikes(w.wid, userid, 1, null, w.isLikes)
  6886. "
  6887. >
  6888. <img
  6889. :src="w.isLikes == true ? likes : noLikes"
  6890. alt=""
  6891. />
  6892. </div>
  6893. <div>{{ w.likesCount }}</div>
  6894. </div>
  6895. <div class="commentList" style="margin-right: 15px">
  6896. <div
  6897. class="commentImg"
  6898. @click="commentOther(w, toolIndex, wIndex)"
  6899. >
  6900. <img
  6901. src="../../assets/icon/comment/comment.png"
  6902. alt=""
  6903. />
  6904. </div>
  6905. <div>{{ w.commentCount }}</div>
  6906. </div>
  6907. </div>
  6908. </div>
  6909. </div>
  6910. </div>
  6911. <div class="noWorksS">
  6912. <div
  6913. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6914. :key="sIndex"
  6915. class="noWorksName"
  6916. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  6917. :class="{ isWork: s.type == '2' }"
  6918. >
  6919. {{ s.student }}
  6920. </div>
  6921. </div>
  6922. </div>
  6923. <div
  6924. v-if="
  6925. tType &&
  6926. ((tType == 2 && sIsOpen == true) ||
  6927. tType == 1 ||
  6928. tType == 4) &&
  6929. tool.tool.indexOf(4) != -1
  6930. "
  6931. class="worksBox"
  6932. >
  6933. <div
  6934. class="zuoyeYulan"
  6935. v-if="
  6936. worksStudent.length && worksStudent[toolIndex].length > 0
  6937. "
  6938. >
  6939. <div class="worksTop">
  6940. <div>作业预览</div>
  6941. <div
  6942. class="corOpen"
  6943. @click="contract(toolIndex)"
  6944. v-if="
  6945. worksStudent[toolIndex].length > 6 &&
  6946. isCloseList[toolIndex].isClose == 0
  6947. "
  6948. >
  6949. 收缩
  6950. </div>
  6951. <div
  6952. class="corOpen"
  6953. @click="contract(toolIndex)"
  6954. v-if="isCloseList[toolIndex].isClose == 1"
  6955. >
  6956. 展开
  6957. </div>
  6958. </div>
  6959. </div>
  6960. <div>
  6961. <div
  6962. class="worksDetailBox"
  6963. v-if="
  6964. worksStudent.length &&
  6965. worksStudent[toolIndex].length > 0
  6966. "
  6967. >
  6968. <div
  6969. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6970. 0
  6971. ? worksStudent[toolIndex]
  6972. : worksStudent[toolIndex].slice(0, 6)"
  6973. :key="wIndex"
  6974. class="isWorksName"
  6975. @click="
  6976. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6977. "
  6978. >
  6979. {{ w.sName }}
  6980. <img
  6981. class="deleteImg deleteImg2"
  6982. src="../../assets/deleteworks.png"
  6983. v-if="w.userid == userid || tType == 1 || tType == 4"
  6984. @click.stop="deleteWorks(w.wid)"
  6985. alt
  6986. />
  6987. </div>
  6988. </div>
  6989. </div>
  6990. <div class="noWorksS">
  6991. <div
  6992. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6993. :key="sIndex"
  6994. class="noWorksName"
  6995. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6996. :class="{ isWork: s.type == '2' }"
  6997. >
  6998. {{ s.student }}
  6999. </div>
  7000. </div>
  7001. </div>
  7002. <div
  7003. v-if="
  7004. tType &&
  7005. ((tType == 2 && sIsOpen == true) ||
  7006. tType == 1 ||
  7007. tType == 4) &&
  7008. tool.tool.indexOf(45) != -1
  7009. "
  7010. class="worksBox"
  7011. >
  7012. <div
  7013. class="zuoyeYulan"
  7014. v-if="
  7015. worksStudent.length && worksStudent[toolIndex].length > 0
  7016. "
  7017. >
  7018. <div class="worksTop">
  7019. <div>作业预览</div>
  7020. <div
  7021. class="corOpen"
  7022. @click="contract(toolIndex)"
  7023. v-if="
  7024. worksStudent[toolIndex].length > 6 &&
  7025. isCloseList[toolIndex].isClose == 0
  7026. "
  7027. >
  7028. 收缩
  7029. </div>
  7030. <div
  7031. class="corOpen"
  7032. @click="contract(toolIndex)"
  7033. v-if="isCloseList[toolIndex].isClose == 1"
  7034. >
  7035. 展开
  7036. </div>
  7037. </div>
  7038. </div>
  7039. <div>
  7040. <div
  7041. class="worksDetailBox"
  7042. v-if="
  7043. worksStudent.length &&
  7044. worksStudent[toolIndex].length > 0
  7045. "
  7046. >
  7047. <div
  7048. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  7049. 0
  7050. ? worksStudent[toolIndex]
  7051. : worksStudent[toolIndex].slice(0, 6)"
  7052. :key="wIndex"
  7053. class="isWorksName"
  7054. @click="
  7055. openTools(45, toolIndex, taskCount, w.works, w.sName)
  7056. "
  7057. >
  7058. {{ w.sName }}
  7059. <img
  7060. class="deleteImg deleteImg2"
  7061. src="../../assets/deleteworks.png"
  7062. v-if="w.userid == userid || tType == 1 || tType == 4"
  7063. @click.stop="deleteWorks(w.wid)"
  7064. alt
  7065. />
  7066. </div>
  7067. </div>
  7068. </div>
  7069. <div class="noWorksS">
  7070. <div
  7071. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7072. :key="sIndex"
  7073. class="noWorksName"
  7074. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  7075. :class="{ isWork: s.type == '2' }"
  7076. >
  7077. {{ s.student }}
  7078. </div>
  7079. </div>
  7080. </div>
  7081. <div
  7082. v-if="
  7083. tType &&
  7084. ((tType == 2 && sIsOpen == true) ||
  7085. tType == 1 ||
  7086. tType == 4) &&
  7087. tool.tool.indexOf(15) != -1
  7088. "
  7089. class="worksBox"
  7090. >
  7091. <div
  7092. class="zuoyeYulan"
  7093. v-if="
  7094. worksStudent.length && worksStudent[toolIndex].length > 0
  7095. "
  7096. >
  7097. <div class="worksTop">
  7098. <div>作业预览</div>
  7099. <div
  7100. class="corOpen"
  7101. @click="contract(toolIndex)"
  7102. v-if="
  7103. worksStudent[toolIndex].length > 6 &&
  7104. isCloseList[toolIndex].isClose == 0
  7105. "
  7106. >
  7107. 收缩
  7108. </div>
  7109. <div
  7110. class="corOpen"
  7111. @click="contract(toolIndex)"
  7112. v-if="isCloseList[toolIndex].isClose == 1"
  7113. >
  7114. 展开
  7115. </div>
  7116. </div>
  7117. </div>
  7118. <div
  7119. class="worksDetailBox"
  7120. v-if="
  7121. worksStudent.length && worksStudent[toolIndex].length > 0
  7122. "
  7123. >
  7124. <div
  7125. class="works"
  7126. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7127. ? worksStudent[toolIndex]
  7128. : worksStudent[toolIndex].slice(0, 6)"
  7129. :key="wIndex"
  7130. >
  7131. <div
  7132. class="workImg"
  7133. style="
  7134. border-radius: 15px;
  7135. box-shadow: #eee 0px 0px 5px 5px;
  7136. "
  7137. >
  7138. <!-- <img
  7139. src="../../assets/icon/works/noImg.png"
  7140. @click="openTools(15, toolIndex, taskCount, w.works)"
  7141. alt=""
  7142. />-->
  7143. <div
  7144. class="answerBg"
  7145. style="border-radius: 15px 15px 0 0"
  7146. @click="commentOther(w, toolIndex, wIndex)"
  7147. >
  7148. <!-- <div>{{ w.sName }}</div> -->
  7149. <div class="answerContent">
  7150. {{ JSON.parse(w.works)[0].answer }}
  7151. </div>
  7152. <div
  7153. class="answerScore"
  7154. v-if="w.score"
  7155. @click.stop="openScore(w)"
  7156. :class="{
  7157. rightW:
  7158. w.userid == userid || tType == 1 || tType == 4,
  7159. }"
  7160. >
  7161. {{ JSON.parse(w.score).wScore }}分
  7162. </div>
  7163. <div
  7164. class="answerScore"
  7165. @click.stop="openScore(w)"
  7166. v-else-if="courseDetail.userid == userid"
  7167. :class="{
  7168. rightW:
  7169. w.userid == userid || tType == 1 || tType == 4,
  7170. }"
  7171. >
  7172. 评分
  7173. </div>
  7174. <img
  7175. class="deleteImg"
  7176. src="../../assets/deleteworks.png"
  7177. v-if="
  7178. w.userid == userid || tType == 1 || tType == 4
  7179. "
  7180. @click.stop="deleteWorks(w.wid)"
  7181. alt
  7182. />
  7183. </div>
  7184. <div class="comment">
  7185. <div class="worksName">
  7186. <div>{{ w.sName }}</div>
  7187. </div>
  7188. <div class="commentList">
  7189. <div
  7190. class="commentImg"
  7191. @click="
  7192. isLikes(w.wid, userid, 1, null, w.isLikes)
  7193. "
  7194. >
  7195. <img
  7196. :src="w.isLikes == true ? likes : noLikes"
  7197. alt=""
  7198. />
  7199. </div>
  7200. <div>{{ w.likesCount }}</div>
  7201. </div>
  7202. <div class="commentList" style="margin-right: 15px">
  7203. <div
  7204. class="commentImg"
  7205. @click="commentOther(w, toolIndex, wIndex)"
  7206. >
  7207. <img
  7208. src="../../assets/icon/comment/comment.png"
  7209. alt=""
  7210. />
  7211. </div>
  7212. <div>{{ w.commentCount }}</div>
  7213. </div>
  7214. </div>
  7215. </div>
  7216. </div>
  7217. </div>
  7218. <div class="noWorksS">
  7219. <div
  7220. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7221. :key="sIndex"
  7222. class="noWorksName"
  7223. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  7224. :class="{ isWork: s.type == '2' }"
  7225. >
  7226. {{ s.student }}
  7227. </div>
  7228. </div>
  7229. </div>
  7230. <div
  7231. v-if="
  7232. tType &&
  7233. ((tType == 2 && sIsOpen == true) ||
  7234. tType == 1 ||
  7235. tType == 4) &&
  7236. tool.tool.indexOf(1) != -1
  7237. "
  7238. class="worksBox"
  7239. >
  7240. <div
  7241. class="zuoyeYulan"
  7242. v-if="
  7243. worksStudent.length && worksStudent[toolIndex].length > 0
  7244. "
  7245. >
  7246. <div class="worksTop">
  7247. <div>作业预览</div>
  7248. <div
  7249. class="corOpen"
  7250. @click="contract(toolIndex)"
  7251. v-if="
  7252. worksStudent[toolIndex].length > 6 &&
  7253. isCloseList[toolIndex].isClose == 0
  7254. "
  7255. >
  7256. 收缩
  7257. </div>
  7258. <div
  7259. class="corOpen"
  7260. @click="contract(toolIndex)"
  7261. v-if="isCloseList[toolIndex].isClose == 1"
  7262. >
  7263. 展开
  7264. </div>
  7265. </div>
  7266. </div>
  7267. <div
  7268. class="worksDetailBox"
  7269. v-if="
  7270. worksStudent.length && worksStudent[toolIndex].length > 0
  7271. "
  7272. >
  7273. <div
  7274. class="works"
  7275. style="
  7276. width: 200px;
  7277. height: 140px;
  7278. margin: 10px 10px 10px 0;
  7279. border-radius: 15px;
  7280. box-shadow: 0 0 6px 1px #dfdada;
  7281. "
  7282. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7283. ? worksStudent[toolIndex]
  7284. : worksStudent[toolIndex].slice(0, 6)"
  7285. :key="wIndex"
  7286. >
  7287. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  7288. <div class="workImg">
  7289. <img :src="w.works" @click="previewImg(w.works)" alt />
  7290. <div
  7291. class="answerScore"
  7292. v-if="w.score"
  7293. @click.stop="openScore(w)"
  7294. :class="{
  7295. rightW:
  7296. w.userid == userid || tType == 1 || tType == 4,
  7297. }"
  7298. >
  7299. {{ JSON.parse(w.score).wScore }}分
  7300. </div>
  7301. <div
  7302. class="answerScore"
  7303. @click.stop="openScore(w)"
  7304. v-else-if="courseDetail.userid == userid"
  7305. :class="{
  7306. rightW:
  7307. w.userid == userid || tType == 1 || tType == 4,
  7308. }"
  7309. >
  7310. 评分
  7311. </div>
  7312. <img
  7313. class="deleteImg"
  7314. src="../../assets/deleteworks.png"
  7315. v-if="w.userid == userid || tType == 1 || tType == 4"
  7316. @click.stop="deleteWorks(w.wid)"
  7317. alt
  7318. />
  7319. </div>
  7320. <div class="comment" style="min-width: 200px">
  7321. <div class="worksName">
  7322. <div>{{ w.sName }}</div>
  7323. </div>
  7324. <div class="commentList">
  7325. <div class="commentList">
  7326. <div
  7327. class="commentImg"
  7328. @click="
  7329. isLikes(w.wid, userid, 1, null, w.isLikes)
  7330. "
  7331. >
  7332. <img
  7333. :src="w.isLikes == true ? likes : noLikes"
  7334. alt=""
  7335. />
  7336. </div>
  7337. <div>{{ w.likesCount }}</div>
  7338. </div>
  7339. <div class="commentList" style="margin-right: 15px">
  7340. <div
  7341. class="commentImg"
  7342. @click="commentOther(w, toolIndex, wIndex)"
  7343. >
  7344. <img
  7345. src="../../assets/icon/comment/comment.png"
  7346. alt=""
  7347. />
  7348. </div>
  7349. <div>{{ w.commentCount }}</div>
  7350. </div>
  7351. </div>
  7352. </div>
  7353. </div>
  7354. </div>
  7355. <div class="noWorksS">
  7356. <div
  7357. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7358. :key="sIndex"
  7359. class="noWorksName"
  7360. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7361. :class="{ isWork: s.type == '2' }"
  7362. >
  7363. {{ s.student }}
  7364. </div>
  7365. </div>
  7366. </div>
  7367. <div
  7368. v-if="
  7369. tType &&
  7370. ((tType == 2 && sIsOpen == true) ||
  7371. tType == 1 ||
  7372. tType == 4) &&
  7373. tool.tool.indexOf(3) != -1
  7374. "
  7375. class="worksBox"
  7376. >
  7377. <div
  7378. class="zuoyeYulan"
  7379. v-if="
  7380. worksStudent.length && worksStudent[toolIndex].length > 0
  7381. "
  7382. >
  7383. <div class="worksTop">
  7384. <div>作业预览</div>
  7385. <div
  7386. class="corOpen"
  7387. @click="contract(toolIndex)"
  7388. v-if="
  7389. worksStudent[toolIndex].length > 6 &&
  7390. isCloseList[toolIndex].isClose == 0
  7391. "
  7392. >
  7393. 收缩
  7394. </div>
  7395. <div
  7396. class="corOpen"
  7397. @click="contract(toolIndex)"
  7398. v-if="isCloseList[toolIndex].isClose == 1"
  7399. >
  7400. 展开
  7401. </div>
  7402. </div>
  7403. </div>
  7404. <div
  7405. class="worksDetailBox"
  7406. v-if="
  7407. worksStudent.length && worksStudent[toolIndex].length > 0
  7408. "
  7409. >
  7410. <div
  7411. class="works"
  7412. style="
  7413. width: 200px;
  7414. height: 140px;
  7415. margin: 10px 10px 10px 0;
  7416. border-radius: 15px;
  7417. box-shadow: 0 0 6px 1px #dfdada;
  7418. "
  7419. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7420. ? worksStudent[toolIndex]
  7421. : worksStudent[toolIndex].slice(0, 6)"
  7422. :key="wIndex"
  7423. >
  7424. <!-- @click="previewImg(w.works)" -->
  7425. <div class="workImg">
  7426. <img :src="w.works" @click="previewImg(w.works)" alt />
  7427. <div
  7428. class="answerScore"
  7429. v-if="w.score"
  7430. @click.stop="openScore(w)"
  7431. :class="{
  7432. rightW:
  7433. w.userid == userid || tType == 1 || tType == 4,
  7434. }"
  7435. >
  7436. {{ JSON.parse(w.score).wScore }}分
  7437. </div>
  7438. <div
  7439. class="answerScore"
  7440. @click.stop="openScore(w)"
  7441. v-else-if="courseDetail.userid == userid"
  7442. :class="{
  7443. rightW:
  7444. w.userid == userid || tType == 1 || tType == 4,
  7445. }"
  7446. >
  7447. 评分
  7448. </div>
  7449. <img
  7450. class="deleteImg"
  7451. src="../../assets/deleteworks.png"
  7452. v-if="w.userid == userid || tType == 1 || tType == 4"
  7453. @click.stop="deleteWorks(w.wid)"
  7454. alt
  7455. />
  7456. </div>
  7457. <div class="comment" style="min-width: 200px">
  7458. <div class="worksName">
  7459. <div>{{ w.sName }}</div>
  7460. </div>
  7461. <div class="commentList">
  7462. <div class="commentList">
  7463. <div
  7464. class="commentImg"
  7465. @click="
  7466. isLikes(w.wid, userid, 1, null, w.isLikes)
  7467. "
  7468. >
  7469. <img
  7470. :src="w.isLikes == true ? likes : noLikes"
  7471. alt=""
  7472. />
  7473. </div>
  7474. <div>{{ w.likesCount }}</div>
  7475. </div>
  7476. <div class="commentList" style="margin-right: 15px">
  7477. <div
  7478. class="commentImg"
  7479. @click="commentOther(w, toolIndex, wIndex)"
  7480. >
  7481. <img
  7482. src="../../assets/icon/comment/comment.png"
  7483. alt=""
  7484. />
  7485. </div>
  7486. <div>{{ w.commentCount }}</div>
  7487. </div>
  7488. </div>
  7489. </div>
  7490. </div>
  7491. </div>
  7492. <div class="noWorksS">
  7493. <div
  7494. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7495. :key="sIndex"
  7496. class="noWorksName"
  7497. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7498. :class="{ isWork: s.type == '2' }"
  7499. >
  7500. {{ s.student }}
  7501. </div>
  7502. </div>
  7503. </div>
  7504. <div
  7505. v-if="
  7506. tType &&
  7507. ((tType == 2 && sIsOpen == true) ||
  7508. tType == 1 ||
  7509. tType == 4) &&
  7510. tool.tool.indexOf(6) != -1
  7511. "
  7512. class="worksBox"
  7513. >
  7514. <div
  7515. class="zuoyeYulan"
  7516. v-if="
  7517. worksStudent.length && worksStudent[toolIndex].length > 0
  7518. "
  7519. >
  7520. <div class="worksTop">
  7521. <div>作业预览</div>
  7522. <div
  7523. class="corOpen"
  7524. @click="contract(toolIndex)"
  7525. v-if="
  7526. worksStudent[toolIndex].length > 6 &&
  7527. isCloseList[toolIndex].isClose == 0
  7528. "
  7529. >
  7530. 收缩
  7531. </div>
  7532. <div
  7533. class="corOpen"
  7534. @click="contract(toolIndex)"
  7535. v-if="isCloseList[toolIndex].isClose == 1"
  7536. >
  7537. 展开
  7538. </div>
  7539. </div>
  7540. </div>
  7541. <div
  7542. class="worksDetailBox"
  7543. v-if="
  7544. worksStudent.length && worksStudent[toolIndex].length > 0
  7545. "
  7546. >
  7547. <div
  7548. class="works"
  7549. style="
  7550. width: 200px;
  7551. height: 140px;
  7552. margin: 10px 10px 10px 0;
  7553. border-radius: 15px;
  7554. box-shadow: 0 0 6px 1px #dfdada;
  7555. "
  7556. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7557. ? worksStudent[toolIndex]
  7558. : worksStudent[toolIndex].slice(0, 6)"
  7559. :key="wIndex"
  7560. >
  7561. <!-- @click="previewImg(w.works)" -->
  7562. <div class="workImg">
  7563. <img :src="w.works" @click="previewImg(w.works)" alt />
  7564. <div
  7565. class="answerScore"
  7566. v-if="w.score"
  7567. @click.stop="openScore(w)"
  7568. :class="{
  7569. rightW:
  7570. w.userid == userid || tType == 1 || tType == 4,
  7571. }"
  7572. >
  7573. {{ JSON.parse(w.score).wScore }}分
  7574. </div>
  7575. <div
  7576. class="answerScore"
  7577. @click.stop="openScore(w)"
  7578. v-else-if="courseDetail.userid == userid"
  7579. :class="{
  7580. rightW:
  7581. w.userid == userid || tType == 1 || tType == 4,
  7582. }"
  7583. >
  7584. 评分
  7585. </div>
  7586. <img
  7587. class="deleteImg"
  7588. src="../../assets/deleteworks.png"
  7589. v-if="w.userid == userid || tType == 1 || tType == 4"
  7590. @click.stop="deleteWorks(w.wid)"
  7591. alt
  7592. />
  7593. </div>
  7594. <div class="comment" style="min-width: 200px">
  7595. <div class="worksName">
  7596. <div>{{ w.sName }}</div>
  7597. </div>
  7598. <div class="commentList">
  7599. <div class="commentList">
  7600. <div
  7601. class="commentImg"
  7602. @click="
  7603. isLikes(w.wid, userid, 1, null, w.isLikes)
  7604. "
  7605. >
  7606. <img
  7607. :src="w.isLikes == true ? likes : noLikes"
  7608. alt=""
  7609. />
  7610. </div>
  7611. <div>{{ w.likesCount }}</div>
  7612. </div>
  7613. <div class="commentList" style="margin-right: 15px">
  7614. <div
  7615. class="commentImg"
  7616. @click="commentOther(w, toolIndex, wIndex)"
  7617. >
  7618. <img
  7619. src="../../assets/icon/comment/comment.png"
  7620. alt=""
  7621. />
  7622. </div>
  7623. <div>{{ w.commentCount }}</div>
  7624. </div>
  7625. </div>
  7626. </div>
  7627. </div>
  7628. </div>
  7629. <div class="noWorksS">
  7630. <div
  7631. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7632. :key="sIndex"
  7633. class="noWorksName"
  7634. :class="{ isWork: s.type == '2' }"
  7635. >
  7636. {{ s.student }}
  7637. </div>
  7638. </div>
  7639. </div>
  7640. <div
  7641. v-if="
  7642. tType &&
  7643. ((tType == 2 && sIsOpen == true) ||
  7644. tType == 1 ||
  7645. tType == 4) &&
  7646. tool.tool.indexOf(7) != -1
  7647. "
  7648. class="worksBox"
  7649. >
  7650. <div
  7651. class="zuoyeYulan"
  7652. v-if="
  7653. worksStudent.length && worksStudent[toolIndex].length > 0
  7654. "
  7655. >
  7656. <div class="worksTop">
  7657. <div>作业预览</div>
  7658. <div
  7659. class="corOpen"
  7660. @click="contract(toolIndex)"
  7661. v-if="
  7662. worksStudent[toolIndex].length > 6 &&
  7663. isCloseList[toolIndex].isClose == 0
  7664. "
  7665. >
  7666. 收缩
  7667. </div>
  7668. <div
  7669. class="corOpen"
  7670. @click="contract(toolIndex)"
  7671. v-if="isCloseList[toolIndex].isClose == 1"
  7672. >
  7673. 展开
  7674. </div>
  7675. </div>
  7676. </div>
  7677. <div
  7678. class="worksDetailBox"
  7679. v-if="
  7680. worksStudent.length && worksStudent[toolIndex].length > 0
  7681. "
  7682. >
  7683. <div
  7684. class="works"
  7685. style="
  7686. width: 200px;
  7687. height: 140px;
  7688. margin: 10px 10px 10px 0;
  7689. border-radius: 15px;
  7690. box-shadow: 0 0 6px 1px #dfdada;
  7691. "
  7692. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7693. ? worksStudent[toolIndex]
  7694. : worksStudent[toolIndex].slice(0, 6)"
  7695. :key="wIndex"
  7696. >
  7697. <!-- @click="previewImg(w.works)" -->
  7698. <div class="workImg">
  7699. <img :src="w.works" @click="previewImg(w.works)" alt />
  7700. <div
  7701. class="answerScore"
  7702. v-if="w.score"
  7703. @click.stop="openScore(w)"
  7704. :class="{
  7705. rightW:
  7706. w.userid == userid || tType == 1 || tType == 4,
  7707. }"
  7708. >
  7709. {{ JSON.parse(w.score).wScore }}分
  7710. </div>
  7711. <div
  7712. class="answerScore"
  7713. @click.stop="openScore(w)"
  7714. v-else-if="courseDetail.userid == userid"
  7715. :class="{
  7716. rightW:
  7717. w.userid == userid || tType == 1 || tType == 4,
  7718. }"
  7719. >
  7720. 评分
  7721. </div>
  7722. <img
  7723. class="deleteImg"
  7724. src="../../assets/deleteworks.png"
  7725. v-if="w.userid == userid || tType == 1 || tType == 4"
  7726. @click.stop="deleteWorks(w.wid)"
  7727. alt
  7728. />
  7729. </div>
  7730. <div class="comment" style="min-width: 200px">
  7731. <div class="worksName">
  7732. <div>{{ w.sName }}</div>
  7733. </div>
  7734. <div class="commentList">
  7735. <div class="commentList">
  7736. <div
  7737. class="commentImg"
  7738. @click="
  7739. isLikes(w.wid, userid, 1, null, w.isLikes)
  7740. "
  7741. >
  7742. <img
  7743. :src="w.isLikes == true ? likes : noLikes"
  7744. alt=""
  7745. />
  7746. </div>
  7747. <div>{{ w.likesCount }}</div>
  7748. </div>
  7749. <div class="commentList" style="margin-right: 15px">
  7750. <div
  7751. class="commentImg"
  7752. @click="commentOther(w, toolIndex, wIndex)"
  7753. >
  7754. <img
  7755. src="../../assets/icon/comment/comment.png"
  7756. alt=""
  7757. />
  7758. </div>
  7759. <div>{{ w.commentCount }}</div>
  7760. </div>
  7761. </div>
  7762. </div>
  7763. </div>
  7764. </div>
  7765. <div class="noWorksS">
  7766. <div
  7767. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7768. :key="sIndex"
  7769. class="noWorksName"
  7770. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  7771. :class="{ isWork: s.type == '2' }"
  7772. >
  7773. {{ s.student }}
  7774. </div>
  7775. </div>
  7776. </div>
  7777. <div
  7778. v-if="
  7779. tType &&
  7780. ((tType == 2 && sIsOpen == true) ||
  7781. tType == 1 ||
  7782. tType == 4) &&
  7783. tool.tool.indexOf(26) != -1
  7784. "
  7785. class="worksBox"
  7786. >
  7787. <div
  7788. class="zuoyeYulan"
  7789. v-if="
  7790. worksStudent.length && worksStudent[toolIndex].length > 0
  7791. "
  7792. >
  7793. <div class="worksTop">
  7794. <div>作业预览</div>
  7795. <div
  7796. class="corOpen"
  7797. @click="contract(toolIndex)"
  7798. v-if="
  7799. worksStudent[toolIndex].length > 6 &&
  7800. isCloseList[toolIndex].isClose == 0
  7801. "
  7802. >
  7803. 收缩
  7804. </div>
  7805. <div
  7806. class="corOpen"
  7807. @click="contract(toolIndex)"
  7808. v-if="isCloseList[toolIndex].isClose == 1"
  7809. >
  7810. 展开
  7811. </div>
  7812. </div>
  7813. </div>
  7814. <div
  7815. class="worksDetailBox"
  7816. v-if="
  7817. worksStudent.length && worksStudent[toolIndex].length > 0
  7818. "
  7819. >
  7820. <div
  7821. class="works"
  7822. style="width: 240px; height: 140px; overflow: hidden"
  7823. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7824. ? worksStudent[toolIndex]
  7825. : worksStudent[toolIndex].slice(0, 6)"
  7826. :key="wIndex"
  7827. :class="w.type == 1 ? 'isTypeOne' : ''"
  7828. >
  7829. <div class="workImg" v-if="w.type == 0">
  7830. <img :src="w.works" @click="previewImg(w.works)" alt />
  7831. <img
  7832. class="deleteImg"
  7833. src="../../assets/deleteworks.png"
  7834. v-if="w.userid == userid || tType == 1 || tType == 4"
  7835. @click.stop="deleteWorks(w.wid)"
  7836. alt
  7837. />
  7838. </div>
  7839. <div class="workImg" v-if="w.type == 1">
  7840. <img :src="word" @click="openFile(w.works)" alt />
  7841. <img
  7842. class="deleteImg"
  7843. src="../../assets/deleteworks.png"
  7844. v-if="w.userid == userid || tType == 1 || tType == 4"
  7845. @click.stop="deleteWorks(w.wid)"
  7846. alt
  7847. />
  7848. </div>
  7849. <div class="worksName">
  7850. <div>{{ w.sName }}</div>
  7851. </div>
  7852. </div>
  7853. </div>
  7854. <div class="noWorksS">
  7855. <div
  7856. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7857. :key="sIndex"
  7858. class="noWorksName"
  7859. :class="{ isWork: s.type == '2' }"
  7860. >
  7861. {{ s.student }}
  7862. </div>
  7863. </div>
  7864. </div>
  7865. <div
  7866. v-if="
  7867. tType &&
  7868. ((tType == 2 && sIsOpen == true) ||
  7869. tType == 1 ||
  7870. tType == 4) &&
  7871. tool.tool.indexOf(40) != -1
  7872. "
  7873. class="worksBox"
  7874. >
  7875. <div
  7876. class="zuoyeYulan"
  7877. v-if="
  7878. worksStudent.length && worksStudent[toolIndex].length > 0
  7879. "
  7880. >
  7881. <div class="worksTop">
  7882. <div>作业预览</div>
  7883. <div
  7884. class="corOpen"
  7885. @click="contract(toolIndex)"
  7886. v-if="
  7887. worksStudent[toolIndex].length > 6 &&
  7888. isCloseList[toolIndex].isClose == 0
  7889. "
  7890. >
  7891. 收缩
  7892. </div>
  7893. <div
  7894. class="corOpen"
  7895. @click="contract(toolIndex)"
  7896. v-if="isCloseList[toolIndex].isClose == 1"
  7897. >
  7898. 展开
  7899. </div>
  7900. </div>
  7901. </div>
  7902. <div
  7903. class="worksDetailBox"
  7904. v-if="
  7905. worksStudent.length && worksStudent[toolIndex].length > 0
  7906. "
  7907. >
  7908. <div
  7909. class="works"
  7910. style="
  7911. width: 200px;
  7912. height: 140px;
  7913. margin: 10px 10px 10px 0;
  7914. border-radius: 15px;
  7915. box-shadow: 0 0 6px 1px #dfdada;
  7916. "
  7917. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7918. ? worksStudent[toolIndex]
  7919. : worksStudent[toolIndex].slice(0, 6)"
  7920. :key="wIndex"
  7921. :class="w.type == 1 ? 'isTypeOne' : ''"
  7922. >
  7923. <div class="workImg">
  7924. <img
  7925. src="../../assets/icon/works/noImg.png"
  7926. @click="openPj(w.works, toolIndex)"
  7927. alt
  7928. />
  7929. <img
  7930. class="deleteImg"
  7931. src="../../assets/deleteworks.png"
  7932. v-if="w.userid == userid || tType == 1 || tType == 4"
  7933. @click.stop="deleteWorks(w.wid)"
  7934. alt
  7935. />
  7936. </div>
  7937. <div class="comment" style="min-width: 200px">
  7938. <div class="worksName">
  7939. <div>{{ w.sName }}</div>
  7940. </div>
  7941. <div class="commentList">
  7942. <div class="commentList">
  7943. <div
  7944. class="commentImg"
  7945. @click="
  7946. isLikes(w.wid, userid, 1, null, w.isLikes)
  7947. "
  7948. >
  7949. <img
  7950. :src="w.isLikes == true ? likes : noLikes"
  7951. alt=""
  7952. />
  7953. </div>
  7954. <div>{{ w.likesCount }}</div>
  7955. </div>
  7956. <div class="commentList" style="margin-right: 15px">
  7957. <div
  7958. class="commentImg"
  7959. @click="commentOther(w, toolIndex, wIndex)"
  7960. >
  7961. <img
  7962. src="../../assets/icon/comment/comment.png"
  7963. alt=""
  7964. />
  7965. </div>
  7966. <div>{{ w.commentCount }}</div>
  7967. </div>
  7968. </div>
  7969. </div>
  7970. </div>
  7971. </div>
  7972. <div class="noWorksS">
  7973. <div
  7974. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7975. :key="sIndex"
  7976. class="noWorksName"
  7977. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  7978. :class="{ isWork: s.type == '2' }"
  7979. >
  7980. {{ s.student }}
  7981. </div>
  7982. </div>
  7983. </div>
  7984. <div
  7985. v-if="
  7986. tType &&
  7987. ((tType == 2 && sIsOpen == true) ||
  7988. tType == 1 ||
  7989. tType == 4) &&
  7990. tool.tool.indexOf(41) != -1
  7991. "
  7992. class="worksBox"
  7993. >
  7994. <div class="noWorksS">
  7995. <div
  7996. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7997. :key="sIndex"
  7998. class="noWorksName"
  7999. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  8000. :class="{ isWork: s.type == '2' }"
  8001. >
  8002. {{ s.student }}
  8003. </div>
  8004. </div>
  8005. <div
  8006. class="zuoyeYulan"
  8007. v-if="
  8008. worksStudent.length && worksStudent[toolIndex].length > 0
  8009. "
  8010. >
  8011. <div class="worksTop">
  8012. <div>作业预览</div>
  8013. <div
  8014. class="corOpen"
  8015. @click="contract(toolIndex)"
  8016. v-if="
  8017. worksStudent[toolIndex].length > 6 &&
  8018. isCloseList[toolIndex].isClose == 0
  8019. "
  8020. >
  8021. 收缩
  8022. </div>
  8023. <div
  8024. class="corOpen"
  8025. @click="contract(toolIndex)"
  8026. v-if="isCloseList[toolIndex].isClose == 1"
  8027. >
  8028. 展开
  8029. </div>
  8030. </div>
  8031. </div>
  8032. <div
  8033. class="worksDetailBox"
  8034. v-if="
  8035. worksStudent.length && worksStudent[toolIndex].length > 0
  8036. "
  8037. >
  8038. <div
  8039. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8040. ? worksStudent[toolIndex]
  8041. : worksStudent[toolIndex].slice(0, 6)"
  8042. :key="wIndex"
  8043. class="isWorksName"
  8044. @click="openXz(w, toolIndex)"
  8045. >
  8046. {{ w.sName }}
  8047. <img
  8048. class="deleteImg deleteImg2"
  8049. src="../../assets/deleteworks.png"
  8050. v-if="w.userid == userid || tType == 1 || tType == 4"
  8051. @click.stop="deleteWorks(w.wid)"
  8052. alt
  8053. />
  8054. </div>
  8055. </div>
  8056. </div>
  8057. <div
  8058. v-if="
  8059. tType &&
  8060. ((tType == 2 && sIsOpen == true) ||
  8061. tType == 1 ||
  8062. tType == 4) &&
  8063. tool.tool.indexOf(47) != -1
  8064. "
  8065. class="worksBox"
  8066. >
  8067. <div class="noWorksS">
  8068. <div
  8069. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8070. :key="sIndex"
  8071. class="noWorksName"
  8072. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  8073. :class="{ isWork: s.type == '2' }"
  8074. >
  8075. {{ s.student }}
  8076. </div>
  8077. </div>
  8078. <div
  8079. class="zuoyeYulan"
  8080. v-if="
  8081. worksStudent.length && worksStudent[toolIndex].length > 0
  8082. "
  8083. >
  8084. <div class="worksTop">
  8085. <div>作业预览</div>
  8086. <div
  8087. class="corOpen"
  8088. @click="contract(toolIndex)"
  8089. v-if="
  8090. worksStudent[toolIndex].length > 6 &&
  8091. isCloseList[toolIndex].isClose == 0
  8092. "
  8093. >
  8094. 收缩
  8095. </div>
  8096. <div
  8097. class="corOpen"
  8098. @click="contract(toolIndex)"
  8099. v-if="isCloseList[toolIndex].isClose == 1"
  8100. >
  8101. 展开
  8102. </div>
  8103. </div>
  8104. </div>
  8105. <div
  8106. class="worksDetailBox"
  8107. v-if="
  8108. worksStudent.length && worksStudent[toolIndex].length > 0
  8109. "
  8110. >
  8111. <!-- @click="openXz(w, toolIndex)" -->
  8112. <div
  8113. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8114. ? worksStudent[toolIndex]
  8115. : worksStudent[toolIndex].slice(0, 6)"
  8116. :key="wIndex"
  8117. class="isWorksName"
  8118. @click="openSen(w, toolIndex)"
  8119. >
  8120. {{ w.sName }}
  8121. <img
  8122. class="deleteImg deleteImg2"
  8123. src="../../assets/deleteworks.png"
  8124. v-if="w.userid == userid || tType == 1 || tType == 4"
  8125. @click.stop="deleteWorks(w.wid)"
  8126. alt
  8127. />
  8128. </div>
  8129. </div>
  8130. </div>
  8131. <div
  8132. v-if="
  8133. tType &&
  8134. ((tType == 2 && sIsOpen == true) ||
  8135. tType == 1 ||
  8136. tType == 4) &&
  8137. tool.tool.indexOf(48) != -1
  8138. "
  8139. class="worksBox"
  8140. >
  8141. <div class="noWorksS">
  8142. <div
  8143. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8144. :key="sIndex"
  8145. class="noWorksName"
  8146. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  8147. :class="{ isWork: s.type == '2' }"
  8148. >
  8149. {{ s.student }}
  8150. </div>
  8151. </div>
  8152. <div
  8153. class="zuoyeYulan"
  8154. v-if="
  8155. worksStudent.length && worksStudent[toolIndex].length > 0
  8156. "
  8157. >
  8158. <div class="worksTop">
  8159. <div>作业预览</div>
  8160. <div
  8161. class="corOpen"
  8162. @click="contract(toolIndex)"
  8163. v-if="
  8164. worksStudent[toolIndex].length > 6 &&
  8165. isCloseList[toolIndex].isClose == 0
  8166. "
  8167. >
  8168. 收缩
  8169. </div>
  8170. <div
  8171. class="corOpen"
  8172. @click="contract(toolIndex)"
  8173. v-if="isCloseList[toolIndex].isClose == 1"
  8174. >
  8175. 展开
  8176. </div>
  8177. </div>
  8178. </div>
  8179. <div
  8180. class="worksDetailBox"
  8181. v-if="
  8182. worksStudent.length && worksStudent[toolIndex].length > 0
  8183. "
  8184. >
  8185. <div
  8186. class="works"
  8187. style="
  8188. width: 200px;
  8189. height: 140px;
  8190. margin: 10px 10px 10px 0;
  8191. border-radius: 15px;
  8192. box-shadow: 0 0 6px 1px #dfdada;
  8193. "
  8194. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8195. ? worksStudent[toolIndex]
  8196. : worksStudent[toolIndex].slice(0, 6)"
  8197. :key="wIndex"
  8198. :class="w.type == 1 ? 'isTypeOne' : ''"
  8199. >
  8200. <div class="workImg">
  8201. <img :src="word" @click="openTable(w)" alt />
  8202. <!-- @click="openFile(w.works)" -->
  8203. <div
  8204. class="answerScore"
  8205. v-if="w.score"
  8206. @click.stop="openScore(w)"
  8207. :class="{
  8208. rightW:
  8209. w.userid == userid ||
  8210. tType == 1 ||
  8211. tType == 4 ||
  8212. w.ateacher == userid,
  8213. }"
  8214. >
  8215. {{ JSON.parse(w.score).wScore }}分
  8216. </div>
  8217. <div
  8218. class="answerScore"
  8219. @click.stop="openScore(w)"
  8220. v-else-if="courseDetail.userid == userid"
  8221. :class="{
  8222. rightW:
  8223. w.userid == userid ||
  8224. tType == 1 ||
  8225. tType == 4 ||
  8226. w.ateacher == userid,
  8227. }"
  8228. >
  8229. 评分
  8230. </div>
  8231. <img
  8232. class="deleteImg"
  8233. src="../../assets/deleteworks.png"
  8234. v-if="w.userid == userid || tType == 1 || tType == 4"
  8235. @click.stop="deleteWorks(w.wid)"
  8236. alt
  8237. />
  8238. </div>
  8239. <div class="comment" style="min-width: 200px">
  8240. <div class="worksName">
  8241. <div>{{ w.sName }}</div>
  8242. </div>
  8243. <div class="commentList">
  8244. <div class="commentList">
  8245. <div
  8246. class="commentImg"
  8247. @click="
  8248. isLikes(w.wid, userid, 1, null, w.isLikes)
  8249. "
  8250. >
  8251. <img
  8252. :src="w.isLikes == true ? likes : noLikes"
  8253. alt=""
  8254. />
  8255. </div>
  8256. <div>{{ w.likesCount }}</div>
  8257. </div>
  8258. <div class="commentList" style="margin-right: 15px">
  8259. <div
  8260. class="commentImg"
  8261. @click="commentOther(w, toolIndex, wIndex)"
  8262. >
  8263. <img
  8264. src="../../assets/icon/comment/comment.png"
  8265. alt=""
  8266. />
  8267. </div>
  8268. <div>{{ w.commentCount }}</div>
  8269. </div>
  8270. </div>
  8271. </div>
  8272. </div>
  8273. </div>
  8274. </div>
  8275. <div
  8276. v-if="
  8277. tType &&
  8278. ((tType == 2 && sIsOpen == true) ||
  8279. tType == 1 ||
  8280. tType == 4) &&
  8281. tool.tool.indexOf(52) != -1
  8282. "
  8283. class="worksBox"
  8284. >
  8285. <div class="noWorksS">
  8286. <div
  8287. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8288. :key="sIndex"
  8289. class="noWorksName"
  8290. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  8291. :class="{ isWork: s.type == '2' }"
  8292. >
  8293. {{ s.student }}
  8294. </div>
  8295. </div>
  8296. <div
  8297. class="zuoyeYulan"
  8298. v-if="
  8299. worksStudent.length && worksStudent[toolIndex].length > 0
  8300. "
  8301. >
  8302. <div class="worksTop">
  8303. <div>作业预览</div>
  8304. <div
  8305. class="corOpen"
  8306. @click="contract(toolIndex)"
  8307. v-if="
  8308. worksStudent[toolIndex].length > 6 &&
  8309. isCloseList[toolIndex].isClose == 0
  8310. "
  8311. >
  8312. 收缩
  8313. </div>
  8314. <div
  8315. class="corOpen"
  8316. @click="contract(toolIndex)"
  8317. v-if="isCloseList[toolIndex].isClose == 1"
  8318. >
  8319. 展开
  8320. </div>
  8321. </div>
  8322. </div>
  8323. <div
  8324. class="worksDetailBox"
  8325. v-if="
  8326. worksStudent.length && worksStudent[toolIndex].length > 0
  8327. "
  8328. >
  8329. <div
  8330. class="works"
  8331. style="
  8332. width: 200px;
  8333. height: 140px;
  8334. margin: 10px 10px 10px 0;
  8335. border-radius: 15px;
  8336. box-shadow: 0 0 6px 1px #dfdada;
  8337. "
  8338. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8339. ? worksStudent[toolIndex]
  8340. : worksStudent[toolIndex].slice(0, 6)"
  8341. :key="wIndex"
  8342. :class="w.type == 1 ? 'isTypeOne' : ''"
  8343. >
  8344. <div class="workImg">
  8345. <img :src="word" @click="openWord(w)" alt />
  8346. <!-- @click="openFile(w.works)" -->
  8347. <div
  8348. class="answerScore"
  8349. v-if="w.score"
  8350. @click.stop="openScore(w)"
  8351. :class="{
  8352. rightW:
  8353. w.userid == userid ||
  8354. tType == 1 ||
  8355. tType == 4 ||
  8356. w.ateacher == userid,
  8357. }"
  8358. >
  8359. {{ JSON.parse(w.score).wScore }}分
  8360. </div>
  8361. <div
  8362. class="answerScore"
  8363. @click.stop="openScore(w)"
  8364. v-else-if="courseDetail.userid == userid"
  8365. :class="{
  8366. rightW:
  8367. w.userid == userid ||
  8368. tType == 1 ||
  8369. tType == 4 ||
  8370. w.ateacher == userid,
  8371. }"
  8372. >
  8373. 评分
  8374. </div>
  8375. <img
  8376. class="deleteImg"
  8377. src="../../assets/deleteworks.png"
  8378. v-if="w.userid == userid || tType == 1 || tType == 4"
  8379. @click.stop="deleteWorks(w.wid)"
  8380. alt
  8381. />
  8382. </div>
  8383. <div class="comment" style="min-width: 200px">
  8384. <div class="worksName">
  8385. <div>{{ w.sName }}</div>
  8386. </div>
  8387. <div class="commentList">
  8388. <div class="commentList">
  8389. <div
  8390. class="commentImg"
  8391. @click="
  8392. isLikes(w.wid, userid, 1, null, w.isLikes)
  8393. "
  8394. >
  8395. <img
  8396. :src="w.isLikes == true ? likes : noLikes"
  8397. alt=""
  8398. />
  8399. </div>
  8400. <div>{{ w.likesCount }}</div>
  8401. </div>
  8402. <div class="commentList" style="margin-right: 15px">
  8403. <div
  8404. class="commentImg"
  8405. @click="commentOther(w, toolIndex, wIndex)"
  8406. >
  8407. <img
  8408. src="../../assets/icon/comment/comment.png"
  8409. alt=""
  8410. />
  8411. </div>
  8412. <div>{{ w.commentCount }}</div>
  8413. </div>
  8414. </div>
  8415. </div>
  8416. </div>
  8417. </div>
  8418. </div>
  8419. </div>
  8420. </div>
  8421. <div class="vedioBox" v-if="false">
  8422. <div
  8423. class="queTop"
  8424. style="
  8425. font-size: 20px;
  8426. padding: 15px 0 15px 30px;
  8427. font-weight: bold;
  8428. "
  8429. >
  8430. 评一评
  8431. </div>
  8432. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8433. <div class="elist_input">
  8434. <div
  8435. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8436. .chapterInfo[0].taskJson[taskCount].eList"
  8437. :key="eIndex"
  8438. class="elist_input_box"
  8439. >
  8440. <div style="width: 95%">
  8441. <div
  8442. style="
  8443. display: flex;
  8444. flex-direction: row;
  8445. flex-wrap: nowrap;
  8446. align-items: center;
  8447. "
  8448. >
  8449. <div style="max-width: calc(100% - 285px)">
  8450. <span>{{ eItem.value }}</span>
  8451. </div>
  8452. <div
  8453. style="
  8454. padding-left: 25px;
  8455. display: flex;
  8456. flex-direction: row;
  8457. align-items: center;
  8458. "
  8459. >
  8460. <el-rate
  8461. v-model="eItem.score"
  8462. :colors="colors"
  8463. disabled
  8464. ></el-rate>
  8465. </div>
  8466. </div>
  8467. <div class="elist_inptu_text" style="padding-left: 10px">
  8468. <span v-if="eItem.detail != ''">{{
  8469. eItem.detail
  8470. }}</span>
  8471. <span v-else style="color: #b2b1b3; font-size: 14px"
  8472. >暂无描述...</span
  8473. >
  8474. </div>
  8475. </div>
  8476. </div>
  8477. </div>
  8478. <div
  8479. v-if="evalua"
  8480. style="
  8481. border: 1px solid #e5e5e5;
  8482. max-width: 650px;
  8483. width: 100%;
  8484. margin-top: 20px;
  8485. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8486. "
  8487. >
  8488. <div class="e_add_top">
  8489. <div class="e_add_title">
  8490. <span>目标管理名称</span>
  8491. <span>{{ eTitle }}</span>
  8492. <img
  8493. src="../../assets/line.png"
  8494. class="cru_line"
  8495. style="
  8496. width: 125px;
  8497. height: 20px;
  8498. bottom: -10px;
  8499. left: 120px;
  8500. "
  8501. />
  8502. <!-- <el-input
  8503. v-model="eTitle"
  8504. placeholder="请输入名称"
  8505. @change="setMindData"
  8506. ></el-input>-->
  8507. </div>
  8508. </div>
  8509. <div class="e_add_content">
  8510. <div class="e_add_list_pbox">
  8511. <div class="e_add_list_pbox_title">
  8512. <span class="type_title">切换模式</span>
  8513. <div class="type_content">
  8514. <span
  8515. :class="{ active: typeMode == 1 }"
  8516. @click="typeMode = 1"
  8517. >目标树</span
  8518. >
  8519. <span
  8520. :class="{ active: typeMode == 2 }"
  8521. @click="typeMode = 2"
  8522. >目标罗盘</span
  8523. >
  8524. <span
  8525. :class="{ active: typeMode == 3 }"
  8526. @click="typeMode = 3"
  8527. >目标看板</span
  8528. >
  8529. </div>
  8530. </div>
  8531. <div class="e_add_list_pbox_content">
  8532. <Mind
  8533. :showBar="false"
  8534. :mindData="data"
  8535. style="width: 100%"
  8536. v-show="typeMode == 1"
  8537. ></Mind>
  8538. <Sunburst
  8539. :Josn="eJson"
  8540. :num="eJSONNum"
  8541. style="width: 100%"
  8542. v-if="typeMode == 2"
  8543. ></Sunburst>
  8544. <SeeBoard
  8545. :Josn="eJson"
  8546. :num="eJSONNum"
  8547. :ename="eTitle"
  8548. style="width: 100%"
  8549. v-if="typeMode == 3"
  8550. >
  8551. </SeeBoard>
  8552. </div>
  8553. </div>
  8554. </div>
  8555. </div>
  8556. </div>
  8557. </div>
  8558. </div>
  8559. </div>
  8560. <el-dialog
  8561. title="作业提交"
  8562. :visible.sync="dialogVisible"
  8563. :append-to-body="true"
  8564. width="500px"
  8565. :before-close="handleClose"
  8566. class="dialog_change"
  8567. >
  8568. <div class="marginT">
  8569. <div>上传文件</div>
  8570. <div
  8571. class="chapter_add"
  8572. @click="addImg($event)"
  8573. v-if="studyJuri[0].cover.length == 0"
  8574. >
  8575. <div class="up_photo">
  8576. <img src="../../assets/icon/uploadImg.png" alt />
  8577. </div>
  8578. <!-- <input
  8579. type="file"
  8580. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8581. style="display: none"
  8582. @change="beforeUpload1($event, 1)"
  8583. /> -->
  8584. <input
  8585. type="file"
  8586. accept="*"
  8587. style="display: none"
  8588. @change="beforeUpload1($event, 1)"
  8589. />
  8590. <!-- <input
  8591. type="file"
  8592. accept="image/*"
  8593. capture="camera"
  8594. style="display: none"
  8595. @change="beforeUpload1($event, 1)"
  8596. /> -->
  8597. </div>
  8598. <div
  8599. class="chapter_add"
  8600. style="
  8601. display: flex;
  8602. width: 100%;
  8603. flex-direction: row;
  8604. flex-wrap: wrap;
  8605. justify-content: flex-start;
  8606. padding: 15px 0;
  8607. "
  8608. v-if="studyJuri[0].cover.length > 0"
  8609. >
  8610. <div class="upCover">
  8611. <img
  8612. :src="studyJuri[0].cover[0].url"
  8613. alt
  8614. v-if="fileType == 0"
  8615. />
  8616. <img :src="word" alt v-else-if="fileType == 1" />
  8617. <img :src="video" alt v-else-if="fileType == 2" />
  8618. <img :src="word2" alt v-else-if="fileType == 3" />
  8619. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8620. <div class="deleteWord" @click="clean(1)">
  8621. <img src="../../assets/icon/deleteWorks.png" alt />
  8622. </div>
  8623. </div>
  8624. </div>
  8625. </div>
  8626. <div
  8627. class="upload_send"
  8628. @click="addCourseWorks(taskCount)"
  8629. v-if="!proVisible"
  8630. >
  8631. 提交
  8632. </div>
  8633. </el-dialog>
  8634. </div>
  8635. </div>
  8636. <div
  8637. class="pButton"
  8638. @click="(pzDialog = true), selectPz()"
  8639. v-if="tType == 4 || ispzType == 4"
  8640. >
  8641. <!-- 批 -->
  8642. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  8643. </div>
  8644. <div v-if="pzDialog == true" class="newDialogCss">
  8645. <div class="pzTop2">
  8646. <!-- <div>批注</div>
  8647. <div @click="pzDialog = false">
  8648. <img src="../../assets/close1.png" alt="" />
  8649. </div> -->
  8650. <div class="checkbox">
  8651. <div class="check" style="font-size: 25px">评课笔记</div>
  8652. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8653. </div>
  8654. </div>
  8655. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  8656. <div class="pzListBox" v-if="pzList && pzList.length">
  8657. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8658. <div class="pzNavTop">
  8659. <div>批</div>
  8660. <div>
  8661. {{
  8662. pz.username && pz.username.length > 5
  8663. ? pz.username.substring(0, 5) + "..."
  8664. : pz.username
  8665. }}的批注
  8666. </div>
  8667. <div
  8668. class="pzDelete"
  8669. v-if="pz.userid == userid"
  8670. @click="deletePz(pz.id)"
  8671. >
  8672. 删除
  8673. </div>
  8674. </div>
  8675. <div
  8676. @click="checkImg(getImgList(pz.content))"
  8677. class="pzContent cont"
  8678. v-html="pz.content"
  8679. v-if="pz.type == '1'"
  8680. ></div>
  8681. <div class="pzContent" v-if="pz.type == '2'">
  8682. <audio :src="pz.content" controls="controls" ref="audio">
  8683. Your browser does not support the audio element.
  8684. </audio>
  8685. </div>
  8686. <div class="pzContent" v-if="pz.type == '3'">
  8687. <img
  8688. :src="pz.content"
  8689. style="width: 90%; margin: 0 auto; display: block"
  8690. @click="previewImg(pz.content)"
  8691. />
  8692. </div>
  8693. <div class="time">
  8694. {{ pz.time }}
  8695. </div>
  8696. </div>
  8697. </div>
  8698. <div class="noPz" v-else>
  8699. <img src="../../assets/icon/noPz.png" alt="" />
  8700. </div>
  8701. <div class="addPzButton">
  8702. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8703. 添加批注
  8704. </div>
  8705. <!-- <div class="img1">
  8706. <div @click="(addPzDialog = true), (pzType = 2)">
  8707. <img src="../../assets/audio.png" /><span>音频</span>
  8708. </div>
  8709. </div> -->
  8710. </div>
  8711. </div>
  8712. </div>
  8713. <div v-if="addPzDialog == true" class="addDialogCss">
  8714. <div class="pzTop">
  8715. <div class="teacherPz">
  8716. <div class="teacherPzImg">
  8717. <img src="../../assets/icon/teacherPz.png" alt="" />
  8718. </div>
  8719. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8720. </div>
  8721. <div @click="addPzDialog = false">
  8722. <img src="../../assets/close1.png" alt="" />
  8723. </div>
  8724. </div>
  8725. <div class="addPzBox">
  8726. <div class="addPzCheck">
  8727. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8728. >文本</span
  8729. >
  8730. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8731. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8732. >音频</span
  8733. >
  8734. </div>
  8735. <div style="height: calc(100% - 95px)">
  8736. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8737. v-if="pzType == 1"></textarea> -->
  8738. <editor-bar
  8739. class="binfo_input pzConText"
  8740. style="width: 100% !important"
  8741. placeholder="请输入任务描述"
  8742. v-model="pzConText"
  8743. @change="change"
  8744. v-if="pzType == 1"
  8745. ></editor-bar>
  8746. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8747. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8748. <div @click="addImg($event)">
  8749. <el-button type="primary">上传图片</el-button>
  8750. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8751. @change="beforeUpload1($event, 4)" />
  8752. </div>
  8753. </div> -->
  8754. </div>
  8755. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8756. 确定
  8757. </div>
  8758. </div>
  8759. </div>
  8760. <div v-if="proVisible" class="mask">
  8761. <div class="progressBox">
  8762. <!-- <div id="closePro" class="closeCss">
  8763. <img src="../../assets/icon/close.png" alt />
  8764. </div> -->
  8765. <div class="lbox">
  8766. <img src="../../assets/loading.gif" />上传中,请稍后
  8767. </div>
  8768. <div style="margin-bottom: 10px">
  8769. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8770. </div>
  8771. <el-progress
  8772. :text-inside="true"
  8773. :stroke-width="20"
  8774. :percentage="progress"
  8775. style="width: 80%"
  8776. ></el-progress>
  8777. </div>
  8778. </div>
  8779. <div v-if="proVisible2" class="mask">
  8780. <div class="progressBox">
  8781. <div class="lbox">
  8782. <img src="../../assets/loading.gif" />上传中,请稍后
  8783. </div>
  8784. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8785. </div>
  8786. </div>
  8787. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8788. <img width="100%" :src="dialogImageUrl" alt />
  8789. </el-dialog>
  8790. <el-dialog
  8791. :title="noteName != '' ? noteName : '查看问卷'"
  8792. :visible.sync="dialogVisible5"
  8793. :append-to-body="true"
  8794. width="1000px"
  8795. :before-close="handleClose"
  8796. class="dialog_diy dialog_diy3"
  8797. >
  8798. <div>
  8799. <div
  8800. class="a_add_title"
  8801. style="
  8802. display: flex;
  8803. flex-direction: row;
  8804. align-items: center;
  8805. justify-content: center;
  8806. "
  8807. >
  8808. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8809. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8810. </div>
  8811. <div class="a_addBox">
  8812. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8813. <div
  8814. class="a_add_box"
  8815. v-for="(item1, index1) in askJson.askCount"
  8816. :key="index1"
  8817. >
  8818. <div class="a_add_head">
  8819. <div style="display: flex">
  8820. {{ index1 + 1 + "、" }}
  8821. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8822. </div>
  8823. <img
  8824. v-if="askJson.askJson[index1].img"
  8825. :src="askJson.askJson[index1].img"
  8826. style="height: 300px; margin-top: 10px; max-width: 100%"
  8827. />
  8828. </div>
  8829. <div class="a_add_body">
  8830. <div class="a_add_input">
  8831. <el-radio-group
  8832. v-model="radio[index1]"
  8833. v-if="
  8834. askJson.askJson[index1].type == '1' ||
  8835. !askJson.askJson[index1].type
  8836. "
  8837. >
  8838. <el-radio
  8839. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8840. .checkList"
  8841. :key="checkIndex"
  8842. :label="checkIndex"
  8843. :disabled="isAnswer"
  8844. class="redioStyle"
  8845. ><span v-html="item2"></span
  8846. ></el-radio>
  8847. </el-radio-group>
  8848. <el-checkbox-group
  8849. v-model="radio[index1]"
  8850. v-if="askJson.askJson[index1].type == '2'"
  8851. >
  8852. <el-checkbox
  8853. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8854. .checkList"
  8855. :key="checkIndex1"
  8856. :label="checkIndex1"
  8857. :disabled="isAnswer"
  8858. class="redioStyle"
  8859. ><span v-html="item2"></span>
  8860. </el-checkbox>
  8861. </el-checkbox-group>
  8862. </div>
  8863. </div>
  8864. </div>
  8865. </div>
  8866. </div>
  8867. <span slot="footer" class="dialog-footer">
  8868. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8869. >取 消</el-button
  8870. >
  8871. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8872. >确 定</el-button
  8873. >
  8874. </span>
  8875. </el-dialog>
  8876. <el-dialog
  8877. :title="noteName != '' ? noteName : '查看问卷'"
  8878. :visible.sync="dialogVisible5Teacher"
  8879. :append-to-body="true"
  8880. width="1000px"
  8881. :before-close="handleClose"
  8882. class="dialog_diy dialog_diy3"
  8883. >
  8884. <div>
  8885. <div class="w_name">
  8886. 学生姓名:<span>{{ sStudent.student }}</span>
  8887. </div>
  8888. <div
  8889. class="a_add_title"
  8890. style="
  8891. display: flex;
  8892. flex-direction: row;
  8893. align-items: center;
  8894. justify-content: center;
  8895. "
  8896. >
  8897. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8898. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8899. </div>
  8900. <div class="a_addBox">
  8901. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8902. <div
  8903. class="a_add_box"
  8904. v-for="(item1, index1) in askJson.askCount"
  8905. :key="index1"
  8906. >
  8907. <div class="a_add_head">
  8908. <div style="display: flex">
  8909. {{ index1 + 1 + "、" }}
  8910. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8911. </div>
  8912. <img
  8913. v-if="askJson.askJson[index1].img"
  8914. :src="askJson.askJson[index1].img"
  8915. style="height: 300px; margin-top: 10px; max-width: 100%"
  8916. />
  8917. </div>
  8918. <div class="a_add_body">
  8919. <div class="a_add_input">
  8920. <el-radio-group
  8921. v-model="radio[index1]"
  8922. v-if="
  8923. askJson.askJson[index1].type == '1' ||
  8924. !askJson.askJson[index1].type
  8925. "
  8926. >
  8927. <el-radio
  8928. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8929. .checkList"
  8930. :key="checkIndex"
  8931. :label="checkIndex"
  8932. :disabled="isAnswer"
  8933. class="redioStyle"
  8934. ><span v-html="item2"></span
  8935. ></el-radio>
  8936. </el-radio-group>
  8937. <el-checkbox-group
  8938. v-model="radio[index1]"
  8939. v-if="askJson.askJson[index1].type == '2'"
  8940. >
  8941. <el-checkbox
  8942. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8943. .checkList"
  8944. :key="checkIndex1"
  8945. :label="checkIndex1"
  8946. :disabled="isAnswer"
  8947. class="redioStyle"
  8948. ><span v-html="item2"></span>
  8949. </el-checkbox>
  8950. </el-checkbox-group>
  8951. </div>
  8952. </div>
  8953. </div>
  8954. </div>
  8955. </div>
  8956. <span slot="footer" class="dialog-footer">
  8957. <el-button
  8958. @click="dialogVisible5Teacher = false"
  8959. v-show="noteName == ''"
  8960. >取 消</el-button
  8961. >
  8962. <el-button
  8963. type="primary"
  8964. @click="addStudentAskTeacher"
  8965. v-show="noteName == ''"
  8966. >确 定</el-button
  8967. >
  8968. </span>
  8969. </el-dialog>
  8970. <el-dialog
  8971. :title="noteName != '' ? noteName : '查看选择题'"
  8972. :visible.sync="dialogVisibleChoice"
  8973. :append-to-body="true"
  8974. width="1000px"
  8975. :before-close="handleClose"
  8976. class="dialog_diy dialog_diy3"
  8977. >
  8978. <div>
  8979. <div class="a_addBox">
  8980. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8981. <div
  8982. class="a_add_box"
  8983. v-for="(item1, index1) in testJson.testCount"
  8984. :key="index1"
  8985. >
  8986. <div class="a_add_head">
  8987. <div style="display: flex">
  8988. {{ index1 + 1 + "、" }}
  8989. <div
  8990. v-if="testJson.testJson[index1].type == '1'"
  8991. style="margin-right: 5px; min-width: 70px"
  8992. >
  8993. (单选题)
  8994. </div>
  8995. <div
  8996. v-if="testJson.testJson[index1].type == '2'"
  8997. style="margin-right: 5px; min-width: 70px"
  8998. >
  8999. (多选题)
  9000. </div>
  9001. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9002. </div>
  9003. <img
  9004. v-if="testJson.testJson[index1].img"
  9005. :src="testJson.testJson[index1].img"
  9006. style="height: 300px; margin-top: 10px; max-width: 100%"
  9007. />
  9008. </div>
  9009. <div
  9010. class="timuImgBox"
  9011. v-if="
  9012. testJson.testJson[index1].timuList &&
  9013. testJson.testJson[index1].timuList.length
  9014. "
  9015. >
  9016. <div
  9017. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9018. :key="tIndex"
  9019. class="timuImg"
  9020. @click.stop="previewImg(timg.src)"
  9021. >
  9022. <img :src="timg.src" alt="" />
  9023. </div>
  9024. </div>
  9025. <div class="a_add_body">
  9026. <div class="a_add_input">
  9027. <el-radio-group
  9028. v-model="radio[index1]"
  9029. v-if="testJson.testJson[index1].type == '1'"
  9030. >
  9031. <div class="radioBox">
  9032. <el-radio
  9033. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9034. .checkList"
  9035. :key="checkIndex"
  9036. :label="checkIndex"
  9037. :disabled="isAnswer"
  9038. class="redioStyle"
  9039. >
  9040. <div
  9041. style="margin-right: 10px"
  9042. v-if="item2 && item2.imgType && item2.imgType == 1"
  9043. >
  9044. <div class="inImg" @click.stop="previewImg(item2.src)">
  9045. <img :src="item2.src" alt="" />
  9046. </div>
  9047. </div>
  9048. <span v-else v-html="item2"></span>
  9049. </el-radio>
  9050. </div>
  9051. </el-radio-group>
  9052. <el-checkbox-group
  9053. v-model="radio[index1]"
  9054. v-if="testJson.testJson[index1].type == '2'"
  9055. >
  9056. <div class="radioBox">
  9057. <el-checkbox
  9058. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9059. .checkList"
  9060. :key="checkIndex"
  9061. :label="checkIndex"
  9062. :disabled="isAnswer"
  9063. class="redioStyle"
  9064. >
  9065. <div
  9066. style="margin-right: 10px"
  9067. v-if="item2 && item2.imgType && item2.imgType == 1"
  9068. >
  9069. <div class="inImg" @click.stop="previewImg(item2.src)">
  9070. <img :src="item2.src" alt="" />
  9071. </div>
  9072. </div>
  9073. <span v-else v-html="item2"></span>
  9074. </el-checkbox>
  9075. </div>
  9076. </el-checkbox-group>
  9077. </div>
  9078. </div>
  9079. </div>
  9080. </div>
  9081. </div>
  9082. <span slot="footer" class="dialog-footer">
  9083. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9084. >取 消</el-button
  9085. >
  9086. <el-button
  9087. type="primary"
  9088. @click="addStudentTest"
  9089. v-show="noteName == ''"
  9090. >确 定</el-button
  9091. >
  9092. </span>
  9093. </el-dialog>
  9094. <el-dialog
  9095. :title="noteName != '' ? noteName : '查看选择题'"
  9096. :visible.sync="dialogVisibleChoiceTeacher"
  9097. :append-to-body="true"
  9098. width="1000px"
  9099. :before-close="handleClose"
  9100. class="dialog_diy dialog_diy3"
  9101. >
  9102. <div>
  9103. <div class="w_name">
  9104. 学生姓名:<span>{{ sStudent.student }}</span>
  9105. </div>
  9106. <div class="a_addBox">
  9107. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  9108. <div
  9109. class="a_add_box"
  9110. v-for="(item1, index1) in testJson.testCount"
  9111. :key="index1"
  9112. >
  9113. <div class="a_add_head">
  9114. <div style="display: flex">
  9115. {{ index1 + 1 + "、" }}
  9116. <div
  9117. v-if="testJson.testJson[index1].type == '1'"
  9118. style="margin-right: 5px; min-width: 70px"
  9119. >
  9120. (单选题)
  9121. </div>
  9122. <div
  9123. v-if="testJson.testJson[index1].type == '2'"
  9124. style="margin-right: 5px; min-width: 70px"
  9125. >
  9126. (多选题)
  9127. </div>
  9128. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9129. </div>
  9130. <img
  9131. v-if="testJson.testJson[index1].img"
  9132. :src="testJson.testJson[index1].img"
  9133. style="height: 300px; margin-top: 10px; max-width: 100%"
  9134. />
  9135. </div>
  9136. <div
  9137. class="timuImgBox"
  9138. v-if="
  9139. testJson.testJson[index1].timuList &&
  9140. testJson.testJson[index1].timuList.length
  9141. "
  9142. >
  9143. <div
  9144. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9145. :key="tIndex"
  9146. class="timuImg"
  9147. @click.stop="previewImg(timg.src)"
  9148. >
  9149. <img :src="timg.src" alt="" />
  9150. </div>
  9151. </div>
  9152. <div class="a_add_body">
  9153. <div class="a_add_input">
  9154. <el-radio-group
  9155. v-model="radio[index1]"
  9156. v-if="testJson.testJson[index1].type == '1'"
  9157. >
  9158. <div class="radioBox">
  9159. <el-radio
  9160. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9161. .checkList"
  9162. :key="checkIndex"
  9163. :label="checkIndex"
  9164. :disabled="isAnswer"
  9165. class="redioStyle"
  9166. >
  9167. <div
  9168. style="margin-right: 10px"
  9169. v-if="item2 && item2.imgType && item2.imgType == 1"
  9170. >
  9171. <div class="inImg" @click.stop="previewImg(item2.src)">
  9172. <img :src="item2.src" alt="" />
  9173. </div>
  9174. </div>
  9175. <span v-else v-html="item2"></span>
  9176. </el-radio>
  9177. </div>
  9178. </el-radio-group>
  9179. <el-checkbox-group
  9180. v-model="radio[index1]"
  9181. v-if="testJson.testJson[index1].type == '2'"
  9182. >
  9183. <div class="radioBox">
  9184. <el-checkbox
  9185. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9186. .checkList"
  9187. :key="checkIndex"
  9188. :label="checkIndex"
  9189. :disabled="isAnswer"
  9190. class="redioStyle"
  9191. >
  9192. <div
  9193. style="margin-right: 10px"
  9194. v-if="item2 && item2.imgType && item2.imgType == 1"
  9195. >
  9196. <div class="inImg" @click.stop="previewImg(item2.src)">
  9197. <img :src="item2.src" alt="" />
  9198. </div>
  9199. </div>
  9200. <span v-else v-html="item2"></span>
  9201. </el-checkbox>
  9202. </div>
  9203. </el-checkbox-group>
  9204. </div>
  9205. </div>
  9206. </div>
  9207. </div>
  9208. </div>
  9209. <span slot="footer" class="dialog-footer">
  9210. <el-button
  9211. @click="dialogVisibleChoiceTeacher = false"
  9212. v-show="noteName == ''"
  9213. >取 消</el-button
  9214. >
  9215. <el-button
  9216. type="primary"
  9217. @click="addStudentTestTeacher"
  9218. v-show="noteName == ''"
  9219. >确 定</el-button
  9220. >
  9221. </span>
  9222. </el-dialog>
  9223. <el-dialog
  9224. title="查看富文本"
  9225. :visible.sync="dialogVisible1"
  9226. :append-to-body="true"
  9227. width="500px"
  9228. :before-close="handleClose"
  9229. class="dialog_diy textCss"
  9230. >
  9231. <el-form style="font-size: 20px">
  9232. <el-form-item label="文本标题" class="textTitle">
  9233. <div style="font-size: 20px">{{ text.name }}</div>
  9234. </el-form-item>
  9235. <div>富文本内容</div>
  9236. <div
  9237. v-html="text.url"
  9238. style="font-size: 18px; padding: 40px 0 0 0"
  9239. ></div>
  9240. </el-form>
  9241. <span slot="footer" class="dialog-footer">
  9242. <el-button type="primary" @click="dialogVisible1 = false"
  9243. >确定</el-button
  9244. >
  9245. </span>
  9246. </el-dialog>
  9247. <el-dialog
  9248. title="文件预览"
  9249. :visible.sync="dialogVisible3"
  9250. width="50%"
  9251. :before-close="handleClose"
  9252. class="dialog_diy"
  9253. :class="{ fullStyle: full }"
  9254. >
  9255. <div slot="title" class="header-title">
  9256. <div style="color: #fff">文件预览</div>
  9257. <div style="position: absolute; top: 19px; right: 50px">
  9258. <img
  9259. src="../../assets/full.png"
  9260. style="height: 16px; cursor: pointer"
  9261. alt=""
  9262. @click="fullTools"
  9263. />
  9264. </div>
  9265. </div>
  9266. <pdf
  9267. v-if="showPDF"
  9268. :pdfUrl="pptImgUrl"
  9269. style="width: 100%; height: 520px; overflow: auto"
  9270. :class="{ fullStyle: full }"
  9271. ></pdf>
  9272. <iframe
  9273. v-else
  9274. :src="pptImgUrl"
  9275. frameborder="0"
  9276. width="100%"
  9277. height="600"
  9278. :class="{ fullStyle: full }"
  9279. ></iframe>
  9280. </el-dialog>
  9281. <el-dialog
  9282. title="文件预览"
  9283. :visible.sync="dialogVisible6"
  9284. width="50%"
  9285. :before-close="handleClose"
  9286. class="dialog_diy"
  9287. >
  9288. <iframe
  9289. :src="pptImgUrl1"
  9290. frameborder="0"
  9291. width="100%"
  9292. height="600"
  9293. ></iframe>
  9294. </el-dialog>
  9295. <el-dialog
  9296. title="提示"
  9297. :visible.sync="dialogVisible4"
  9298. :append-to-body="true"
  9299. width="800px"
  9300. :before-close="handleClose"
  9301. class="dialog_diy notice"
  9302. >
  9303. <div>此功能暂未开放!</div>
  9304. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9305. </el-dialog>
  9306. <el-dialog
  9307. title="问答"
  9308. :visible.sync="answerDialogVisible"
  9309. :append-to-body="true"
  9310. width="800px"
  9311. :before-close="handleClose"
  9312. class="dialog_diy"
  9313. >
  9314. <div>
  9315. <div
  9316. style="
  9317. display: flex;
  9318. flex-wrap: nowrap;
  9319. flex-direction: column;
  9320. position: relative;
  9321. "
  9322. >
  9323. <div class="queTop" style="padding: 20px 0 20px 0">
  9324. <div class="question">
  9325. <img src="../../assets/icon/question.png" alt />
  9326. </div>
  9327. <div class="queTitle">
  9328. <div style="width: 90px; min-width: 90px">提问:</div>
  9329. <div>{{ answerQ }}</div>
  9330. </div>
  9331. </div>
  9332. <div class="ediBottom">
  9333. <textarea
  9334. rows="6"
  9335. class="binfo_input"
  9336. cols
  9337. style="width: 95%; height: 120px"
  9338. v-model="questionAnswer"
  9339. ></textarea>
  9340. </div>
  9341. </div>
  9342. </div>
  9343. <div slot="footer">
  9344. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9345. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9346. </div>
  9347. </el-dialog>
  9348. <el-dialog
  9349. title="倒计时"
  9350. :visible.sync="timeDialogVisible"
  9351. :append-to-body="true"
  9352. width="800px"
  9353. :before-close="handleClose"
  9354. class="dialog_diy"
  9355. >
  9356. <div>
  9357. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9358. </div>
  9359. <div slot="footer">
  9360. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9361. </div>
  9362. </el-dialog>
  9363. <el-dialog
  9364. title="权限设置"
  9365. :visible.sync="juriVisible"
  9366. :append-to-body="true"
  9367. width="400px"
  9368. :before-close="handleClose"
  9369. class="dialog_diy"
  9370. >
  9371. <div>
  9372. <div class="open_box">
  9373. <div class="switch_box">
  9374. <span>允许学生查看所有作业</span>
  9375. <el-switch
  9376. v-model="sIsOpen"
  9377. active-text=""
  9378. class="switchCss"
  9379. @change="updateSLook"
  9380. ></el-switch>
  9381. </div>
  9382. <div
  9383. class="switch_box"
  9384. v-if="
  9385. courseDetail.userid == userid ||
  9386. (courseDetail.course_teacher &&
  9387. courseDetail.course_teacher.indexOf(userid) != -1)
  9388. "
  9389. >
  9390. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9391. <span>禁止学生查看所有阶段</span>
  9392. <el-switch
  9393. v-model="IsLookOpen"
  9394. active-text=""
  9395. class="switchCss"
  9396. @change="updateLookOpen"
  9397. ></el-switch>
  9398. </div>
  9399. <div class="switch_box" v-if="courseDetail.userid == userid">
  9400. <span>开启跟随模式</span>
  9401. <el-switch
  9402. v-model="IsFollow"
  9403. active-text=""
  9404. class="switchCss"
  9405. @change="updateFollow"
  9406. ></el-switch>
  9407. </div>
  9408. </div>
  9409. </div>
  9410. <div slot="footer">
  9411. <el-button
  9412. style="background: #409efe; color: #fff"
  9413. @click="juriVisible = false"
  9414. >关 闭</el-button
  9415. >
  9416. </div>
  9417. </el-dialog>
  9418. <el-dialog
  9419. title="查看视频"
  9420. :visible.sync="videoVisible"
  9421. :append-to-body="true"
  9422. width="1000px"
  9423. :before-close="handleClose"
  9424. class="dialog_diy1"
  9425. >
  9426. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9427. <video-player
  9428. class="video-player vjs-custom-skin"
  9429. :playsinline="true"
  9430. :options="videoDetail"
  9431. @play="onPlayerPlay($event)"
  9432. style="width: 100%; height: 100%"
  9433. ></video-player>
  9434. </div>
  9435. <div slot="footer">
  9436. <el-button
  9437. style="background: #409efe; color: #fff"
  9438. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9439. >
  9440. 关 闭</el-button
  9441. >
  9442. </div>
  9443. </el-dialog>
  9444. <el-dialog
  9445. title="查看详情"
  9446. :visible.sync="commentDialogVisible"
  9447. :append-to-body="true"
  9448. width="800px"
  9449. :before-close="handleClose"
  9450. class="dialog_diy"
  9451. >
  9452. <div class="commentTop">
  9453. <div class="studentDetail">
  9454. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9455. <div class="nameAndTime">
  9456. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9457. <div>{{ commentDetail.time }}</div>
  9458. </div>
  9459. <div
  9460. class="returnBtn"
  9461. style="margin-left: auto; width: 80px"
  9462. v-if="
  9463. commentDetail.works &&
  9464. commentDetail.type == 0 &&
  9465. (tType == 1 || tType == 4)
  9466. "
  9467. @click="
  9468. showPicturePaint(
  9469. commentDetail.img ? commentDetail.img : commentDetail.works
  9470. )
  9471. "
  9472. >
  9473. 教师批注
  9474. </div>
  9475. </div>
  9476. <div
  9477. class="worksAnswer"
  9478. v-if="commentDetail.works && commentDetail.type == 2"
  9479. >
  9480. {{ JSON.parse(commentDetail.works)[0].answer }}
  9481. </div>
  9482. <div
  9483. class="worksAnswer"
  9484. v-if="commentDetail.works && commentDetail.type == 1"
  9485. >
  9486. <img
  9487. src="../../assets/teacherWork.png"
  9488. v-if="commentDetail.ateacher"
  9489. class="w_teachert"
  9490. />
  9491. <pdf
  9492. v-if="showPDF"
  9493. :pdfUrl="pptImgUrl"
  9494. style="width: 100%; height: 520px; overflow: auto"
  9495. :class="{ fullStyle: full }"
  9496. ></pdf>
  9497. <iframe
  9498. v-else
  9499. :src="pptImgUrl"
  9500. frameborder="0"
  9501. width="100%"
  9502. height="600"
  9503. :class="{ fullStyle: full }"
  9504. ></iframe>
  9505. </div>
  9506. <div
  9507. class="worksAnswer"
  9508. v-if="commentDetail.works && commentDetail.type == 0"
  9509. >
  9510. <img
  9511. src="../../assets/teacherWork.png"
  9512. v-if="commentDetail.ateacher"
  9513. class="w_teachert"
  9514. style="right: 105px"
  9515. />
  9516. <img
  9517. :src="commentDetail.works"
  9518. alt=""
  9519. @click="previewImg(commentDetail.works)"
  9520. />
  9521. </div>
  9522. <div
  9523. class="worksAnswer"
  9524. v-if="commentDetail.works && commentDetail.type == 3"
  9525. >
  9526. <img
  9527. src="../../assets/teacherWork.png"
  9528. v-if="commentDetail.ateacher"
  9529. class="w_teachert"
  9530. />
  9531. <video-player
  9532. class="video-player vjs-custom-skin"
  9533. :playsinline="true"
  9534. :options="videoDetail"
  9535. @play="onPlayerPlay($event)"
  9536. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9537. ></video-player>
  9538. </div>
  9539. <div
  9540. class="worksAnswer"
  9541. v-if="commentDetail.works && commentDetail.type == 10"
  9542. >
  9543. <div class="cont" v-html="commentDetail.works.text"></div>
  9544. </div>
  9545. <div
  9546. class="worksAnswer codeFileBox"
  9547. v-if="commentDetail.works && commentDetail.type == 12"
  9548. @click="downloadFile(commentDetail.works)"
  9549. >
  9550. <img src="../../assets/icon/codeFile.png" />
  9551. <div>点击下载文件</div>
  9552. </div>
  9553. <div
  9554. class="worksAnswer codeFileBox"
  9555. v-if="commentDetail.works && commentDetail.type == 15"
  9556. @click="
  9557. openCocoPi(
  9558. 57,
  9559. commentIndexJson.toolIndex,
  9560. commentDetail.userid,
  9561. commentDetail.sName
  9562. )
  9563. "
  9564. >
  9565. <img src="../../assets/icon/codeFile.png" />
  9566. <div>点击打开CocoPi</div>
  9567. </div>
  9568. <div
  9569. class="worksAnswer"
  9570. v-if="commentDetail.works && commentDetail.type == 13"
  9571. >
  9572. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9573. </div>
  9574. <div
  9575. class="worksAnswer"
  9576. v-if="commentDetail.works && commentDetail.type == 4"
  9577. >
  9578. <div class="evalCss">
  9579. <div class="nav">请选择星星进行评分</div>
  9580. <div class="middleBox" v-if="eScore.eStar">
  9581. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9582. <div class="nameAndrate">
  9583. <div>{{ e.value }}</div>
  9584. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9585. </div>
  9586. <div v-if="e.detail">{{ e.detail }}</div>
  9587. </div>
  9588. <div class="bz">
  9589. <textarea
  9590. disabled
  9591. rows="4"
  9592. class="pj"
  9593. style="
  9594. padding: 10px 5px;
  9595. width: 70%;
  9596. background: #f7f6f9;
  9597. font-size: 14px;
  9598. text-indent: 10px;
  9599. color: #000;
  9600. "
  9601. cols
  9602. v-model="eScore.eBzText"
  9603. placeholder="请输入评价内容..."
  9604. ></textarea>
  9605. </div>
  9606. </div>
  9607. </div>
  9608. </div>
  9609. <div class="comment">
  9610. <div class="commentList">
  9611. <div class="commentImg">
  9612. <img
  9613. @click="
  9614. isLikes(
  9615. commentDetail.wid,
  9616. userid,
  9617. 1,
  9618. null,
  9619. commentDetail.isLikes
  9620. )
  9621. "
  9622. :src="commentDetail.isLikes == true ? likes : noLikes"
  9623. alt=""
  9624. />
  9625. </div>
  9626. <div>{{ commentDetail.likesCount }}</div>
  9627. </div>
  9628. <div class="commentList">
  9629. <div class="commentImg">
  9630. <img src="../../assets/icon/comment/comment.png" alt="" />
  9631. </div>
  9632. <div>{{ commentDetail.commentCount }}</div>
  9633. </div>
  9634. </div>
  9635. <div class="drawPBox" v-if="commentDetail.img">
  9636. <span>教师批注</span>
  9637. <img
  9638. :src="commentDetail.img"
  9639. alt=""
  9640. @click="previewImg(commentDetail.img)"
  9641. />
  9642. <span
  9643. class="deleteImg"
  9644. v-if="tType == 1 || tType == 4"
  9645. @click.stop="deletePicturePaint(commentDetail.wid)"
  9646. style="
  9647. font-size: 14px;
  9648. width: auto !important;
  9649. color: #b4b4b4;
  9650. top: unset;
  9651. bottom: 0;
  9652. border: none;
  9653. padding: 0;
  9654. height: auto !important;
  9655. margin: 0;
  9656. "
  9657. >删除</span
  9658. >
  9659. </div>
  9660. </div>
  9661. <div class="commentBox">
  9662. <div class="pl">评论:</div>
  9663. <div style="max-height: 200px; overflow: auto">
  9664. <div
  9665. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9666. style="padding: 10px 0 0 0"
  9667. >
  9668. <div
  9669. class="studentDetail"
  9670. style="padding-top: 10px"
  9671. v-for="(co, coIndex) in commentDetail.commentJson"
  9672. :key="coIndex"
  9673. >
  9674. <div class="tx" style="min-width: 50px">
  9675. <img src="../../assets/avatar.png" alt="" />
  9676. </div>
  9677. <div class="plPerson">
  9678. <div class="plName">
  9679. <div>{{ co.commentPeople }}</div>
  9680. <div style="margin-left: 5px">
  9681. {{ co.commentTime }}
  9682. </div>
  9683. <div
  9684. class="deleteComment"
  9685. v-if="userid == co.userid"
  9686. @click="deleteComment(co.wid)"
  9687. >
  9688. 删除
  9689. </div>
  9690. </div>
  9691. <div class="plContent">{{ co.commentText }}</div>
  9692. </div>
  9693. </div>
  9694. </div>
  9695. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9696. </div>
  9697. </div>
  9698. <div style="margin-top: 10px">
  9699. <div class="displayBox">
  9700. <div
  9701. style="
  9702. color: #556db4;
  9703. font-size: 14px;
  9704. font-weight: bold;
  9705. padding-bottom: 10px;
  9706. "
  9707. >
  9708. 评价
  9709. </div>
  9710. <div class="easy_comment" v-if="false">
  9711. <div
  9712. v-for="(p, pIndex) in PlTextList"
  9713. :key="pIndex"
  9714. @click="fastText(p, 1)"
  9715. >
  9716. {{ p }}
  9717. </div>
  9718. </div>
  9719. </div>
  9720. <div>
  9721. <textarea
  9722. rows="3"
  9723. class="pj"
  9724. style="padding: 10px 5px"
  9725. cols
  9726. v-model="commentText"
  9727. placeholder="请输入评论"
  9728. ></textarea>
  9729. </div>
  9730. </div>
  9731. <div slot="footer">
  9732. <el-button
  9733. @click="
  9734. (commentDialogVisible = false),
  9735. (commentIndexJson = {}),
  9736. videoDetail.sources && videoDetail.sources[0]
  9737. ? (videoDetail.sources[0].src = '')
  9738. : ''
  9739. "
  9740. >取 消</el-button
  9741. >
  9742. <el-button
  9743. type="primary"
  9744. @click="addComment(commentDetail.wid, userid, 2)"
  9745. >确 定</el-button
  9746. >
  9747. </div>
  9748. </el-dialog>
  9749. <el-dialog
  9750. title="查看文档"
  9751. :visible.sync="fullDialogVisible"
  9752. :append-to-body="true"
  9753. width="100%"
  9754. :before-close="handleClose"
  9755. :show-close="false"
  9756. class="dialog_diy full_diy"
  9757. :class="{ full_diy2: fulltype == 3 }"
  9758. >
  9759. <div slot="title" class="header-title">
  9760. <div style="color: #fff">查看文档</div>
  9761. <div
  9762. @click="fullDialogVisible = false"
  9763. style="
  9764. cursor: pointer;
  9765. position: absolute;
  9766. top: 20px;
  9767. right: 20px;
  9768. color: #fff;
  9769. "
  9770. >
  9771. 退出全屏
  9772. </div>
  9773. </div>
  9774. <div style="height: 100%">
  9775. <div
  9776. class="wheel"
  9777. v-if="
  9778. fullUrl.indexOf(
  9779. 'https://view.officeapps.live.com/op/view.aspx?src='
  9780. ) != -1 && fulltype == 2
  9781. "
  9782. style="width: 95%; margin: 0 auto"
  9783. >
  9784. <iframe
  9785. style="width: 100%; height: 100%; border: none"
  9786. :src="fullUrl"
  9787. ></iframe>
  9788. </div>
  9789. <iframe
  9790. v-else-if="fulltype == 2"
  9791. style="width: 100%; height: 100%; border: none"
  9792. :src="fullUrl"
  9793. security="restricted"
  9794. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9795. ></iframe>
  9796. <pdf
  9797. v-else-if="fulltype == 3"
  9798. :pdfUrl="fullUrl"
  9799. style="width: 100%; height: 100%; overflow: auto"
  9800. ></pdf>
  9801. <div
  9802. class="wheel"
  9803. v-if="fulltype == 1"
  9804. style="
  9805. box-shadow: 0 0 6px 1px #f2f2f2;
  9806. width: 100%;
  9807. background: #f1f1f1;
  9808. "
  9809. >
  9810. <div class="title" style="width: 100%; box-sizing: border-box">
  9811. 查看文档
  9812. </div>
  9813. <el-form class="textBox" style="height: 90%">
  9814. <el-form-item class="textTitle">
  9815. <div style="font-size: 22px">
  9816. {{ fullUrl.name }}
  9817. </div>
  9818. </el-form-item>
  9819. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9820. <div
  9821. v-html="fullUrl.url"
  9822. class="textContent"
  9823. style="height: auto"
  9824. ></div>
  9825. </el-form>
  9826. </div>
  9827. </div>
  9828. <!-- <div slot="footer">
  9829. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9830. </div> -->
  9831. </el-dialog>
  9832. <el-dialog
  9833. title="个人评价"
  9834. :visible.sync="studentEvalDialogVisible"
  9835. :append-to-body="true"
  9836. width="800px"
  9837. :before-close="handleClose"
  9838. class="dialog_diy"
  9839. >
  9840. <div class="evalCss">
  9841. <div class="nav">请选择星星进行评分</div>
  9842. <div class="middleBox" v-if="eScore.eStar">
  9843. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9844. <div class="nameAndrate">
  9845. <div>{{ e.value }}</div>
  9846. <el-rate
  9847. v-model="eScore.eStar[eIndex]"
  9848. :disabled="isStar"
  9849. ></el-rate>
  9850. </div>
  9851. <div v-if="e.detail">{{ e.detail }}</div>
  9852. </div>
  9853. <div class="easy_comment" v-if="false">
  9854. <div
  9855. v-for="(p, pIndex) in PlTextList"
  9856. :key="pIndex"
  9857. @click="fastText(p, 2)"
  9858. >
  9859. {{ p }}
  9860. </div>
  9861. </div>
  9862. <div class="bz">
  9863. <textarea
  9864. :disabled="isStar"
  9865. rows="4"
  9866. class="pj"
  9867. style="
  9868. padding: 10px 5px;
  9869. width: 70%;
  9870. background: #f7f6f9;
  9871. font-size: 14px;
  9872. text-indent: 10px;
  9873. "
  9874. cols
  9875. v-model="eScore.eBzText"
  9876. placeholder="请输入评价内容..."
  9877. ></textarea>
  9878. </div>
  9879. </div>
  9880. </div>
  9881. <div slot="footer">
  9882. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9883. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9884. >确 定</el-button
  9885. >
  9886. </div>
  9887. </el-dialog>
  9888. <el-dialog
  9889. title="个人评价"
  9890. :visible.sync="studentEvalDialogVisibleTeacher"
  9891. :append-to-body="true"
  9892. width="800px"
  9893. :before-close="handleClose"
  9894. class="dialog_diy"
  9895. >
  9896. <div class="w_name">
  9897. 学生姓名:<span>{{ sStudent.student }}</span>
  9898. </div>
  9899. <div class="evalCss">
  9900. <div class="nav">请选择星星进行评分</div>
  9901. <div class="middleBox" v-if="eScore.eStar">
  9902. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9903. <div class="nameAndrate">
  9904. <div>{{ e.value }}</div>
  9905. <el-rate
  9906. v-model="eScore.eStar[eIndex]"
  9907. :disabled="isStar"
  9908. ></el-rate>
  9909. </div>
  9910. <div v-if="e.detail">{{ e.detail }}</div>
  9911. </div>
  9912. <div class="easy_comment" v-if="false">
  9913. <div
  9914. v-for="(p, pIndex) in PlTextList"
  9915. :key="pIndex"
  9916. @click="fastText(p, 2)"
  9917. >
  9918. {{ p }}
  9919. </div>
  9920. </div>
  9921. <div class="bz">
  9922. <textarea
  9923. :disabled="isStar"
  9924. rows="4"
  9925. class="pj"
  9926. style="
  9927. padding: 10px 5px;
  9928. width: 70%;
  9929. background: #f7f6f9;
  9930. font-size: 14px;
  9931. text-indent: 10px;
  9932. "
  9933. cols
  9934. v-model="eScore.eBzText"
  9935. placeholder="请输入评价内容..."
  9936. ></textarea>
  9937. </div>
  9938. </div>
  9939. </div>
  9940. <div slot="footer">
  9941. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9942. >取 消</el-button
  9943. >
  9944. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9945. >确 定</el-button
  9946. >
  9947. </div>
  9948. </el-dialog>
  9949. <el-dialog
  9950. title="选择填空"
  9951. :visible.sync="dialogVisibleSelect"
  9952. :append-to-body="true"
  9953. width="90%"
  9954. :before-close="handleClose"
  9955. class="dialog_diy dialog_diy3"
  9956. >
  9957. <div v-if="selectJson">
  9958. <div class="select_box2">
  9959. <div class="select_box2_title">
  9960. <div>选择填空</div>
  9961. <div>请选择对应的答案进行答题!</div>
  9962. </div>
  9963. <div class="select_box2_box">
  9964. <div class="select_box2_img">
  9965. <img
  9966. :src="selectJson.url"
  9967. @click="previewImg(selectJson.url)"
  9968. alt=""
  9969. />
  9970. </div>
  9971. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9972. <div style="padding-top: 15px">
  9973. <div class="select_answer_title" v-if="isSelect">
  9974. {{ selectAnswer.stu }}
  9975. </div>
  9976. <div class="select_answer_title" v-else>
  9977. 根据题目选择对应答案
  9978. </div>
  9979. <div
  9980. class="select_box2_answer_box"
  9981. v-for="(item2, checkIndex) in selectJson.select"
  9982. :key="checkIndex"
  9983. >
  9984. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9985. <el-select
  9986. :disabled="isSelect"
  9987. v-model="selectAnswer.answer[checkIndex]"
  9988. placeholder="请选择正确答案"
  9989. >
  9990. <el-option
  9991. v-for="(e, eIndex) in selectJson.select"
  9992. :key="eIndex"
  9993. :label="e"
  9994. :value="eIndex"
  9995. >
  9996. </el-option>
  9997. </el-select>
  9998. </div>
  9999. </div>
  10000. <div
  10001. class="rightAnswerCss"
  10002. v-if="isSelect && (tType == 1 || tType == 4)"
  10003. >
  10004. <div
  10005. v-for="(a, aIndex) in selectJson.answer"
  10006. :key="aIndex"
  10007. class="rightAnswer"
  10008. >
  10009. <div
  10010. v-if="selectAnswer.answer[aIndex] === a"
  10011. style="color: #767de1"
  10012. >
  10013. 回答正确
  10014. </div>
  10015. <div v-else>回答错误</div>
  10016. <div
  10017. style="margin-left: 10px"
  10018. v-if="selectAnswer.answer[aIndex] !== a"
  10019. >
  10020. 正确答案:
  10021. </div>
  10022. <div
  10023. :class="
  10024. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10025. "
  10026. >
  10027. {{ selectJson.select[a] }}
  10028. </div>
  10029. </div>
  10030. </div>
  10031. </div>
  10032. <div class="upAnswerCss">
  10033. <el-button
  10034. type="primary"
  10035. @click="addSelectAnswer"
  10036. v-if="!isSelect"
  10037. >提交答案</el-button
  10038. >
  10039. </div>
  10040. </div>
  10041. </div>
  10042. </div>
  10043. </el-dialog>
  10044. <el-dialog
  10045. title="选择填空"
  10046. :visible.sync="dialogVisibleSelectTeacher"
  10047. :append-to-body="true"
  10048. width="90%"
  10049. :before-close="handleClose"
  10050. class="dialog_diy dialog_diy3"
  10051. >
  10052. <div v-if="selectJson">
  10053. <div class="w_name">
  10054. 学生姓名:<span>{{ sStudent.student }}</span>
  10055. </div>
  10056. <div class="select_box2">
  10057. <div class="select_box2_title">
  10058. <div>选择填空</div>
  10059. <div>请选择对应的答案进行答题!</div>
  10060. </div>
  10061. <div class="select_box2_box">
  10062. <div class="select_box2_img">
  10063. <img
  10064. :src="selectJson.url"
  10065. @click="previewImg(selectJson.url)"
  10066. alt=""
  10067. />
  10068. </div>
  10069. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10070. <div style="padding-top: 15px">
  10071. <div class="select_answer_title" v-if="isSelect">
  10072. {{ selectAnswer.stu }}
  10073. </div>
  10074. <div class="select_answer_title" v-else>
  10075. 根据题目选择对应答案
  10076. </div>
  10077. <div
  10078. class="select_box2_answer_box"
  10079. v-for="(item2, checkIndex) in selectJson.select"
  10080. :key="checkIndex"
  10081. >
  10082. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10083. <el-select
  10084. :disabled="isSelect"
  10085. v-model="selectAnswer.answer[checkIndex]"
  10086. placeholder="请选择正确答案"
  10087. >
  10088. <el-option
  10089. v-for="(e, eIndex) in selectJson.select"
  10090. :key="eIndex"
  10091. :label="e"
  10092. :value="eIndex"
  10093. >
  10094. </el-option>
  10095. </el-select>
  10096. </div>
  10097. </div>
  10098. <div
  10099. class="rightAnswerCss"
  10100. v-if="isSelect && (tType == 1 || tType == 4)"
  10101. >
  10102. <div
  10103. v-for="(a, aIndex) in selectJson.answer"
  10104. :key="aIndex"
  10105. class="rightAnswer"
  10106. >
  10107. <div
  10108. v-if="selectAnswer.answer[aIndex] === a"
  10109. style="color: #767de1"
  10110. >
  10111. 回答正确
  10112. </div>
  10113. <div v-else>回答错误</div>
  10114. <div
  10115. style="margin-left: 10px"
  10116. v-if="selectAnswer.answer[aIndex] !== a"
  10117. >
  10118. 正确答案:
  10119. </div>
  10120. <div
  10121. :class="
  10122. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10123. "
  10124. >
  10125. {{ selectJson.select[a] }}
  10126. </div>
  10127. </div>
  10128. </div>
  10129. </div>
  10130. <div class="upAnswerCss">
  10131. <el-button
  10132. type="primary"
  10133. @click="addSelectAnswerTeacher"
  10134. v-if="!isSelect"
  10135. >提交答案</el-button
  10136. >
  10137. </div>
  10138. </div>
  10139. </div>
  10140. </div>
  10141. </el-dialog>
  10142. <el-dialog
  10143. title="教师评分"
  10144. :visible.sync="dialogVisibleScore"
  10145. :append-to-body="true"
  10146. width="800px"
  10147. :before-close="handleClose"
  10148. class="dialog_diy"
  10149. >
  10150. <div>
  10151. <div class="studentDetail">
  10152. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10153. <div class="nameAndTime">
  10154. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10155. <div>{{ commentDetail.time }}</div>
  10156. </div>
  10157. </div>
  10158. <div
  10159. class="worksAnswer"
  10160. v-if="commentDetail.works && commentDetail.type == 2"
  10161. >
  10162. {{ JSON.parse(commentDetail.works)[0].answer }}
  10163. </div>
  10164. <div
  10165. class="worksAnswer"
  10166. v-if="commentDetail.works && commentDetail.type == 1"
  10167. >
  10168. <pdf
  10169. v-if="showPDF"
  10170. :pdfUrl="pptImgUrl"
  10171. style="width: 100%; height: 520px; overflow: auto"
  10172. :class="{ fullStyle: full }"
  10173. ></pdf>
  10174. <iframe
  10175. v-else
  10176. :src="pptImgUrl"
  10177. frameborder="0"
  10178. width="100%"
  10179. height="600"
  10180. :class="{ fullStyle: full }"
  10181. ></iframe>
  10182. </div>
  10183. <div
  10184. class="worksAnswer"
  10185. v-if="commentDetail.works && commentDetail.type == 0"
  10186. >
  10187. <img
  10188. :src="commentDetail.works"
  10189. alt=""
  10190. @click="previewImg(commentDetail.works)"
  10191. />
  10192. </div>
  10193. <div
  10194. class="worksAnswer"
  10195. v-if="commentDetail.works && commentDetail.type == 3"
  10196. >
  10197. <video-player
  10198. class="video-player vjs-custom-skin"
  10199. :playsinline="true"
  10200. :options="videoDetail"
  10201. @play="onPlayerPlay($event)"
  10202. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10203. ></video-player>
  10204. </div>
  10205. <div
  10206. class="worksAnswer codeFileBox"
  10207. v-if="commentDetail.works && commentDetail.type == 12"
  10208. @click="downloadFile(commentDetail.works)"
  10209. >
  10210. <img src="../../assets/icon/codeFile.png" />
  10211. <div>点击下载文件</div>
  10212. </div>
  10213. <div
  10214. class="worksAnswer codeFileBox"
  10215. v-if="commentDetail.works && commentDetail.type == 15"
  10216. @click="
  10217. openCocoPi(
  10218. 57,
  10219. commentIndexJson.toolIndex,
  10220. commentDetail.userid,
  10221. commentDetail.sName
  10222. )
  10223. "
  10224. >
  10225. <img src="../../assets/icon/codeFile.png" />
  10226. <div>点击打开CocoPi</div>
  10227. </div>
  10228. <div
  10229. class="worksAnswer"
  10230. v-if="commentDetail.works && commentDetail.type == 13"
  10231. >
  10232. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10233. </div>
  10234. <div class="scoreBox">
  10235. <span class="t">请输入分数</span>
  10236. <el-input-number
  10237. :disabled="courseDetail.userid != userid"
  10238. v-model="wScore"
  10239. :controls="false"
  10240. :min="0"
  10241. :max="100"
  10242. ></el-input-number>
  10243. </div>
  10244. <div class="scoreDetailBox">
  10245. <span class="t">评分评论</span>
  10246. <el-input
  10247. type="textarea"
  10248. :rows="5"
  10249. :disabled="courseDetail.userid != userid"
  10250. resize="none"
  10251. v-model="scoreDetail"
  10252. placeholder="请输入对学生的评价"
  10253. >
  10254. </el-input>
  10255. </div>
  10256. </div>
  10257. <span slot="footer" class="dialog-footer">
  10258. <el-button
  10259. @click="
  10260. (dialogVisibleScore = false),
  10261. (commentIndexJson = {}),
  10262. videoDetail.sources && videoDetail.sources[0]
  10263. ? (videoDetail.sources[0].src = '')
  10264. : ''
  10265. "
  10266. >取 消</el-button
  10267. >
  10268. <el-button
  10269. type="primary"
  10270. v-if="courseDetail.userid == userid"
  10271. @click="scoreWork(commentDetail.wid)"
  10272. >确 定
  10273. </el-button>
  10274. </span>
  10275. </el-dialog>
  10276. <el-dialog
  10277. title="连词成句"
  10278. :visible.sync="dialogVisibleSentence"
  10279. :append-to-body="true"
  10280. width="1000px"
  10281. :before-close="handleClose"
  10282. class="dialog_diy dialog_diy3"
  10283. >
  10284. <div>
  10285. <div class="sentenBox">
  10286. <div
  10287. v-for="(st, stIndex) in sentenceList"
  10288. :key="stIndex"
  10289. style="padding-bottom: 20px"
  10290. >
  10291. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10292. <div class="cardList" v-if="st.chooseSenList">
  10293. <div class="cardBox">
  10294. <div
  10295. v-for="(r, rIndex) in st.chooseSenList"
  10296. :key="rIndex"
  10297. @click="returnCard(r, stIndex, rIndex)"
  10298. >
  10299. <el-tooltip
  10300. class="item"
  10301. effect="light"
  10302. :content="r"
  10303. placement="top"
  10304. v-if="r != '' && r != undefined"
  10305. >
  10306. <div
  10307. :class="{
  10308. isCard: r,
  10309. isChooseCard: r == '' || r == undefined,
  10310. }"
  10311. >
  10312. <div>{{ r }}</div>
  10313. </div>
  10314. </el-tooltip>
  10315. <div
  10316. :class="{
  10317. isCard: r,
  10318. isChooseCard: r == '' || r == undefined,
  10319. }"
  10320. v-else
  10321. >
  10322. <div>{{ r }}</div>
  10323. </div>
  10324. </div>
  10325. </div>
  10326. </div>
  10327. <div class="cardList" v-if="st.addChangeSen">
  10328. <div class="cardBox">
  10329. <div
  10330. v-for="(s, sIndex) in st.addChangeSen"
  10331. :key="sIndex"
  10332. @click="setRightAnswer(s, stIndex, sIndex)"
  10333. >
  10334. <el-tooltip
  10335. class="item"
  10336. effect="light"
  10337. :content="s"
  10338. placement="top"
  10339. v-if="s != '' && s != undefined"
  10340. >
  10341. <div
  10342. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10343. >
  10344. <div>{{ s }}</div>
  10345. </div>
  10346. </el-tooltip>
  10347. <div
  10348. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10349. v-else
  10350. >
  10351. <div>{{ s }}</div>
  10352. </div>
  10353. </div>
  10354. </div>
  10355. </div>
  10356. </div>
  10357. </div>
  10358. </div>
  10359. <span slot="footer" class="dialog-footer">
  10360. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10361. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10362. </span>
  10363. </el-dialog>
  10364. <el-dialog
  10365. title="连词成句"
  10366. :visible.sync="dialogVisibleSentenceTeacher"
  10367. :append-to-body="true"
  10368. width="1000px"
  10369. :before-close="handleClose"
  10370. class="dialog_diy dialog_diy3"
  10371. >
  10372. <div>
  10373. <div class="w_name">
  10374. 学生姓名:<span>{{ sStudent.student }}</span>
  10375. </div>
  10376. <div class="sentenBox">
  10377. <div
  10378. v-for="(st, stIndex) in sentenceList"
  10379. :key="stIndex"
  10380. style="padding-bottom: 20px"
  10381. >
  10382. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10383. <div class="cardList" v-if="st.chooseSenList">
  10384. <div class="cardBox">
  10385. <div
  10386. v-for="(r, rIndex) in st.chooseSenList"
  10387. :key="rIndex"
  10388. @click="returnCard(r, stIndex, rIndex)"
  10389. >
  10390. <el-tooltip
  10391. class="item"
  10392. effect="light"
  10393. :content="r"
  10394. placement="top"
  10395. v-if="r != '' && r != undefined"
  10396. >
  10397. <div
  10398. :class="{
  10399. isCard: r,
  10400. isChooseCard: r == '' || r == undefined,
  10401. }"
  10402. >
  10403. <div>{{ r }}</div>
  10404. </div>
  10405. </el-tooltip>
  10406. <div
  10407. :class="{
  10408. isCard: r,
  10409. isChooseCard: r == '' || r == undefined,
  10410. }"
  10411. v-else
  10412. >
  10413. <div>{{ r }}</div>
  10414. </div>
  10415. </div>
  10416. </div>
  10417. </div>
  10418. <div class="cardList" v-if="st.addChangeSen">
  10419. <div class="cardBox">
  10420. <div
  10421. v-for="(s, sIndex) in st.addChangeSen"
  10422. :key="sIndex"
  10423. @click="setRightAnswer(s, stIndex, sIndex)"
  10424. >
  10425. <el-tooltip
  10426. class="item"
  10427. effect="light"
  10428. :content="s"
  10429. placement="top"
  10430. v-if="s != '' && s != undefined"
  10431. >
  10432. <div
  10433. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10434. >
  10435. <div>{{ s }}</div>
  10436. </div>
  10437. </el-tooltip>
  10438. <div
  10439. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10440. v-else
  10441. >
  10442. <div>{{ s }}</div>
  10443. </div>
  10444. </div>
  10445. </div>
  10446. </div>
  10447. </div>
  10448. </div>
  10449. </div>
  10450. <span slot="footer" class="dialog-footer">
  10451. <el-button @click="dialogVisibleSentenceTeacher = false"
  10452. >取 消</el-button
  10453. >
  10454. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10455. </span>
  10456. </el-dialog>
  10457. <el-dialog
  10458. title="连词成句"
  10459. :visible.sync="dialogVisibleSentence1"
  10460. :append-to-body="true"
  10461. width="1000px"
  10462. :before-close="handleClose"
  10463. class="dialog_diy dialog_diy3"
  10464. >
  10465. <div>
  10466. <div class="sentenBox">
  10467. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10468. {{ sentenceList1.stuName }}的作业
  10469. </div>
  10470. <div
  10471. v-for="(st, stIndex) in sentenceList1"
  10472. :key="stIndex"
  10473. style="padding-bottom: 20px"
  10474. >
  10475. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10476. 第{{ stIndex + 1 }}题
  10477. </div>
  10478. <div class="isWrong">
  10479. <div class="cardList1" v-if="st.chooseSenList">
  10480. <div class="cardBox">
  10481. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10482. <el-tooltip
  10483. class="item"
  10484. effect="light"
  10485. :content="s"
  10486. placement="top"
  10487. >
  10488. <div class="isCard">
  10489. <div>{{ s }}</div>
  10490. </div>
  10491. </el-tooltip>
  10492. </div>
  10493. </div>
  10494. <div class="cardAnswerBox">
  10495. 组成句子:{{ st.chooseSenList.join(" ") }}
  10496. </div>
  10497. </div>
  10498. <div
  10499. class="answerRight isTj"
  10500. v-if="
  10501. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10502. (tType == 1 || tType == 4)
  10503. "
  10504. >
  10505. <div class="isTjImg">
  10506. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10507. </div>
  10508. <div>回答正确</div>
  10509. </div>
  10510. <div
  10511. class="answerRight isTj"
  10512. v-if="
  10513. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10514. (tType == 1 || tType == 4)
  10515. "
  10516. >
  10517. <div class="isTjImg">
  10518. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10519. </div>
  10520. <div>回答错误</div>
  10521. </div>
  10522. </div>
  10523. <div
  10524. v-if="
  10525. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10526. (tType == 1 || tType == 4)
  10527. "
  10528. >
  10529. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10530. <div
  10531. class="cardList"
  10532. v-if="st.rightAnswer"
  10533. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10534. >
  10535. <div class="cardBox">
  10536. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10537. <el-tooltip
  10538. class="item"
  10539. effect="light"
  10540. :content="r"
  10541. placement="top"
  10542. >
  10543. <div class="isCard1">
  10544. <div>{{ r }}</div>
  10545. </div>
  10546. </el-tooltip>
  10547. </div>
  10548. </div>
  10549. <div class="cardAnswerBox">
  10550. 组成句子:{{ st.rightAnswer.join(" ") }}
  10551. </div>
  10552. </div>
  10553. </div>
  10554. </div>
  10555. </div>
  10556. </div>
  10557. <span slot="footer" class="dialog-footer">
  10558. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10559. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10560. >确 定</el-button
  10561. >
  10562. </span>
  10563. </el-dialog>
  10564. <el-dialog
  10565. title="提交作业"
  10566. :visible.sync="dialogVisibleWorks"
  10567. :append-to-body="true"
  10568. width="500px"
  10569. :before-close="handleClose"
  10570. class="dialog_change"
  10571. >
  10572. <div class="marginT">
  10573. <div class="w_name">
  10574. 学生姓名:<span>{{ sStudent.student }}</span>
  10575. </div>
  10576. <div>上传文件</div>
  10577. <div
  10578. class="chapter_add"
  10579. @click="addImg($event)"
  10580. v-if="studyJuri[0].cover.length == 0"
  10581. >
  10582. <div class="up_photo">
  10583. <img src="../../assets/uploadImg2.png" alt />
  10584. </div>
  10585. <!-- <input
  10586. type="file"
  10587. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10588. style="display: none"
  10589. @change="beforeUpload1($event, 1)"
  10590. /> -->
  10591. <input
  10592. type="file"
  10593. accept="*"
  10594. style="display: none"
  10595. @change="beforeUpload1($event, 1)"
  10596. />
  10597. </div>
  10598. <!-- capture="camera" -->
  10599. <div
  10600. class="chapter_add"
  10601. style="
  10602. display: flex;
  10603. width: 100%;
  10604. flex-direction: row;
  10605. flex-wrap: wrap;
  10606. justify-content: flex-start;
  10607. padding: 15px 0;
  10608. "
  10609. v-if="studyJuri[0].cover.length > 0"
  10610. >
  10611. <div class="upCover">
  10612. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10613. <img :src="word" alt v-else-if="fileType == 1" />
  10614. <img :src="video" alt v-else-if="fileType == 2" />
  10615. <img :src="word2" alt v-else-if="fileType == 3" />
  10616. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10617. <div class="deleteWord" @click="clean(1)">
  10618. <img src="../../assets/icon/deleteWorks.png" alt />
  10619. </div>
  10620. </div>
  10621. </div>
  10622. </div>
  10623. <div
  10624. class="upload_send"
  10625. @click="addCourseWorksTeacher(taskCount)"
  10626. v-if="!proVisible"
  10627. >
  10628. 提交
  10629. </div>
  10630. </el-dialog>
  10631. <el-dialog
  10632. title="问答"
  10633. :visible.sync="answerDialogVisibleTeacher"
  10634. :append-to-body="true"
  10635. width="800px"
  10636. :before-close="handleClose"
  10637. class="dialog_diy"
  10638. >
  10639. <div>
  10640. <div class="w_name">
  10641. 学生姓名:<span>{{ sStudent.student }}</span>
  10642. </div>
  10643. <div
  10644. style="
  10645. display: flex;
  10646. flex-wrap: nowrap;
  10647. flex-direction: column;
  10648. position: relative;
  10649. "
  10650. >
  10651. <div class="queTop" style="padding: 20px 0 20px 0">
  10652. <div class="question">
  10653. <img src="../../assets/icon/question.png" alt />
  10654. </div>
  10655. <div class="queTitle">
  10656. <div style="width: 90px; min-width: 90px">提问:</div>
  10657. <div>{{ answerQ }}</div>
  10658. </div>
  10659. </div>
  10660. <div class="ediBottom">
  10661. <textarea
  10662. rows="6"
  10663. class="binfo_input"
  10664. cols
  10665. style="width: 95%; height: 120px"
  10666. v-model="questionAnswer"
  10667. ></textarea>
  10668. </div>
  10669. </div>
  10670. </div>
  10671. <div slot="footer">
  10672. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10673. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10674. </div>
  10675. </el-dialog>
  10676. <ImgDraw
  10677. :drawShow="drawShow"
  10678. @closeDraw="closeDraw"
  10679. @addImgDraw="addImgDraw"
  10680. :bg="bg"
  10681. ></ImgDraw>
  10682. <el-dialog
  10683. title="表格"
  10684. :visible.sync="dialogVisibleTable"
  10685. :append-to-body="true"
  10686. width="95%"
  10687. :before-close="handleClose"
  10688. class="dialog_diy"
  10689. >
  10690. <el-form>
  10691. <div>表格内容</div>
  10692. <Table
  10693. v-model="tableJson.text"
  10694. @change="change"
  10695. v-if="dialogVisibleTable"
  10696. ></Table>
  10697. </el-form>
  10698. <span slot="footer" class="dialog-footer">
  10699. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10700. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10701. </span>
  10702. </el-dialog>
  10703. <el-dialog
  10704. title="表格"
  10705. :visible.sync="dialogVisibleTableTeacher"
  10706. :append-to-body="true"
  10707. width="95%"
  10708. :before-close="handleClose"
  10709. class="dialog_diy"
  10710. >
  10711. <el-form>
  10712. <div class="w_name">
  10713. 学生姓名:<span>{{ sStudent.student }}</span>
  10714. </div>
  10715. <div>表格内容</div>
  10716. <Table
  10717. v-model="tableJson.text"
  10718. @change="change"
  10719. v-if="dialogVisibleTableTeacher"
  10720. ></Table>
  10721. </el-form>
  10722. <span slot="footer" class="dialog-footer">
  10723. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10724. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10725. </span>
  10726. </el-dialog>
  10727. <el-dialog
  10728. title="文档"
  10729. :visible.sync="dialogVisibleWord"
  10730. :append-to-body="true"
  10731. width="95%"
  10732. :before-close="handleClose"
  10733. class="dialog_diy"
  10734. >
  10735. <el-form>
  10736. <div>文档内容</div>
  10737. <editor-bar
  10738. v-model="wordJson.text"
  10739. v-if="dialogVisibleWord"
  10740. ></editor-bar>
  10741. </el-form>
  10742. <span slot="footer" class="dialog-footer">
  10743. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10744. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10745. </span>
  10746. </el-dialog>
  10747. <el-dialog
  10748. title="文档"
  10749. :visible.sync="dialogVisibleWordTeacher"
  10750. :append-to-body="true"
  10751. width="95%"
  10752. :before-close="handleClose"
  10753. class="dialog_diy"
  10754. >
  10755. <el-form>
  10756. <div class="w_name">
  10757. 学生姓名:<span>{{ sStudent.student }}</span>
  10758. </div>
  10759. <div>文档内容</div>
  10760. <editor-bar
  10761. v-model="wordJson.text"
  10762. v-if="dialogVisibleWordTeacher"
  10763. ></editor-bar>
  10764. </el-form>
  10765. <span slot="footer" class="dialog-footer">
  10766. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10767. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10768. </span>
  10769. </el-dialog>
  10770. <el-dialog
  10771. title="表格"
  10772. :visible.sync="dialogVisibleTable2"
  10773. :append-to-body="true"
  10774. width="95%"
  10775. :before-close="handleClose"
  10776. class="dialog_diy"
  10777. >
  10778. <el-form>
  10779. <div class="cont" v-html="tableJson.text"></div>
  10780. </el-form>
  10781. <span slot="footer" class="dialog-footer">
  10782. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10783. </span>
  10784. </el-dialog>
  10785. <el-dialog
  10786. title="文档"
  10787. :visible.sync="dialogVisibleTable3"
  10788. :append-to-body="true"
  10789. width="95%"
  10790. :before-close="handleClose"
  10791. class="dialog_diy"
  10792. >
  10793. <el-form>
  10794. <div class="cont" v-html="tableJson.text"></div>
  10795. </el-form>
  10796. <span slot="footer" class="dialog-footer">
  10797. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10798. </span>
  10799. </el-dialog>
  10800. <el-dialog
  10801. title="分组设置"
  10802. :visible.sync="dialogVisibleGroup"
  10803. :append-to-body="true"
  10804. width="95%"
  10805. :before-close="handleClose"
  10806. class="dialog_diy"
  10807. >
  10808. <div v-if="dialogVisibleGroup">
  10809. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10810. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10811. 提示:需要锁定位置,才能点击头像修改座位。
  10812. </div>
  10813. <div
  10814. type="primary"
  10815. v-if="groupJson.islock == 1"
  10816. class="returnBtn"
  10817. style="background-color: #225bc7"
  10818. @click="lockChair"
  10819. >
  10820. 锁定位置
  10821. </div>
  10822. <div
  10823. type="primary"
  10824. v-else
  10825. class="returnBtn"
  10826. style="background-color: #225bc7"
  10827. @click="lockChair"
  10828. >
  10829. 解锁位置
  10830. </div>
  10831. <div
  10832. type="primary"
  10833. @click="updateGroup"
  10834. class="returnBtn"
  10835. style="background-color: #225bc7"
  10836. >
  10837. 分组设置
  10838. </div>
  10839. </div>
  10840. <div>
  10841. <div
  10842. class="g_d_box"
  10843. v-if="groupJson.group && groupStudent[toolindex]"
  10844. >
  10845. <div
  10846. class="g_d_group"
  10847. v-for="(g, gindex) in groupJson.group"
  10848. :key="gindex"
  10849. >
  10850. <div class="g_d_group_chair">
  10851. <div v-if="groupJson.number > 1">
  10852. <span
  10853. :class="{
  10854. isChair:
  10855. groupStudent[toolindex][gindex] &&
  10856. groupStudent[toolindex][gindex][0],
  10857. updateChair:
  10858. courseDetail.userid == userid &&
  10859. groupStudent[toolindex][gindex] &&
  10860. groupStudent[toolindex][gindex][0] &&
  10861. groupJson.islock == 2,
  10862. }"
  10863. ><span
  10864. class="updateChairBtn"
  10865. @click="
  10866. updateGroupChair(
  10867. groupStudent[toolindex][gindex] &&
  10868. groupStudent[toolindex][gindex][0]
  10869. )
  10870. "
  10871. >修改</span
  10872. ></span
  10873. ><span>{{
  10874. groupStudent[toolindex][gindex] &&
  10875. groupStudent[toolindex][gindex][0]
  10876. ? groupStudent[toolindex][gindex] &&
  10877. groupStudent[toolindex][gindex][0].name
  10878. : "空位置"
  10879. }}</span>
  10880. </div>
  10881. <div v-if="groupJson.number > 4">
  10882. <span
  10883. :class="{
  10884. isChair:
  10885. groupStudent[toolindex][gindex] &&
  10886. groupStudent[toolindex][gindex][4],
  10887. updateChair:
  10888. courseDetail.userid == userid &&
  10889. groupStudent[toolindex][gindex] &&
  10890. groupStudent[toolindex][gindex][4] &&
  10891. groupJson.islock == 2,
  10892. }"
  10893. ><span
  10894. class="updateChairBtn"
  10895. @click="
  10896. updateGroupChair(
  10897. groupStudent[toolindex][gindex] &&
  10898. groupStudent[toolindex][gindex][4]
  10899. )
  10900. "
  10901. >修改</span
  10902. ></span
  10903. ><span>{{
  10904. groupStudent[toolindex][gindex] &&
  10905. groupStudent[toolindex][gindex][4]
  10906. ? groupStudent[toolindex][gindex] &&
  10907. groupStudent[toolindex][gindex][4].name
  10908. : "空位置"
  10909. }}</span>
  10910. </div>
  10911. <div v-if="groupJson.number > 8">
  10912. <span
  10913. :class="{
  10914. isChair:
  10915. groupStudent[toolindex][gindex] &&
  10916. groupStudent[toolindex][gindex][8],
  10917. updateChair:
  10918. courseDetail.userid == userid &&
  10919. groupStudent[toolindex][gindex] &&
  10920. groupStudent[toolindex][gindex][8] &&
  10921. groupJson.islock == 2,
  10922. }"
  10923. ><span
  10924. class="updateChairBtn"
  10925. @click="
  10926. updateGroupChair(
  10927. groupStudent[toolindex][gindex] &&
  10928. groupStudent[toolindex][gindex][8]
  10929. )
  10930. "
  10931. >修改</span
  10932. ></span
  10933. ><span>{{
  10934. groupStudent[toolindex][gindex] &&
  10935. groupStudent[toolindex][gindex][8]
  10936. ? groupStudent[toolindex][gindex] &&
  10937. groupStudent[toolindex][gindex][8].name
  10938. : "空位置"
  10939. }}</span>
  10940. </div>
  10941. </div>
  10942. <div class="g_d_group_tableBox">
  10943. <div class="g_d_group_chair2">
  10944. <div v-if="groupJson.number > 2">
  10945. <span
  10946. :class="{
  10947. isChair:
  10948. groupStudent[toolindex][gindex] &&
  10949. groupStudent[toolindex][gindex][2],
  10950. updateChair:
  10951. courseDetail.userid == userid &&
  10952. groupStudent[toolindex][gindex] &&
  10953. groupStudent[toolindex][gindex][2] &&
  10954. groupJson.islock == 2,
  10955. }"
  10956. ><span
  10957. class="updateChairBtn"
  10958. @click="
  10959. updateGroupChair(
  10960. groupStudent[toolindex][gindex] &&
  10961. groupStudent[toolindex][gindex][2]
  10962. )
  10963. "
  10964. >修改</span
  10965. ></span
  10966. ><span>{{
  10967. groupStudent[toolindex][gindex] &&
  10968. groupStudent[toolindex][gindex][2]
  10969. ? groupStudent[toolindex][gindex] &&
  10970. groupStudent[toolindex][gindex][2].name
  10971. : "空位置"
  10972. }}</span>
  10973. </div>
  10974. <div v-if="groupJson.number > 6">
  10975. <span
  10976. :class="{
  10977. isChair:
  10978. groupStudent[toolindex][gindex] &&
  10979. groupStudent[toolindex][gindex][6],
  10980. updateChair:
  10981. courseDetail.userid == userid &&
  10982. groupStudent[toolindex][gindex] &&
  10983. groupStudent[toolindex][gindex][6] &&
  10984. groupJson.islock == 2,
  10985. }"
  10986. ><span
  10987. class="updateChairBtn"
  10988. @click="
  10989. updateGroupChair(
  10990. groupStudent[toolindex][gindex] &&
  10991. groupStudent[toolindex][gindex][6]
  10992. )
  10993. "
  10994. >修改</span
  10995. ></span
  10996. ><span>{{
  10997. groupStudent[toolindex][gindex] &&
  10998. groupStudent[toolindex][gindex][6]
  10999. ? groupStudent[toolindex][gindex] &&
  11000. groupStudent[toolindex][gindex][6].name
  11001. : "空位置"
  11002. }}</span>
  11003. </div>
  11004. </div>
  11005. <div class="g_d_group_table">
  11006. <div>
  11007. {{ g.name }}
  11008. </div>
  11009. <div>
  11010. <div
  11011. v-if="
  11012. courseDetail.userid == userid && groupJson.islock == 2
  11013. "
  11014. @click="deleteGroupChair(gindex)"
  11015. >
  11016. 移除组员
  11017. </div>
  11018. <div
  11019. @click="selectGroup(gindex)"
  11020. v-else-if="
  11021. groupStudentUid[toolindex] &&
  11022. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11023. "
  11024. >
  11025. 加入分组
  11026. </div>
  11027. <div
  11028. @click="
  11029. exitGroup(
  11030. groupStudent[toolindex][gindex] &&
  11031. groupStudent[toolindex][gindex][
  11032. groupStudentUid[toolindex][gindex].indexOf(userid)
  11033. ].id
  11034. )
  11035. "
  11036. v-else-if="
  11037. groupStudentUid[toolindex] &&
  11038. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11039. "
  11040. >
  11041. 退出分组
  11042. </div>
  11043. </div>
  11044. </div>
  11045. <div class="g_d_group_chair2">
  11046. <div v-if="groupJson.number > 3">
  11047. <span
  11048. :class="{
  11049. isChair:
  11050. groupStudent[toolindex][gindex] &&
  11051. groupStudent[toolindex][gindex][3],
  11052. updateChair:
  11053. courseDetail.userid == userid &&
  11054. groupStudent[toolindex][gindex] &&
  11055. groupStudent[toolindex][gindex][3] &&
  11056. groupJson.islock == 2,
  11057. }"
  11058. ><span
  11059. class="updateChairBtn"
  11060. @click="
  11061. updateGroupChair(
  11062. groupStudent[toolindex][gindex] &&
  11063. groupStudent[toolindex][gindex][3]
  11064. )
  11065. "
  11066. >修改</span
  11067. ></span
  11068. ><span>{{
  11069. groupStudent[toolindex][gindex] &&
  11070. groupStudent[toolindex][gindex][3]
  11071. ? groupStudent[toolindex][gindex] &&
  11072. groupStudent[toolindex][gindex][3].name
  11073. : "空位置"
  11074. }}</span>
  11075. </div>
  11076. <div v-if="groupJson.number > 7">
  11077. <span
  11078. :class="{
  11079. isChair:
  11080. groupStudent[toolindex][gindex] &&
  11081. groupStudent[toolindex][gindex][7],
  11082. updateChair:
  11083. courseDetail.userid == userid &&
  11084. groupStudent[toolindex][gindex] &&
  11085. groupStudent[toolindex][gindex][7] &&
  11086. groupJson.islock == 2,
  11087. }"
  11088. ><span
  11089. class="updateChairBtn"
  11090. @click="
  11091. updateGroupChair(
  11092. groupStudent[toolindex][gindex] &&
  11093. groupStudent[toolindex][gindex][7]
  11094. )
  11095. "
  11096. >修改</span
  11097. ></span
  11098. ><span>{{
  11099. groupStudent[toolindex][gindex] &&
  11100. groupStudent[toolindex][gindex][7]
  11101. ? groupStudent[toolindex][gindex] &&
  11102. groupStudent[toolindex][gindex][7].name
  11103. : "空位置"
  11104. }}</span>
  11105. </div>
  11106. </div>
  11107. </div>
  11108. <div class="g_d_group_chair">
  11109. <div v-if="groupJson.number > 1">
  11110. <span
  11111. :class="{
  11112. isChair:
  11113. groupStudent[toolindex][gindex] &&
  11114. groupStudent[toolindex][gindex][1],
  11115. updateChair:
  11116. courseDetail.userid == userid &&
  11117. groupStudent[toolindex][gindex] &&
  11118. groupStudent[toolindex][gindex][1] &&
  11119. groupJson.islock == 2,
  11120. }"
  11121. ><span
  11122. class="updateChairBtn"
  11123. @click="
  11124. updateGroupChair(
  11125. groupStudent[toolindex][gindex] &&
  11126. groupStudent[toolindex][gindex][1]
  11127. )
  11128. "
  11129. >修改</span
  11130. ></span
  11131. ><span>{{
  11132. groupStudent[toolindex][gindex] &&
  11133. groupStudent[toolindex][gindex][1]
  11134. ? groupStudent[toolindex][gindex] &&
  11135. groupStudent[toolindex][gindex][1].name
  11136. : "空位置"
  11137. }}</span>
  11138. </div>
  11139. <div v-if="groupJson.number > 5">
  11140. <span
  11141. :class="{
  11142. isChair:
  11143. groupStudent[toolindex][gindex] &&
  11144. groupStudent[toolindex][gindex][5],
  11145. updateChair:
  11146. courseDetail.userid == userid &&
  11147. groupStudent[toolindex][gindex] &&
  11148. groupStudent[toolindex][gindex][5] &&
  11149. groupJson.islock == 2,
  11150. }"
  11151. ><span
  11152. class="updateChairBtn"
  11153. @click="
  11154. updateGroupChair(
  11155. groupStudent[toolindex][gindex] &&
  11156. groupStudent[toolindex][gindex][5]
  11157. )
  11158. "
  11159. >修改</span
  11160. ></span
  11161. ><span>{{
  11162. groupStudent[toolindex][gindex] &&
  11163. groupStudent[toolindex][gindex][5]
  11164. ? groupStudent[toolindex][gindex] &&
  11165. groupStudent[toolindex][gindex][5].name
  11166. : "空位置"
  11167. }}</span>
  11168. </div>
  11169. <div v-if="groupJson.number > 9">
  11170. <span
  11171. :class="{
  11172. isChair:
  11173. groupStudent[toolindex][gindex] &&
  11174. groupStudent[toolindex][gindex][9],
  11175. updateChair:
  11176. courseDetail.userid == userid &&
  11177. groupStudent[toolindex][gindex] &&
  11178. groupStudent[toolindex][gindex][9] &&
  11179. groupJson.islock == 2,
  11180. }"
  11181. ><span
  11182. class="updateChairBtn"
  11183. @click="
  11184. updateGroupChair(
  11185. groupStudent[toolindex][gindex] &&
  11186. groupStudent[toolindex][gindex][9]
  11187. )
  11188. "
  11189. >修改</span
  11190. ></span
  11191. ><span>{{
  11192. groupStudent[toolindex][gindex] &&
  11193. groupStudent[toolindex][gindex][9]
  11194. ? groupStudent[toolindex][gindex] &&
  11195. groupStudent[toolindex][gindex][9].name
  11196. : "空位置"
  11197. }}</span>
  11198. </div>
  11199. </div>
  11200. </div>
  11201. </div>
  11202. </div>
  11203. </div>
  11204. <span slot="footer" class="dialog-footer">
  11205. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11206. </span>
  11207. </el-dialog>
  11208. <el-dialog
  11209. title="分组设置"
  11210. :visible.sync="dialogVisibleGroup2"
  11211. :append-to-body="true"
  11212. width="650px"
  11213. :before-close="handleClose"
  11214. class="dialog_diy"
  11215. >
  11216. <div class="groupBox">
  11217. <div v-if="groupJson2.group" class="groupContent">
  11218. <div class="groupTitle">请设置小组数量</div>
  11219. <div
  11220. v-for="(item, index) in groupJson2.group"
  11221. :key="index"
  11222. class="groupName"
  11223. >
  11224. <span class="groupn">组{{ index + 1 }}名称:</span>
  11225. <el-input
  11226. v-model="item.name"
  11227. placeholder="请输入名称..."
  11228. style="width: 250px"
  11229. ></el-input>
  11230. <!-- <div class="groupBtn">
  11231. <el-button type="primary" size="small" @click="addGroup(index)">
  11232. 添加</el-button>
  11233. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11234. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11235. </div> -->
  11236. </div>
  11237. </div>
  11238. <div class="groupContent">
  11239. <div class="groupTitle">请设置每组人数数量</div>
  11240. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11241. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11242. <el-input-number
  11243. v-model="groupJson2.number"
  11244. :controls="false"
  11245. :min="2"
  11246. :max="10"
  11247. placeholder="2-10人以内"
  11248. ></el-input-number>
  11249. </div>
  11250. </div>
  11251. <span slot="footer" class="dialog-footer">
  11252. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11253. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11254. </span>
  11255. </el-dialog>
  11256. <el-dialog
  11257. title="作业提交"
  11258. :visible.sync="dialogVisibleGroupWork"
  11259. :append-to-body="true"
  11260. width="500px"
  11261. :before-close="handleClose"
  11262. class="dialog_change"
  11263. >
  11264. <div class="marginT">
  11265. <div>上传文件</div>
  11266. <div
  11267. class="chapter_add"
  11268. @click="addImg($event)"
  11269. v-if="studyJuri[0].cover.length == 0"
  11270. >
  11271. <div class="up_photo">
  11272. <img src="../../assets/icon/uploadImg.png" alt />
  11273. </div>
  11274. <!-- <input
  11275. type="file"
  11276. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11277. style="display: none"
  11278. @change="beforeUpload1($event, 1)"
  11279. /> -->
  11280. <input
  11281. type="file"
  11282. accept="*"
  11283. style="display: none"
  11284. @change="beforeUpload1($event, 1)"
  11285. />
  11286. </div>
  11287. <!-- capture="camera" -->
  11288. <div
  11289. class="chapter_add"
  11290. style="
  11291. display: flex;
  11292. width: 100%;
  11293. flex-direction: row;
  11294. flex-wrap: wrap;
  11295. justify-content: flex-start;
  11296. padding: 15px 0;
  11297. "
  11298. v-if="studyJuri[0].cover.length > 0"
  11299. >
  11300. <div class="upCover">
  11301. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11302. <img :src="word" alt v-else-if="fileType == 1" />
  11303. <img :src="video" alt v-else-if="fileType == 2" />
  11304. <img :src="word2" alt v-else-if="fileType == 3" />
  11305. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11306. <div class="deleteWord" @click="clean(1)">
  11307. <img src="../../assets/icon/deleteWorks.png" alt />
  11308. </div>
  11309. </div>
  11310. </div>
  11311. </div>
  11312. <div
  11313. class="upload_send"
  11314. @click="addCourseWorks2(taskCount)"
  11315. v-if="!proVisible"
  11316. >
  11317. 提交
  11318. </div>
  11319. </el-dialog>
  11320. <el-dialog
  11321. title="修改分组"
  11322. :visible.sync="dialogVisibleUpdateGroup"
  11323. :append-to-body="true"
  11324. width="350px"
  11325. :before-close="handleClose"
  11326. class="dialog_diy"
  11327. >
  11328. <div>
  11329. <h2>
  11330. {{ this.updateGroupUser.name }}
  11331. </h2>
  11332. <div style="color: rgb(171 171 171); margin-top: 10px">
  11333. 请选择要进入的分组
  11334. </div>
  11335. <el-radio-group v-model="checkChair">
  11336. <el-radio
  11337. style="display: block; margin-top: 20px"
  11338. v-for="(item, index) in updateGroupArray"
  11339. :label="item.label"
  11340. :key="index"
  11341. >{{ item.name }}</el-radio
  11342. >
  11343. </el-radio-group>
  11344. </div>
  11345. <span slot="footer" class="dialog-footer">
  11346. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11347. <el-button type="primary" @click="updateChair">确定</el-button>
  11348. </span>
  11349. </el-dialog>
  11350. <el-dialog
  11351. title="移除组员"
  11352. :visible.sync="dialogVisibleDeleteGroup"
  11353. :append-to-body="true"
  11354. width="350px"
  11355. :before-close="handleClose"
  11356. class="dialog_diy"
  11357. >
  11358. <div>
  11359. <h2>
  11360. {{ this.deleteGroupArray.name }}
  11361. </h2>
  11362. <div style="color: rgb(171 171 171); margin-top: 10px">
  11363. 请选择要删除的组员
  11364. </div>
  11365. <el-checkbox-group v-model="checkDeleteGroup">
  11366. <el-checkbox
  11367. style="display: block; margin-top: 20px"
  11368. v-for="(item, index) in deleteGroupUser"
  11369. :label="item.userid"
  11370. :key="index"
  11371. >{{ item.name }}</el-checkbox
  11372. >
  11373. </el-checkbox-group>
  11374. </div>
  11375. <span slot="footer" class="dialog-footer">
  11376. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11377. <el-button type="primary" @click="deleteChair">确定</el-button>
  11378. </span>
  11379. </el-dialog>
  11380. <el-dialog
  11381. title="批量上传"
  11382. :visible.sync="dialogVisiblePl"
  11383. :append-to-body="true"
  11384. width="700px"
  11385. :before-close="handleClose"
  11386. class="dialog_change"
  11387. >
  11388. <div class="marginT">
  11389. <div class="plworkBox">
  11390. <div
  11391. class="chapter_add"
  11392. style="
  11393. display: flex;
  11394. width: 150px;
  11395. flex-direction: row;
  11396. flex-wrap: wrap;
  11397. justify-content: flex-start;
  11398. margin: 0 10px 10px 0;
  11399. "
  11400. v-for="(item, index) in plworkFile"
  11401. :key="index"
  11402. >
  11403. <div class="upCover2">
  11404. <img
  11405. :src="item.url"
  11406. alt
  11407. v-if="item.fileType == 1"
  11408. @click="previewImg(item.url)"
  11409. />
  11410. <img :src="word" alt v-else-if="item.fileType == 4" />
  11411. <img :src="video" alt v-else />
  11412. <!-- <span class="picName">{{ item.name }}</span> -->
  11413. <!-- <el-input
  11414. v-model="item.username"
  11415. placeholder="请输入学生名字"
  11416. style="margin-top: 10px"
  11417. ></el-input> -->
  11418. <div
  11419. class="pl_select_box"
  11420. @click="
  11421. getUpdateMore(true, checkUpload(), item.username, index)
  11422. "
  11423. >
  11424. {{ getSName(item.username) }}
  11425. </div>
  11426. <!-- <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  11427. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  11428. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  11429. </el-option>
  11430. </el-select> -->
  11431. <div class="deleteWord" @click="clean2(index)">
  11432. <img src="../../assets/icon/deleteWorks.png" alt />
  11433. </div>
  11434. </div>
  11435. </div>
  11436. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11437. <div class="up_photo2">
  11438. <img src="../../assets/icon/plwork.png" alt />
  11439. <span>点击上传文件</span>
  11440. </div>
  11441. <input
  11442. type="file"
  11443. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11444. multiple="multiple"
  11445. style="display: none"
  11446. @change="beforeUpload3($event, 6)"
  11447. />
  11448. </div>
  11449. </div>
  11450. </div>
  11451. <!-- capture="camera" -->
  11452. <div
  11453. class="upload_send"
  11454. @click="addCourseWorksPl(taskCount)"
  11455. v-if="!proVisible2"
  11456. >
  11457. 提交
  11458. </div>
  11459. </el-dialog>
  11460. <el-dialog
  11461. title="修改名称"
  11462. :visible.sync="dialogVisibleSname"
  11463. width="500px"
  11464. :before-close="handleClose"
  11465. class="dialog_diy"
  11466. center
  11467. >
  11468. <div
  11469. style="
  11470. text-align: center;
  11471. display: flex;
  11472. align-items: center;
  11473. justify-content: center;
  11474. "
  11475. >
  11476. <span class="tian1">名称</span>
  11477. <div
  11478. class="pl_select_box"
  11479. style="margin-left: 10px; width: 200px"
  11480. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11481. >
  11482. {{ getSName(worksSName) }}
  11483. </div>
  11484. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11485. placeholder="请选择学生">
  11486. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11487. :value="item.userid">
  11488. </el-option>
  11489. </el-select> -->
  11490. <!-- <el-input
  11491. v-model="worksSName"
  11492. style="width: 250px; margin: 15px 0px"
  11493. ></el-input> -->
  11494. </div>
  11495. <span slot="footer" class="dialog-footer">
  11496. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11497. <el-button type="primary" @click="updateName">确 定</el-button>
  11498. </span>
  11499. </el-dialog>
  11500. <interVideo
  11501. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11502. :videoJson="videoJson"
  11503. :userid="userid"
  11504. :id="id"
  11505. :courseType="courseType"
  11506. :taskCount="taskCount"
  11507. :toolindex="toolindex"
  11508. ></interVideo>
  11509. <UpdateMore
  11510. :dialogVisibleMember.sync="dialogVisibleMember"
  11511. :cList="uploadStudentJuri"
  11512. :userid="userid"
  11513. :searchTN="worksSName2"
  11514. @setPlname="setPlname"
  11515. ></UpdateMore>
  11516. </div>
  11517. </template>
  11518. <script>
  11519. import "../../common/aws-sdk-2.235.1.min.js";
  11520. // import pdf from "../components/pdf3";
  11521. import pdf from "../components/vpdf";
  11522. import AskStatic from "../components/askStatic";
  11523. import AskStatic2 from "../components/askStatic2";
  11524. import AnswerData2 from "../components/answerData2";
  11525. import AnswerData from "../components/answerData";
  11526. import EditorBar from "../tools/wangEnduit.vue";
  11527. import Table from "../tools/table.vue";
  11528. import Time from "../tools/time.vue";
  11529. import Mind from "../tools/jsmind.vue";
  11530. import Sunburst from "../tools/sunburst";
  11531. import SeeBoard from "../tools/seeBoard";
  11532. import * as imageConversion from "image-conversion";
  11533. import Audio from "../components/audio.vue";
  11534. import ImgDraw from "../tools/imgDraw/imgDraw";
  11535. import { Empty } from "element-ui";
  11536. import RecordRTC from "recordrtc";
  11537. import interVideo from "../interVideo/index.vue";
  11538. import UpdateMore from "../updateMore/updateMore.vue";
  11539. export default {
  11540. components: {
  11541. EditorBar,
  11542. Time,
  11543. pdf,
  11544. AskStatic,
  11545. AskStatic2,
  11546. Mind,
  11547. Sunburst,
  11548. SeeBoard,
  11549. AnswerData2,
  11550. AnswerData,
  11551. Audio,
  11552. ImgDraw,
  11553. Table,
  11554. interVideo,
  11555. UpdateMore,
  11556. },
  11557. data() {
  11558. return {
  11559. bg: null,
  11560. drawShow: false,
  11561. dialogVisible: false,
  11562. dialogVisiblePl: false,
  11563. commentDialogVisible: false,
  11564. videoVisible: false,
  11565. isStar: false,
  11566. studentEvalDialogVisible: false,
  11567. studentEvalDialogVisibleTeacher: false,
  11568. dialogVisibleSelect: false,
  11569. dialogVisibleSelectTeacher: false,
  11570. dialogVisibleScore: false,
  11571. dialogVisibleSentence: false,
  11572. dialogVisibleSentenceTeacher: false,
  11573. dialogVisibleSentence1: false,
  11574. dialogVisibleWorks: false,
  11575. answerDialogVisibleTeacher: false,
  11576. dialogVisibleTable: false,
  11577. dialogVisibleTableTeacher: false,
  11578. dialogVisibleWord: false,
  11579. dialogVisibleWordTeacher: false,
  11580. dialogVisibleTable2: false,
  11581. dialogVisibleTable3: false,
  11582. dialogVisibleGroupWork: false,
  11583. dialogVisibleUpdateGroup: false,
  11584. dialogVisibleDeleteGroup: false,
  11585. dialogVisibleSname: false,
  11586. dialogVisibleVideo: false,
  11587. worksSName: "",
  11588. classJuri: [],
  11589. uploadStudentJuri: [],
  11590. uploadCid: "",
  11591. snameWid: "",
  11592. sStudent: {},
  11593. sTool: "",
  11594. bzText: "",
  11595. commentDetail: [],
  11596. selectAnswer: [],
  11597. videoDetail: {},
  11598. selectJson: {},
  11599. eScore: { eBzText: "", eStar: [] },
  11600. id: this.$route.query.courseId,
  11601. userid: this.$route.query.userid,
  11602. classId: this.$route.query.cid,
  11603. // courseTypeLine: this.$route.query.type,
  11604. oid: this.$route.query.oid,
  11605. org: this.$route.query.org,
  11606. tType: this.$route.query.tType,
  11607. courseType: this.$route.query.type,
  11608. screenType: this.$route.query.screenType,
  11609. tcid2: this.$route.query.tcid,
  11610. tcid: "",
  11611. pptImgUrl: "",
  11612. pptImgUrl1: "",
  11613. commentText: "",
  11614. full: false,
  11615. sIsOpen: false,
  11616. IsLookOpen: false,
  11617. IsFollow: false,
  11618. pzDialog: false,
  11619. contentDialog: false,
  11620. mlDialog: false,
  11621. type: 1,
  11622. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11623. sentenceList1: [],
  11624. tableJson: [],
  11625. wordJson: [],
  11626. vedio: [],
  11627. text: [],
  11628. textList: [],
  11629. line: [],
  11630. lineList: [],
  11631. chapTools: [],
  11632. chapToolList: [],
  11633. file: [],
  11634. fileC: [],
  11635. vedioTime: [],
  11636. upToolImg: "",
  11637. preTime: 0,
  11638. rateList: {
  11639. ca: 0,
  11640. },
  11641. rateParams: [],
  11642. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11643. studyJuri: [
  11644. {
  11645. content: "",
  11646. cover: [],
  11647. upVedio: [],
  11648. upFile: [],
  11649. },
  11650. ],
  11651. plworkFile: [],
  11652. mr: require("../../assets/vedioPic.png"),
  11653. word: require("../../assets/icon/isWord.png"),
  11654. word2: require("../../assets/icon/word2.png"),
  11655. video: require("../../assets/icon/isVideo.png"),
  11656. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11657. likes: require("../../assets/icon/comment/likes.png"),
  11658. scoreImg: require("../../assets/score.png"),
  11659. courseDetail: {},
  11660. isSelect: false,
  11661. chapInfo: [],
  11662. chapInfoList: [],
  11663. taskCount: 0,
  11664. imgList: [],
  11665. noImgList: [],
  11666. pzList: [],
  11667. PlTextList: [
  11668. "Excellent!",
  11669. "nice!",
  11670. "很有创意!",
  11671. "还不错哦~",
  11672. "继续努力哦~",
  11673. ],
  11674. isClickNav: "",
  11675. navId: "",
  11676. playerOptions: {
  11677. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11678. autoplay: false, //如果true,浏览器准备好时开始回放。
  11679. muted: false, // 默认情况下将会消除任何音频。
  11680. loop: false, // 导致视频一结束就重新开始。
  11681. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11682. language: "zh-CN",
  11683. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11684. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11685. sources: [
  11686. {
  11687. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11688. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11689. },
  11690. ],
  11691. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11692. // poster: dataRes.imgUrl, //你的封面地址
  11693. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11694. controlBar: {
  11695. timeDivider: true, //当前时间和持续时间的分隔符
  11696. durationDisplay: true, //显示持续时间
  11697. remainingTimeDisplay: false, //是否显示剩余时间功能
  11698. fullscreenToggle: true, //全屏按钮
  11699. },
  11700. },
  11701. playerOptions1: {
  11702. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11703. autoplay: false, //如果true,浏览器准备好时开始回放。
  11704. muted: false, // 默认情况下将会消除任何音频。
  11705. loop: false, // 导致视频一结束就重新开始。
  11706. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11707. language: "zh-CN",
  11708. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11709. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11710. sources: [
  11711. {
  11712. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11713. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11714. },
  11715. ],
  11716. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11717. // poster: dataRes.imgUrl, //你的封面地址
  11718. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11719. controlBar: {
  11720. timeDivider: true, //当前时间和持续时间的分隔符
  11721. durationDisplay: true, //显示持续时间
  11722. remainingTimeDisplay: false, //是否显示剩余时间功能
  11723. fullscreenToggle: true, //全屏按钮
  11724. },
  11725. },
  11726. playerO: {},
  11727. noneBtnImg: false,
  11728. proVisible: false,
  11729. proVisible2: false,
  11730. progress: 0,
  11731. isFinishSize: 0,
  11732. isAllSize: 0,
  11733. questionAnswer: "",
  11734. answerQ: "", //问答标题
  11735. rateJson: [],
  11736. wbCount: 0,
  11737. wordCount: 0,
  11738. mindCount: 0,
  11739. askCount: 0,
  11740. noteCount: 0,
  11741. mindNetWorkCount: 0,
  11742. libraryCount: 0,
  11743. workCount: 0,
  11744. timeCount: 0,
  11745. answerCount: 0,
  11746. trainCount: 0,
  11747. evalCount: 0,
  11748. dialogImageUrl: "",
  11749. pictureDialog: false,
  11750. toolTypeList: [],
  11751. dialogVisible1: false,
  11752. dialogVisible2: false,
  11753. dialogVisible3: false,
  11754. dialogVisible6: false,
  11755. dialogVisible4: false,
  11756. isNoHomeWork: false,
  11757. dialogVisible5: false,
  11758. dialogVisible5Teacher: false,
  11759. dialogVisibleChoice: false,
  11760. dialogVisibleChoiceTeacher: false,
  11761. answerDialogVisible: false,
  11762. juriVisible: false,
  11763. timeDialogVisible: false,
  11764. radio: [],
  11765. isAsk: false,
  11766. askJson: {
  11767. askCount: 1,
  11768. askTitle: "",
  11769. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11770. },
  11771. testJson: {},
  11772. checkJson: [],
  11773. askList: [],
  11774. answerList: [],
  11775. navList: [],
  11776. addPzDialog: false,
  11777. ispzType: 1,
  11778. pzConText: "",
  11779. worksStudent: [],
  11780. worksStudent2: [],
  11781. worksTeacher: [],
  11782. isCloseList: [],
  11783. workStudent: [],
  11784. groupStudent: [],
  11785. groupStudentUid: [],
  11786. noWorksS: [],
  11787. isWorksS: [],
  11788. noWorksStudent: [],
  11789. toolindex: 0,
  11790. groupIndex: 0,
  11791. workTypeB: false,
  11792. workTypeC: false,
  11793. isAnswer: false,
  11794. timer: null,
  11795. opertimer: null,
  11796. showType: 0,
  11797. fileType: 0,
  11798. showPDF: false,
  11799. noteName: "",
  11800. evaJuri: [],
  11801. evalua: "",
  11802. eTitle: "",
  11803. eName: "",
  11804. eJson: {},
  11805. fid: "", //一级
  11806. sid: "", //二级
  11807. tid: "", //二级
  11808. typeMode: 1,
  11809. eJSONNum: 0,
  11810. Etype: 1,
  11811. data: {
  11812. meta: {
  11813. name: "example",
  11814. author: "dd@163.com",
  11815. version: "0.2",
  11816. },
  11817. format: "node_array",
  11818. data: [{ id: "root", isroot: true, topic: "" }],
  11819. },
  11820. fullDialogVisible: false,
  11821. fulltype: "",
  11822. fullUrl: "",
  11823. commentIndexJson: {},
  11824. Stbodywidth: 0,
  11825. pzType: 1,
  11826. wScore: 0,
  11827. scoreDetail: "",
  11828. videoStart: false,
  11829. recorder: null,
  11830. groupJson: {},
  11831. groupJson2: {},
  11832. dialogVisibleGroup: false,
  11833. dialogVisibleGroup2: false,
  11834. updateGroupArray: [],
  11835. updateGroupUser: {},
  11836. deleteGroupUser: [],
  11837. deleteGroupArray: {},
  11838. checkChair: "",
  11839. checkDeleteGroup: [],
  11840. inviteCode: "",
  11841. courseGroupStudent: [],
  11842. courseGroupStudentUid: [],
  11843. courseGroup: {},
  11844. isGroup: false,
  11845. toolIndex: null,
  11846. tool: {},
  11847. isWorkTool: [
  11848. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11849. ], //, 40
  11850. videoJson: {},
  11851. toolType: 1,
  11852. checktoolArray: [],
  11853. vChapterData: [],
  11854. isUpdateToolDetail: false,
  11855. updateToolDetailInner: "",
  11856. plIndex: "",
  11857. worksSName2: "",
  11858. worksSid: "",
  11859. };
  11860. },
  11861. methods: {
  11862. jump() {
  11863. window.parent.postMessage({ tools: "43" }, "*");
  11864. },
  11865. getUpdateMore(f, checkboxList, searchTN, index) {
  11866. this.dialogVisibleMember = f;
  11867. this.checkboxList = checkboxList;
  11868. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  11869. this.plIndex = index;
  11870. },
  11871. setPlname(a) {
  11872. if (this.plworkFile.length) {
  11873. this.plworkFile[this.plIndex].username = a;
  11874. } else {
  11875. this.worksSName = a;
  11876. }
  11877. this.dialogVisibleMember = false;
  11878. },
  11879. previewImg(url) {
  11880. this.$hevueImgPreview(url);
  11881. },
  11882. checkImg(list){
  11883. if(!list.length){
  11884. return
  11885. }
  11886. this.$hevueImgPreview({
  11887. multiple: true, // 开启多图预览模式
  11888. imgList: list, // 需要预览的多图数组
  11889. })
  11890. },
  11891. change(val) {
  11892. console.log(val);
  11893. },
  11894. goTo(path) {
  11895. this.$router.push(path);
  11896. },
  11897. handlePictureCardPreview(url) {
  11898. this.dialogImageUrl = url;
  11899. this.pictureDialog = true;
  11900. },
  11901. clean(type) {
  11902. if (type == 1) {
  11903. this.studyJuri[0].cover.splice(0, 1);
  11904. } else if (type == 2) {
  11905. this.studyJuri[0].upVedio.splice(0, 1);
  11906. } else {
  11907. this.studyJuri[0].upFile.splice(0, 1);
  11908. }
  11909. },
  11910. clean2(index) {
  11911. this.plworkFile.splice(index, 1);
  11912. },
  11913. handleClose(done) {
  11914. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  11915. this.videoDetail.sources[0].src = "";
  11916. }
  11917. this.commentIndexJson = {};
  11918. done();
  11919. },
  11920. fullTools() {
  11921. this.full = !this.full;
  11922. },
  11923. imgChange(file, fileList, type) {
  11924. if (type == 1) {
  11925. var _tmp = this.studyJuri[0].cover;
  11926. } else if (type == 2) {
  11927. var _tmp = this.studyJuri[0].upVedio;
  11928. } else {
  11929. var _tmp = this.studyJuri[0].upFile;
  11930. }
  11931. this.noneBtnImg = _tmp.length >= 1;
  11932. },
  11933. setContent(bool) {
  11934. this.contentDialog = bool;
  11935. if (bool && this.mlDialog) {
  11936. document.querySelector(".workd_media").style.height = "650px";
  11937. } else {
  11938. document.querySelector(".workd_media").style.height = "auto";
  11939. }
  11940. },
  11941. setContent2(bool) {
  11942. this.mlDialog = bool;
  11943. if (bool && this.contentDialog) {
  11944. document.querySelector(".workd_media").style.height = "650px";
  11945. } else {
  11946. document.querySelector(".workd_media").style.height = "auto";
  11947. }
  11948. },
  11949. addImg(e) {
  11950. var el = e.currentTarget;
  11951. // this.$message.success('触发上传')
  11952. el.getElementsByTagName("input")[0].click();
  11953. e.target.value = "";
  11954. },
  11955. addSelectAnswer() {
  11956. let params = [
  11957. {
  11958. uid: this.userid,
  11959. cid: this.id,
  11960. stage: this.courseType,
  11961. task: this.taskCount,
  11962. tool: this.toolindex,
  11963. content: this.selectAnswer.answer,
  11964. type: 7,
  11965. },
  11966. ];
  11967. this.ajax
  11968. .post(this.$store.state.api + "addCourseWorks", params)
  11969. .then((res) => {
  11970. this.$message({
  11971. message: "提交成功",
  11972. type: "success",
  11973. });
  11974. this.dialogVisibleSelect = false;
  11975. // this.selectAnswer = {};
  11976. this.selectSWorks();
  11977. this.selectStudent();
  11978. })
  11979. .catch((err) => {
  11980. this.$message.error("提交失败");
  11981. console.error(err);
  11982. });
  11983. },
  11984. addSelectAnswerTeacher() {
  11985. let params = [
  11986. {
  11987. uid: this.sStudent.userid,
  11988. cid: this.id,
  11989. stage: this.courseType,
  11990. task: this.taskCount,
  11991. tool: this.toolindex,
  11992. content: this.selectAnswer.answer,
  11993. type: 7,
  11994. },
  11995. ];
  11996. this.ajax
  11997. .post(this.$store.state.api + "addCourseWorks", params)
  11998. .then((res) => {
  11999. this.$message({
  12000. message: "提交成功",
  12001. type: "success",
  12002. });
  12003. this.dialogVisibleSelectTeacher = false;
  12004. // this.selectAnswer = {};
  12005. this.selectSWorks();
  12006. this.selectStudent();
  12007. })
  12008. .catch((err) => {
  12009. this.$message.error("提交失败");
  12010. console.error(err);
  12011. });
  12012. },
  12013. addSenWorks() {
  12014. for (var i = 0; i < this.sentenceList.length; i++) {
  12015. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12016. if (
  12017. this.sentenceList[i].chooseSenList[j] == undefined ||
  12018. this.sentenceList[i].chooseSenList[j] == ""
  12019. ) {
  12020. this.$message.error("请将答案填写完整!");
  12021. return;
  12022. }
  12023. }
  12024. }
  12025. let params = [
  12026. {
  12027. uid: this.userid,
  12028. cid: this.id,
  12029. stage: this.courseType,
  12030. task: this.taskCount,
  12031. tool: this.toolindex,
  12032. content: JSON.stringify(this.sentenceList),
  12033. type: 9,
  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.dialogVisibleSentence = 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. addSenWorksTeacher() {
  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.sStudent.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.dialogVisibleSentenceTeacher = 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. addTableWorks() {
  12094. let params = [
  12095. {
  12096. uid: this.userid,
  12097. cid: this.id,
  12098. stage: this.courseType,
  12099. task: this.taskCount,
  12100. tool: this.toolindex,
  12101. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12102. type: 10,
  12103. },
  12104. ];
  12105. this.ajax
  12106. .post(this.$store.state.api + "addCourseWorks", params)
  12107. .then((res) => {
  12108. this.$message({
  12109. message: "提交成功",
  12110. type: "success",
  12111. });
  12112. this.dialogVisibleTable = false;
  12113. // this.selectAnswer = {};
  12114. this.selectSWorks();
  12115. this.selectStudent();
  12116. })
  12117. .catch((err) => {
  12118. this.$message.error("提交失败");
  12119. console.error(err);
  12120. });
  12121. },
  12122. addTableWorksTeacher() {
  12123. let params = [
  12124. {
  12125. uid: this.sStudent.userid,
  12126. cid: this.id,
  12127. stage: this.courseType,
  12128. task: this.taskCount,
  12129. tool: this.toolindex,
  12130. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12131. type: 10,
  12132. },
  12133. ];
  12134. this.ajax
  12135. .post(this.$store.state.api + "addCourseWorks", params)
  12136. .then((res) => {
  12137. this.$message({
  12138. message: "提交成功",
  12139. type: "success",
  12140. });
  12141. this.dialogVisibleTableTeacher = false;
  12142. // this.selectAnswer = {};
  12143. this.selectSWorks();
  12144. this.selectStudent();
  12145. })
  12146. .catch((err) => {
  12147. this.$message.error("提交失败");
  12148. console.error(err);
  12149. });
  12150. },
  12151. addWordWorks() {
  12152. let params = [
  12153. {
  12154. uid: this.userid,
  12155. cid: this.id,
  12156. stage: this.courseType,
  12157. task: this.taskCount,
  12158. tool: this.toolindex,
  12159. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12160. type: 13,
  12161. atool: 52,
  12162. },
  12163. ];
  12164. console.log(params);
  12165. this.ajax
  12166. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12167. .then((res) => {
  12168. this.$message({
  12169. message: "提交成功",
  12170. type: "success",
  12171. });
  12172. this.dialogVisibleWord = false;
  12173. // this.selectAnswer = {};
  12174. this.selectSWorks();
  12175. this.selectStudent();
  12176. })
  12177. .catch((err) => {
  12178. this.$message.error("提交失败");
  12179. console.error(err);
  12180. });
  12181. },
  12182. addWordWorksTeacher() {
  12183. let params = [
  12184. {
  12185. uid: this.sStudent.userid,
  12186. cid: this.id,
  12187. stage: this.courseType,
  12188. task: this.taskCount,
  12189. tool: this.toolindex,
  12190. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12191. type: 13,
  12192. atool: 52,
  12193. },
  12194. ];
  12195. console.log(params);
  12196. this.ajax
  12197. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12198. .then((res) => {
  12199. this.$message({
  12200. message: "提交成功",
  12201. type: "success",
  12202. });
  12203. this.dialogVisibleWordTeacher = false;
  12204. // this.selectAnswer = {};
  12205. this.selectSWorks();
  12206. this.selectStudent();
  12207. })
  12208. .catch((err) => {
  12209. this.$message.error("提交失败");
  12210. console.error(err);
  12211. });
  12212. },
  12213. addCourseWorks(i) {
  12214. var typesql;
  12215. if (this.fileType === 0) {
  12216. typesql = 1;
  12217. } else if (this.fileType === 1) {
  12218. typesql = 4;
  12219. } else if (this.fileType === 2) {
  12220. typesql = 5;
  12221. } else if (this.fileType === 3) {
  12222. typesql = 12;
  12223. }
  12224. if (!this.studyJuri[0].cover[0].url) {
  12225. this.$message.error("请上传文件");
  12226. return;
  12227. }
  12228. let params = [
  12229. {
  12230. uid: this.userid,
  12231. cid: this.id,
  12232. stage: this.courseType,
  12233. task: i,
  12234. tool: this.toolindex,
  12235. content: this.studyJuri[0].cover[0].url,
  12236. type: typesql,
  12237. },
  12238. ];
  12239. this.ajax
  12240. .post(this.$store.state.api + "addCourseWorksR", params)
  12241. .then((res) => {
  12242. this.$message({
  12243. message: "提交成功",
  12244. type: "success",
  12245. });
  12246. this.studyJuri[0].cover = [];
  12247. this.dialogVisible = false;
  12248. this.getCourseDetail();
  12249. })
  12250. .catch((err) => {
  12251. this.$message.error("提交失败");
  12252. console.error(err);
  12253. });
  12254. },
  12255. addCourseWorksPl(i) {
  12256. let _files = this.plworkFile;
  12257. var c = 1;
  12258. for (var k = 0; k < _files.length; k++) {
  12259. if (!_files[k].username) {
  12260. c = 2;
  12261. }
  12262. }
  12263. if (c == 2) {
  12264. this.$message.error("请填写学生姓名");
  12265. return;
  12266. }
  12267. let params = [
  12268. {
  12269. ateacher: this.userid,
  12270. cid: this.id,
  12271. stage: this.courseType,
  12272. task: i,
  12273. tool: this.toolindex,
  12274. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12275. },
  12276. ];
  12277. this.ajax
  12278. .post(this.$store.state.api + "addCourseWorksPl", params)
  12279. .then((res) => {
  12280. this.$message({
  12281. message: "提交成功",
  12282. type: "success",
  12283. });
  12284. this.plworkFile = [];
  12285. this.dialogVisiblePl = false;
  12286. this.getCourseDetail();
  12287. })
  12288. .catch((err) => {
  12289. this.$message.error("提交失败");
  12290. console.error(err);
  12291. });
  12292. },
  12293. addCourseWorks2(i) {
  12294. var typesql;
  12295. if (this.fileType === 0) {
  12296. typesql = 0;
  12297. } else if (this.fileType === 1) {
  12298. typesql = 1;
  12299. } else if (this.fileType === 2) {
  12300. typesql = 3;
  12301. } else if (this.fileType === 3) {
  12302. typesql = 12;
  12303. }
  12304. if (!this.studyJuri[0].cover[0].url) {
  12305. this.$message.error("请上传文件");
  12306. return;
  12307. }
  12308. let params = [
  12309. {
  12310. uid: this.userid,
  12311. cid: this.id,
  12312. stage: this.courseType,
  12313. task: i,
  12314. tool: this.toolindex,
  12315. content: JSON.stringify({
  12316. type: typesql,
  12317. groupIndex: this.groupIndex,
  12318. url: this.studyJuri[0].cover[0].url,
  12319. }).replaceAll(/%/g, "%25"),
  12320. type: 11,
  12321. atool: 49,
  12322. text: "",
  12323. },
  12324. ];
  12325. this.ajax
  12326. .post(this.$store.state.api + "addCourseWorks5", params)
  12327. .then((res) => {
  12328. this.$message({
  12329. message: "提交成功",
  12330. type: "success",
  12331. });
  12332. this.studyJuri[0].cover = [];
  12333. this.dialogVisibleGroupWork = false;
  12334. this.getCourseDetail();
  12335. })
  12336. .catch((err) => {
  12337. this.$message.error("提交失败");
  12338. console.error(err);
  12339. });
  12340. },
  12341. addCourseWorksGong(i, data, tool) {
  12342. let params = [
  12343. {
  12344. uid: this.userid,
  12345. cid: this.id,
  12346. stage: this.courseType,
  12347. task: this.taskCount,
  12348. tool: i,
  12349. content: data,
  12350. type: 12,
  12351. atool: tool,
  12352. text: "",
  12353. },
  12354. ];
  12355. this.ajax
  12356. .post(this.$store.state.api + "addCourseWorks5", params)
  12357. .then((res) => {
  12358. this.$message({
  12359. message: "提交成功",
  12360. type: "success",
  12361. });
  12362. this.studyJuri[0].cover = [];
  12363. this.selectSWorks();
  12364. this.selectStudent();
  12365. })
  12366. .catch((err) => {
  12367. this.$message.error("提交失败");
  12368. console.error(err);
  12369. });
  12370. },
  12371. addCourseWorksGongTeacher(i, data, tool) {
  12372. let params = [
  12373. {
  12374. uid: this.sStudent.userid,
  12375. cid: this.id,
  12376. stage: this.courseType,
  12377. task: this.taskCount,
  12378. tool: i,
  12379. content: data,
  12380. type: 12,
  12381. atool: tool,
  12382. text: "",
  12383. },
  12384. ];
  12385. this.ajax
  12386. .post(this.$store.state.api + "addCourseWorks5", params)
  12387. .then((res) => {
  12388. this.$message({
  12389. message: "提交成功",
  12390. type: "success",
  12391. });
  12392. this.studyJuri[0].cover = [];
  12393. this.dialogVisibleWorks = false;
  12394. this.selectSWorks();
  12395. this.selectStudent();
  12396. })
  12397. .catch((err) => {
  12398. this.$message.error("提交失败");
  12399. console.error(err);
  12400. });
  12401. },
  12402. addCourseWorksGongPl(i, data, tool, type) {
  12403. let params = [
  12404. {
  12405. uid: this.sStudent.userid,
  12406. cid: this.id,
  12407. stage: this.courseType,
  12408. task: this.taskCount,
  12409. tool: i,
  12410. content: data,
  12411. type: type,
  12412. atool: tool,
  12413. text: "",
  12414. },
  12415. ];
  12416. this.ajax
  12417. .post(this.$store.state.api + "addCourseWorks5", params)
  12418. .then((res) => {
  12419. this.$message({
  12420. message: "提交成功",
  12421. type: "success",
  12422. });
  12423. this.studyJuri[0].cover = [];
  12424. this.dialogVisibleWorks = false;
  12425. this.selectSWorks();
  12426. this.selectStudent();
  12427. })
  12428. .catch((err) => {
  12429. this.$message.error("提交失败");
  12430. console.error(err);
  12431. });
  12432. },
  12433. addCourseWorksTeacher(i) {
  12434. var typesql;
  12435. if (this.sTool == 32) {
  12436. this.addCourseWorksGongTeacher(
  12437. this.toolindex,
  12438. this.studyJuri[0].cover[0].url,
  12439. this.sTool
  12440. );
  12441. return;
  12442. }
  12443. if (this.fileType === 0) {
  12444. typesql = 1;
  12445. } else if (this.fileType === 1) {
  12446. typesql = 4;
  12447. } else if (this.fileType === 2) {
  12448. typesql = 5;
  12449. } else if (this.fileType === 3) {
  12450. typesql = 12;
  12451. }
  12452. if (this.sTool == 50) {
  12453. this.addCourseWorksGongPl(
  12454. this.toolindex,
  12455. this.studyJuri[0].cover[0].url,
  12456. this.sTool,
  12457. typesql
  12458. );
  12459. return;
  12460. }
  12461. if (!this.studyJuri[0].cover[0].url) {
  12462. this.$message.error("请上传文件");
  12463. return;
  12464. }
  12465. let params = [
  12466. {
  12467. uid: this.sStudent.userid,
  12468. cid: this.id,
  12469. stage: this.courseType,
  12470. task: i,
  12471. tool: this.toolindex,
  12472. content: this.studyJuri[0].cover[0].url,
  12473. type: typesql,
  12474. ateacher: this.userid,
  12475. },
  12476. ];
  12477. this.ajax
  12478. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12479. .then((res) => {
  12480. this.$message({
  12481. message: "提交成功",
  12482. type: "success",
  12483. });
  12484. this.studyJuri[0].cover = [];
  12485. this.dialogVisibleWorks = false;
  12486. this.getCourseDetail();
  12487. })
  12488. .catch((err) => {
  12489. this.$message.error("提交失败");
  12490. console.error(err);
  12491. });
  12492. },
  12493. selectUploadStudent(type) {
  12494. const loading = this.$loading.service({
  12495. background: "rgba(255, 255, 255, 0.7)",
  12496. target: document.body,
  12497. });
  12498. let params = {
  12499. cid: this.uploadCid,
  12500. oid: this.oid,
  12501. cn: "",
  12502. };
  12503. this.ajax
  12504. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12505. .then((res) => {
  12506. loading.close();
  12507. var studentK = [];
  12508. if (this.isWorksS[this.toolindex].length > 0) {
  12509. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12510. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12511. }
  12512. studentK = studentK.join(",");
  12513. }
  12514. this.uploadStudentJuri = res.data[0].filter((el) => {
  12515. return studentK.indexOf(el.userid) == -1;
  12516. });
  12517. if (this.worksSName && this.worksSid) {
  12518. this.uploadStudentJuri.push({
  12519. userid: this.worksSid,
  12520. name: this.worksSName,
  12521. });
  12522. }
  12523. if (type == 1) {
  12524. this.plworkFile = [];
  12525. this.dialogVisibleSname = true;
  12526. } else if (type == 2) {
  12527. this.dialogVisiblePl = true;
  12528. }
  12529. })
  12530. .catch((err) => {
  12531. loading.close();
  12532. console.error(err);
  12533. });
  12534. },
  12535. arrayToArray(arrayo, arrayt) {
  12536. let array1 = arrayo;
  12537. let array2 = arrayt;
  12538. let commonElements = [];
  12539. for (let i = 0; i < array1.length; i++) {
  12540. for (let j = 0; j < array2.length; j++) {
  12541. if (array1[i] === array2[j]) {
  12542. commonElements.push(array1[i]);
  12543. }
  12544. }
  12545. }
  12546. return commonElements;
  12547. },
  12548. selectWorksStudent() {
  12549. let params = {
  12550. oid: this.oid,
  12551. cid: this.courseDetail.juri,
  12552. };
  12553. this.ajax
  12554. .get(this.$store.state.api + "selectWorksStudent", params)
  12555. .then((res) => {
  12556. var a = res.data[0];
  12557. for (var i = 0; i < this.isWorksS.length; i++) {
  12558. this.noWorksS[i] = [];
  12559. var studentK = [];
  12560. if (this.isWorksS[i].length > 0) {
  12561. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12562. studentK.push(this.isWorksS[i][z].uid);
  12563. }
  12564. studentK = studentK.join(",");
  12565. for (var j = 0; j < a.length; j++) {
  12566. // if (studentK.indexOf(a[j].userid) == -1) {
  12567. if (this.tcid) {
  12568. // a[j].classid.indexOf(this.tcid) != -1
  12569. if (
  12570. this.arrayToArray(
  12571. a[j].classid.split(","),
  12572. this.tcid.split(",")
  12573. ).length
  12574. ) {
  12575. this.noWorksS[i].push({
  12576. student: a[j].name,
  12577. userid: a[j].userid,
  12578. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12579. });
  12580. }
  12581. } else {
  12582. this.noWorksS[i].push({
  12583. student: a[j].name,
  12584. userid: a[j].userid,
  12585. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12586. });
  12587. }
  12588. // }
  12589. }
  12590. } else {
  12591. for (var k = 0; k < a.length; k++) {
  12592. if (this.tcid) {
  12593. if (
  12594. this.arrayToArray(
  12595. a[k].classid.split(","),
  12596. this.tcid.split(",")
  12597. ).length
  12598. ) {
  12599. this.noWorksS[i].push({
  12600. student: a[k].name,
  12601. userid: a[k].userid,
  12602. type: "1",
  12603. });
  12604. }
  12605. } else {
  12606. this.noWorksS[i].push({
  12607. student: a[k].name,
  12608. userid: a[k].userid,
  12609. type: "1",
  12610. });
  12611. }
  12612. }
  12613. }
  12614. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  12615. // let jscoreA = parseInt(a.type);
  12616. // let jscoreB = parseInt(b.type);
  12617. // return jscoreB - jscoreA;
  12618. // });
  12619. }
  12620. this.$forceUpdate();
  12621. if (
  12622. Object.keys(this.commentDetail).length &&
  12623. Object.keys(this.commentIndexJson).length &&
  12624. !this.dialogVisibleScore
  12625. ) {
  12626. let a = 1;
  12627. let c = this.commentIndexJson;
  12628. console.log(c);
  12629. if (
  12630. this.commentIndexJson.gindex ||
  12631. this.commentIndexJson.gindex === 0
  12632. ) {
  12633. for (
  12634. var i = 0;
  12635. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12636. i++
  12637. ) {
  12638. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12639. groupA: for (var k = 0; k < _el.length; k++) {
  12640. let el = _el[k];
  12641. if (el.wid == this.commentDetail.wid) {
  12642. a = 2;
  12643. this.commentOther(
  12644. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12645. this.commentIndexJson.toolIndex,
  12646. k,
  12647. this.commentIndexJson.gindex
  12648. );
  12649. break groupA;
  12650. }
  12651. }
  12652. }
  12653. if (a === 1) {
  12654. this.commentDetail = [];
  12655. this.commentIndexJson = {};
  12656. this.commentDialogVisible = false;
  12657. this.$message("此作业已被删除");
  12658. }
  12659. } else {
  12660. if (this.isGroup && this.commentIndexJson.gid) {
  12661. groupA: for (
  12662. var i = 0;
  12663. i < this.courseGroup.group.length;
  12664. i++
  12665. ) {
  12666. let _group = this.courseGroup.group[i];
  12667. if (_group.id == this.commentIndexJson.gid) {
  12668. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12669. for (var k = 0; k < _el2.length; k++) {
  12670. let el2 = _el2[k];
  12671. if (el2.wid == this.commentDetail.wid) {
  12672. a = 2;
  12673. this.commentOther(
  12674. _el2[k],
  12675. this.commentIndexJson.toolIndex,
  12676. k,
  12677. null,
  12678. this.commentIndexJson.gid
  12679. );
  12680. break groupA;
  12681. }
  12682. }
  12683. }
  12684. }
  12685. }
  12686. if (a == 1) {
  12687. for (
  12688. var i = 0;
  12689. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12690. i++
  12691. ) {
  12692. let el =
  12693. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12694. if (el.wid == this.commentDetail.wid) {
  12695. a = 2;
  12696. this.commentOther(
  12697. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12698. this.commentIndexJson.toolIndex,
  12699. i
  12700. );
  12701. break;
  12702. }
  12703. }
  12704. }
  12705. if (a === 1) {
  12706. this.commentDetail = [];
  12707. this.commentIndexJson = {};
  12708. this.commentDialogVisible = false;
  12709. this.$message("此作业已被删除");
  12710. }
  12711. }
  12712. }
  12713. })
  12714. .catch((err) => {
  12715. console.error(err);
  12716. });
  12717. },
  12718. selectStudent() {},
  12719. openVideo(w) {
  12720. this.videoDetail = {};
  12721. this.playerOptions1.sources[0].src = w.works;
  12722. this.videoDetail = this.playerOptions1;
  12723. this.videoVisible = true;
  12724. },
  12725. isLikes(wid, uid, t, c, isLikes) {
  12726. if (isLikes == false) {
  12727. let params = [
  12728. {
  12729. wid: wid,
  12730. lid: uid,
  12731. t: t,
  12732. c: c,
  12733. },
  12734. ];
  12735. this.ajax
  12736. .post(this.$store.state.api + "insertComment", params)
  12737. .then((res) => {
  12738. this.$message({
  12739. message: "点赞成功",
  12740. type: "success",
  12741. });
  12742. this.selectSWorks();
  12743. this.selectStudent();
  12744. })
  12745. .catch((err) => {
  12746. this.$message.error("点赞失败");
  12747. console.error(err);
  12748. });
  12749. } else {
  12750. let params = {
  12751. wid: wid,
  12752. lid: uid,
  12753. type: t,
  12754. };
  12755. this.ajax
  12756. .get(this.$store.state.api + "deleteComment", params)
  12757. .then((res) => {
  12758. this.$message({
  12759. message: "取消点赞成功",
  12760. type: "success",
  12761. });
  12762. this.selectSWorks();
  12763. this.selectStudent();
  12764. })
  12765. .catch((err) => {
  12766. console.error(err);
  12767. });
  12768. }
  12769. },
  12770. deleteComment(wid) {
  12771. this.$confirm("确定删除此评论吗?", "提示", {
  12772. confirmButtonText: "确定",
  12773. cancelButtonText: "取消",
  12774. type: "warning",
  12775. })
  12776. .then(() => {
  12777. let params = {
  12778. id: wid,
  12779. };
  12780. this.ajax
  12781. .get(this.$store.state.api + "deleteComment2", params)
  12782. .then((res) => {
  12783. this.$message({
  12784. message: "删除评论成功",
  12785. type: "success",
  12786. });
  12787. this.selectSWorks();
  12788. this.selectStudent();
  12789. })
  12790. .catch((err) => {
  12791. console.error(err);
  12792. });
  12793. })
  12794. .catch(() => {});
  12795. },
  12796. commentOther(w, toolIndex, wIndex, gindex, gid) {
  12797. this.commentIndexJson = {
  12798. toolIndex: toolIndex,
  12799. wIndex: wIndex,
  12800. gindex: gindex,
  12801. gid: gid,
  12802. };
  12803. this.commentDetail = [];
  12804. this.commentDialogVisible = true;
  12805. this.commentDetail = w;
  12806. if (w.works && w.type == 1) {
  12807. this.pptImgUrl = "";
  12808. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12809. if (
  12810. a.indexOf(
  12811. w.works
  12812. .split(".")
  12813. [w.works.split(".").length - 1].toLocaleUpperCase()
  12814. ) != -1
  12815. ) {
  12816. this.pptImgUrl =
  12817. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12818. this.showPDF = false;
  12819. } else if (
  12820. w.works
  12821. .split(".")
  12822. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12823. ) {
  12824. this.pptImgUrl = w.works;
  12825. this.showPDF = true;
  12826. }
  12827. } else if (w.works && w.type == 3) {
  12828. this.videoDetail = {};
  12829. this.playerOptions1.sources[0].src = w.works;
  12830. this.videoDetail = this.playerOptions1;
  12831. // this.videoVisible = true;
  12832. } else if (w.works && w.type == 4) {
  12833. this.eScore = JSON.parse(w.works);
  12834. this.rateJson =
  12835. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12836. this.taskCount
  12837. ].toolChoose[toolIndex].rateJson;
  12838. } else if (w.works && w.type == 10) {
  12839. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  12840. } else if (w.works && w.type == 13) {
  12841. this.wordJson =
  12842. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12843. this.taskCount
  12844. ].toolChoose[toolIndex].wordJson;
  12845. }
  12846. },
  12847. openScore(w) {
  12848. this.wScore = 0;
  12849. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  12850. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  12851. this.commentDetail = [];
  12852. this.dialogVisibleScore = true;
  12853. this.commentDetail = w;
  12854. if (w.works && w.type == 1) {
  12855. this.pptImgUrl = "";
  12856. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12857. if (
  12858. a.indexOf(
  12859. w.works
  12860. .split(".")
  12861. [w.works.split(".").length - 1].toLocaleUpperCase()
  12862. ) != -1
  12863. ) {
  12864. this.pptImgUrl =
  12865. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12866. this.showPDF = false;
  12867. } else if (
  12868. w.works
  12869. .split(".")
  12870. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12871. ) {
  12872. this.pptImgUrl = w.works;
  12873. this.showPDF = true;
  12874. }
  12875. } else if (w.works && w.type == 3) {
  12876. this.videoDetail = {};
  12877. this.playerOptions1.sources[0].src = w.works;
  12878. this.videoDetail = this.playerOptions1;
  12879. }
  12880. },
  12881. addComment(wid, uid, t) {
  12882. if (this.commentText == "") {
  12883. this.$message.error("请输入评论");
  12884. return;
  12885. }
  12886. let params2 = [
  12887. {
  12888. wid: wid,
  12889. lid: uid,
  12890. t: t,
  12891. },
  12892. ];
  12893. this.ajax
  12894. .post(this.$store.state.api + "getComment", params2)
  12895. .then((res) => {
  12896. if (res.data[0].length > 0) {
  12897. this.$message.error("一个作业只能评论一条");
  12898. } else {
  12899. let params = [
  12900. {
  12901. wid: wid,
  12902. lid: uid,
  12903. t: t,
  12904. c: this.commentText,
  12905. },
  12906. ];
  12907. this.ajax
  12908. .post(this.$store.state.api + "insertComment", params)
  12909. .then((res) => {
  12910. this.$message({
  12911. message: "评论成功",
  12912. type: "success",
  12913. });
  12914. this.commentText = "";
  12915. this.selectSWorks();
  12916. this.selectStudent();
  12917. })
  12918. .catch((err) => {
  12919. this.$message.error("评论失败");
  12920. console.error(err);
  12921. });
  12922. }
  12923. })
  12924. .catch((err) => {
  12925. // this.$message.error("评论失败");
  12926. console.error(err);
  12927. });
  12928. },
  12929. scoreWork(wid) {
  12930. if (this.wScore == 0) {
  12931. this.$message.error("请评分");
  12932. return;
  12933. }
  12934. let params = [
  12935. {
  12936. wid: wid,
  12937. score: JSON.stringify({
  12938. wScore: this.wScore,
  12939. detail: this.scoreDetail,
  12940. }),
  12941. },
  12942. ];
  12943. this.ajax
  12944. .post(this.$store.state.api + "scoreWork", params)
  12945. .then((res) => {
  12946. this.$message({
  12947. message: "评分成功",
  12948. type: "success",
  12949. });
  12950. this.wScore = 0;
  12951. this.scoreDetail = "";
  12952. this.dialogVisibleScore = false;
  12953. this.selectSWorks();
  12954. this.selectStudent();
  12955. })
  12956. .catch((err) => {
  12957. this.$message.error("评分失败");
  12958. console.error(err);
  12959. });
  12960. },
  12961. openXz(w, i) {
  12962. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  12963. .taskJson[this.taskCount].toolChoose[i].selectJson
  12964. ? JSON.parse(
  12965. JSON.stringify(
  12966. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12967. this.taskCount
  12968. ].toolChoose[i].selectJson
  12969. )
  12970. )
  12971. : { url: "", select: [], answer: [] };
  12972. var a = w.works.split(",");
  12973. for (var k = 0; k < a.length; k++) {
  12974. a[k] = parseInt(a[k]);
  12975. }
  12976. this.selectAnswer = { answer: a, stu: w.sName };
  12977. this.isSelect = true;
  12978. this.dialogVisibleSelect = true;
  12979. },
  12980. openSen(w, i) {
  12981. this.sentenceList1 = JSON.parse(w.works);
  12982. this.sentenceList1.stuName = w.sName;
  12983. this.dialogVisibleSentence1 = true;
  12984. },
  12985. openPj(w, toolindex) {
  12986. this.isStar = true;
  12987. this.eScore = JSON.parse(w);
  12988. this.rateJson =
  12989. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12990. this.taskCount
  12991. ].toolChoose[toolindex].rateJson;
  12992. this.studentEvalDialogVisible = true;
  12993. },
  12994. deleteWorks(id) {
  12995. this.$confirm("确定删除此作业吗?", "提示", {
  12996. confirmButtonText: "确定",
  12997. cancelButtonText: "取消",
  12998. type: "warning",
  12999. })
  13000. .then(() => {
  13001. let params = [
  13002. {
  13003. id: id,
  13004. },
  13005. ];
  13006. this.ajax
  13007. .post(this.$store.state.api + "deleteCourseWork", params)
  13008. .then((res) => {
  13009. this.$message({
  13010. message: "删除成功",
  13011. type: "success",
  13012. });
  13013. this.selectStudent();
  13014. this.selectSWorks();
  13015. this.selectSLook();
  13016. })
  13017. .catch((err) => {
  13018. this.$message.error("网络异常");
  13019. console.error(err);
  13020. });
  13021. })
  13022. .catch(() => {});
  13023. },
  13024. selectSWorks(gindex) {
  13025. //教师查看全部作业
  13026. let params = {
  13027. cid: this.id,
  13028. s: this.courseType,
  13029. t: this.taskCount,
  13030. };
  13031. this.ajax
  13032. .get(this.$store.state.api + "selectSWorks", params)
  13033. .then((res) => {
  13034. var a =
  13035. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13036. this.taskCount
  13037. ].toolChoose;
  13038. var b = res.data[0];
  13039. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13040. var y = [
  13041. "AVI",
  13042. "NAVI",
  13043. "MPEG",
  13044. "ASF",
  13045. "MOV",
  13046. "WMV",
  13047. "3GP",
  13048. "RM",
  13049. "RMVB",
  13050. "FLV",
  13051. "F4V",
  13052. "H.264",
  13053. "H.265",
  13054. "REAL VIDEO",
  13055. "MKV",
  13056. "WebM",
  13057. "HDDVD",
  13058. "MP4",
  13059. "MPG",
  13060. "M4V",
  13061. "MGV",
  13062. "OGV",
  13063. "QTM",
  13064. "STR",
  13065. "AMC",
  13066. "DVX",
  13067. "EVO",
  13068. "DAT",
  13069. "OGG",
  13070. "OGM",
  13071. ];
  13072. var d = res.data[1];
  13073. var e = res.data[2];
  13074. var f = res.data[3];
  13075. for (var i = 0; i < a.length; i++) {
  13076. this.worksStudent[i] = [];
  13077. this.worksTeacher[i] = [];
  13078. this.worksStudent2[i] = [];
  13079. if (
  13080. !this.isCloseList[i] ||
  13081. this.isCloseList[i].isClose == undefined
  13082. ) {
  13083. this.isCloseList[i] = { isClose: 0 };
  13084. }
  13085. this.groupStudent[i] = [];
  13086. this.groupStudentUid[i] = [];
  13087. this.isWorksS[i] = [];
  13088. this.checkJson[i] = [];
  13089. if (a[i].tool[0] == 49) {
  13090. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13091. this.groupStudent[i][gA] = [];
  13092. this.groupStudentUid[i][gA] = [];
  13093. this.worksStudent[i][gA] = [];
  13094. this.isCloseList[i][gA] = [];
  13095. for (var g = 0; g < f.length; g++) {
  13096. if (
  13097. f[g].ttype == 2 &&
  13098. this.tcid &&
  13099. this.arrayToArray(
  13100. f[g].classid.split(","),
  13101. this.tcid.split(",")
  13102. ).length == 0
  13103. ) {
  13104. continue;
  13105. }
  13106. if (gA == f[g].group && f[g].tool == i) {
  13107. this.groupStudent[i][gA].push(f[g]);
  13108. this.groupStudentUid[i][gA].push(f[g].userid);
  13109. }
  13110. }
  13111. }
  13112. this.$forceUpdate();
  13113. }
  13114. for (var j = 0; j < b.length; j++) {
  13115. if (
  13116. b[j].ttype == 2 &&
  13117. this.tcid &&
  13118. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13119. .length == 0
  13120. ) {
  13121. continue;
  13122. }
  13123. var likesCount = 0;
  13124. var commentCount = 0;
  13125. var isLikes = false;
  13126. var commentJson = [];
  13127. var data = b[j];
  13128. if (i == b[j].tool) {
  13129. if (data.type == 2 && a[i].tool[0] == 4) {
  13130. // if(JSON.parse(data.content)[0].anwer){
  13131. var checkL =
  13132. JSON.parse(data.content)[0].anwer instanceof Array
  13133. ? JSON.parse(data.content)[0].anwer
  13134. : JSON.parse(data.content)[0].anwer.split(",");
  13135. for (var z = 0; z < checkL.length; z++) {
  13136. if (!this.checkJson[i][z]) {
  13137. this.checkJson[i].push({
  13138. checkCount: [],
  13139. checkPerson: [],
  13140. rightPerson: [],
  13141. });
  13142. }
  13143. if (!this.checkJson[i][z].checkCount.length) {
  13144. this.checkJson[i][z].checkCount = [];
  13145. let _askItemCount = JSON.parse(data.content)[0].askJson
  13146. .askJson[z].askItem;
  13147. for (var aic = 0; aic < _askItemCount; aic++) {
  13148. this.checkJson[i][z].checkCount.push(0);
  13149. }
  13150. }
  13151. if (checkL[z] instanceof Array) {
  13152. if (
  13153. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13154. checkL[z].sort().join(",")
  13155. ) {
  13156. this.checkJson[i][z].rightPerson.push(data.name);
  13157. }
  13158. for (var q = 0; q < checkL[z].length; q++) {
  13159. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13160. ? this.checkJson[i][z].checkPerson[
  13161. parseInt(checkL[z][q])
  13162. ].push(data.name)
  13163. : (this.checkJson[i][z].checkPerson[
  13164. parseInt(checkL[z][q])
  13165. ] = [data.name]);
  13166. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13167. ? this.checkJson[i][z].checkCount[
  13168. parseInt(checkL[z][q])
  13169. ]++
  13170. : (this.checkJson[i][z].checkCount[
  13171. parseInt(checkL[z][q])
  13172. ] = 1);
  13173. }
  13174. } else {
  13175. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13176. this.checkJson[i][z].rightPerson.push(data.name);
  13177. }
  13178. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13179. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13180. ? this.checkJson[i][z].checkPerson[
  13181. parseInt(checkL[z])
  13182. ].push(data.name)
  13183. : (this.checkJson[i][z].checkPerson[
  13184. parseInt(checkL[z])
  13185. ] = [data.name]);
  13186. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13187. ? this.checkJson[i][z].checkCount[
  13188. parseInt(checkL[z])
  13189. ]++
  13190. : (this.checkJson[i][z].checkCount[
  13191. parseInt(checkL[z])
  13192. ] = 1);
  13193. }
  13194. }
  13195. }
  13196. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13197. var checkL = JSON.parse(data.content)[0].anwer;
  13198. for (var z = 0; z < checkL.length; z++) {
  13199. if (!this.checkJson[i][z]) {
  13200. this.checkJson[i].push({
  13201. checkCount: [],
  13202. checkPerson: [],
  13203. rightPerson: [],
  13204. });
  13205. }
  13206. if (!this.checkJson[i][z].checkCount.length) {
  13207. this.checkJson[i][z].checkCount = [];
  13208. let _askItemCount = JSON.parse(data.content)[0].testJson
  13209. .testJson[z].testItem;
  13210. console.log(_askItemCount);
  13211. for (var aic = 0; aic < _askItemCount; aic++) {
  13212. this.checkJson[i][z].checkCount.push(0);
  13213. }
  13214. }
  13215. if (checkL[z] instanceof Array) {
  13216. if (
  13217. JSON.parse(data.content)[0]
  13218. .testJson.testJson[z].answer.sort()
  13219. .join(",") == checkL[z].sort().join(",")
  13220. ) {
  13221. this.checkJson[i][z].rightPerson.push(data.name);
  13222. }
  13223. for (var q = 0; q < checkL[z].length; q++) {
  13224. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13225. ? this.checkJson[i][z].checkPerson[
  13226. parseInt(checkL[z][q])
  13227. ].push(data.name)
  13228. : (this.checkJson[i][z].checkPerson[
  13229. parseInt(checkL[z][q])
  13230. ] = [data.name]);
  13231. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13232. ? this.checkJson[i][z].checkCount[
  13233. parseInt(checkL[z][q])
  13234. ]++
  13235. : (this.checkJson[i][z].checkCount[
  13236. parseInt(checkL[z][q])
  13237. ] = 1);
  13238. }
  13239. } else {
  13240. if (
  13241. JSON.parse(data.content)[0].testJson.testJson[z]
  13242. .answer == checkL[z]
  13243. ) {
  13244. this.checkJson[i][z].rightPerson.push(data.name);
  13245. }
  13246. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13247. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13248. ? this.checkJson[i][z].checkPerson[
  13249. parseInt(checkL[z])
  13250. ].push(data.name)
  13251. : (this.checkJson[i][z].checkPerson[
  13252. parseInt(checkL[z])
  13253. ] = [data.name]);
  13254. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13255. ? this.checkJson[i][z].checkCount[
  13256. parseInt(checkL[z])
  13257. ]++
  13258. : (this.checkJson[i][z].checkCount[
  13259. parseInt(checkL[z])
  13260. ] = 1);
  13261. }
  13262. }
  13263. }
  13264. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13265. var checkL = JSON.parse(data.content);
  13266. for (var z = 0; z < checkL.length; z++) {
  13267. if (!this.checkJson[i][z]) {
  13268. this.checkJson[i].push({
  13269. checkCount: [],
  13270. checkPerson: [],
  13271. rightPerson: [],
  13272. });
  13273. }
  13274. this.checkJson[i][z].checkPerson.push(data.name);
  13275. if (
  13276. checkL[z].chooseSenList.toString() ==
  13277. checkL[z].rightAnswer.toString()
  13278. ) {
  13279. this.checkJson[i][z].rightPerson.push(data.name);
  13280. }
  13281. }
  13282. }
  13283. for (var k = 0; k < d.length; k++) {
  13284. //点赞
  13285. if (d[k].workId == b[j].id) {
  13286. likesCount++;
  13287. if (d[k].likesId == this.userid) {
  13288. isLikes = true;
  13289. }
  13290. }
  13291. }
  13292. for (var l = 0; l < e.length; l++) {
  13293. //评论
  13294. if (e[l].workId == b[j].id) {
  13295. if (e[l].comment != "") {
  13296. commentCount++;
  13297. commentJson.push({
  13298. commentText: e[l].comment,
  13299. commentTime: e[l].commentTime,
  13300. commentPeople: e[l].commentPeople,
  13301. userid: e[l].userid,
  13302. wid: e[l].id,
  13303. });
  13304. }
  13305. }
  13306. }
  13307. if (
  13308. (b[j].type == 1 ||
  13309. b[j].type == 4 ||
  13310. b[j].type == 5 ||
  13311. b[j].type == 6 ||
  13312. b[j].type == 12 ||
  13313. b[j].type == 7) &&
  13314. a[i].tool[0] != 15 &&
  13315. a[i].tool[0] != 4 &&
  13316. a[i].tool[0] != 45 &&
  13317. a[i].tool[0] != 50 &&
  13318. a[i].tool[0] != 32 &&
  13319. a[i].tool[0] != 57 &&
  13320. a[i].tool[0] != 52
  13321. ) {
  13322. if (
  13323. c.indexOf(
  13324. b[j].content
  13325. .split(".")
  13326. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13327. ) != -1 &&
  13328. a[i].tool[0] == 16 &&
  13329. b[j].atool != 50
  13330. ) {
  13331. let _works = {
  13332. userid: b[j].userid,
  13333. ateacher: b[j].ateacher,
  13334. wid: b[j].id,
  13335. works: b[j].content,
  13336. sName: b[j].name,
  13337. type: 1,
  13338. time: b[j].time,
  13339. score: b[j].score,
  13340. img: b[j].img,
  13341. likesCount: likesCount,
  13342. commentCount: commentCount,
  13343. isLikes: isLikes,
  13344. commentJson: commentJson,
  13345. };
  13346. if (b[j].ttype == 1) {
  13347. this.worksTeacher[i].push(_works);
  13348. } else {
  13349. this.worksStudent2[i].push(_works);
  13350. }
  13351. this.worksStudent[i].push(_works);
  13352. this.isWorksS[i].push({
  13353. uid: b[j].userid,
  13354. sName: b[j].name,
  13355. });
  13356. } else if (
  13357. y.indexOf(
  13358. b[j].content
  13359. .split(".")
  13360. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13361. ) != -1 &&
  13362. a[i].tool[0] == 16 &&
  13363. b[j].atool != 50
  13364. ) {
  13365. let _works = {
  13366. userid: b[j].userid,
  13367. ateacher: b[j].ateacher,
  13368. wid: b[j].id,
  13369. works: b[j].content,
  13370. sName: b[j].name,
  13371. type: 3,
  13372. time: b[j].time,
  13373. score: b[j].score,
  13374. img: b[j].img,
  13375. likesCount: likesCount,
  13376. commentCount: commentCount,
  13377. isLikes: isLikes,
  13378. commentJson: commentJson,
  13379. };
  13380. if (b[j].ttype == 1) {
  13381. this.worksTeacher[i].push(_works);
  13382. } else {
  13383. this.worksStudent2[i].push(_works);
  13384. }
  13385. this.worksStudent[i].push(_works);
  13386. this.isWorksS[i].push({
  13387. uid: b[j].userid,
  13388. sName: b[j].name,
  13389. });
  13390. } else if (b[j].type == 6 && b[j].atool != 50) {
  13391. let _works = {
  13392. userid: b[j].userid,
  13393. ateacher: b[j].ateacher,
  13394. wid: b[j].id,
  13395. works: b[j].content,
  13396. sName: b[j].name,
  13397. type: 4,
  13398. time: b[j].time,
  13399. score: b[j].score,
  13400. img: b[j].img,
  13401. likesCount: likesCount,
  13402. commentCount: commentCount,
  13403. isLikes: isLikes,
  13404. commentJson: commentJson,
  13405. };
  13406. if (b[j].ttype == 1) {
  13407. this.worksTeacher[i].push(_works);
  13408. } else {
  13409. this.worksStudent2[i].push(_works);
  13410. }
  13411. this.worksStudent[i].push(_works);
  13412. this.isWorksS[i].push({
  13413. uid: b[j].userid,
  13414. sName: b[j].name,
  13415. });
  13416. } else if (b[j].type == 7 && b[j].atool != 50) {
  13417. let _works = {
  13418. userid: b[j].userid,
  13419. ateacher: b[j].ateacher,
  13420. wid: b[j].id,
  13421. works: b[j].content,
  13422. sName: b[j].name,
  13423. type: 5,
  13424. time: b[j].time,
  13425. score: b[j].score,
  13426. img: b[j].img,
  13427. likesCount: likesCount,
  13428. commentCount: commentCount,
  13429. isLikes: isLikes,
  13430. commentJson: commentJson,
  13431. };
  13432. if (b[j].ttype == 1) {
  13433. this.worksTeacher[i].push(_works);
  13434. } else {
  13435. this.worksStudent2[i].push(_works);
  13436. }
  13437. this.worksStudent[i].push(_works);
  13438. this.isWorksS[i].push({
  13439. uid: b[j].userid,
  13440. sName: b[j].name,
  13441. });
  13442. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13443. let _works = {
  13444. userid: b[j].userid,
  13445. ateacher: b[j].ateacher,
  13446. wid: b[j].id,
  13447. works: b[j].content,
  13448. sName: b[j].name,
  13449. type: 12,
  13450. time: b[j].time,
  13451. score: b[j].score,
  13452. img: b[j].img,
  13453. likesCount: likesCount,
  13454. commentCount: commentCount,
  13455. isLikes: isLikes,
  13456. commentJson: commentJson,
  13457. };
  13458. if (b[j].ttype == 1) {
  13459. this.worksTeacher[i].push(_works);
  13460. } else {
  13461. this.worksStudent2[i].push(_works);
  13462. }
  13463. this.worksStudent[i].push(_works);
  13464. this.isWorksS[i].push({
  13465. uid: b[j].userid,
  13466. sName: b[j].name,
  13467. });
  13468. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13469. let _works = {
  13470. userid: b[j].userid,
  13471. ateacher: b[j].ateacher,
  13472. wid: b[j].id,
  13473. works: b[j].content,
  13474. sName: b[j].name,
  13475. type: 0,
  13476. time: b[j].time,
  13477. score: b[j].score,
  13478. img: b[j].img,
  13479. likesCount: likesCount,
  13480. commentCount: commentCount,
  13481. isLikes: isLikes,
  13482. commentJson: commentJson,
  13483. };
  13484. if (b[j].ttype == 1) {
  13485. this.worksTeacher[i].push(_works);
  13486. } else {
  13487. this.worksStudent2[i].push(_works);
  13488. }
  13489. this.worksStudent[i].push(_works);
  13490. this.isWorksS[i].push({
  13491. uid: b[j].userid,
  13492. sName: b[j].name,
  13493. });
  13494. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13495. let _works = {
  13496. userid: b[j].userid,
  13497. ateacher: b[j].ateacher,
  13498. wid: b[j].id,
  13499. works: b[j].content,
  13500. sName: b[j].name,
  13501. type: 0,
  13502. time: b[j].time,
  13503. score: b[j].score,
  13504. img: b[j].img,
  13505. likesCount: likesCount,
  13506. commentCount: commentCount,
  13507. isLikes: isLikes,
  13508. commentJson: commentJson,
  13509. };
  13510. if (b[j].ttype == 1) {
  13511. this.worksTeacher[i].push(_works);
  13512. } else {
  13513. this.worksStudent2[i].push(_works);
  13514. }
  13515. this.worksStudent[i].push(_works);
  13516. this.isWorksS[i].push({
  13517. uid: b[j].userid,
  13518. sName: b[j].name,
  13519. });
  13520. }
  13521. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13522. let _works = {
  13523. userid: b[j].userid,
  13524. ateacher: b[j].ateacher,
  13525. wid: b[j].id,
  13526. works: b[j].content,
  13527. sName: b[j].name,
  13528. type: 2,
  13529. time: b[j].time,
  13530. score: b[j].score,
  13531. img: b[j].img,
  13532. likesCount: likesCount,
  13533. commentCount: commentCount,
  13534. isLikes: isLikes,
  13535. commentJson: commentJson,
  13536. };
  13537. if (b[j].ttype == 1) {
  13538. this.worksTeacher[i].push(_works);
  13539. } else {
  13540. this.worksStudent2[i].push(_works);
  13541. }
  13542. this.worksStudent[i].push(_works);
  13543. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13544. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13545. //问卷
  13546. let _works = {
  13547. userid: b[j].userid,
  13548. ateacher: b[j].ateacher,
  13549. wid: b[j].id,
  13550. works: b[j].content,
  13551. sName: b[j].name,
  13552. type: 2,
  13553. time: b[j].time,
  13554. score: b[j].score,
  13555. img: b[j].img,
  13556. likesCount: likesCount,
  13557. commentCount: commentCount,
  13558. isLikes: isLikes,
  13559. commentJson: commentJson,
  13560. };
  13561. if (b[j].ttype == 1) {
  13562. this.worksTeacher[i].push(_works);
  13563. } else {
  13564. this.worksStudent2[i].push(_works);
  13565. }
  13566. this.worksStudent[i].push(_works);
  13567. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13568. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13569. //选择题
  13570. let _works = {
  13571. userid: b[j].userid,
  13572. ateacher: b[j].ateacher,
  13573. wid: b[j].id,
  13574. works: b[j].content,
  13575. sName: b[j].name,
  13576. type: 8,
  13577. time: b[j].time,
  13578. score: b[j].score,
  13579. img: b[j].img,
  13580. likesCount: likesCount,
  13581. commentCount: commentCount,
  13582. isLikes: isLikes,
  13583. commentJson: commentJson,
  13584. };
  13585. if (b[j].ttype == 1) {
  13586. this.worksTeacher[i].push(_works);
  13587. } else {
  13588. this.worksStudent2[i].push(_works);
  13589. }
  13590. this.worksStudent[i].push(_works);
  13591. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13592. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13593. //选择题
  13594. let _works = {
  13595. userid: b[j].userid,
  13596. ateacher: b[j].ateacher,
  13597. wid: b[j].id,
  13598. works: b[j].content,
  13599. sName: b[j].name,
  13600. type: 9,
  13601. time: b[j].time,
  13602. score: b[j].score,
  13603. img: b[j].img,
  13604. likesCount: likesCount,
  13605. commentCount: commentCount,
  13606. isLikes: isLikes,
  13607. commentJson: commentJson,
  13608. };
  13609. if (b[j].ttype == 1) {
  13610. this.worksTeacher[i].push(_works);
  13611. } else {
  13612. this.worksStudent2[i].push(_works);
  13613. }
  13614. this.worksStudent[i].push(_works);
  13615. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13616. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13617. //选择题
  13618. let _works = {
  13619. userid: b[j].userid,
  13620. ateacher: b[j].ateacher,
  13621. wid: b[j].id,
  13622. works: b[j].content,
  13623. sName: b[j].name,
  13624. type: 10,
  13625. time: b[j].time,
  13626. score: b[j].score,
  13627. img: b[j].img,
  13628. likesCount: likesCount,
  13629. commentCount: commentCount,
  13630. isLikes: isLikes,
  13631. commentJson: commentJson,
  13632. };
  13633. if (b[j].ttype == 1) {
  13634. this.worksTeacher[i].push(_works);
  13635. } else {
  13636. this.worksStudent2[i].push(_works);
  13637. }
  13638. this.worksStudent[i].push(_works);
  13639. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13640. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13641. //选择题
  13642. let _works = {
  13643. userid: b[j].userid,
  13644. ateacher: b[j].ateacher,
  13645. wid: b[j].id,
  13646. works: b[j].content,
  13647. sName: b[j].name,
  13648. type: 13,
  13649. time: b[j].time,
  13650. score: b[j].score,
  13651. img: b[j].img,
  13652. likesCount: likesCount,
  13653. commentCount: commentCount,
  13654. isLikes: isLikes,
  13655. commentJson: commentJson,
  13656. };
  13657. if (b[j].ttype == 1) {
  13658. this.worksTeacher[i].push(_works);
  13659. } else {
  13660. this.worksStudent2[i].push(_works);
  13661. }
  13662. this.worksStudent[i].push(_works);
  13663. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13664. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  13665. let _gindex = JSON.parse(b[j].content);
  13666. if (
  13667. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  13668. b[j].userid
  13669. ) != -1
  13670. ) {
  13671. this.worksStudent[i][_gindex.groupIndex].push({
  13672. userid: b[j].userid,
  13673. ateacher: b[j].ateacher,
  13674. wid: b[j].id,
  13675. works: _gindex.url,
  13676. sName: b[j].name,
  13677. type: _gindex.type,
  13678. time: b[j].time,
  13679. score: b[j].score,
  13680. img: b[j].img,
  13681. likesCount: likesCount,
  13682. commentCount: commentCount,
  13683. isLikes: isLikes,
  13684. commentJson: commentJson,
  13685. });
  13686. }
  13687. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13688. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  13689. let _works = {
  13690. userid: b[j].userid,
  13691. ateacher: b[j].ateacher,
  13692. wid: b[j].id,
  13693. works: b[j].content,
  13694. sName: b[j].name ? b[j].name : b[j].userid,
  13695. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  13696. time: b[j].time,
  13697. score: b[j].score,
  13698. img: b[j].img,
  13699. likesCount: likesCount,
  13700. commentCount: commentCount,
  13701. isLikes: isLikes,
  13702. commentJson: commentJson,
  13703. };
  13704. if (b[j].ttype == 1) {
  13705. this.worksTeacher[i].push(_works);
  13706. } else {
  13707. this.worksStudent2[i].push(_works);
  13708. }
  13709. this.worksStudent[i].push(_works);
  13710. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13711. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  13712. let _works = {
  13713. userid: b[j].userid,
  13714. ateacher: b[j].ateacher,
  13715. wid: b[j].id,
  13716. works: b[j].content,
  13717. sName: b[j].name ? b[j].name : b[j].userid,
  13718. type: 12,
  13719. time: b[j].time,
  13720. score: b[j].score,
  13721. img: b[j].img,
  13722. likesCount: likesCount,
  13723. commentCount: commentCount,
  13724. isLikes: isLikes,
  13725. commentJson: commentJson,
  13726. };
  13727. if (b[j].ttype == 1) {
  13728. this.worksTeacher[i].push(_works);
  13729. } else {
  13730. this.worksStudent2[i].push(_works);
  13731. }
  13732. this.worksStudent[i].push(_works);
  13733. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13734. } else if (
  13735. a[i].tool[0] == 57 &&
  13736. b[j].atool == 57 &&
  13737. b[j].type == 12
  13738. ) {
  13739. let _works = {
  13740. userid: b[j].userid,
  13741. ateacher: b[j].ateacher,
  13742. wid: b[j].id,
  13743. works: b[j].content,
  13744. sName: b[j].name ? b[j].name : b[j].userid,
  13745. type: 12,
  13746. time: b[j].time,
  13747. score: b[j].score,
  13748. img: b[j].img,
  13749. likesCount: likesCount,
  13750. commentCount: commentCount,
  13751. isLikes: isLikes,
  13752. commentJson: commentJson,
  13753. };
  13754. if (b[j].ttype == 1) {
  13755. this.worksTeacher[i].push(_works);
  13756. } else {
  13757. this.worksStudent2[i].push(_works);
  13758. }
  13759. this.worksStudent[i].push(_works);
  13760. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13761. } else if (
  13762. a[i].tool[0] == 57 &&
  13763. b[j].atool == 57 &&
  13764. b[j].type == 15
  13765. ) {
  13766. let _works = {
  13767. userid: b[j].userid,
  13768. ateacher: b[j].ateacher,
  13769. wid: b[j].id,
  13770. works: b[j].content,
  13771. sName: b[j].name ? b[j].name : b[j].userid,
  13772. type: 15,
  13773. time: b[j].time,
  13774. score: b[j].score,
  13775. img: b[j].img,
  13776. likesCount: likesCount,
  13777. commentCount: commentCount,
  13778. isLikes: isLikes,
  13779. commentJson: commentJson,
  13780. };
  13781. if (b[j].ttype == 1) {
  13782. this.worksTeacher[i].push(_works);
  13783. } else {
  13784. this.worksStudent2[i].push(_works);
  13785. }
  13786. this.worksStudent[i].push(_works);
  13787. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13788. }
  13789. }
  13790. }
  13791. if (this.worksStudent[i] && this.worksStudent[i].length) {
  13792. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  13793. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13794. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13795. var scoreA = parseFloat(jscoreA);
  13796. var scoreB = parseFloat(jscoreB);
  13797. if (scoreA == scoreB) {
  13798. return b.likesCount - a.likesCount;
  13799. }
  13800. return scoreB - scoreA;
  13801. });
  13802. }
  13803. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  13804. this.worksStudent2[i] = this.worksStudent2[i].sort(function (
  13805. a,
  13806. b
  13807. ) {
  13808. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13809. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13810. var scoreA = parseFloat(jscoreA);
  13811. var scoreB = parseFloat(jscoreB);
  13812. if (scoreA == scoreB) {
  13813. return b.likesCount - a.likesCount;
  13814. }
  13815. return scoreB - scoreA;
  13816. });
  13817. }
  13818. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  13819. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  13820. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13821. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13822. var scoreA = parseFloat(jscoreA);
  13823. var scoreB = parseFloat(jscoreB);
  13824. if (scoreA == scoreB) {
  13825. return b.likesCount - a.likesCount;
  13826. }
  13827. return scoreB - scoreA;
  13828. });
  13829. }
  13830. }
  13831. for (var i = 0; i < a.length; i++) {
  13832. for (var j = 0; j < b.length; j++) {
  13833. var data = b[j];
  13834. if (i == b[j].tool) {
  13835. if (data.type == 2 || data.type == 8) {
  13836. for (var z = 0; z < this.checkJson[i].length; z++) {
  13837. this.checkJson[i][z].checkPerent = [];
  13838. this.checkJson[i][z].right = Math.round(
  13839. (this.checkJson[i][z].rightPerson.length /
  13840. parseInt(this.worksStudent[i].length)) *
  13841. 100
  13842. );
  13843. let aaaa = this.checkJson[i][z];
  13844. console.log(aaaa);
  13845. for (
  13846. var k = 0;
  13847. k < this.checkJson[i][z].checkCount.length;
  13848. k++
  13849. ) {
  13850. this.checkJson[i][z].checkPerent.push(
  13851. Math.round(
  13852. (this.checkJson[i][z].checkCount[k] /
  13853. parseInt(this.worksStudent[i].length)) *
  13854. 100
  13855. )
  13856. );
  13857. }
  13858. }
  13859. } else if (data.type == 9) {
  13860. for (var z = 0; z < this.checkJson[i].length; z++) {
  13861. this.checkJson[i][z].checkPerent = [];
  13862. this.checkJson[i][z].right = Math.round(
  13863. (this.checkJson[i][z].rightPerson.length /
  13864. this.checkJson[i][z].checkPerson.length) *
  13865. 100
  13866. );
  13867. }
  13868. }
  13869. }
  13870. }
  13871. }
  13872. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  13873. this.joinGroup(gindex);
  13874. }
  13875. this.selectWorksStudent();
  13876. })
  13877. .catch((err) => {
  13878. console.error(err);
  13879. });
  13880. },
  13881. pngToWhiteBg(file) {
  13882. const _file = file;
  13883. let read = new FileReader();
  13884. read.readAsDataURL(file); // 文件转base64
  13885. return new Promise((resolve, reject) => {
  13886. read.onload = (e) => {
  13887. let img = new Image();
  13888. img.src = e.target.result;
  13889. img.onload = async () => {
  13890. // 生成canvas
  13891. let canvas = document.createElement("canvas");
  13892. let context = canvas.getContext("2d");
  13893. // 绘制图片到canvas上
  13894. canvas.width = img.width;
  13895. canvas.height = img.height;
  13896. // 在canvas绘制前填充白色背景
  13897. context.fillStyle = "#fff";
  13898. context.fillRect(0, 0, canvas.width, canvas.height);
  13899. context.drawImage(img, 0, 0);
  13900. let base64 = canvas.toDataURL(file["type"], 1);
  13901. let newFile = this.dataUrlToFile(base64, _file);
  13902. resolve(newFile);
  13903. };
  13904. };
  13905. });
  13906. },
  13907. dataUrlToFile(dataurl, file) {
  13908. let arr = dataurl.split(","),
  13909. mime = arr[0].match(/:(.*?);/)[1],
  13910. bstr = atob(arr[1]),
  13911. n = bstr.length,
  13912. u8arr = new Uint8Array(n);
  13913. while (n--) {
  13914. u8arr[n] = bstr.charCodeAt(n);
  13915. }
  13916. // return new Blob([u8arr], { type: mime });
  13917. return new File([new Blob([u8arr], { type: mime })], file.name, {
  13918. type: mime,
  13919. });
  13920. },
  13921. async beforeUpload1(event, type, i) {
  13922. // this.$message.success('进入上传')
  13923. var file = "";
  13924. if (type == 5) {
  13925. file = event;
  13926. } else {
  13927. file = event.target.files[0];
  13928. }
  13929. var credentials = {
  13930. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13931. secretAccessKey: "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",
  13932. }; //秘钥形式的登录上传
  13933. window.AWS.config.update(credentials);
  13934. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13935. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  13936. var _this = this;
  13937. _this.progress = 0;
  13938. _this.proVisible = true;
  13939. _this.isFinishSize = 0;
  13940. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  13941. var b = [
  13942. "DOC",
  13943. "DOCX",
  13944. "DOCM",
  13945. "DOTM",
  13946. "DOTX",
  13947. "PPTX",
  13948. "PPSX",
  13949. "PPT",
  13950. "PPS",
  13951. "PPTM",
  13952. "POTM",
  13953. "PPAM",
  13954. "POTX",
  13955. "PPSM",
  13956. ];
  13957. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  13958. var photoA = [
  13959. "BMP",
  13960. "GIF",
  13961. "PNG",
  13962. "JPGE",
  13963. "JPG",
  13964. "TIF",
  13965. "PCX",
  13966. "TGA",
  13967. "EXIF",
  13968. "FPX",
  13969. "SVG",
  13970. "APNG",
  13971. ];
  13972. // if (
  13973. // b.indexOf(
  13974. // file.name
  13975. // .split(".")
  13976. // [file.name.split(".").length - 1].toLocaleUpperCase()
  13977. // ) != -1
  13978. // ) {
  13979. // if (file.size / 1024 / 1024 > 10) {
  13980. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  13981. // return;
  13982. // }
  13983. // } else if (
  13984. // excelA.indexOf(
  13985. // file.name
  13986. // .split(".")
  13987. // [file.name.split(".").length - 1].toLocaleUpperCase()
  13988. // ) != "-1"
  13989. // ) {
  13990. // if (file.size / 1024 / 1024 > 5) {
  13991. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  13992. // return;
  13993. // }
  13994. // }
  13995. if (
  13996. photoA.indexOf(
  13997. file.name
  13998. .split(".")
  13999. [file.name.split(".").length - 1].toLocaleUpperCase()
  14000. ) != -1 &&
  14001. type != 4
  14002. ) {
  14003. // const blob = await imageConversion.compress(file, 0.8)
  14004. file = await this.pngToWhiteBg(file);
  14005. const blob = await imageConversion.compressAccurately(file, 256);
  14006. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14007. file = new File([blob], file.name, { type: file.type });
  14008. }
  14009. if (file) {
  14010. var params = {
  14011. Key:
  14012. file.name.split(".")[0] +
  14013. new Date().getTime() +
  14014. "." +
  14015. file.name.split(".")[file.name.split(".").length - 1],
  14016. ContentType: file.type,
  14017. Body: file,
  14018. "Access-Control-Allow-Credentials": "*",
  14019. ACL: "public-read",
  14020. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14021. var options = {
  14022. // partSize: 2048 * 1024 * 1024,
  14023. partSize: 1024 * 1024 * 1024,
  14024. queueSize: 2,
  14025. leavePartsOnError: true,
  14026. };
  14027. bucket
  14028. .upload(params, options)
  14029. .on("httpUploadProgress", function (evt) {
  14030. //这里可以写进度条
  14031. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14032. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14033. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14034. })
  14035. .send(function (err, data) {
  14036. _this.progress = 100;
  14037. _this.isFinishSize = _this.isAllSize;
  14038. setTimeout(() => {
  14039. _this.proVisible = false;
  14040. }, 1000);
  14041. if (err) {
  14042. var a = _this.$refs.upload1.uploadFiles;
  14043. a.splice(a.length - 1, a.length);
  14044. _this.$message.error("上传失败");
  14045. } else {
  14046. // _this.$message.success('上传成功')
  14047. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14048. var c = [
  14049. "AVI",
  14050. "NAVI",
  14051. "MPEG",
  14052. "ASF",
  14053. "MOV",
  14054. "WMV",
  14055. "3GP",
  14056. "RM",
  14057. "RMVB",
  14058. "FLV",
  14059. "F4V",
  14060. "H.264",
  14061. "H.265",
  14062. "REAL VIDEO",
  14063. "MKV",
  14064. "WebM",
  14065. "HDDVD",
  14066. "MP4",
  14067. "MPG",
  14068. "M4V",
  14069. "MGV",
  14070. "OGV",
  14071. "QTM",
  14072. "STR",
  14073. "AMC",
  14074. "DVX",
  14075. "EVO",
  14076. "DAT",
  14077. "OGG",
  14078. "OGM",
  14079. ];
  14080. if (type == 1) {
  14081. _this.studyJuri[0].cover.push({
  14082. name: file.name,
  14083. url: data.Location,
  14084. uid: file.uid,
  14085. });
  14086. if (
  14087. c.indexOf(
  14088. _this.studyJuri[0].cover[0].url
  14089. .split(".")
  14090. [
  14091. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14092. ].toLocaleUpperCase()
  14093. ) != -1
  14094. ) {
  14095. _this.fileType = 2;
  14096. } else if (
  14097. b.indexOf(
  14098. _this.studyJuri[0].cover[0].url
  14099. .split(".")
  14100. [
  14101. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14102. ].toLocaleUpperCase()
  14103. ) != -1
  14104. ) {
  14105. _this.fileType = 1;
  14106. } else if (
  14107. photoA.indexOf(
  14108. _this.studyJuri[0].cover[0].url
  14109. .split(".")
  14110. [
  14111. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14112. ].toLocaleUpperCase()
  14113. ) != -1
  14114. ) {
  14115. _this.fileType = 0;
  14116. } else {
  14117. _this.fileType = 3;
  14118. }
  14119. _this.imgChange(null, null, type);
  14120. } else if (type == 2) {
  14121. _this.upToolImg = data.Location;
  14122. _this.imgChange(null, null, type);
  14123. _this.addCourseWorks(i);
  14124. } else if (type == 4) {
  14125. _this.addPz("3", data.Location);
  14126. } else if (type == 5) {
  14127. _this.addImgDrawImG(data.Location);
  14128. } else if (type == 6) {
  14129. var _ftype = 1;
  14130. if (
  14131. c.indexOf(
  14132. data.Location.split(".")[
  14133. data.Location.split(".").length - 1
  14134. ].toLocaleUpperCase()
  14135. ) != -1
  14136. ) {
  14137. _ftype = 5;
  14138. } else if (
  14139. b.indexOf(
  14140. data.Location.split(".")[
  14141. data.Location.split(".").length - 1
  14142. ].toLocaleUpperCase()
  14143. ) != -1
  14144. ) {
  14145. _ftype = 4;
  14146. } else {
  14147. _ftype = 1;
  14148. }
  14149. _this.plworkFile.push({
  14150. name: file.name,
  14151. url: data.Location,
  14152. uid: file.uid,
  14153. fileType: _ftype,
  14154. username:
  14155. _this.plworkFile.length + 1 > 10
  14156. ? _this.plworkFile.length + 1
  14157. : "0" + (_this.plworkFile.length + 1),
  14158. });
  14159. } else if (type == 7) {
  14160. _this.addCourseWorksGong(i, data.Location, 32);
  14161. } else if (type == 8) {
  14162. _this.addCourseWorksGong(i, data.Location, 57);
  14163. }
  14164. _this.imgChange(null, null, type);
  14165. console.log(data.Location);
  14166. // _this.$message.success('上传成功'+data.Location)
  14167. }
  14168. });
  14169. }
  14170. },
  14171. async beforeUpload3(event, type, i) {
  14172. // this.$message.success('进入上传')
  14173. let file = "";
  14174. let cfindex2 = 0;
  14175. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14176. file = event.target.files[cfindex];
  14177. var credentials = {
  14178. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14179. secretAccessKey: "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",
  14180. }; //秘钥形式的登录上传
  14181. window.AWS.config.update(credentials);
  14182. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14183. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14184. var _this = this;
  14185. // _this.progress = 0;
  14186. _this.proVisible2 = true;
  14187. var b = [
  14188. "DOC",
  14189. "DOCX",
  14190. "DOCM",
  14191. "DOTM",
  14192. "DOTX",
  14193. "PPTX",
  14194. "PPSX",
  14195. "PPT",
  14196. "PPS",
  14197. "PPTM",
  14198. "POTM",
  14199. "PPAM",
  14200. "POTX",
  14201. "PPSM",
  14202. ];
  14203. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14204. var photoA = [
  14205. "BMP",
  14206. "GIF",
  14207. "PNG",
  14208. "JPGE",
  14209. "JPG",
  14210. "TIF",
  14211. "PCX",
  14212. "TGA",
  14213. "EXIF",
  14214. "FPX",
  14215. "SVG",
  14216. "APNG",
  14217. ];
  14218. if (
  14219. photoA.indexOf(
  14220. file.name
  14221. .split(".")
  14222. [file.name.split(".").length - 1].toLocaleUpperCase()
  14223. ) != -1 &&
  14224. type != 4
  14225. ) {
  14226. // const blob = await imageConversion.compress(file, 0.8)
  14227. file = await this.pngToWhiteBg(file);
  14228. const blob = await imageConversion.compressAccurately(file, 256);
  14229. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14230. file = new File([blob], file.name, { type: file.type });
  14231. }
  14232. if (file) {
  14233. var params = {
  14234. Key:
  14235. file.name.split(".")[0] +
  14236. new Date().getTime() +
  14237. "." +
  14238. file.name.split(".")[file.name.split(".").length - 1],
  14239. ContentType: file.type,
  14240. Body: file,
  14241. "Access-Control-Allow-Credentials": "*",
  14242. ACL: "public-read",
  14243. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14244. var options = {
  14245. // partSize: 2048 * 1024 * 1024,
  14246. partSize: 1024 * 1024 * 1024,
  14247. queueSize: 2,
  14248. leavePartsOnError: true,
  14249. };
  14250. bucket
  14251. .upload(params, options)
  14252. .on("httpUploadProgress", function (evt) {
  14253. //这里可以写进度条
  14254. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14255. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14256. })
  14257. .send(function (err, data) {
  14258. // _this.progress = 100;
  14259. cfindex2++;
  14260. setTimeout(() => {
  14261. if (
  14262. cfindex2 == event.target.files.length - 1 ||
  14263. cfindex2 > event.target.files.length - 1
  14264. ) {
  14265. _this.proVisible2 = false;
  14266. }
  14267. }, 1000);
  14268. if (err) {
  14269. var a = _this.$refs.upload1.uploadFiles;
  14270. a.splice(a.length - 1, a.length);
  14271. _this.$message.error("上传失败");
  14272. } else {
  14273. // _this.$message.success('上传成功')
  14274. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14275. var c = [
  14276. "AVI",
  14277. "NAVI",
  14278. "MPEG",
  14279. "ASF",
  14280. "MOV",
  14281. "WMV",
  14282. "3GP",
  14283. "RM",
  14284. "RMVB",
  14285. "FLV",
  14286. "F4V",
  14287. "H.264",
  14288. "H.265",
  14289. "REAL VIDEO",
  14290. "MKV",
  14291. "WebM",
  14292. "HDDVD",
  14293. "MP4",
  14294. "MPG",
  14295. "M4V",
  14296. "MGV",
  14297. "OGV",
  14298. "QTM",
  14299. "STR",
  14300. "AMC",
  14301. "DVX",
  14302. "EVO",
  14303. "DAT",
  14304. "OGG",
  14305. "OGM",
  14306. ];
  14307. if (type == 1) {
  14308. _this.studyJuri[0].cover.push({
  14309. name: file.name,
  14310. url: data.Location,
  14311. uid: file.uid,
  14312. });
  14313. if (
  14314. c.indexOf(
  14315. _this.studyJuri[0].cover[0].url
  14316. .split(".")
  14317. [
  14318. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14319. ].toLocaleUpperCase()
  14320. ) != -1
  14321. ) {
  14322. _this.fileType = 2;
  14323. } else if (
  14324. b.indexOf(
  14325. _this.studyJuri[0].cover[0].url
  14326. .split(".")
  14327. [
  14328. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14329. ].toLocaleUpperCase()
  14330. ) != -1
  14331. ) {
  14332. _this.fileType = 1;
  14333. } else {
  14334. _this.fileType = 0;
  14335. }
  14336. _this.imgChange(null, null, type);
  14337. } else if (type == 2) {
  14338. _this.upToolImg = data.Location;
  14339. _this.imgChange(null, null, type);
  14340. _this.addCourseWorks(i);
  14341. } else if (type == 4) {
  14342. _this.addPz("3", data.Location);
  14343. } else if (type == 5) {
  14344. _this.addImgDrawImG(data.Location);
  14345. } else if (type == 6) {
  14346. var _ftype = 1;
  14347. if (
  14348. c.indexOf(
  14349. data.Location.split(".")[
  14350. data.Location.split(".").length - 1
  14351. ].toLocaleUpperCase()
  14352. ) != -1
  14353. ) {
  14354. _ftype = 5;
  14355. } else if (
  14356. b.indexOf(
  14357. data.Location.split(".")[
  14358. data.Location.split(".").length - 1
  14359. ].toLocaleUpperCase()
  14360. ) != -1
  14361. ) {
  14362. _ftype = 4;
  14363. } else {
  14364. _ftype = 1;
  14365. }
  14366. _this.plworkFile.push({
  14367. name: file.name,
  14368. url: data.Location,
  14369. uid: file.uid,
  14370. fileType: _ftype,
  14371. username:
  14372. _this.plworkFile.length + 1 > 9
  14373. ? _this.plworkFile.length + 1
  14374. : "0" + (_this.plworkFile.length + 1),
  14375. });
  14376. }
  14377. _this.imgChange(null, null, type);
  14378. console.log(data.Location);
  14379. // _this.$message.success('上传成功'+data.Location)
  14380. }
  14381. });
  14382. }
  14383. }
  14384. },
  14385. beforeUpload2(event, type) {
  14386. var file = event.target.files[0];
  14387. var credentials = {
  14388. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14389. secretAccessKey: "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",
  14390. }; //秘钥形式的登录上传
  14391. window.AWS.config.update(credentials);
  14392. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14393. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14394. var _this = this;
  14395. _this.progress = 0;
  14396. _this.proVisible = true;
  14397. if (file) {
  14398. var params = {
  14399. Key:
  14400. file.name.split(".")[0] +
  14401. new Date().getTime() +
  14402. "." +
  14403. file.name.split(".")[file.name.split(".").length - 1],
  14404. ContentType: file.type,
  14405. Body: file,
  14406. "Access-Control-Allow-Credentials": "*",
  14407. ACL: "public-read",
  14408. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14409. var options = {
  14410. partSize: 2048 * 1024 * 1024,
  14411. queueSize: 2,
  14412. leavePartsOnError: true,
  14413. };
  14414. bucket
  14415. .upload(params, options)
  14416. .on("httpUploadProgress", function (evt) {
  14417. //这里可以写进度条
  14418. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14419. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14420. })
  14421. .send(function (err, data) {
  14422. _this.progress = 100;
  14423. setTimeout(() => {
  14424. _this.proVisible = false;
  14425. }, 1000);
  14426. if (err) {
  14427. var a = _this.$refs.upload1.uploadFiles;
  14428. a.splice(a.length - 1, a.length);
  14429. _this.$message.error("上传失败");
  14430. } else {
  14431. if (type == 2) {
  14432. _this.studyJuri[0].upVedio.push({
  14433. name: file.name,
  14434. url: data.Location,
  14435. uid: file.uid,
  14436. });
  14437. _this.imgChange(null, null, type);
  14438. } else if (type == 3) {
  14439. _this.studyJuri[0].upFile.push({
  14440. name: file.name,
  14441. url: data.Location,
  14442. uid: file.uid,
  14443. });
  14444. _this.imgChange(null, null, type);
  14445. }
  14446. console.log(data.Location);
  14447. }
  14448. });
  14449. }
  14450. },
  14451. allScrell() {
  14452. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  14453. },
  14454. nextToolindex(type) {
  14455. if (type == "last") {
  14456. if (this.toolIndex == 0) {
  14457. this.$message.error("已经是第一个步骤");
  14458. return;
  14459. }
  14460. this.toolIndex = this.toolIndex - 1;
  14461. this.tool =
  14462. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14463. this.taskCount
  14464. ].toolChoose[this.toolIndex];
  14465. } else if (type == "next") {
  14466. if (
  14467. this.toolIndex ==
  14468. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14469. this.taskCount
  14470. ].toolChoose.length -
  14471. 1
  14472. ) {
  14473. this.$message.error("已经是最后一个步骤");
  14474. return;
  14475. }
  14476. this.toolIndex = this.toolIndex + 1;
  14477. this.tool =
  14478. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14479. this.taskCount
  14480. ].toolChoose[this.toolIndex];
  14481. }
  14482. this.$forceUpdate();
  14483. },
  14484. checkBz(index) {
  14485. this.toolIndex = index;
  14486. this.tool =
  14487. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14488. this.taskCount
  14489. ].toolChoose[this.toolIndex];
  14490. this.isUpdateToolDetail = false;
  14491. this.$forceUpdate();
  14492. },
  14493. nextOrpreSteps(t) {
  14494. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14495. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14496. return;
  14497. }
  14498. var b = this.chapInfoList.length - 1;
  14499. if (t == 0) {
  14500. if (this.courseType == 0) {
  14501. if (this.taskCount == 0) {
  14502. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  14503. if (this.IsLookOpen) {
  14504. if (
  14505. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  14506. ) {
  14507. if (
  14508. this.courseDetail.userid != this.userid &&
  14509. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14510. ) {
  14511. this.$message.error("任务未解锁");
  14512. } else {
  14513. this.$message.error("上一任务未解锁");
  14514. }
  14515. return;
  14516. }
  14517. }
  14518. this.navList[this.courseType].isOpen = false;
  14519. this.courseType = b;
  14520. this.taskCount =
  14521. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14522. .length - 1;
  14523. this.navList[this.courseType].isOpen = true;
  14524. } else {
  14525. this.taskCount--;
  14526. }
  14527. } else {
  14528. if (this.taskCount == 0) {
  14529. this.navList[this.courseType].isOpen = false;
  14530. this.courseType--;
  14531. this.taskCount =
  14532. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14533. .length - 1;
  14534. this.navList[this.courseType].isOpen = true;
  14535. } else {
  14536. this.taskCount--;
  14537. }
  14538. }
  14539. } else {
  14540. if (this.courseType == b) {
  14541. if (
  14542. this.taskCount ==
  14543. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14544. 1
  14545. ) {
  14546. this.navList[this.courseType].isOpen = false;
  14547. this.courseType = 0;
  14548. this.taskCount = 0;
  14549. this.navList[this.courseType].isOpen = true;
  14550. } else {
  14551. var bbb = parseInt(this.taskCount) + 1;
  14552. if (
  14553. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14554. .isLook &&
  14555. this.courseDetail.userid != this.userid &&
  14556. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14557. this.IsLookOpen
  14558. ) {
  14559. this.$message.error("任务未解锁");
  14560. return;
  14561. }
  14562. this.taskCount++;
  14563. if (this.IsLookOpen) {
  14564. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14565. this.taskCount
  14566. ].isLook = true;
  14567. this.addCourseState(3);
  14568. }
  14569. }
  14570. } else {
  14571. if (
  14572. this.taskCount ==
  14573. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14574. 1
  14575. ) {
  14576. var bbb = parseInt(this.courseType) + 1;
  14577. if (
  14578. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  14579. this.courseDetail.userid != this.userid &&
  14580. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14581. this.IsLookOpen
  14582. ) {
  14583. this.$message.error("任务未解锁");
  14584. return;
  14585. }
  14586. this.navList[this.courseType].isOpen = false;
  14587. this.courseType++;
  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. }
  14604. if (this.IsLookOpen) {
  14605. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14606. this.taskCount
  14607. ].isLook = true;
  14608. this.addCourseState(3);
  14609. }
  14610. }
  14611. }
  14612. document.scrollingElement.scrollTop = 0;
  14613. this.showType = 0;
  14614. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14615. this.toolIndex = null;
  14616. this.isNoHomeWork = false;
  14617. (this.studyJuri = [
  14618. {
  14619. content: "",
  14620. cover: [],
  14621. upVedio: [],
  14622. upFile: [],
  14623. },
  14624. ]),
  14625. (this.radio = []);
  14626. this.isClickNav = "";
  14627. this.selectPz();
  14628. this.getHomeWork();
  14629. this.getCourseDetail();
  14630. this.$forceUpdate();
  14631. },
  14632. openTask(s, n, i) {
  14633. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14634. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14635. return;
  14636. }
  14637. if (this.IsLookOpen) {
  14638. if (
  14639. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  14640. this.courseDetail.userid != this.userid &&
  14641. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14642. ) {
  14643. this.$message.error("任务未解锁");
  14644. return;
  14645. }
  14646. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  14647. if (
  14648. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  14649. .isLook
  14650. ) {
  14651. this.$message.error("上一任务未解锁");
  14652. return;
  14653. }
  14654. } else if (s > this.courseType) {
  14655. if (n > 0) {
  14656. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  14657. this.$message.error("上一任务未解锁");
  14658. return;
  14659. }
  14660. } else {
  14661. if (
  14662. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  14663. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  14664. ].isLook
  14665. ) {
  14666. this.$message.error("上一任务未解锁");
  14667. return;
  14668. }
  14669. }
  14670. }
  14671. }
  14672. this.courseType = s;
  14673. this.navId = i;
  14674. this.taskCount = n;
  14675. if (this.IsLookOpen) {
  14676. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14677. this.taskCount
  14678. ].isLook = true;
  14679. this.addCourseState(3);
  14680. }
  14681. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  14682. this.isCloseList[ci].isClose = 0;
  14683. }
  14684. this.showType = 0;
  14685. this.isNoHomeWork = false;
  14686. (this.studyJuri = [
  14687. {
  14688. content: "",
  14689. cover: [],
  14690. upVedio: [],
  14691. upFile: [],
  14692. },
  14693. ]),
  14694. (this.radio = []);
  14695. document.scrollingElement.scrollTop = 0;
  14696. this.toolIndex = null;
  14697. // setTimeout(() => {
  14698. // let a = document.getElementById(i);
  14699. // if (a.offsetTop - 110 == 0) {
  14700. // window.scrollTo(0, 0);
  14701. // } else {
  14702. // window.scrollTo(0, a.offsetTop);
  14703. // }
  14704. // }, 0);
  14705. this.selectPz();
  14706. this.getHomeWork();
  14707. this.getCourseDetail();
  14708. },
  14709. get(i) {
  14710. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14711. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14712. return;
  14713. }
  14714. this.navList[i].isOpen = !this.navList[i].isOpen;
  14715. },
  14716. addQuestion() {
  14717. this.answerList.push({
  14718. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14719. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14720. });
  14721. let params = [
  14722. {
  14723. uid: this.userid,
  14724. cid: this.id,
  14725. stage: this.courseType,
  14726. task: this.taskCount,
  14727. tool: this.toolindex,
  14728. content: JSON.stringify(this.answerList),
  14729. type: 3,
  14730. },
  14731. ];
  14732. this.ajax
  14733. .post(this.$store.state.api + "addCourseWorks", params)
  14734. .then((res) => {
  14735. this.$message({
  14736. message: "提交成功",
  14737. type: "success",
  14738. });
  14739. this.answerList = [];
  14740. this.questionAnswer = "";
  14741. this.answerDialogVisible = false;
  14742. this.selectStudent();
  14743. this.selectSWorks();
  14744. this.selectSLook();
  14745. })
  14746. .catch((err) => {
  14747. this.$message.error("提交失败");
  14748. console.error(err);
  14749. });
  14750. },
  14751. addQuestionTeacher() {
  14752. this.answerList.push({
  14753. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14754. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14755. });
  14756. let params = [
  14757. {
  14758. uid: this.sStudent.userid,
  14759. cid: this.id,
  14760. stage: this.courseType,
  14761. task: this.taskCount,
  14762. tool: this.toolindex,
  14763. content: JSON.stringify(this.answerList),
  14764. type: 3,
  14765. ateacher: this.userid,
  14766. },
  14767. ];
  14768. this.ajax
  14769. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14770. .then((res) => {
  14771. this.$message({
  14772. message: "提交成功",
  14773. type: "success",
  14774. });
  14775. this.answerList = [];
  14776. this.questionAnswer = "";
  14777. this.answerDialogVisibleTeacher = false;
  14778. this.selectStudent();
  14779. this.selectSWorks();
  14780. this.selectSLook();
  14781. })
  14782. .catch((err) => {
  14783. this.$message.error("提交失败");
  14784. console.error(err);
  14785. });
  14786. },
  14787. refreshCourse() {
  14788. this.navList = [];
  14789. this.getCourseDetail(1);
  14790. },
  14791. setPz() {
  14792. if (this.ispzType == 4) {
  14793. this.ispzType = 0;
  14794. this.pzDialog = false;
  14795. return;
  14796. }
  14797. this.ispzType = 4;
  14798. this.pzDialog = true;
  14799. this.selectPz();
  14800. },
  14801. getCourseDetail(type, gindex) {
  14802. let loading;
  14803. if (type != 2 && type != 3) {
  14804. loading = this.$loading.service({
  14805. background: "rgba(255, 255, 255, 0.7)",
  14806. target: document.querySelector(".student_table"),
  14807. });
  14808. }
  14809. let params = {
  14810. courseId: this.id,
  14811. };
  14812. this.ajax
  14813. .get(this.$store.state.api + "selectCourseDetail3", params)
  14814. .then((res) => {
  14815. if (type != 2 && type != 3) {
  14816. loading.close();
  14817. if (
  14818. this.courseType >
  14819. JSON.parse(res.data[0][0].chapters).length - 1
  14820. ) {
  14821. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  14822. }
  14823. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  14824. .chapterInfo[0].taskJson;
  14825. var b = [
  14826. "AVI",
  14827. "NAVI",
  14828. "MPEG",
  14829. "ASF",
  14830. "MOV",
  14831. "WMV",
  14832. "3GP",
  14833. "RM",
  14834. "RMVB",
  14835. "FLV",
  14836. "F4V",
  14837. "H.264",
  14838. "H.265",
  14839. "REAL VIDEO",
  14840. "MKV",
  14841. "WebM",
  14842. "HDDVD",
  14843. "MP4",
  14844. "MPG",
  14845. "M4V",
  14846. "MGV",
  14847. "OGV",
  14848. "QTM",
  14849. "STR",
  14850. "AMC",
  14851. "DVX",
  14852. "EVO",
  14853. "DAT",
  14854. "OGG",
  14855. "OGM",
  14856. "MP3",
  14857. ];
  14858. let _chapterData = [];
  14859. for (var i = 0; i < a.length; i++) {
  14860. var c = a[i].chapterData;
  14861. this.vedio[i] = [];
  14862. this.textList[i] = [];
  14863. this.lineList[i] = [];
  14864. this.chapToolList[i] = [];
  14865. this.file[i] = [];
  14866. this.fileC[i] = [];
  14867. _chapterData[i] = c.filter((el) => {
  14868. return el.type != 12;
  14869. });
  14870. this.fileC[i] = c.filter((el) => {
  14871. return el.type == 12;
  14872. });
  14873. for (var j = 0; j < c.length; j++) {
  14874. if (c[j].type == 7) {
  14875. this.chapToolList[i].push(c[j]);
  14876. } else if (c[j].type == 8) {
  14877. this.lineList[i].push(c[j]);
  14878. } else if (c[j].type == 6) {
  14879. this.textList[i].push(c[j]);
  14880. } else {
  14881. if (
  14882. b.indexOf(
  14883. c[j].url
  14884. .split(".")
  14885. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  14886. ) != -1
  14887. ) {
  14888. this.vedio[i].push(c[j]);
  14889. } else {
  14890. this.file[i].push(c[j]);
  14891. }
  14892. }
  14893. }
  14894. var d = JSON.parse(JSON.stringify(this.playerOptions));
  14895. d.sources[0].src =
  14896. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  14897. this.playerO[i] = d;
  14898. }
  14899. this.courseDetail = res.data[0][0];
  14900. this.tcid = this.arrayToArray(
  14901. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14902. this.tcid2 ? this.tcid2.split(",") : []
  14903. ).join(",");
  14904. console.log(this.tcid);
  14905. this.evalua = res.data[0][0].evaId;
  14906. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  14907. this.courseType
  14908. ];
  14909. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  14910. if (this.tcid && res.data[1].length) {
  14911. let _inviteA = [];
  14912. for (var ik = 0; ik < res.data[1].length; ik++) {
  14913. _inviteA.push({
  14914. cid: res.data[1][ik].classid,
  14915. ic: res.data[1][ik].code,
  14916. });
  14917. }
  14918. for (var ik = 0; ik < _inviteA.length; ik++) {
  14919. if (
  14920. this.arrayToArray(
  14921. _inviteA[ik].cid.split(","),
  14922. this.tcid.split(",")
  14923. ).length
  14924. ) {
  14925. this.inviteCode = _inviteA[ik].ic;
  14926. break;
  14927. }
  14928. }
  14929. }
  14930. for (var l = 0; l < this.chapInfoList.length; l++) {
  14931. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  14932. for (var m = 0; m < w.length; m++) {
  14933. w[m].id = l + "-" + m;
  14934. }
  14935. }
  14936. if (
  14937. _chapterData[this.taskCount].length &&
  14938. _chapterData[this.taskCount][0].type == 2
  14939. ) {
  14940. this.showType = 0;
  14941. } else {
  14942. if (_chapterData[this.taskCount].length > 0) {
  14943. let _url = _chapterData[this.taskCount][0].url;
  14944. if (_chapterData[this.taskCount][0].type == 8) {
  14945. this.showType = 2;
  14946. if (
  14947. _url.indexOf("https://") == -1 &&
  14948. _url.indexOf("http://") == -1
  14949. ) {
  14950. _url = "https://" + _url;
  14951. }
  14952. this.pptImgUrl1 = _url;
  14953. } else if (_chapterData[this.taskCount][0].type == 3) {
  14954. if (
  14955. _url
  14956. .split(".")
  14957. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14958. ) {
  14959. this.showType = 3;
  14960. this.pptImgUrl1 = _url;
  14961. } else if (
  14962. this.isAssetTypeAnImage(
  14963. _url
  14964. .split(".")
  14965. [_url.split(".").length - 1].toLocaleLowerCase()
  14966. )
  14967. ) {
  14968. this.showType = 4;
  14969. this.pptImgUrl1 = _url;
  14970. } else {
  14971. this.showType = 2;
  14972. this.pptImgUrl1 =
  14973. "https://view.officeapps.live.com/op/view.aspx?src=" +
  14974. _url;
  14975. }
  14976. } else if (_chapterData[this.taskCount][0].type == 13) {
  14977. this.showType = 4;
  14978. this.pptImgUrl1 = _url;
  14979. } else if (_chapterData[this.taskCount][0].type == 6) {
  14980. this.showType = 1;
  14981. this.text = this.textList[this.taskCount][0];
  14982. }
  14983. }
  14984. }
  14985. this.isClickNav = 0;
  14986. if (
  14987. !_chapterData[this.taskCount].length ||
  14988. _chapterData[this.taskCount][0].type == 12
  14989. ) {
  14990. this.isClickNav = "";
  14991. this.showType = "";
  14992. }
  14993. this.vChapterData = _chapterData;
  14994. if (
  14995. this.toolIndex == null &&
  14996. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14997. this.taskCount
  14998. ].toolChoose.length
  14999. ) {
  15000. this.toolIndex = 0;
  15001. this.tool =
  15002. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15003. this.taskCount
  15004. ].toolChoose[this.toolIndex];
  15005. }
  15006. } else if (type != 3) {
  15007. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15008. .chapterInfo[0].taskJson;
  15009. var b = [
  15010. "AVI",
  15011. "NAVI",
  15012. "MPEG",
  15013. "ASF",
  15014. "MOV",
  15015. "WMV",
  15016. "3GP",
  15017. "RM",
  15018. "RMVB",
  15019. "FLV",
  15020. "F4V",
  15021. "H.264",
  15022. "H.265",
  15023. "REAL VIDEO",
  15024. "MKV",
  15025. "WebM",
  15026. "HDDVD",
  15027. "MP4",
  15028. "MPG",
  15029. "M4V",
  15030. "MGV",
  15031. "OGV",
  15032. "QTM",
  15033. "STR",
  15034. "AMC",
  15035. "DVX",
  15036. "EVO",
  15037. "DAT",
  15038. "OGG",
  15039. "OGM",
  15040. "MP3",
  15041. ];
  15042. let _chapterData = [];
  15043. for (var i = 0; i < a.length; i++) {
  15044. var c = a[i].chapterData;
  15045. this.vedio[i] = [];
  15046. this.textList[i] = [];
  15047. this.lineList[i] = [];
  15048. this.chapToolList[i] = [];
  15049. this.file[i] = [];
  15050. this.fileC[i] = [];
  15051. _chapterData[i] = c.filter((el) => {
  15052. return el.type != 12;
  15053. });
  15054. this.fileC[i] = c.filter((el) => {
  15055. return el.type == 12;
  15056. });
  15057. for (var j = 0; j < c.length; j++) {
  15058. if (c[j].type == 7) {
  15059. this.chapToolList[i].push(c[j]);
  15060. } else if (c[j].type == 8) {
  15061. this.lineList[i].push(c[j]);
  15062. } else if (c[j].type == 6) {
  15063. this.textList[i].push(c[j]);
  15064. } else {
  15065. if (
  15066. b.indexOf(
  15067. c[j].url
  15068. .split(".")
  15069. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15070. ) != -1
  15071. ) {
  15072. this.vedio[i].push(c[j]);
  15073. } else {
  15074. this.file[i].push(c[j]);
  15075. }
  15076. }
  15077. }
  15078. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15079. d.sources[0].src =
  15080. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15081. this.playerO[i] = d;
  15082. }
  15083. if (
  15084. _chapterData[this.taskCount].length &&
  15085. _chapterData[this.taskCount][0].type == 2
  15086. ) {
  15087. this.showType = 0;
  15088. } else {
  15089. if (_chapterData[this.taskCount].length > 0) {
  15090. let _url = _chapterData[this.taskCount][0].url;
  15091. if (_chapterData[this.taskCount][0].type == 8) {
  15092. this.showType = 2;
  15093. if (
  15094. _url.indexOf("https://") == -1 &&
  15095. _url.indexOf("http://") == -1
  15096. ) {
  15097. _url = "https://" + _url;
  15098. }
  15099. this.pptImgUrl1 = _url;
  15100. } else if (_chapterData[this.taskCount][0].type == 3) {
  15101. if (
  15102. _url
  15103. .split(".")
  15104. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15105. ) {
  15106. this.showType = 3;
  15107. this.pptImgUrl1 = _url;
  15108. } else if (
  15109. this.isAssetTypeAnImage(
  15110. _url
  15111. .split(".")
  15112. [_url.split(".").length - 1].toLocaleLowerCase()
  15113. )
  15114. ) {
  15115. this.showType = 4;
  15116. this.pptImgUrl1 = _url;
  15117. } else {
  15118. this.showType = 2;
  15119. this.pptImgUrl1 =
  15120. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15121. _url;
  15122. }
  15123. } else if (_chapterData[this.taskCount][0].type == 13) {
  15124. this.showType = 4;
  15125. this.pptImgUrl1 = _url;
  15126. } else if (_chapterData[this.taskCount][0].type == 6) {
  15127. this.showType = 1;
  15128. this.text = this.textList[this.taskCount][0];
  15129. }
  15130. }
  15131. }
  15132. this.isClickNav = 0;
  15133. if (
  15134. !_chapterData[this.taskCount].length ||
  15135. _chapterData[this.taskCount][0].type == 12
  15136. ) {
  15137. this.isClickNav = "";
  15138. this.showType = "";
  15139. }
  15140. this.vChapterData = _chapterData;
  15141. this.$forceUpdate();
  15142. }
  15143. this.isUpdateToolDetail = false;
  15144. this.$nextTick(() => {
  15145. setTimeout(() => {
  15146. this.checkEva();
  15147. }, 1000);
  15148. });
  15149. let _this = this;
  15150. if (_this.timer) {
  15151. clearInterval(_this.timer);
  15152. _this.timer = null;
  15153. }
  15154. _this.selectSWorks(gindex);
  15155. _this.selectStudent();
  15156. _this.selectSLook();
  15157. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15158. _this.setCTask();
  15159. }
  15160. if (_this.dialogVisibleGroup) {
  15161. _this.groupJson =
  15162. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15163. _this.taskCount
  15164. ].toolChoose[_this.toolindex].groupJson;
  15165. }
  15166. _this.timer = setInterval(function () {
  15167. if (_this.tcid) {
  15168. _this.getCourseGroup(gindex);
  15169. } else {
  15170. _this.selectSWorks(gindex);
  15171. }
  15172. _this.selectStudent();
  15173. _this.selectSLook();
  15174. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15175. _this.setCTask();
  15176. }
  15177. if (_this.dialogVisibleGroup) {
  15178. _this.groupJson =
  15179. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15180. _this.taskCount
  15181. ].toolChoose[_this.toolindex].groupJson;
  15182. }
  15183. if (_this.tType == 4 || _this.ispzType == 4) {
  15184. _this.selectPz();
  15185. }
  15186. }, 5000);
  15187. })
  15188. .catch((err) => {
  15189. loading.close();
  15190. console.error(err);
  15191. });
  15192. },
  15193. getCourseGroup(gindex) {
  15194. let params = {
  15195. cid: this.id,
  15196. classid: this.tcid ? this.tcid : "1",
  15197. };
  15198. this.ajax
  15199. .get(this.$store.state.api + "getCourseGroup", params)
  15200. .then((res) => {
  15201. if (res.data && res.data[0].length) {
  15202. if (!this.isGroup) {
  15203. let courseGroup = JSON.parse(res.data[0][0].group);
  15204. courseGroup.group = courseGroup.group.filter((el) => {
  15205. el.works = [];
  15206. return el;
  15207. });
  15208. this.courseGroup = courseGroup;
  15209. let groupPerson = res.data[1];
  15210. let group = JSON.parse(res.data[0][0].group).group;
  15211. let courseGroupStudent = {};
  15212. let courseGroupStudentUid = {};
  15213. for (var i = 0; i < group.length; i++) {
  15214. courseGroupStudent[group[i].id] = [];
  15215. courseGroupStudentUid[group[i].id] = [];
  15216. for (var j = 0; j < groupPerson.length; j++) {
  15217. if (groupPerson[j].groupCid == group[i].id) {
  15218. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15219. courseGroupStudentUid[group[i].id].push(
  15220. groupPerson[j].userid
  15221. );
  15222. }
  15223. }
  15224. }
  15225. this.courseGroupStudent = courseGroupStudent;
  15226. this.courseGroupStudentUid = courseGroupStudentUid;
  15227. }
  15228. this.isGroup = true;
  15229. this.selectSWorks(gindex);
  15230. } else {
  15231. this.selectSWorks(gindex);
  15232. this.isGroup = false;
  15233. }
  15234. })
  15235. .catch((err) => {
  15236. // this.$message.error("网络不佳");
  15237. console.error(err);
  15238. });
  15239. },
  15240. setOperationTime() {
  15241. let _this = this;
  15242. if (_this.opertimer) {
  15243. clearInterval(_this.opertimer);
  15244. _this.opertimer = null;
  15245. }
  15246. _this.opertimer = setInterval(() => {
  15247. _this.setoTime("600");
  15248. }, 600000);
  15249. },
  15250. setoTime(time) {
  15251. let params = [
  15252. {
  15253. uid: this.userid,
  15254. cid: this.id,
  15255. type: "2",
  15256. time: time,
  15257. },
  15258. ];
  15259. this.ajax
  15260. .post(this.$store.state.api + "addOperationTimeT2", params)
  15261. .then((res) => {})
  15262. .catch((err) => {
  15263. console.error(err);
  15264. });
  15265. },
  15266. addPz(type, content) {
  15267. if (type == "1" && this.pzConText == "") {
  15268. this.$message.error("批注不能为空!");
  15269. return;
  15270. }
  15271. let params = [
  15272. {
  15273. cid: this.id,
  15274. uid: this.userid,
  15275. s: this.courseType,
  15276. t: this.taskCount,
  15277. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15278. type: type,
  15279. },
  15280. ];
  15281. this.ajax
  15282. .post(this.$store.state.api + "addPz2", params)
  15283. .then((res) => {
  15284. this.$message({
  15285. message: "添加成功",
  15286. type: "success",
  15287. });
  15288. this.pzConText = "";
  15289. this.addPzDialog = false;
  15290. this.selectPz();
  15291. })
  15292. .catch((err) => {
  15293. this.$message.error("添加失败");
  15294. console.error(err);
  15295. });
  15296. },
  15297. deletePz(id) {
  15298. this.$confirm("确定删除此批注吗?", "提示", {
  15299. confirmButtonText: "确定",
  15300. cancelButtonText: "取消",
  15301. type: "warning",
  15302. })
  15303. .then(() => {
  15304. let params = [
  15305. {
  15306. id: id,
  15307. },
  15308. ];
  15309. this.ajax
  15310. .post(this.$store.state.api + "deletePz", params)
  15311. .then((res) => {
  15312. this.$message({
  15313. message: "删除成功",
  15314. type: "success",
  15315. });
  15316. this.selectPz();
  15317. })
  15318. .catch((err) => {
  15319. this.$message.error("网络异常");
  15320. console.error(err);
  15321. });
  15322. })
  15323. .catch(() => {});
  15324. },
  15325. selectPz() {
  15326. let params = {
  15327. cid: this.id,
  15328. s: this.courseType,
  15329. t: this.taskCount,
  15330. };
  15331. this.ajax
  15332. .get(this.$store.state.api + "selectPzList", params)
  15333. .then((res) => {
  15334. this.pzList = res.data[0];
  15335. })
  15336. .catch((err) => {
  15337. console.error(err);
  15338. });
  15339. },
  15340. updateSLook() {
  15341. let params = {
  15342. sopen: this.sIsOpen == false ? 1 : 2,
  15343. cid: this.id,
  15344. };
  15345. this.ajax
  15346. .get(this.$store.state.api + "updateCourseSLook", params)
  15347. .then((res) => {
  15348. if (this.sIsOpen == true) {
  15349. this.$message({
  15350. message: "权限设置成功",
  15351. type: "success",
  15352. });
  15353. } else {
  15354. this.$message({
  15355. message: "权限关闭成功",
  15356. type: "success",
  15357. });
  15358. }
  15359. })
  15360. .catch((err) => {
  15361. console.error(err);
  15362. });
  15363. },
  15364. updateFollow() {
  15365. let params = [
  15366. {
  15367. sopen: this.IsFollow == false ? 1 : 2,
  15368. cid: this.id,
  15369. },
  15370. ];
  15371. this.ajax
  15372. .post(this.$store.state.api + "updateCourseFollow", params)
  15373. .then((res) => {
  15374. if (this.IsFollow == true) {
  15375. this.$message({
  15376. message: "开启成功",
  15377. type: "success",
  15378. });
  15379. } else {
  15380. this.$message({
  15381. message: "关闭成功",
  15382. type: "success",
  15383. });
  15384. }
  15385. this.setCTask();
  15386. })
  15387. .catch((err) => {
  15388. console.error(err);
  15389. });
  15390. },
  15391. setCTask() {
  15392. let params = [
  15393. {
  15394. sopen: this.courseType + "-" + this.taskCount,
  15395. cid: this.id,
  15396. },
  15397. ];
  15398. this.ajax
  15399. .post(this.$store.state.api + "updateCourseFollowC", params)
  15400. .then((res) => {})
  15401. .catch((err) => {
  15402. console.error(err);
  15403. });
  15404. },
  15405. updateLookOpen() {
  15406. let params = [
  15407. {
  15408. sopen: this.IsLookOpen == false ? 1 : 2,
  15409. cid: this.id,
  15410. },
  15411. ];
  15412. this.ajax
  15413. .post(this.$store.state.api + "updateCourseLookOpen", params)
  15414. .then((res) => {
  15415. if (this.IsLookOpen == true) {
  15416. // if (this.courseType != 0 && this.taskCount != 0) {
  15417. // this.openTask(0, 0, "0-0");
  15418. // }
  15419. this.$message({
  15420. message: "权限设置成功",
  15421. type: "success",
  15422. });
  15423. } else {
  15424. this.$message({
  15425. message: "权限关闭成功",
  15426. type: "success",
  15427. });
  15428. }
  15429. this.getCourseState(2);
  15430. })
  15431. .catch((err) => {
  15432. console.error(err);
  15433. });
  15434. },
  15435. selectSLook() {
  15436. let params = {
  15437. cid: this.id,
  15438. };
  15439. this.ajax
  15440. .get(this.$store.state.api + "selectCourseSLook", params)
  15441. .then((res) => {
  15442. // this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  15443. this.sIsOpen = true;
  15444. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  15445. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  15446. if (!this.IsLookOpen) {
  15447. this.setNavList();
  15448. } else {
  15449. this.getCourseState(1);
  15450. }
  15451. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15452. let _followC = res.data[0][0].followC.split("-");
  15453. if (
  15454. this.courseType != _followC[0] ||
  15455. this.taskCount != _followC[1]
  15456. ) {
  15457. this.navList[this.courseType].isOpen = false;
  15458. this.courseType = _followC[0];
  15459. this.navList[this.courseType].isOpen = true;
  15460. this.taskCount = parseInt(_followC[1]);
  15461. this.navId = res.data[0][0].followC;
  15462. this.getCourseDetail();
  15463. }
  15464. }
  15465. })
  15466. .catch((err) => {
  15467. console.error(err);
  15468. });
  15469. },
  15470. setNavList() {
  15471. if (this.navList.length == 0) {
  15472. this.navList = [];
  15473. for (var l = 0; l < this.chapInfoList.length; l++) {
  15474. var q = this.chapInfoList[l].dyName;
  15475. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15476. var e;
  15477. this.navList.push({
  15478. dyName: q,
  15479. isOpen: l === 0 ? true : false,
  15480. task: [],
  15481. });
  15482. for (var r = 0; r < w.length; r++) {
  15483. e = w[r].task;
  15484. if (this.chapInfoList[l].easy == 1) {
  15485. this.navList[l].task.push({
  15486. taskName: q,
  15487. id: l + "-" + r,
  15488. isLook: w[r].isLook,
  15489. });
  15490. } else {
  15491. this.navList[l].task.push({
  15492. taskName: e,
  15493. id: l + "-" + r,
  15494. isLook: w[r].isLook,
  15495. });
  15496. }
  15497. // this.navId = this.navId ? this.navId : l + "-" + r;
  15498. // this.navId = l + "-" + r;
  15499. }
  15500. }
  15501. this.navList[0].isOpen = false;
  15502. this.navList[this.courseType].isOpen = true;
  15503. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15504. } else {
  15505. this.setNavList2();
  15506. }
  15507. },
  15508. setNavList2() {
  15509. for (var l = 0; l < this.chapInfoList.length; l++) {
  15510. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15511. for (var r = 0; r < w.length; r++) {
  15512. this.navList[l].task[r].isLook = w[r].isLook;
  15513. }
  15514. }
  15515. if (
  15516. this.IsLookOpen &&
  15517. !this.navList[this.courseType].task[this.taskCount].isLook
  15518. ) {
  15519. this.openTask(0, 0, "0-0");
  15520. }
  15521. this.$forceUpdate();
  15522. },
  15523. getCourseState(type) {
  15524. let params = {
  15525. cid: this.id,
  15526. };
  15527. this.ajax
  15528. .get(this.$store.state.api + "getCourseState", params)
  15529. .then((res) => {
  15530. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  15531. this.chapInfoList = JSON.parse(res.data[0][0].state);
  15532. this.setNavList();
  15533. this.$forceUpdate();
  15534. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  15535. this.addCourseState(2);
  15536. } else {
  15537. this.addCourseState(1);
  15538. }
  15539. })
  15540. .catch((err) => {
  15541. console.error(err);
  15542. });
  15543. },
  15544. addCourseState(type) {
  15545. let _state = this.chapInfoList;
  15546. // this.courseType this.taskCount
  15547. if (type == 1 || type == 2) {
  15548. for (var i = 0; i < _state.length; i++) {
  15549. let el = _state[i].chapterInfo[0].taskJson;
  15550. for (var j = 0; j < el.length; j++) {
  15551. // if (i == 0 && j == 0) {
  15552. // el[j].isLook = true;
  15553. // } else {
  15554. // el[j].isLook = false;
  15555. // }
  15556. if (
  15557. this.courseType > i ||
  15558. (this.courseType == i && this.taskCount + 1 > j)
  15559. ) {
  15560. el[j].isLook = true;
  15561. } else {
  15562. el[j].isLook = false;
  15563. }
  15564. }
  15565. }
  15566. }
  15567. let params = [
  15568. {
  15569. cid: this.id,
  15570. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  15571. },
  15572. ];
  15573. this.ajax
  15574. .post(
  15575. this.$store.state.api +
  15576. (type == 1 ? "addCourseState" : "updateCourseSate"),
  15577. params
  15578. )
  15579. .then((res) => {
  15580. if (this.IsLookOpen) {
  15581. this.setNavList();
  15582. }
  15583. if (type == 3 && type == 2) {
  15584. this.getCourseState(1);
  15585. }
  15586. })
  15587. .catch((err) => {
  15588. console.error(err);
  15589. });
  15590. },
  15591. getHomeWork() {
  15592. let params = {
  15593. cid: this.id,
  15594. stage: this.courseType,
  15595. task: this.taskCount,
  15596. uid: this.userid,
  15597. };
  15598. this.ajax
  15599. .get(this.$store.state.api + "selectWork", params)
  15600. .then((res) => {
  15601. if (res.data[0].length > 0) {
  15602. this.studyJuri = JSON.parse(res.data[0][0].content);
  15603. this.isNoHomeWork = true;
  15604. }
  15605. })
  15606. .catch((err) => {
  15607. console.error(err);
  15608. });
  15609. },
  15610. isAssetTypeAnImage(ext) {
  15611. return (
  15612. [
  15613. "png",
  15614. "jpg",
  15615. "jpeg",
  15616. "bmp",
  15617. "gif",
  15618. "webp",
  15619. "psd",
  15620. "svg",
  15621. "tiff",
  15622. ].indexOf(ext) !== -1
  15623. );
  15624. },
  15625. switchVideo(media) {
  15626. this.playerO = {};
  15627. this.playerOptions.poster = "";
  15628. this.playerOptions.sources[0].src = media;
  15629. this.playerO = this.playerOptions;
  15630. },
  15631. onPlayerPlay() {},
  15632. lookVedio(u, i) {
  15633. this.isClickNav = "";
  15634. // this.playerOptions.sources[0].src = u;
  15635. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15636. d.sources[0].src = u;
  15637. this.playerO[this.taskCount] = d;
  15638. this.showType = 0;
  15639. // this.isClickNav = "video" + i;
  15640. this.isClickNav = i;
  15641. this.$forceUpdate();
  15642. },
  15643. lookText(i, t) {
  15644. this.isClickNav = "";
  15645. // this.text = this.textList[i][t];
  15646. this.text = this.vChapterData[i][t];
  15647. // this.dialogVisible1 = true;
  15648. this.showType = 1;
  15649. // this.isClickNav = "text" + t;
  15650. this.isClickNav = t;
  15651. },
  15652. lookTools(i, t) {
  15653. this.chapTools = this.chapToolList[i][t];
  15654. this.dialogVisible2 = true;
  15655. },
  15656. openFile(f) {
  15657. this.pptImgUrl = "";
  15658. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15659. if (
  15660. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  15661. -1
  15662. ) {
  15663. this.pptImgUrl =
  15664. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  15665. this.showPDF = false;
  15666. this.dialogVisible3 = true;
  15667. } else if (
  15668. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15669. ) {
  15670. this.pptImgUrl = f;
  15671. this.showPDF = true;
  15672. this.dialogVisible3 = true;
  15673. }
  15674. },
  15675. openTable(f) {
  15676. this.tableJson = JSON.parse(f.works);
  15677. this.$forceUpdate();
  15678. this.dialogVisibleTable2 = true;
  15679. },
  15680. openWord(f) {
  15681. this.tableJson = JSON.parse(f.works);
  15682. this.$forceUpdate();
  15683. this.dialogVisibleTable3 = true;
  15684. },
  15685. doUrl(url, i) {
  15686. this.isClickNav = "";
  15687. this.pptImgUrl1 = "";
  15688. this.showType = 2;
  15689. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  15690. url = "https://" + url;
  15691. }
  15692. this.pptImgUrl1 = url;
  15693. // this.isClickNav = "line" + i;
  15694. this.isClickNav = i;
  15695. },
  15696. checkPhoto(f, i) {
  15697. this.showType = 4;
  15698. this.pptImgUrl1 = f.url;
  15699. this.isClickNav = i;
  15700. this.$forceUpdate();
  15701. },
  15702. downFile(f, i) {
  15703. this.isClickNav = "";
  15704. this.pptImgUrl1 = "";
  15705. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  15706. if (
  15707. a.indexOf(
  15708. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  15709. ) != -1
  15710. ) {
  15711. this.pptImgUrl1 =
  15712. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  15713. // this.dialogVisible3 = true;
  15714. this.showType = 2;
  15715. } else if (
  15716. this.isAssetTypeAnImage(
  15717. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  15718. )
  15719. ) {
  15720. this.showType = 4;
  15721. this.pptImgUrl1 = f.url;
  15722. } else if (
  15723. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  15724. "PDF"
  15725. ) {
  15726. this.pptImgUrl1 = f.url;
  15727. // this.dialogVisible3 = true;
  15728. this.showType = 3;
  15729. } else {
  15730. window.open(this.file[i].url);
  15731. }
  15732. // this.isClickNav = "word" + i;
  15733. this.isClickNav = i;
  15734. },
  15735. downFileList(i) {
  15736. window.open(this.noImgList[i].url);
  15737. },
  15738. openAddWork() {
  15739. this.dialogVisible = true;
  15740. },
  15741. addBzWorks() {
  15742. let params = [
  15743. {
  15744. uid: this.userid,
  15745. cid: this.id,
  15746. stage: this.courseType,
  15747. task: this.taskCount,
  15748. tool: this.toolindex,
  15749. content: JSON.stringify(this.eScore),
  15750. type: 6,
  15751. },
  15752. ];
  15753. this.ajax
  15754. .post(this.$store.state.api + "addCourseWorks", params)
  15755. .then((res) => {
  15756. this.$message({
  15757. message: "提交成功",
  15758. type: "success",
  15759. });
  15760. this.eScore = { eBzText: "", eStar: [] };
  15761. this.studentEvalDialogVisible = false;
  15762. this.selectSWorks();
  15763. })
  15764. .catch((err) => {
  15765. this.$message.error("提交失败");
  15766. console.error(err);
  15767. });
  15768. },
  15769. addBzWorksTeacher() {
  15770. let params = [
  15771. {
  15772. uid: this.sStudent.userid,
  15773. cid: this.id,
  15774. stage: this.courseType,
  15775. task: this.taskCount,
  15776. tool: this.toolindex,
  15777. content: JSON.stringify(this.eScore),
  15778. type: 6,
  15779. },
  15780. ];
  15781. this.ajax
  15782. .post(this.$store.state.api + "addCourseWorks", params)
  15783. .then((res) => {
  15784. this.$message({
  15785. message: "提交成功",
  15786. type: "success",
  15787. });
  15788. this.eScore = { eBzText: "", eStar: [] };
  15789. this.studentEvalDialogVisibleTeacher = false;
  15790. this.selectSWorks();
  15791. })
  15792. .catch((err) => {
  15793. this.$message.error("提交失败");
  15794. console.error(err);
  15795. });
  15796. },
  15797. addStudentAsk() {
  15798. if (!this.radio.length) {
  15799. this.$message.error("请选择选项");
  15800. return;
  15801. }
  15802. for (var i = 0; i < this.askJson.askCount; i++) {
  15803. if (
  15804. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15805. (this.radio[i] !== 0 && !this.radio[i])
  15806. ) {
  15807. this.$message.error("请选择选项");
  15808. return;
  15809. }
  15810. }
  15811. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15812. let params = [
  15813. {
  15814. uid: this.userid,
  15815. cid: this.id,
  15816. stage: this.courseType,
  15817. task: this.taskCount,
  15818. tool: this.toolindex,
  15819. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15820. type: 2,
  15821. },
  15822. ];
  15823. this.ajax
  15824. .post(this.$store.state.api + "addCourseWorks", params)
  15825. .then((res) => {
  15826. this.$message({
  15827. message: "提交成功",
  15828. type: "success",
  15829. });
  15830. this.askList = [];
  15831. this.dialogVisible5 = false;
  15832. this.selectStudent();
  15833. this.selectSWorks();
  15834. this.selectSLook();
  15835. })
  15836. .catch((err) => {
  15837. this.$message.error("提交失败");
  15838. console.error(err);
  15839. });
  15840. },
  15841. addStudentAskTeacher() {
  15842. if (!this.radio.length) {
  15843. this.$message.error("请选择选项");
  15844. return;
  15845. }
  15846. for (var i = 0; i < this.askJson.askCount; i++) {
  15847. if (
  15848. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15849. (this.radio[i] !== 0 && !this.radio[i])
  15850. ) {
  15851. this.$message.error("请选择选项");
  15852. return;
  15853. }
  15854. }
  15855. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15856. let params = [
  15857. {
  15858. uid: this.sStudent.userid,
  15859. cid: this.id,
  15860. stage: this.courseType,
  15861. task: this.taskCount,
  15862. tool: this.toolindex,
  15863. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15864. type: 2,
  15865. },
  15866. ];
  15867. this.ajax
  15868. .post(this.$store.state.api + "addCourseWorks", params)
  15869. .then((res) => {
  15870. this.$message({
  15871. message: "提交成功",
  15872. type: "success",
  15873. });
  15874. this.askList = [];
  15875. this.dialogVisible5Teacher = false;
  15876. this.selectStudent();
  15877. this.selectSWorks();
  15878. this.selectSLook();
  15879. })
  15880. .catch((err) => {
  15881. this.$message.error("提交失败");
  15882. console.error(err);
  15883. });
  15884. },
  15885. addStudentTest() {
  15886. if (!this.radio.length) {
  15887. this.$message.error("请选择选项");
  15888. return;
  15889. }
  15890. for (var i = 0; i < this.testJson.testCount; i++) {
  15891. if (
  15892. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15893. (this.radio[i] !== 0 && !this.radio[i])
  15894. ) {
  15895. this.$message.error("请选择选项");
  15896. return;
  15897. }
  15898. }
  15899. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15900. let params = [
  15901. {
  15902. uid: this.userid,
  15903. cid: this.id,
  15904. stage: this.courseType,
  15905. task: this.taskCount,
  15906. tool: this.toolindex,
  15907. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15908. type: 8,
  15909. },
  15910. ];
  15911. this.ajax
  15912. .post(this.$store.state.api + "addCourseWorks", params)
  15913. .then((res) => {
  15914. this.$message({
  15915. message: "提交成功",
  15916. type: "success",
  15917. });
  15918. this.askList = [];
  15919. this.dialogVisibleChoice = false;
  15920. this.selectStudent();
  15921. this.selectSWorks();
  15922. this.selectSLook();
  15923. })
  15924. .catch((err) => {
  15925. this.$message.error("提交失败");
  15926. console.error(err);
  15927. });
  15928. },
  15929. addStudentTestTeacher() {
  15930. if (!this.radio.length) {
  15931. this.$message.error("请选择选项");
  15932. return;
  15933. }
  15934. for (var i = 0; i < this.testJson.testCount; i++) {
  15935. if (
  15936. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15937. (this.radio[i] !== 0 && !this.radio[i])
  15938. ) {
  15939. this.$message.error("请选择选项");
  15940. return;
  15941. }
  15942. }
  15943. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15944. let params = [
  15945. {
  15946. uid: this.sStudent.userid,
  15947. cid: this.id,
  15948. stage: this.courseType,
  15949. task: this.taskCount,
  15950. tool: this.toolindex,
  15951. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15952. type: 8,
  15953. },
  15954. ];
  15955. this.ajax
  15956. .post(this.$store.state.api + "addCourseWorks", params)
  15957. .then((res) => {
  15958. this.$message({
  15959. message: "提交成功",
  15960. type: "success",
  15961. });
  15962. this.askList = [];
  15963. this.dialogVisibleChoiceTeacher = false;
  15964. this.selectStudent();
  15965. this.selectSWorks();
  15966. this.selectSLook();
  15967. })
  15968. .catch((err) => {
  15969. this.$message.error("提交失败");
  15970. console.error(err);
  15971. });
  15972. },
  15973. addWork() {
  15974. if (this.studyJuri[0].content == "") {
  15975. this.$message.error("请将信息填写完整");
  15976. return;
  15977. } else if (this.studyJuri[0].cover.length == 0) {
  15978. this.$message.error("请将信息填写完整");
  15979. return;
  15980. } else if (this.studyJuri[0].upVedio.length == 0) {
  15981. this.$message.error("请将信息填写完整");
  15982. return;
  15983. }
  15984. if (this.isNoHomeWork) {
  15985. this.$confirm(
  15986. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  15987. "提示",
  15988. {
  15989. confirmButtonText: "确定",
  15990. cancelButtonText: "取消",
  15991. type: "warning",
  15992. }
  15993. )
  15994. .then(() => {
  15995. let params = [
  15996. {
  15997. uid: this.userid,
  15998. cid: this.id,
  15999. stage: this.courseType,
  16000. task: this.taskCount,
  16001. content: JSON.stringify(this.studyJuri),
  16002. },
  16003. ];
  16004. this.ajax
  16005. .post(this.$store.state.api + "addWorks", params)
  16006. .then((res) => {
  16007. this.$message({
  16008. message: "提交成功",
  16009. type: "success",
  16010. });
  16011. this.isNoHomeWork = true;
  16012. this.dialogVisible = false;
  16013. })
  16014. .catch((err) => {
  16015. this.$message.error("提交失败");
  16016. console.error(err);
  16017. });
  16018. })
  16019. .catch(() => {});
  16020. } else {
  16021. let params = [
  16022. {
  16023. uid: this.userid,
  16024. cid: this.id,
  16025. stage: this.courseType,
  16026. task: this.taskCount,
  16027. content: JSON.stringify(this.studyJuri),
  16028. },
  16029. ];
  16030. this.ajax
  16031. .post(this.$store.state.api + "addWorks", params)
  16032. .then((res) => {
  16033. this.$message({
  16034. message: "提交成功",
  16035. type: "success",
  16036. });
  16037. this.isNoHomeWork = true;
  16038. this.dialogVisible = false;
  16039. })
  16040. .catch((err) => {
  16041. this.$message.error("提交失败");
  16042. console.error(err);
  16043. });
  16044. }
  16045. },
  16046. selectCount() {
  16047. let params = {
  16048. cid: this.id,
  16049. chid: this.courseType,
  16050. uid: this.userid,
  16051. };
  16052. this.ajax
  16053. .get(this.$store.state.api + "selectToolsCount", params)
  16054. .then((res) => {
  16055. for (var i = 0; i < res.data[0].length; i++) {
  16056. if (res.data[0][i].tools == 1) {
  16057. this.wbCount = res.data[0][i].count;
  16058. } else if (res.data[0][i].tools == 2) {
  16059. this.wordCount = res.data[0][i].count;
  16060. } else if (res.data[0][i].tools == 3) {
  16061. this.mindCount = res.data[0][i].count;
  16062. } else if (res.data[0][i].tools == 4) {
  16063. this.askCount = res.data[0][i].count;
  16064. } else if (res.data[0][i].tools == 6) {
  16065. this.noteCount = res.data[0][i].count;
  16066. } else if (res.data[0][i].tools == 7) {
  16067. this.mindNetWorkCount = res.data[0][i].count;
  16068. } else if (res.data[0][i].tools == 8) {
  16069. this.libraryCount = res.data[0][i].count;
  16070. } else if (res.data[0][i].tools == 16) {
  16071. this.workCount = res.data[0][i].count;
  16072. } else if (res.data[0][i].tools == 10) {
  16073. this.timeCount = res.data[0][i].count;
  16074. } else if (res.data[0][i].tools == 15) {
  16075. this.answerCount = res.data[0][i].count;
  16076. } else if (res.data[0][i].tools == 18) {
  16077. this.trainCount = res.data[0][i].count;
  16078. }
  16079. }
  16080. })
  16081. .catch((err) => {
  16082. console.error(err);
  16083. });
  16084. },
  16085. openTools(t, i, index, c, sName) {
  16086. var z = JSON.parse(c);
  16087. this.noteName = sName;
  16088. if (t == 4) {
  16089. this.radio = [];
  16090. this.isAnswer = false;
  16091. let b = z[0].anwer;
  16092. this.radio = b;
  16093. this.askJson = z[0].askJson;
  16094. this.isAnswer = true;
  16095. this.dialogVisible5 = true;
  16096. } else if (t == 45) {
  16097. this.radio = [];
  16098. this.isAnswer = false;
  16099. let b = z[0].anwer;
  16100. this.radio = b;
  16101. this.testJson = z[0].testJson;
  16102. this.isAnswer = true;
  16103. this.dialogVisibleChoice = true;
  16104. }
  16105. // else if (t == 15) {
  16106. // this.answerQ = "";
  16107. // this.questionAnswer = "";
  16108. // this.answerQ = z[0].answerTitle;
  16109. // this.questionAnswer = z[0].answer;
  16110. // this.answerDialogVisible = true;
  16111. // }
  16112. },
  16113. fastText(p, t) {
  16114. if (t == 1) {
  16115. this.commentText += p;
  16116. } else {
  16117. this.eScore.eBzText += p;
  16118. }
  16119. },
  16120. addTools(t, i, index) {
  16121. var a = 0;
  16122. // this.taskCount = index;
  16123. this.toolindex = i;
  16124. if (t == 1) {
  16125. if (this.wbCount > 0) {
  16126. this.updateCount(this.wbCount, t);
  16127. } else {
  16128. this.wbCount++;
  16129. a = this.wbCount;
  16130. this.toolsCount(a, t);
  16131. }
  16132. window.parent.postMessage(
  16133. {
  16134. tools: "1",
  16135. cid: this.id,
  16136. stage: this.courseType,
  16137. task: this.taskCount,
  16138. tool: i,
  16139. },
  16140. "*"
  16141. );
  16142. } else if (t == 2) {
  16143. if (this.wordCount > 0) {
  16144. this.updateCount(this.wordCount, t);
  16145. } else {
  16146. this.wordCount++;
  16147. a = this.wordCount;
  16148. this.toolsCount(a, t);
  16149. }
  16150. window.parent.postMessage({ tools: "2" }, "*");
  16151. } else if (t == 3) {
  16152. if (this.mindCount > 0) {
  16153. this.updateCount(this.mindCount, t);
  16154. } else {
  16155. this.mindCount++;
  16156. a = this.mindCount;
  16157. this.toolsCount(a, t);
  16158. }
  16159. window.parent.postMessage(
  16160. {
  16161. tools: "3",
  16162. cid: this.id,
  16163. stage: this.courseType,
  16164. task: this.taskCount,
  16165. tool: i,
  16166. },
  16167. "*"
  16168. );
  16169. } else if (t == 4) {
  16170. this.radio = [];
  16171. this.noteName = "";
  16172. this.isAnswer = false;
  16173. if (this.askCount > 0) {
  16174. this.updateCount(this.askCount, t);
  16175. } else {
  16176. this.askCount++;
  16177. a = this.askCount;
  16178. this.toolsCount(a, t);
  16179. }
  16180. this.askJson.askJson =
  16181. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16182. index
  16183. ].toolChoose[i].askJson;
  16184. this.askJson.askTitle =
  16185. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16186. index
  16187. ].toolChoose[i].askTitle;
  16188. this.askJson.askCount =
  16189. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16190. index
  16191. ].toolChoose[i].askCount;
  16192. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16193. if (this.askJson.askJson[k].type == "2") {
  16194. this.radio.push([]);
  16195. } else {
  16196. this.radio.push("");
  16197. }
  16198. }
  16199. this.dialogVisible5 = true;
  16200. // window.parent.postMessage({ tools: "4" }, "*");
  16201. } else if (t == 45) {
  16202. this.noteName = "";
  16203. this.radio = [];
  16204. this.isAnswer = false;
  16205. if (this.askCount > 0) {
  16206. this.updateCount(this.askCount, t);
  16207. } else {
  16208. this.askCount++;
  16209. a = this.askCount;
  16210. this.toolsCount(a, t);
  16211. }
  16212. this.testJson =
  16213. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16214. index
  16215. ].toolChoose[i].testJson;
  16216. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16217. if (this.testJson.testJson[k].type == "2") {
  16218. this.radio.push([]);
  16219. } else {
  16220. this.radio.push("");
  16221. }
  16222. }
  16223. this.dialogVisibleChoice = true;
  16224. // window.parent.postMessage({ tools: "4" }, "*");
  16225. } else if (t == 5) {
  16226. if (this.scoreCount > 0) {
  16227. this.updateCount(this.scoreCount, t);
  16228. } else {
  16229. this.scoreCount++;
  16230. a = this.scoreCount;
  16231. this.toolsCount(a, t);
  16232. }
  16233. this.dialogVisible4 = true;
  16234. // window.parent.postMessage({ tools: "5" }, "*");
  16235. } else if (t == 6) {
  16236. if (this.noteCount > 0) {
  16237. this.updateCount(this.noteCount, t);
  16238. } else {
  16239. this.noteCount++;
  16240. a = this.noteCount;
  16241. this.toolsCount(a, t);
  16242. }
  16243. window.parent.postMessage(
  16244. {
  16245. tools: "6",
  16246. cid: this.id,
  16247. stage: this.courseType,
  16248. task: this.taskCount,
  16249. tool: i,
  16250. },
  16251. "*"
  16252. );
  16253. } else if (t == 7) {
  16254. if (this.mindNetWorkCount > 0) {
  16255. this.updateCount(this.mindNetWorkCount, t);
  16256. } else {
  16257. this.mindNetWorkCount++;
  16258. a = this.mindNetWorkCount;
  16259. this.toolsCount(a, t);
  16260. }
  16261. window.parent.postMessage(
  16262. {
  16263. tools: "7",
  16264. cid: this.id,
  16265. stage: this.courseType,
  16266. task: this.taskCount,
  16267. tool: i,
  16268. },
  16269. "*"
  16270. );
  16271. } else if (t == 16) {
  16272. if (this.workCount > 0) {
  16273. this.updateCount(this.workCount, t);
  16274. } else {
  16275. this.workCount++;
  16276. a = this.workCount;
  16277. this.toolsCount(a, t);
  16278. }
  16279. this.dialogVisible = true;
  16280. } else if (t == 50) {
  16281. if (this.tType == 2) {
  16282. this.$message.error("不支持学生使用");
  16283. return;
  16284. }
  16285. this.plworkFile = [];
  16286. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16287. if (!this.uploadCid) {
  16288. this.$message.error(
  16289. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16290. );
  16291. return;
  16292. }
  16293. this.selectUploadStudent(2);
  16294. } else if (t == 8) {
  16295. if (this.libraryCount > 0) {
  16296. this.updateCount(this.libraryCount, t);
  16297. } else {
  16298. this.libraryCount++;
  16299. a = this.libraryCount;
  16300. this.toolsCount(a, t);
  16301. }
  16302. window.parent.postMessage({ tools: "8" }, "*");
  16303. } else if (t == 17) {
  16304. if (this.libraryCount > 0) {
  16305. this.updateCount(this.libraryCount, t);
  16306. } else {
  16307. this.libraryCount++;
  16308. a = this.libraryCount;
  16309. this.toolsCount(a, t);
  16310. }
  16311. window.parent.postMessage({ tools: "17" }, "*");
  16312. } else if (t == 18) {
  16313. if (this.trainCount > 0) {
  16314. this.updateCount(this.trainCount, t);
  16315. } else {
  16316. this.trainCount++;
  16317. a = this.trainCount;
  16318. this.toolsCount(a, t);
  16319. }
  16320. window.parent.postMessage({ tools: "18" }, "*");
  16321. } else if (t == 10) {
  16322. if (this.timeCount > 0) {
  16323. this.updateCount(this.timeCount, t);
  16324. } else {
  16325. this.timeCount++;
  16326. a = this.timeCount;
  16327. this.toolsCount(a, t);
  16328. }
  16329. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  16330. .taskJson[index].toolChoose[i].preTime
  16331. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16332. .toolChoose[i].preTime
  16333. : "";
  16334. this.timeDialogVisible = true;
  16335. } else if (t == 15) {
  16336. this.answerQ = "";
  16337. this.questionAnswer = "";
  16338. if (this.answerCount > 0) {
  16339. this.updateCount(this.answerCount, t);
  16340. } else {
  16341. this.answerCount++;
  16342. a = this.answerCount;
  16343. this.toolsCount(a, t);
  16344. }
  16345. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16346. .taskJson[index].toolChoose[i].answerQ
  16347. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16348. .toolChoose[i].answerQ
  16349. : "";
  16350. this.answerDialogVisible = true;
  16351. } else if (t == 21) {
  16352. window.parent.postMessage({ tools: "21" }, "*");
  16353. } else if (t == 22) {
  16354. window.parent.postMessage({ tools: "22" }, "*");
  16355. } else if (t == 23) {
  16356. window.parent.postMessage({ tools: "23" }, "*");
  16357. } else if (t == 24) {
  16358. window.parent.postMessage({ tools: "24" }, "*");
  16359. } else if (t == 25) {
  16360. window.parent.postMessage({ tools: "25" }, "*");
  16361. } else if (t == 31) {
  16362. window.parent.postMessage({ tools: "31" }, "*");
  16363. } else if (t == 28) {
  16364. window.parent.postMessage({ tools: "28" }, "*");
  16365. } else if (t == 37) {
  16366. window.parent.postMessage({ tools: "37" }, "*");
  16367. } else if (t == 38) {
  16368. window.parent.postMessage({ tools: "38" }, "*");
  16369. } else if (t == 39) {
  16370. window.parent.postMessage({ tools: "39" }, "*");
  16371. } else if (t == 32) {
  16372. window.parent.postMessage({ tools: "32" }, "*");
  16373. } else if (t == 57) {
  16374. // window.parent.postMessage({ tools: "57" }, "*");
  16375. window.parent.postMessage(
  16376. {
  16377. tools: "57u",
  16378. cid: this.id,
  16379. stage: this.courseType,
  16380. task: this.taskCount,
  16381. tool: i,
  16382. },
  16383. "*"
  16384. );
  16385. } else if (t == 58) {
  16386. window.parent.postMessage({ tools: "58" }, "*");
  16387. } else if (t == 59) {
  16388. window.parent.postMessage({ tools: "59" }, "*");
  16389. } else if (t == 60) {
  16390. window.parent.postMessage({ tools: "60" }, "*");
  16391. } else if (t == 61) {
  16392. window.parent.postMessage({ tools: "61" }, "*");
  16393. } else if (t == 63) {
  16394. window.parent.postMessage({ tools: "63" }, "*");
  16395. } else if (t == 26) {
  16396. window.parent.postMessage(
  16397. {
  16398. tools: "26",
  16399. cid: this.id,
  16400. stage: this.courseType,
  16401. task: this.taskCount,
  16402. tool: i,
  16403. },
  16404. "*"
  16405. );
  16406. } else if (t == 40) {
  16407. if (this.evalCount > 0) {
  16408. this.updateCount(this.evalCount, t);
  16409. } else {
  16410. this.evalCount++;
  16411. a = this.evalCount;
  16412. this.toolsCount(a, t);
  16413. }
  16414. this.eScore = { eBzText: "", eStar: [] };
  16415. if (this.worksStudent[i].length) {
  16416. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16417. if (this.userid == this.worksStudent[i][k].userid) {
  16418. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16419. this.rateJson =
  16420. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16421. index
  16422. ].toolChoose[i].rateJson;
  16423. break;
  16424. } else {
  16425. this.rateJson =
  16426. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16427. index
  16428. ].toolChoose[i].rateJson;
  16429. }
  16430. }
  16431. } else {
  16432. this.rateJson =
  16433. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16434. index
  16435. ].toolChoose[i].rateJson;
  16436. }
  16437. this.isStar = false;
  16438. this.studentEvalDialogVisible = true;
  16439. } else if (t == 41) {
  16440. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16441. .taskJson[index].toolChoose[i].selectJson
  16442. ? JSON.parse(
  16443. JSON.stringify(
  16444. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16445. index
  16446. ].toolChoose[i].selectJson
  16447. )
  16448. )
  16449. : { url: "", select: [], answer: [] };
  16450. if (this.worksStudent[i].length) {
  16451. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16452. if (this.userid == this.worksStudent[i][k].userid) {
  16453. var a = this.worksStudent[i][k].works.split(",");
  16454. for (var ki = 0; ki < a.length; ki++) {
  16455. a[ki] = parseInt(a[ki]);
  16456. }
  16457. this.selectAnswer = {
  16458. answer: a,
  16459. stu: this.worksStudent[i][k].sName,
  16460. };
  16461. break;
  16462. } else {
  16463. this.selectAnswer = { answer: [], stu: "" };
  16464. }
  16465. }
  16466. } else {
  16467. this.selectAnswer = { answer: [], stu: "" };
  16468. }
  16469. this.isSelect = false;
  16470. this.dialogVisibleSelect = true;
  16471. } else if (t == 44) {
  16472. window.parent.postMessage({ tools: "44" }, "*");
  16473. } else if (t == 47) {
  16474. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16475. .taskJson[index].toolChoose[i].sentenceList
  16476. ? JSON.parse(
  16477. JSON.stringify(
  16478. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16479. index
  16480. ].toolChoose[i].sentenceList
  16481. )
  16482. )
  16483. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16484. for (var q = 0; q < this.sentenceList.length; q++) {
  16485. this.sentenceList[q].chooseSenList = [];
  16486. this.sentenceList[q].addChangeSen = [];
  16487. this.sentenceList[q].addChangeSen = JSON.parse(
  16488. JSON.stringify(this.sentenceList[q].addSentence)
  16489. );
  16490. this.sentenceList[q].chooseSenList.length =
  16491. this.sentenceList[q].rightAnswer.length;
  16492. }
  16493. this.dialogVisibleSentence = true;
  16494. } else if (t == 48) {
  16495. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16496. .taskJson[index].toolChoose[i].tableJson
  16497. ? JSON.parse(
  16498. JSON.stringify(
  16499. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16500. index
  16501. ].toolChoose[i].tableJson
  16502. )
  16503. )
  16504. : { text: "" };
  16505. if (this.worksStudent[i].length) {
  16506. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16507. if (this.userid == this.worksStudent[i][k].userid) {
  16508. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16509. break;
  16510. }
  16511. }
  16512. }
  16513. this.dialogVisibleTable = true;
  16514. } else if (t == 52) {
  16515. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16516. .taskJson[index].toolChoose[i].wordJson
  16517. ? JSON.parse(
  16518. JSON.stringify(
  16519. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16520. index
  16521. ].toolChoose[i].wordJson
  16522. )
  16523. )
  16524. : { text: "" };
  16525. this.dialogVisibleWord = true;
  16526. } else if (t == 49) {
  16527. this.groupJson =
  16528. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16529. index
  16530. ].toolChoose[i].groupJson;
  16531. this.dialogVisibleGroup = true;
  16532. } else if (t == 62) {
  16533. this.videoJson =
  16534. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16535. index
  16536. ].toolChoose[i].videoJson;
  16537. this.dialogVisibleVideo = true;
  16538. }
  16539. },
  16540. teacherWorkSubmit(t, i, index, s) {
  16541. this.sStudent = s;
  16542. this.sTool = t;
  16543. this.toolindex = i;
  16544. if (this.tType !== "1" && this.tType !== "4") {
  16545. return;
  16546. }
  16547. if (t == 16 || t == 32 || t == 50) {
  16548. this.dialogVisibleWorks = true; //作业提交
  16549. } else if (t == 15) {
  16550. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16551. .taskJson[index].toolChoose[i].answerQ
  16552. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16553. .toolChoose[i].answerQ
  16554. : "";
  16555. this.questionAnswer = "";
  16556. this.answerDialogVisibleTeacher = true; //问答
  16557. } else if (t == 52) {
  16558. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16559. .taskJson[index].toolChoose[i].wordJson
  16560. ? JSON.parse(
  16561. JSON.stringify(
  16562. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16563. index
  16564. ].toolChoose[i].wordJson
  16565. )
  16566. )
  16567. : { text: "" };
  16568. this.dialogVisibleWordTeacher = true; //文档
  16569. } else if (t == 4) {
  16570. this.radio = [];
  16571. this.noteName = "";
  16572. this.isAnswer = false;
  16573. if (this.askCount > 0) {
  16574. this.updateCount(this.askCount, t);
  16575. } else {
  16576. this.askCount++;
  16577. a = this.askCount;
  16578. this.toolsCount(a, t);
  16579. }
  16580. if (!this.dialogVisible2) {
  16581. this.askJson.askJson =
  16582. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16583. index
  16584. ].toolChoose[i].askJson;
  16585. this.askJson.askTitle =
  16586. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16587. index
  16588. ].toolChoose[i].askTitle;
  16589. this.askJson.askCount =
  16590. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16591. index
  16592. ].toolChoose[i].askCount;
  16593. } else {
  16594. this.askJson.askJson = this.chapTools.askJson.askJson;
  16595. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16596. this.askJson.askCount = this.chapTools.askJson.askCount;
  16597. }
  16598. this.dialogVisible5Teacher = true;
  16599. } else if (t == 45) {
  16600. this.noteName = "";
  16601. this.radio = [];
  16602. this.isAnswer = false;
  16603. if (this.askCount > 0) {
  16604. this.updateCount(this.askCount, t);
  16605. } else {
  16606. this.askCount++;
  16607. a = this.askCount;
  16608. this.toolsCount(a, t);
  16609. }
  16610. this.testJson =
  16611. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16612. index
  16613. ].toolChoose[i].testJson;
  16614. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16615. if (this.testJson.testJson[k].type == "2") {
  16616. this.radio.push([]);
  16617. } else {
  16618. this.radio.push("");
  16619. }
  16620. }
  16621. this.dialogVisibleChoiceTeacher = true;
  16622. } else if (t == 41) {
  16623. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16624. .taskJson[index].toolChoose[i].selectJson
  16625. ? JSON.parse(
  16626. JSON.stringify(
  16627. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16628. index
  16629. ].toolChoose[i].selectJson
  16630. )
  16631. )
  16632. : { url: "", select: [], answer: [] };
  16633. if (this.worksStudent[i].length) {
  16634. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16635. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16636. var a = this.worksStudent[i][k].works.split(",");
  16637. for (var ki = 0; ki < a.length; ki++) {
  16638. a[ki] = parseInt(a[ki]);
  16639. }
  16640. this.selectAnswer = {
  16641. answer: a,
  16642. stu: this.worksStudent[i][k].sName,
  16643. };
  16644. break;
  16645. } else {
  16646. this.selectAnswer = { answer: [], stu: "" };
  16647. }
  16648. }
  16649. } else {
  16650. this.selectAnswer = { answer: [], stu: "" };
  16651. }
  16652. this.isSelect = false;
  16653. this.dialogVisibleSelectTeacher = true;
  16654. } else if (t == 47) {
  16655. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16656. .taskJson[index].toolChoose[i].sentenceList
  16657. ? JSON.parse(
  16658. JSON.stringify(
  16659. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16660. index
  16661. ].toolChoose[i].sentenceList
  16662. )
  16663. )
  16664. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16665. for (var q = 0; q < this.sentenceList.length; q++) {
  16666. this.sentenceList[q].chooseSenList = [];
  16667. this.sentenceList[q].addChangeSen = [];
  16668. this.sentenceList[q].addChangeSen = JSON.parse(
  16669. JSON.stringify(this.sentenceList[q].addSentence)
  16670. );
  16671. this.sentenceList[q].chooseSenList.length =
  16672. this.sentenceList[q].rightAnswer.length;
  16673. }
  16674. this.dialogVisibleSentenceTeacher = true;
  16675. } else if (t == 48) {
  16676. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16677. .taskJson[index].toolChoose[i].tableJson
  16678. ? JSON.parse(
  16679. JSON.stringify(
  16680. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16681. index
  16682. ].toolChoose[i].tableJson
  16683. )
  16684. )
  16685. : { text: "" };
  16686. if (this.worksStudent[i].length) {
  16687. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16688. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16689. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16690. break;
  16691. }
  16692. }
  16693. }
  16694. this.dialogVisibleTableTeacher = true;
  16695. } else if (t == 40) {
  16696. if (this.evalCount > 0) {
  16697. this.updateCount(this.evalCount, t);
  16698. } else {
  16699. this.evalCount++;
  16700. a = this.evalCount;
  16701. this.toolsCount(a, t);
  16702. }
  16703. this.eScore = { eBzText: "", eStar: [] };
  16704. if (this.worksStudent[i].length) {
  16705. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16706. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16707. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16708. this.rateJson =
  16709. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16710. index
  16711. ].toolChoose[i].rateJson;
  16712. break;
  16713. } else {
  16714. this.rateJson =
  16715. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16716. index
  16717. ].toolChoose[i].rateJson;
  16718. }
  16719. }
  16720. } else {
  16721. this.rateJson =
  16722. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16723. index
  16724. ].toolChoose[i].rateJson;
  16725. }
  16726. this.isStar = false;
  16727. this.studentEvalDialogVisibleTeacher = true;
  16728. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  16729. window.parent.postMessage(
  16730. {
  16731. tools: t + "teacher",
  16732. cid: this.id,
  16733. stage: this.courseType,
  16734. task: this.taskCount,
  16735. tool: i,
  16736. student: this.sStudent,
  16737. },
  16738. "*"
  16739. );
  16740. }
  16741. },
  16742. openCocoPi(tool, i, uid, uname) {
  16743. let student = {
  16744. userid: uid,
  16745. student: uname,
  16746. };
  16747. if (tool == 57) {
  16748. window.parent.postMessage(
  16749. {
  16750. tools: tool + "teacher",
  16751. cid: this.id,
  16752. stage: this.courseType,
  16753. task: this.taskCount,
  16754. tool: i,
  16755. student: student,
  16756. },
  16757. "*"
  16758. );
  16759. }
  16760. },
  16761. setRightAnswer(s, i, j) {
  16762. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  16763. if (
  16764. this.sentenceList[i].chooseSenList[q] == undefined ||
  16765. this.sentenceList[i].chooseSenList[q] == ""
  16766. ) {
  16767. this.sentenceList[i].chooseSenList[q] = s;
  16768. this.sentenceList[i].addChangeSen[j] = "";
  16769. break;
  16770. }
  16771. }
  16772. this.$forceUpdate();
  16773. },
  16774. returnCard(r, i, j) {
  16775. var a = this.sentenceList[i].addSentence.indexOf(r);
  16776. this.sentenceList[i].chooseSenList[j] = "";
  16777. this.sentenceList[i].addChangeSen[a] = r;
  16778. this.$forceUpdate();
  16779. },
  16780. // addSentenceTool() {
  16781. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16782. // this.taskCount
  16783. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  16784. // this.sentenceList = [
  16785. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  16786. // ];
  16787. // this.dialogVisibleSentence = false;
  16788. // },
  16789. toolsCount(a, t) {
  16790. let params = {
  16791. cid: this.id,
  16792. chid: this.courseType,
  16793. uid: this.userid,
  16794. tid: t,
  16795. count: a,
  16796. };
  16797. this.ajax
  16798. .get(this.$store.state.api + "insertToolsCount", params)
  16799. .then((res) => {
  16800. this.selectCount();
  16801. })
  16802. .catch((err) => {
  16803. console.error(err);
  16804. });
  16805. },
  16806. updateCount(c, t) {
  16807. c++;
  16808. let params = {
  16809. cid: this.id,
  16810. chid: this.courseType,
  16811. uid: this.userid,
  16812. tid: t,
  16813. count: c,
  16814. };
  16815. this.ajax
  16816. .get(this.$store.state.api + "updateToolsCount", params)
  16817. .then((res) => {
  16818. this.selectCount();
  16819. })
  16820. .catch((err) => {
  16821. console.error(err);
  16822. });
  16823. },
  16824. checkEva() {
  16825. if (this.evalua != "") {
  16826. for (var i = 0; i < this.evaJuri.length; i++) {
  16827. if (this.evalua == this.evaJuri[i].id) {
  16828. this.eTitle = this.evaJuri[i].title;
  16829. this.eJson = JSON.parse(this.evaJuri[i].content);
  16830. }
  16831. }
  16832. this.$forceUpdate();
  16833. setTimeout(() => {
  16834. this.setMindData();
  16835. }, 0);
  16836. }
  16837. },
  16838. selectEva() {
  16839. let params = {
  16840. oid: this.oid,
  16841. };
  16842. this.ajax
  16843. .get(this.$store.state.api + "selectAllEvaluation", params)
  16844. .then((res) => {
  16845. this.evaJuri = res.data[0];
  16846. })
  16847. .catch((err) => {
  16848. console.error(err);
  16849. });
  16850. },
  16851. setMindData() {
  16852. this.data.data = [];
  16853. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  16854. let _eJson = Object.keys(this.eJson);
  16855. let _e = this.eJson;
  16856. for (let i = 0; i < _eJson.length; i++) {
  16857. let element = _e[_eJson[i]];
  16858. this.data.data.push({
  16859. id: element.id,
  16860. parentid: "root",
  16861. topic: element.name,
  16862. });
  16863. let _eJsonc = Object.keys(element.child);
  16864. let _e2 = element.child;
  16865. for (let j = 0; j < _eJsonc.length; j++) {
  16866. let _ec = _e2[_eJsonc[j]];
  16867. this.data.data.push({
  16868. id: _ec.id,
  16869. parentid: element.id,
  16870. topic: _ec.name,
  16871. });
  16872. let _eJsonz = Object.keys(_ec.child);
  16873. let _e3 = _ec.child;
  16874. for (let z = 0; z < _eJsonz.length; z++) {
  16875. let _ez = _e3[_eJsonz[z]];
  16876. this.data.data.push({
  16877. id: _ez.id,
  16878. parentid: _ec.id,
  16879. topic: _ez.name,
  16880. });
  16881. }
  16882. }
  16883. }
  16884. this.$forceUpdate();
  16885. },
  16886. checkFileFull(type, url) {
  16887. this.fullDialogVisible = true;
  16888. this.fulltype = type;
  16889. this.fullUrl = url;
  16890. },
  16891. openSname(n, id, i, uid) {
  16892. this.snameWid = id;
  16893. this.worksSName = n;
  16894. this.worksSid = uid == n ? "" : uid;
  16895. this.toolindex = i;
  16896. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16897. if (!this.uploadCid) {
  16898. this.$message.error(
  16899. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16900. );
  16901. return;
  16902. }
  16903. this.selectUploadStudent(1);
  16904. },
  16905. updateName() {
  16906. let params = {
  16907. n: this.worksSName,
  16908. cid: this.snameWid,
  16909. };
  16910. this.ajax
  16911. .get(this.$store.state.api + "updateCourseWorksName", params)
  16912. .then((res) => {
  16913. this.$message({
  16914. message: "修改成功",
  16915. type: "success",
  16916. });
  16917. this.dialogVisibleSname = false;
  16918. this.getCourseDetail();
  16919. this.snameWid = "";
  16920. this.worksSName = "";
  16921. })
  16922. .catch((err) => {
  16923. console.error(err);
  16924. });
  16925. },
  16926. downloadFile2(f) {
  16927. const loading = this.$loading.service({
  16928. background: "rgba(255, 255, 255, 0.7)",
  16929. target: document.body,
  16930. text: "文件加载中...",
  16931. });
  16932. let url2 = f.url;
  16933. let _url2 = "";
  16934. if (
  16935. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16936. ) {
  16937. _url2 = url2.split(
  16938. "https://view.officeapps.live.com/op/view.aspx?src="
  16939. )[1];
  16940. } else {
  16941. _url2 = url2;
  16942. }
  16943. let params = {
  16944. url: _url2,
  16945. name: f.name,
  16946. };
  16947. this.ajax
  16948. .get(this.$store.state.api + "download", params)
  16949. .then((res) => {
  16950. console.log(res);
  16951. loading.close();
  16952. let content = res.data.data.data;
  16953. let ab = new ArrayBuffer(content.length);
  16954. let view = new Uint8Array(ab);
  16955. for (var i = 0; i < content.length; ++i) {
  16956. view[i] = content[i];
  16957. }
  16958. let elink = document.createElement("a");
  16959. elink.download = f.name;
  16960. elink.style.display = "none";
  16961. let blob = new Blob([ab], {
  16962. type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  16963. });
  16964. elink.href = URL.createObjectURL(blob);
  16965. document.body.appendChild(elink);
  16966. elink.click();
  16967. document.body.removeChild(elink);
  16968. })
  16969. .catch((err) => {
  16970. loading.close();
  16971. console.error(err);
  16972. });
  16973. },
  16974. downloadFile(url) {
  16975. let _this = this;
  16976. let _url = "";
  16977. if (
  16978. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16979. ) {
  16980. _url = url.split(
  16981. "https://view.officeapps.live.com/op/view.aspx?src="
  16982. )[1];
  16983. } else {
  16984. _url = url;
  16985. }
  16986. const x = new XMLHttpRequest();
  16987. x.open("GET", _url, true);
  16988. x.responseType = "blob";
  16989. const loading = _this.$loading.service({
  16990. background: "rgba(255, 255, 255, 0.7)",
  16991. target: document.body,
  16992. text: "文件加载中...",
  16993. });
  16994. // _this.$message.success("文件下载中...");
  16995. x.onload = function (e) {
  16996. loading.close();
  16997. // const url = window.URL.createObjectURL(x.response);
  16998. // const a = document.createElement("a");
  16999. // a.href = url;
  17000. // a.target = "_blank";
  17001. // a.download = url;
  17002. // a.click();
  17003. // a.remove();
  17004. let content = x.response;
  17005. let elink = document.createElement("a");
  17006. elink.download = decodeURI(
  17007. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17008. );
  17009. elink.style.display = "none";
  17010. let blob = new Blob([content]);
  17011. elink.href = URL.createObjectURL(blob);
  17012. document.body.appendChild(elink);
  17013. elink.click();
  17014. document.body.removeChild(elink);
  17015. };
  17016. x.send();
  17017. },
  17018. openLine(url) {
  17019. window.open(url);
  17020. },
  17021. resize() {
  17022. if (document.getElementsByClassName("box_course").length) {
  17023. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17024. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17025. if (this.showType == 2 || this.showType == 3) {
  17026. document.getElementsByClassName("navBox")[0].style.height =
  17027. a - 40 + 46 + "px";
  17028. } else {
  17029. document.getElementsByClassName("navBox")[0].style.height =
  17030. a - 40 + "px";
  17031. }
  17032. }
  17033. this.Stbodywidth =
  17034. document.getElementsByClassName("student_body").length &&
  17035. document.getElementsByClassName("student_body")[0].offsetWidth;
  17036. },
  17037. closeDraw() {
  17038. this.bg = null;
  17039. this.drawShow = false;
  17040. },
  17041. showPicturePaint(url) {
  17042. let params = {
  17043. img: url,
  17044. };
  17045. this.ajax
  17046. .get(this.$store.state.api + "imgToBase64", params)
  17047. .then((res) => {
  17048. console.log(res);
  17049. this.drawShow = true;
  17050. this.bg = res.data[0].img;
  17051. })
  17052. .catch((err) => {
  17053. console.error(err);
  17054. });
  17055. },
  17056. addImgDraw(base64) {
  17057. let file = { name: "批注图.png" };
  17058. let img = this.dataUrlToFile(base64, file);
  17059. this.beforeUpload1(img, 5);
  17060. },
  17061. addImgDrawImG(url) {
  17062. // console.log(url);
  17063. let params = [
  17064. {
  17065. wid: this.commentDetail.wid,
  17066. img: url,
  17067. },
  17068. ];
  17069. this.ajax
  17070. .post(this.$store.state.api + "updateCourseWorks", params)
  17071. .then((res) => {
  17072. this.$message({
  17073. message: "提交成功",
  17074. type: "success",
  17075. });
  17076. this.drawShow = false;
  17077. this.bg = "";
  17078. this.selectSWorks();
  17079. this.selectStudent();
  17080. })
  17081. .catch((err) => {
  17082. this.$message.error("提交失败");
  17083. console.error(err);
  17084. });
  17085. },
  17086. deletePicturePaint() {
  17087. this.$confirm("确定删除此批注吗?", "提示", {
  17088. confirmButtonText: "确定",
  17089. cancelButtonText: "取消",
  17090. type: "warning",
  17091. })
  17092. .then(() => {
  17093. let params = [
  17094. {
  17095. wid: this.commentDetail.wid,
  17096. img: "",
  17097. },
  17098. ];
  17099. this.ajax
  17100. .post(this.$store.state.api + "updateCourseWorks", params)
  17101. .then((res) => {
  17102. this.$message({
  17103. message: "删除成功",
  17104. type: "success",
  17105. });
  17106. this.selectSWorks();
  17107. this.selectStudent();
  17108. })
  17109. .catch((err) => {
  17110. this.$message.error("删除失败");
  17111. console.error(err);
  17112. });
  17113. })
  17114. .catch(() => {});
  17115. },
  17116. getAudioVideo(constraintsData) {
  17117. if (navigator.mediaDevices === undefined) {
  17118. navigator.mediaDevices = {};
  17119. }
  17120. if (navigator.mediaDevices.getUserMedia === undefined) {
  17121. navigator.mediaDevices.getUserMedia = function (constraints) {
  17122. // 首先,如果有getUserMedia的话,就获得它
  17123. var getUserMedia =
  17124. navigator.getUserMedia ||
  17125. navigator.webkitGetUserMedia ||
  17126. navigator.mozGetUserMedia ||
  17127. navigator.msGetUserMedia;
  17128. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  17129. if (!getUserMedia) {
  17130. return Promise.reject({ code: 404 });
  17131. }
  17132. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  17133. return new Promise(function (resolve, reject) {
  17134. getUserMedia.call(navigator, constraints, resolve, reject);
  17135. });
  17136. };
  17137. }
  17138. return navigator.mediaDevices.getUserMedia(constraintsData);
  17139. },
  17140. /**
  17141. * 开始录制
  17142. */
  17143. startRecording(callback) {
  17144. let _function = (screenStream) => {
  17145. this.addStreamStopListener(screenStream, () => {
  17146. console.log("流停止监听");
  17147. this.stopRecording();
  17148. this.$emit("streamStop", {});
  17149. // this.stopRecording();
  17150. });
  17151. var options = {
  17152. type: "video",
  17153. mimeType: "video/webm",
  17154. disableLogs: false,
  17155. getNativeBlob: false, // enable it for longer recordings
  17156. ignoreMutedMedia: false,
  17157. };
  17158. // this.video.srcObject = screenStream;
  17159. this.recorder = RecordRTC(screenStream, options);
  17160. this.recorder.startRecording();
  17161. this.recorder.screen = screenStream;
  17162. this.videoStart = true;
  17163. // callback(true);
  17164. };
  17165. this.getAudioVideo({ audio: true })
  17166. .then((res) => {
  17167. this.captureScreen(_function, true);
  17168. console.log("已点击允许,开启成功");
  17169. })
  17170. .catch((err) => {
  17171. // console.log('浏览器不支持,请更换浏览器')
  17172. // } else {
  17173. this.captureScreen(_function, false);
  17174. console.log("请检查是否存在麦克风");
  17175. });
  17176. },
  17177. /**
  17178. * 停止录制
  17179. */
  17180. stopRecording(callback) {
  17181. this.recorder.stopRecording(() => {
  17182. // this.video.src = this.video.srcObject = null;
  17183. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  17184. const url = URL.createObjectURL(this.recorder.getBlob());
  17185. const a = document.createElement("a"); //this.fileName+
  17186. let videoFile = new File(
  17187. [this.recorder.getBlob()],
  17188. this.courseDetail.title + "录屏.mp4",
  17189. {
  17190. type: "video/mp4",
  17191. }
  17192. );
  17193. let downloadUrl = URL.createObjectURL(videoFile);
  17194. document.body.appendChild(a);
  17195. a.style.display = "none";
  17196. a.href = url;
  17197. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  17198. a.click();
  17199. this.recorder.screen.stop();
  17200. this.recorder.destroy();
  17201. this.recorder = null;
  17202. this.videoStart = false;
  17203. // callback(false);
  17204. });
  17205. },
  17206. //初始化
  17207. captureScreen(callback, type) {
  17208. if (navigator.getDisplayMedia) {
  17209. //录制结束,文件下载
  17210. navigator
  17211. .getDisplayMedia({
  17212. video: true,
  17213. })
  17214. .then((screenStream) => {
  17215. if (type) {
  17216. navigator.mediaDevices
  17217. .getUserMedia({ audio: true })
  17218. .then((mic) => {
  17219. screenStream.addTrack(mic.getTracks()[0]);
  17220. callback(screenStream);
  17221. });
  17222. } else {
  17223. callback(screenStream);
  17224. }
  17225. })
  17226. .catch(function (error) {
  17227. console.log("error", error);
  17228. });
  17229. } else if (navigator.mediaDevices.getDisplayMedia) {
  17230. navigator.mediaDevices
  17231. .getDisplayMedia({
  17232. video: true,
  17233. })
  17234. .then((screenStream) => {
  17235. if (type) {
  17236. navigator.mediaDevices
  17237. .getUserMedia({ audio: true })
  17238. .then((mic) => {
  17239. screenStream.addTrack(mic.getTracks()[0]);
  17240. callback(screenStream);
  17241. });
  17242. } else {
  17243. callback(screenStream);
  17244. }
  17245. })
  17246. .catch(function (error) {
  17247. console.log("error", error);
  17248. });
  17249. } else {
  17250. var error = "getDisplayMedia API are not supported in this browser.";
  17251. console.log("error", error);
  17252. alert(error);
  17253. }
  17254. },
  17255. //流监听
  17256. addStreamStopListener(stream, callback) {
  17257. stream.addEventListener(
  17258. "ended",
  17259. function () {
  17260. callback();
  17261. callback = function () {};
  17262. },
  17263. false
  17264. );
  17265. stream.addEventListener(
  17266. "inactive",
  17267. function () {
  17268. callback();
  17269. callback = function () {};
  17270. },
  17271. false
  17272. );
  17273. stream.getTracks().forEach(function (track) {
  17274. track.addEventListener(
  17275. "ended",
  17276. function () {
  17277. callback();
  17278. callback = function () {};
  17279. },
  17280. false
  17281. );
  17282. track.addEventListener(
  17283. "inactive",
  17284. function () {
  17285. callback();
  17286. callback = function () {};
  17287. },
  17288. false
  17289. );
  17290. });
  17291. },
  17292. updateGroup() {
  17293. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17294. this.dialogVisibleGroup2 = true;
  17295. },
  17296. updateGroupJson() {
  17297. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  17298. if (
  17299. this.groupStudentUid[this.toolindex][i].length >
  17300. this.groupJson2.number
  17301. ) {
  17302. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  17303. return;
  17304. }
  17305. }
  17306. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  17307. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17308. this.taskCount
  17309. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  17310. let params = [
  17311. {
  17312. cid: this.id,
  17313. chapters: JSON.stringify(this.chapInfoList),
  17314. uid: this.userid,
  17315. unitIndex: this.courseType,
  17316. },
  17317. ];
  17318. this.ajax
  17319. .post(this.$store.state.api + "updateWorkNew4", params)
  17320. .then((res) => {
  17321. this.$message.success("设置成功");
  17322. this.getCourseDetail(2);
  17323. this.dialogVisibleGroup2 = false;
  17324. this.groupJson2 = {};
  17325. this.$forceUpdate();
  17326. })
  17327. .catch((err) => {
  17328. this.$message.error("网络不佳");
  17329. console.error(err);
  17330. });
  17331. },
  17332. lockChair() {
  17333. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17334. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  17335. this.updateGroupJson();
  17336. },
  17337. selectGroup(index) {
  17338. this.getCourseDetail(2, index);
  17339. },
  17340. joinGroup(index) {
  17341. if (this.groupJson.islock == 2) {
  17342. this.$message.error("位置已被锁定,无法加入");
  17343. return;
  17344. }
  17345. if (
  17346. this.groupStudent[this.toolindex][index].length >
  17347. this.groupJson.number ||
  17348. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  17349. ) {
  17350. this.$message.error("位置已满,无法加入");
  17351. return;
  17352. }
  17353. let params = [
  17354. {
  17355. cid: this.id,
  17356. stage: this.courseType,
  17357. task: this.taskCount,
  17358. tool: this.toolindex,
  17359. g: index,
  17360. uid: this.userid,
  17361. },
  17362. ];
  17363. this.ajax
  17364. .post(this.$store.state.api + "joinGroup", params)
  17365. .then((res) => {
  17366. this.$message.success("加入成功");
  17367. this.getCourseDetail();
  17368. })
  17369. .catch((err) => {
  17370. this.$message.error("网络不佳");
  17371. console.error(err);
  17372. });
  17373. },
  17374. exitGroup(id) {
  17375. if (this.groupJson.islock == 2) {
  17376. this.$message.error("位置已被锁定,无法退出");
  17377. return;
  17378. }
  17379. let params = [
  17380. {
  17381. gid: id,
  17382. },
  17383. ];
  17384. this.ajax
  17385. .post(this.$store.state.api + "exitGroup", params)
  17386. .then((res) => {
  17387. this.$message.success("退出成功");
  17388. this.getCourseDetail();
  17389. })
  17390. .catch((err) => {
  17391. this.$message.error("网络不佳");
  17392. console.error(err);
  17393. });
  17394. },
  17395. groupUpload(index, task, gindex) {
  17396. this.taskCount = task;
  17397. this.toolindex = index;
  17398. this.groupIndex = gindex;
  17399. this.dialogVisibleGroupWork = true;
  17400. },
  17401. updateGroupChair(user) {
  17402. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  17403. el.label = index;
  17404. return index != user.group;
  17405. });
  17406. this.updateGroupUser = user;
  17407. this.dialogVisibleUpdateGroup = true;
  17408. },
  17409. updateChair() {
  17410. if (
  17411. this.groupStudent[this.toolindex][this.checkChair].length >
  17412. this.groupJson.number ||
  17413. this.groupStudent[this.toolindex][this.checkChair].length ==
  17414. this.groupJson.number
  17415. ) {
  17416. this.$message.error("位置已满,无法加入");
  17417. return;
  17418. }
  17419. let params = [
  17420. {
  17421. cid: this.id,
  17422. stage: this.courseType,
  17423. task: this.taskCount,
  17424. tool: this.toolindex,
  17425. g: this.checkChair,
  17426. uid: this.updateGroupUser.userid,
  17427. },
  17428. ];
  17429. this.ajax
  17430. .post(this.$store.state.api + "joinGroup", params)
  17431. .then((res) => {
  17432. this.$message.success("修改成功");
  17433. this.updateGroupUser = {};
  17434. this.checkChair = "";
  17435. this.updateGroupArray = {};
  17436. this.dialogVisibleUpdateGroup = false;
  17437. this.getCourseDetail();
  17438. })
  17439. .catch((err) => {
  17440. this.$message.error("网络不佳");
  17441. console.error(err);
  17442. });
  17443. },
  17444. deleteGroupChair(gindex) {
  17445. this.checkDeleteGroup = [];
  17446. this.deleteGroupUser = JSON.parse(
  17447. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  17448. );
  17449. this.deleteGroupArray = this.groupJson.group[gindex];
  17450. this.groupIndex = gindex;
  17451. this.dialogVisibleDeleteGroup = true;
  17452. },
  17453. async deleteChair() {
  17454. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  17455. const gid =
  17456. this.groupStudent[this.toolindex][this.groupIndex][
  17457. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  17458. this.checkDeleteGroup[i]
  17459. )
  17460. ];
  17461. let params = [
  17462. {
  17463. gid: gid.id,
  17464. },
  17465. ];
  17466. var a = await this.deleteChairA(params);
  17467. if (i == this.checkDeleteGroup.length - 1) {
  17468. this.$message.success("退出成功");
  17469. this.dialogVisibleDeleteGroup = false;
  17470. this.deleteGroupUser = [];
  17471. this.deleteGroupArray = {};
  17472. this.groupIndex = "";
  17473. this.checkDeleteGroup = [];
  17474. this.getCourseDetail();
  17475. }
  17476. }
  17477. },
  17478. deleteChairA(params) {
  17479. return new Promise((resolve, reject) => {
  17480. this.ajax
  17481. .post(this.$store.state.api + "exitGroup", params)
  17482. .then((res) => {
  17483. resolve(1);
  17484. })
  17485. .catch((err) => {
  17486. this.$message.error("网络不佳");
  17487. console.error(err);
  17488. });
  17489. });
  17490. },
  17491. contract(i) {
  17492. if (this.isCloseList[i].isClose == 0) {
  17493. this.isCloseList[i].isClose = 1;
  17494. } else {
  17495. this.isCloseList[i].isClose = 0;
  17496. }
  17497. this.$forceUpdate();
  17498. },
  17499. openTools2(i) {
  17500. this.$message.error("暂未开放");
  17501. return;
  17502. },
  17503. addTools2(i) {
  17504. if (i == 4) {
  17505. // this.openTools2(4);
  17506. this.$message.error("暂未开放");
  17507. return;
  17508. }
  17509. if (i == 45) {
  17510. // this.openTools2(45);
  17511. this.$message.error("暂未开放");
  17512. return;
  17513. }
  17514. if (i == 47) {
  17515. // this.openTools2(47);
  17516. this.$message.error("暂未开放");
  17517. return;
  17518. }
  17519. if (i == 49) {
  17520. // this.openTools2(49);
  17521. this.$message.error("暂未开放");
  17522. return;
  17523. }
  17524. if (i == 62) {
  17525. // this.openTools(itemTaskIndex, 62, toolIndex);
  17526. this.$message.error("暂未开放");
  17527. return;
  17528. }
  17529. if (i == 15) {
  17530. // this.openTools(itemTaskIndex, 15, toolIndex);
  17531. this.$message.error("暂未开放");
  17532. return;
  17533. }
  17534. if (i == 40) {
  17535. // this.openTools(itemTaskIndex, 40, toolIndex);
  17536. this.$message.error("暂未开放");
  17537. return;
  17538. }
  17539. if (i == 41) {
  17540. // this.openTools(itemTaskIndex, 41, toolIndex);
  17541. this.$message.error("暂未开放");
  17542. return;
  17543. }
  17544. if (i == 42) {
  17545. // this.openTools(itemTaskIndex, 42, toolIndex);
  17546. this.$message.error("暂未开放");
  17547. return;
  17548. }
  17549. if (this.checktoolArray.length > 0) {
  17550. if (this.checktoolArray.indexOf(i) != -1) {
  17551. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17552. } else {
  17553. this.checktoolArray = [];
  17554. this.checktoolArray.push(i);
  17555. }
  17556. } else {
  17557. this.checktoolArray.push(i);
  17558. }
  17559. this.$forceUpdate();
  17560. },
  17561. addToolChoose() {
  17562. if (!this.checktoolArray.length) {
  17563. this.$message.error("请选择要添加的任务");
  17564. return;
  17565. }
  17566. if (
  17567. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17568. this.taskCount
  17569. ].toolChoose[0].tool.length
  17570. ) {
  17571. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17572. this.taskCount
  17573. ].toolChoose[0].tool = this.checktoolArray;
  17574. } else {
  17575. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17576. this.taskCount
  17577. ].toolChoose.push({
  17578. tool: this.checktoolArray,
  17579. toolDetail: "",
  17580. toolType: 1,
  17581. askCount: 1,
  17582. askTitle: "",
  17583. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  17584. });
  17585. }
  17586. let params = [
  17587. {
  17588. cid: this.id,
  17589. chapters: JSON.stringify(this.chapInfoList),
  17590. uid: this.userid,
  17591. unitIndex: this.courseType,
  17592. },
  17593. ];
  17594. this.ajax
  17595. .post(this.$store.state.api + "updateWorkNew4", params)
  17596. .then((res) => {
  17597. this.$message({
  17598. message: "添加成功",
  17599. type: "success",
  17600. });
  17601. this.checktoolArray = [];
  17602. this.getCourseDetail(3);
  17603. this.checkBz(
  17604. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17605. this.taskCount
  17606. ].toolChoose.length - 1
  17607. );
  17608. this.$forceUpdate();
  17609. })
  17610. .catch((err) => {
  17611. console.error(err);
  17612. });
  17613. },
  17614. updateToolDetail() {
  17615. if (!this.isUpdateToolDetail) {
  17616. this.isUpdateToolDetail = true;
  17617. this.updateToolDetailInner = JSON.parse(
  17618. JSON.stringify(this.tool.toolDetail)
  17619. );
  17620. } else {
  17621. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17622. this.taskCount
  17623. ].toolChoose[this.toolIndex].toolDetail = JSON.parse(
  17624. JSON.stringify(this.updateToolDetailInner)
  17625. );
  17626. let params = [
  17627. {
  17628. cid: this.id,
  17629. chapters: JSON.stringify(this.chapInfoList),
  17630. uid: this.userid,
  17631. unitIndex: this.courseType,
  17632. },
  17633. ];
  17634. this.ajax
  17635. .post(this.$store.state.api + "updateWorkNew4", params)
  17636. .then((res) => {
  17637. this.isUpdateToolDetail = false;
  17638. this.$message({
  17639. message: "修改成功",
  17640. type: "success",
  17641. });
  17642. this.updateToolDetailInner = "";
  17643. this.getCourseDetail(3);
  17644. this.$forceUpdate();
  17645. })
  17646. .catch((err) => {
  17647. console.error(err);
  17648. });
  17649. }
  17650. },
  17651. },
  17652. directives: {
  17653. // 使用局部注册指令的方式
  17654. resize: {
  17655. // 指令的名称
  17656. bind(el, binding) {
  17657. // el为绑定的元素,binding为绑定给指令的对象
  17658. let width = "",
  17659. height = "";
  17660. function isReize() {
  17661. const style = document.defaultView.getComputedStyle(el);
  17662. if (width !== style.width || height !== style.height) {
  17663. binding.value(); // 关键
  17664. }
  17665. width = style.width;
  17666. height = style.height;
  17667. }
  17668. el.__vueSetInterval__ = setInterval(isReize, 300);
  17669. },
  17670. unbind(el) {
  17671. clearInterval(el.__vueSetInterval__);
  17672. },
  17673. },
  17674. },
  17675. beforeDestroy() {
  17676. window.onresize = null;
  17677. clearInterval(this.timer);
  17678. this.timer = null;
  17679. clearInterval(this.opertimer);
  17680. this.opertimer = null;
  17681. },
  17682. computed: {
  17683. contentConvent() {
  17684. return function (c) {
  17685. return c
  17686. ? c
  17687. .replaceAll(/\r\n/g, "<br/>")
  17688. .replaceAll(/\n/g, "<br/>")
  17689. .replaceAll(/\s/g, " &nbsp")
  17690. : "";
  17691. };
  17692. },
  17693. checkUpload() {
  17694. return function () {
  17695. var studentK = [];
  17696. if (this.plworkFile.length > 0) {
  17697. for (var z = 0; z < this.plworkFile.length; z++) {
  17698. studentK.push(this.plworkFile[z].username);
  17699. }
  17700. studentK = studentK.join(",");
  17701. }
  17702. var a = this.uploadStudentJuri.filter((el) => {
  17703. return studentK.indexOf(el.userid) == -1;
  17704. });
  17705. return a;
  17706. };
  17707. },
  17708. getSName() {
  17709. return function (name) {
  17710. var check = name;
  17711. this.uploadStudentJuri.forEach((el) => {
  17712. if (el.userid == check) {
  17713. check = el.name ? el.name : el.username;
  17714. }
  17715. });
  17716. return check;
  17717. };
  17718. },
  17719. getImgList(){
  17720. return function(val){
  17721. let srcList = []; // 定义一个数组用来接收后面的img地址
  17722. val.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function (match, capture) { // 查找匹配的元素 match为整个img标签 capture为src中的内容
  17723. srcList.push(capture);
  17724. });
  17725. return srcList
  17726. }
  17727. }
  17728. },
  17729. mounted() {
  17730. if (this.screenType == 2) {
  17731. window.parent.postMessage({ allScreen: 4 }, "*");
  17732. } else if (this.screenType == 3) {
  17733. window.parent.postMessage({ allScreen: 5 }, "*");
  17734. } else if (this.screenType == 1) {
  17735. window.parent.postMessage({ allScreen: 6 }, "*");
  17736. }
  17737. this.setOperationTime();
  17738. this.selectEva();
  17739. this.getCourseDetail();
  17740. this.selectCount();
  17741. this.getHomeWork();
  17742. this.toolIndex = null;
  17743. this.contentDialog = true;
  17744. this.setContent2(true);
  17745. if (this.tType == 4) {
  17746. this.pzDialog = true;
  17747. this.selectPz();
  17748. }
  17749. document.scrollingElement.scrollTop = 0;
  17750. window.addEventListener("resize", () => {
  17751. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17752. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17753. if (this.showType == 2 || this.showType == 3) {
  17754. document.getElementsByClassName("navBox")[0].style.height =
  17755. a - 40 + 46 + "px";
  17756. } else {
  17757. document.getElementsByClassName("navBox")[0].style.height =
  17758. a - 40 + "px";
  17759. }
  17760. });
  17761. let _this = this;
  17762. setTimeout(() => {
  17763. // _this.vedioTime = [];
  17764. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17765. // _this.vedioTime[i] = document.getElementsByClassName(
  17766. // "vjs-duration-display"
  17767. // )[i].textContent;
  17768. // }
  17769. }, 1000);
  17770. },
  17771. };
  17772. </script>
  17773. <style scoped>
  17774. @media screen and (max-width: 1280px) {
  17775. /* .courseIndex > div:first-child(2) {
  17776. width: 15% !important;
  17777. } */
  17778. /* .navText {
  17779. width: 120px !important;
  17780. } */
  17781. .evaCss {
  17782. flex-direction: column !important;
  17783. align-items: center !important;
  17784. }
  17785. .dialog_diy1 >>> .el-dialog {
  17786. width: 100% !important;
  17787. }
  17788. .rightWidthCss {
  17789. width: 100% !important;
  17790. }
  17791. .dialog_diy3 >>> .el-dialog {
  17792. width: 100% !important;
  17793. }
  17794. /* .textTitle >>> .el-form-item__label {
  17795. width: 150px !important;
  17796. } */
  17797. }
  17798. .evaCssMax {
  17799. flex-direction: column !important;
  17800. align-items: center !important;
  17801. }
  17802. .dialog_diy >>> .el-dialog {
  17803. margin-top: 10vh !important;
  17804. }
  17805. .body_student {
  17806. width: 77%;
  17807. height: 100%;
  17808. position: absolute;
  17809. left: 22%;
  17810. top: 0;
  17811. }
  17812. .student_head {
  17813. width: 100%;
  17814. margin: 40px auto 0;
  17815. padding-bottom: 20px;
  17816. display: flex;
  17817. flex-direction: column;
  17818. flex-wrap: nowrap;
  17819. align-items: flex-start;
  17820. justify-content: flex-start;
  17821. }
  17822. .pb_left {
  17823. width: 20%;
  17824. margin-right: 10px;
  17825. background: rgb(255, 255, 255);
  17826. position: fixed;
  17827. height: calc(100% - 40px);
  17828. border-radius: 20px;
  17829. padding-bottom: 15px;
  17830. box-sizing: border-box;
  17831. }
  17832. .wheel > img,
  17833. .project > img,
  17834. .star > img,
  17835. .evaluate > img,
  17836. .up_photo > img,
  17837. .chapter_add > img,
  17838. .deleteWord > img,
  17839. .question > img,
  17840. .homework > img {
  17841. width: 100%;
  17842. height: 100%;
  17843. }
  17844. .upCover > img {
  17845. width: 131px;
  17846. height: 69px;
  17847. object-fit: cover;
  17848. }
  17849. .upCover {
  17850. width: calc(100% / 3.5);
  17851. position: relative;
  17852. margin: 0 15px 10px 0;
  17853. display: flex;
  17854. flex-direction: column;
  17855. flex-wrap: nowrap;
  17856. justify-content: center;
  17857. align-content: center;
  17858. align-items: center;
  17859. height: fit-content;
  17860. }
  17861. .upCover2 {
  17862. width: 100%;
  17863. position: relative;
  17864. margin: 0 15px 10px 0;
  17865. display: flex;
  17866. flex-direction: column;
  17867. flex-wrap: nowrap;
  17868. justify-content: center;
  17869. align-content: center;
  17870. align-items: center;
  17871. }
  17872. .upCover2 > img {
  17873. width: 100%;
  17874. height: 90px;
  17875. object-fit: contain;
  17876. }
  17877. .chapter_add {
  17878. width: 120px;
  17879. position: relative;
  17880. text-align: center;
  17881. }
  17882. .isAddThings {
  17883. margin-top: 20px;
  17884. position: relative;
  17885. text-align: center;
  17886. background: #f7f8fa;
  17887. height: 90px;
  17888. width: 90px;
  17889. display: flex;
  17890. flex-direction: column;
  17891. justify-content: center;
  17892. }
  17893. .deleteWord {
  17894. width: 22px;
  17895. height: 22px;
  17896. position: absolute;
  17897. right: -5px;
  17898. top: -5px;
  17899. cursor: pointer;
  17900. }
  17901. .box_course {
  17902. /* width: 60%; */
  17903. width: calc(100% - 300px);
  17904. }
  17905. .wheel {
  17906. width: 100%;
  17907. /* height: 100%; */
  17908. height: 650px;
  17909. }
  17910. .right_box {
  17911. display: flex;
  17912. flex-direction: column;
  17913. margin-left: 30px;
  17914. justify-content: space-around;
  17915. }
  17916. .right_box_title {
  17917. font-size: 23px;
  17918. }
  17919. .people {
  17920. display: flex;
  17921. }
  17922. .student_body {
  17923. width: 100%;
  17924. margin: 0 auto;
  17925. margin-top: 10px;
  17926. padding: 0 0 20px;
  17927. background: #fff;
  17928. border-radius: 20px;
  17929. }
  17930. .study_top {
  17931. margin-top: 100px;
  17932. width: 100%;
  17933. /* overflow: auto; */
  17934. height: auto;
  17935. padding-bottom: 20px;
  17936. }
  17937. .study_top .checkbox {
  17938. display: flex;
  17939. align-items: center;
  17940. padding: 15px 0 15px 30px;
  17941. flex: 0 0 auto;
  17942. font-weight: bold;
  17943. border-bottom: 1px solid #eee;
  17944. }
  17945. .study_top .check {
  17946. padding-bottom: 5px;
  17947. text-align: center;
  17948. cursor: pointer;
  17949. height: 30px;
  17950. box-sizing: border-box;
  17951. display: flex;
  17952. }
  17953. .study_top .checked {
  17954. border-bottom: 4px solid #3fc6a0;
  17955. padding-bottom: 5px;
  17956. color: #3fc6a0;
  17957. display: flex;
  17958. height: 35px;
  17959. }
  17960. .study_top .checked > div,
  17961. .study_top .check > div {
  17962. margin-right: 5px;
  17963. }
  17964. .videoTop {
  17965. display: flex;
  17966. flex-direction: row;
  17967. justify-content: space-between;
  17968. background: #fff;
  17969. align-items: center;
  17970. width: 95%;
  17971. padding: 20px;
  17972. }
  17973. .upbtn {
  17974. margin: 25px;
  17975. background: #70afdb;
  17976. color: #fff;
  17977. width: 120px;
  17978. text-align: center;
  17979. height: 30px;
  17980. line-height: 30px;
  17981. font-size: 13px;
  17982. border-radius: 5px;
  17983. cursor: pointer;
  17984. }
  17985. .filebox {
  17986. display: flex;
  17987. flex-wrap: wrap;
  17988. flex-direction: column;
  17989. padding: 15px 0 5px;
  17990. }
  17991. .filebox .tooldetail {
  17992. width: 100%;
  17993. margin: 0px 12px;
  17994. background: rgb(247, 247, 247);
  17995. padding: 20px;
  17996. line-height: 30px;
  17997. word-break: break-word;
  17998. }
  17999. .file {
  18000. display: flex;
  18001. flex-direction: column;
  18002. align-items: center;
  18003. justify-content: center;
  18004. cursor: pointer;
  18005. width: 200px;
  18006. }
  18007. .file div {
  18008. margin-top: 10px;
  18009. width: 150px;
  18010. text-align: center;
  18011. overflow: hidden;
  18012. white-space: nowrap;
  18013. text-overflow: ellipsis;
  18014. }
  18015. .media {
  18016. display: flex;
  18017. flex-direction: column;
  18018. align-items: center;
  18019. justify-content: center;
  18020. margin: 0 20px 20px 0;
  18021. cursor: pointer;
  18022. margin: 12px 0 5px 15px;
  18023. overflow: hidden;
  18024. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  18025. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  18026. box-sizing: border-box;
  18027. }
  18028. .media img {
  18029. height: 90px;
  18030. width: 160px;
  18031. object-fit: cover;
  18032. }
  18033. .media .title {
  18034. padding: 5px;
  18035. text-align: left;
  18036. width: 100%;
  18037. box-sizing: border-box;
  18038. }
  18039. .media .btn {
  18040. width: 100%;
  18041. height: 35px;
  18042. line-height: 35px;
  18043. color: #fff;
  18044. background: #606060;
  18045. text-align: center;
  18046. overflow: hidden;
  18047. white-space: nowrap;
  18048. text-overflow: ellipsis;
  18049. }
  18050. .detail_content_top {
  18051. width: 100%;
  18052. padding: 25px 0 25px 0;
  18053. }
  18054. .detail_title {
  18055. text-align: center;
  18056. font-size: 24px;
  18057. }
  18058. .detail_time {
  18059. font-size: 13px;
  18060. padding: 15px 0 0 40px;
  18061. }
  18062. .detail_content {
  18063. line-height: 2pc;
  18064. width: 90%;
  18065. margin: 0 auto;
  18066. padding-top: 30px;
  18067. text-indent: 30px;
  18068. overflow: auto;
  18069. height: 200px;
  18070. }
  18071. .score_box >>> .el-rate {
  18072. margin-left: 10px;
  18073. }
  18074. .dialog_change >>> .el-dialog {
  18075. border-radius: 5px;
  18076. }
  18077. .dialog_change >>> .el-dialog__header {
  18078. background: #f2f2f2;
  18079. text-align: center;
  18080. }
  18081. .dialog_change >>> .el-dialog__title {
  18082. line-height: 5px;
  18083. }
  18084. .dialog_change >>> .el-dialog__body {
  18085. background: #fff;
  18086. padding: 10px 20px;
  18087. }
  18088. .score_box {
  18089. display: flex;
  18090. align-items: center;
  18091. margin-bottom: 18px;
  18092. margin-top: 20px;
  18093. }
  18094. .up_photo {
  18095. width: 120px;
  18096. cursor: pointer;
  18097. margin-top: 10px;
  18098. }
  18099. .up_photo2 {
  18100. width: 180px;
  18101. box-sizing: border-box;
  18102. min-width: 180px;
  18103. height: 180px;
  18104. max-height: 180px;
  18105. min-height: 180px;
  18106. cursor: pointer;
  18107. display: flex;
  18108. flex-direction: column;
  18109. align-items: center;
  18110. justify-content: center;
  18111. background: rgb(242, 246, 255);
  18112. /* padding: 25px; */
  18113. margin-bottom: 10px;
  18114. }
  18115. .up_photo2 img {
  18116. width: 50%;
  18117. height: auto;
  18118. }
  18119. .up_photo2 span {
  18120. color: #898989;
  18121. }
  18122. .plworkBox {
  18123. display: flex;
  18124. align-items: center;
  18125. margin-top: 10px;
  18126. flex-wrap: wrap;
  18127. }
  18128. .upload_send {
  18129. margin: 30px auto 30px;
  18130. width: 60%;
  18131. background: #169bd6;
  18132. text-align: center;
  18133. height: 35px;
  18134. line-height: 35px;
  18135. color: #fff;
  18136. border-radius: 5px;
  18137. cursor: pointer;
  18138. }
  18139. .marginT {
  18140. margin-top: 20px;
  18141. }
  18142. .cd_content_steps {
  18143. display: flex;
  18144. width: 90%;
  18145. justify-content: space-around;
  18146. border-top: 1px solid #eeeeee;
  18147. }
  18148. .cd_steps_box {
  18149. display: flex;
  18150. justify-content: center;
  18151. align-items: center;
  18152. flex-direction: column;
  18153. cursor: pointer;
  18154. }
  18155. .first {
  18156. display: flex;
  18157. align-items: center;
  18158. margin: 15px 0 20px 0;
  18159. font-size: 20px;
  18160. }
  18161. .first > div:nth-child(2) {
  18162. font-size: 16px !important;
  18163. padding-left: 10px;
  18164. line-height: 26px;
  18165. box-sizing: border-box;
  18166. }
  18167. .blue_box_one {
  18168. text-align: center;
  18169. color: #fff;
  18170. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  18171. border-radius: 7px;
  18172. margin: 10px;
  18173. cursor: pointer;
  18174. width: 95%;
  18175. height: 45px;
  18176. display: flex;
  18177. flex-direction: row;
  18178. justify-content: flex-start;
  18179. align-items: center;
  18180. }
  18181. .blue_box_one > div:nth-child(1) {
  18182. line-height: 30px;
  18183. margin: 0 5px 0 10px;
  18184. width: 30%;
  18185. min-width: 70px;
  18186. border-radius: 4px;
  18187. }
  18188. .blue_box_one > div:nth-child(2) {
  18189. white-space: nowrap;
  18190. text-overflow: ellipsis;
  18191. overflow: hidden;
  18192. word-break: break-all;
  18193. width: 70%;
  18194. text-align: left;
  18195. margin-right: 10px;
  18196. max-width: calc(100% - 85px);
  18197. }
  18198. .blue_box_one > div:nth-child(2):hover {
  18199. overflow: hidden;
  18200. text-overflow: ellipsis;
  18201. white-space: nowrap;
  18202. cursor: pointer;
  18203. }
  18204. .upFile {
  18205. margin: 0 auto;
  18206. width: 120px;
  18207. background: #70afdb;
  18208. color: #fff;
  18209. height: 30px;
  18210. text-align: center;
  18211. line-height: 30px;
  18212. border-radius: 5px;
  18213. font-size: 14px;
  18214. cursor: pointer;
  18215. }
  18216. .courseTitle {
  18217. width: 85%;
  18218. margin: 10px auto;
  18219. display: flex;
  18220. flex-direction: row;
  18221. align-items: center;
  18222. justify-content: space-between;
  18223. text-align: center;
  18224. }
  18225. .courseTitle .ctitle {
  18226. font-size: 24px;
  18227. font-weight: bold;
  18228. color: #0e1e33;
  18229. white-space: nowrap;
  18230. overflow: hidden;
  18231. text-overflow: ellipsis;
  18232. }
  18233. .courseTitle .inviteBox {
  18234. font-size: 14px;
  18235. margin-top: 5px;
  18236. color: #a6cbff;
  18237. }
  18238. .courseTitle >>> .el-tooltip {
  18239. width: 100%;
  18240. white-space: nowrap;
  18241. overflow: hidden;
  18242. text-overflow: ellipsis;
  18243. word-break: break-word;
  18244. }
  18245. .ml {
  18246. margin-left: 20px;
  18247. color: #5b7dba;
  18248. border-left: 3px solid #5b7dba;
  18249. padding-left: 5px;
  18250. font-weight: bold;
  18251. }
  18252. .return {
  18253. width: 2rem;
  18254. height: 2rem;
  18255. cursor: pointer;
  18256. }
  18257. .return > img {
  18258. width: 100%;
  18259. height: 100%;
  18260. }
  18261. .returnBtn {
  18262. width: 86px;
  18263. height: 36px;
  18264. background: #e7ebf1;
  18265. border-radius: 4px;
  18266. color: #717c8d;
  18267. text-align: center;
  18268. line-height: 36px;
  18269. margin-right: 20px;
  18270. cursor: pointer;
  18271. font-size: 14px;
  18272. font-weight: 400;
  18273. display: flex;
  18274. flex-direction: row;
  18275. flex-wrap: nowrap;
  18276. align-items: center;
  18277. justify-content: center;
  18278. }
  18279. .commentIcon::before,
  18280. .vedioIcon::before,
  18281. .lockIcon::before,
  18282. .returnIcon::before {
  18283. content: "";
  18284. display: block;
  18285. background-size: 100% 100%;
  18286. background-repeat: no-repeat;
  18287. width: 20px;
  18288. height: 20px;
  18289. margin-right: 5px;
  18290. }
  18291. .commentIcon::before {
  18292. background-image: url("../../assets/icon/newIcon/comment.png");
  18293. }
  18294. .vedioIcon::before {
  18295. background-image: url("../../assets/icon/newIcon/vedio.png");
  18296. }
  18297. .lockIcon::before {
  18298. background-image: url("../../assets/icon/newIcon/lock.png");
  18299. }
  18300. .returnIcon::before {
  18301. background-image: url("../../assets/icon/newIcon/return.png");
  18302. }
  18303. .tool {
  18304. display: flex;
  18305. flex-direction: column;
  18306. flex-wrap: nowrap;
  18307. width: 13%;
  18308. margin: 0 30px;
  18309. align-items: center;
  18310. }
  18311. .whiteBIcon {
  18312. width: 150px;
  18313. cursor: pointer;
  18314. }
  18315. .whiteBIcon > img {
  18316. width: 100%;
  18317. height: 100%;
  18318. }
  18319. .mask {
  18320. background-color: rgba(0, 0, 0, 0);
  18321. position: fixed;
  18322. top: 0;
  18323. left: 0;
  18324. width: 100%;
  18325. height: 100%;
  18326. z-index: 20000;
  18327. display: flex;
  18328. align-items: center;
  18329. justify-content: center;
  18330. }
  18331. .progressBox {
  18332. width: 500px;
  18333. height: 180px;
  18334. background: #fff;
  18335. border-radius: 10px;
  18336. box-shadow: 0 0 6px 1px #bfbfbf;
  18337. display: flex;
  18338. align-items: center;
  18339. justify-content: center;
  18340. flex-direction: column;
  18341. position: relative;
  18342. color: #6c6c6c;
  18343. }
  18344. .progressBox >>> .el-progress-bar__outer {
  18345. background-color: #d1dfff !important;
  18346. }
  18347. .progressBox .lbox {
  18348. height: 50px;
  18349. font-size: 19px;
  18350. display: flex;
  18351. align-items: center;
  18352. color: #747474;
  18353. }
  18354. .progressBox .lbox img {
  18355. width: 40px;
  18356. margin-right: 20px;
  18357. }
  18358. .closeCss {
  18359. position: absolute;
  18360. top: 8px;
  18361. right: 8px;
  18362. cursor: pointer;
  18363. width: 20px;
  18364. height: 20px;
  18365. }
  18366. .closeCss > img {
  18367. width: 100%;
  18368. height: 100%;
  18369. }
  18370. .uploadVedio {
  18371. display: flex;
  18372. flex-direction: column;
  18373. flex-wrap: nowrap;
  18374. justify-content: center;
  18375. align-items: center;
  18376. margin: 0 15px 10px 0;
  18377. }
  18378. .uploadVedio > img {
  18379. width: 30px;
  18380. height: 30px;
  18381. }
  18382. .uploadVedio > span {
  18383. white-space: nowrap;
  18384. overflow: hidden;
  18385. text-overflow: ellipsis;
  18386. width: 75px;
  18387. margin-top: 7px;
  18388. }
  18389. .picName {
  18390. white-space: nowrap;
  18391. overflow: hidden;
  18392. text-overflow: ellipsis;
  18393. width: 75px;
  18394. margin-top: 7px;
  18395. }
  18396. .new_top {
  18397. display: flex;
  18398. background: #fff;
  18399. flex-direction: row;
  18400. justify-content: flex-start;
  18401. align-items: center;
  18402. height: 60px;
  18403. position: relative;
  18404. }
  18405. .new_top::before {
  18406. content: "";
  18407. width: 100%;
  18408. height: 20px;
  18409. position: absolute;
  18410. top: -20px;
  18411. display: block;
  18412. background: #f2f2f2;
  18413. }
  18414. .before {
  18415. position: absolute;
  18416. background: #c3dad4;
  18417. width: 6px;
  18418. height: 100%;
  18419. }
  18420. .courseIndex {
  18421. display: flex;
  18422. flex-direction: row;
  18423. align-items: center;
  18424. width: calc(100% - 600px);
  18425. }
  18426. .courseIndex > div:nth-child(1) {
  18427. margin: 0 0 0 10px;
  18428. font-size: 24px;
  18429. min-width: 100px;
  18430. font-weight: bold;
  18431. border-left: 4px solid #3363b9;
  18432. height: 35px;
  18433. text-align: center;
  18434. line-height: 35px;
  18435. }
  18436. .courseIndex > div:nth-child(2) {
  18437. font-size: 23px;
  18438. /* width: 300px; */
  18439. max-width: calc(100% - 180px);
  18440. white-space: nowrap;
  18441. overflow: hidden;
  18442. text-overflow: ellipsis;
  18443. }
  18444. .courseIndex > div:nth-child(3) {
  18445. border-bottom: 1px solid #d7d7d7;
  18446. padding-bottom: 5px;
  18447. background: #49a0f0;
  18448. width: 55px;
  18449. min-width: 55px;
  18450. border-radius: 5px;
  18451. color: #fff;
  18452. text-align: center;
  18453. height: 20px;
  18454. line-height: 26px;
  18455. font-size: 14px;
  18456. margin: 0 0 0 10px;
  18457. }
  18458. .course_text {
  18459. padding: 20px 0 0 15px;
  18460. text-indent: 30px;
  18461. width: 80%;
  18462. min-height: 20px;
  18463. }
  18464. .vedioList {
  18465. background: #f2f2f2;
  18466. border: 1px solid #ececec;
  18467. /* width: 38.8%; */
  18468. width: 300px;
  18469. height: 445px;
  18470. border-radius: 10px;
  18471. overflow: hidden;
  18472. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  18473. }
  18474. .vedioNav {
  18475. margin: 10px 0 0 15px;
  18476. border-bottom: 1px solid #d7d7d7;
  18477. padding-bottom: 5px;
  18478. background: #96d1ff;
  18479. width: 55px;
  18480. min-width: 55px;
  18481. border-radius: 5px;
  18482. color: #fff;
  18483. text-align: center;
  18484. height: 20px;
  18485. line-height: 26px;
  18486. font-size: 14px;
  18487. }
  18488. .queTop {
  18489. display: flex;
  18490. padding: 20px 0 20px 30px;
  18491. width: 100%;
  18492. flex-direction: row;
  18493. justify-content: flex-start;
  18494. align-items: center;
  18495. box-sizing: border-box;
  18496. }
  18497. .queTop::before {
  18498. content: "";
  18499. width: 2px;
  18500. height: 22px;
  18501. background: #3681fc;
  18502. border-radius: 3px;
  18503. display: block;
  18504. margin: 2px 6px 0 0;
  18505. }
  18506. .question {
  18507. width: 40px;
  18508. margin-right: 10px;
  18509. margin-top: 7px;
  18510. }
  18511. .queTitle {
  18512. margin-left: 5px;
  18513. font-size: 25px;
  18514. display: flex;
  18515. align-items: center;
  18516. }
  18517. .addEditor {
  18518. width: 100px;
  18519. height: 30px;
  18520. background: #42cda6;
  18521. color: #fff;
  18522. border-radius: 5px;
  18523. text-align: center;
  18524. line-height: 30px;
  18525. box-shadow: 1px 3px 6px 1px #bfbfbf;
  18526. cursor: pointer;
  18527. }
  18528. .vedioName {
  18529. /* text-overflow: ellipsis;
  18530. top: 8px;
  18531. font-size: 14px;
  18532. overflow: hidden;
  18533. width: 100%;
  18534. word-break: break-all;
  18535. white-space: nowrap; */
  18536. cursor: pointer;
  18537. margin: 0px 0px 10px 5px;
  18538. white-space: nowrap;
  18539. overflow: hidden;
  18540. text-overflow: ellipsis;
  18541. width: 100%;
  18542. }
  18543. .vedioTime {
  18544. width: 35px;
  18545. position: absolute;
  18546. color: #fff;
  18547. bottom: 0px;
  18548. right: 0px;
  18549. text-align: center;
  18550. background: #46411f;
  18551. height: 20px;
  18552. font-size: 14px;
  18553. line-height: 20px;
  18554. }
  18555. .homework {
  18556. width: 200px;
  18557. display: flex;
  18558. flex-direction: column;
  18559. flex-wrap: nowrap;
  18560. align-items: center;
  18561. cursor: pointer;
  18562. }
  18563. .homebox {
  18564. display: flex;
  18565. flex-wrap: wrap;
  18566. flex-direction: row;
  18567. justify-content: flex-start;
  18568. align-items: center;
  18569. padding: 15px 0;
  18570. }
  18571. .isChooseActive {
  18572. color: #3e88f4;
  18573. border-bottom: 2px solid #2f80f3;
  18574. }
  18575. .chooseWho {
  18576. display: flex;
  18577. width: 100%;
  18578. flex-direction: row;
  18579. flex-wrap: nowrap;
  18580. justify-content: flex-start;
  18581. padding-bottom: 10px;
  18582. }
  18583. .chooseWho > div {
  18584. cursor: pointer;
  18585. padding-bottom: 10px;
  18586. margin: 0 30px 0 0;
  18587. font-weight: 400;
  18588. color: #0e1e33;
  18589. }
  18590. .addPoint > div > img {
  18591. cursor: pointer;
  18592. margin: 0 10px;
  18593. width: 85px;
  18594. border-radius: 15px;
  18595. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  18596. }
  18597. .addPoint > div {
  18598. display: flex;
  18599. flex-direction: column;
  18600. flex-wrap: nowrap;
  18601. align-items: center;
  18602. }
  18603. .isBorder > div {
  18604. margin: 0 0 10px 0;
  18605. align-items: flex-start !important;
  18606. }
  18607. .noiframeBox {
  18608. display: flex;
  18609. flex-wrap: wrap;
  18610. }
  18611. .iframeBox iframe {
  18612. width: 100%;
  18613. height: 800px;
  18614. border: none;
  18615. margin-bottom: 20px;
  18616. border: 1px solid #ccc;
  18617. }
  18618. .upload_toolBtn {
  18619. background: #6b92c9;
  18620. color: #fff;
  18621. width: 110px;
  18622. text-align: center;
  18623. height: 35px;
  18624. line-height: 35px;
  18625. font-size: 14px;
  18626. border-radius: 5px;
  18627. cursor: pointer;
  18628. position: absolute;
  18629. right: 10px;
  18630. bottom: 0;
  18631. }
  18632. .binfo_input,
  18633. .pj {
  18634. font: inherit;
  18635. color: currentColor;
  18636. width: 100%;
  18637. margin: 0;
  18638. padding: 15px 14px;
  18639. display: block;
  18640. min-width: 0;
  18641. outline: none;
  18642. box-sizing: content-box;
  18643. background: none;
  18644. -webkit-tap-highlight-color: transparent;
  18645. border: 1px solid rgba(0, 0, 0, 0.23);
  18646. border-radius: 4px;
  18647. box-sizing: border-box;
  18648. resize: none;
  18649. }
  18650. .binfo_input:focus-visible {
  18651. border: 1px solid rgba(61, 103, 188);
  18652. }
  18653. .dialog_diy >>> .el-dialog__header,
  18654. .dialog_diy1 >>> .el-dialog__header {
  18655. background: #454545 !important;
  18656. padding: 15px 20px;
  18657. }
  18658. .dialog_diy >>> .el-dialog__title,
  18659. .dialog_diy1 >>> .el-dialog__title {
  18660. color: #fff;
  18661. }
  18662. .dialog_diy >>> .el-dialog__headerbtn,
  18663. .dialog_diy1 >>> .el-dialog__headerbtn {
  18664. top: 19px;
  18665. }
  18666. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  18667. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  18668. color: #fff;
  18669. }
  18670. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  18671. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  18672. color: #fff;
  18673. }
  18674. .dialog_diy1 >>> .el-dialog__body {
  18675. padding: 0;
  18676. }
  18677. .dialog_diy >>> .el-dialog__body,
  18678. .dialog_diy >>> .el-dialog__footer,
  18679. .dialog_diy1 >>> .el-dialog__footer {
  18680. background: #fafafa;
  18681. }
  18682. .a_addBox {
  18683. margin: 10px 0;
  18684. background: #fff;
  18685. padding: 15px;
  18686. }
  18687. .a_add_box {
  18688. border-bottom: 2px solid #eee;
  18689. padding-bottom: 10px;
  18690. }
  18691. .a_add_head {
  18692. display: flex;
  18693. align-items: flex-start;
  18694. /* justify-content: space-between; */
  18695. flex-direction: column;
  18696. /* flex-direction: row; */
  18697. margin: 10px 0 20px 0;
  18698. font-size: 18px;
  18699. width: 100%;
  18700. }
  18701. .a_add_head .a_add_head_input {
  18702. width: 300px;
  18703. }
  18704. .a_add_head .a_add_head_div {
  18705. display: flex;
  18706. align-items: center;
  18707. justify-content: space-between;
  18708. }
  18709. .a_add_body {
  18710. display: flex;
  18711. align-items: center;
  18712. }
  18713. .a_add_input {
  18714. display: flex;
  18715. align-items: center;
  18716. flex-wrap: wrap;
  18717. }
  18718. .a_add_input >>> el-radio-group {
  18719. margin: 10px 0;
  18720. }
  18721. .a_add_input >>> .el-radio,
  18722. .a_add_input >>> .el-checkbox {
  18723. margin-bottom: 10px;
  18724. display: flex;
  18725. flex-direction: row;
  18726. flex-wrap: nowrap;
  18727. align-items: center;
  18728. }
  18729. .redioStyle >>> .el-radio__label {
  18730. font-size: 18px;
  18731. }
  18732. .redioStyle >>> .el-checkbox__label {
  18733. font-size: 18px;
  18734. }
  18735. .toolHeng2 {
  18736. width: 100%;
  18737. box-sizing: border-box;
  18738. }
  18739. .toolHeng {
  18740. display: flex;
  18741. flex-direction: row;
  18742. flex-wrap: wrap;
  18743. justify-content: flex-start;
  18744. align-items: center;
  18745. width: 100%;
  18746. }
  18747. .toolHeng > div {
  18748. padding-left: 20px;
  18749. }
  18750. .isWidth {
  18751. width: 20%;
  18752. }
  18753. .textTitle {
  18754. display: flex;
  18755. flex-direction: row;
  18756. flex-wrap: nowrap;
  18757. align-items: center;
  18758. width: 95%;
  18759. }
  18760. .textTitle >>> .el-form-item__label {
  18761. font-size: 22px;
  18762. color: #918f8f;
  18763. width: 100px;
  18764. }
  18765. .textTitle >>> .el-form-item__content {
  18766. width: calc(100% - 100px);
  18767. }
  18768. .textCss >>> .el-dialog {
  18769. width: 800px !important;
  18770. height: 400px;
  18771. background: #fafafa;
  18772. }
  18773. .textCss >>> .el-dialog__body {
  18774. margin: 55px 8% 0 8%;
  18775. padding: 0 !important;
  18776. }
  18777. .textCss >>> .el-dialog__footer {
  18778. padding-top: 38px;
  18779. }
  18780. .toolsCss >>> .el-dialog__body {
  18781. padding: 20px;
  18782. }
  18783. .lineCss >>> .el-dialog__body {
  18784. display: flex;
  18785. flex-direction: row;
  18786. align-items: center;
  18787. justify-content: center;
  18788. }
  18789. .newNav {
  18790. display: flex;
  18791. flex-direction: row;
  18792. align-items: baseline;
  18793. justify-content: flex-start;
  18794. }
  18795. .navText {
  18796. cursor: pointer;
  18797. white-space: nowrap;
  18798. overflow: hidden;
  18799. text-overflow: ellipsis;
  18800. width: 220px;
  18801. padding: 0 10px;
  18802. font-weight: 400;
  18803. color: #0e1e33;
  18804. }
  18805. .noVedio {
  18806. display: flex;
  18807. flex-direction: row;
  18808. justify-content: center;
  18809. align-content: center;
  18810. }
  18811. .noNavText {
  18812. cursor: pointer;
  18813. margin: 0px 0px 10px 5px;
  18814. width: 112px;
  18815. }
  18816. .listNoVedio {
  18817. margin: 0 0 0 30px;
  18818. width: 97%;
  18819. }
  18820. .video-player >>> .video-js {
  18821. height: 100%;
  18822. }
  18823. .hangVedioList {
  18824. width: 90% !important;
  18825. height: 150px !important;
  18826. margin: 20px 0 0 30px;
  18827. }
  18828. .hangVedio {
  18829. width: 100%;
  18830. height: 170px !important;
  18831. align-items: flex-start !important;
  18832. }
  18833. .hangHand {
  18834. height: 150px !important;
  18835. }
  18836. .twoChild {
  18837. width: 95%;
  18838. margin: 10px;
  18839. border-radius: 5px;
  18840. background: #f2f2f2;
  18841. display: flex;
  18842. flex-direction: column;
  18843. flex-wrap: nowrap;
  18844. justify-content: flex-start;
  18845. align-items: flex-start;
  18846. transition: all 0.5s;
  18847. overflow: hidden;
  18848. height: 0;
  18849. background: #e7f3ff;
  18850. }
  18851. .twoChild > div:nth-child(1) {
  18852. margin-top: 5px;
  18853. }
  18854. .navChild {
  18855. width: 100%;
  18856. cursor: pointer;
  18857. margin-bottom: 10px;
  18858. position: relative;
  18859. }
  18860. .navChild img {
  18861. position: absolute;
  18862. right: 11px;
  18863. width: 15px;
  18864. top: 50%;
  18865. transform: translateY(-50%);
  18866. }
  18867. .navActive {
  18868. height: auto !important;
  18869. overflow: auto !important;
  18870. padding-bottom: 10px;
  18871. }
  18872. .navTask {
  18873. display: flex;
  18874. flex-direction: row;
  18875. flex-wrap: nowrap;
  18876. align-items: center;
  18877. align-content: flex-start;
  18878. height: 40px;
  18879. justify-content: flex-start;
  18880. padding: 0 10px;
  18881. width: 100%;
  18882. box-sizing: border-box;
  18883. }
  18884. .navTaskname {
  18885. white-space: nowrap;
  18886. text-overflow: ellipsis;
  18887. overflow: hidden;
  18888. word-break: break-all;
  18889. padding-left: 5px;
  18890. }
  18891. .openTaskActive {
  18892. color: #4386e6;
  18893. }
  18894. .iframeName {
  18895. margin: 5px 0;
  18896. border-left: 4px solid #41c4a4;
  18897. padding-left: 4px;
  18898. }
  18899. .toolTitle {
  18900. margin: 0px 0px 20px;
  18901. font-size: 20px;
  18902. font-weight: 500;
  18903. border-left: 4px solid #41c4a4;
  18904. padding-left: 4px;
  18905. }
  18906. .cru_selectBox {
  18907. overflow: auto;
  18908. width: 90%;
  18909. margin: 17px auto 0;
  18910. height: calc(100% - 40px - 21px - 20px - 17px);
  18911. }
  18912. .cru_selectBox::-webkit-scrollbar,
  18913. .study_top::-webkit-scrollbar,
  18914. .textContent::-webkit-scrollbar {
  18915. /*滚动条整体样式*/
  18916. width: 6px;
  18917. /*高宽分别对应横竖滚动条的尺寸*/
  18918. height: 6px;
  18919. }
  18920. /*定义滚动条轨道 内阴影+圆角*/
  18921. .cru_selectBox::-webkit-scrollbar-track,
  18922. .study_top::-webkit-scrollbar-track,
  18923. .textContent::-webkit-scrollbar {
  18924. border-radius: 10px;
  18925. background-color: #b8bdc9;
  18926. }
  18927. /*定义滑块 内阴影+圆角*/
  18928. .cru_selectBox::-webkit-scrollbar-thumb,
  18929. .study_top::-webkit-scrollbar-thumb,
  18930. .textContent::-webkit-scrollbar-thumb {
  18931. border-radius: 10px;
  18932. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  18933. background-color: #2c5ab3;
  18934. }
  18935. .vedioBox {
  18936. border-radius: 0 0 20px 20px;
  18937. background: #fff;
  18938. margin-bottom: 10px;
  18939. overflow: auto;
  18940. }
  18941. .taskBox {
  18942. width: 95%;
  18943. margin: 0 auto;
  18944. }
  18945. .vedioTaskBox {
  18946. width: 100%;
  18947. display: flex;
  18948. flex-direction: row;
  18949. flex-wrap: nowrap;
  18950. align-items: flex-start;
  18951. position: relative;
  18952. }
  18953. .toolBox {
  18954. padding: 30px 60px 15px;
  18955. display: flex;
  18956. position: relative;
  18957. }
  18958. .btnAll {
  18959. position: absolute;
  18960. right: 0;
  18961. display: flex;
  18962. flex-direction: row;
  18963. flex-wrap: nowrap;
  18964. align-items: center;
  18965. }
  18966. .btnAllNT {
  18967. position: fixed;
  18968. bottom: 50px;
  18969. right: 40px;
  18970. z-index: 999;
  18971. display: flex;
  18972. flex-direction: row;
  18973. }
  18974. .btnAllNT > img {
  18975. cursor: pointer;
  18976. width: 80px;
  18977. }
  18978. /* .vedioTimeBox {
  18979. display: flex;
  18980. flex-direction: row;
  18981. align-items: center;
  18982. flex-wrap: nowrap;
  18983. position: relative;
  18984. } */
  18985. .navBox {
  18986. background: #fff;
  18987. height: calc(100% - 40px);
  18988. overflow-y: auto;
  18989. overflow-x: hidden;
  18990. }
  18991. .tool_work_box {
  18992. width: 100%;
  18993. padding: 0 37px 10px;
  18994. box-sizing: border-box;
  18995. }
  18996. .worksBox {
  18997. padding: 5px 0;
  18998. border-bottom: 1px solid #eeeeee;
  18999. }
  19000. .worksBTitle {
  19001. font-size: 20px;
  19002. padding-bottom: 15px;
  19003. border-bottom: 1px solid #eeeeee;
  19004. display: flex;
  19005. align-items: center;
  19006. }
  19007. .greenBox {
  19008. width: 5px;
  19009. height: 30px;
  19010. background: #63b6fa;
  19011. margin-right: 5px;
  19012. }
  19013. .worksDetailBox {
  19014. display: flex;
  19015. width: 100%;
  19016. flex-direction: row;
  19017. flex-wrap: wrap;
  19018. align-items: flex-end;
  19019. justify-content: flex-start;
  19020. padding: 15px 0;
  19021. }
  19022. .works {
  19023. display: flex;
  19024. flex-direction: column;
  19025. flex-wrap: nowrap;
  19026. align-items: flex-start;
  19027. justify-content: flex-start;
  19028. align-content: center;
  19029. max-width: 240px;
  19030. width: calc(100% / 3 - 10px);
  19031. height: auto;
  19032. margin-right: 10px;
  19033. margin-bottom: 10px;
  19034. overflow: hidden;
  19035. height: 140px;
  19036. box-shadow: 0 0 6px 1px #dfdada;
  19037. border-radius: 15px;
  19038. }
  19039. .workImg {
  19040. width: 100%;
  19041. /* height: calc(100% - 40px); */
  19042. height: 105px;
  19043. position: relative;
  19044. }
  19045. .workImg > img {
  19046. width: 100%;
  19047. height: 100%;
  19048. object-fit: contain;
  19049. cursor: pointer;
  19050. }
  19051. .worksName {
  19052. height: 40px;
  19053. line-height: 40px;
  19054. display: flex;
  19055. width: 100%;
  19056. flex-direction: row;
  19057. flex-wrap: nowrap;
  19058. justify-content: space-between;
  19059. align-items: center;
  19060. margin: 0 0 0 10px;
  19061. }
  19062. .worksName > div:nth-child(1) {
  19063. width: 110px;
  19064. white-space: nowrap;
  19065. overflow: hidden;
  19066. text-overflow: ellipsis;
  19067. }
  19068. .worksName > div:nth-child(2) {
  19069. color: #b7b4b5;
  19070. }
  19071. .noWorksS {
  19072. padding: 15px 0 0;
  19073. display: flex;
  19074. flex-direction: row;
  19075. flex-wrap: wrap;
  19076. align-items: center;
  19077. justify-content: flex-start;
  19078. }
  19079. .noWorksS > div {
  19080. cursor: pointer;
  19081. }
  19082. .noWorksName,
  19083. .isWorksName {
  19084. background: #7cbcf1;
  19085. color: #fff;
  19086. width: 90px;
  19087. height: 25px;
  19088. text-align: center;
  19089. line-height: 25px;
  19090. border-radius: 5px;
  19091. margin: 10px 15px 10px 0;
  19092. white-space: nowrap;
  19093. overflow: hidden;
  19094. padding: 5px;
  19095. text-overflow: ellipsis;
  19096. }
  19097. .noWorksName.isWork {
  19098. background: #165d96 !important;
  19099. }
  19100. .isWorksName {
  19101. cursor: pointer;
  19102. background: #46a1eb !important;
  19103. width: 100px;
  19104. height: 40px;
  19105. line-height: 40px;
  19106. position: relative;
  19107. }
  19108. .noWorksName:hover {
  19109. background: #46a1eb !important;
  19110. }
  19111. .title {
  19112. background: #1e5cc9;
  19113. /* width: 98%; */
  19114. height: 45px;
  19115. color: #fff;
  19116. line-height: 45px;
  19117. padding-left: 20px;
  19118. box-sizing: border-box;
  19119. }
  19120. .textBox {
  19121. font-size: 20px;
  19122. width: 90%;
  19123. display: flex;
  19124. flex-direction: column;
  19125. align-items: center;
  19126. margin: 20px auto 0;
  19127. max-height: 500px;
  19128. overflow: auto;
  19129. }
  19130. .textContent {
  19131. font-size: 18px;
  19132. width: 95%;
  19133. max-width: 95%;
  19134. }
  19135. .answerBg {
  19136. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  19137. background-size: 100% 100%;
  19138. width: 100%;
  19139. height: 100%;
  19140. color: #fff;
  19141. text-align: center;
  19142. display: flex;
  19143. flex-direction: column;
  19144. flex-wrap: nowrap;
  19145. align-items: center;
  19146. position: relative;
  19147. justify-content: center;
  19148. }
  19149. .answerBg > div:nth-child(1) {
  19150. /* font-size: 22px;
  19151. padding: 25px 0 10px; */
  19152. }
  19153. .answerContent {
  19154. width: 215px;
  19155. max-height: 60px;
  19156. word-break: break-all;
  19157. text-align: center;
  19158. /* white-space: nowrap; */
  19159. overflow: hidden;
  19160. text-overflow: ellipsis;
  19161. /* padding: 23px 0 0; */
  19162. -webkit-line-clamp: 3;
  19163. -webkit-box-orient: vertical;
  19164. display: -webkit-box;
  19165. font-size: 15px;
  19166. cursor: pointer;
  19167. }
  19168. .elist_input_box {
  19169. display: flex;
  19170. align-items: flex-start;
  19171. flex-wrap: nowrap;
  19172. padding: 10px 0 15px 30px;
  19173. flex-direction: column;
  19174. }
  19175. .elist_input {
  19176. /* width: 40%; */
  19177. width: 100%;
  19178. }
  19179. .elist_input .elist_input_box input {
  19180. font: inherit;
  19181. color: currentColor;
  19182. width: 200px;
  19183. padding: 8px 14px;
  19184. display: block;
  19185. min-width: 0;
  19186. outline: none;
  19187. border: 1px solid rgba(0, 0, 0, 0.23);
  19188. border-radius: 4px;
  19189. box-sizing: border-box;
  19190. background: #fff;
  19191. margin: 0 20px 0 0;
  19192. }
  19193. .elist_input .elist_input_box span {
  19194. height: 36px;
  19195. line-height: 36px;
  19196. color: rgb(82, 82, 82);
  19197. }
  19198. .elist_input .elist_input_box .remove {
  19199. height: 20px;
  19200. width: 20px;
  19201. background-size: 100% 100%;
  19202. background-position: unset;
  19203. margin-left: 5px;
  19204. }
  19205. .elist_input_box >>> .el-rate {
  19206. display: flex;
  19207. height: 36px;
  19208. align-items: center;
  19209. }
  19210. .elist_input_box .elist_inptu_text {
  19211. min-height: 50px;
  19212. /* width: 500px;
  19213. max-height: 150px; */
  19214. width: 100%;
  19215. line-height: 50px;
  19216. color: rgb(82, 82, 82);
  19217. overflow: auto;
  19218. text-indent: 5px;
  19219. background: #f7f6f9;
  19220. border-radius: 10px;
  19221. }
  19222. .elist_input_box .elist_inptu_text input {
  19223. width: 500px;
  19224. }
  19225. .elist_input_box >>> .el-rate__icon {
  19226. font-size: 24px;
  19227. }
  19228. .isClick {
  19229. background: #4d9def;
  19230. }
  19231. /*定义滚动条轨道 内阴影+圆角*/
  19232. .bzTypeBox::-webkit-scrollbar {
  19233. /*滚动条整体样式*/
  19234. width: 6px;
  19235. /*高宽分别对应横竖滚动条的尺寸*/
  19236. height: 6px;
  19237. }
  19238. /*定义滚动条轨道 内阴影+圆角*/
  19239. .bzTypeBox::-webkit-scrollbar-track {
  19240. border-radius: 10px;
  19241. background-color: rgba(0, 0, 0, 0.1);
  19242. }
  19243. /*定义滑块 内阴影+圆角*/
  19244. .bzTypeBox::-webkit-scrollbar-thumb {
  19245. border-radius: 10px;
  19246. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  19247. background-color: rgba(0, 0, 0, 0.1);
  19248. }
  19249. .choiceBox {
  19250. display: flex;
  19251. margin: 20px 0;
  19252. width: 100%;
  19253. }
  19254. .bzTypeBox {
  19255. display: flex;
  19256. width: 100%;
  19257. overflow: auto;
  19258. white-space: nowrap;
  19259. }
  19260. .bzChild {
  19261. cursor: pointer;
  19262. box-sizing: border-box;
  19263. padding-bottom: 10px;
  19264. font-weight: bold;
  19265. min-width: fit-content;
  19266. }
  19267. .bzChild.active {
  19268. color: #3e88f4;
  19269. border-bottom: 2px solid #2f80f3;
  19270. }
  19271. .bzChild + .bzChild {
  19272. margin-left: 25px;
  19273. }
  19274. .bzBox {
  19275. display: flex;
  19276. flex-direction: row;
  19277. align-items: center;
  19278. }
  19279. .bzBox .yCss {
  19280. width: 14px;
  19281. height: 14px;
  19282. background: #3681fc;
  19283. margin: 0 16px 0 7px;
  19284. border-radius: 50%;
  19285. }
  19286. .bzBox > div:nth-child(2) {
  19287. font-size: 18px;
  19288. font-weight: bold;
  19289. color: #0e1e33;
  19290. }
  19291. .navTitile {
  19292. padding: 0 0px 0 15px;
  19293. font-size: 16px;
  19294. font-weight: bold;
  19295. color: #0e1e33;
  19296. height: 40px;
  19297. line-height: 40px;
  19298. }
  19299. .isTypeOne {
  19300. width: 240px;
  19301. height: 170px;
  19302. /* border: 1px solid #f8f8f8; */
  19303. border-radius: 10px;
  19304. box-shadow: 0 0 6px 1px #dfdada;
  19305. }
  19306. .e_add_top {
  19307. display: flex;
  19308. justify-content: space-between;
  19309. padding: 20px 20px 0 20px;
  19310. border-radius: 3px;
  19311. background: #fff;
  19312. }
  19313. .e_add_title2 {
  19314. display: flex;
  19315. align-items: center;
  19316. }
  19317. .e_add_title2 span {
  19318. width: 40px;
  19319. }
  19320. .e_add_title {
  19321. display: flex;
  19322. align-items: center;
  19323. color: #b8b8b8;
  19324. font-size: 18px;
  19325. position: relative;
  19326. height: 40px;
  19327. }
  19328. .e_add_title span {
  19329. margin-right: 10px;
  19330. }
  19331. .e_add_title .el_input {
  19332. width: 300px;
  19333. }
  19334. .e_add_title >>> .el-input__inner {
  19335. width: 400px;
  19336. }
  19337. .e_add_btn {
  19338. }
  19339. .e_add_content {
  19340. display: flex;
  19341. width: 100%;
  19342. max-width: 650px;
  19343. height: 550px;
  19344. }
  19345. .e_add_list {
  19346. background: #fff;
  19347. height: 500px;
  19348. width: 210px;
  19349. position: relative;
  19350. margin: 15px 5px 0 0;
  19351. flex-shrink: 0;
  19352. display: flex;
  19353. flex-direction: column;
  19354. }
  19355. .e_add_list_title {
  19356. font-size: 20px;
  19357. width: 100%;
  19358. box-sizing: border-box;
  19359. padding: 15px 40px;
  19360. text-align: center;
  19361. border-bottom: 1px solid #eaeaea;
  19362. position: relative;
  19363. display: flex;
  19364. align-items: center;
  19365. justify-content: center;
  19366. height: 57px;
  19367. background: #f6f6f6;
  19368. }
  19369. .e_add_list_title span {
  19370. overflow: hidden;
  19371. white-space: nowrap;
  19372. text-overflow: ellipsis;
  19373. }
  19374. .e_add_list_title img {
  19375. position: absolute;
  19376. right: 15px;
  19377. width: 25px;
  19378. cursor: pointer;
  19379. top: 50%;
  19380. transform: translateY(-50%);
  19381. }
  19382. .e_add_list_body {
  19383. height: calc(100% - 187px);
  19384. overflow: auto;
  19385. }
  19386. .e_add_list_child {
  19387. width: 100%;
  19388. display: flex;
  19389. align-items: center;
  19390. justify-content: center;
  19391. position: relative;
  19392. box-sizing: border-box;
  19393. padding: 15px 40px;
  19394. text-align: center;
  19395. }
  19396. .e_add_list_child span {
  19397. overflow: hidden;
  19398. white-space: nowrap;
  19399. text-overflow: ellipsis;
  19400. cursor: pointer;
  19401. }
  19402. .e_add_list_child img {
  19403. position: absolute;
  19404. right: 10px;
  19405. width: 21px;
  19406. cursor: pointer;
  19407. top: 50%;
  19408. transform: translateY(-50%);
  19409. }
  19410. .e_add_list_child + .e_add_list_child {
  19411. border-top: 1px solid #eaeaea;
  19412. }
  19413. .e_add_list_child .active {
  19414. color: #409eff;
  19415. }
  19416. .e_add_list_btn {
  19417. position: absolute;
  19418. bottom: 0;
  19419. height: 50px;
  19420. background: rgb(120, 120, 254);
  19421. width: 100%;
  19422. color: #fff;
  19423. font-size: 16px;
  19424. text-align: center;
  19425. line-height: 50px;
  19426. cursor: pointer;
  19427. }
  19428. .e_add_list_detail {
  19429. position: absolute;
  19430. bottom: 0;
  19431. height: 130px;
  19432. background: rgb(120, 120, 254);
  19433. width: 100%;
  19434. color: #fff;
  19435. font-size: 16px;
  19436. display: flex;
  19437. align-items: center;
  19438. justify-content: center;
  19439. }
  19440. .e_add_list_detail textarea {
  19441. height: 90%;
  19442. width: 95%;
  19443. border: none;
  19444. resize: none;
  19445. outline: none;
  19446. padding: 5px;
  19447. box-sizing: border-box;
  19448. }
  19449. .e_add_list_pbox {
  19450. width: 100%;
  19451. max-width: 650px;
  19452. /* height: 600px; */
  19453. }
  19454. .e_add_list_pbox_title {
  19455. height: 50px;
  19456. background: #fff;
  19457. display: flex;
  19458. align-items: center;
  19459. width: 100%;
  19460. box-sizing: border-box;
  19461. padding: 0 20px;
  19462. }
  19463. .type_title {
  19464. font-size: 18px;
  19465. font-weight: 700;
  19466. }
  19467. .type_content {
  19468. font-size: 16px;
  19469. margin-left: 30px;
  19470. }
  19471. .type_content span + span {
  19472. margin-left: 20px;
  19473. }
  19474. .type_content span {
  19475. cursor: pointer;
  19476. padding-bottom: 5px;
  19477. box-sizing: border-box;
  19478. }
  19479. .type_content .active {
  19480. color: #409eff;
  19481. border-bottom: 2px solid #409eff;
  19482. }
  19483. .e_add_list_pbox_content {
  19484. height: calc(100% - 50px);
  19485. display: flex;
  19486. align-items: center;
  19487. width: 100%;
  19488. background: #fff;
  19489. }
  19490. .evaCss {
  19491. display: flex;
  19492. flex-direction: row;
  19493. flex-wrap: nowrap;
  19494. align-items: flex-start;
  19495. }
  19496. .cru_line {
  19497. position: absolute;
  19498. bottom: 0px;
  19499. transition: all 0.5s;
  19500. left: 0px;
  19501. width: 125px;
  19502. margin-left: -25px;
  19503. }
  19504. .isNoMessage {
  19505. width: 20%;
  19506. margin: 25% auto 0;
  19507. }
  19508. .isNoMessage > img {
  19509. width: 100%;
  19510. height: 100%;
  19511. }
  19512. .fullStyle >>> .el-dialog__body {
  19513. height: 100% !important;
  19514. }
  19515. .fullStyle >>> .el-dialog,
  19516. .fullStyle {
  19517. width: 100% !important;
  19518. max-width: 100% !important;
  19519. height: 100% !important;
  19520. margin: 0 !important;
  19521. }
  19522. .full_diy >>> .el-dialog {
  19523. margin: 0 !important;
  19524. height: 100%;
  19525. padding: 4px;
  19526. }
  19527. .full_diy >>> .el-dialog__body {
  19528. height: calc(100% - 100px);
  19529. }
  19530. .full_diy2 >>> .el-dialog__body {
  19531. height: calc(100% - 50px);
  19532. padding: 0;
  19533. }
  19534. .switchCss {
  19535. /* width: 100%; */
  19536. display: flex;
  19537. flex-direction: row;
  19538. flex-wrap: nowrap;
  19539. align-items: center;
  19540. /* justify-content: center; */
  19541. }
  19542. .isClickNav {
  19543. color: #499eef;
  19544. }
  19545. .commentImg {
  19546. width: 25px;
  19547. height: 25px;
  19548. cursor: pointer;
  19549. }
  19550. .commentImg > img {
  19551. width: 100%;
  19552. height: 100%;
  19553. }
  19554. .comment {
  19555. background: #f9f9f9;
  19556. border-radius: 0 0 15px 15px;
  19557. display: flex;
  19558. flex-direction: row;
  19559. flex-wrap: nowrap;
  19560. align-items: center;
  19561. justify-content: flex-end;
  19562. height: 35px;
  19563. }
  19564. .commentList {
  19565. display: flex;
  19566. flex-direction: row;
  19567. flex-wrap: nowrap;
  19568. align-items: center;
  19569. justify-content: center;
  19570. align-content: center;
  19571. /* margin-left: 15px; */
  19572. /* margin-left: 8px; */
  19573. }
  19574. .scoreImg {
  19575. width: 17px;
  19576. height: 17px;
  19577. }
  19578. .studentDetail {
  19579. display: flex;
  19580. flex-direction: row;
  19581. flex-wrap: nowrap;
  19582. /* align-items: center; */
  19583. align-items: flex-start;
  19584. }
  19585. .tx {
  19586. width: 50px;
  19587. }
  19588. .tx > img {
  19589. width: 100%;
  19590. height: 100%;
  19591. }
  19592. .nameAndTime {
  19593. display: flex;
  19594. flex-direction: column;
  19595. flex-wrap: nowrap;
  19596. align-items: flex-start;
  19597. margin-left: 10px;
  19598. }
  19599. .worksAnswer {
  19600. color: #4078dd;
  19601. margin: 10px 0;
  19602. font-size: 16px;
  19603. position: relative;
  19604. }
  19605. .worksAnswer > img {
  19606. width: 500px;
  19607. height: 300px;
  19608. object-fit: contain;
  19609. margin: 0 auto;
  19610. display: block;
  19611. }
  19612. .commentTop {
  19613. border-bottom: 1px solid #eaeaea;
  19614. padding-bottom: 10px;
  19615. }
  19616. .commentBox {
  19617. padding-top: 15px;
  19618. }
  19619. .pl {
  19620. font-size: 18px;
  19621. }
  19622. .plPerson {
  19623. width: 100%;
  19624. }
  19625. .plName {
  19626. display: flex;
  19627. flex-direction: row;
  19628. flex-wrap: nowrap;
  19629. align-items: baseline;
  19630. color: #78787a;
  19631. width: 100%;
  19632. }
  19633. .deleteComment {
  19634. cursor: pointer;
  19635. margin-left: auto;
  19636. color: #237ade;
  19637. }
  19638. .plContent {
  19639. margin-top: 5px;
  19640. }
  19641. .evalCss {
  19642. background: #fff;
  19643. font-size: 18px;
  19644. }
  19645. .nav {
  19646. color: #9d9d9d;
  19647. padding: 5px 0 15px 20px;
  19648. }
  19649. .middleBox {
  19650. padding: 5px 0 15px 20px;
  19651. }
  19652. .pfBox {
  19653. padding-bottom: 30px;
  19654. }
  19655. .nameAndrate {
  19656. display: flex;
  19657. flex-direction: row;
  19658. flex-wrap: nowrap;
  19659. align-items: center;
  19660. padding-bottom: 10px;
  19661. height: 30px;
  19662. line-height: 30px;
  19663. }
  19664. .nameAndrate > div {
  19665. margin-left: 10px;
  19666. color: #000;
  19667. height: 30px;
  19668. }
  19669. .nameAndrate >>> .el-rate__icon {
  19670. font-size: 28px !important;
  19671. }
  19672. .pfBox > div:nth-child(2) {
  19673. background: #f7f6f9;
  19674. width: 400px;
  19675. min-height: 45px;
  19676. border-radius: 10px;
  19677. font-size: 16px;
  19678. display: flex;
  19679. flex-wrap: wrap;
  19680. align-items: center;
  19681. padding: 10px 20px;
  19682. box-sizing: border-box;
  19683. color: #000;
  19684. }
  19685. .bz {
  19686. display: flex;
  19687. flex-direction: row;
  19688. flex-wrap: nowrap;
  19689. align-items: flex-start;
  19690. }
  19691. .bz > div {
  19692. padding: 0 10px;
  19693. }
  19694. .select_box2_title {
  19695. background: #fff;
  19696. border-radius: 5px;
  19697. padding: 15px 10px;
  19698. box-sizing: border-box;
  19699. margin-bottom: 10px;
  19700. display: flex;
  19701. flex-direction: row;
  19702. flex-wrap: nowrap;
  19703. align-items: center;
  19704. }
  19705. .select_box2_title > div:nth-child(2) {
  19706. margin-left: 10px;
  19707. color: #c4c4c4;
  19708. }
  19709. .select_box2_box {
  19710. display: flex;
  19711. height: 500px;
  19712. }
  19713. .select_box2_img {
  19714. width: calc(100% - 310px);
  19715. height: 100%;
  19716. overflow: auto;
  19717. background: #fff;
  19718. border-radius: 5px;
  19719. }
  19720. .select_box2_img img {
  19721. width: 100%;
  19722. }
  19723. .select_box2_answer {
  19724. background: #fff;
  19725. margin-left: 10px;
  19726. border-radius: 5px;
  19727. width: 300px;
  19728. overflow: auto;
  19729. height: 90%;
  19730. display: flex;
  19731. flex-direction: column;
  19732. align-items: flex-start;
  19733. padding-top: 10px;
  19734. box-sizing: border-box;
  19735. position: relative;
  19736. }
  19737. .select_answer_title {
  19738. padding: 0 0 15px 20px;
  19739. color: #c4c4c4;
  19740. }
  19741. .select_box2_answer_box {
  19742. margin: 0 0 10px 20px;
  19743. width: 85%;
  19744. display: flex;
  19745. flex-direction: row;
  19746. flex-wrap: nowrap;
  19747. align-items: center;
  19748. }
  19749. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  19750. color: #000;
  19751. }
  19752. .upAnswerCss {
  19753. position: absolute;
  19754. bottom: 15px;
  19755. right: 15px;
  19756. }
  19757. .upAnswerCss >>> .el-button {
  19758. width: 95px;
  19759. height: 35px;
  19760. line-height: 35px;
  19761. padding: 0;
  19762. }
  19763. .rightWidthCss {
  19764. width: 60%;
  19765. display: flex;
  19766. flex-direction: row;
  19767. align-items: flex-start;
  19768. }
  19769. .rightAnswer {
  19770. display: flex;
  19771. flex-direction: row;
  19772. flex-wrap: nowrap;
  19773. align-items: center;
  19774. color: red;
  19775. margin-bottom: 31px;
  19776. }
  19777. .rightAnswerCss {
  19778. display: flex;
  19779. flex-direction: column;
  19780. flex-wrap: nowrap;
  19781. padding-top: 60px;
  19782. }
  19783. .blueCss {
  19784. color: #767de1;
  19785. margin-left: 10px;
  19786. }
  19787. .redCss {
  19788. color: red;
  19789. }
  19790. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  19791. color: rgb(0 123 255) !important;
  19792. }
  19793. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  19794. color: rgb(0 123 255) !important;
  19795. }
  19796. .zuoyeYulan {
  19797. padding-top: 15px;
  19798. font-size: 18px;
  19799. display: flex;
  19800. align-items: flex-end;
  19801. }
  19802. .buttonA {
  19803. margin-left: 10px;
  19804. padding: 0;
  19805. }
  19806. .displayBox {
  19807. margin-bottom: 10px;
  19808. display: block;
  19809. border-bottom: 3px solid #eee;
  19810. display: flex;
  19811. align-items: center;
  19812. }
  19813. .easy_comment {
  19814. width: calc(100% - 90px);
  19815. margin-left: 10px;
  19816. display: flex;
  19817. flex-wrap: wrap;
  19818. }
  19819. .easy_comment > div {
  19820. border: 1px solid #4a4a4a;
  19821. color: #666;
  19822. border-radius: 15px;
  19823. padding: 5px 10px;
  19824. font-size: 16px;
  19825. margin-bottom: 10px;
  19826. margin-right: 5px;
  19827. cursor: pointer;
  19828. }
  19829. .easy_comment div:hover {
  19830. border: 1px solid #f7ba2a;
  19831. color: #c69217;
  19832. }
  19833. .xuan_right_box {
  19834. padding: 10px;
  19835. background: rgb(247, 247, 247);
  19836. margin: 10px 12px;
  19837. border-radius: 5px;
  19838. }
  19839. .tool_right_box {
  19840. display: flex;
  19841. align-items: center;
  19842. }
  19843. .tool_right_box + .tool_right_box {
  19844. margin-top: 10px;
  19845. }
  19846. .right_box_xuan {
  19847. background: rgb(0 123 255);
  19848. color: #fff;
  19849. border-radius: 5px;
  19850. padding: 5px;
  19851. margin-left: 10px;
  19852. }
  19853. .pButton:hover {
  19854. opacity: 1 !important;
  19855. }
  19856. .pButton {
  19857. position: fixed;
  19858. /* right: 5%; */
  19859. /* bottom: 5%; */
  19860. color: #fff;
  19861. /* width: 50px;
  19862. height: 50px; */
  19863. /* border-radius: 50%; */
  19864. text-align: center;
  19865. /* line-height: 50px; */
  19866. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  19867. cursor: pointer;
  19868. z-index: 999;
  19869. right: 20px;
  19870. top: 110px;
  19871. width: 50px;
  19872. height: 50px;
  19873. background: #fff;
  19874. display: flex;
  19875. align-items: center;
  19876. justify-content: center;
  19877. box-shadow: 0px 0 8px 2px #c5c5c5;
  19878. border-radius: 5px;
  19879. }
  19880. .pzClass {
  19881. width: calc(100% - 340px);
  19882. }
  19883. .newDialogCss {
  19884. /* position: fixed;
  19885. right: 5%;
  19886. top: 50%;
  19887. width: 340px;
  19888. transform: translateY(-50%);
  19889. height: 60%;
  19890. box-shadow: 0px 0 8px 0px #555555;
  19891. border-radius: 15px;
  19892. z-index: 999; */
  19893. position: fixed;
  19894. right: 20px;
  19895. top: 101px;
  19896. width: 330px;
  19897. height: calc(100% - 80px);
  19898. z-index: 999;
  19899. background: #fff;
  19900. border-radius: 15px;
  19901. border-top-right-radius: 0px;
  19902. border-bottom-right-radius: 0px;
  19903. overflow: hidden;
  19904. }
  19905. .pzTop {
  19906. color: #fff;
  19907. background: #000;
  19908. display: flex;
  19909. flex-direction: row;
  19910. flex-wrap: nowrap;
  19911. align-items: center;
  19912. justify-content: space-between;
  19913. height: 40px;
  19914. border-radius: 15px 15px 0 0;
  19915. }
  19916. .pzTop2 .checkbox {
  19917. display: flex;
  19918. align-items: center;
  19919. padding: 15px 30px;
  19920. flex: 0 0 auto;
  19921. font-weight: bold;
  19922. border-bottom: 1px solid #eee;
  19923. justify-content: space-between;
  19924. }
  19925. .pzTop2 .check {
  19926. text-align: center;
  19927. cursor: pointer;
  19928. box-sizing: border-box;
  19929. display: flex;
  19930. }
  19931. .pzTop2 img {
  19932. width: 25px;
  19933. cursor: pointer;
  19934. }
  19935. .pzTop > div:nth-child(1) {
  19936. padding-left: 10px;
  19937. }
  19938. .pzTop > div:nth-child(2) {
  19939. width: 15px;
  19940. height: 15px;
  19941. padding-right: 10px;
  19942. cursor: pointer;
  19943. }
  19944. .pzTop > div:nth-child(2) > img {
  19945. width: 100%;
  19946. height: 100%;
  19947. }
  19948. .pzBox,
  19949. .noPzBox {
  19950. height: calc(100% - 60px);
  19951. /* background: #ededed; */
  19952. background: #fff;
  19953. /* border-radius: 0 0 15px 15px; */
  19954. }
  19955. .noPzBox {
  19956. display: flex;
  19957. flex-direction: column;
  19958. flex-wrap: nowrap;
  19959. justify-content: center;
  19960. align-items: center;
  19961. }
  19962. .pzList {
  19963. background: #f7f7f7;
  19964. width: 90%;
  19965. margin: 0 auto 15px;
  19966. border-radius: 5px;
  19967. }
  19968. .pzNavTop {
  19969. display: flex;
  19970. flex-direction: row;
  19971. flex-wrap: nowrap;
  19972. padding: 10px 10px 0 10px;
  19973. align-items: center;
  19974. }
  19975. .pzDelete {
  19976. cursor: pointer;
  19977. margin-left: auto;
  19978. font-size: 14px;
  19979. color: #afafaf;
  19980. }
  19981. .pzNavTop > div:nth-child(1) {
  19982. background: #3760af;
  19983. width: 35px;
  19984. height: 35px;
  19985. color: #fff;
  19986. text-align: center;
  19987. line-height: 35px;
  19988. border-radius: 50%;
  19989. font-size: 14px;
  19990. }
  19991. .pzNavTop > div:nth-child(2) {
  19992. font-size: 18px;
  19993. color: #959595;
  19994. margin-left: 5px;
  19995. }
  19996. .pzContent {
  19997. padding: 10px;
  19998. word-break: break-word;
  19999. }
  20000. .pzContent audio {
  20001. width: 100%;
  20002. }
  20003. .pzContent audio::-webkit-media-controls-panel {
  20004. background: #fff;
  20005. }
  20006. .pzListBox {
  20007. padding-top: 15px;
  20008. height: calc(100% - 110px);
  20009. overflow: auto;
  20010. }
  20011. .addPzButton {
  20012. position: relative;
  20013. margin-top: 3px;
  20014. width: 100%;
  20015. }
  20016. .addPzButton .img1 {
  20017. position: absolute;
  20018. top: 50%;
  20019. right: 25px;
  20020. transform: translateY(-50%);
  20021. height: 100%;
  20022. display: flex;
  20023. align-items: center;
  20024. }
  20025. .addPzButton .img1 div {
  20026. display: flex;
  20027. }
  20028. .addPzButton .img1 div img {
  20029. width: 28px;
  20030. margin-left: 10px;
  20031. cursor: pointer;
  20032. }
  20033. .addPzButton .img1 div span {
  20034. font-size: 14px;
  20035. margin: 4px 0 0 3px;
  20036. color: #afafaf;
  20037. }
  20038. .addPz {
  20039. background: #4b79ce;
  20040. width: 100px;
  20041. color: #fff;
  20042. font-size: 12px;
  20043. height: 30px;
  20044. margin: 0 auto;
  20045. text-align: center;
  20046. line-height: 30px;
  20047. border-radius: 10px;
  20048. cursor: pointer;
  20049. }
  20050. .addDialogCss {
  20051. position: fixed;
  20052. right: 37%;
  20053. top: 50%;
  20054. width: 600px;
  20055. transform: translateY(-50%);
  20056. height: 70%;
  20057. min-height: 450px;
  20058. box-shadow: 0px 0 8px 0px #555555;
  20059. border-radius: 15px;
  20060. z-index: 999;
  20061. }
  20062. .teacherPz {
  20063. display: flex;
  20064. flex-direction: row;
  20065. align-items: center;
  20066. flex-wrap: nowrap;
  20067. }
  20068. .teacherPzImg {
  20069. width: 30px;
  20070. height: 30px;
  20071. }
  20072. .teacherPzImg > img {
  20073. width: 100%;
  20074. height: 100%;
  20075. }
  20076. .addPzBox {
  20077. height: calc(100% - 40px);
  20078. background: #ededed;
  20079. }
  20080. .pzAudioClass {
  20081. margin: 15px 14px;
  20082. background: #fff;
  20083. height: 100%;
  20084. display: flex;
  20085. justify-content: center;
  20086. align-items: center;
  20087. }
  20088. .pzConText {
  20089. width: 95%;
  20090. height: 100%;
  20091. margin: 10px auto 0;
  20092. border: none;
  20093. background: #fff;
  20094. border-radius: 0px;
  20095. }
  20096. .pzConText >>> .text {
  20097. height: calc(100% - 82px);
  20098. }
  20099. .addTextCss {
  20100. background: #4b79ce;
  20101. width: 80px;
  20102. height: 30px;
  20103. text-align: center;
  20104. color: #fff;
  20105. line-height: 30px;
  20106. border-radius: 10px;
  20107. margin: 10px auto 0;
  20108. cursor: pointer;
  20109. }
  20110. .pzConText:focus-visible {
  20111. border: none !important;
  20112. }
  20113. .maxWidth {
  20114. width: 1000px;
  20115. }
  20116. .noPz {
  20117. width: 150px;
  20118. margin: 0 auto 20%;
  20119. }
  20120. .noPz > img {
  20121. width: 100%;
  20122. height: 100%;
  20123. }
  20124. .pzList .time {
  20125. text-align: right;
  20126. box-sizing: border-box;
  20127. padding: 0 10px 10px 0px;
  20128. color: #949494;
  20129. font-size: 14px;
  20130. }
  20131. /* code 样式 */
  20132. .cont {
  20133. /* -webkit-user-modify: read-write; */
  20134. overflow-wrap: break-word;
  20135. -webkit-line-break: after-white-space;
  20136. }
  20137. /* table 样式 */
  20138. .cont >>> table {
  20139. border-top: 1px solid #ccc;
  20140. border-left: 1px solid #ccc;
  20141. }
  20142. .cont >>> table td,
  20143. .cont >>> table th {
  20144. border-bottom: 1px solid #ccc;
  20145. border-right: 1px solid #ccc;
  20146. /* padding: 20px 5px; */
  20147. padding: 5px 10px;
  20148. max-width: 0px;
  20149. height: 30px;
  20150. vertical-align: baseline;
  20151. box-sizing: border-box;
  20152. }
  20153. .cont >>> table th {
  20154. border-bottom: 2px solid #ccc;
  20155. text-align: center;
  20156. }
  20157. /* blockquote 样式 */
  20158. .cont >>> blockquote {
  20159. display: block;
  20160. border-left: 8px solid #d0e5f2;
  20161. padding: 5px 10px;
  20162. margin: 10px 0;
  20163. line-height: 1.4;
  20164. font-size: 100%;
  20165. background-color: #f1f1f1;
  20166. }
  20167. /* code 样式 */
  20168. .cont >>> code {
  20169. display: inline-block;
  20170. *display: inline;
  20171. *zoom: 1;
  20172. background-color: #f1f1f1;
  20173. border-radius: 3px;
  20174. padding: 3px 5px;
  20175. margin: 0 3px;
  20176. }
  20177. .cont >>> pre code {
  20178. display: block;
  20179. }
  20180. /* ul ol 样式 */
  20181. .cont >>> ul,
  20182. ol {
  20183. margin: 10px 0 10px 20px;
  20184. }
  20185. .addPzCheck {
  20186. display: flex;
  20187. flex-direction: row;
  20188. flex-wrap: nowrap;
  20189. padding: 10px 15px 0;
  20190. }
  20191. .addPzCheck span {
  20192. cursor: pointer;
  20193. padding-bottom: 5px;
  20194. font-weight: bold;
  20195. }
  20196. .addPzCheck span + span {
  20197. margin-left: 10px;
  20198. }
  20199. .addPzCheck .isChooseActive {
  20200. color: #3e88f4;
  20201. border-bottom: 2px solid #2f80f3;
  20202. }
  20203. .scoreBox,
  20204. .scoreDetailBox {
  20205. display: flex;
  20206. align-items: center;
  20207. justify-content: flex-start;
  20208. margin-top: 20px;
  20209. font-size: 18px;
  20210. width: 100%;
  20211. }
  20212. .scoreBox .t,
  20213. .scoreDetailBox .t {
  20214. margin-right: 10px;
  20215. width: 100px;
  20216. text-align: right;
  20217. }
  20218. .scoreDetailBox {
  20219. align-items: flex-start;
  20220. }
  20221. .scoreDetailBox >>> .el-textarea {
  20222. width: calc(100% - 200px);
  20223. }
  20224. .scoreBox >>> .el-input {
  20225. width: 130px;
  20226. font-size: 38px;
  20227. }
  20228. .scoreBox >>> .el-input__inner {
  20229. height: 60px;
  20230. }
  20231. .answerScore {
  20232. position: absolute;
  20233. top: 10px;
  20234. right: 10px;
  20235. background: #0000008f;
  20236. border-radius: 5px;
  20237. padding: 3px 5px;
  20238. font-size: 14px;
  20239. color: #fff;
  20240. cursor: pointer;
  20241. }
  20242. .open_box .switch_box {
  20243. width: 100%;
  20244. margin: 0 auto;
  20245. display: flex;
  20246. justify-content: space-between;
  20247. }
  20248. .open_box .switch_box + .switch_box {
  20249. margin-top: 10px;
  20250. }
  20251. .deleteImg {
  20252. width: 25px !important;
  20253. height: 25px !important;
  20254. cursor: pointer;
  20255. position: absolute;
  20256. top: 10px;
  20257. right: 10px;
  20258. }
  20259. .deleteImg2 {
  20260. width: 15px !important;
  20261. height: 15px !important;
  20262. top: 5px;
  20263. right: 5px;
  20264. }
  20265. .rightW {
  20266. right: 40px;
  20267. }
  20268. .drawPBox {
  20269. display: flex;
  20270. flex-direction: column;
  20271. position: relative;
  20272. }
  20273. .drawPBox span {
  20274. font-size: 18px;
  20275. color: #606266;
  20276. padding-bottom: 10px;
  20277. margin: 10px 0;
  20278. border-bottom: 1px solid #eaeaea;
  20279. }
  20280. .drawPBox img {
  20281. width: 500px;
  20282. height: 300px;
  20283. object-fit: contain;
  20284. cursor: pointer;
  20285. margin: 0 auto;
  20286. }
  20287. .sentenBox {
  20288. background: #fff;
  20289. height: 450px;
  20290. overflow: auto;
  20291. background-image: url("../../assets/icon/conSentences/stuBg.png");
  20292. background-position: 102%;
  20293. background-repeat: no-repeat;
  20294. background-size: 60%;
  20295. }
  20296. .addSen {
  20297. background: #409efe;
  20298. width: 90px;
  20299. color: #fff;
  20300. height: 35px;
  20301. text-align: center;
  20302. line-height: 35px;
  20303. border-radius: 5px;
  20304. float: right;
  20305. margin: 10px 20px 0 0;
  20306. cursor: pointer;
  20307. }
  20308. .sentenTop {
  20309. display: flex;
  20310. flex-direction: row;
  20311. flex-wrap: nowrap;
  20312. align-items: center;
  20313. padding: 55px 0 0 20px;
  20314. box-sizing: border-box;
  20315. }
  20316. .sentenTop > div:nth-child(2) {
  20317. width: 300px;
  20318. margin: 0 15px;
  20319. }
  20320. .sentenTop > div:nth-child(3) {
  20321. background: #409efe;
  20322. color: #fff;
  20323. width: 65px;
  20324. height: 35px;
  20325. text-align: center;
  20326. line-height: 35px;
  20327. border-radius: 5px;
  20328. cursor: pointer;
  20329. }
  20330. .cardList,
  20331. .cardList1 {
  20332. padding: 10px 0 10px 0;
  20333. display: flex;
  20334. flex-direction: row;
  20335. flex-wrap: wrap;
  20336. align-items: center;
  20337. box-sizing: border-box;
  20338. border-bottom: 1px solid #f4f4f4;
  20339. width: 98%;
  20340. margin: 0 auto;
  20341. min-width: 60%;
  20342. max-width: 85%;
  20343. }
  20344. .cardList1 {
  20345. padding: 10px 0 10px 10px !important;
  20346. margin: 0 !important;
  20347. }
  20348. .cardBox {
  20349. display: flex;
  20350. flex-direction: row;
  20351. flex-wrap: wrap;
  20352. align-items: center;
  20353. align-content: center;
  20354. }
  20355. .cardBox > div {
  20356. margin-bottom: 10px;
  20357. }
  20358. .isCard,
  20359. .isChooseCard,
  20360. .noCard,
  20361. .isCard1 {
  20362. width: 130px;
  20363. height: 60px;
  20364. text-align: center;
  20365. line-height: 60px;
  20366. font-size: 20px;
  20367. cursor: pointer;
  20368. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  20369. background-size: cover;
  20370. transition: all 2s;
  20371. margin-right: 20px;
  20372. }
  20373. .isCard > div,
  20374. .noCard > div,
  20375. .isCard1 > div {
  20376. white-space: nowrap;
  20377. overflow: hidden;
  20378. text-overflow: ellipsis;
  20379. width: 75%;
  20380. margin: 0 auto;
  20381. }
  20382. .noCard {
  20383. background-image: none;
  20384. }
  20385. .isCard1 {
  20386. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  20387. }
  20388. .isChooseCard {
  20389. background-image: none;
  20390. border: 1px dashed #b9b9b9;
  20391. border-radius: 10px;
  20392. }
  20393. .card {
  20394. width: 130px;
  20395. height: 60px;
  20396. }
  20397. .card > img {
  20398. width: 100%;
  20399. height: 100%;
  20400. }
  20401. .rightCardBox {
  20402. margin: 10px 0 0 10px;
  20403. }
  20404. .rightCardBox > div:nth-child(1) {
  20405. margin-bottom: 10px;
  20406. }
  20407. .cardCss {
  20408. display: flex;
  20409. flex-direction: column;
  20410. flex-wrap: nowrap;
  20411. align-items: center;
  20412. border-bottom: 3px solid #b4c3d3;
  20413. padding: 0 0 5px 0;
  20414. margin-right: 10px;
  20415. }
  20416. .cardCss > div:nth-child(2) {
  20417. background: #5b7b9d;
  20418. color: #fff;
  20419. width: 20px;
  20420. height: 20px;
  20421. border-radius: 50%;
  20422. text-align: center;
  20423. line-height: 20px;
  20424. }
  20425. .isWrong {
  20426. display: flex;
  20427. flex-direction: row;
  20428. flex-wrap: nowrap;
  20429. align-content: center;
  20430. align-items: center;
  20431. }
  20432. .answerRight {
  20433. width: 25%;
  20434. }
  20435. .isTj {
  20436. display: flex;
  20437. flex-direction: row;
  20438. flex-wrap: nowrap;
  20439. align-items: center;
  20440. }
  20441. .isTj > div:nth-child(2) {
  20442. color: #727070;
  20443. margin-left: 10px;
  20444. }
  20445. .isTjImg {
  20446. width: 30px;
  20447. height: 30px;
  20448. }
  20449. .isTjImg > img {
  20450. width: 100%;
  20451. height: 100%;
  20452. }
  20453. .cardAnswerBox {
  20454. font-size: 18px;
  20455. width: 97%;
  20456. border: 5px;
  20457. padding: 0;
  20458. border-radius: 5px;
  20459. margin: 10px auto;
  20460. word-break: break-word;
  20461. }
  20462. .w_name {
  20463. margin-bottom: 10px;
  20464. }
  20465. .w_name span {
  20466. font-size: 16px;
  20467. }
  20468. .w_teachert {
  20469. width: 50px !important;
  20470. position: absolute;
  20471. height: auto !important;
  20472. z-index: 10;
  20473. right: 25px;
  20474. top: -25px;
  20475. }
  20476. .group_workBox {
  20477. }
  20478. .group_workBox + .group_workBox {
  20479. margin-top: 20px;
  20480. }
  20481. .group_box {
  20482. padding-bottom: 20px;
  20483. border-bottom: 2px solid #f0f0f0;
  20484. }
  20485. .group_title {
  20486. display: flex;
  20487. align-items: center;
  20488. justify-content: space-between;
  20489. }
  20490. .group_name {
  20491. background-image: url(../../assets/icon/groupN.png);
  20492. width: 220px;
  20493. background-size: 100% 100%;
  20494. height: 67px;
  20495. padding: 0 20px 0 43px;
  20496. box-sizing: border-box;
  20497. line-height: 63px;
  20498. color: #fff;
  20499. overflow: hidden;
  20500. white-space: nowrap;
  20501. text-overflow: ellipsis;
  20502. }
  20503. .group_work {
  20504. width: 100%;
  20505. padding: 0 10px;
  20506. box-sizing: border-box;
  20507. display: flex;
  20508. flex-wrap: wrap;
  20509. }
  20510. .g_d_box {
  20511. display: flex;
  20512. flex-flow: wrap;
  20513. justify-content: space-around;
  20514. }
  20515. .g_d_box .isChair {
  20516. background-image: url(../../assets/avatar.png) !important;
  20517. }
  20518. .g_d_group {
  20519. width: 500px;
  20520. margin-bottom: 80px;
  20521. }
  20522. .g_d_group_chair {
  20523. display: flex;
  20524. align-items: center;
  20525. justify-content: center;
  20526. }
  20527. .g_d_group_chair > div + div {
  20528. margin-left: 30px;
  20529. }
  20530. .g_d_group_chair > div,
  20531. .g_d_group_chair2 > div {
  20532. display: flex;
  20533. flex-direction: column;
  20534. align-items: center;
  20535. }
  20536. .g_d_group_chair > div > span:nth-child(1),
  20537. .g_d_group_chair2 > div > span:nth-child(1) {
  20538. background-image: url(../../assets/icon/chair.png);
  20539. width: 50px;
  20540. height: 50px;
  20541. display: block;
  20542. background-size: 100% 100%;
  20543. }
  20544. .g_d_group_tableBox {
  20545. display: flex;
  20546. align-items: center;
  20547. justify-content: center;
  20548. }
  20549. .g_d_group_chair2 {
  20550. display: flex;
  20551. flex-direction: column;
  20552. align-items: center;
  20553. justify-content: center;
  20554. }
  20555. .g_d_group_chair2 > div + div {
  20556. margin-top: 10px;
  20557. }
  20558. .g_d_group_table {
  20559. background-image: url(../../assets/icon/groupBg.png);
  20560. width: 354px;
  20561. height: 196px;
  20562. background-size: 100% 100%;
  20563. display: flex;
  20564. align-items: center;
  20565. justify-content: center;
  20566. flex-direction: column;
  20567. color: #fff;
  20568. }
  20569. .g_d_group_table > div:nth-child(1) {
  20570. font-size: 24px;
  20571. margin-bottom: 5px;
  20572. }
  20573. .g_d_group_table > div:nth-child(2) div {
  20574. cursor: pointer;
  20575. background: #2e77bf;
  20576. padding: 4px 10px;
  20577. border-radius: 5px;
  20578. }
  20579. .groupBox {
  20580. }
  20581. .groupContent + .groupContent {
  20582. margin-top: 30px;
  20583. }
  20584. .groupTitle {
  20585. font-size: 24px;
  20586. color: rgb(80, 80, 80);
  20587. margin-bottom: 20px;
  20588. }
  20589. .groupName {
  20590. display: flex;
  20591. align-items: center;
  20592. }
  20593. .groupn {
  20594. font-size: 15px;
  20595. margin-right: 10px;
  20596. }
  20597. .groupName + .groupName {
  20598. margin-top: 15px;
  20599. }
  20600. .groupBtn {
  20601. margin-left: 10px;
  20602. }
  20603. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  20604. text-align: left;
  20605. }
  20606. .g_d_btnBox {
  20607. display: flex;
  20608. justify-content: flex-end;
  20609. align-items: flex-end;
  20610. margin-bottom: 20px;
  20611. }
  20612. .updateChair {
  20613. position: relative;
  20614. }
  20615. .updateChairBtn {
  20616. position: absolute;
  20617. width: 50px;
  20618. height: 50px;
  20619. overflow: hidden;
  20620. /* display: flex; */
  20621. align-items: center;
  20622. justify-content: center;
  20623. background: #00000087;
  20624. color: #fff;
  20625. border-radius: 50px;
  20626. display: none;
  20627. cursor: pointer;
  20628. }
  20629. .updateChair:hover .updateChairBtn {
  20630. display: flex;
  20631. }
  20632. .group_staic_box {
  20633. display: flex;
  20634. padding: 30px 40px 10px;
  20635. flex-wrap: wrap;
  20636. }
  20637. .group_staic {
  20638. /* width: 50%; */
  20639. margin-bottom: 20px;
  20640. display: flex;
  20641. align-items: center;
  20642. }
  20643. .group_staic span:nth-child(1) {
  20644. width: 150px;
  20645. text-align: right;
  20646. margin-right: 15px;
  20647. }
  20648. .group_staic span:nth-child(2) {
  20649. background: rgb(0 123 255);
  20650. color: #fff;
  20651. border-radius: 5px;
  20652. padding: 5px;
  20653. }
  20654. .codeFileBox {
  20655. height: 300px;
  20656. background: #fff;
  20657. display: flex;
  20658. align-items: center;
  20659. justify-content: center;
  20660. }
  20661. .codeFileBox img {
  20662. width: 200px;
  20663. margin: 0;
  20664. height: auto;
  20665. }
  20666. .codeFileBox div {
  20667. background: rgb(80, 142, 226);
  20668. color: #fff;
  20669. padding: 10px 20px;
  20670. border-radius: 25px;
  20671. cursor: pointer;
  20672. margin-left: 15px;
  20673. }
  20674. .radioBox {
  20675. display: flex;
  20676. flex-direction: column;
  20677. flex-wrap: nowrap;
  20678. align-items: flex-start;
  20679. }
  20680. .radioBox > div {
  20681. margin: 10px 0 0 10px;
  20682. }
  20683. /* .radioBox >>> .el-radio__input,
  20684. .radioBox >>> .el-checkbox__inner {
  20685. margin-left: 10px;
  20686. } */
  20687. .radioBox >>> .el-radio__label,
  20688. .radioBox >>> .el-checkbox__label {
  20689. display: flex;
  20690. align-items: center;
  20691. }
  20692. .radioBox >>> .el-radio__label > span {
  20693. width: 100%;
  20694. display: -webkit-box;
  20695. overflow: hidden;
  20696. white-space: normal !important;
  20697. text-overflow: ellipsis;
  20698. word-wrap: break-word;
  20699. }
  20700. .inImg {
  20701. width: 100px;
  20702. cursor: pointer;
  20703. }
  20704. .inImg > img {
  20705. width: 100%;
  20706. height: 100%;
  20707. object-fit: cover;
  20708. }
  20709. .timuImgBox {
  20710. margin: 10px 0;
  20711. display: flex;
  20712. flex-direction: column;
  20713. flex-wrap: wrap;
  20714. align-items: flex-start;
  20715. }
  20716. .timuImg {
  20717. width: 150px;
  20718. margin: 5px 0;
  20719. cursor: pointer;
  20720. }
  20721. .timuImg > img {
  20722. width: 100%;
  20723. height: 100%;
  20724. object-fit: cover;
  20725. }
  20726. .worksTop {
  20727. display: flex;
  20728. flex-direction: row;
  20729. align-items: flex-end;
  20730. }
  20731. .corOpen {
  20732. margin: 0 0 0 10px;
  20733. font-size: 14px;
  20734. cursor: pointer;
  20735. color: #505050;
  20736. }
  20737. .corOpen:hover {
  20738. color: #499eef;
  20739. }
  20740. .navCorOpenBox {
  20741. display: flex;
  20742. flex-direction: row;
  20743. align-items: center;
  20744. justify-content: space-between;
  20745. height: 55px;
  20746. background: #ffffff;
  20747. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  20748. border-radius: 8px 8px 0px 0px;
  20749. z-index: 9;
  20750. position: relative;
  20751. }
  20752. .navCorOpen {
  20753. padding-right: 15px;
  20754. cursor: pointer;
  20755. width: 20px;
  20756. display: flex;
  20757. }
  20758. .navCorOpen > img {
  20759. width: 100%;
  20760. height: 100%;
  20761. }
  20762. .mlImg {
  20763. width: 25px !important;
  20764. min-width: 25px;
  20765. cursor: pointer;
  20766. margin-top: 5px;
  20767. }
  20768. .mlImg > img {
  20769. width: 100%;
  20770. height: 100%;
  20771. }
  20772. .navLeftCss {
  20773. width: 100% !important;
  20774. left: 0 !important;
  20775. }
  20776. .isContentCss {
  20777. width: 100% !important;
  20778. }
  20779. .isAllWidth {
  20780. width: 100% !important;
  20781. }
  20782. .toolBoxSteps {
  20783. position: absolute;
  20784. top: 50%;
  20785. transform: translateY(-50%);
  20786. cursor: pointer;
  20787. width: 60px;
  20788. display: flex;
  20789. align-items: center;
  20790. justify-content: center;
  20791. }
  20792. .toolBoxSteps:nth-child(1) > img,
  20793. .toolBoxSteps:nth-child(2) > img {
  20794. width: 24px;
  20795. }
  20796. .toolBoxSteps:nth-child(1) {
  20797. left: 0;
  20798. }
  20799. .toolBoxSteps:nth-child(2) {
  20800. right: 0;
  20801. }
  20802. .isChooseActive {
  20803. color: #3681fc !important;
  20804. font-weight: bold !important;
  20805. }
  20806. .tool_box {
  20807. width: 100%;
  20808. margin-top: 20px;
  20809. }
  20810. .tool_type_box {
  20811. display: flex;
  20812. flex-direction: row;
  20813. align-items: baseline;
  20814. flex-wrap: nowrap;
  20815. justify-content: flex-start;
  20816. position: relative;
  20817. }
  20818. .toolSort {
  20819. display: flex;
  20820. flex-direction: row;
  20821. flex-wrap: wrap;
  20822. justify-content: flex-start;
  20823. align-items: flex-start;
  20824. }
  20825. .toolSort > div {
  20826. margin: 0 45px 0 0;
  20827. width: auto;
  20828. }
  20829. .tools {
  20830. width: 100%;
  20831. display: flex;
  20832. flex-direction: column;
  20833. flex-wrap: nowrap;
  20834. align-items: flex-start;
  20835. }
  20836. .whiteBIcon {
  20837. width: 80px;
  20838. cursor: pointer;
  20839. display: flex;
  20840. flex-direction: column;
  20841. flex-wrap: nowrap;
  20842. align-items: center;
  20843. }
  20844. .whiteBIcon > img {
  20845. width: 100%;
  20846. height: 100%;
  20847. }
  20848. .whiteBIcon > img {
  20849. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  20850. border-radius: 15px;
  20851. }
  20852. .dia_tool_box {
  20853. display: flex;
  20854. flex-wrap: wrap;
  20855. width: 100%;
  20856. }
  20857. .dia_tool_box > div {
  20858. margin-right: 40px;
  20859. }
  20860. .check {
  20861. /* width: 20px;
  20862. height: 20px; */
  20863. cursor: pointer;
  20864. margin: 10px 0;
  20865. }
  20866. .checkDiv {
  20867. display: flex;
  20868. align-items: center;
  20869. }
  20870. .checkDiv span {
  20871. margin-left: 5px;
  20872. color: #858585;
  20873. }
  20874. .check img {
  20875. width: 20px;
  20876. height: 20px;
  20877. }
  20878. .fileC_box > .fileC_title {
  20879. padding: 10px 5px;
  20880. border-top: 1px solid #cdcdcd;
  20881. font-size: 14px;
  20882. color: #868686;
  20883. width: 88%;
  20884. margin: 0 auto;
  20885. }
  20886. .pl_select_box {
  20887. height: 40px;
  20888. line-height: 40px;
  20889. width: 100%;
  20890. cursor: pointer;
  20891. padding: 0 20px;
  20892. box-sizing: border-box;
  20893. border-radius: 5px;
  20894. border: 1px solid #d6d6d6;
  20895. white-space: nowrap;
  20896. overflow: hidden;
  20897. text-overflow: ellipsis;
  20898. background: #fff;
  20899. text-align: left;
  20900. }
  20901. .stageBoxCss {
  20902. display: flex;
  20903. flex-direction: row;
  20904. flex-wrap: nowrap;
  20905. align-items: center;
  20906. height: 50px;
  20907. border-bottom: 1px solid #e2f5fc;
  20908. cursor: pointer;
  20909. }
  20910. .stageChild {
  20911. height: 0;
  20912. overflow: hidden;
  20913. transition: all 0.5s;
  20914. }
  20915. .navItem {
  20916. background: #f0f4fa;
  20917. border-radius: 8px;
  20918. width: 90%;
  20919. margin: 10px auto 0;
  20920. display: flex;
  20921. flex-direction: row;
  20922. flex-wrap: nowrap;
  20923. justify-content: flex-start;
  20924. align-items: center;
  20925. }
  20926. .navItemList {
  20927. display: flex;
  20928. flex-direction: row;
  20929. flex-wrap: nowrap;
  20930. align-items: center;
  20931. padding: 18px 13px;
  20932. cursor: pointer;
  20933. font-size: 16px;
  20934. font-weight: 400;
  20935. color: #0e1e33;
  20936. justify-content: flex-start;
  20937. width: 100%;
  20938. border-radius: 8px;
  20939. }
  20940. .navItemList > div {
  20941. font-size: 16px;
  20942. font-weight: 400;
  20943. color: #0e1e33;
  20944. }
  20945. .isItemList {
  20946. background: #3681fc;
  20947. }
  20948. .isItemList > div {
  20949. color: #fff;
  20950. }
  20951. .navListItem {
  20952. width: 280px;
  20953. height: 50px;
  20954. margin: 0px auto 10px;
  20955. display: flex;
  20956. flex-direction: row;
  20957. flex-wrap: nowrap;
  20958. align-items: center;
  20959. justify-content: space-between;
  20960. background: #f0f4fa;
  20961. border-radius: 6px 6px 6px 6px;
  20962. }
  20963. .downIcon {
  20964. width: 20px;
  20965. height: 20px;
  20966. margin-right: 15px;
  20967. cursor: pointer;
  20968. }
  20969. .downIcon > img {
  20970. width: 100%;
  20971. height: 100%;
  20972. }
  20973. .newButton {
  20974. width: 102px;
  20975. height: 36px;
  20976. background: #e7ebf1;
  20977. border-radius: 4px;
  20978. color: #0e1e33;
  20979. font-weight: 400;
  20980. font-size: 14px;
  20981. border: none;
  20982. float: right;
  20983. margin-left: 10px;
  20984. }
  20985. </style>