studyStudent.vue 698 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="display: flex; height: 900px; position: relative;padding: 20px 0 20px 20px;box-sizing: border-box;"
  6. >
  7. <div class="btnAllNT">
  8. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  9. <img
  10. src="../../assets/icon/learn/last.png"
  11. @click="nextOrpreSteps(0)"
  12. />
  13. <img
  14. src="../../assets/icon/learn/next.png"
  15. @click="nextOrpreSteps(1)"
  16. />
  17. <img
  18. src="../../assets/icon/learn/return.png"
  19. @click.stop="
  20. goTo(
  21. '/courseDetail?userid=' +
  22. userid +
  23. '&oid=' +
  24. oid +
  25. '&org=' +
  26. org +
  27. '&cid=' +
  28. classId +
  29. '&courseId=' +
  30. id +
  31. '&tType=' +
  32. tType +
  33. '&screenType=' +
  34. screenType
  35. )
  36. "
  37. />
  38. </div>
  39. <div
  40. class="pButton"
  41. style="
  42. left: 0;
  43. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  44. "
  45. v-if="mlDialog == false"
  46. @click="setContent2(true)"
  47. >
  48. <!-- 批 , getCourseDetail()-->
  49. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  50. </div>
  51. <div class="pb_left" v-else>
  52. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  53. <div
  54. style="
  55. border-bottom: 1px solid #cad1dc;
  56. padding: 13px 0;
  57. width: 100%;
  58. "
  59. >
  60. <div class="courseTitle">
  61. <div style="max-width: 285px">
  62. <div class="ctitle">{{ courseDetail.title }}</div>
  63. </div>
  64. <el-tooltip effect="light" content="收缩" placement="top">
  65. <div class="mlImg" @click="setContent2(false)">
  66. <img src="../../assets/icon/newIcon/mlBtn.png" alt="" />
  67. </div>
  68. </el-tooltip>
  69. </div>
  70. </div>
  71. <div class="cru_selectBox">
  72. <div
  73. v-for="(item, stageIndex) in navList"
  74. :key="stageIndex"
  75. >
  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 class="returnBtn" @click="allScrell">全屏</div> -->
  161. <!-- <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  162. 开始录制
  163. </div>
  164. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  165. style="background: #ee5255">
  166. 下载录制
  167. </div>
  168. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  169. 权限
  170. </div> -->
  171. <div
  172. class="returnBtn returnIcon"
  173. @click.stop="
  174. goTo(
  175. '/courseDetail?userid=' +
  176. userid +
  177. '&oid=' +
  178. oid +
  179. '&org=' +
  180. org +
  181. '&cid=' +
  182. classId +
  183. '&courseId=' +
  184. id +
  185. '&tType=' +
  186. tType +
  187. '&screenType=' +
  188. screenType
  189. )
  190. "
  191. >
  192. 返回
  193. </div>
  194. </div>
  195. </div>
  196. <div class="study_top" :class="{ pzClass: pzDialog }">
  197. <div
  198. class="vedioBox"
  199. v-if="
  200. vChapterData[taskCount].length > 0 || fileC[taskCount].length > 0
  201. "
  202. >
  203. <div
  204. class="student_head"
  205. v-if="
  206. vChapterData[taskCount].length > 0 ||
  207. fileC[taskCount].length > 0
  208. "
  209. >
  210. <div class="vedioTaskBox">
  211. <div
  212. :class="
  213. contentDialog == false
  214. ? 'box_course isContentCss'
  215. : 'box_course'
  216. "
  217. v-if="
  218. vChapterData.length > 0 &&
  219. vChapterData[taskCount] &&
  220. showType !== ''
  221. "
  222. >
  223. <div class="wheel" style="height: auto" v-if="showType === 0">
  224. <div
  225. class="workd_media"
  226. style="height: 650px; width: calc(100% - 50px)"
  227. >
  228. <video-player
  229. class="video-player vjs-custom-skin"
  230. :class="contentDialog == false ? 'isAllWidth' : ''"
  231. :playsinline="true"
  232. :options="playerO[taskCount]"
  233. @play="onPlayerPlay($event)"
  234. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  235. ></video-player>
  236. </div>
  237. </div>
  238. <div
  239. class="wheel"
  240. v-if="showType == 1"
  241. style="
  242. box-shadow: 0 0 6px 1px #f2f2f2;
  243. width: 95%;
  244. margin: 0 auto;
  245. background: #f1f1f1;
  246. "
  247. >
  248. <div class="title">查看文档</div>
  249. <el-form class="textBox">
  250. <el-form-item class="textTitle">
  251. <div style="font-size: 22px">
  252. {{ text.name }}
  253. </div>
  254. </el-form-item>
  255. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  256. <div v-html="text.url" class="textContent cont"></div>
  257. </el-form>
  258. </div>
  259. <div
  260. class="wheel"
  261. v-if="
  262. pptImgUrl1.indexOf(
  263. 'https://view.officeapps.live.com/op/view.aspx?src='
  264. ) != -1 && showType == 2
  265. "
  266. style="width: 95%; margin: 0 auto"
  267. >
  268. <iframe
  269. style="width: 100%; height: 100%; border: none"
  270. :src="pptImgUrl1"
  271. ></iframe>
  272. </div>
  273. <div
  274. class="wheel"
  275. v-else-if="showType == 2"
  276. style="width: 95%; margin: 0 auto"
  277. >
  278. <iframe
  279. style="width: 100%; height: 100%; border: none"
  280. security="restricted"
  281. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  282. :src="pptImgUrl1"
  283. ></iframe>
  284. </div>
  285. <div
  286. class="wheel"
  287. v-if="showType == 3"
  288. style="width: 95%; margin: 0 auto"
  289. >
  290. <pdf
  291. :pdfUrl="pptImgUrl1"
  292. style="width: 100%; height: 100%; overflow: auto"
  293. ></pdf>
  294. </div>
  295. <div
  296. class="wheel"
  297. v-if="showType == 4"
  298. style="width: 95%; margin: 0 auto"
  299. >
  300. <el-image
  301. :src="pptImgUrl1"
  302. fit="contain"
  303. style="width: 100%; height: 100%; cursor: pointer"
  304. @click="previewImg(pptImgUrl1)"
  305. ></el-image>
  306. </div>
  307. </div>
  308. <div
  309. class="pButton"
  310. style="
  311. position: absolute;
  312. right: 20px;
  313. top: 0;
  314. background: #205cc6;
  315. z-index: 998;
  316. opacity: 0.8;
  317. "
  318. v-if="!contentDialog"
  319. @click="setContent(true)"
  320. >
  321. <!-- 批 -->
  322. <img
  323. src="../../assets/navBtn2.png"
  324. style="width: 25px"
  325. alt=""
  326. />
  327. </div>
  328. <div
  329. v-if="contentDialog == true"
  330. :style="{
  331. width:
  332. (vChapterData[taskCount].length > 0 ||
  333. fileC[taskCount].length > 0) &&
  334. showType === ''
  335. ? 'calc(100%)'
  336. : '300px',
  337. margin:
  338. (vChapterData[taskCount].length > 0 ||
  339. fileC[taskCount].length > 0) &&
  340. showType === ''
  341. ? '0 15px'
  342. : '0 15px 0 0',
  343. }"
  344. >
  345. <div
  346. class="vedioList"
  347. v-if="
  348. vChapterData[taskCount].length > 0 ||
  349. fileC[taskCount].length > 0
  350. "
  351. style="height: 650px"
  352. >
  353. <div class="navCorOpenBox">
  354. <div class="navTitile">内容列表:</div>
  355. <div class="navCorOpen" @click="setContent(false)">
  356. <img src="../../assets/icon/newIcon/mlBtn.png" alt="" />
  357. </div>
  358. </div>
  359. <div class="navBox">
  360. <div
  361. v-show="
  362. vChapterData[taskCount].length > 0 ||
  363. fileC[taskCount].length > 0
  364. "
  365. style="padding: 10px 0 20px 0"
  366. >
  367. <div
  368. class="vedioTimeBox"
  369. v-for="(vitem, vindex) in vChapterData[0]"
  370. :key="vindex + '1'"
  371. >
  372. <div class="navListItem" v-if="vitem.type == 2">
  373. <div
  374. @click="lookVedio(vitem.url, vindex)"
  375. class="navText"
  376. :class="isClickNav == vindex ? 'isClickNav' : ''"
  377. >
  378. <span v-if="vitem.text">{{ vitem.text }}-</span
  379. >{{ vitem.name }}
  380. </div>
  381. <div
  382. class="downIcon"
  383. @click="downloadFile(vitem.url)"
  384. >
  385. <img
  386. src="../../assets/icon/newIcon/down.png"
  387. alt
  388. />
  389. </div>
  390. </div>
  391. <div class="navListItem" v-if="vitem.type == 6">
  392. <div
  393. @click="lookText(taskCount, vindex)"
  394. class="navText"
  395. :class="isClickNav == vindex ? 'isClickNav' : ''"
  396. >
  397. {{ vitem.name }}.doc
  398. </div>
  399. <!-- <div
  400. class="downIcon"
  401. @click="downloadFile(vitem.url)"
  402. >
  403. <img
  404. src="../../assets/icon/newIcon/down.png"
  405. alt
  406. />
  407. </div> -->
  408. </div>
  409. <div class="navListItem" v-if="vitem.type == 8">
  410. <div
  411. @click="doUrl(vitem.url, vindex)"
  412. class="navText"
  413. :class="isClickNav == vindex ? 'isClickNav' : ''"
  414. >
  415. {{ vitem.title ? vitem.title : vitem.url }}
  416. </div>
  417. <!-- <div
  418. class="downIcon"
  419. @click="downloadFile(vitem.url)"
  420. >
  421. <img
  422. src="../../assets/icon/newIcon/down.png"
  423. alt
  424. />
  425. </div> -->
  426. </div>
  427. <div class="navListItem" v-if="vitem.type == 3">
  428. <div
  429. @click="downFile(vitem, vindex)"
  430. class="navText"
  431. :class="isClickNav == vindex ? 'isClickNav' : ''"
  432. >
  433. <span v-if="vitem.text">{{ vitem.text }}-</span
  434. >{{ vitem.name }}
  435. </div>
  436. <div
  437. class="downIcon"
  438. @click="downloadFile(vitem.url)"
  439. >
  440. <img
  441. src="../../assets/icon/newIcon/down.png"
  442. alt
  443. />
  444. </div>
  445. </div>
  446. <div class="navListItem" v-if="vitem.type == 12">
  447. <div class="navText" @click="downloadFile2(vitem)">
  448. <span v-if="vitem.text">{{ vitem.text }}-</span
  449. >{{ vitem.name }}
  450. </div>
  451. <div
  452. class="downIcon"
  453. @click="downloadFile(vitem.url)"
  454. >
  455. <img
  456. src="../../assets/icon/newIcon/down.png"
  457. alt
  458. />
  459. </div>
  460. </div>
  461. <div class="navListItem" v-if="vitem.type == 13">
  462. <div
  463. class="navText"
  464. @click="checkPhoto(vitem, vindex)"
  465. :class="isClickNav == vindex ? 'isClickNav' : ''"
  466. >
  467. {{ vitem.name }}
  468. </div>
  469. <div
  470. class="downIcon"
  471. @click="downloadFile(vitem.url)"
  472. >
  473. <img
  474. src="../../assets/icon/newIcon/down.png"
  475. alt
  476. />
  477. </div>
  478. </div>
  479. </div>
  480. <div
  481. class="fileC_box"
  482. v-if="fileC[taskCount].length > 0"
  483. >
  484. <div class="fileC_title">以下文件不支持预览</div>
  485. <div
  486. class="vedioTimeBox"
  487. v-for="(vitem, vindex) in fileC[taskCount]"
  488. :key="vindex + '1'"
  489. >
  490. <div class="navListItem" v-if="vitem.type == 12">
  491. <div class="navText" style="color:#ACB4BF">
  492. <span v-if="vitem.text">{{ vitem.text }}-</span
  493. >{{ vitem.name }}
  494. </div>
  495. <div
  496. class="downIcon"
  497. @click="downloadFile2(vitem)"
  498. >
  499. <img
  500. src="../../assets/icon/newIcon/down.png"
  501. alt
  502. />
  503. </div>
  504. </div>
  505. </div>
  506. </div>
  507. </div>
  508. </div>
  509. </div>
  510. </div>
  511. </div>
  512. <div style="width: 78.5%">
  513. <div
  514. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  515. v-if="showType == 2 || showType == 3"
  516. >
  517. <el-button
  518. type="primary"
  519. class="newButton"
  520. @click="checkFileFull(showType, pptImgUrl1)"
  521. >全屏查看</el-button
  522. >
  523. <el-button
  524. type="primary"
  525. class="newButton"
  526. @click="downloadFile(pptImgUrl1)"
  527. v-if="showType != 2"
  528. >文件下载</el-button
  529. >
  530. <el-button
  531. v-if="
  532. showType == 2 &&
  533. pptImgUrl1.indexOf(
  534. 'https://view.officeapps.live.com/op/view.aspx?src='
  535. ) == -1
  536. "
  537. type="primary"
  538. class="newButton"
  539. @click="openLine(pptImgUrl1)"
  540. >打开链接
  541. </el-button>
  542. </div>
  543. <div
  544. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  545. v-if="showType == 1"
  546. >
  547. <el-button
  548. type="primary"
  549. class="newButton"
  550. @click="checkFileFull(showType, text)"
  551. >全屏查看</el-button
  552. >
  553. </div>
  554. </div>
  555. </div>
  556. </div>
  557. <div class="student_body" v-resize="resize">
  558. <div
  559. class="taskBox"
  560. v-if="
  561. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  562. .taskDetail != ''
  563. "
  564. >
  565. <div
  566. style="
  567. display: flex;
  568. flex-wrap: nowrap;
  569. flex-direction: column;
  570. position: relative;
  571. "
  572. >
  573. <div
  574. style="padding: 20px 0px 15px 0; line-height: 29px; font-size: 18px"
  575. class="cont"
  576. v-if="
  577. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  578. .taskDetail != ''
  579. "
  580. v-html="
  581. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  582. .taskDetail
  583. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  584. taskCount
  585. ].taskDetail
  586. : '暂无描述'
  587. "
  588. ></div>
  589. </div>
  590. </div>
  591. <div
  592. class="vedioBox"
  593. v-if="
  594. courseDetail.userid == userid ||
  595. (courseDetail.course_teacher &&
  596. courseDetail.course_teacher.indexOf(userid) != -1)
  597. "
  598. >
  599. <div
  600. class="queTop"
  601. style="
  602. padding: 15px 0 15px 37px;
  603. font-weight: bold;
  604. font-size: 20px;
  605. color: #0e1e33;
  606. "
  607. >
  608. 工具栏
  609. <el-button
  610. style="margin: 0 30px 0 auto"
  611. type="primary"
  612. size="small"
  613. @click="addToolChoose"
  614. >确定</el-button
  615. >
  616. </div>
  617. <div class="tool_work_box">
  618. <div class="tool_box">
  619. <div class="tool_type_box">
  620. <div class="chooseWho">
  621. <!-- <div :class="toolType == 0 ? 'isChooseActive' : ''
  622. " @click="(toolType = 0), $forceUpdate()">
  623. 互动类
  624. </div> -->
  625. <div
  626. :class="toolType == 1 ? 'isChooseActive' : ''"
  627. @click="(toolType = 1), $forceUpdate()"
  628. >
  629. 思维类
  630. </div>
  631. <!-- <div
  632. :class="toolType == 6 ? 'isChooseActive' : ''"
  633. @click="(toolType = 6), $forceUpdate()"
  634. >
  635. 协作类
  636. </div> -->
  637. <div
  638. :class="toolType == 2 ? 'isChooseActive' : ''"
  639. @click="(toolType = 2), $forceUpdate()"
  640. >
  641. 测评类
  642. </div>
  643. <!-- <div
  644. :class="toolType == 7 ? 'isChooseActive' : ''"
  645. @click="(toolType = 7), $forceUpdate()"
  646. >
  647. 评价类
  648. </div> -->
  649. <div
  650. :class="toolType == 3 ? 'isChooseActive' : ''"
  651. @click="(toolType = 3), $forceUpdate()"
  652. >
  653. 学科类
  654. </div>
  655. <!-- <div :class="toolType == 5 ? 'isChooseActive' : ''
  656. " @click="(toolType = 5), $forceUpdate()">
  657. 学科类
  658. </div>
  659. <div :class="toolType == 4 ? 'isChooseActive' : ''
  660. " @click="(toolType = 4), $forceUpdate()">
  661. 其他
  662. </div> -->
  663. </div>
  664. </div>
  665. <div>
  666. <div class="toolSort" v-if="toolType == 0">
  667. <div class="tool">
  668. <div class="whiteBIcon" @click="addTools2(10)">
  669. <img
  670. src="../../assets/icon/thirdToolList/time.png"
  671. alt
  672. />
  673. <div style="margin: 5px 0">倒计时</div>
  674. </div>
  675. <div class="check" @click="addTools2(10)">
  676. <img
  677. src="../../assets/icon/checkNo.png"
  678. alt
  679. v-if="checktoolArray.indexOf(10) == -1"
  680. />
  681. <div class="checkDiv" v-else>
  682. <img
  683. src="../../assets/icon/checkedIs.png"
  684. alt
  685. /><span>已选择</span>
  686. </div>
  687. </div>
  688. </div>
  689. </div>
  690. <div class="toolSort" v-if="toolType == 1">
  691. <div class="tool">
  692. <div class="whiteBIcon" @click="addTools2(7)">
  693. <img
  694. src="../../assets/icon/secondToolList/mindNetwork.png"
  695. alt
  696. />
  697. <div style="margin: 5px 0">思维网格</div>
  698. </div>
  699. <div class="check" @click="addTools2(7)">
  700. <img
  701. src="../../assets/icon/checkNo.png"
  702. alt
  703. v-if="checktoolArray.indexOf(7) == -1"
  704. />
  705. <div class="checkDiv" v-else>
  706. <img
  707. src="../../assets/icon/checkedIs.png"
  708. alt
  709. /><span>已选择</span>
  710. </div>
  711. </div>
  712. </div>
  713. <div class="tool">
  714. <div class="whiteBIcon" @click="addTools2(1)">
  715. <img
  716. src="../../assets/icon/secondToolList/whiteBoard.png"
  717. alt
  718. />
  719. <div style="margin: 5px 0">电子白板</div>
  720. </div>
  721. <div class="check" @click="addTools2(1)">
  722. <img
  723. src="../../assets/icon/checkNo.png"
  724. alt
  725. v-if="checktoolArray.indexOf(1) == -1"
  726. />
  727. <div class="checkDiv" v-else>
  728. <img
  729. src="../../assets/icon/checkedIs.png"
  730. alt
  731. /><span>已选择</span>
  732. </div>
  733. </div>
  734. </div>
  735. <div class="tool">
  736. <div class="whiteBIcon" @click="addTools2(52)">
  737. <img
  738. src="../../assets/icon/fourthToolList/text.png"
  739. alt
  740. />
  741. <div style="margin: 5px 0">文档</div>
  742. </div>
  743. <div class="check" @click="addTools2(52)">
  744. <img
  745. src="../../assets/icon/checkNo.png"
  746. alt
  747. v-if="checktoolArray.indexOf(52) == -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(3)">
  759. <img
  760. src="../../assets/icon/secondToolList/mindMapping.png"
  761. alt
  762. />
  763. <div style="margin: 5px 0">思维导图</div>
  764. </div>
  765. <div class="check" @click="addTools2(3)">
  766. <img
  767. src="../../assets/icon/checkNo.png"
  768. alt
  769. v-if="checktoolArray.indexOf(3) == -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(48)">
  781. <img
  782. src="../../assets/icon/fourthToolList/table.png"
  783. alt
  784. />
  785. <div style="margin: 5px 0">表格</div>
  786. </div>
  787. <div class="check" @click="addTools2(48)">
  788. <img
  789. src="../../assets/icon/checkNo.png"
  790. alt
  791. v-if="checktoolArray.indexOf(48) == -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>
  802. <div class="toolSort" v-if="toolType == 6">
  803. <div v-show="tooC == 49">
  804. <img
  805. @click="addTools(tooC, toolIndex, taskCount)"
  806. src="../../assets/icon/fourthToolList/group.png"
  807. alt
  808. />
  809. <div style="margin: 5px 0">学生分组</div>
  810. </div>
  811. </div>
  812. <div class="toolSort" v-if="toolType == 2">
  813. <div class="tool">
  814. <div class="whiteBIcon" @click="addTools2(16)">
  815. <img
  816. src="../../assets/icon/thirdToolList/work.png"
  817. alt
  818. />
  819. <div style="margin: 5px 0">作业提交</div>
  820. </div>
  821. <div class="check" @click="addTools2(16)">
  822. <img
  823. src="../../assets/icon/checkNo.png"
  824. alt
  825. v-if="checktoolArray.indexOf(16) == -1"
  826. />
  827. <div class="checkDiv" v-else>
  828. <img
  829. src="../../assets/icon/checkedIs.png"
  830. alt
  831. /><span>已选择</span>
  832. </div>
  833. </div>
  834. </div>
  835. <div class="tool">
  836. <div class="whiteBIcon" @click="addTools2(50)">
  837. <img
  838. src="../../assets/icon/thirdToolList/plwork.png"
  839. alt
  840. />
  841. <div style="margin: 5px 0">批量上传</div>
  842. </div>
  843. <div class="check" @click="addTools2(50)">
  844. <img
  845. src="../../assets/icon/checkNo.png"
  846. alt
  847. v-if="checktoolArray.indexOf(50) == -1"
  848. />
  849. <div class="checkDiv" v-else>
  850. <img
  851. src="../../assets/icon/checkedIs.png"
  852. alt
  853. /><span>已选择</span>
  854. </div>
  855. </div>
  856. </div>
  857. </div>
  858. <div class="toolSort" v-if="toolType == 3">
  859. <div class="tool">
  860. <div class="whiteBIcon" @click="addTools2(18)">
  861. <img
  862. src="../../assets/icon/thirdToolList/trainPlatform.png"
  863. alt
  864. />
  865. <div style="margin: 5px 0">训练平台</div>
  866. </div>
  867. <div class="check" @click="addTools2(18)">
  868. <img
  869. src="../../assets/icon/checkNo.png"
  870. alt
  871. v-if="checktoolArray.indexOf(18) == -1"
  872. />
  873. <div class="checkDiv" v-else>
  874. <img
  875. src="../../assets/icon/checkedIs.png"
  876. alt
  877. /><span>已选择</span>
  878. </div>
  879. </div>
  880. </div>
  881. <div class="tool">
  882. <div class="whiteBIcon" @click="addTools2(21)">
  883. <img
  884. src="../../assets/icon/fourthToolList/program.png"
  885. alt
  886. />
  887. <div style="margin: 5px 0">编程平台</div>
  888. </div>
  889. <div class="check" @click="addTools2(21)">
  890. <img
  891. src="../../assets/icon/checkNo.png"
  892. alt
  893. v-if="checktoolArray.indexOf(21) == -1"
  894. />
  895. <div class="checkDiv" v-else>
  896. <img
  897. src="../../assets/icon/checkedIs.png"
  898. alt
  899. /><span>已选择</span>
  900. </div>
  901. </div>
  902. </div>
  903. <div class="tool">
  904. <div class="whiteBIcon" @click="addTools2(22)">
  905. <img
  906. src="../../assets/icon/fourthToolList/AIprogram2.png"
  907. alt
  908. />
  909. <div style="margin: 5px 0">AI体验</div>
  910. </div>
  911. <div class="check" @click="addTools2(22)">
  912. <img
  913. src="../../assets/icon/checkNo.png"
  914. alt
  915. v-if="checktoolArray.indexOf(22) == -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(23)">
  927. <img
  928. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  929. alt
  930. />
  931. <div style="margin: 5px 0">Python</div>
  932. </div>
  933. <div class="check" @click="addTools2(23)">
  934. <img
  935. src="../../assets/icon/checkNo.png"
  936. alt
  937. v-if="checktoolArray.indexOf(23) == -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(24)">
  949. <img
  950. src="../../assets/icon/fourthToolList/AIprogram.png"
  951. alt
  952. />
  953. <div style="margin: 5px 0">AI平台</div>
  954. </div>
  955. <div class="check" @click="addTools2(24)">
  956. <img
  957. src="../../assets/icon/checkNo.png"
  958. alt
  959. v-if="checktoolArray.indexOf(24) == -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(32)">
  971. <img
  972. src="../../assets/icon/thirdToolList/code.png"
  973. alt
  974. />
  975. <div style="margin: 5px 0">源码编辑</div>
  976. </div>
  977. <div class="check" @click="addTools2(32)">
  978. <img
  979. src="../../assets/icon/checkNo.png"
  980. alt
  981. v-if="checktoolArray.indexOf(32) == -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(57)">
  993. <img
  994. src="../../assets/icon/fourthToolList/cocopi.png"
  995. alt
  996. />
  997. <div style="margin: 5px 0">CocoPi</div>
  998. </div>
  999. <div class="check" @click="addTools2(57)">
  1000. <img
  1001. src="../../assets/icon/checkNo.png"
  1002. alt
  1003. v-if="checktoolArray.indexOf(57) == -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(63)">
  1015. <img
  1016. src="../../assets/icon/fourthToolList/Wood.png"
  1017. alt
  1018. />
  1019. <div style="margin: 5px 0">海龟编程</div>
  1020. </div>
  1021. <div class="check" @click="addTools2(63)">
  1022. <img
  1023. src="../../assets/icon/checkNo.png"
  1024. alt
  1025. v-if="checktoolArray.indexOf(63) == -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>
  1036. <div class="toolSort" v-if="toolType == 7">
  1037. <div class="tool">
  1038. <div class="whiteBIcon" @click="addTools2(40)">
  1039. <img
  1040. src="../../assets/icon/secondToolList/eval.png"
  1041. alt
  1042. />
  1043. <div style="margin: 5px 0">个人评价</div>
  1044. </div>
  1045. <div class="check" @click="addTools2(40)">
  1046. <img
  1047. src="../../assets/icon/checkNo.png"
  1048. alt
  1049. v-if="checktoolArray.indexOf(40) == -1"
  1050. />
  1051. <div class="checkDiv" v-else>
  1052. <img
  1053. src="../../assets/icon/checkedIs.png"
  1054. alt
  1055. /><span>已选择</span>
  1056. </div>
  1057. </div>
  1058. </div>
  1059. </div>
  1060. <div class="toolSort" v-if="toolType == 5">
  1061. <div class="tool">
  1062. <div class="whiteBIcon" @click="addTools2(28)">
  1063. <img
  1064. src="../../assets/icon/secondToolList/translation.png"
  1065. alt
  1066. />
  1067. <div style="margin: 5px 0">翻译</div>
  1068. </div>
  1069. <div class="check" @click="addTools2(28)">
  1070. <img
  1071. src="../../assets/icon/checkNo.png"
  1072. alt
  1073. v-if="checktoolArray.indexOf(28) == -1"
  1074. />
  1075. <div class="checkDiv" v-else>
  1076. <img
  1077. src="../../assets/icon/checkedIs.png"
  1078. alt
  1079. /><span>已选择</span>
  1080. </div>
  1081. </div>
  1082. </div>
  1083. <div class="tool">
  1084. <div class="whiteBIcon" @click="addTools2(37)">
  1085. <img
  1086. src="../../assets/icon/secondToolList/mohe.png"
  1087. alt
  1088. />
  1089. <div style="margin: 5px 0">魔盒识字</div>
  1090. </div>
  1091. <div class="check" @click="addTools2(37)">
  1092. <img
  1093. src="../../assets/icon/checkNo.png"
  1094. alt
  1095. v-if="checktoolArray.indexOf(37) == -1"
  1096. />
  1097. <div class="checkDiv" v-else>
  1098. <img
  1099. src="../../assets/icon/checkedIs.png"
  1100. alt
  1101. /><span>已选择</span>
  1102. </div>
  1103. </div>
  1104. </div>
  1105. <div class="tool">
  1106. <div class="whiteBIcon" @click="addTools2(38)">
  1107. <img
  1108. src="../../assets/icon/secondToolList/24game.png"
  1109. alt
  1110. />
  1111. <div style="margin: 5px 0">24点</div>
  1112. </div>
  1113. <div class="check" @click="addTools2(38)">
  1114. <img
  1115. src="../../assets/icon/checkNo.png"
  1116. alt
  1117. v-if="checktoolArray.indexOf(38) == -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(31)">
  1129. <img
  1130. src="../../assets/icon/secondToolList/networkPanel.png"
  1131. alt
  1132. />
  1133. <div style="margin: 5px 0">数学画板</div>
  1134. </div>
  1135. <div class="check" @click="addTools2(31)">
  1136. <img
  1137. src="../../assets/icon/checkNo.png"
  1138. alt
  1139. v-if="checktoolArray.indexOf(31) == -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(39)">
  1151. <img
  1152. src="../../assets/icon/secondToolList/GeoGebra.png"
  1153. alt
  1154. />
  1155. <div style="margin: 5px 0">GeoGebra</div>
  1156. </div>
  1157. <div class="check" @click="addTools2(39)">
  1158. <img
  1159. src="../../assets/icon/checkNo.png"
  1160. alt
  1161. v-if="checktoolArray.indexOf(39) == -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(58)">
  1173. <img
  1174. src="../../assets/icon/fourthToolList/car.png"
  1175. alt
  1176. />
  1177. <div style="margin: 5px 0">模拟驾驶</div>
  1178. </div>
  1179. <div class="check" @click="addTools2(58)">
  1180. <img
  1181. src="../../assets/icon/checkNo.png"
  1182. alt
  1183. v-if="checktoolArray.indexOf(58) == -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(59)">
  1195. <img
  1196. src="../../assets/icon/fourthToolList/lineSearch.png"
  1197. alt
  1198. />
  1199. <div style="margin: 5px 0">路径搜索</div>
  1200. </div>
  1201. <div class="check" @click="addTools2(59)">
  1202. <img
  1203. src="../../assets/icon/checkNo.png"
  1204. alt
  1205. v-if="checktoolArray.indexOf(59) == -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(60)">
  1217. <img
  1218. src="../../assets/icon/fourthToolList/deepLearning.png"
  1219. alt
  1220. />
  1221. <div style="margin: 5px 0">深度学习</div>
  1222. </div>
  1223. <div class="check" @click="addTools2(60)">
  1224. <img
  1225. src="../../assets/icon/checkNo.png"
  1226. alt
  1227. v-if="checktoolArray.indexOf(60) == -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(61)">
  1239. <img
  1240. src="../../assets/icon/fourthToolList/allHistory.png"
  1241. alt
  1242. />
  1243. <div style="margin: 5px 0">全历史</div>
  1244. </div>
  1245. <div class="check" @click="addTools2(61)">
  1246. <img
  1247. src="../../assets/icon/checkNo.png"
  1248. alt
  1249. v-if="checktoolArray.indexOf(61) == -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>
  1260. <div class="toolSort" v-if="toolType == 4">
  1261. <div class="tool">
  1262. <div class="whiteBIcon" @click="addTools2(26)">
  1263. <img
  1264. src="../../assets/icon/thirdToolList/courseDesign.png"
  1265. alt
  1266. />
  1267. <div style="margin: 5px 0">课程设计</div>
  1268. </div>
  1269. <div class="check" @click="addTools2(26)">
  1270. <img
  1271. src="../../assets/icon/checkNo.png"
  1272. alt
  1273. v-if="checktoolArray.indexOf(26) == -1"
  1274. />
  1275. <div class="checkDiv" v-else>
  1276. <img
  1277. src="../../assets/icon/checkedIs.png"
  1278. alt
  1279. /><span>已选择</span>
  1280. </div>
  1281. </div>
  1282. </div>
  1283. <div class="tool">
  1284. <div class="whiteBIcon" @click="addTools2(25)">
  1285. <img
  1286. src="../../assets/icon/thirdToolList/evalua.png"
  1287. alt
  1288. />
  1289. <div style="margin: 5px 0">目标管理</div>
  1290. </div>
  1291. <div class="check" @click="addTools2(25)">
  1292. <img
  1293. src="../../assets/icon/checkNo.png"
  1294. alt
  1295. v-if="checktoolArray.indexOf(25) == -1"
  1296. />
  1297. <div class="checkDiv" v-else>
  1298. <img
  1299. src="../../assets/icon/checkedIs.png"
  1300. alt
  1301. /><span>已选择</span>
  1302. </div>
  1303. </div>
  1304. </div>
  1305. </div>
  1306. </div>
  1307. </div>
  1308. </div>
  1309. </div>
  1310. <div
  1311. class="vedioBox"
  1312. v-if="
  1313. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1314. .toolChoose[0].tool &&
  1315. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1316. .toolChoose[0].tool.length &&
  1317. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1318. .toolChoose[0].tool.length > 0
  1319. "
  1320. style="padding: 0 37px"
  1321. >
  1322. <div
  1323. class="queTop"
  1324. style="
  1325. font-size: 20px;
  1326. padding: 15px 0 15px 0;
  1327. font-weight: bold;
  1328. "
  1329. >
  1330. 发布区
  1331. </div>
  1332. <div
  1333. class="toolHeng2"
  1334. style="
  1335. position: relative;
  1336. border-bottom: 1px solid rgb(215, 219, 225);
  1337. "
  1338. >
  1339. <div
  1340. class="filebox"
  1341. style="flex-wrap: nowrap"
  1342. v-if="
  1343. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1344. .toolChoose.length
  1345. "
  1346. >
  1347. <div class="choiceBox">
  1348. <div class="bzChild" style="margin-right: 20px">
  1349. <span>步骤选择:</span>
  1350. </div>
  1351. <div class="bzTypeBox">
  1352. <div
  1353. class="bzChild"
  1354. v-for="(bz, bzIndex) in chapInfoList[courseType]
  1355. .chapterInfo[0].taskJson[taskCount].toolChoose"
  1356. :key="bzIndex"
  1357. :class="{ active: toolIndex == bzIndex }"
  1358. @click="checkBz(bzIndex)"
  1359. >
  1360. <span>步骤{{ bzIndex + 1 }}</span>
  1361. </div>
  1362. </div>
  1363. </div>
  1364. <div class="bzBox">
  1365. <div class="yCss"></div>
  1366. <div>步骤{{ toolIndex + 1 }}</div>
  1367. <div
  1368. style="margin: 0 72px 0 auto"
  1369. v-if="courseDetail.userid == userid"
  1370. >
  1371. <el-button
  1372. type="primary"
  1373. size="mini"
  1374. @click="updateToolDetail"
  1375. >{{
  1376. !isUpdateToolDetail ? "编辑" : "确认修改"
  1377. }}</el-button
  1378. >
  1379. </div>
  1380. </div>
  1381. <div class="toolBox">
  1382. <div class="toolBoxSteps" @click="nextToolindex('last')">
  1383. <img src="../../assets/icon/leftIcon.png" />
  1384. </div>
  1385. <div class="toolBoxSteps" @click="nextToolindex('next')">
  1386. <img src="../../assets/icon/rightIcon.png" />
  1387. </div>
  1388. <div>
  1389. <div class="noiframeBox">
  1390. <div
  1391. class="addPoint"
  1392. v-for="(tooC, toolCIndex) in tool.tool"
  1393. :key="toolCIndex"
  1394. >
  1395. <div v-show="tooC == 1">
  1396. <img
  1397. src="../../assets/icon/secondToolList/whiteBoard.png"
  1398. alt
  1399. @click="addTools(tooC, toolIndex, taskCount)"
  1400. />
  1401. <div style="margin: 5px 0">电子白板</div>
  1402. </div>
  1403. <div v-show="tooC == 3">
  1404. <img
  1405. src="../../assets/icon/secondToolList/mindMapping.png"
  1406. alt
  1407. @click="addTools(tooC, toolIndex, taskCount)"
  1408. />
  1409. <div style="margin: 5px 0">思维导图</div>
  1410. </div>
  1411. <div v-show="tooC == 6">
  1412. <img
  1413. src="../../assets/icon/secondToolList/doc.png"
  1414. alt
  1415. @click="addTools(tooC, toolIndex, taskCount)"
  1416. />
  1417. <div style="margin: 5px 0">协同文档</div>
  1418. </div>
  1419. <div v-show="tooC == 7">
  1420. <img
  1421. src="../../assets/icon/secondToolList/mindNetwork.png"
  1422. alt
  1423. @click="addTools(tooC, toolIndex, taskCount)"
  1424. />
  1425. <div style="margin: 5px 0">思维网格</div>
  1426. </div>
  1427. <div v-show="tooC == 8">
  1428. <img
  1429. src="../../assets/icon/secondToolList/library.png"
  1430. alt
  1431. @click="addTools(tooC, toolIndex, taskCount)"
  1432. />
  1433. <div style="margin: 5px 0">素材库</div>
  1434. </div>
  1435. <div v-show="tooC == 17">
  1436. <img
  1437. src="../../assets/icon/secondToolList/library.png"
  1438. alt
  1439. @click="addTools(tooC, toolIndex, taskCount)"
  1440. />
  1441. <div style="margin: 5px 0">学习资料</div>
  1442. </div>
  1443. <div v-show="tooC == 2">
  1444. <img
  1445. @click="addTools(tooC, toolIndex, taskCount)"
  1446. src="../../assets/icon/secondToolList/note.png"
  1447. alt
  1448. />
  1449. <div style="margin: 5px 0">便签</div>
  1450. </div>
  1451. <div v-show="tooC == 4">
  1452. <img
  1453. @click="addTools(tooC, toolIndex, taskCount)"
  1454. src="../../assets/icon/thirdToolList/ask.png"
  1455. alt
  1456. />
  1457. <div style="margin: 5px 0">问卷调查</div>
  1458. </div>
  1459. <div v-show="tooC == 45">
  1460. <img
  1461. @click="addTools(tooC, toolIndex, taskCount)"
  1462. src="../../assets/icon/thirdToolList/choose.png"
  1463. alt
  1464. />
  1465. <div style="margin: 5px 0">选择题</div>
  1466. </div>
  1467. <!-- <div v-show="tooC == 5">
  1468. <img
  1469. @click="addTools(tooC, toolIndex, taskCount)"
  1470. src="../../assets/icon/thirdToolList/score.png"
  1471. alt
  1472. />
  1473. <div style="margin: 5px 0">量规评分</div>
  1474. </div> -->
  1475. <div v-show="tooC == 10">
  1476. <img
  1477. @click="addTools(tooC, toolIndex, taskCount)"
  1478. src="../../assets/icon/thirdToolList/time.png"
  1479. alt
  1480. />
  1481. <div style="margin: 5px 0">倒计时</div>
  1482. </div>
  1483. <div v-show="tooC == 15">
  1484. <img
  1485. @click="addTools(tooC, toolIndex, taskCount)"
  1486. src="../../assets/icon/thirdToolList/answer.png"
  1487. alt
  1488. />
  1489. <div style="margin: 5px 0">问答工具</div>
  1490. </div>
  1491. <div v-show="tooC == 26">
  1492. <img
  1493. @click="addTools(tooC, toolIndex, taskCount)"
  1494. src="../../assets/icon/thirdToolList/courseDesign.png"
  1495. alt
  1496. />
  1497. <div style="margin: 5px 0">课程设计</div>
  1498. </div>
  1499. <div v-show="tooC == 18">
  1500. <img
  1501. @click="addTools(tooC, toolIndex, taskCount)"
  1502. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1503. alt
  1504. />
  1505. <div style="margin: 5px 0">训练服务器</div>
  1506. </div>
  1507. <div v-show="tooC == 16">
  1508. <img
  1509. @click="addTools(tooC, toolIndex, taskCount)"
  1510. src="../../assets/icon/thirdToolList/work.png"
  1511. alt
  1512. />
  1513. <div style="margin: 5px 0">作业提交</div>
  1514. </div>
  1515. <div v-show="tooC == 50">
  1516. <img
  1517. @click="addTools(tooC, toolIndex, taskCount)"
  1518. src="../../assets/icon/thirdToolList/plwork.png"
  1519. alt
  1520. />
  1521. <div style="margin: 5px 0">批量上传</div>
  1522. </div>
  1523. <div v-show="tooC == 21">
  1524. <img
  1525. @click="addTools(tooC, toolIndex, taskCount)"
  1526. src="../../assets/icon/fourthToolList/program.png"
  1527. alt
  1528. />
  1529. <div style="margin: 5px 0">编程平台</div>
  1530. </div>
  1531. <div v-show="tooC == 22">
  1532. <img
  1533. @click="addTools(tooC, toolIndex, taskCount)"
  1534. src="../../assets/icon/fourthToolList/program.png"
  1535. alt
  1536. />
  1537. <div style="margin: 5px 0">AI体验</div>
  1538. </div>
  1539. <div v-show="tooC == 23">
  1540. <img
  1541. @click="addTools(tooC, toolIndex, taskCount)"
  1542. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1543. alt
  1544. />
  1545. <div style="margin: 5px 0">Python</div>
  1546. </div>
  1547. <div v-show="tooC == 24">
  1548. <img
  1549. @click="addTools(tooC, toolIndex, taskCount)"
  1550. src="../../assets/icon/fourthToolList/AIprogram.png"
  1551. alt
  1552. />
  1553. <div style="margin: 5px 0">AI平台</div>
  1554. </div>
  1555. <div v-show="tooC == 25">
  1556. <img
  1557. @click="addTools(tooC, toolIndex, taskCount)"
  1558. src="../../assets/icon/thirdToolList/evalua.png"
  1559. alt
  1560. />
  1561. <div style="margin: 5px 0">目标管理</div>
  1562. </div>
  1563. <div v-show="tooC == 31">
  1564. <img
  1565. @click="addTools(tooC, toolIndex, taskCount)"
  1566. src="../../assets/icon/secondToolList/networkPanel.png"
  1567. alt
  1568. />
  1569. <div style="margin: 5px 0">数学画板</div>
  1570. </div>
  1571. <div v-show="tooC == 28">
  1572. <img
  1573. @click="addTools(tooC, toolIndex, taskCount)"
  1574. src="../../assets/icon/secondToolList/translation.png"
  1575. alt
  1576. />
  1577. <div style="margin: 5px 0">翻译</div>
  1578. </div>
  1579. <div v-show="tooC == 37">
  1580. <img
  1581. @click="addTools(tooC, toolIndex, taskCount)"
  1582. src="../../assets/icon/secondToolList/mohe.png"
  1583. alt
  1584. />
  1585. <div style="margin: 5px 0">魔盒识字</div>
  1586. </div>
  1587. <div v-show="tooC == 38">
  1588. <img
  1589. @click="addTools(tooC, toolIndex, taskCount)"
  1590. src="../../assets/icon/secondToolList/24game.png"
  1591. alt
  1592. />
  1593. <div style="margin: 5px 0">24点</div>
  1594. </div>
  1595. <div v-show="tooC == 39">
  1596. <img
  1597. @click="addTools(tooC, toolIndex, taskCount)"
  1598. src="../../assets/icon/secondToolList/GeoGebra.png"
  1599. alt
  1600. />
  1601. <div style="margin: 5px 0">GeoGebra</div>
  1602. </div>
  1603. <div v-show="tooC == 32">
  1604. <img
  1605. @click="addTools(tooC, toolIndex, taskCount)"
  1606. src="../../assets/icon/thirdToolList/code.png"
  1607. alt
  1608. />
  1609. <div style="margin: 5px 0">源码编辑</div>
  1610. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1611. style="position: absolute;left: 110px;bottom: 30px;">
  1612. 上传文件
  1613. <input type="file" accept="*" style="display: none"
  1614. @change="beforeUpload1($event, 7, toolIndex)" />
  1615. </div> -->
  1616. </div>
  1617. <!-- <div v-show="tooC == 40">
  1618. <img
  1619. @click="addTools(tooC, toolIndex, taskCount)"
  1620. src="../../assets/icon/secondToolList/eval.png"
  1621. alt
  1622. />
  1623. <div style="margin: 5px 0">个人评价</div>
  1624. </div> -->
  1625. <div v-show="tooC == 41">
  1626. <img
  1627. @click="addTools(tooC, toolIndex, taskCount)"
  1628. src="../../assets/icon/thirdToolList/select.png"
  1629. alt
  1630. />
  1631. <div style="margin: 5px 0">选择填空</div>
  1632. </div>
  1633. <div v-show="tooC == 44">
  1634. <img
  1635. @click="addTools(tooC, toolIndex, taskCount)"
  1636. src="../../assets/icon/thirdToolList/hanClass.png"
  1637. alt
  1638. />
  1639. <div style="margin: 5px 0">汉字宫</div>
  1640. </div>
  1641. <div v-show="tooC == 47">
  1642. <img
  1643. @click="addTools(tooC, toolIndex, taskCount)"
  1644. src="../../assets/icon/fourthToolList/conSentences.png"
  1645. alt
  1646. />
  1647. <div style="margin: 5px 0">连词成句</div>
  1648. </div>
  1649. <div v-show="tooC == 48">
  1650. <img
  1651. @click="addTools(tooC, toolIndex, taskCount)"
  1652. src="../../assets/icon/fourthToolList/table.png"
  1653. alt
  1654. />
  1655. <div style="margin: 5px 0">表格</div>
  1656. </div>
  1657. <div v-show="tooC == 52">
  1658. <img
  1659. @click="addTools(tooC, toolIndex, taskCount)"
  1660. src="../../assets/icon/fourthToolList/text.png"
  1661. alt
  1662. />
  1663. <div style="margin: 5px 0">文档</div>
  1664. </div>
  1665. <!-- <div v-show="tooC == 49">
  1666. <img @click="addTools(tooC, toolIndex, taskCount)"
  1667. src="../../assets/icon/fourthToolList/group.png" alt />
  1668. <div style="margin: 5px 0">学生分组</div>
  1669. </div> -->
  1670. <div v-show="tooC == 57">
  1671. <img
  1672. @click="addTools(tooC, toolIndex, taskCount)"
  1673. src="../../assets/icon/fourthToolList/cocopi.png"
  1674. alt
  1675. />
  1676. <div style="margin: 5px 0">CocoPi</div>
  1677. </div>
  1678. <div v-show="tooC == 58">
  1679. <img
  1680. @click="addTools(tooC, toolIndex, taskCount)"
  1681. src="../../assets/icon/fourthToolList/car.png"
  1682. alt
  1683. />
  1684. <div style="margin: 5px 0">模拟驾驶</div>
  1685. </div>
  1686. <div v-show="tooC == 59">
  1687. <img
  1688. @click="addTools(tooC, toolIndex, taskCount)"
  1689. src="../../assets/icon/fourthToolList/lineSearch.png"
  1690. alt
  1691. />
  1692. <div style="margin: 5px 0">路径搜索</div>
  1693. </div>
  1694. <div v-show="tooC == 60">
  1695. <img
  1696. @click="addTools(tooC, toolIndex, taskCount)"
  1697. src="../../assets/icon/fourthToolList/deepLearning.png"
  1698. alt
  1699. />
  1700. <div style="margin: 5px 0">深度学习</div>
  1701. </div>
  1702. <div v-show="tooC == 61">
  1703. <img
  1704. @click="addTools(tooC, toolIndex, taskCount)"
  1705. src="../../assets/icon/fourthToolList/allHistory.png"
  1706. alt
  1707. />
  1708. <div style="margin: 5px 0">全历史</div>
  1709. </div>
  1710. <div v-show="tooC == 62">
  1711. <img
  1712. @click="addTools(tooC, toolIndex, taskCount)"
  1713. src="../../assets/icon/fourthToolList/interVideo.png"
  1714. alt
  1715. />
  1716. <div style="margin: 5px 0">交互视频</div>
  1717. </div>
  1718. <div v-show="tooC == 63">
  1719. <img
  1720. @click="addTools(tooC, toolIndex, taskCount)"
  1721. src="../../assets/icon/fourthToolList/Wood.png"
  1722. alt
  1723. />
  1724. <div style="margin: 5px 0">海龟编程</div>
  1725. </div>
  1726. </div>
  1727. </div>
  1728. </div>
  1729. <div class="tooldetail">
  1730. <!-- <div class="toolTitle">工具描述</div> -->
  1731. <div
  1732. style="height: 100%"
  1733. v-html="
  1734. contentConvent(
  1735. tool.toolDetail ? tool.toolDetail : '暂无描述'
  1736. )
  1737. "
  1738. v-if="!isUpdateToolDetail"
  1739. @click="updateToolDetail"
  1740. ></div>
  1741. <div v-else>
  1742. <el-input
  1743. type="textarea"
  1744. :rows="3"
  1745. resize="none"
  1746. v-model="updateToolDetailInner"
  1747. placeholder="请输入任务描述"
  1748. ></el-input>
  1749. </div>
  1750. </div>
  1751. <el-button
  1752. type="primary"
  1753. v-if="tool.tool[0] == 32"
  1754. style="
  1755. position: absolute;
  1756. right: 30px;
  1757. transform: translateY(-130%);
  1758. "
  1759. @click="addImg($event)"
  1760. >上传作业<input
  1761. type="file"
  1762. accept="*"
  1763. style="display: none"
  1764. @change="beforeUpload1($event, 7, toolIndex)"
  1765. /></el-button>
  1766. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1767. position: absolute;
  1768. right: 30px;
  1769. transform: translateY(-130%);
  1770. " @click="addImg($event)">上传作业<input type="file" accept="*"
  1771. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1772. </div>
  1773. </div>
  1774. </div>
  1775. </div>
  1776. <div
  1777. class="vedioBox"
  1778. v-if="
  1779. arrayToArray(tool.tool, isWorkTool).length &&
  1780. worksTeacher.length &&
  1781. worksTeacher[toolIndex].length &&
  1782. false
  1783. "
  1784. >
  1785. <div
  1786. class="queTop"
  1787. style="
  1788. font-size: 20px;
  1789. padding: 15px 0 15px 30px;
  1790. font-weight: bold;
  1791. "
  1792. >
  1793. 教师工作区
  1794. </div>
  1795. <div class="tool_work_box">
  1796. <div
  1797. v-if="
  1798. tType &&
  1799. ((tType == 2 && sIsOpen == true) ||
  1800. tType == 1 ||
  1801. tType == 4) &&
  1802. tool.tool.indexOf(16) != -1
  1803. "
  1804. class="worksBox"
  1805. >
  1806. <div
  1807. class="zuoyeYulan"
  1808. v-if="
  1809. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1810. "
  1811. >
  1812. <div class="worksTop">
  1813. <div>作业预览</div>
  1814. </div>
  1815. </div>
  1816. <div
  1817. class="worksDetailBox"
  1818. v-if="
  1819. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1820. "
  1821. >
  1822. <div
  1823. class="works"
  1824. style="
  1825. width: 200px;
  1826. height: 140px;
  1827. margin: 10px 10px 10px 0;
  1828. border-radius: 15px;
  1829. box-shadow: 0 0 6px 1px #dfdada;
  1830. "
  1831. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1832. :key="wIndex"
  1833. :class="w.type == 1 ? 'isTypeOne' : ''"
  1834. >
  1835. <div class="workImg" v-if="w.type == 0">
  1836. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1837. <img :src="w.works" @click="previewImg(w.works)" alt />
  1838. <div
  1839. class="answerScore"
  1840. v-if="w.score"
  1841. @click.stop="openScore(w)"
  1842. :class="{
  1843. rightW:
  1844. w.userid == userid ||
  1845. tType == 1 ||
  1846. tType == 4 ||
  1847. w.ateacher == userid,
  1848. }"
  1849. >
  1850. {{ JSON.parse(w.score).wScore }}分
  1851. </div>
  1852. <div
  1853. class="answerScore"
  1854. @click.stop="openScore(w)"
  1855. v-else-if="courseDetail.userid == userid"
  1856. :class="{
  1857. rightW:
  1858. w.userid == userid ||
  1859. tType == 1 ||
  1860. tType == 4 ||
  1861. w.ateacher == userid,
  1862. }"
  1863. >
  1864. 评分
  1865. </div>
  1866. <img
  1867. class="deleteImg"
  1868. src="../../assets/deleteworks.png"
  1869. v-if="w.userid == userid || tType == 1 || tType == 4"
  1870. @click.stop="deleteWorks(w.wid)"
  1871. alt
  1872. />
  1873. </div>
  1874. <div class="workImg" v-if="w.type == 1">
  1875. <img :src="word" @click="openFile(w.works)" alt />
  1876. <!-- @click="openFile(w.works)" -->
  1877. <div
  1878. class="answerScore"
  1879. v-if="w.score"
  1880. @click.stop="openScore(w)"
  1881. :class="{
  1882. rightW:
  1883. w.userid == userid ||
  1884. tType == 1 ||
  1885. tType == 4 ||
  1886. w.ateacher == userid,
  1887. }"
  1888. >
  1889. {{ JSON.parse(w.score).wScore }}分
  1890. </div>
  1891. <div
  1892. class="answerScore"
  1893. @click.stop="openScore(w)"
  1894. v-else-if="courseDetail.userid == userid"
  1895. :class="{
  1896. rightW:
  1897. w.userid == userid ||
  1898. tType == 1 ||
  1899. tType == 4 ||
  1900. w.ateacher == userid,
  1901. }"
  1902. >
  1903. 评分
  1904. </div>
  1905. <img
  1906. class="deleteImg"
  1907. src="../../assets/deleteworks.png"
  1908. v-if="w.userid == userid || tType == 1 || tType == 4"
  1909. @click.stop="deleteWorks(w.wid)"
  1910. alt
  1911. />
  1912. </div>
  1913. <div class="workImg" v-if="w.type == 3">
  1914. <img
  1915. style="cursor: pointer"
  1916. :src="video"
  1917. @click="openVideo(w)"
  1918. alt
  1919. />
  1920. <!-- @click="openVideo(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 == 12">
  1958. <img
  1959. style="cursor: pointer"
  1960. :src="word2"
  1961. @click="downloadFile(w.works)"
  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="comment" style="min-width: 200px">
  2002. <div class="worksName">
  2003. <div>{{ w.sName }}</div>
  2004. </div>
  2005. <div class="commentList">
  2006. <div class="commentList">
  2007. <div
  2008. class="commentImg"
  2009. @click="
  2010. isLikes(w.wid, userid, 1, null, w.isLikes)
  2011. "
  2012. >
  2013. <img
  2014. :src="w.isLikes == true ? likes : noLikes"
  2015. alt=""
  2016. />
  2017. </div>
  2018. <div>{{ w.likesCount }}</div>
  2019. </div>
  2020. <div class="commentList" style="margin-right: 15px">
  2021. <div
  2022. class="commentImg"
  2023. @click="commentOther(w, toolIndex, wIndex)"
  2024. >
  2025. <img
  2026. src="../../assets/icon/comment/comment.png"
  2027. alt=""
  2028. />
  2029. </div>
  2030. <div>{{ w.commentCount }}</div>
  2031. </div>
  2032. </div>
  2033. </div>
  2034. </div>
  2035. </div>
  2036. </div>
  2037. <div
  2038. v-if="
  2039. tType &&
  2040. ((tType == 2 && sIsOpen == true) ||
  2041. tType == 1 ||
  2042. tType == 4) &&
  2043. tool.tool.indexOf(32) != -1
  2044. "
  2045. class="worksBox"
  2046. >
  2047. <div
  2048. class="zuoyeYulan"
  2049. v-if="
  2050. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2051. "
  2052. >
  2053. <div class="worksTop">
  2054. <div>作业预览</div>
  2055. </div>
  2056. </div>
  2057. <div
  2058. class="worksDetailBox"
  2059. v-if="
  2060. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2061. "
  2062. >
  2063. <div
  2064. class="works"
  2065. style="
  2066. width: 200px;
  2067. height: 140px;
  2068. margin: 10px 10px 10px 0;
  2069. border-radius: 15px;
  2070. box-shadow: 0 0 6px 1px #dfdada;
  2071. "
  2072. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2073. :key="wIndex"
  2074. :class="w.type == 1 ? 'isTypeOne' : ''"
  2075. >
  2076. <div class="workImg">
  2077. <img :src="word2" @click="downloadFile(w.works)" alt />
  2078. <div
  2079. class="answerScore"
  2080. v-if="w.score"
  2081. @click.stop="openScore(w)"
  2082. :class="{
  2083. rightW:
  2084. w.userid == userid ||
  2085. tType == 1 ||
  2086. tType == 4 ||
  2087. w.ateacher == userid,
  2088. }"
  2089. >
  2090. {{ JSON.parse(w.score).wScore }}分
  2091. </div>
  2092. <div
  2093. class="answerScore"
  2094. @click.stop="openScore(w)"
  2095. v-else-if="courseDetail.userid == userid"
  2096. :class="{
  2097. rightW:
  2098. w.userid == userid ||
  2099. tType == 1 ||
  2100. tType == 4 ||
  2101. w.ateacher == userid,
  2102. }"
  2103. >
  2104. 评分
  2105. </div>
  2106. <img
  2107. class="deleteImg"
  2108. src="../../assets/deleteworks.png"
  2109. v-if="w.userid == userid || tType == 1 || tType == 4"
  2110. @click.stop="deleteWorks(w.wid)"
  2111. alt
  2112. />
  2113. </div>
  2114. <div class="comment" style="min-width: 200px">
  2115. <div class="worksName">
  2116. <div>{{ w.sName }}</div>
  2117. </div>
  2118. <div class="commentList">
  2119. <div class="commentList">
  2120. <div
  2121. class="commentImg"
  2122. @click="
  2123. isLikes(w.wid, userid, 1, null, w.isLikes)
  2124. "
  2125. >
  2126. <img
  2127. :src="w.isLikes == true ? likes : noLikes"
  2128. alt=""
  2129. />
  2130. </div>
  2131. <div>{{ w.likesCount }}</div>
  2132. </div>
  2133. <div class="commentList" style="margin-right: 15px">
  2134. <div
  2135. class="commentImg"
  2136. @click="commentOther(w, toolIndex, wIndex)"
  2137. >
  2138. <img
  2139. src="../../assets/icon/comment/comment.png"
  2140. alt=""
  2141. />
  2142. </div>
  2143. <div>{{ w.commentCount }}</div>
  2144. </div>
  2145. </div>
  2146. </div>
  2147. </div>
  2148. </div>
  2149. </div>
  2150. <div
  2151. v-if="
  2152. tType &&
  2153. ((tType == 2 && sIsOpen == true) ||
  2154. tType == 1 ||
  2155. tType == 4) &&
  2156. tool.tool.indexOf(57) != -1
  2157. "
  2158. class="worksBox"
  2159. >
  2160. <div
  2161. class="zuoyeYulan"
  2162. v-if="
  2163. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2164. "
  2165. >
  2166. <div class="worksTop">
  2167. <div>作业预览</div>
  2168. </div>
  2169. </div>
  2170. <div
  2171. class="worksDetailBox"
  2172. v-if="
  2173. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2174. "
  2175. >
  2176. <div
  2177. class="works"
  2178. style="
  2179. width: 200px;
  2180. height: 140px;
  2181. margin: 10px 10px 10px 0;
  2182. border-radius: 15px;
  2183. box-shadow: 0 0 6px 1px #dfdada;
  2184. "
  2185. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2186. :key="wIndex"
  2187. :class="w.type == 1 ? 'isTypeOne' : ''"
  2188. >
  2189. <div class="workImg">
  2190. <img
  2191. :src="word2"
  2192. @click="downloadFile(w.works)"
  2193. v-if="w.type == 12"
  2194. alt
  2195. />
  2196. <img
  2197. :src="word2"
  2198. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  2199. v-else-if="w.type == 15"
  2200. alt
  2201. />
  2202. <div
  2203. class="answerScore"
  2204. v-if="w.score"
  2205. @click.stop="openScore(w)"
  2206. :class="{
  2207. rightW:
  2208. w.userid == userid ||
  2209. tType == 1 ||
  2210. tType == 4 ||
  2211. w.ateacher == userid,
  2212. }"
  2213. >
  2214. {{ JSON.parse(w.score).wScore }}分
  2215. </div>
  2216. <div
  2217. class="answerScore"
  2218. @click.stop="openScore(w)"
  2219. v-else-if="courseDetail.userid == userid"
  2220. :class="{
  2221. rightW:
  2222. w.userid == userid ||
  2223. tType == 1 ||
  2224. tType == 4 ||
  2225. w.ateacher == userid,
  2226. }"
  2227. >
  2228. 评分
  2229. </div>
  2230. <img
  2231. class="deleteImg"
  2232. src="../../assets/deleteworks.png"
  2233. v-if="w.userid == userid || tType == 1 || tType == 4"
  2234. @click.stop="deleteWorks(w.wid)"
  2235. alt
  2236. />
  2237. </div>
  2238. <div class="comment" style="min-width: 200px">
  2239. <div class="worksName">
  2240. <div>{{ w.sName }}</div>
  2241. </div>
  2242. <div class="commentList">
  2243. <div class="commentList">
  2244. <div
  2245. class="commentImg"
  2246. @click="
  2247. isLikes(w.wid, userid, 1, null, w.isLikes)
  2248. "
  2249. >
  2250. <img
  2251. :src="w.isLikes == true ? likes : noLikes"
  2252. alt=""
  2253. />
  2254. </div>
  2255. <div>{{ w.likesCount }}</div>
  2256. </div>
  2257. <div class="commentList" style="margin-right: 15px">
  2258. <div
  2259. class="commentImg"
  2260. @click="commentOther(w, toolIndex, wIndex)"
  2261. >
  2262. <img
  2263. src="../../assets/icon/comment/comment.png"
  2264. alt=""
  2265. />
  2266. </div>
  2267. <div>{{ w.commentCount }}</div>
  2268. </div>
  2269. </div>
  2270. </div>
  2271. </div>
  2272. </div>
  2273. </div>
  2274. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  2275. <div
  2276. class="zuoyeYulan"
  2277. v-if="
  2278. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2279. "
  2280. >
  2281. <span>作业预览</span>
  2282. </div>
  2283. <div
  2284. class="worksDetailBox"
  2285. v-if="
  2286. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2287. "
  2288. >
  2289. <div
  2290. class="works"
  2291. style="
  2292. width: 200px;
  2293. height: 140px;
  2294. margin: 10px 10px 10px 0;
  2295. border-radius: 15px;
  2296. box-shadow: 0 0 6px 1px #dfdada;
  2297. "
  2298. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2299. :key="wIndex"
  2300. :class="w.type == 1 ? 'isTypeOne' : ''"
  2301. >
  2302. <div class="workImg" v-if="w.type == 0">
  2303. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2304. <img :src="w.works" @click="previewImg(w.works)" alt />
  2305. <div
  2306. class="answerScore"
  2307. v-if="w.score"
  2308. @click.stop="openScore(w)"
  2309. :class="{
  2310. rightW:
  2311. w.userid == userid ||
  2312. tType == 1 ||
  2313. tType == 4 ||
  2314. w.ateacher == userid,
  2315. }"
  2316. >
  2317. {{ JSON.parse(w.score).wScore }}分
  2318. </div>
  2319. <div
  2320. class="answerScore"
  2321. @click.stop="openScore(w)"
  2322. v-else-if="courseDetail.userid == userid"
  2323. :class="{
  2324. rightW:
  2325. w.userid == userid ||
  2326. tType == 1 ||
  2327. tType == 4 ||
  2328. w.ateacher == userid,
  2329. }"
  2330. >
  2331. 评分
  2332. </div>
  2333. <img
  2334. class="deleteImg"
  2335. src="../../assets/deleteworks.png"
  2336. v-if="w.userid == userid || tType == 1 || tType == 4"
  2337. @click.stop="deleteWorks(w.wid)"
  2338. alt
  2339. />
  2340. </div>
  2341. <div
  2342. class="workImg"
  2343. style="cursor: pointer"
  2344. v-if="w.type == 1"
  2345. >
  2346. <img :src="word" @click="openFile(w.works)" alt />
  2347. <!-- @click="openFile(w.works)" -->
  2348. <div
  2349. class="answerScore"
  2350. v-if="w.score"
  2351. @click.stop="openScore(w)"
  2352. :class="{
  2353. rightW:
  2354. w.userid == userid ||
  2355. tType == 1 ||
  2356. tType == 4 ||
  2357. w.ateacher == userid,
  2358. }"
  2359. >
  2360. {{ JSON.parse(w.score).wScore }}分
  2361. </div>
  2362. <div
  2363. class="answerScore"
  2364. @click.stop="openScore(w)"
  2365. v-else-if="courseDetail.userid == userid"
  2366. :class="{
  2367. rightW:
  2368. w.userid == userid ||
  2369. tType == 1 ||
  2370. tType == 4 ||
  2371. w.ateacher == userid,
  2372. }"
  2373. >
  2374. 评分
  2375. </div>
  2376. <img
  2377. class="deleteImg"
  2378. src="../../assets/deleteworks.png"
  2379. v-if="w.userid == userid || tType == 1 || tType == 4"
  2380. @click.stop="deleteWorks(w.wid)"
  2381. alt
  2382. />
  2383. </div>
  2384. <div class="workImg" v-if="w.type == 3">
  2385. <img
  2386. style="cursor: pointer"
  2387. :src="video"
  2388. @click="openVideo(w)"
  2389. alt
  2390. />
  2391. <!-- @click="openVideo(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="comment" style="min-width: 200px">
  2429. <div class="worksName">
  2430. <div
  2431. style="cursor: pointer"
  2432. @click="
  2433. openSname(w.sName, w.wid, toolIndex, w.userid)
  2434. "
  2435. >
  2436. {{ w.sName }}
  2437. </div>
  2438. </div>
  2439. <div class="commentList">
  2440. <div class="commentList">
  2441. <div
  2442. class="commentImg"
  2443. @click="
  2444. isLikes(w.wid, userid, 1, null, w.isLikes)
  2445. "
  2446. >
  2447. <img
  2448. :src="w.isLikes == true ? likes : noLikes"
  2449. alt=""
  2450. />
  2451. </div>
  2452. <div>{{ w.likesCount }}</div>
  2453. </div>
  2454. <div class="commentList" style="margin-right: 15px">
  2455. <div
  2456. class="commentImg"
  2457. @click="commentOther(w, toolIndex, wIndex)"
  2458. >
  2459. <img
  2460. src="../../assets/icon/comment/comment.png"
  2461. alt=""
  2462. />
  2463. </div>
  2464. <div>{{ w.commentCount }}</div>
  2465. </div>
  2466. </div>
  2467. </div>
  2468. </div>
  2469. </div>
  2470. </div>
  2471. <div
  2472. v-if="
  2473. tType &&
  2474. ((tType == 2 && sIsOpen == true) ||
  2475. tType == 1 ||
  2476. tType == 4) &&
  2477. tool.tool.indexOf(4) != -1
  2478. "
  2479. class="worksBox"
  2480. >
  2481. <div
  2482. class="zuoyeYulan"
  2483. v-if="
  2484. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2485. "
  2486. >
  2487. <div class="worksTop">
  2488. <div>作业预览</div>
  2489. </div>
  2490. </div>
  2491. <div>
  2492. <div
  2493. class="worksDetailBox"
  2494. v-if="
  2495. worksTeacher.length &&
  2496. worksTeacher[toolIndex].length > 0
  2497. "
  2498. >
  2499. <div
  2500. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2501. :key="wIndex"
  2502. class="isWorksName"
  2503. @click="
  2504. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2505. "
  2506. >
  2507. {{ w.sName }}
  2508. <img
  2509. class="deleteImg deleteImg2"
  2510. src="../../assets/deleteworks.png"
  2511. v-if="w.userid == userid || tType == 1 || tType == 4"
  2512. @click.stop="deleteWorks(w.wid)"
  2513. alt
  2514. />
  2515. </div>
  2516. </div>
  2517. </div>
  2518. </div>
  2519. <div
  2520. v-if="
  2521. tType &&
  2522. ((tType == 2 && sIsOpen == true) ||
  2523. tType == 1 ||
  2524. tType == 4) &&
  2525. tool.tool.indexOf(45) != -1
  2526. "
  2527. class="worksBox"
  2528. >
  2529. <div
  2530. class="zuoyeYulan"
  2531. v-if="
  2532. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2533. "
  2534. >
  2535. <div class="worksTop">
  2536. <div>作业预览</div>
  2537. </div>
  2538. </div>
  2539. <div>
  2540. <div
  2541. class="worksDetailBox"
  2542. v-if="
  2543. worksTeacher.length &&
  2544. worksTeacher[toolIndex].length > 0
  2545. "
  2546. >
  2547. <div
  2548. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2549. :key="wIndex"
  2550. class="isWorksName"
  2551. @click="
  2552. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2553. "
  2554. >
  2555. {{ w.sName }}
  2556. <img
  2557. class="deleteImg deleteImg2"
  2558. src="../../assets/deleteworks.png"
  2559. v-if="w.userid == userid || tType == 1 || tType == 4"
  2560. @click.stop="deleteWorks(w.wid)"
  2561. alt
  2562. />
  2563. </div>
  2564. </div>
  2565. </div>
  2566. </div>
  2567. <div
  2568. v-if="
  2569. tType &&
  2570. ((tType == 2 && sIsOpen == true) ||
  2571. tType == 1 ||
  2572. tType == 4) &&
  2573. tool.tool.indexOf(15) != -1
  2574. "
  2575. class="worksBox"
  2576. >
  2577. <div
  2578. class="zuoyeYulan"
  2579. v-if="
  2580. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2581. "
  2582. >
  2583. <div class="worksTop">
  2584. <div>作业预览</div>
  2585. </div>
  2586. </div>
  2587. <div
  2588. class="worksDetailBox"
  2589. v-if="
  2590. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2591. "
  2592. >
  2593. <div
  2594. class="works"
  2595. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2596. :key="wIndex"
  2597. >
  2598. <div
  2599. class="workImg"
  2600. style="
  2601. border-radius: 15px;
  2602. box-shadow: #eee 0px 0px 5px 5px;
  2603. "
  2604. >
  2605. <!-- <img
  2606. src="../../assets/icon/works/noImg.png"
  2607. @click="openTools(15, toolIndex, taskCount, w.works)"
  2608. alt=""
  2609. />-->
  2610. <div
  2611. class="answerBg"
  2612. style="border-radius: 15px 15px 0 0"
  2613. @click="commentOther(w, toolIndex, wIndex)"
  2614. >
  2615. <!-- <div>{{ w.sName }}</div> -->
  2616. <div class="answerContent">
  2617. {{ JSON.parse(w.works)[0].answer }}
  2618. </div>
  2619. <div
  2620. class="answerScore"
  2621. v-if="w.score"
  2622. @click.stop="openScore(w)"
  2623. :class="{
  2624. rightW:
  2625. w.userid == userid || tType == 1 || tType == 4,
  2626. }"
  2627. >
  2628. {{ JSON.parse(w.score).wScore }}分
  2629. </div>
  2630. <div
  2631. class="answerScore"
  2632. @click.stop="openScore(w)"
  2633. v-else-if="courseDetail.userid == userid"
  2634. :class="{
  2635. rightW:
  2636. w.userid == userid || tType == 1 || tType == 4,
  2637. }"
  2638. >
  2639. 评分
  2640. </div>
  2641. <img
  2642. class="deleteImg"
  2643. src="../../assets/deleteworks.png"
  2644. v-if="
  2645. w.userid == userid || tType == 1 || tType == 4
  2646. "
  2647. @click.stop="deleteWorks(w.wid)"
  2648. alt
  2649. />
  2650. </div>
  2651. <div class="comment">
  2652. <div class="worksName">
  2653. <div>{{ w.sName }}</div>
  2654. </div>
  2655. <div class="commentList">
  2656. <div
  2657. class="commentImg"
  2658. @click="
  2659. isLikes(w.wid, userid, 1, null, w.isLikes)
  2660. "
  2661. >
  2662. <img
  2663. :src="w.isLikes == true ? likes : noLikes"
  2664. alt=""
  2665. />
  2666. </div>
  2667. <div>{{ w.likesCount }}</div>
  2668. </div>
  2669. <div class="commentList" style="margin-right: 15px">
  2670. <div
  2671. class="commentImg"
  2672. @click="commentOther(w, toolIndex, wIndex)"
  2673. >
  2674. <img
  2675. src="../../assets/icon/comment/comment.png"
  2676. alt=""
  2677. />
  2678. </div>
  2679. <div>{{ w.commentCount }}</div>
  2680. </div>
  2681. </div>
  2682. </div>
  2683. </div>
  2684. </div>
  2685. </div>
  2686. <div
  2687. v-if="
  2688. tType &&
  2689. ((tType == 2 && sIsOpen == true) ||
  2690. tType == 1 ||
  2691. tType == 4) &&
  2692. tool.tool.indexOf(1) != -1
  2693. "
  2694. class="worksBox"
  2695. >
  2696. <div
  2697. class="zuoyeYulan"
  2698. v-if="
  2699. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2700. "
  2701. >
  2702. <div class="worksTop">
  2703. <div>作业预览</div>
  2704. </div>
  2705. </div>
  2706. <div
  2707. class="worksDetailBox"
  2708. v-if="
  2709. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2710. "
  2711. >
  2712. <div
  2713. class="works"
  2714. style="
  2715. width: 200px;
  2716. height: 140px;
  2717. margin: 10px 10px 10px 0;
  2718. border-radius: 15px;
  2719. box-shadow: 0 0 6px 1px #dfdada;
  2720. "
  2721. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2722. :key="wIndex"
  2723. >
  2724. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2725. <div class="workImg">
  2726. <img :src="w.works" @click="previewImg(w.works)" alt />
  2727. <div
  2728. class="answerScore"
  2729. v-if="w.score"
  2730. @click.stop="openScore(w)"
  2731. :class="{
  2732. rightW:
  2733. w.userid == userid || tType == 1 || tType == 4,
  2734. }"
  2735. >
  2736. {{ JSON.parse(w.score).wScore }}分
  2737. </div>
  2738. <div
  2739. class="answerScore"
  2740. @click.stop="openScore(w)"
  2741. v-else-if="courseDetail.userid == userid"
  2742. :class="{
  2743. rightW:
  2744. w.userid == userid || tType == 1 || tType == 4,
  2745. }"
  2746. >
  2747. 评分
  2748. </div>
  2749. <img
  2750. class="deleteImg"
  2751. src="../../assets/deleteworks.png"
  2752. v-if="w.userid == userid || tType == 1 || tType == 4"
  2753. @click.stop="deleteWorks(w.wid)"
  2754. alt
  2755. />
  2756. </div>
  2757. <div class="comment" style="min-width: 200px">
  2758. <div class="worksName">
  2759. <div>{{ w.sName }}</div>
  2760. </div>
  2761. <div class="commentList">
  2762. <div class="commentList">
  2763. <div
  2764. class="commentImg"
  2765. @click="
  2766. isLikes(w.wid, userid, 1, null, w.isLikes)
  2767. "
  2768. >
  2769. <img
  2770. :src="w.isLikes == true ? likes : noLikes"
  2771. alt=""
  2772. />
  2773. </div>
  2774. <div>{{ w.likesCount }}</div>
  2775. </div>
  2776. <div class="commentList" style="margin-right: 15px">
  2777. <div
  2778. class="commentImg"
  2779. @click="commentOther(w, toolIndex, wIndex)"
  2780. >
  2781. <img
  2782. src="../../assets/icon/comment/comment.png"
  2783. alt=""
  2784. />
  2785. </div>
  2786. <div>{{ w.commentCount }}</div>
  2787. </div>
  2788. </div>
  2789. </div>
  2790. </div>
  2791. </div>
  2792. </div>
  2793. <div
  2794. v-if="
  2795. tType &&
  2796. ((tType == 2 && sIsOpen == true) ||
  2797. tType == 1 ||
  2798. tType == 4) &&
  2799. tool.tool.indexOf(3) != -1
  2800. "
  2801. class="worksBox"
  2802. >
  2803. <div
  2804. class="zuoyeYulan"
  2805. v-if="
  2806. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2807. "
  2808. >
  2809. <div class="worksTop">
  2810. <div>作业预览</div>
  2811. </div>
  2812. </div>
  2813. <div
  2814. class="worksDetailBox"
  2815. v-if="
  2816. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2817. "
  2818. >
  2819. <div
  2820. class="works"
  2821. style="
  2822. width: 200px;
  2823. height: 140px;
  2824. margin: 10px 10px 10px 0;
  2825. border-radius: 15px;
  2826. box-shadow: 0 0 6px 1px #dfdada;
  2827. "
  2828. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2829. :key="wIndex"
  2830. >
  2831. <!-- @click="previewImg(w.works)" -->
  2832. <div class="workImg">
  2833. <img :src="w.works" @click="previewImg(w.works)" alt />
  2834. <div
  2835. class="answerScore"
  2836. v-if="w.score"
  2837. @click.stop="openScore(w)"
  2838. :class="{
  2839. rightW:
  2840. w.userid == userid || tType == 1 || tType == 4,
  2841. }"
  2842. >
  2843. {{ JSON.parse(w.score).wScore }}分
  2844. </div>
  2845. <div
  2846. class="answerScore"
  2847. @click.stop="openScore(w)"
  2848. v-else-if="courseDetail.userid == userid"
  2849. :class="{
  2850. rightW:
  2851. w.userid == userid || tType == 1 || tType == 4,
  2852. }"
  2853. >
  2854. 评分
  2855. </div>
  2856. <img
  2857. class="deleteImg"
  2858. src="../../assets/deleteworks.png"
  2859. v-if="w.userid == userid || tType == 1 || tType == 4"
  2860. @click.stop="deleteWorks(w.wid)"
  2861. alt
  2862. />
  2863. </div>
  2864. <div class="comment" style="min-width: 200px">
  2865. <div class="worksName">
  2866. <div>{{ w.sName }}</div>
  2867. </div>
  2868. <div class="commentList">
  2869. <div class="commentList">
  2870. <div
  2871. class="commentImg"
  2872. @click="
  2873. isLikes(w.wid, userid, 1, null, w.isLikes)
  2874. "
  2875. >
  2876. <img
  2877. :src="w.isLikes == true ? likes : noLikes"
  2878. alt=""
  2879. />
  2880. </div>
  2881. <div>{{ w.likesCount }}</div>
  2882. </div>
  2883. <div class="commentList" style="margin-right: 15px">
  2884. <div
  2885. class="commentImg"
  2886. @click="commentOther(w, toolIndex, wIndex)"
  2887. >
  2888. <img
  2889. src="../../assets/icon/comment/comment.png"
  2890. alt=""
  2891. />
  2892. </div>
  2893. <div>{{ w.commentCount }}</div>
  2894. </div>
  2895. </div>
  2896. </div>
  2897. </div>
  2898. </div>
  2899. </div>
  2900. <div
  2901. v-if="
  2902. tType &&
  2903. ((tType == 2 && sIsOpen == true) ||
  2904. tType == 1 ||
  2905. tType == 4) &&
  2906. tool.tool.indexOf(6) != -1
  2907. "
  2908. class="worksBox"
  2909. >
  2910. <div
  2911. class="zuoyeYulan"
  2912. v-if="
  2913. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2914. "
  2915. >
  2916. <div class="worksTop">
  2917. <div>作业预览</div>
  2918. </div>
  2919. </div>
  2920. <div
  2921. class="worksDetailBox"
  2922. v-if="
  2923. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2924. "
  2925. >
  2926. <div
  2927. class="works"
  2928. style="
  2929. width: 200px;
  2930. height: 140px;
  2931. margin: 10px 10px 10px 0;
  2932. border-radius: 15px;
  2933. box-shadow: 0 0 6px 1px #dfdada;
  2934. "
  2935. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2936. :key="wIndex"
  2937. >
  2938. <!-- @click="previewImg(w.works)" -->
  2939. <div class="workImg">
  2940. <img :src="w.works" @click="previewImg(w.works)" alt />
  2941. <div
  2942. class="answerScore"
  2943. v-if="w.score"
  2944. @click.stop="openScore(w)"
  2945. :class="{
  2946. rightW:
  2947. w.userid == userid || tType == 1 || tType == 4,
  2948. }"
  2949. >
  2950. {{ JSON.parse(w.score).wScore }}分
  2951. </div>
  2952. <div
  2953. class="answerScore"
  2954. @click.stop="openScore(w)"
  2955. v-else-if="courseDetail.userid == userid"
  2956. :class="{
  2957. rightW:
  2958. w.userid == userid || tType == 1 || tType == 4,
  2959. }"
  2960. >
  2961. 评分
  2962. </div>
  2963. <img
  2964. class="deleteImg"
  2965. src="../../assets/deleteworks.png"
  2966. v-if="w.userid == userid || tType == 1 || tType == 4"
  2967. @click.stop="deleteWorks(w.wid)"
  2968. alt
  2969. />
  2970. </div>
  2971. <div class="comment" style="min-width: 200px">
  2972. <div class="worksName">
  2973. <div>{{ w.sName }}</div>
  2974. </div>
  2975. <div class="commentList">
  2976. <div class="commentList">
  2977. <div
  2978. class="commentImg"
  2979. @click="
  2980. isLikes(w.wid, userid, 1, null, w.isLikes)
  2981. "
  2982. >
  2983. <img
  2984. :src="w.isLikes == true ? likes : noLikes"
  2985. alt=""
  2986. />
  2987. </div>
  2988. <div>{{ w.likesCount }}</div>
  2989. </div>
  2990. <div class="commentList" style="margin-right: 15px">
  2991. <div
  2992. class="commentImg"
  2993. @click="commentOther(w, toolIndex, wIndex)"
  2994. >
  2995. <img
  2996. src="../../assets/icon/comment/comment.png"
  2997. alt=""
  2998. />
  2999. </div>
  3000. <div>{{ w.commentCount }}</div>
  3001. </div>
  3002. </div>
  3003. </div>
  3004. </div>
  3005. </div>
  3006. </div>
  3007. <div
  3008. v-if="
  3009. tType &&
  3010. ((tType == 2 && sIsOpen == true) ||
  3011. tType == 1 ||
  3012. tType == 4) &&
  3013. tool.tool.indexOf(7) != -1
  3014. "
  3015. class="worksBox"
  3016. >
  3017. <div
  3018. class="zuoyeYulan"
  3019. v-if="
  3020. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3021. "
  3022. >
  3023. <div class="worksTop">
  3024. <div>作业预览</div>
  3025. </div>
  3026. </div>
  3027. <div
  3028. class="worksDetailBox"
  3029. v-if="
  3030. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3031. "
  3032. >
  3033. <div
  3034. class="works"
  3035. style="
  3036. width: 200px;
  3037. height: 140px;
  3038. margin: 10px 10px 10px 0;
  3039. border-radius: 15px;
  3040. box-shadow: 0 0 6px 1px #dfdada;
  3041. "
  3042. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3043. :key="wIndex"
  3044. >
  3045. <!-- @click="previewImg(w.works)" -->
  3046. <div class="workImg">
  3047. <img :src="w.works" @click="previewImg(w.works)" alt />
  3048. <div
  3049. class="answerScore"
  3050. v-if="w.score"
  3051. @click.stop="openScore(w)"
  3052. :class="{
  3053. rightW:
  3054. w.userid == userid || tType == 1 || tType == 4,
  3055. }"
  3056. >
  3057. {{ JSON.parse(w.score).wScore }}分
  3058. </div>
  3059. <div
  3060. class="answerScore"
  3061. @click.stop="openScore(w)"
  3062. v-else-if="courseDetail.userid == userid"
  3063. :class="{
  3064. rightW:
  3065. w.userid == userid || tType == 1 || tType == 4,
  3066. }"
  3067. >
  3068. 评分
  3069. </div>
  3070. <img
  3071. class="deleteImg"
  3072. src="../../assets/deleteworks.png"
  3073. v-if="w.userid == userid || tType == 1 || tType == 4"
  3074. @click.stop="deleteWorks(w.wid)"
  3075. alt
  3076. />
  3077. </div>
  3078. <div class="comment" style="min-width: 200px">
  3079. <div class="worksName">
  3080. <div>{{ w.sName }}</div>
  3081. </div>
  3082. <div class="commentList">
  3083. <div class="commentList">
  3084. <div
  3085. class="commentImg"
  3086. @click="
  3087. isLikes(w.wid, userid, 1, null, w.isLikes)
  3088. "
  3089. >
  3090. <img
  3091. :src="w.isLikes == true ? likes : noLikes"
  3092. alt=""
  3093. />
  3094. </div>
  3095. <div>{{ w.likesCount }}</div>
  3096. </div>
  3097. <div class="commentList" style="margin-right: 15px">
  3098. <div
  3099. class="commentImg"
  3100. @click="commentOther(w, toolIndex, wIndex)"
  3101. >
  3102. <img
  3103. src="../../assets/icon/comment/comment.png"
  3104. alt=""
  3105. />
  3106. </div>
  3107. <div>{{ w.commentCount }}</div>
  3108. </div>
  3109. </div>
  3110. </div>
  3111. </div>
  3112. </div>
  3113. </div>
  3114. <div
  3115. v-if="
  3116. tType &&
  3117. ((tType == 2 && sIsOpen == true) ||
  3118. tType == 1 ||
  3119. tType == 4) &&
  3120. tool.tool.indexOf(26) != -1
  3121. "
  3122. class="worksBox"
  3123. >
  3124. <div
  3125. class="zuoyeYulan"
  3126. v-if="
  3127. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3128. "
  3129. >
  3130. <div class="worksTop">
  3131. <div>作业预览</div>
  3132. </div>
  3133. </div>
  3134. <div
  3135. class="worksDetailBox"
  3136. v-if="
  3137. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3138. "
  3139. >
  3140. <div
  3141. class="works"
  3142. style="width: 240px; height: 140px; overflow: hidden"
  3143. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3144. :key="wIndex"
  3145. :class="w.type == 1 ? 'isTypeOne' : ''"
  3146. >
  3147. <div class="workImg" v-if="w.type == 0">
  3148. <img :src="w.works" @click="previewImg(w.works)" alt />
  3149. <img
  3150. class="deleteImg"
  3151. src="../../assets/deleteworks.png"
  3152. v-if="w.userid == userid || tType == 1 || tType == 4"
  3153. @click.stop="deleteWorks(w.wid)"
  3154. alt
  3155. />
  3156. </div>
  3157. <div class="workImg" v-if="w.type == 1">
  3158. <img :src="word" @click="openFile(w.works)" alt />
  3159. <img
  3160. class="deleteImg"
  3161. src="../../assets/deleteworks.png"
  3162. v-if="w.userid == userid || tType == 1 || tType == 4"
  3163. @click.stop="deleteWorks(w.wid)"
  3164. alt
  3165. />
  3166. </div>
  3167. <div class="worksName">
  3168. <div>{{ w.sName }}</div>
  3169. </div>
  3170. </div>
  3171. </div>
  3172. </div>
  3173. <div
  3174. v-if="
  3175. tType &&
  3176. ((tType == 2 && sIsOpen == true) ||
  3177. tType == 1 ||
  3178. tType == 4) &&
  3179. tool.tool.indexOf(40) != -1
  3180. "
  3181. class="worksBox"
  3182. >
  3183. <div
  3184. class="zuoyeYulan"
  3185. v-if="
  3186. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3187. "
  3188. >
  3189. <div class="worksTop">
  3190. <div>作业预览</div>
  3191. </div>
  3192. </div>
  3193. <div
  3194. class="worksDetailBox"
  3195. v-if="
  3196. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3197. "
  3198. >
  3199. <div
  3200. class="works"
  3201. style="
  3202. width: 200px;
  3203. height: 140px;
  3204. margin: 10px 10px 10px 0;
  3205. border-radius: 15px;
  3206. box-shadow: 0 0 6px 1px #dfdada;
  3207. "
  3208. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3209. :key="wIndex"
  3210. :class="w.type == 1 ? 'isTypeOne' : ''"
  3211. >
  3212. <div class="workImg">
  3213. <img
  3214. src="../../assets/icon/works/noImg.png"
  3215. @click="openPj(w.works, toolIndex)"
  3216. alt
  3217. />
  3218. <img
  3219. class="deleteImg"
  3220. src="../../assets/deleteworks.png"
  3221. v-if="w.userid == userid || tType == 1 || tType == 4"
  3222. @click.stop="deleteWorks(w.wid)"
  3223. alt
  3224. />
  3225. </div>
  3226. <div class="comment" style="min-width: 200px">
  3227. <div class="worksName">
  3228. <div>{{ w.sName }}</div>
  3229. </div>
  3230. <div class="commentList">
  3231. <div class="commentList">
  3232. <div
  3233. class="commentImg"
  3234. @click="
  3235. isLikes(w.wid, userid, 1, null, w.isLikes)
  3236. "
  3237. >
  3238. <img
  3239. :src="w.isLikes == true ? likes : noLikes"
  3240. alt=""
  3241. />
  3242. </div>
  3243. <div>{{ w.likesCount }}</div>
  3244. </div>
  3245. <div class="commentList" style="margin-right: 15px">
  3246. <div
  3247. class="commentImg"
  3248. @click="commentOther(w, toolIndex, wIndex)"
  3249. >
  3250. <img
  3251. src="../../assets/icon/comment/comment.png"
  3252. alt=""
  3253. />
  3254. </div>
  3255. <div>{{ w.commentCount }}</div>
  3256. </div>
  3257. </div>
  3258. </div>
  3259. </div>
  3260. </div>
  3261. </div>
  3262. <div
  3263. v-if="
  3264. tType &&
  3265. ((tType == 2 && sIsOpen == true) ||
  3266. tType == 1 ||
  3267. tType == 4) &&
  3268. tool.tool.indexOf(41) != -1
  3269. "
  3270. class="worksBox"
  3271. >
  3272. <div
  3273. class="zuoyeYulan"
  3274. v-if="
  3275. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3276. "
  3277. >
  3278. <div class="worksTop">
  3279. <div>作业预览</div>
  3280. </div>
  3281. </div>
  3282. <div
  3283. class="worksDetailBox"
  3284. v-if="
  3285. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3286. "
  3287. >
  3288. <div
  3289. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3290. :key="wIndex"
  3291. class="isWorksName"
  3292. @click="openXz(w, toolIndex)"
  3293. >
  3294. {{ w.sName }}
  3295. <img
  3296. class="deleteImg deleteImg2"
  3297. src="../../assets/deleteworks.png"
  3298. v-if="w.userid == userid || tType == 1 || tType == 4"
  3299. @click.stop="deleteWorks(w.wid)"
  3300. alt
  3301. />
  3302. </div>
  3303. </div>
  3304. </div>
  3305. <div
  3306. v-if="
  3307. tType &&
  3308. ((tType == 2 && sIsOpen == true) ||
  3309. tType == 1 ||
  3310. tType == 4) &&
  3311. tool.tool.indexOf(47) != -1
  3312. "
  3313. class="worksBox"
  3314. >
  3315. <div
  3316. class="zuoyeYulan"
  3317. v-if="
  3318. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3319. "
  3320. >
  3321. <div class="worksTop">
  3322. <div>作业预览</div>
  3323. </div>
  3324. </div>
  3325. <div
  3326. class="worksDetailBox"
  3327. v-if="
  3328. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3329. "
  3330. >
  3331. <!-- @click="openXz(w, toolIndex)" -->
  3332. <div
  3333. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3334. :key="wIndex"
  3335. class="isWorksName"
  3336. @click="openSen(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(48) != -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. <div
  3376. class="works"
  3377. style="
  3378. width: 200px;
  3379. height: 140px;
  3380. margin: 10px 10px 10px 0;
  3381. border-radius: 15px;
  3382. box-shadow: 0 0 6px 1px #dfdada;
  3383. "
  3384. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3385. :key="wIndex"
  3386. :class="w.type == 1 ? 'isTypeOne' : ''"
  3387. >
  3388. <div class="workImg">
  3389. <img :src="word" @click="openTable(w)" alt />
  3390. <!-- @click="openFile(w.works)" -->
  3391. <div
  3392. class="answerScore"
  3393. v-if="w.score"
  3394. @click.stop="openScore(w)"
  3395. :class="{
  3396. rightW:
  3397. w.userid == userid ||
  3398. tType == 1 ||
  3399. tType == 4 ||
  3400. w.ateacher == userid,
  3401. }"
  3402. >
  3403. {{ JSON.parse(w.score).wScore }}分
  3404. </div>
  3405. <div
  3406. class="answerScore"
  3407. @click.stop="openScore(w)"
  3408. v-else-if="courseDetail.userid == userid"
  3409. :class="{
  3410. rightW:
  3411. w.userid == userid ||
  3412. tType == 1 ||
  3413. tType == 4 ||
  3414. w.ateacher == userid,
  3415. }"
  3416. >
  3417. 评分
  3418. </div>
  3419. <img
  3420. class="deleteImg"
  3421. src="../../assets/deleteworks.png"
  3422. v-if="w.userid == userid || tType == 1 || tType == 4"
  3423. @click.stop="deleteWorks(w.wid)"
  3424. alt
  3425. />
  3426. </div>
  3427. <div class="comment" style="min-width: 200px">
  3428. <div class="worksName">
  3429. <div>{{ w.sName }}</div>
  3430. </div>
  3431. <div class="commentList">
  3432. <div class="commentList">
  3433. <div
  3434. class="commentImg"
  3435. @click="
  3436. isLikes(w.wid, userid, 1, null, w.isLikes)
  3437. "
  3438. >
  3439. <img
  3440. :src="w.isLikes == true ? likes : noLikes"
  3441. alt=""
  3442. />
  3443. </div>
  3444. <div>{{ w.likesCount }}</div>
  3445. </div>
  3446. <div class="commentList" style="margin-right: 15px">
  3447. <div
  3448. class="commentImg"
  3449. @click="commentOther(w, toolIndex, wIndex)"
  3450. >
  3451. <img
  3452. src="../../assets/icon/comment/comment.png"
  3453. alt=""
  3454. />
  3455. </div>
  3456. <div>{{ w.commentCount }}</div>
  3457. </div>
  3458. </div>
  3459. </div>
  3460. </div>
  3461. </div>
  3462. </div>
  3463. <div
  3464. v-if="
  3465. tType &&
  3466. ((tType == 2 && sIsOpen == true) ||
  3467. tType == 1 ||
  3468. tType == 4) &&
  3469. tool.tool.indexOf(52) != -1
  3470. "
  3471. class="worksBox"
  3472. >
  3473. <div
  3474. class="zuoyeYulan"
  3475. v-if="
  3476. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3477. "
  3478. >
  3479. <div class="worksTop">
  3480. <div>作业预览</div>
  3481. </div>
  3482. </div>
  3483. <div
  3484. class="worksDetailBox"
  3485. v-if="
  3486. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3487. "
  3488. >
  3489. <div
  3490. class="works"
  3491. style="
  3492. width: 200px;
  3493. height: 140px;
  3494. margin: 10px 10px 10px 0;
  3495. border-radius: 15px;
  3496. box-shadow: 0 0 6px 1px #dfdada;
  3497. "
  3498. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3499. :key="wIndex"
  3500. :class="w.type == 1 ? 'isTypeOne' : ''"
  3501. >
  3502. <div class="workImg">
  3503. <img :src="word" @click="openWord(w)" alt />
  3504. <!-- @click="openFile(w.works)" -->
  3505. <div
  3506. class="answerScore"
  3507. v-if="w.score"
  3508. @click.stop="openScore(w)"
  3509. :class="{
  3510. rightW:
  3511. w.userid == userid ||
  3512. tType == 1 ||
  3513. tType == 4 ||
  3514. w.ateacher == userid,
  3515. }"
  3516. >
  3517. {{ JSON.parse(w.score).wScore }}分
  3518. </div>
  3519. <div
  3520. class="answerScore"
  3521. @click.stop="openScore(w)"
  3522. v-else-if="courseDetail.userid == userid"
  3523. :class="{
  3524. rightW:
  3525. w.userid == userid ||
  3526. tType == 1 ||
  3527. tType == 4 ||
  3528. w.ateacher == userid,
  3529. }"
  3530. >
  3531. 评分
  3532. </div>
  3533. <img
  3534. class="deleteImg"
  3535. src="../../assets/deleteworks.png"
  3536. v-if="w.userid == userid || tType == 1 || tType == 4"
  3537. @click.stop="deleteWorks(w.wid)"
  3538. alt
  3539. />
  3540. </div>
  3541. <div class="comment" style="min-width: 200px">
  3542. <div class="worksName">
  3543. <div>{{ w.sName }}</div>
  3544. </div>
  3545. <div class="commentList">
  3546. <div class="commentList">
  3547. <div
  3548. class="commentImg"
  3549. @click="
  3550. isLikes(w.wid, userid, 1, null, w.isLikes)
  3551. "
  3552. >
  3553. <img
  3554. :src="w.isLikes == true ? likes : noLikes"
  3555. alt=""
  3556. />
  3557. </div>
  3558. <div>{{ w.likesCount }}</div>
  3559. </div>
  3560. <div class="commentList" style="margin-right: 15px">
  3561. <div
  3562. class="commentImg"
  3563. @click="commentOther(w, toolIndex, wIndex)"
  3564. >
  3565. <img
  3566. src="../../assets/icon/comment/comment.png"
  3567. alt=""
  3568. />
  3569. </div>
  3570. <div>{{ w.commentCount }}</div>
  3571. </div>
  3572. </div>
  3573. </div>
  3574. </div>
  3575. </div>
  3576. </div>
  3577. </div>
  3578. </div>
  3579. <div class="vedioBox">
  3580. <div
  3581. v-if="
  3582. tType &&
  3583. ((tType == 2 && sIsOpen == true) ||
  3584. tType == 1 ||
  3585. tType == 4) &&
  3586. tool.tool.indexOf(4) != -1 &&
  3587. worksStudent.length &&
  3588. worksStudent[toolIndex].length &&
  3589. (tool.askJson[0].answer || tool.askJson[0].answer === 0) &&
  3590. checkJson[toolIndex].length
  3591. "
  3592. class="xuan_right_box"
  3593. >
  3594. <div
  3595. class="tool_right_box"
  3596. v-for="(item, index) in tool.askJson"
  3597. :key="index"
  3598. >
  3599. <div>
  3600. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  3601. </div>
  3602. <div class="right_box_xuan">
  3603. <span>正确率</span>
  3604. <span>{{
  3605. (checkJson[toolIndex][index].right
  3606. ? checkJson[toolIndex][index].right
  3607. : 0) + "%"
  3608. }}</span>
  3609. </div>
  3610. </div>
  3611. </div>
  3612. <div
  3613. class="xuan_right_box"
  3614. style="background: unset"
  3615. v-if="
  3616. tType &&
  3617. ((tType == 2 && sIsOpen == true) ||
  3618. tType == 1 ||
  3619. tType == 4) &&
  3620. tool.tool.indexOf(4) != -1 &&
  3621. worksStudent.length &&
  3622. worksStudent[toolIndex].length
  3623. "
  3624. >
  3625. <AskStatic
  3626. v-if="
  3627. worksStudent.length && worksStudent[toolIndex].length > 0
  3628. "
  3629. :askJSON="tool"
  3630. :checkJson="checkJson[toolIndex]"
  3631. ></AskStatic>
  3632. </div>
  3633. <div
  3634. v-if="
  3635. tType &&
  3636. ((tType == 2 && sIsOpen == true) ||
  3637. tType == 1 ||
  3638. tType == 4) &&
  3639. tool.tool.indexOf(45) != -1 &&
  3640. worksStudent.length &&
  3641. worksStudent[toolIndex].length &&
  3642. (tool.testJson.testJson[0].answer ||
  3643. tool.testJson.testJson[0].answer === 0) &&
  3644. checkJson[toolIndex].length
  3645. "
  3646. class="xuan_right_box"
  3647. >
  3648. <div
  3649. class="tool_right_box"
  3650. v-for="(item, index) in tool.testJson.testJson"
  3651. :key="index"
  3652. >
  3653. <div>
  3654. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  3655. </div>
  3656. <div class="right_box_xuan">
  3657. <span>正确率</span>
  3658. <span>{{
  3659. (checkJson[toolIndex][index].right
  3660. ? checkJson[toolIndex][index].right
  3661. : 0) + "%"
  3662. }}</span>
  3663. </div>
  3664. </div>
  3665. </div>
  3666. <div
  3667. class="xuan_right_box"
  3668. style="background: unset"
  3669. v-if="
  3670. tType &&
  3671. ((tType == 2 && sIsOpen == true) ||
  3672. tType == 1 ||
  3673. tType == 4) &&
  3674. tool.tool.indexOf(45) != -1 &&
  3675. worksStudent.length &&
  3676. worksStudent[toolIndex].length
  3677. "
  3678. >
  3679. <AskStatic2
  3680. v-if="
  3681. worksStudent.length && worksStudent[toolIndex].length > 0
  3682. "
  3683. :askJSON="tool"
  3684. :checkJson="checkJson[toolIndex]"
  3685. ></AskStatic2>
  3686. </div>
  3687. <div
  3688. v-if="
  3689. tType &&
  3690. ((tType == 2 && sIsOpen == true) ||
  3691. tType == 1 ||
  3692. tType == 4) &&
  3693. tool.tool.indexOf(41) != -1
  3694. "
  3695. >
  3696. <AnswerData2
  3697. v-if="
  3698. worksStudent.length && worksStudent[toolIndex].length > 0
  3699. "
  3700. :problemJson="tool.selectJson.answer"
  3701. :people="worksStudent[toolIndex]"
  3702. ></AnswerData2>
  3703. </div>
  3704. <div
  3705. v-if="
  3706. tType &&
  3707. ((tType == 2 && sIsOpen == true) ||
  3708. tType == 1 ||
  3709. tType == 4) &&
  3710. tool.tool.indexOf(47) != -1
  3711. "
  3712. >
  3713. <AnswerData
  3714. v-if="
  3715. checkJson[toolIndex].length &&
  3716. (tool.sentenceList || tool.sentenceList.length > 0)
  3717. "
  3718. :people="checkJson[toolIndex]"
  3719. ></AnswerData>
  3720. </div>
  3721. </div>
  3722. <div
  3723. class="vedioBox"
  3724. v-if="
  3725. noWorksS[toolIndex].length &&
  3726. arrayToArray(tool.tool, isWorkTool).length &&
  3727. false
  3728. "
  3729. >
  3730. <div
  3731. class="queTop"
  3732. style="
  3733. font-size: 20px;
  3734. padding: 15px 0 15px 30px;
  3735. font-weight: bold;
  3736. "
  3737. >
  3738. 学生工作区
  3739. </div>
  3740. <div class="tool_work_box">
  3741. <div
  3742. v-if="
  3743. tType &&
  3744. ((tType == 2 && sIsOpen == true) ||
  3745. tType == 1 ||
  3746. tType == 4) &&
  3747. tool.tool.indexOf(16) != -1
  3748. "
  3749. class="worksBox"
  3750. >
  3751. <div
  3752. class="zuoyeYulan"
  3753. v-if="
  3754. worksStudent2.length &&
  3755. worksStudent2[toolIndex].length > 0
  3756. "
  3757. >
  3758. <div class="worksTop">
  3759. <div>作业预览</div>
  3760. <div
  3761. class="corOpen"
  3762. @click="contract(toolIndex)"
  3763. v-if="
  3764. worksStudent2[toolIndex].length > 6 &&
  3765. isCloseList[toolIndex].isClose == 0
  3766. "
  3767. >
  3768. 收缩
  3769. </div>
  3770. <div
  3771. class="corOpen"
  3772. @click="contract(toolIndex)"
  3773. v-if="isCloseList[toolIndex].isClose == 1"
  3774. >
  3775. 展开
  3776. </div>
  3777. </div>
  3778. </div>
  3779. <div
  3780. class="worksDetailBox"
  3781. v-if="
  3782. worksStudent2.length &&
  3783. worksStudent2[toolIndex].length > 0
  3784. "
  3785. >
  3786. <div
  3787. class="works"
  3788. style="
  3789. width: 200px;
  3790. height: 140px;
  3791. margin: 10px 10px 10px 0;
  3792. border-radius: 15px;
  3793. box-shadow: 0 0 6px 1px #dfdada;
  3794. "
  3795. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3796. ? worksStudent2[toolIndex]
  3797. : worksStudent2[toolIndex].slice(0, 6)"
  3798. :key="wIndex"
  3799. :class="w.type == 1 ? 'isTypeOne' : ''"
  3800. >
  3801. <div class="workImg" v-if="w.type == 0">
  3802. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3803. <img :src="w.works" @click="previewImg(w.works)" alt />
  3804. <div
  3805. class="answerScore"
  3806. v-if="w.score"
  3807. @click.stop="openScore(w)"
  3808. :class="{
  3809. rightW:
  3810. w.userid == userid ||
  3811. tType == 1 ||
  3812. tType == 4 ||
  3813. w.ateacher == userid,
  3814. }"
  3815. >
  3816. {{ JSON.parse(w.score).wScore }}分
  3817. </div>
  3818. <div
  3819. class="answerScore"
  3820. @click.stop="openScore(w)"
  3821. v-else-if="courseDetail.userid == userid"
  3822. :class="{
  3823. rightW:
  3824. w.userid == userid ||
  3825. tType == 1 ||
  3826. tType == 4 ||
  3827. w.ateacher == userid,
  3828. }"
  3829. >
  3830. 评分
  3831. </div>
  3832. <img
  3833. class="deleteImg"
  3834. src="../../assets/deleteworks.png"
  3835. v-if="w.userid == userid || tType == 1 || tType == 4"
  3836. @click.stop="deleteWorks(w.wid)"
  3837. alt
  3838. />
  3839. </div>
  3840. <div class="workImg" v-if="w.type == 1">
  3841. <img :src="word" @click="openFile(w.works)" alt />
  3842. <!-- @click="openFile(w.works)" -->
  3843. <div
  3844. class="answerScore"
  3845. v-if="w.score"
  3846. @click.stop="openScore(w)"
  3847. :class="{
  3848. rightW:
  3849. w.userid == userid ||
  3850. tType == 1 ||
  3851. tType == 4 ||
  3852. w.ateacher == userid,
  3853. }"
  3854. >
  3855. {{ JSON.parse(w.score).wScore }}分
  3856. </div>
  3857. <div
  3858. class="answerScore"
  3859. @click.stop="openScore(w)"
  3860. v-else-if="courseDetail.userid == userid"
  3861. :class="{
  3862. rightW:
  3863. w.userid == userid ||
  3864. tType == 1 ||
  3865. tType == 4 ||
  3866. w.ateacher == userid,
  3867. }"
  3868. >
  3869. 评分
  3870. </div>
  3871. <img
  3872. class="deleteImg"
  3873. src="../../assets/deleteworks.png"
  3874. v-if="w.userid == userid || tType == 1 || tType == 4"
  3875. @click.stop="deleteWorks(w.wid)"
  3876. alt
  3877. />
  3878. </div>
  3879. <div class="workImg" v-if="w.type == 3">
  3880. <img
  3881. style="cursor: pointer"
  3882. :src="video"
  3883. @click="openVideo(w)"
  3884. alt
  3885. />
  3886. <!-- @click="openVideo(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 == 12">
  3924. <img
  3925. style="cursor: pointer"
  3926. :src="word2"
  3927. @click="downloadFile(w.works)"
  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="comment" style="min-width: 200px">
  3968. <div class="worksName">
  3969. <div>{{ w.sName }}</div>
  3970. </div>
  3971. <div class="commentList">
  3972. <div class="commentList">
  3973. <div
  3974. class="commentImg"
  3975. @click="
  3976. isLikes(w.wid, userid, 1, null, w.isLikes)
  3977. "
  3978. >
  3979. <img
  3980. :src="w.isLikes == true ? likes : noLikes"
  3981. alt=""
  3982. />
  3983. </div>
  3984. <div>{{ w.likesCount }}</div>
  3985. </div>
  3986. <div class="commentList" style="margin-right: 15px">
  3987. <div
  3988. class="commentImg"
  3989. @click="commentOther(w, toolIndex, wIndex)"
  3990. >
  3991. <img
  3992. src="../../assets/icon/comment/comment.png"
  3993. alt=""
  3994. />
  3995. </div>
  3996. <div>{{ w.commentCount }}</div>
  3997. </div>
  3998. </div>
  3999. </div>
  4000. </div>
  4001. </div>
  4002. <div class="noWorksS">
  4003. <div
  4004. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4005. :key="sIndex"
  4006. class="noWorksName"
  4007. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4008. :class="{ isWork: s.type == '2' }"
  4009. >
  4010. {{ s.student }}
  4011. </div>
  4012. </div>
  4013. </div>
  4014. <div
  4015. v-if="
  4016. tType &&
  4017. ((tType == 2 && sIsOpen == true) ||
  4018. tType == 1 ||
  4019. tType == 4) &&
  4020. tool.tool.indexOf(32) != -1
  4021. "
  4022. class="worksBox"
  4023. >
  4024. <div
  4025. class="zuoyeYulan"
  4026. v-if="
  4027. worksStudent2.length &&
  4028. worksStudent2[toolIndex].length > 0
  4029. "
  4030. >
  4031. <div class="worksTop">
  4032. <div>作业预览</div>
  4033. <div
  4034. class="corOpen"
  4035. @click="contract(toolIndex)"
  4036. v-if="
  4037. worksStudent2[toolIndex].length > 6 &&
  4038. isCloseList[toolIndex].isClose == 0
  4039. "
  4040. >
  4041. 收缩
  4042. </div>
  4043. <div
  4044. class="corOpen"
  4045. @click="contract(toolIndex)"
  4046. v-if="isCloseList[toolIndex].isClose == 1"
  4047. >
  4048. 展开
  4049. </div>
  4050. </div>
  4051. </div>
  4052. <div
  4053. class="worksDetailBox"
  4054. v-if="
  4055. worksStudent2.length &&
  4056. worksStudent2[toolIndex].length > 0
  4057. "
  4058. >
  4059. <div
  4060. class="works"
  4061. style="
  4062. width: 200px;
  4063. height: 140px;
  4064. margin: 10px 10px 10px 0;
  4065. border-radius: 15px;
  4066. box-shadow: 0 0 6px 1px #dfdada;
  4067. "
  4068. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4069. ? worksStudent2[toolIndex]
  4070. : worksStudent2[toolIndex].slice(0, 6)"
  4071. :key="wIndex"
  4072. :class="w.type == 1 ? 'isTypeOne' : ''"
  4073. >
  4074. <div class="workImg">
  4075. <img :src="word2" @click="downloadFile(w.works)" alt />
  4076. <div
  4077. class="answerScore"
  4078. v-if="w.score"
  4079. @click.stop="openScore(w)"
  4080. :class="{
  4081. rightW:
  4082. w.userid == userid ||
  4083. tType == 1 ||
  4084. tType == 4 ||
  4085. w.ateacher == userid,
  4086. }"
  4087. >
  4088. {{ JSON.parse(w.score).wScore }}分
  4089. </div>
  4090. <div
  4091. class="answerScore"
  4092. @click.stop="openScore(w)"
  4093. v-else-if="courseDetail.userid == userid"
  4094. :class="{
  4095. rightW:
  4096. w.userid == userid ||
  4097. tType == 1 ||
  4098. tType == 4 ||
  4099. w.ateacher == userid,
  4100. }"
  4101. >
  4102. 评分
  4103. </div>
  4104. <img
  4105. class="deleteImg"
  4106. src="../../assets/deleteworks.png"
  4107. v-if="w.userid == userid || tType == 1 || tType == 4"
  4108. @click.stop="deleteWorks(w.wid)"
  4109. alt
  4110. />
  4111. </div>
  4112. <div class="comment" style="min-width: 200px">
  4113. <div class="worksName">
  4114. <div>{{ w.sName }}</div>
  4115. </div>
  4116. <div class="commentList">
  4117. <div class="commentList">
  4118. <div
  4119. class="commentImg"
  4120. @click="
  4121. isLikes(w.wid, userid, 1, null, w.isLikes)
  4122. "
  4123. >
  4124. <img
  4125. :src="w.isLikes == true ? likes : noLikes"
  4126. alt=""
  4127. />
  4128. </div>
  4129. <div>{{ w.likesCount }}</div>
  4130. </div>
  4131. <div class="commentList" style="margin-right: 15px">
  4132. <div
  4133. class="commentImg"
  4134. @click="commentOther(w, toolIndex, wIndex)"
  4135. >
  4136. <img
  4137. src="../../assets/icon/comment/comment.png"
  4138. alt=""
  4139. />
  4140. </div>
  4141. <div>{{ w.commentCount }}</div>
  4142. </div>
  4143. </div>
  4144. </div>
  4145. </div>
  4146. </div>
  4147. <div class="noWorksS">
  4148. <div
  4149. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4150. :key="sIndex"
  4151. class="noWorksName"
  4152. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4153. :class="{ isWork: s.type == '2' }"
  4154. >
  4155. {{ s.student }}
  4156. </div>
  4157. </div>
  4158. </div>
  4159. <div
  4160. v-if="
  4161. tType &&
  4162. ((tType == 2 && sIsOpen == true) ||
  4163. tType == 1 ||
  4164. tType == 4) &&
  4165. tool.tool.indexOf(57) != -1
  4166. "
  4167. class="worksBox"
  4168. >
  4169. <div
  4170. class="zuoyeYulan"
  4171. v-if="
  4172. worksStudent2.length &&
  4173. worksStudent2[toolIndex].length > 0
  4174. "
  4175. >
  4176. <div class="worksTop">
  4177. <div>作业预览</div>
  4178. <div
  4179. class="corOpen"
  4180. @click="contract(toolIndex)"
  4181. v-if="
  4182. worksStudent2[toolIndex].length > 6 &&
  4183. isCloseList[toolIndex].isClose == 0
  4184. "
  4185. >
  4186. 收缩
  4187. </div>
  4188. <div
  4189. class="corOpen"
  4190. @click="contract(toolIndex)"
  4191. v-if="isCloseList[toolIndex].isClose == 1"
  4192. >
  4193. 展开
  4194. </div>
  4195. </div>
  4196. </div>
  4197. <div
  4198. class="worksDetailBox"
  4199. v-if="
  4200. worksStudent2.length &&
  4201. worksStudent2[toolIndex].length > 0
  4202. "
  4203. >
  4204. <div
  4205. class="works"
  4206. style="
  4207. width: 200px;
  4208. height: 140px;
  4209. margin: 10px 10px 10px 0;
  4210. border-radius: 15px;
  4211. box-shadow: 0 0 6px 1px #dfdada;
  4212. "
  4213. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4214. ? worksStudent2[toolIndex]
  4215. : worksStudent2[toolIndex].slice(0, 6)"
  4216. :key="wIndex"
  4217. :class="w.type == 1 ? 'isTypeOne' : ''"
  4218. >
  4219. <div class="workImg">
  4220. <img
  4221. :src="word2"
  4222. @click="downloadFile(w.works)"
  4223. v-if="w.type == 12"
  4224. alt
  4225. />
  4226. <img
  4227. :src="word2"
  4228. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  4229. v-else-if="w.type == 15"
  4230. alt
  4231. />
  4232. <div
  4233. class="answerScore"
  4234. v-if="w.score"
  4235. @click.stop="openScore(w)"
  4236. :class="{
  4237. rightW:
  4238. w.userid == userid ||
  4239. tType == 1 ||
  4240. tType == 4 ||
  4241. w.ateacher == userid,
  4242. }"
  4243. >
  4244. {{ JSON.parse(w.score).wScore }}分
  4245. </div>
  4246. <div
  4247. class="answerScore"
  4248. @click.stop="openScore(w)"
  4249. v-else-if="courseDetail.userid == userid"
  4250. :class="{
  4251. rightW:
  4252. w.userid == userid ||
  4253. tType == 1 ||
  4254. tType == 4 ||
  4255. w.ateacher == userid,
  4256. }"
  4257. >
  4258. 评分
  4259. </div>
  4260. <img
  4261. class="deleteImg"
  4262. src="../../assets/deleteworks.png"
  4263. v-if="w.userid == userid || tType == 1 || tType == 4"
  4264. @click.stop="deleteWorks(w.wid)"
  4265. alt
  4266. />
  4267. </div>
  4268. <div class="comment" style="min-width: 200px">
  4269. <div class="worksName">
  4270. <div>{{ w.sName }}</div>
  4271. </div>
  4272. <div class="commentList">
  4273. <div class="commentList">
  4274. <div
  4275. class="commentImg"
  4276. @click="
  4277. isLikes(w.wid, userid, 1, null, w.isLikes)
  4278. "
  4279. >
  4280. <img
  4281. :src="w.isLikes == true ? likes : noLikes"
  4282. alt=""
  4283. />
  4284. </div>
  4285. <div>{{ w.likesCount }}</div>
  4286. </div>
  4287. <div class="commentList" style="margin-right: 15px">
  4288. <div
  4289. class="commentImg"
  4290. @click="commentOther(w, toolIndex, wIndex)"
  4291. >
  4292. <img
  4293. src="../../assets/icon/comment/comment.png"
  4294. alt=""
  4295. />
  4296. </div>
  4297. <div>{{ w.commentCount }}</div>
  4298. </div>
  4299. </div>
  4300. </div>
  4301. </div>
  4302. </div>
  4303. <div class="noWorksS">
  4304. <div
  4305. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4306. :key="sIndex"
  4307. class="noWorksName"
  4308. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4309. :class="{ isWork: s.type == '2' }"
  4310. >
  4311. {{ s.student }}
  4312. </div>
  4313. </div>
  4314. </div>
  4315. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4316. <div
  4317. class="zuoyeYulan"
  4318. v-if="
  4319. worksStudent2.length &&
  4320. worksStudent2[toolIndex].length > 0
  4321. "
  4322. >
  4323. <span>作业预览</span>
  4324. <div
  4325. class="corOpen"
  4326. @click="contract(toolIndex)"
  4327. v-if="
  4328. worksStudent2[toolIndex].length > 6 &&
  4329. isCloseList[toolIndex].isClose == 0
  4330. "
  4331. >
  4332. 收缩
  4333. </div>
  4334. <div
  4335. class="corOpen"
  4336. @click="contract(toolIndex)"
  4337. v-if="isCloseList[toolIndex].isClose == 1"
  4338. >
  4339. 展开
  4340. </div>
  4341. </div>
  4342. <div
  4343. class="worksDetailBox"
  4344. v-if="
  4345. worksStudent2.length &&
  4346. worksStudent2[toolIndex].length > 0
  4347. "
  4348. >
  4349. <div
  4350. class="works"
  4351. style="
  4352. width: 200px;
  4353. height: 140px;
  4354. margin: 10px 10px 10px 0;
  4355. border-radius: 15px;
  4356. box-shadow: 0 0 6px 1px #dfdada;
  4357. "
  4358. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4359. ? worksStudent2[toolIndex]
  4360. : worksStudent2[toolIndex].slice(0, 6)"
  4361. :key="wIndex"
  4362. :class="w.type == 1 ? 'isTypeOne' : ''"
  4363. >
  4364. <div class="workImg" v-if="w.type == 0">
  4365. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4366. <img :src="w.works" @click="previewImg(w.works)" alt />
  4367. <div
  4368. class="answerScore"
  4369. v-if="w.score"
  4370. @click.stop="openScore(w)"
  4371. :class="{
  4372. rightW:
  4373. w.userid == userid ||
  4374. tType == 1 ||
  4375. tType == 4 ||
  4376. w.ateacher == userid,
  4377. }"
  4378. >
  4379. {{ JSON.parse(w.score).wScore }}分
  4380. </div>
  4381. <div
  4382. class="answerScore"
  4383. @click.stop="openScore(w)"
  4384. v-else-if="courseDetail.userid == userid"
  4385. :class="{
  4386. rightW:
  4387. w.userid == userid ||
  4388. tType == 1 ||
  4389. tType == 4 ||
  4390. w.ateacher == userid,
  4391. }"
  4392. >
  4393. 评分
  4394. </div>
  4395. <img
  4396. class="deleteImg"
  4397. src="../../assets/deleteworks.png"
  4398. v-if="w.userid == userid || tType == 1 || tType == 4"
  4399. @click.stop="deleteWorks(w.wid)"
  4400. alt
  4401. />
  4402. </div>
  4403. <div
  4404. class="workImg"
  4405. style="cursor: pointer"
  4406. v-if="w.type == 1"
  4407. >
  4408. <img :src="word" @click="openFile(w.works)" alt />
  4409. <!-- @click="openFile(w.works)" -->
  4410. <div
  4411. class="answerScore"
  4412. v-if="w.score"
  4413. @click.stop="openScore(w)"
  4414. :class="{
  4415. rightW:
  4416. w.userid == userid ||
  4417. tType == 1 ||
  4418. tType == 4 ||
  4419. w.ateacher == userid,
  4420. }"
  4421. >
  4422. {{ JSON.parse(w.score).wScore }}分
  4423. </div>
  4424. <div
  4425. class="answerScore"
  4426. @click.stop="openScore(w)"
  4427. v-else-if="courseDetail.userid == userid"
  4428. :class="{
  4429. rightW:
  4430. w.userid == userid ||
  4431. tType == 1 ||
  4432. tType == 4 ||
  4433. w.ateacher == userid,
  4434. }"
  4435. >
  4436. 评分
  4437. </div>
  4438. <img
  4439. class="deleteImg"
  4440. src="../../assets/deleteworks.png"
  4441. v-if="w.userid == userid || tType == 1 || tType == 4"
  4442. @click.stop="deleteWorks(w.wid)"
  4443. alt
  4444. />
  4445. </div>
  4446. <div class="workImg" v-if="w.type == 3">
  4447. <img
  4448. style="cursor: pointer"
  4449. :src="video"
  4450. @click="openVideo(w)"
  4451. alt
  4452. />
  4453. <!-- @click="openVideo(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="comment" style="min-width: 200px">
  4491. <div class="worksName">
  4492. <div
  4493. style="cursor: pointer"
  4494. @click="
  4495. openSname(w.sName, w.wid, toolIndex, w.userid)
  4496. "
  4497. >
  4498. {{ w.sName }}
  4499. </div>
  4500. </div>
  4501. <div class="commentList">
  4502. <div class="commentList">
  4503. <div
  4504. class="commentImg"
  4505. @click="
  4506. isLikes(w.wid, userid, 1, null, w.isLikes)
  4507. "
  4508. >
  4509. <img
  4510. :src="w.isLikes == true ? likes : noLikes"
  4511. alt=""
  4512. />
  4513. </div>
  4514. <div>{{ w.likesCount }}</div>
  4515. </div>
  4516. <div class="commentList" style="margin-right: 15px">
  4517. <div
  4518. class="commentImg"
  4519. @click="commentOther(w, toolIndex, wIndex)"
  4520. >
  4521. <img
  4522. src="../../assets/icon/comment/comment.png"
  4523. alt=""
  4524. />
  4525. </div>
  4526. <div>{{ w.commentCount }}</div>
  4527. </div>
  4528. </div>
  4529. </div>
  4530. </div>
  4531. </div>
  4532. <div class="noWorksS">
  4533. <div
  4534. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4535. :key="sIndex"
  4536. class="noWorksName"
  4537. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4538. :class="{ isWork: s.type == '2' }"
  4539. >
  4540. {{ s.student }}
  4541. </div>
  4542. </div>
  4543. </div>
  4544. <div
  4545. v-if="
  4546. tType &&
  4547. ((tType == 2 && sIsOpen == true) ||
  4548. tType == 1 ||
  4549. tType == 4) &&
  4550. tool.tool.indexOf(4) != -1
  4551. "
  4552. class="worksBox"
  4553. >
  4554. <div
  4555. class="zuoyeYulan"
  4556. v-if="
  4557. worksStudent2.length &&
  4558. worksStudent2[toolIndex].length > 0
  4559. "
  4560. >
  4561. <div class="worksTop">
  4562. <div>作业预览</div>
  4563. <div
  4564. class="corOpen"
  4565. @click="contract(toolIndex)"
  4566. v-if="
  4567. worksStudent2[toolIndex].length > 6 &&
  4568. isCloseList[toolIndex].isClose == 0
  4569. "
  4570. >
  4571. 收缩
  4572. </div>
  4573. <div
  4574. class="corOpen"
  4575. @click="contract(toolIndex)"
  4576. v-if="isCloseList[toolIndex].isClose == 1"
  4577. >
  4578. 展开
  4579. </div>
  4580. </div>
  4581. </div>
  4582. <div>
  4583. <div
  4584. class="worksDetailBox"
  4585. v-if="
  4586. worksStudent2.length &&
  4587. worksStudent2[toolIndex].length > 0
  4588. "
  4589. >
  4590. <div
  4591. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4592. 0
  4593. ? worksStudent2[toolIndex]
  4594. : worksStudent2[toolIndex].slice(0, 6)"
  4595. :key="wIndex"
  4596. class="isWorksName"
  4597. @click="
  4598. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4599. "
  4600. >
  4601. {{ w.sName }}
  4602. <img
  4603. class="deleteImg deleteImg2"
  4604. src="../../assets/deleteworks.png"
  4605. v-if="w.userid == userid || tType == 1 || tType == 4"
  4606. @click.stop="deleteWorks(w.wid)"
  4607. alt
  4608. />
  4609. </div>
  4610. </div>
  4611. </div>
  4612. <div class="noWorksS">
  4613. <div
  4614. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4615. :key="sIndex"
  4616. class="noWorksName"
  4617. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4618. :class="{ isWork: s.type == '2' }"
  4619. >
  4620. {{ s.student }}
  4621. </div>
  4622. </div>
  4623. </div>
  4624. <div
  4625. v-if="
  4626. tType &&
  4627. ((tType == 2 && sIsOpen == true) ||
  4628. tType == 1 ||
  4629. tType == 4) &&
  4630. tool.tool.indexOf(45) != -1
  4631. "
  4632. class="worksBox"
  4633. >
  4634. <div
  4635. class="zuoyeYulan"
  4636. v-if="
  4637. worksStudent2.length &&
  4638. worksStudent2[toolIndex].length > 0
  4639. "
  4640. >
  4641. <div class="worksTop">
  4642. <div>作业预览</div>
  4643. <div
  4644. class="corOpen"
  4645. @click="contract(toolIndex)"
  4646. v-if="
  4647. worksStudent2[toolIndex].length > 6 &&
  4648. isCloseList[toolIndex].isClose == 0
  4649. "
  4650. >
  4651. 收缩
  4652. </div>
  4653. <div
  4654. class="corOpen"
  4655. @click="contract(toolIndex)"
  4656. v-if="isCloseList[toolIndex].isClose == 1"
  4657. >
  4658. 展开
  4659. </div>
  4660. </div>
  4661. </div>
  4662. <div>
  4663. <div
  4664. class="worksDetailBox"
  4665. v-if="
  4666. worksStudent2.length &&
  4667. worksStudent2[toolIndex].length > 0
  4668. "
  4669. >
  4670. <div
  4671. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4672. 0
  4673. ? worksStudent2[toolIndex]
  4674. : worksStudent2[toolIndex].slice(0, 6)"
  4675. :key="wIndex"
  4676. class="isWorksName"
  4677. @click="
  4678. openTools(45, toolIndex, taskCount, w.works, w.sName)
  4679. "
  4680. >
  4681. {{ w.sName }}
  4682. <img
  4683. class="deleteImg deleteImg2"
  4684. src="../../assets/deleteworks.png"
  4685. v-if="w.userid == userid || tType == 1 || tType == 4"
  4686. @click.stop="deleteWorks(w.wid)"
  4687. alt
  4688. />
  4689. </div>
  4690. </div>
  4691. </div>
  4692. <div class="noWorksS">
  4693. <div
  4694. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4695. :key="sIndex"
  4696. class="noWorksName"
  4697. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4698. :class="{ isWork: s.type == '2' }"
  4699. >
  4700. {{ s.student }}
  4701. </div>
  4702. </div>
  4703. </div>
  4704. <div
  4705. v-if="
  4706. tType &&
  4707. ((tType == 2 && sIsOpen == true) ||
  4708. tType == 1 ||
  4709. tType == 4) &&
  4710. tool.tool.indexOf(15) != -1
  4711. "
  4712. class="worksBox"
  4713. >
  4714. <div
  4715. class="zuoyeYulan"
  4716. v-if="
  4717. worksStudent2.length &&
  4718. worksStudent2[toolIndex].length > 0
  4719. "
  4720. >
  4721. <div class="worksTop">
  4722. <div>作业预览</div>
  4723. <div
  4724. class="corOpen"
  4725. @click="contract(toolIndex)"
  4726. v-if="
  4727. worksStudent2[toolIndex].length > 6 &&
  4728. isCloseList[toolIndex].isClose == 0
  4729. "
  4730. >
  4731. 收缩
  4732. </div>
  4733. <div
  4734. class="corOpen"
  4735. @click="contract(toolIndex)"
  4736. v-if="isCloseList[toolIndex].isClose == 1"
  4737. >
  4738. 展开
  4739. </div>
  4740. </div>
  4741. </div>
  4742. <div
  4743. class="worksDetailBox"
  4744. v-if="
  4745. worksStudent2.length &&
  4746. worksStudent2[toolIndex].length > 0
  4747. "
  4748. >
  4749. <div
  4750. class="works"
  4751. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4752. ? worksStudent2[toolIndex]
  4753. : worksStudent2[toolIndex].slice(0, 6)"
  4754. :key="wIndex"
  4755. >
  4756. <div
  4757. class="workImg"
  4758. style="
  4759. border-radius: 15px;
  4760. box-shadow: #eee 0px 0px 5px 5px;
  4761. "
  4762. >
  4763. <!-- <img
  4764. src="../../assets/icon/works/noImg.png"
  4765. @click="openTools(15, toolIndex, taskCount, w.works)"
  4766. alt=""
  4767. />-->
  4768. <div
  4769. class="answerBg"
  4770. style="border-radius: 15px 15px 0 0"
  4771. @click="commentOther(w, toolIndex, wIndex)"
  4772. >
  4773. <!-- <div>{{ w.sName }}</div> -->
  4774. <div class="answerContent">
  4775. {{ JSON.parse(w.works)[0].answer }}
  4776. </div>
  4777. <div
  4778. class="answerScore"
  4779. v-if="w.score"
  4780. @click.stop="openScore(w)"
  4781. :class="{
  4782. rightW:
  4783. w.userid == userid || tType == 1 || tType == 4,
  4784. }"
  4785. >
  4786. {{ JSON.parse(w.score).wScore }}分
  4787. </div>
  4788. <div
  4789. class="answerScore"
  4790. @click.stop="openScore(w)"
  4791. v-else-if="courseDetail.userid == userid"
  4792. :class="{
  4793. rightW:
  4794. w.userid == userid || tType == 1 || tType == 4,
  4795. }"
  4796. >
  4797. 评分
  4798. </div>
  4799. <img
  4800. class="deleteImg"
  4801. src="../../assets/deleteworks.png"
  4802. v-if="
  4803. w.userid == userid || tType == 1 || tType == 4
  4804. "
  4805. @click.stop="deleteWorks(w.wid)"
  4806. alt
  4807. />
  4808. </div>
  4809. <div class="comment">
  4810. <div class="worksName">
  4811. <div>{{ w.sName }}</div>
  4812. </div>
  4813. <div class="commentList">
  4814. <div
  4815. class="commentImg"
  4816. @click="
  4817. isLikes(w.wid, userid, 1, null, w.isLikes)
  4818. "
  4819. >
  4820. <img
  4821. :src="w.isLikes == true ? likes : noLikes"
  4822. alt=""
  4823. />
  4824. </div>
  4825. <div>{{ w.likesCount }}</div>
  4826. </div>
  4827. <div class="commentList" style="margin-right: 15px">
  4828. <div
  4829. class="commentImg"
  4830. @click="commentOther(w, toolIndex, wIndex)"
  4831. >
  4832. <img
  4833. src="../../assets/icon/comment/comment.png"
  4834. alt=""
  4835. />
  4836. </div>
  4837. <div>{{ w.commentCount }}</div>
  4838. </div>
  4839. </div>
  4840. </div>
  4841. </div>
  4842. </div>
  4843. <div class="noWorksS">
  4844. <div
  4845. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4846. :key="sIndex"
  4847. class="noWorksName"
  4848. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4849. :class="{ isWork: s.type == '2' }"
  4850. >
  4851. {{ s.student }}
  4852. </div>
  4853. </div>
  4854. </div>
  4855. <div
  4856. v-if="
  4857. tType &&
  4858. ((tType == 2 && sIsOpen == true) ||
  4859. tType == 1 ||
  4860. tType == 4) &&
  4861. tool.tool.indexOf(1) != -1
  4862. "
  4863. class="worksBox"
  4864. >
  4865. <div
  4866. class="zuoyeYulan"
  4867. v-if="
  4868. worksStudent2.length &&
  4869. worksStudent2[toolIndex].length > 0
  4870. "
  4871. >
  4872. <div class="worksTop">
  4873. <div>作业预览</div>
  4874. <div
  4875. class="corOpen"
  4876. @click="contract(toolIndex)"
  4877. v-if="
  4878. worksStudent2[toolIndex].length > 6 &&
  4879. isCloseList[toolIndex].isClose == 0
  4880. "
  4881. >
  4882. 收缩
  4883. </div>
  4884. <div
  4885. class="corOpen"
  4886. @click="contract(toolIndex)"
  4887. v-if="isCloseList[toolIndex].isClose == 1"
  4888. >
  4889. 展开
  4890. </div>
  4891. </div>
  4892. </div>
  4893. <div
  4894. class="worksDetailBox"
  4895. v-if="
  4896. worksStudent2.length &&
  4897. worksStudent2[toolIndex].length > 0
  4898. "
  4899. >
  4900. <div
  4901. class="works"
  4902. style="
  4903. width: 200px;
  4904. height: 140px;
  4905. margin: 10px 10px 10px 0;
  4906. border-radius: 15px;
  4907. box-shadow: 0 0 6px 1px #dfdada;
  4908. "
  4909. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4910. ? worksStudent2[toolIndex]
  4911. : worksStudent2[toolIndex].slice(0, 6)"
  4912. :key="wIndex"
  4913. >
  4914. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4915. <div class="workImg">
  4916. <img :src="w.works" @click="previewImg(w.works)" alt />
  4917. <div
  4918. class="answerScore"
  4919. v-if="w.score"
  4920. @click.stop="openScore(w)"
  4921. :class="{
  4922. rightW:
  4923. w.userid == userid || tType == 1 || tType == 4,
  4924. }"
  4925. >
  4926. {{ JSON.parse(w.score).wScore }}分
  4927. </div>
  4928. <div
  4929. class="answerScore"
  4930. @click.stop="openScore(w)"
  4931. v-else-if="courseDetail.userid == userid"
  4932. :class="{
  4933. rightW:
  4934. w.userid == userid || tType == 1 || tType == 4,
  4935. }"
  4936. >
  4937. 评分
  4938. </div>
  4939. <img
  4940. class="deleteImg"
  4941. src="../../assets/deleteworks.png"
  4942. v-if="w.userid == userid || tType == 1 || tType == 4"
  4943. @click.stop="deleteWorks(w.wid)"
  4944. alt
  4945. />
  4946. </div>
  4947. <div class="comment" style="min-width: 200px">
  4948. <div class="worksName">
  4949. <div>{{ w.sName }}</div>
  4950. </div>
  4951. <div class="commentList">
  4952. <div class="commentList">
  4953. <div
  4954. class="commentImg"
  4955. @click="
  4956. isLikes(w.wid, userid, 1, null, w.isLikes)
  4957. "
  4958. >
  4959. <img
  4960. :src="w.isLikes == true ? likes : noLikes"
  4961. alt=""
  4962. />
  4963. </div>
  4964. <div>{{ w.likesCount }}</div>
  4965. </div>
  4966. <div class="commentList" style="margin-right: 15px">
  4967. <div
  4968. class="commentImg"
  4969. @click="commentOther(w, toolIndex, wIndex)"
  4970. >
  4971. <img
  4972. src="../../assets/icon/comment/comment.png"
  4973. alt=""
  4974. />
  4975. </div>
  4976. <div>{{ w.commentCount }}</div>
  4977. </div>
  4978. </div>
  4979. </div>
  4980. </div>
  4981. </div>
  4982. <div class="noWorksS">
  4983. <div
  4984. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4985. :key="sIndex"
  4986. class="noWorksName"
  4987. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4988. :class="{ isWork: s.type == '2' }"
  4989. >
  4990. {{ s.student }}
  4991. </div>
  4992. </div>
  4993. </div>
  4994. <div
  4995. v-if="
  4996. tType &&
  4997. ((tType == 2 && sIsOpen == true) ||
  4998. tType == 1 ||
  4999. tType == 4) &&
  5000. tool.tool.indexOf(3) != -1
  5001. "
  5002. class="worksBox"
  5003. >
  5004. <div
  5005. class="zuoyeYulan"
  5006. v-if="
  5007. worksStudent2.length &&
  5008. worksStudent2[toolIndex].length > 0
  5009. "
  5010. >
  5011. <div class="worksTop">
  5012. <div>作业预览</div>
  5013. <div
  5014. class="corOpen"
  5015. @click="contract(toolIndex)"
  5016. v-if="
  5017. worksStudent2[toolIndex].length > 6 &&
  5018. isCloseList[toolIndex].isClose == 0
  5019. "
  5020. >
  5021. 收缩
  5022. </div>
  5023. <div
  5024. class="corOpen"
  5025. @click="contract(toolIndex)"
  5026. v-if="isCloseList[toolIndex].isClose == 1"
  5027. >
  5028. 展开
  5029. </div>
  5030. </div>
  5031. </div>
  5032. <div
  5033. class="worksDetailBox"
  5034. v-if="
  5035. worksStudent2.length &&
  5036. worksStudent2[toolIndex].length > 0
  5037. "
  5038. >
  5039. <div
  5040. class="works"
  5041. style="
  5042. width: 200px;
  5043. height: 140px;
  5044. margin: 10px 10px 10px 0;
  5045. border-radius: 15px;
  5046. box-shadow: 0 0 6px 1px #dfdada;
  5047. "
  5048. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5049. ? worksStudent2[toolIndex]
  5050. : worksStudent2[toolIndex].slice(0, 6)"
  5051. :key="wIndex"
  5052. >
  5053. <!-- @click="previewImg(w.works)" -->
  5054. <div class="workImg">
  5055. <img :src="w.works" @click="previewImg(w.works)" alt />
  5056. <div
  5057. class="answerScore"
  5058. v-if="w.score"
  5059. @click.stop="openScore(w)"
  5060. :class="{
  5061. rightW:
  5062. w.userid == userid || tType == 1 || tType == 4,
  5063. }"
  5064. >
  5065. {{ JSON.parse(w.score).wScore }}分
  5066. </div>
  5067. <div
  5068. class="answerScore"
  5069. @click.stop="openScore(w)"
  5070. v-else-if="courseDetail.userid == userid"
  5071. :class="{
  5072. rightW:
  5073. w.userid == userid || tType == 1 || tType == 4,
  5074. }"
  5075. >
  5076. 评分
  5077. </div>
  5078. <img
  5079. class="deleteImg"
  5080. src="../../assets/deleteworks.png"
  5081. v-if="w.userid == userid || tType == 1 || tType == 4"
  5082. @click.stop="deleteWorks(w.wid)"
  5083. alt
  5084. />
  5085. </div>
  5086. <div class="comment" style="min-width: 200px">
  5087. <div class="worksName">
  5088. <div>{{ w.sName }}</div>
  5089. </div>
  5090. <div class="commentList">
  5091. <div class="commentList">
  5092. <div
  5093. class="commentImg"
  5094. @click="
  5095. isLikes(w.wid, userid, 1, null, w.isLikes)
  5096. "
  5097. >
  5098. <img
  5099. :src="w.isLikes == true ? likes : noLikes"
  5100. alt=""
  5101. />
  5102. </div>
  5103. <div>{{ w.likesCount }}</div>
  5104. </div>
  5105. <div class="commentList" style="margin-right: 15px">
  5106. <div
  5107. class="commentImg"
  5108. @click="commentOther(w, toolIndex, wIndex)"
  5109. >
  5110. <img
  5111. src="../../assets/icon/comment/comment.png"
  5112. alt=""
  5113. />
  5114. </div>
  5115. <div>{{ w.commentCount }}</div>
  5116. </div>
  5117. </div>
  5118. </div>
  5119. </div>
  5120. </div>
  5121. <div class="noWorksS">
  5122. <div
  5123. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5124. :key="sIndex"
  5125. class="noWorksName"
  5126. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5127. :class="{ isWork: s.type == '2' }"
  5128. >
  5129. {{ s.student }}
  5130. </div>
  5131. </div>
  5132. </div>
  5133. <div
  5134. v-if="
  5135. tType &&
  5136. ((tType == 2 && sIsOpen == true) ||
  5137. tType == 1 ||
  5138. tType == 4) &&
  5139. tool.tool.indexOf(6) != -1
  5140. "
  5141. class="worksBox"
  5142. >
  5143. <div
  5144. class="zuoyeYulan"
  5145. v-if="
  5146. worksStudent2.length &&
  5147. worksStudent2[toolIndex].length > 0
  5148. "
  5149. >
  5150. <div class="worksTop">
  5151. <div>作业预览</div>
  5152. <div
  5153. class="corOpen"
  5154. @click="contract(toolIndex)"
  5155. v-if="
  5156. worksStudent[toolIndex].length > 6 &&
  5157. isCloseList[toolIndex].isClose == 0
  5158. "
  5159. >
  5160. 收缩
  5161. </div>
  5162. <div
  5163. class="corOpen"
  5164. @click="contract(toolIndex)"
  5165. v-if="isCloseList[toolIndex].isClose == 1"
  5166. >
  5167. 展开
  5168. </div>
  5169. </div>
  5170. </div>
  5171. <div
  5172. class="worksDetailBox"
  5173. v-if="
  5174. worksStudent2.length &&
  5175. worksStudent2[toolIndex].length > 0
  5176. "
  5177. >
  5178. <div
  5179. class="works"
  5180. style="
  5181. width: 200px;
  5182. height: 140px;
  5183. margin: 10px 10px 10px 0;
  5184. border-radius: 15px;
  5185. box-shadow: 0 0 6px 1px #dfdada;
  5186. "
  5187. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5188. ? worksStudent2[toolIndex]
  5189. : worksStudent2[toolIndex].slice(0, 6)"
  5190. :key="wIndex"
  5191. >
  5192. <!-- @click="previewImg(w.works)" -->
  5193. <div class="workImg">
  5194. <img :src="w.works" @click="previewImg(w.works)" alt />
  5195. <div
  5196. class="answerScore"
  5197. v-if="w.score"
  5198. @click.stop="openScore(w)"
  5199. :class="{
  5200. rightW:
  5201. w.userid == userid || tType == 1 || tType == 4,
  5202. }"
  5203. >
  5204. {{ JSON.parse(w.score).wScore }}分
  5205. </div>
  5206. <div
  5207. class="answerScore"
  5208. @click.stop="openScore(w)"
  5209. v-else-if="courseDetail.userid == userid"
  5210. :class="{
  5211. rightW:
  5212. w.userid == userid || tType == 1 || tType == 4,
  5213. }"
  5214. >
  5215. 评分
  5216. </div>
  5217. <img
  5218. class="deleteImg"
  5219. src="../../assets/deleteworks.png"
  5220. v-if="w.userid == userid || tType == 1 || tType == 4"
  5221. @click.stop="deleteWorks(w.wid)"
  5222. alt
  5223. />
  5224. </div>
  5225. <div class="comment" style="min-width: 200px">
  5226. <div class="worksName">
  5227. <div>{{ w.sName }}</div>
  5228. </div>
  5229. <div class="commentList">
  5230. <div class="commentList">
  5231. <div
  5232. class="commentImg"
  5233. @click="
  5234. isLikes(w.wid, userid, 1, null, w.isLikes)
  5235. "
  5236. >
  5237. <img
  5238. :src="w.isLikes == true ? likes : noLikes"
  5239. alt=""
  5240. />
  5241. </div>
  5242. <div>{{ w.likesCount }}</div>
  5243. </div>
  5244. <div class="commentList" style="margin-right: 15px">
  5245. <div
  5246. class="commentImg"
  5247. @click="commentOther(w, toolIndex, wIndex)"
  5248. >
  5249. <img
  5250. src="../../assets/icon/comment/comment.png"
  5251. alt=""
  5252. />
  5253. </div>
  5254. <div>{{ w.commentCount }}</div>
  5255. </div>
  5256. </div>
  5257. </div>
  5258. </div>
  5259. </div>
  5260. <div class="noWorksS">
  5261. <div
  5262. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5263. :key="sIndex"
  5264. class="noWorksName"
  5265. :class="{ isWork: s.type == '2' }"
  5266. >
  5267. {{ s.student }}
  5268. </div>
  5269. </div>
  5270. </div>
  5271. <div
  5272. v-if="
  5273. tType &&
  5274. ((tType == 2 && sIsOpen == true) ||
  5275. tType == 1 ||
  5276. tType == 4) &&
  5277. tool.tool.indexOf(7) != -1
  5278. "
  5279. class="worksBox"
  5280. >
  5281. <div
  5282. class="zuoyeYulan"
  5283. v-if="
  5284. worksStudent2.length &&
  5285. worksStudent2[toolIndex].length > 0
  5286. "
  5287. >
  5288. <div class="worksTop">
  5289. <div>作业预览</div>
  5290. <div
  5291. class="corOpen"
  5292. @click="contract(toolIndex)"
  5293. v-if="
  5294. worksStudent2[toolIndex].length > 6 &&
  5295. isCloseList[toolIndex].isClose == 0
  5296. "
  5297. >
  5298. 收缩
  5299. </div>
  5300. <div
  5301. class="corOpen"
  5302. @click="contract(toolIndex)"
  5303. v-if="isCloseList[toolIndex].isClose == 1"
  5304. >
  5305. 展开
  5306. </div>
  5307. </div>
  5308. </div>
  5309. <div
  5310. class="worksDetailBox"
  5311. v-if="
  5312. worksStudent2.length &&
  5313. worksStudent2[toolIndex].length > 0
  5314. "
  5315. >
  5316. <div
  5317. class="works"
  5318. style="
  5319. width: 200px;
  5320. height: 140px;
  5321. margin: 10px 10px 10px 0;
  5322. border-radius: 15px;
  5323. box-shadow: 0 0 6px 1px #dfdada;
  5324. "
  5325. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5326. ? worksStudent2[toolIndex]
  5327. : worksStudent2[toolIndex].slice(0, 6)"
  5328. :key="wIndex"
  5329. >
  5330. <!-- @click="previewImg(w.works)" -->
  5331. <div class="workImg">
  5332. <img :src="w.works" @click="previewImg(w.works)" alt />
  5333. <div
  5334. class="answerScore"
  5335. v-if="w.score"
  5336. @click.stop="openScore(w)"
  5337. :class="{
  5338. rightW:
  5339. w.userid == userid || tType == 1 || tType == 4,
  5340. }"
  5341. >
  5342. {{ JSON.parse(w.score).wScore }}分
  5343. </div>
  5344. <div
  5345. class="answerScore"
  5346. @click.stop="openScore(w)"
  5347. v-else-if="courseDetail.userid == userid"
  5348. :class="{
  5349. rightW:
  5350. w.userid == userid || tType == 1 || tType == 4,
  5351. }"
  5352. >
  5353. 评分
  5354. </div>
  5355. <img
  5356. class="deleteImg"
  5357. src="../../assets/deleteworks.png"
  5358. v-if="w.userid == userid || tType == 1 || tType == 4"
  5359. @click.stop="deleteWorks(w.wid)"
  5360. alt
  5361. />
  5362. </div>
  5363. <div class="comment" style="min-width: 200px">
  5364. <div class="worksName">
  5365. <div>{{ w.sName }}</div>
  5366. </div>
  5367. <div class="commentList">
  5368. <div class="commentList">
  5369. <div
  5370. class="commentImg"
  5371. @click="
  5372. isLikes(w.wid, userid, 1, null, w.isLikes)
  5373. "
  5374. >
  5375. <img
  5376. :src="w.isLikes == true ? likes : noLikes"
  5377. alt=""
  5378. />
  5379. </div>
  5380. <div>{{ w.likesCount }}</div>
  5381. </div>
  5382. <div class="commentList" style="margin-right: 15px">
  5383. <div
  5384. class="commentImg"
  5385. @click="commentOther(w, toolIndex, wIndex)"
  5386. >
  5387. <img
  5388. src="../../assets/icon/comment/comment.png"
  5389. alt=""
  5390. />
  5391. </div>
  5392. <div>{{ w.commentCount }}</div>
  5393. </div>
  5394. </div>
  5395. </div>
  5396. </div>
  5397. </div>
  5398. <div class="noWorksS">
  5399. <div
  5400. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5401. :key="sIndex"
  5402. class="noWorksName"
  5403. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5404. :class="{ isWork: s.type == '2' }"
  5405. >
  5406. {{ s.student }}
  5407. </div>
  5408. </div>
  5409. </div>
  5410. <div
  5411. v-if="
  5412. tType &&
  5413. ((tType == 2 && sIsOpen == true) ||
  5414. tType == 1 ||
  5415. tType == 4) &&
  5416. tool.tool.indexOf(26) != -1
  5417. "
  5418. class="worksBox"
  5419. >
  5420. <div
  5421. class="zuoyeYulan"
  5422. v-if="
  5423. worksStudent2.length &&
  5424. worksStudent2[toolIndex].length > 0
  5425. "
  5426. >
  5427. <div class="worksTop">
  5428. <div>作业预览</div>
  5429. <div
  5430. class="corOpen"
  5431. @click="contract(toolIndex)"
  5432. v-if="
  5433. worksStudent2[toolIndex].length > 6 &&
  5434. isCloseList[toolIndex].isClose == 0
  5435. "
  5436. >
  5437. 收缩
  5438. </div>
  5439. <div
  5440. class="corOpen"
  5441. @click="contract(toolIndex)"
  5442. v-if="isCloseList[toolIndex].isClose == 1"
  5443. >
  5444. 展开
  5445. </div>
  5446. </div>
  5447. </div>
  5448. <div
  5449. class="worksDetailBox"
  5450. v-if="
  5451. worksStudent2.length &&
  5452. worksStudent2[toolIndex].length > 0
  5453. "
  5454. >
  5455. <div
  5456. class="works"
  5457. style="width: 240px; height: 140px; overflow: hidden"
  5458. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5459. ? worksStudent2[toolIndex]
  5460. : worksStudent2[toolIndex].slice(0, 6)"
  5461. :key="wIndex"
  5462. :class="w.type == 1 ? 'isTypeOne' : ''"
  5463. >
  5464. <div class="workImg" v-if="w.type == 0">
  5465. <img :src="w.works" @click="previewImg(w.works)" alt />
  5466. <img
  5467. class="deleteImg"
  5468. src="../../assets/deleteworks.png"
  5469. v-if="w.userid == userid || tType == 1 || tType == 4"
  5470. @click.stop="deleteWorks(w.wid)"
  5471. alt
  5472. />
  5473. </div>
  5474. <div class="workImg" v-if="w.type == 1">
  5475. <img :src="word" @click="openFile(w.works)" alt />
  5476. <img
  5477. class="deleteImg"
  5478. src="../../assets/deleteworks.png"
  5479. v-if="w.userid == userid || tType == 1 || tType == 4"
  5480. @click.stop="deleteWorks(w.wid)"
  5481. alt
  5482. />
  5483. </div>
  5484. <div class="worksName">
  5485. <div>{{ w.sName }}</div>
  5486. </div>
  5487. </div>
  5488. </div>
  5489. <div class="noWorksS">
  5490. <div
  5491. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5492. :key="sIndex"
  5493. class="noWorksName"
  5494. :class="{ isWork: s.type == '2' }"
  5495. >
  5496. {{ s.student }}
  5497. </div>
  5498. </div>
  5499. </div>
  5500. <div
  5501. v-if="
  5502. tType &&
  5503. ((tType == 2 && sIsOpen == true) ||
  5504. tType == 1 ||
  5505. tType == 4) &&
  5506. tool.tool.indexOf(40) != -1
  5507. "
  5508. class="worksBox"
  5509. >
  5510. <div
  5511. class="zuoyeYulan"
  5512. v-if="
  5513. worksStudent2.length &&
  5514. worksStudent2[toolIndex].length > 0
  5515. "
  5516. >
  5517. <div class="worksTop">
  5518. <div>作业预览</div>
  5519. <div
  5520. class="corOpen"
  5521. @click="contract(toolIndex)"
  5522. v-if="
  5523. worksStudent2[toolIndex].length > 6 &&
  5524. isCloseList[toolIndex].isClose == 0
  5525. "
  5526. >
  5527. 收缩
  5528. </div>
  5529. <div
  5530. class="corOpen"
  5531. @click="contract(toolIndex)"
  5532. v-if="isCloseList[toolIndex].isClose == 1"
  5533. >
  5534. 展开
  5535. </div>
  5536. </div>
  5537. </div>
  5538. <div
  5539. class="worksDetailBox"
  5540. v-if="
  5541. worksStudent2.length &&
  5542. worksStudent2[toolIndex].length > 0
  5543. "
  5544. >
  5545. <div
  5546. class="works"
  5547. style="
  5548. width: 200px;
  5549. height: 140px;
  5550. margin: 10px 10px 10px 0;
  5551. border-radius: 15px;
  5552. box-shadow: 0 0 6px 1px #dfdada;
  5553. "
  5554. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5555. ? worksStudent2[toolIndex]
  5556. : worksStudent2[toolIndex].slice(0, 6)"
  5557. :key="wIndex"
  5558. :class="w.type == 1 ? 'isTypeOne' : ''"
  5559. >
  5560. <div class="workImg">
  5561. <img
  5562. src="../../assets/icon/works/noImg.png"
  5563. @click="openPj(w.works, toolIndex)"
  5564. alt
  5565. />
  5566. <img
  5567. class="deleteImg"
  5568. src="../../assets/deleteworks.png"
  5569. v-if="w.userid == userid || tType == 1 || tType == 4"
  5570. @click.stop="deleteWorks(w.wid)"
  5571. alt
  5572. />
  5573. </div>
  5574. <div class="comment" style="min-width: 200px">
  5575. <div class="worksName">
  5576. <div>{{ w.sName }}</div>
  5577. </div>
  5578. <div class="commentList">
  5579. <div class="commentList">
  5580. <div
  5581. class="commentImg"
  5582. @click="
  5583. isLikes(w.wid, userid, 1, null, w.isLikes)
  5584. "
  5585. >
  5586. <img
  5587. :src="w.isLikes == true ? likes : noLikes"
  5588. alt=""
  5589. />
  5590. </div>
  5591. <div>{{ w.likesCount }}</div>
  5592. </div>
  5593. <div class="commentList" style="margin-right: 15px">
  5594. <div
  5595. class="commentImg"
  5596. @click="commentOther(w, toolIndex, wIndex)"
  5597. >
  5598. <img
  5599. src="../../assets/icon/comment/comment.png"
  5600. alt=""
  5601. />
  5602. </div>
  5603. <div>{{ w.commentCount }}</div>
  5604. </div>
  5605. </div>
  5606. </div>
  5607. </div>
  5608. </div>
  5609. <div class="noWorksS">
  5610. <div
  5611. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5612. :key="sIndex"
  5613. class="noWorksName"
  5614. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5615. :class="{ isWork: s.type == '2' }"
  5616. >
  5617. {{ s.student }}
  5618. </div>
  5619. </div>
  5620. </div>
  5621. <div
  5622. v-if="
  5623. tType &&
  5624. ((tType == 2 && sIsOpen == true) ||
  5625. tType == 1 ||
  5626. tType == 4) &&
  5627. tool.tool.indexOf(41) != -1
  5628. "
  5629. class="worksBox"
  5630. >
  5631. <div class="noWorksS">
  5632. <div
  5633. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5634. :key="sIndex"
  5635. class="noWorksName"
  5636. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5637. :class="{ isWork: s.type == '2' }"
  5638. >
  5639. {{ s.student }}
  5640. </div>
  5641. </div>
  5642. <div
  5643. class="zuoyeYulan"
  5644. v-if="
  5645. worksStudent2.length &&
  5646. worksStudent2[toolIndex].length > 0
  5647. "
  5648. >
  5649. <div class="worksTop">
  5650. <div>作业预览</div>
  5651. <div
  5652. class="corOpen"
  5653. @click="contract(toolIndex)"
  5654. v-if="
  5655. worksStudent2[toolIndex].length > 6 &&
  5656. isCloseList[toolIndex].isClose == 0
  5657. "
  5658. >
  5659. 收缩
  5660. </div>
  5661. <div
  5662. class="corOpen"
  5663. @click="contract(toolIndex)"
  5664. v-if="isCloseList[toolIndex].isClose == 1"
  5665. >
  5666. 展开
  5667. </div>
  5668. </div>
  5669. </div>
  5670. <div
  5671. class="worksDetailBox"
  5672. v-if="
  5673. worksStudent2.length &&
  5674. worksStudent2[toolIndex].length > 0
  5675. "
  5676. >
  5677. <div
  5678. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5679. ? worksStudent2[toolIndex]
  5680. : worksStudent2[toolIndex].slice(0, 6)"
  5681. :key="wIndex"
  5682. class="isWorksName"
  5683. @click="openXz(w, toolIndex)"
  5684. >
  5685. {{ w.sName }}
  5686. <img
  5687. class="deleteImg deleteImg2"
  5688. src="../../assets/deleteworks.png"
  5689. v-if="w.userid == userid || tType == 1 || tType == 4"
  5690. @click.stop="deleteWorks(w.wid)"
  5691. alt
  5692. />
  5693. </div>
  5694. </div>
  5695. </div>
  5696. <div
  5697. v-if="
  5698. tType &&
  5699. ((tType == 2 && sIsOpen == true) ||
  5700. tType == 1 ||
  5701. tType == 4) &&
  5702. tool.tool.indexOf(47) != -1
  5703. "
  5704. class="worksBox"
  5705. >
  5706. <div class="noWorksS">
  5707. <div
  5708. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5709. :key="sIndex"
  5710. class="noWorksName"
  5711. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5712. :class="{ isWork: s.type == '2' }"
  5713. >
  5714. {{ s.student }}
  5715. </div>
  5716. </div>
  5717. <div
  5718. class="zuoyeYulan"
  5719. v-if="
  5720. worksStudent2.length &&
  5721. worksStudent2[toolIndex].length > 0
  5722. "
  5723. >
  5724. <div class="worksTop">
  5725. <div>作业预览</div>
  5726. <div
  5727. class="corOpen"
  5728. @click="contract(toolIndex)"
  5729. v-if="
  5730. worksStudent2[toolIndex].length > 6 &&
  5731. isCloseList[toolIndex].isClose == 0
  5732. "
  5733. >
  5734. 收缩
  5735. </div>
  5736. <div
  5737. class="corOpen"
  5738. @click="contract(toolIndex)"
  5739. v-if="isCloseList[toolIndex].isClose == 1"
  5740. >
  5741. 展开
  5742. </div>
  5743. </div>
  5744. </div>
  5745. <div
  5746. class="worksDetailBox"
  5747. v-if="
  5748. worksStudent2.length &&
  5749. worksStudent2[toolIndex].length > 0
  5750. "
  5751. >
  5752. <!-- @click="openXz(w, toolIndex)" -->
  5753. <div
  5754. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5755. ? worksStudent2[toolIndex]
  5756. : worksStudent2[toolIndex].slice(0, 6)"
  5757. :key="wIndex"
  5758. class="isWorksName"
  5759. @click="openSen(w, toolIndex)"
  5760. >
  5761. {{ w.sName }}
  5762. <img
  5763. class="deleteImg deleteImg2"
  5764. src="../../assets/deleteworks.png"
  5765. v-if="w.userid == userid || tType == 1 || tType == 4"
  5766. @click.stop="deleteWorks(w.wid)"
  5767. alt
  5768. />
  5769. </div>
  5770. </div>
  5771. </div>
  5772. <div
  5773. v-if="
  5774. tType &&
  5775. ((tType == 2 && sIsOpen == true) ||
  5776. tType == 1 ||
  5777. tType == 4) &&
  5778. tool.tool.indexOf(48) != -1
  5779. "
  5780. class="worksBox"
  5781. >
  5782. <div class="noWorksS">
  5783. <div
  5784. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5785. :key="sIndex"
  5786. class="noWorksName"
  5787. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5788. :class="{ isWork: s.type == '2' }"
  5789. >
  5790. {{ s.student }}
  5791. </div>
  5792. </div>
  5793. <div
  5794. class="zuoyeYulan"
  5795. v-if="
  5796. worksStudent2.length &&
  5797. worksStudent2[toolIndex].length > 0
  5798. "
  5799. >
  5800. <div class="worksTop">
  5801. <div>作业预览</div>
  5802. <div
  5803. class="corOpen"
  5804. @click="contract(toolIndex)"
  5805. v-if="
  5806. worksStudent2[toolIndex].length > 6 &&
  5807. isCloseList[toolIndex].isClose == 0
  5808. "
  5809. >
  5810. 收缩
  5811. </div>
  5812. <div
  5813. class="corOpen"
  5814. @click="contract(toolIndex)"
  5815. v-if="isCloseList[toolIndex].isClose == 1"
  5816. >
  5817. 展开
  5818. </div>
  5819. </div>
  5820. </div>
  5821. <div
  5822. class="worksDetailBox"
  5823. v-if="
  5824. worksStudent2.length &&
  5825. worksStudent2[toolIndex].length > 0
  5826. "
  5827. >
  5828. <div
  5829. class="works"
  5830. style="
  5831. width: 200px;
  5832. height: 140px;
  5833. margin: 10px 10px 10px 0;
  5834. border-radius: 15px;
  5835. box-shadow: 0 0 6px 1px #dfdada;
  5836. "
  5837. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5838. ? worksStudent2[toolIndex]
  5839. : worksStudent2[toolIndex].slice(0, 6)"
  5840. :key="wIndex"
  5841. :class="w.type == 1 ? 'isTypeOne' : ''"
  5842. >
  5843. <div class="workImg">
  5844. <img :src="word" @click="openTable(w)" alt />
  5845. <!-- @click="openFile(w.works)" -->
  5846. <div
  5847. class="answerScore"
  5848. v-if="w.score"
  5849. @click.stop="openScore(w)"
  5850. :class="{
  5851. rightW:
  5852. w.userid == userid ||
  5853. tType == 1 ||
  5854. tType == 4 ||
  5855. w.ateacher == userid,
  5856. }"
  5857. >
  5858. {{ JSON.parse(w.score).wScore }}分
  5859. </div>
  5860. <div
  5861. class="answerScore"
  5862. @click.stop="openScore(w)"
  5863. v-else-if="courseDetail.userid == userid"
  5864. :class="{
  5865. rightW:
  5866. w.userid == userid ||
  5867. tType == 1 ||
  5868. tType == 4 ||
  5869. w.ateacher == userid,
  5870. }"
  5871. >
  5872. 评分
  5873. </div>
  5874. <img
  5875. class="deleteImg"
  5876. src="../../assets/deleteworks.png"
  5877. v-if="w.userid == userid || tType == 1 || tType == 4"
  5878. @click.stop="deleteWorks(w.wid)"
  5879. alt
  5880. />
  5881. </div>
  5882. <div class="comment" style="min-width: 200px">
  5883. <div class="worksName">
  5884. <div>{{ w.sName }}</div>
  5885. </div>
  5886. <div class="commentList">
  5887. <div class="commentList">
  5888. <div
  5889. class="commentImg"
  5890. @click="
  5891. isLikes(w.wid, userid, 1, null, w.isLikes)
  5892. "
  5893. >
  5894. <img
  5895. :src="w.isLikes == true ? likes : noLikes"
  5896. alt=""
  5897. />
  5898. </div>
  5899. <div>{{ w.likesCount }}</div>
  5900. </div>
  5901. <div class="commentList" style="margin-right: 15px">
  5902. <div
  5903. class="commentImg"
  5904. @click="commentOther(w, toolIndex, wIndex)"
  5905. >
  5906. <img
  5907. src="../../assets/icon/comment/comment.png"
  5908. alt=""
  5909. />
  5910. </div>
  5911. <div>{{ w.commentCount }}</div>
  5912. </div>
  5913. </div>
  5914. </div>
  5915. </div>
  5916. </div>
  5917. </div>
  5918. <div
  5919. v-if="
  5920. tType &&
  5921. ((tType == 2 && sIsOpen == true) ||
  5922. tType == 1 ||
  5923. tType == 4) &&
  5924. tool.tool.indexOf(52) != -1
  5925. "
  5926. class="worksBox"
  5927. >
  5928. <div class="noWorksS">
  5929. <div
  5930. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5931. :key="sIndex"
  5932. class="noWorksName"
  5933. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  5934. :class="{ isWork: s.type == '2' }"
  5935. >
  5936. {{ s.student }}
  5937. </div>
  5938. </div>
  5939. <div
  5940. class="zuoyeYulan"
  5941. v-if="
  5942. worksStudent2.length &&
  5943. worksStudent2[toolIndex].length > 0
  5944. "
  5945. >
  5946. <div class="worksTop">
  5947. <div>作业预览</div>
  5948. <div
  5949. class="corOpen"
  5950. @click="contract(toolIndex)"
  5951. v-if="
  5952. worksStudent2[toolIndex].length > 6 &&
  5953. isCloseList[toolIndex].isClose == 0
  5954. "
  5955. >
  5956. 收缩
  5957. </div>
  5958. <div
  5959. class="corOpen"
  5960. @click="contract(toolIndex)"
  5961. v-if="isCloseList[toolIndex].isClose == 1"
  5962. >
  5963. 展开
  5964. </div>
  5965. </div>
  5966. </div>
  5967. <div
  5968. class="worksDetailBox"
  5969. v-if="
  5970. worksStudent2.length &&
  5971. worksStudent2[toolIndex].length > 0
  5972. "
  5973. >
  5974. <div
  5975. class="works"
  5976. style="
  5977. width: 200px;
  5978. height: 140px;
  5979. margin: 10px 10px 10px 0;
  5980. border-radius: 15px;
  5981. box-shadow: 0 0 6px 1px #dfdada;
  5982. "
  5983. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5984. ? worksStudent2[toolIndex]
  5985. : worksStudent2[toolIndex].slice(0, 6)"
  5986. :key="wIndex"
  5987. :class="w.type == 1 ? 'isTypeOne' : ''"
  5988. >
  5989. <div class="workImg">
  5990. <img :src="word" @click="openWord(w)" alt />
  5991. <!-- @click="openFile(w.works)" -->
  5992. <div
  5993. class="answerScore"
  5994. v-if="w.score"
  5995. @click.stop="openScore(w)"
  5996. :class="{
  5997. rightW:
  5998. w.userid == userid ||
  5999. tType == 1 ||
  6000. tType == 4 ||
  6001. w.ateacher == userid,
  6002. }"
  6003. >
  6004. {{ JSON.parse(w.score).wScore }}分
  6005. </div>
  6006. <div
  6007. class="answerScore"
  6008. @click.stop="openScore(w)"
  6009. v-else-if="courseDetail.userid == userid"
  6010. :class="{
  6011. rightW:
  6012. w.userid == userid ||
  6013. tType == 1 ||
  6014. tType == 4 ||
  6015. w.ateacher == userid,
  6016. }"
  6017. >
  6018. 评分
  6019. </div>
  6020. <img
  6021. class="deleteImg"
  6022. src="../../assets/deleteworks.png"
  6023. v-if="w.userid == userid || tType == 1 || tType == 4"
  6024. @click.stop="deleteWorks(w.wid)"
  6025. alt
  6026. />
  6027. </div>
  6028. <div class="comment" style="min-width: 200px">
  6029. <div class="worksName">
  6030. <div>{{ w.sName }}</div>
  6031. </div>
  6032. <div class="commentList">
  6033. <div class="commentList">
  6034. <div
  6035. class="commentImg"
  6036. @click="
  6037. isLikes(w.wid, userid, 1, null, w.isLikes)
  6038. "
  6039. >
  6040. <img
  6041. :src="w.isLikes == true ? likes : noLikes"
  6042. alt=""
  6043. />
  6044. </div>
  6045. <div>{{ w.likesCount }}</div>
  6046. </div>
  6047. <div class="commentList" style="margin-right: 15px">
  6048. <div
  6049. class="commentImg"
  6050. @click="commentOther(w, toolIndex, wIndex)"
  6051. >
  6052. <img
  6053. src="../../assets/icon/comment/comment.png"
  6054. alt=""
  6055. />
  6056. </div>
  6057. <div>{{ w.commentCount }}</div>
  6058. </div>
  6059. </div>
  6060. </div>
  6061. </div>
  6062. </div>
  6063. </div>
  6064. </div>
  6065. </div>
  6066. <div
  6067. class="vedioBox"
  6068. v-if="
  6069. arrayToArray(tool.tool, isWorkTool).length &&
  6070. (noWorksS[toolIndex].length || worksStudent[toolIndex].length)
  6071. "
  6072. >
  6073. <div
  6074. class="queTop"
  6075. style="
  6076. font-size: 20px;
  6077. padding: 15px 0 15px 30px;
  6078. font-weight: bold;
  6079. "
  6080. >
  6081. 工作区
  6082. </div>
  6083. <div class="tool_work_box">
  6084. <div
  6085. v-if="
  6086. tType &&
  6087. ((tType == 2 && sIsOpen == true) ||
  6088. tType == 1 ||
  6089. tType == 4) &&
  6090. tool.tool.indexOf(16) != -1
  6091. "
  6092. class="worksBox"
  6093. >
  6094. <div
  6095. class="zuoyeYulan"
  6096. v-if="
  6097. worksStudent.length && worksStudent[toolIndex].length > 0
  6098. "
  6099. >
  6100. <div class="worksTop">
  6101. <div>作业预览</div>
  6102. <div
  6103. class="corOpen"
  6104. @click="contract(toolIndex)"
  6105. v-if="
  6106. worksStudent[toolIndex].length > 6 &&
  6107. isCloseList[toolIndex].isClose == 0
  6108. "
  6109. >
  6110. 收缩
  6111. </div>
  6112. <div
  6113. class="corOpen"
  6114. @click="contract(toolIndex)"
  6115. v-if="isCloseList[toolIndex].isClose == 1"
  6116. >
  6117. 展开
  6118. </div>
  6119. </div>
  6120. </div>
  6121. <div
  6122. class="worksDetailBox"
  6123. v-if="
  6124. worksStudent.length && worksStudent[toolIndex].length > 0
  6125. "
  6126. >
  6127. <div
  6128. class="works"
  6129. style="
  6130. width: 200px;
  6131. height: 140px;
  6132. margin: 10px 10px 10px 0;
  6133. border-radius: 15px;
  6134. box-shadow: 0 0 6px 1px #dfdada;
  6135. "
  6136. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6137. ? worksStudent[toolIndex]
  6138. : worksStudent[toolIndex].slice(0, 6)"
  6139. :key="wIndex"
  6140. :class="w.type == 1 ? 'isTypeOne' : ''"
  6141. >
  6142. <div class="workImg" v-if="w.type == 0">
  6143. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6144. <img :src="w.works" @click="previewImg(w.works)" alt />
  6145. <div
  6146. class="answerScore"
  6147. v-if="w.score"
  6148. @click.stop="openScore(w)"
  6149. :class="{
  6150. rightW:
  6151. w.userid == userid ||
  6152. tType == 1 ||
  6153. tType == 4 ||
  6154. w.ateacher == userid,
  6155. }"
  6156. >
  6157. {{ JSON.parse(w.score).wScore }}分
  6158. </div>
  6159. <div
  6160. class="answerScore"
  6161. @click.stop="openScore(w)"
  6162. v-else-if="courseDetail.userid == userid"
  6163. :class="{
  6164. rightW:
  6165. w.userid == userid ||
  6166. tType == 1 ||
  6167. tType == 4 ||
  6168. w.ateacher == userid,
  6169. }"
  6170. >
  6171. 评分
  6172. </div>
  6173. <img
  6174. class="deleteImg"
  6175. src="../../assets/deleteworks.png"
  6176. v-if="w.userid == userid || tType == 1 || tType == 4"
  6177. @click.stop="deleteWorks(w.wid)"
  6178. alt
  6179. />
  6180. </div>
  6181. <div class="workImg" v-if="w.type == 1">
  6182. <img :src="word" @click="openFile(w.works)" alt />
  6183. <!-- @click="openFile(w.works)" -->
  6184. <div
  6185. class="answerScore"
  6186. v-if="w.score"
  6187. @click.stop="openScore(w)"
  6188. :class="{
  6189. rightW:
  6190. w.userid == userid ||
  6191. tType == 1 ||
  6192. tType == 4 ||
  6193. w.ateacher == userid,
  6194. }"
  6195. >
  6196. {{ JSON.parse(w.score).wScore }}分
  6197. </div>
  6198. <div
  6199. class="answerScore"
  6200. @click.stop="openScore(w)"
  6201. v-else-if="courseDetail.userid == userid"
  6202. :class="{
  6203. rightW:
  6204. w.userid == userid ||
  6205. tType == 1 ||
  6206. tType == 4 ||
  6207. w.ateacher == userid,
  6208. }"
  6209. >
  6210. 评分
  6211. </div>
  6212. <img
  6213. class="deleteImg"
  6214. src="../../assets/deleteworks.png"
  6215. v-if="w.userid == userid || tType == 1 || tType == 4"
  6216. @click.stop="deleteWorks(w.wid)"
  6217. alt
  6218. />
  6219. </div>
  6220. <div class="workImg" v-if="w.type == 3">
  6221. <img
  6222. style="cursor: pointer"
  6223. :src="video"
  6224. @click="openVideo(w)"
  6225. alt
  6226. />
  6227. <!-- @click="openVideo(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 == 12">
  6265. <img
  6266. style="cursor: pointer"
  6267. :src="word2"
  6268. @click="downloadFile(w.works)"
  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="comment" style="min-width: 200px">
  6309. <div class="worksName">
  6310. <div>{{ w.sName }}</div>
  6311. </div>
  6312. <div class="commentList">
  6313. <div class="commentList">
  6314. <div
  6315. class="commentImg"
  6316. @click="
  6317. isLikes(w.wid, userid, 1, null, w.isLikes)
  6318. "
  6319. >
  6320. <img
  6321. :src="w.isLikes == true ? likes : noLikes"
  6322. alt=""
  6323. />
  6324. </div>
  6325. <div>{{ w.likesCount }}</div>
  6326. </div>
  6327. <div class="commentList" style="margin-right: 15px">
  6328. <div
  6329. class="commentImg"
  6330. @click="commentOther(w, toolIndex, wIndex)"
  6331. >
  6332. <img
  6333. src="../../assets/icon/comment/comment.png"
  6334. alt=""
  6335. />
  6336. </div>
  6337. <div>{{ w.commentCount }}</div>
  6338. </div>
  6339. </div>
  6340. </div>
  6341. </div>
  6342. </div>
  6343. <div class="noWorksS">
  6344. <div
  6345. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6346. :key="sIndex"
  6347. class="noWorksName"
  6348. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  6349. :class="{ isWork: s.type == '2' }"
  6350. >
  6351. {{ s.student }}
  6352. </div>
  6353. </div>
  6354. </div>
  6355. <div
  6356. v-if="
  6357. tType &&
  6358. ((tType == 2 && sIsOpen == true) ||
  6359. tType == 1 ||
  6360. tType == 4) &&
  6361. tool.tool.indexOf(32) != -1
  6362. "
  6363. class="worksBox"
  6364. >
  6365. <div
  6366. class="zuoyeYulan"
  6367. v-if="
  6368. worksStudent.length && worksStudent[toolIndex].length > 0
  6369. "
  6370. >
  6371. <div class="worksTop">
  6372. <div>作业预览</div>
  6373. <div
  6374. class="corOpen"
  6375. @click="contract(toolIndex)"
  6376. v-if="
  6377. worksStudent[toolIndex].length > 6 &&
  6378. isCloseList[toolIndex].isClose == 0
  6379. "
  6380. >
  6381. 收缩
  6382. </div>
  6383. <div
  6384. class="corOpen"
  6385. @click="contract(toolIndex)"
  6386. v-if="isCloseList[toolIndex].isClose == 1"
  6387. >
  6388. 展开
  6389. </div>
  6390. </div>
  6391. </div>
  6392. <div
  6393. class="worksDetailBox"
  6394. v-if="
  6395. worksStudent.length && worksStudent[toolIndex].length > 0
  6396. "
  6397. >
  6398. <div
  6399. class="works"
  6400. style="
  6401. width: 200px;
  6402. height: 140px;
  6403. margin: 10px 10px 10px 0;
  6404. border-radius: 15px;
  6405. box-shadow: 0 0 6px 1px #dfdada;
  6406. "
  6407. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6408. ? worksStudent[toolIndex]
  6409. : worksStudent[toolIndex].slice(0, 6)"
  6410. :key="wIndex"
  6411. :class="w.type == 1 ? 'isTypeOne' : ''"
  6412. >
  6413. <div class="workImg">
  6414. <img :src="word2" @click="downloadFile(w.works)" alt />
  6415. <div
  6416. class="answerScore"
  6417. v-if="w.score"
  6418. @click.stop="openScore(w)"
  6419. :class="{
  6420. rightW:
  6421. w.userid == userid ||
  6422. tType == 1 ||
  6423. tType == 4 ||
  6424. w.ateacher == userid,
  6425. }"
  6426. >
  6427. {{ JSON.parse(w.score).wScore }}分
  6428. </div>
  6429. <div
  6430. class="answerScore"
  6431. @click.stop="openScore(w)"
  6432. v-else-if="courseDetail.userid == userid"
  6433. :class="{
  6434. rightW:
  6435. w.userid == userid ||
  6436. tType == 1 ||
  6437. tType == 4 ||
  6438. w.ateacher == userid,
  6439. }"
  6440. >
  6441. 评分
  6442. </div>
  6443. <img
  6444. class="deleteImg"
  6445. src="../../assets/deleteworks.png"
  6446. v-if="w.userid == userid || tType == 1 || tType == 4"
  6447. @click.stop="deleteWorks(w.wid)"
  6448. alt
  6449. />
  6450. </div>
  6451. <div class="comment" style="min-width: 200px">
  6452. <div class="worksName">
  6453. <div>{{ w.sName }}</div>
  6454. </div>
  6455. <div class="commentList">
  6456. <div class="commentList">
  6457. <div
  6458. class="commentImg"
  6459. @click="
  6460. isLikes(w.wid, userid, 1, null, w.isLikes)
  6461. "
  6462. >
  6463. <img
  6464. :src="w.isLikes == true ? likes : noLikes"
  6465. alt=""
  6466. />
  6467. </div>
  6468. <div>{{ w.likesCount }}</div>
  6469. </div>
  6470. <div class="commentList" style="margin-right: 15px">
  6471. <div
  6472. class="commentImg"
  6473. @click="commentOther(w, toolIndex, wIndex)"
  6474. >
  6475. <img
  6476. src="../../assets/icon/comment/comment.png"
  6477. alt=""
  6478. />
  6479. </div>
  6480. <div>{{ w.commentCount }}</div>
  6481. </div>
  6482. </div>
  6483. </div>
  6484. </div>
  6485. </div>
  6486. <div class="noWorksS">
  6487. <div
  6488. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6489. :key="sIndex"
  6490. class="noWorksName"
  6491. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  6492. :class="{ isWork: s.type == '2' }"
  6493. >
  6494. {{ s.student }}
  6495. </div>
  6496. </div>
  6497. </div>
  6498. <div
  6499. v-if="
  6500. tType &&
  6501. ((tType == 2 && sIsOpen == true) ||
  6502. tType == 1 ||
  6503. tType == 4) &&
  6504. tool.tool.indexOf(57) != -1
  6505. "
  6506. class="worksBox"
  6507. >
  6508. <div
  6509. class="zuoyeYulan"
  6510. v-if="
  6511. worksStudent.length && worksStudent[toolIndex].length > 0
  6512. "
  6513. >
  6514. <div class="worksTop">
  6515. <div>作业预览</div>
  6516. <div
  6517. class="corOpen"
  6518. @click="contract(toolIndex)"
  6519. v-if="
  6520. worksStudent[toolIndex].length > 6 &&
  6521. isCloseList[toolIndex].isClose == 0
  6522. "
  6523. >
  6524. 收缩
  6525. </div>
  6526. <div
  6527. class="corOpen"
  6528. @click="contract(toolIndex)"
  6529. v-if="isCloseList[toolIndex].isClose == 1"
  6530. >
  6531. 展开
  6532. </div>
  6533. </div>
  6534. </div>
  6535. <div
  6536. class="worksDetailBox"
  6537. v-if="
  6538. worksStudent.length && worksStudent[toolIndex].length > 0
  6539. "
  6540. >
  6541. <div
  6542. class="works"
  6543. style="
  6544. width: 200px;
  6545. height: 140px;
  6546. margin: 10px 10px 10px 0;
  6547. border-radius: 15px;
  6548. box-shadow: 0 0 6px 1px #dfdada;
  6549. "
  6550. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6551. ? worksStudent[toolIndex]
  6552. : worksStudent[toolIndex].slice(0, 6)"
  6553. :key="wIndex"
  6554. :class="w.type == 1 ? 'isTypeOne' : ''"
  6555. >
  6556. <div class="workImg">
  6557. <img
  6558. :src="word2"
  6559. @click="downloadFile(w.works)"
  6560. v-if="w.type == 12"
  6561. alt
  6562. />
  6563. <img
  6564. :src="word2"
  6565. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  6566. v-else-if="w.type == 15"
  6567. alt
  6568. />
  6569. <div
  6570. class="answerScore"
  6571. v-if="w.score"
  6572. @click.stop="openScore(w)"
  6573. :class="{
  6574. rightW:
  6575. w.userid == userid ||
  6576. tType == 1 ||
  6577. tType == 4 ||
  6578. w.ateacher == userid,
  6579. }"
  6580. >
  6581. {{ JSON.parse(w.score).wScore }}分
  6582. </div>
  6583. <div
  6584. class="answerScore"
  6585. @click.stop="openScore(w)"
  6586. v-else-if="courseDetail.userid == userid"
  6587. :class="{
  6588. rightW:
  6589. w.userid == userid ||
  6590. tType == 1 ||
  6591. tType == 4 ||
  6592. w.ateacher == userid,
  6593. }"
  6594. >
  6595. 评分
  6596. </div>
  6597. <img
  6598. class="deleteImg"
  6599. src="../../assets/deleteworks.png"
  6600. v-if="w.userid == userid || tType == 1 || tType == 4"
  6601. @click.stop="deleteWorks(w.wid)"
  6602. alt
  6603. />
  6604. </div>
  6605. <div class="comment" style="min-width: 200px">
  6606. <div class="worksName">
  6607. <div>{{ w.sName }}</div>
  6608. </div>
  6609. <div class="commentList">
  6610. <div class="commentList">
  6611. <div
  6612. class="commentImg"
  6613. @click="
  6614. isLikes(w.wid, userid, 1, null, w.isLikes)
  6615. "
  6616. >
  6617. <img
  6618. :src="w.isLikes == true ? likes : noLikes"
  6619. alt=""
  6620. />
  6621. </div>
  6622. <div>{{ w.likesCount }}</div>
  6623. </div>
  6624. <div class="commentList" style="margin-right: 15px">
  6625. <div
  6626. class="commentImg"
  6627. @click="commentOther(w, toolIndex, wIndex)"
  6628. >
  6629. <img
  6630. src="../../assets/icon/comment/comment.png"
  6631. alt=""
  6632. />
  6633. </div>
  6634. <div>{{ w.commentCount }}</div>
  6635. </div>
  6636. </div>
  6637. </div>
  6638. </div>
  6639. </div>
  6640. <div class="noWorksS">
  6641. <div
  6642. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6643. :key="sIndex"
  6644. class="noWorksName"
  6645. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  6646. :class="{ isWork: s.type == '2' }"
  6647. >
  6648. {{ s.student }}
  6649. </div>
  6650. </div>
  6651. </div>
  6652. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  6653. <div
  6654. class="zuoyeYulan"
  6655. v-if="
  6656. worksStudent.length && worksStudent[toolIndex].length > 0
  6657. "
  6658. >
  6659. <span>作业预览</span>
  6660. <div
  6661. class="corOpen"
  6662. @click="contract(toolIndex)"
  6663. v-if="
  6664. worksStudent[toolIndex].length > 6 &&
  6665. isCloseList[toolIndex].isClose == 0
  6666. "
  6667. >
  6668. 收缩
  6669. </div>
  6670. <div
  6671. class="corOpen"
  6672. @click="contract(toolIndex)"
  6673. v-if="isCloseList[toolIndex].isClose == 1"
  6674. >
  6675. 展开
  6676. </div>
  6677. </div>
  6678. <div
  6679. class="worksDetailBox"
  6680. v-if="
  6681. worksStudent.length && worksStudent[toolIndex].length > 0
  6682. "
  6683. >
  6684. <div
  6685. class="works"
  6686. style="
  6687. width: 200px;
  6688. height: 140px;
  6689. margin: 10px 10px 10px 0;
  6690. border-radius: 15px;
  6691. box-shadow: 0 0 6px 1px #dfdada;
  6692. "
  6693. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6694. ? worksStudent[toolIndex]
  6695. : worksStudent[toolIndex].slice(0, 6)"
  6696. :key="wIndex"
  6697. :class="w.type == 1 ? 'isTypeOne' : ''"
  6698. >
  6699. <div class="workImg" v-if="w.type == 0">
  6700. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6701. <img :src="w.works" @click="previewImg(w.works)" alt />
  6702. <div
  6703. class="answerScore"
  6704. v-if="w.score"
  6705. @click.stop="openScore(w)"
  6706. :class="{
  6707. rightW:
  6708. w.userid == userid ||
  6709. tType == 1 ||
  6710. tType == 4 ||
  6711. w.ateacher == userid,
  6712. }"
  6713. >
  6714. {{ JSON.parse(w.score).wScore }}分
  6715. </div>
  6716. <div
  6717. class="answerScore"
  6718. @click.stop="openScore(w)"
  6719. v-else-if="courseDetail.userid == userid"
  6720. :class="{
  6721. rightW:
  6722. w.userid == userid ||
  6723. tType == 1 ||
  6724. tType == 4 ||
  6725. w.ateacher == userid,
  6726. }"
  6727. >
  6728. 评分
  6729. </div>
  6730. <img
  6731. class="deleteImg"
  6732. src="../../assets/deleteworks.png"
  6733. v-if="w.userid == userid || tType == 1 || tType == 4"
  6734. @click.stop="deleteWorks(w.wid)"
  6735. alt
  6736. />
  6737. </div>
  6738. <div
  6739. class="workImg"
  6740. style="cursor: pointer"
  6741. v-if="w.type == 1"
  6742. >
  6743. <img :src="word" @click="openFile(w.works)" alt />
  6744. <!-- @click="openFile(w.works)" -->
  6745. <div
  6746. class="answerScore"
  6747. v-if="w.score"
  6748. @click.stop="openScore(w)"
  6749. :class="{
  6750. rightW:
  6751. w.userid == userid ||
  6752. tType == 1 ||
  6753. tType == 4 ||
  6754. w.ateacher == userid,
  6755. }"
  6756. >
  6757. {{ JSON.parse(w.score).wScore }}分
  6758. </div>
  6759. <div
  6760. class="answerScore"
  6761. @click.stop="openScore(w)"
  6762. v-else-if="courseDetail.userid == userid"
  6763. :class="{
  6764. rightW:
  6765. w.userid == userid ||
  6766. tType == 1 ||
  6767. tType == 4 ||
  6768. w.ateacher == userid,
  6769. }"
  6770. >
  6771. 评分
  6772. </div>
  6773. <img
  6774. class="deleteImg"
  6775. src="../../assets/deleteworks.png"
  6776. v-if="w.userid == userid || tType == 1 || tType == 4"
  6777. @click.stop="deleteWorks(w.wid)"
  6778. alt
  6779. />
  6780. </div>
  6781. <div class="workImg" v-if="w.type == 3">
  6782. <img
  6783. style="cursor: pointer"
  6784. :src="video"
  6785. @click="openVideo(w)"
  6786. alt
  6787. />
  6788. <!-- @click="openVideo(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="comment" style="min-width: 200px">
  6826. <div class="worksName">
  6827. <div
  6828. style="cursor: pointer"
  6829. @click="
  6830. openSname(w.sName, w.wid, toolIndex, w.userid)
  6831. "
  6832. >
  6833. {{ w.sName }}
  6834. </div>
  6835. </div>
  6836. <div class="commentList">
  6837. <div class="commentList">
  6838. <div
  6839. class="commentImg"
  6840. @click="
  6841. isLikes(w.wid, userid, 1, null, w.isLikes)
  6842. "
  6843. >
  6844. <img
  6845. :src="w.isLikes == true ? likes : noLikes"
  6846. alt=""
  6847. />
  6848. </div>
  6849. <div>{{ w.likesCount }}</div>
  6850. </div>
  6851. <div class="commentList" style="margin-right: 15px">
  6852. <div
  6853. class="commentImg"
  6854. @click="commentOther(w, toolIndex, wIndex)"
  6855. >
  6856. <img
  6857. src="../../assets/icon/comment/comment.png"
  6858. alt=""
  6859. />
  6860. </div>
  6861. <div>{{ w.commentCount }}</div>
  6862. </div>
  6863. </div>
  6864. </div>
  6865. </div>
  6866. </div>
  6867. <div class="noWorksS">
  6868. <div
  6869. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6870. :key="sIndex"
  6871. class="noWorksName"
  6872. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  6873. :class="{ isWork: s.type == '2' }"
  6874. >
  6875. {{ s.student }}
  6876. </div>
  6877. </div>
  6878. </div>
  6879. <div
  6880. v-if="
  6881. tType &&
  6882. ((tType == 2 && sIsOpen == true) ||
  6883. tType == 1 ||
  6884. tType == 4) &&
  6885. tool.tool.indexOf(4) != -1
  6886. "
  6887. class="worksBox"
  6888. >
  6889. <div
  6890. class="zuoyeYulan"
  6891. v-if="
  6892. worksStudent.length && worksStudent[toolIndex].length > 0
  6893. "
  6894. >
  6895. <div class="worksTop">
  6896. <div>作业预览</div>
  6897. <div
  6898. class="corOpen"
  6899. @click="contract(toolIndex)"
  6900. v-if="
  6901. worksStudent[toolIndex].length > 6 &&
  6902. isCloseList[toolIndex].isClose == 0
  6903. "
  6904. >
  6905. 收缩
  6906. </div>
  6907. <div
  6908. class="corOpen"
  6909. @click="contract(toolIndex)"
  6910. v-if="isCloseList[toolIndex].isClose == 1"
  6911. >
  6912. 展开
  6913. </div>
  6914. </div>
  6915. </div>
  6916. <div>
  6917. <div
  6918. class="worksDetailBox"
  6919. v-if="
  6920. worksStudent.length &&
  6921. worksStudent[toolIndex].length > 0
  6922. "
  6923. >
  6924. <div
  6925. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6926. 0
  6927. ? worksStudent[toolIndex]
  6928. : worksStudent[toolIndex].slice(0, 6)"
  6929. :key="wIndex"
  6930. class="isWorksName"
  6931. @click="
  6932. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6933. "
  6934. >
  6935. {{ w.sName }}
  6936. <img
  6937. class="deleteImg deleteImg2"
  6938. src="../../assets/deleteworks.png"
  6939. v-if="w.userid == userid || tType == 1 || tType == 4"
  6940. @click.stop="deleteWorks(w.wid)"
  6941. alt
  6942. />
  6943. </div>
  6944. </div>
  6945. </div>
  6946. <div class="noWorksS">
  6947. <div
  6948. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6949. :key="sIndex"
  6950. class="noWorksName"
  6951. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6952. :class="{ isWork: s.type == '2' }"
  6953. >
  6954. {{ s.student }}
  6955. </div>
  6956. </div>
  6957. </div>
  6958. <div
  6959. v-if="
  6960. tType &&
  6961. ((tType == 2 && sIsOpen == true) ||
  6962. tType == 1 ||
  6963. tType == 4) &&
  6964. tool.tool.indexOf(45) != -1
  6965. "
  6966. class="worksBox"
  6967. >
  6968. <div
  6969. class="zuoyeYulan"
  6970. v-if="
  6971. worksStudent.length && worksStudent[toolIndex].length > 0
  6972. "
  6973. >
  6974. <div class="worksTop">
  6975. <div>作业预览</div>
  6976. <div
  6977. class="corOpen"
  6978. @click="contract(toolIndex)"
  6979. v-if="
  6980. worksStudent[toolIndex].length > 6 &&
  6981. isCloseList[toolIndex].isClose == 0
  6982. "
  6983. >
  6984. 收缩
  6985. </div>
  6986. <div
  6987. class="corOpen"
  6988. @click="contract(toolIndex)"
  6989. v-if="isCloseList[toolIndex].isClose == 1"
  6990. >
  6991. 展开
  6992. </div>
  6993. </div>
  6994. </div>
  6995. <div>
  6996. <div
  6997. class="worksDetailBox"
  6998. v-if="
  6999. worksStudent.length &&
  7000. worksStudent[toolIndex].length > 0
  7001. "
  7002. >
  7003. <div
  7004. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  7005. 0
  7006. ? worksStudent[toolIndex]
  7007. : worksStudent[toolIndex].slice(0, 6)"
  7008. :key="wIndex"
  7009. class="isWorksName"
  7010. @click="
  7011. openTools(45, toolIndex, taskCount, w.works, w.sName)
  7012. "
  7013. >
  7014. {{ w.sName }}
  7015. <img
  7016. class="deleteImg deleteImg2"
  7017. src="../../assets/deleteworks.png"
  7018. v-if="w.userid == userid || tType == 1 || tType == 4"
  7019. @click.stop="deleteWorks(w.wid)"
  7020. alt
  7021. />
  7022. </div>
  7023. </div>
  7024. </div>
  7025. <div class="noWorksS">
  7026. <div
  7027. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7028. :key="sIndex"
  7029. class="noWorksName"
  7030. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  7031. :class="{ isWork: s.type == '2' }"
  7032. >
  7033. {{ s.student }}
  7034. </div>
  7035. </div>
  7036. </div>
  7037. <div
  7038. v-if="
  7039. tType &&
  7040. ((tType == 2 && sIsOpen == true) ||
  7041. tType == 1 ||
  7042. tType == 4) &&
  7043. tool.tool.indexOf(15) != -1
  7044. "
  7045. class="worksBox"
  7046. >
  7047. <div
  7048. class="zuoyeYulan"
  7049. v-if="
  7050. worksStudent.length && worksStudent[toolIndex].length > 0
  7051. "
  7052. >
  7053. <div class="worksTop">
  7054. <div>作业预览</div>
  7055. <div
  7056. class="corOpen"
  7057. @click="contract(toolIndex)"
  7058. v-if="
  7059. worksStudent[toolIndex].length > 6 &&
  7060. isCloseList[toolIndex].isClose == 0
  7061. "
  7062. >
  7063. 收缩
  7064. </div>
  7065. <div
  7066. class="corOpen"
  7067. @click="contract(toolIndex)"
  7068. v-if="isCloseList[toolIndex].isClose == 1"
  7069. >
  7070. 展开
  7071. </div>
  7072. </div>
  7073. </div>
  7074. <div
  7075. class="worksDetailBox"
  7076. v-if="
  7077. worksStudent.length && worksStudent[toolIndex].length > 0
  7078. "
  7079. >
  7080. <div
  7081. class="works"
  7082. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7083. ? worksStudent[toolIndex]
  7084. : worksStudent[toolIndex].slice(0, 6)"
  7085. :key="wIndex"
  7086. >
  7087. <div
  7088. class="workImg"
  7089. style="
  7090. border-radius: 15px;
  7091. box-shadow: #eee 0px 0px 5px 5px;
  7092. "
  7093. >
  7094. <!-- <img
  7095. src="../../assets/icon/works/noImg.png"
  7096. @click="openTools(15, toolIndex, taskCount, w.works)"
  7097. alt=""
  7098. />-->
  7099. <div
  7100. class="answerBg"
  7101. style="border-radius: 15px 15px 0 0"
  7102. @click="commentOther(w, toolIndex, wIndex)"
  7103. >
  7104. <!-- <div>{{ w.sName }}</div> -->
  7105. <div class="answerContent">
  7106. {{ JSON.parse(w.works)[0].answer }}
  7107. </div>
  7108. <div
  7109. class="answerScore"
  7110. v-if="w.score"
  7111. @click.stop="openScore(w)"
  7112. :class="{
  7113. rightW:
  7114. w.userid == userid || tType == 1 || tType == 4,
  7115. }"
  7116. >
  7117. {{ JSON.parse(w.score).wScore }}分
  7118. </div>
  7119. <div
  7120. class="answerScore"
  7121. @click.stop="openScore(w)"
  7122. v-else-if="courseDetail.userid == userid"
  7123. :class="{
  7124. rightW:
  7125. w.userid == userid || tType == 1 || tType == 4,
  7126. }"
  7127. >
  7128. 评分
  7129. </div>
  7130. <img
  7131. class="deleteImg"
  7132. src="../../assets/deleteworks.png"
  7133. v-if="
  7134. w.userid == userid || tType == 1 || tType == 4
  7135. "
  7136. @click.stop="deleteWorks(w.wid)"
  7137. alt
  7138. />
  7139. </div>
  7140. <div class="comment">
  7141. <div class="worksName">
  7142. <div>{{ w.sName }}</div>
  7143. </div>
  7144. <div class="commentList">
  7145. <div
  7146. class="commentImg"
  7147. @click="
  7148. isLikes(w.wid, userid, 1, null, w.isLikes)
  7149. "
  7150. >
  7151. <img
  7152. :src="w.isLikes == true ? likes : noLikes"
  7153. alt=""
  7154. />
  7155. </div>
  7156. <div>{{ w.likesCount }}</div>
  7157. </div>
  7158. <div class="commentList" style="margin-right: 15px">
  7159. <div
  7160. class="commentImg"
  7161. @click="commentOther(w, toolIndex, wIndex)"
  7162. >
  7163. <img
  7164. src="../../assets/icon/comment/comment.png"
  7165. alt=""
  7166. />
  7167. </div>
  7168. <div>{{ w.commentCount }}</div>
  7169. </div>
  7170. </div>
  7171. </div>
  7172. </div>
  7173. </div>
  7174. <div class="noWorksS">
  7175. <div
  7176. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7177. :key="sIndex"
  7178. class="noWorksName"
  7179. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  7180. :class="{ isWork: s.type == '2' }"
  7181. >
  7182. {{ s.student }}
  7183. </div>
  7184. </div>
  7185. </div>
  7186. <div
  7187. v-if="
  7188. tType &&
  7189. ((tType == 2 && sIsOpen == true) ||
  7190. tType == 1 ||
  7191. tType == 4) &&
  7192. tool.tool.indexOf(1) != -1
  7193. "
  7194. class="worksBox"
  7195. >
  7196. <div
  7197. class="zuoyeYulan"
  7198. v-if="
  7199. worksStudent.length && worksStudent[toolIndex].length > 0
  7200. "
  7201. >
  7202. <div class="worksTop">
  7203. <div>作业预览</div>
  7204. <div
  7205. class="corOpen"
  7206. @click="contract(toolIndex)"
  7207. v-if="
  7208. worksStudent[toolIndex].length > 6 &&
  7209. isCloseList[toolIndex].isClose == 0
  7210. "
  7211. >
  7212. 收缩
  7213. </div>
  7214. <div
  7215. class="corOpen"
  7216. @click="contract(toolIndex)"
  7217. v-if="isCloseList[toolIndex].isClose == 1"
  7218. >
  7219. 展开
  7220. </div>
  7221. </div>
  7222. </div>
  7223. <div
  7224. class="worksDetailBox"
  7225. v-if="
  7226. worksStudent.length && worksStudent[toolIndex].length > 0
  7227. "
  7228. >
  7229. <div
  7230. class="works"
  7231. style="
  7232. width: 200px;
  7233. height: 140px;
  7234. margin: 10px 10px 10px 0;
  7235. border-radius: 15px;
  7236. box-shadow: 0 0 6px 1px #dfdada;
  7237. "
  7238. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7239. ? worksStudent[toolIndex]
  7240. : worksStudent[toolIndex].slice(0, 6)"
  7241. :key="wIndex"
  7242. >
  7243. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  7244. <div class="workImg">
  7245. <img :src="w.works" @click="previewImg(w.works)" alt />
  7246. <div
  7247. class="answerScore"
  7248. v-if="w.score"
  7249. @click.stop="openScore(w)"
  7250. :class="{
  7251. rightW:
  7252. w.userid == userid || tType == 1 || tType == 4,
  7253. }"
  7254. >
  7255. {{ JSON.parse(w.score).wScore }}分
  7256. </div>
  7257. <div
  7258. class="answerScore"
  7259. @click.stop="openScore(w)"
  7260. v-else-if="courseDetail.userid == userid"
  7261. :class="{
  7262. rightW:
  7263. w.userid == userid || tType == 1 || tType == 4,
  7264. }"
  7265. >
  7266. 评分
  7267. </div>
  7268. <img
  7269. class="deleteImg"
  7270. src="../../assets/deleteworks.png"
  7271. v-if="w.userid == userid || tType == 1 || tType == 4"
  7272. @click.stop="deleteWorks(w.wid)"
  7273. alt
  7274. />
  7275. </div>
  7276. <div class="comment" style="min-width: 200px">
  7277. <div class="worksName">
  7278. <div>{{ w.sName }}</div>
  7279. </div>
  7280. <div class="commentList">
  7281. <div class="commentList">
  7282. <div
  7283. class="commentImg"
  7284. @click="
  7285. isLikes(w.wid, userid, 1, null, w.isLikes)
  7286. "
  7287. >
  7288. <img
  7289. :src="w.isLikes == true ? likes : noLikes"
  7290. alt=""
  7291. />
  7292. </div>
  7293. <div>{{ w.likesCount }}</div>
  7294. </div>
  7295. <div class="commentList" style="margin-right: 15px">
  7296. <div
  7297. class="commentImg"
  7298. @click="commentOther(w, toolIndex, wIndex)"
  7299. >
  7300. <img
  7301. src="../../assets/icon/comment/comment.png"
  7302. alt=""
  7303. />
  7304. </div>
  7305. <div>{{ w.commentCount }}</div>
  7306. </div>
  7307. </div>
  7308. </div>
  7309. </div>
  7310. </div>
  7311. <div class="noWorksS">
  7312. <div
  7313. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7314. :key="sIndex"
  7315. class="noWorksName"
  7316. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7317. :class="{ isWork: s.type == '2' }"
  7318. >
  7319. {{ s.student }}
  7320. </div>
  7321. </div>
  7322. </div>
  7323. <div
  7324. v-if="
  7325. tType &&
  7326. ((tType == 2 && sIsOpen == true) ||
  7327. tType == 1 ||
  7328. tType == 4) &&
  7329. tool.tool.indexOf(3) != -1
  7330. "
  7331. class="worksBox"
  7332. >
  7333. <div
  7334. class="zuoyeYulan"
  7335. v-if="
  7336. worksStudent.length && worksStudent[toolIndex].length > 0
  7337. "
  7338. >
  7339. <div class="worksTop">
  7340. <div>作业预览</div>
  7341. <div
  7342. class="corOpen"
  7343. @click="contract(toolIndex)"
  7344. v-if="
  7345. worksStudent[toolIndex].length > 6 &&
  7346. isCloseList[toolIndex].isClose == 0
  7347. "
  7348. >
  7349. 收缩
  7350. </div>
  7351. <div
  7352. class="corOpen"
  7353. @click="contract(toolIndex)"
  7354. v-if="isCloseList[toolIndex].isClose == 1"
  7355. >
  7356. 展开
  7357. </div>
  7358. </div>
  7359. </div>
  7360. <div
  7361. class="worksDetailBox"
  7362. v-if="
  7363. worksStudent.length && worksStudent[toolIndex].length > 0
  7364. "
  7365. >
  7366. <div
  7367. class="works"
  7368. style="
  7369. width: 200px;
  7370. height: 140px;
  7371. margin: 10px 10px 10px 0;
  7372. border-radius: 15px;
  7373. box-shadow: 0 0 6px 1px #dfdada;
  7374. "
  7375. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7376. ? worksStudent[toolIndex]
  7377. : worksStudent[toolIndex].slice(0, 6)"
  7378. :key="wIndex"
  7379. >
  7380. <!-- @click="previewImg(w.works)" -->
  7381. <div class="workImg">
  7382. <img :src="w.works" @click="previewImg(w.works)" alt />
  7383. <div
  7384. class="answerScore"
  7385. v-if="w.score"
  7386. @click.stop="openScore(w)"
  7387. :class="{
  7388. rightW:
  7389. w.userid == userid || tType == 1 || tType == 4,
  7390. }"
  7391. >
  7392. {{ JSON.parse(w.score).wScore }}分
  7393. </div>
  7394. <div
  7395. class="answerScore"
  7396. @click.stop="openScore(w)"
  7397. v-else-if="courseDetail.userid == userid"
  7398. :class="{
  7399. rightW:
  7400. w.userid == userid || tType == 1 || tType == 4,
  7401. }"
  7402. >
  7403. 评分
  7404. </div>
  7405. <img
  7406. class="deleteImg"
  7407. src="../../assets/deleteworks.png"
  7408. v-if="w.userid == userid || tType == 1 || tType == 4"
  7409. @click.stop="deleteWorks(w.wid)"
  7410. alt
  7411. />
  7412. </div>
  7413. <div class="comment" style="min-width: 200px">
  7414. <div class="worksName">
  7415. <div>{{ w.sName }}</div>
  7416. </div>
  7417. <div class="commentList">
  7418. <div class="commentList">
  7419. <div
  7420. class="commentImg"
  7421. @click="
  7422. isLikes(w.wid, userid, 1, null, w.isLikes)
  7423. "
  7424. >
  7425. <img
  7426. :src="w.isLikes == true ? likes : noLikes"
  7427. alt=""
  7428. />
  7429. </div>
  7430. <div>{{ w.likesCount }}</div>
  7431. </div>
  7432. <div class="commentList" style="margin-right: 15px">
  7433. <div
  7434. class="commentImg"
  7435. @click="commentOther(w, toolIndex, wIndex)"
  7436. >
  7437. <img
  7438. src="../../assets/icon/comment/comment.png"
  7439. alt=""
  7440. />
  7441. </div>
  7442. <div>{{ w.commentCount }}</div>
  7443. </div>
  7444. </div>
  7445. </div>
  7446. </div>
  7447. </div>
  7448. <div class="noWorksS">
  7449. <div
  7450. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7451. :key="sIndex"
  7452. class="noWorksName"
  7453. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7454. :class="{ isWork: s.type == '2' }"
  7455. >
  7456. {{ s.student }}
  7457. </div>
  7458. </div>
  7459. </div>
  7460. <div
  7461. v-if="
  7462. tType &&
  7463. ((tType == 2 && sIsOpen == true) ||
  7464. tType == 1 ||
  7465. tType == 4) &&
  7466. tool.tool.indexOf(6) != -1
  7467. "
  7468. class="worksBox"
  7469. >
  7470. <div
  7471. class="zuoyeYulan"
  7472. v-if="
  7473. worksStudent.length && worksStudent[toolIndex].length > 0
  7474. "
  7475. >
  7476. <div class="worksTop">
  7477. <div>作业预览</div>
  7478. <div
  7479. class="corOpen"
  7480. @click="contract(toolIndex)"
  7481. v-if="
  7482. worksStudent[toolIndex].length > 6 &&
  7483. isCloseList[toolIndex].isClose == 0
  7484. "
  7485. >
  7486. 收缩
  7487. </div>
  7488. <div
  7489. class="corOpen"
  7490. @click="contract(toolIndex)"
  7491. v-if="isCloseList[toolIndex].isClose == 1"
  7492. >
  7493. 展开
  7494. </div>
  7495. </div>
  7496. </div>
  7497. <div
  7498. class="worksDetailBox"
  7499. v-if="
  7500. worksStudent.length && worksStudent[toolIndex].length > 0
  7501. "
  7502. >
  7503. <div
  7504. class="works"
  7505. style="
  7506. width: 200px;
  7507. height: 140px;
  7508. margin: 10px 10px 10px 0;
  7509. border-radius: 15px;
  7510. box-shadow: 0 0 6px 1px #dfdada;
  7511. "
  7512. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7513. ? worksStudent[toolIndex]
  7514. : worksStudent[toolIndex].slice(0, 6)"
  7515. :key="wIndex"
  7516. >
  7517. <!-- @click="previewImg(w.works)" -->
  7518. <div class="workImg">
  7519. <img :src="w.works" @click="previewImg(w.works)" alt />
  7520. <div
  7521. class="answerScore"
  7522. v-if="w.score"
  7523. @click.stop="openScore(w)"
  7524. :class="{
  7525. rightW:
  7526. w.userid == userid || tType == 1 || tType == 4,
  7527. }"
  7528. >
  7529. {{ JSON.parse(w.score).wScore }}分
  7530. </div>
  7531. <div
  7532. class="answerScore"
  7533. @click.stop="openScore(w)"
  7534. v-else-if="courseDetail.userid == userid"
  7535. :class="{
  7536. rightW:
  7537. w.userid == userid || tType == 1 || tType == 4,
  7538. }"
  7539. >
  7540. 评分
  7541. </div>
  7542. <img
  7543. class="deleteImg"
  7544. src="../../assets/deleteworks.png"
  7545. v-if="w.userid == userid || tType == 1 || tType == 4"
  7546. @click.stop="deleteWorks(w.wid)"
  7547. alt
  7548. />
  7549. </div>
  7550. <div class="comment" style="min-width: 200px">
  7551. <div class="worksName">
  7552. <div>{{ w.sName }}</div>
  7553. </div>
  7554. <div class="commentList">
  7555. <div class="commentList">
  7556. <div
  7557. class="commentImg"
  7558. @click="
  7559. isLikes(w.wid, userid, 1, null, w.isLikes)
  7560. "
  7561. >
  7562. <img
  7563. :src="w.isLikes == true ? likes : noLikes"
  7564. alt=""
  7565. />
  7566. </div>
  7567. <div>{{ w.likesCount }}</div>
  7568. </div>
  7569. <div class="commentList" style="margin-right: 15px">
  7570. <div
  7571. class="commentImg"
  7572. @click="commentOther(w, toolIndex, wIndex)"
  7573. >
  7574. <img
  7575. src="../../assets/icon/comment/comment.png"
  7576. alt=""
  7577. />
  7578. </div>
  7579. <div>{{ w.commentCount }}</div>
  7580. </div>
  7581. </div>
  7582. </div>
  7583. </div>
  7584. </div>
  7585. <div class="noWorksS">
  7586. <div
  7587. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7588. :key="sIndex"
  7589. class="noWorksName"
  7590. :class="{ isWork: s.type == '2' }"
  7591. >
  7592. {{ s.student }}
  7593. </div>
  7594. </div>
  7595. </div>
  7596. <div
  7597. v-if="
  7598. tType &&
  7599. ((tType == 2 && sIsOpen == true) ||
  7600. tType == 1 ||
  7601. tType == 4) &&
  7602. tool.tool.indexOf(7) != -1
  7603. "
  7604. class="worksBox"
  7605. >
  7606. <div
  7607. class="zuoyeYulan"
  7608. v-if="
  7609. worksStudent.length && worksStudent[toolIndex].length > 0
  7610. "
  7611. >
  7612. <div class="worksTop">
  7613. <div>作业预览</div>
  7614. <div
  7615. class="corOpen"
  7616. @click="contract(toolIndex)"
  7617. v-if="
  7618. worksStudent[toolIndex].length > 6 &&
  7619. isCloseList[toolIndex].isClose == 0
  7620. "
  7621. >
  7622. 收缩
  7623. </div>
  7624. <div
  7625. class="corOpen"
  7626. @click="contract(toolIndex)"
  7627. v-if="isCloseList[toolIndex].isClose == 1"
  7628. >
  7629. 展开
  7630. </div>
  7631. </div>
  7632. </div>
  7633. <div
  7634. class="worksDetailBox"
  7635. v-if="
  7636. worksStudent.length && worksStudent[toolIndex].length > 0
  7637. "
  7638. >
  7639. <div
  7640. class="works"
  7641. style="
  7642. width: 200px;
  7643. height: 140px;
  7644. margin: 10px 10px 10px 0;
  7645. border-radius: 15px;
  7646. box-shadow: 0 0 6px 1px #dfdada;
  7647. "
  7648. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7649. ? worksStudent[toolIndex]
  7650. : worksStudent[toolIndex].slice(0, 6)"
  7651. :key="wIndex"
  7652. >
  7653. <!-- @click="previewImg(w.works)" -->
  7654. <div class="workImg">
  7655. <img :src="w.works" @click="previewImg(w.works)" alt />
  7656. <div
  7657. class="answerScore"
  7658. v-if="w.score"
  7659. @click.stop="openScore(w)"
  7660. :class="{
  7661. rightW:
  7662. w.userid == userid || tType == 1 || tType == 4,
  7663. }"
  7664. >
  7665. {{ JSON.parse(w.score).wScore }}分
  7666. </div>
  7667. <div
  7668. class="answerScore"
  7669. @click.stop="openScore(w)"
  7670. v-else-if="courseDetail.userid == userid"
  7671. :class="{
  7672. rightW:
  7673. w.userid == userid || tType == 1 || tType == 4,
  7674. }"
  7675. >
  7676. 评分
  7677. </div>
  7678. <img
  7679. class="deleteImg"
  7680. src="../../assets/deleteworks.png"
  7681. v-if="w.userid == userid || tType == 1 || tType == 4"
  7682. @click.stop="deleteWorks(w.wid)"
  7683. alt
  7684. />
  7685. </div>
  7686. <div class="comment" style="min-width: 200px">
  7687. <div class="worksName">
  7688. <div>{{ w.sName }}</div>
  7689. </div>
  7690. <div class="commentList">
  7691. <div class="commentList">
  7692. <div
  7693. class="commentImg"
  7694. @click="
  7695. isLikes(w.wid, userid, 1, null, w.isLikes)
  7696. "
  7697. >
  7698. <img
  7699. :src="w.isLikes == true ? likes : noLikes"
  7700. alt=""
  7701. />
  7702. </div>
  7703. <div>{{ w.likesCount }}</div>
  7704. </div>
  7705. <div class="commentList" style="margin-right: 15px">
  7706. <div
  7707. class="commentImg"
  7708. @click="commentOther(w, toolIndex, wIndex)"
  7709. >
  7710. <img
  7711. src="../../assets/icon/comment/comment.png"
  7712. alt=""
  7713. />
  7714. </div>
  7715. <div>{{ w.commentCount }}</div>
  7716. </div>
  7717. </div>
  7718. </div>
  7719. </div>
  7720. </div>
  7721. <div class="noWorksS">
  7722. <div
  7723. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7724. :key="sIndex"
  7725. class="noWorksName"
  7726. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  7727. :class="{ isWork: s.type == '2' }"
  7728. >
  7729. {{ s.student }}
  7730. </div>
  7731. </div>
  7732. </div>
  7733. <div
  7734. v-if="
  7735. tType &&
  7736. ((tType == 2 && sIsOpen == true) ||
  7737. tType == 1 ||
  7738. tType == 4) &&
  7739. tool.tool.indexOf(26) != -1
  7740. "
  7741. class="worksBox"
  7742. >
  7743. <div
  7744. class="zuoyeYulan"
  7745. v-if="
  7746. worksStudent.length && worksStudent[toolIndex].length > 0
  7747. "
  7748. >
  7749. <div class="worksTop">
  7750. <div>作业预览</div>
  7751. <div
  7752. class="corOpen"
  7753. @click="contract(toolIndex)"
  7754. v-if="
  7755. worksStudent[toolIndex].length > 6 &&
  7756. isCloseList[toolIndex].isClose == 0
  7757. "
  7758. >
  7759. 收缩
  7760. </div>
  7761. <div
  7762. class="corOpen"
  7763. @click="contract(toolIndex)"
  7764. v-if="isCloseList[toolIndex].isClose == 1"
  7765. >
  7766. 展开
  7767. </div>
  7768. </div>
  7769. </div>
  7770. <div
  7771. class="worksDetailBox"
  7772. v-if="
  7773. worksStudent.length && worksStudent[toolIndex].length > 0
  7774. "
  7775. >
  7776. <div
  7777. class="works"
  7778. style="width: 240px; height: 140px; overflow: hidden"
  7779. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7780. ? worksStudent[toolIndex]
  7781. : worksStudent[toolIndex].slice(0, 6)"
  7782. :key="wIndex"
  7783. :class="w.type == 1 ? 'isTypeOne' : ''"
  7784. >
  7785. <div class="workImg" v-if="w.type == 0">
  7786. <img :src="w.works" @click="previewImg(w.works)" alt />
  7787. <img
  7788. class="deleteImg"
  7789. src="../../assets/deleteworks.png"
  7790. v-if="w.userid == userid || tType == 1 || tType == 4"
  7791. @click.stop="deleteWorks(w.wid)"
  7792. alt
  7793. />
  7794. </div>
  7795. <div class="workImg" v-if="w.type == 1">
  7796. <img :src="word" @click="openFile(w.works)" alt />
  7797. <img
  7798. class="deleteImg"
  7799. src="../../assets/deleteworks.png"
  7800. v-if="w.userid == userid || tType == 1 || tType == 4"
  7801. @click.stop="deleteWorks(w.wid)"
  7802. alt
  7803. />
  7804. </div>
  7805. <div class="worksName">
  7806. <div>{{ w.sName }}</div>
  7807. </div>
  7808. </div>
  7809. </div>
  7810. <div class="noWorksS">
  7811. <div
  7812. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7813. :key="sIndex"
  7814. class="noWorksName"
  7815. :class="{ isWork: s.type == '2' }"
  7816. >
  7817. {{ s.student }}
  7818. </div>
  7819. </div>
  7820. </div>
  7821. <div
  7822. v-if="
  7823. tType &&
  7824. ((tType == 2 && sIsOpen == true) ||
  7825. tType == 1 ||
  7826. tType == 4) &&
  7827. tool.tool.indexOf(40) != -1
  7828. "
  7829. class="worksBox"
  7830. >
  7831. <div
  7832. class="zuoyeYulan"
  7833. v-if="
  7834. worksStudent.length && worksStudent[toolIndex].length > 0
  7835. "
  7836. >
  7837. <div class="worksTop">
  7838. <div>作业预览</div>
  7839. <div
  7840. class="corOpen"
  7841. @click="contract(toolIndex)"
  7842. v-if="
  7843. worksStudent[toolIndex].length > 6 &&
  7844. isCloseList[toolIndex].isClose == 0
  7845. "
  7846. >
  7847. 收缩
  7848. </div>
  7849. <div
  7850. class="corOpen"
  7851. @click="contract(toolIndex)"
  7852. v-if="isCloseList[toolIndex].isClose == 1"
  7853. >
  7854. 展开
  7855. </div>
  7856. </div>
  7857. </div>
  7858. <div
  7859. class="worksDetailBox"
  7860. v-if="
  7861. worksStudent.length && worksStudent[toolIndex].length > 0
  7862. "
  7863. >
  7864. <div
  7865. class="works"
  7866. style="
  7867. width: 200px;
  7868. height: 140px;
  7869. margin: 10px 10px 10px 0;
  7870. border-radius: 15px;
  7871. box-shadow: 0 0 6px 1px #dfdada;
  7872. "
  7873. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7874. ? worksStudent[toolIndex]
  7875. : worksStudent[toolIndex].slice(0, 6)"
  7876. :key="wIndex"
  7877. :class="w.type == 1 ? 'isTypeOne' : ''"
  7878. >
  7879. <div class="workImg">
  7880. <img
  7881. src="../../assets/icon/works/noImg.png"
  7882. @click="openPj(w.works, toolIndex)"
  7883. alt
  7884. />
  7885. <img
  7886. class="deleteImg"
  7887. src="../../assets/deleteworks.png"
  7888. v-if="w.userid == userid || tType == 1 || tType == 4"
  7889. @click.stop="deleteWorks(w.wid)"
  7890. alt
  7891. />
  7892. </div>
  7893. <div class="comment" style="min-width: 200px">
  7894. <div class="worksName">
  7895. <div>{{ w.sName }}</div>
  7896. </div>
  7897. <div class="commentList">
  7898. <div class="commentList">
  7899. <div
  7900. class="commentImg"
  7901. @click="
  7902. isLikes(w.wid, userid, 1, null, w.isLikes)
  7903. "
  7904. >
  7905. <img
  7906. :src="w.isLikes == true ? likes : noLikes"
  7907. alt=""
  7908. />
  7909. </div>
  7910. <div>{{ w.likesCount }}</div>
  7911. </div>
  7912. <div class="commentList" style="margin-right: 15px">
  7913. <div
  7914. class="commentImg"
  7915. @click="commentOther(w, toolIndex, wIndex)"
  7916. >
  7917. <img
  7918. src="../../assets/icon/comment/comment.png"
  7919. alt=""
  7920. />
  7921. </div>
  7922. <div>{{ w.commentCount }}</div>
  7923. </div>
  7924. </div>
  7925. </div>
  7926. </div>
  7927. </div>
  7928. <div class="noWorksS">
  7929. <div
  7930. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7931. :key="sIndex"
  7932. class="noWorksName"
  7933. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  7934. :class="{ isWork: s.type == '2' }"
  7935. >
  7936. {{ s.student }}
  7937. </div>
  7938. </div>
  7939. </div>
  7940. <div
  7941. v-if="
  7942. tType &&
  7943. ((tType == 2 && sIsOpen == true) ||
  7944. tType == 1 ||
  7945. tType == 4) &&
  7946. tool.tool.indexOf(41) != -1
  7947. "
  7948. class="worksBox"
  7949. >
  7950. <div class="noWorksS">
  7951. <div
  7952. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7953. :key="sIndex"
  7954. class="noWorksName"
  7955. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  7956. :class="{ isWork: s.type == '2' }"
  7957. >
  7958. {{ s.student }}
  7959. </div>
  7960. </div>
  7961. <div
  7962. class="zuoyeYulan"
  7963. v-if="
  7964. worksStudent.length && worksStudent[toolIndex].length > 0
  7965. "
  7966. >
  7967. <div class="worksTop">
  7968. <div>作业预览</div>
  7969. <div
  7970. class="corOpen"
  7971. @click="contract(toolIndex)"
  7972. v-if="
  7973. worksStudent[toolIndex].length > 6 &&
  7974. isCloseList[toolIndex].isClose == 0
  7975. "
  7976. >
  7977. 收缩
  7978. </div>
  7979. <div
  7980. class="corOpen"
  7981. @click="contract(toolIndex)"
  7982. v-if="isCloseList[toolIndex].isClose == 1"
  7983. >
  7984. 展开
  7985. </div>
  7986. </div>
  7987. </div>
  7988. <div
  7989. class="worksDetailBox"
  7990. v-if="
  7991. worksStudent.length && worksStudent[toolIndex].length > 0
  7992. "
  7993. >
  7994. <div
  7995. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7996. ? worksStudent[toolIndex]
  7997. : worksStudent[toolIndex].slice(0, 6)"
  7998. :key="wIndex"
  7999. class="isWorksName"
  8000. @click="openXz(w, toolIndex)"
  8001. >
  8002. {{ w.sName }}
  8003. <img
  8004. class="deleteImg deleteImg2"
  8005. src="../../assets/deleteworks.png"
  8006. v-if="w.userid == userid || tType == 1 || tType == 4"
  8007. @click.stop="deleteWorks(w.wid)"
  8008. alt
  8009. />
  8010. </div>
  8011. </div>
  8012. </div>
  8013. <div
  8014. v-if="
  8015. tType &&
  8016. ((tType == 2 && sIsOpen == true) ||
  8017. tType == 1 ||
  8018. tType == 4) &&
  8019. tool.tool.indexOf(47) != -1
  8020. "
  8021. class="worksBox"
  8022. >
  8023. <div class="noWorksS">
  8024. <div
  8025. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8026. :key="sIndex"
  8027. class="noWorksName"
  8028. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  8029. :class="{ isWork: s.type == '2' }"
  8030. >
  8031. {{ s.student }}
  8032. </div>
  8033. </div>
  8034. <div
  8035. class="zuoyeYulan"
  8036. v-if="
  8037. worksStudent.length && worksStudent[toolIndex].length > 0
  8038. "
  8039. >
  8040. <div class="worksTop">
  8041. <div>作业预览</div>
  8042. <div
  8043. class="corOpen"
  8044. @click="contract(toolIndex)"
  8045. v-if="
  8046. worksStudent[toolIndex].length > 6 &&
  8047. isCloseList[toolIndex].isClose == 0
  8048. "
  8049. >
  8050. 收缩
  8051. </div>
  8052. <div
  8053. class="corOpen"
  8054. @click="contract(toolIndex)"
  8055. v-if="isCloseList[toolIndex].isClose == 1"
  8056. >
  8057. 展开
  8058. </div>
  8059. </div>
  8060. </div>
  8061. <div
  8062. class="worksDetailBox"
  8063. v-if="
  8064. worksStudent.length && worksStudent[toolIndex].length > 0
  8065. "
  8066. >
  8067. <!-- @click="openXz(w, toolIndex)" -->
  8068. <div
  8069. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8070. ? worksStudent[toolIndex]
  8071. : worksStudent[toolIndex].slice(0, 6)"
  8072. :key="wIndex"
  8073. class="isWorksName"
  8074. @click="openSen(w, toolIndex)"
  8075. >
  8076. {{ w.sName }}
  8077. <img
  8078. class="deleteImg deleteImg2"
  8079. src="../../assets/deleteworks.png"
  8080. v-if="w.userid == userid || tType == 1 || tType == 4"
  8081. @click.stop="deleteWorks(w.wid)"
  8082. alt
  8083. />
  8084. </div>
  8085. </div>
  8086. </div>
  8087. <div
  8088. v-if="
  8089. tType &&
  8090. ((tType == 2 && sIsOpen == true) ||
  8091. tType == 1 ||
  8092. tType == 4) &&
  8093. tool.tool.indexOf(48) != -1
  8094. "
  8095. class="worksBox"
  8096. >
  8097. <div class="noWorksS">
  8098. <div
  8099. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8100. :key="sIndex"
  8101. class="noWorksName"
  8102. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  8103. :class="{ isWork: s.type == '2' }"
  8104. >
  8105. {{ s.student }}
  8106. </div>
  8107. </div>
  8108. <div
  8109. class="zuoyeYulan"
  8110. v-if="
  8111. worksStudent.length && worksStudent[toolIndex].length > 0
  8112. "
  8113. >
  8114. <div class="worksTop">
  8115. <div>作业预览</div>
  8116. <div
  8117. class="corOpen"
  8118. @click="contract(toolIndex)"
  8119. v-if="
  8120. worksStudent[toolIndex].length > 6 &&
  8121. isCloseList[toolIndex].isClose == 0
  8122. "
  8123. >
  8124. 收缩
  8125. </div>
  8126. <div
  8127. class="corOpen"
  8128. @click="contract(toolIndex)"
  8129. v-if="isCloseList[toolIndex].isClose == 1"
  8130. >
  8131. 展开
  8132. </div>
  8133. </div>
  8134. </div>
  8135. <div
  8136. class="worksDetailBox"
  8137. v-if="
  8138. worksStudent.length && worksStudent[toolIndex].length > 0
  8139. "
  8140. >
  8141. <div
  8142. class="works"
  8143. style="
  8144. width: 200px;
  8145. height: 140px;
  8146. margin: 10px 10px 10px 0;
  8147. border-radius: 15px;
  8148. box-shadow: 0 0 6px 1px #dfdada;
  8149. "
  8150. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8151. ? worksStudent[toolIndex]
  8152. : worksStudent[toolIndex].slice(0, 6)"
  8153. :key="wIndex"
  8154. :class="w.type == 1 ? 'isTypeOne' : ''"
  8155. >
  8156. <div class="workImg">
  8157. <img :src="word" @click="openTable(w)" alt />
  8158. <!-- @click="openFile(w.works)" -->
  8159. <div
  8160. class="answerScore"
  8161. v-if="w.score"
  8162. @click.stop="openScore(w)"
  8163. :class="{
  8164. rightW:
  8165. w.userid == userid ||
  8166. tType == 1 ||
  8167. tType == 4 ||
  8168. w.ateacher == userid,
  8169. }"
  8170. >
  8171. {{ JSON.parse(w.score).wScore }}分
  8172. </div>
  8173. <div
  8174. class="answerScore"
  8175. @click.stop="openScore(w)"
  8176. v-else-if="courseDetail.userid == userid"
  8177. :class="{
  8178. rightW:
  8179. w.userid == userid ||
  8180. tType == 1 ||
  8181. tType == 4 ||
  8182. w.ateacher == userid,
  8183. }"
  8184. >
  8185. 评分
  8186. </div>
  8187. <img
  8188. class="deleteImg"
  8189. src="../../assets/deleteworks.png"
  8190. v-if="w.userid == userid || tType == 1 || tType == 4"
  8191. @click.stop="deleteWorks(w.wid)"
  8192. alt
  8193. />
  8194. </div>
  8195. <div class="comment" style="min-width: 200px">
  8196. <div class="worksName">
  8197. <div>{{ w.sName }}</div>
  8198. </div>
  8199. <div class="commentList">
  8200. <div class="commentList">
  8201. <div
  8202. class="commentImg"
  8203. @click="
  8204. isLikes(w.wid, userid, 1, null, w.isLikes)
  8205. "
  8206. >
  8207. <img
  8208. :src="w.isLikes == true ? likes : noLikes"
  8209. alt=""
  8210. />
  8211. </div>
  8212. <div>{{ w.likesCount }}</div>
  8213. </div>
  8214. <div class="commentList" style="margin-right: 15px">
  8215. <div
  8216. class="commentImg"
  8217. @click="commentOther(w, toolIndex, wIndex)"
  8218. >
  8219. <img
  8220. src="../../assets/icon/comment/comment.png"
  8221. alt=""
  8222. />
  8223. </div>
  8224. <div>{{ w.commentCount }}</div>
  8225. </div>
  8226. </div>
  8227. </div>
  8228. </div>
  8229. </div>
  8230. </div>
  8231. <div
  8232. v-if="
  8233. tType &&
  8234. ((tType == 2 && sIsOpen == true) ||
  8235. tType == 1 ||
  8236. tType == 4) &&
  8237. tool.tool.indexOf(52) != -1
  8238. "
  8239. class="worksBox"
  8240. >
  8241. <div class="noWorksS">
  8242. <div
  8243. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8244. :key="sIndex"
  8245. class="noWorksName"
  8246. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  8247. :class="{ isWork: s.type == '2' }"
  8248. >
  8249. {{ s.student }}
  8250. </div>
  8251. </div>
  8252. <div
  8253. class="zuoyeYulan"
  8254. v-if="
  8255. worksStudent.length && worksStudent[toolIndex].length > 0
  8256. "
  8257. >
  8258. <div class="worksTop">
  8259. <div>作业预览</div>
  8260. <div
  8261. class="corOpen"
  8262. @click="contract(toolIndex)"
  8263. v-if="
  8264. worksStudent[toolIndex].length > 6 &&
  8265. isCloseList[toolIndex].isClose == 0
  8266. "
  8267. >
  8268. 收缩
  8269. </div>
  8270. <div
  8271. class="corOpen"
  8272. @click="contract(toolIndex)"
  8273. v-if="isCloseList[toolIndex].isClose == 1"
  8274. >
  8275. 展开
  8276. </div>
  8277. </div>
  8278. </div>
  8279. <div
  8280. class="worksDetailBox"
  8281. v-if="
  8282. worksStudent.length && worksStudent[toolIndex].length > 0
  8283. "
  8284. >
  8285. <div
  8286. class="works"
  8287. style="
  8288. width: 200px;
  8289. height: 140px;
  8290. margin: 10px 10px 10px 0;
  8291. border-radius: 15px;
  8292. box-shadow: 0 0 6px 1px #dfdada;
  8293. "
  8294. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  8295. ? worksStudent[toolIndex]
  8296. : worksStudent[toolIndex].slice(0, 6)"
  8297. :key="wIndex"
  8298. :class="w.type == 1 ? 'isTypeOne' : ''"
  8299. >
  8300. <div class="workImg">
  8301. <img :src="word" @click="openWord(w)" alt />
  8302. <!-- @click="openFile(w.works)" -->
  8303. <div
  8304. class="answerScore"
  8305. v-if="w.score"
  8306. @click.stop="openScore(w)"
  8307. :class="{
  8308. rightW:
  8309. w.userid == userid ||
  8310. tType == 1 ||
  8311. tType == 4 ||
  8312. w.ateacher == userid,
  8313. }"
  8314. >
  8315. {{ JSON.parse(w.score).wScore }}分
  8316. </div>
  8317. <div
  8318. class="answerScore"
  8319. @click.stop="openScore(w)"
  8320. v-else-if="courseDetail.userid == userid"
  8321. :class="{
  8322. rightW:
  8323. w.userid == userid ||
  8324. tType == 1 ||
  8325. tType == 4 ||
  8326. w.ateacher == userid,
  8327. }"
  8328. >
  8329. 评分
  8330. </div>
  8331. <img
  8332. class="deleteImg"
  8333. src="../../assets/deleteworks.png"
  8334. v-if="w.userid == userid || tType == 1 || tType == 4"
  8335. @click.stop="deleteWorks(w.wid)"
  8336. alt
  8337. />
  8338. </div>
  8339. <div class="comment" style="min-width: 200px">
  8340. <div class="worksName">
  8341. <div>{{ w.sName }}</div>
  8342. </div>
  8343. <div class="commentList">
  8344. <div class="commentList">
  8345. <div
  8346. class="commentImg"
  8347. @click="
  8348. isLikes(w.wid, userid, 1, null, w.isLikes)
  8349. "
  8350. >
  8351. <img
  8352. :src="w.isLikes == true ? likes : noLikes"
  8353. alt=""
  8354. />
  8355. </div>
  8356. <div>{{ w.likesCount }}</div>
  8357. </div>
  8358. <div class="commentList" style="margin-right: 15px">
  8359. <div
  8360. class="commentImg"
  8361. @click="commentOther(w, toolIndex, wIndex)"
  8362. >
  8363. <img
  8364. src="../../assets/icon/comment/comment.png"
  8365. alt=""
  8366. />
  8367. </div>
  8368. <div>{{ w.commentCount }}</div>
  8369. </div>
  8370. </div>
  8371. </div>
  8372. </div>
  8373. </div>
  8374. </div>
  8375. </div>
  8376. </div>
  8377. <div class="vedioBox" v-if="false">
  8378. <div
  8379. class="queTop"
  8380. style="
  8381. font-size: 20px;
  8382. padding: 15px 0 15px 30px;
  8383. font-weight: bold;
  8384. "
  8385. >
  8386. 评一评
  8387. </div>
  8388. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8389. <div class="elist_input">
  8390. <div
  8391. v-for="(eItem, eIndex) in chapInfoList[courseType]
  8392. .chapterInfo[0].taskJson[taskCount].eList"
  8393. :key="eIndex"
  8394. class="elist_input_box"
  8395. >
  8396. <div style="width: 95%">
  8397. <div
  8398. style="
  8399. display: flex;
  8400. flex-direction: row;
  8401. flex-wrap: nowrap;
  8402. align-items: center;
  8403. "
  8404. >
  8405. <div style="max-width: calc(100% - 285px)">
  8406. <span>{{ eItem.value }}</span>
  8407. </div>
  8408. <div
  8409. style="
  8410. padding-left: 25px;
  8411. display: flex;
  8412. flex-direction: row;
  8413. align-items: center;
  8414. "
  8415. >
  8416. <el-rate
  8417. v-model="eItem.score"
  8418. :colors="colors"
  8419. disabled
  8420. ></el-rate>
  8421. </div>
  8422. </div>
  8423. <div class="elist_inptu_text" style="padding-left: 10px">
  8424. <span v-if="eItem.detail != ''">{{
  8425. eItem.detail
  8426. }}</span>
  8427. <span v-else style="color: #b2b1b3; font-size: 14px"
  8428. >暂无描述...</span
  8429. >
  8430. </div>
  8431. </div>
  8432. </div>
  8433. </div>
  8434. <div
  8435. v-if="evalua"
  8436. style="
  8437. border: 1px solid #e5e5e5;
  8438. max-width: 650px;
  8439. width: 100%;
  8440. margin-top: 20px;
  8441. box-shadow: 3px 1px 15px 3px #e0e0e0;
  8442. "
  8443. >
  8444. <div class="e_add_top">
  8445. <div class="e_add_title">
  8446. <span>目标管理名称</span>
  8447. <span>{{ eTitle }}</span>
  8448. <img
  8449. src="../../assets/line.png"
  8450. class="cru_line"
  8451. style="
  8452. width: 125px;
  8453. height: 20px;
  8454. bottom: -10px;
  8455. left: 120px;
  8456. "
  8457. />
  8458. <!-- <el-input
  8459. v-model="eTitle"
  8460. placeholder="请输入名称"
  8461. @change="setMindData"
  8462. ></el-input>-->
  8463. </div>
  8464. </div>
  8465. <div class="e_add_content">
  8466. <div class="e_add_list_pbox">
  8467. <div class="e_add_list_pbox_title">
  8468. <span class="type_title">切换模式</span>
  8469. <div class="type_content">
  8470. <span
  8471. :class="{ active: typeMode == 1 }"
  8472. @click="typeMode = 1"
  8473. >目标树</span
  8474. >
  8475. <span
  8476. :class="{ active: typeMode == 2 }"
  8477. @click="typeMode = 2"
  8478. >目标罗盘</span
  8479. >
  8480. <span
  8481. :class="{ active: typeMode == 3 }"
  8482. @click="typeMode = 3"
  8483. >目标看板</span
  8484. >
  8485. </div>
  8486. </div>
  8487. <div class="e_add_list_pbox_content">
  8488. <Mind
  8489. :showBar="false"
  8490. :mindData="data"
  8491. style="width: 100%"
  8492. v-show="typeMode == 1"
  8493. ></Mind>
  8494. <Sunburst
  8495. :Josn="eJson"
  8496. :num="eJSONNum"
  8497. style="width: 100%"
  8498. v-if="typeMode == 2"
  8499. ></Sunburst>
  8500. <SeeBoard
  8501. :Josn="eJson"
  8502. :num="eJSONNum"
  8503. :ename="eTitle"
  8504. style="width: 100%"
  8505. v-if="typeMode == 3"
  8506. >
  8507. </SeeBoard>
  8508. </div>
  8509. </div>
  8510. </div>
  8511. </div>
  8512. </div>
  8513. </div>
  8514. </div>
  8515. </div>
  8516. <el-dialog
  8517. title="作业提交"
  8518. :visible.sync="dialogVisible"
  8519. :append-to-body="true"
  8520. width="500px"
  8521. :before-close="handleClose"
  8522. class="dialog_change"
  8523. >
  8524. <div class="marginT">
  8525. <div>上传文件</div>
  8526. <div
  8527. class="chapter_add"
  8528. @click="addImg($event)"
  8529. v-if="studyJuri[0].cover.length == 0"
  8530. >
  8531. <div class="up_photo">
  8532. <img src="../../assets/icon/uploadImg.png" alt />
  8533. </div>
  8534. <!-- <input
  8535. type="file"
  8536. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8537. style="display: none"
  8538. @change="beforeUpload1($event, 1)"
  8539. /> -->
  8540. <input
  8541. type="file"
  8542. accept="*"
  8543. style="display: none"
  8544. @change="beforeUpload1($event, 1)"
  8545. />
  8546. <!-- <input
  8547. type="file"
  8548. accept="image/*"
  8549. capture="camera"
  8550. style="display: none"
  8551. @change="beforeUpload1($event, 1)"
  8552. /> -->
  8553. </div>
  8554. <div
  8555. class="chapter_add"
  8556. style="
  8557. display: flex;
  8558. width: 100%;
  8559. flex-direction: row;
  8560. flex-wrap: wrap;
  8561. justify-content: flex-start;
  8562. padding: 15px 0;
  8563. "
  8564. v-if="studyJuri[0].cover.length > 0"
  8565. >
  8566. <div class="upCover">
  8567. <img
  8568. :src="studyJuri[0].cover[0].url"
  8569. alt
  8570. v-if="fileType == 0"
  8571. />
  8572. <img :src="word" alt v-else-if="fileType == 1" />
  8573. <img :src="video" alt v-else-if="fileType == 2" />
  8574. <img :src="word2" alt v-else-if="fileType == 3" />
  8575. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8576. <div class="deleteWord" @click="clean(1)">
  8577. <img src="../../assets/icon/deleteWorks.png" alt />
  8578. </div>
  8579. </div>
  8580. </div>
  8581. </div>
  8582. <div
  8583. class="upload_send"
  8584. @click="addCourseWorks(taskCount)"
  8585. v-if="!proVisible"
  8586. >
  8587. 提交
  8588. </div>
  8589. </el-dialog>
  8590. </div>
  8591. </div>
  8592. <div
  8593. class="pButton"
  8594. @click="(pzDialog = true), selectPz()"
  8595. v-if="tType == 4 || ispzType == 4"
  8596. >
  8597. <!-- 批 -->
  8598. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  8599. </div>
  8600. <div v-if="pzDialog == true" class="newDialogCss">
  8601. <div class="pzTop2">
  8602. <!-- <div>批注</div>
  8603. <div @click="pzDialog = false">
  8604. <img src="../../assets/close1.png" alt="" />
  8605. </div> -->
  8606. <div class="checkbox">
  8607. <div class="check" style="font-size: 25px">评课笔记</div>
  8608. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8609. </div>
  8610. </div>
  8611. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  8612. <div class="pzListBox" v-if="pzList && pzList.length">
  8613. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8614. <div class="pzNavTop">
  8615. <div>批</div>
  8616. <div>
  8617. {{
  8618. pz.username && pz.username.length > 5
  8619. ? pz.username.substring(0, 5) + "..."
  8620. : pz.username
  8621. }}的批注
  8622. </div>
  8623. <div
  8624. class="pzDelete"
  8625. v-if="pz.userid == userid"
  8626. @click="deletePz(pz.id)"
  8627. >
  8628. 删除
  8629. </div>
  8630. </div>
  8631. <div
  8632. class="pzContent cont"
  8633. v-html="pz.content"
  8634. v-if="pz.type == '1'"
  8635. ></div>
  8636. <div class="pzContent" v-if="pz.type == '2'">
  8637. <audio :src="pz.content" controls="controls" ref="audio">
  8638. Your browser does not support the audio element.
  8639. </audio>
  8640. </div>
  8641. <div class="pzContent" v-if="pz.type == '3'">
  8642. <img
  8643. :src="pz.content"
  8644. style="width: 90%; margin: 0 auto; display: block"
  8645. @click="previewImg(pz.content)"
  8646. />
  8647. </div>
  8648. <div class="time">
  8649. {{ pz.time }}
  8650. </div>
  8651. </div>
  8652. </div>
  8653. <div class="noPz" v-else>
  8654. <img src="../../assets/icon/noPz.png" alt="" />
  8655. </div>
  8656. <div class="addPzButton">
  8657. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8658. 添加批注
  8659. </div>
  8660. <!-- <div class="img1">
  8661. <div @click="(addPzDialog = true), (pzType = 2)">
  8662. <img src="../../assets/audio.png" /><span>音频</span>
  8663. </div>
  8664. </div> -->
  8665. </div>
  8666. </div>
  8667. </div>
  8668. <div v-if="addPzDialog == true" class="addDialogCss">
  8669. <div class="pzTop">
  8670. <div class="teacherPz">
  8671. <div class="teacherPzImg">
  8672. <img src="../../assets/icon/teacherPz.png" alt="" />
  8673. </div>
  8674. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8675. </div>
  8676. <div @click="addPzDialog = false">
  8677. <img src="../../assets/close1.png" alt="" />
  8678. </div>
  8679. </div>
  8680. <div class="addPzBox">
  8681. <div class="addPzCheck">
  8682. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8683. >文本</span
  8684. >
  8685. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8686. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8687. >音频</span
  8688. >
  8689. </div>
  8690. <div style="height: calc(100% - 95px)">
  8691. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8692. v-if="pzType == 1"></textarea> -->
  8693. <editor-bar
  8694. class="binfo_input pzConText"
  8695. style="width: 100% !important"
  8696. placeholder="请输入任务描述"
  8697. v-model="pzConText"
  8698. @change="change"
  8699. v-if="pzType == 1"
  8700. ></editor-bar>
  8701. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8702. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8703. <div @click="addImg($event)">
  8704. <el-button type="primary">上传图片</el-button>
  8705. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8706. @change="beforeUpload1($event, 4)" />
  8707. </div>
  8708. </div> -->
  8709. </div>
  8710. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8711. 确定
  8712. </div>
  8713. </div>
  8714. </div>
  8715. <div v-if="proVisible" class="mask">
  8716. <div class="progressBox">
  8717. <!-- <div id="closePro" class="closeCss">
  8718. <img src="../../assets/icon/close.png" alt />
  8719. </div> -->
  8720. <div class="lbox">
  8721. <img src="../../assets/loading.gif" />上传中,请稍后
  8722. </div>
  8723. <div style="margin-bottom: 10px">
  8724. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8725. </div>
  8726. <el-progress
  8727. :text-inside="true"
  8728. :stroke-width="20"
  8729. :percentage="progress"
  8730. style="width: 80%"
  8731. ></el-progress>
  8732. </div>
  8733. </div>
  8734. <div v-if="proVisible2" class="mask">
  8735. <div class="progressBox">
  8736. <div class="lbox">
  8737. <img src="../../assets/loading.gif" />上传中,请稍后
  8738. </div>
  8739. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8740. </div>
  8741. </div>
  8742. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8743. <img width="100%" :src="dialogImageUrl" alt />
  8744. </el-dialog>
  8745. <el-dialog
  8746. :title="noteName != '' ? noteName : '查看问卷'"
  8747. :visible.sync="dialogVisible5"
  8748. :append-to-body="true"
  8749. width="1000px"
  8750. :before-close="handleClose"
  8751. class="dialog_diy dialog_diy3"
  8752. >
  8753. <div>
  8754. <div
  8755. class="a_add_title"
  8756. style="
  8757. display: flex;
  8758. flex-direction: row;
  8759. align-items: center;
  8760. justify-content: center;
  8761. "
  8762. >
  8763. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8764. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8765. </div>
  8766. <div class="a_addBox">
  8767. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8768. <div
  8769. class="a_add_box"
  8770. v-for="(item1, index1) in askJson.askCount"
  8771. :key="index1"
  8772. >
  8773. <div class="a_add_head">
  8774. <div style="display: flex">
  8775. {{ index1 + 1 + "、" }}
  8776. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8777. </div>
  8778. <img
  8779. v-if="askJson.askJson[index1].img"
  8780. :src="askJson.askJson[index1].img"
  8781. style="height: 300px; margin-top: 10px; max-width: 100%"
  8782. />
  8783. </div>
  8784. <div class="a_add_body">
  8785. <div class="a_add_input">
  8786. <el-radio-group
  8787. v-model="radio[index1]"
  8788. v-if="
  8789. askJson.askJson[index1].type == '1' ||
  8790. !askJson.askJson[index1].type
  8791. "
  8792. >
  8793. <el-radio
  8794. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8795. .checkList"
  8796. :key="checkIndex"
  8797. :label="checkIndex"
  8798. :disabled="isAnswer"
  8799. class="redioStyle"
  8800. ><span v-html="item2"></span
  8801. ></el-radio>
  8802. </el-radio-group>
  8803. <el-checkbox-group
  8804. v-model="radio[index1]"
  8805. v-if="askJson.askJson[index1].type == '2'"
  8806. >
  8807. <el-checkbox
  8808. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8809. .checkList"
  8810. :key="checkIndex1"
  8811. :label="checkIndex1"
  8812. :disabled="isAnswer"
  8813. class="redioStyle"
  8814. ><span v-html="item2"></span>
  8815. </el-checkbox>
  8816. </el-checkbox-group>
  8817. </div>
  8818. </div>
  8819. </div>
  8820. </div>
  8821. </div>
  8822. <span slot="footer" class="dialog-footer">
  8823. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8824. >取 消</el-button
  8825. >
  8826. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8827. >确 定</el-button
  8828. >
  8829. </span>
  8830. </el-dialog>
  8831. <el-dialog
  8832. :title="noteName != '' ? noteName : '查看问卷'"
  8833. :visible.sync="dialogVisible5Teacher"
  8834. :append-to-body="true"
  8835. width="1000px"
  8836. :before-close="handleClose"
  8837. class="dialog_diy dialog_diy3"
  8838. >
  8839. <div>
  8840. <div class="w_name">
  8841. 学生姓名:<span>{{ sStudent.student }}</span>
  8842. </div>
  8843. <div
  8844. class="a_add_title"
  8845. style="
  8846. display: flex;
  8847. flex-direction: row;
  8848. align-items: center;
  8849. justify-content: center;
  8850. "
  8851. >
  8852. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8853. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8854. </div>
  8855. <div class="a_addBox">
  8856. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8857. <div
  8858. class="a_add_box"
  8859. v-for="(item1, index1) in askJson.askCount"
  8860. :key="index1"
  8861. >
  8862. <div class="a_add_head">
  8863. <div style="display: flex">
  8864. {{ index1 + 1 + "、" }}
  8865. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8866. </div>
  8867. <img
  8868. v-if="askJson.askJson[index1].img"
  8869. :src="askJson.askJson[index1].img"
  8870. style="height: 300px; margin-top: 10px; max-width: 100%"
  8871. />
  8872. </div>
  8873. <div class="a_add_body">
  8874. <div class="a_add_input">
  8875. <el-radio-group
  8876. v-model="radio[index1]"
  8877. v-if="
  8878. askJson.askJson[index1].type == '1' ||
  8879. !askJson.askJson[index1].type
  8880. "
  8881. >
  8882. <el-radio
  8883. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8884. .checkList"
  8885. :key="checkIndex"
  8886. :label="checkIndex"
  8887. :disabled="isAnswer"
  8888. class="redioStyle"
  8889. ><span v-html="item2"></span
  8890. ></el-radio>
  8891. </el-radio-group>
  8892. <el-checkbox-group
  8893. v-model="radio[index1]"
  8894. v-if="askJson.askJson[index1].type == '2'"
  8895. >
  8896. <el-checkbox
  8897. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8898. .checkList"
  8899. :key="checkIndex1"
  8900. :label="checkIndex1"
  8901. :disabled="isAnswer"
  8902. class="redioStyle"
  8903. ><span v-html="item2"></span>
  8904. </el-checkbox>
  8905. </el-checkbox-group>
  8906. </div>
  8907. </div>
  8908. </div>
  8909. </div>
  8910. </div>
  8911. <span slot="footer" class="dialog-footer">
  8912. <el-button
  8913. @click="dialogVisible5Teacher = false"
  8914. v-show="noteName == ''"
  8915. >取 消</el-button
  8916. >
  8917. <el-button
  8918. type="primary"
  8919. @click="addStudentAskTeacher"
  8920. v-show="noteName == ''"
  8921. >确 定</el-button
  8922. >
  8923. </span>
  8924. </el-dialog>
  8925. <el-dialog
  8926. :title="noteName != '' ? noteName : '查看选择题'"
  8927. :visible.sync="dialogVisibleChoice"
  8928. :append-to-body="true"
  8929. width="1000px"
  8930. :before-close="handleClose"
  8931. class="dialog_diy dialog_diy3"
  8932. >
  8933. <div>
  8934. <div class="a_addBox">
  8935. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  8936. <div
  8937. class="a_add_box"
  8938. v-for="(item1, index1) in testJson.testCount"
  8939. :key="index1"
  8940. >
  8941. <div class="a_add_head">
  8942. <div style="display: flex">
  8943. {{ index1 + 1 + "、" }}
  8944. <div
  8945. v-if="testJson.testJson[index1].type == '1'"
  8946. style="margin-right: 5px; min-width: 70px"
  8947. >
  8948. (单选题)
  8949. </div>
  8950. <div
  8951. v-if="testJson.testJson[index1].type == '2'"
  8952. style="margin-right: 5px; min-width: 70px"
  8953. >
  8954. (多选题)
  8955. </div>
  8956. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8957. </div>
  8958. <img
  8959. v-if="testJson.testJson[index1].img"
  8960. :src="testJson.testJson[index1].img"
  8961. style="height: 300px; margin-top: 10px; max-width: 100%"
  8962. />
  8963. </div>
  8964. <div
  8965. class="timuImgBox"
  8966. v-if="
  8967. testJson.testJson[index1].timuList &&
  8968. testJson.testJson[index1].timuList.length
  8969. "
  8970. >
  8971. <div
  8972. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8973. :key="tIndex"
  8974. class="timuImg"
  8975. @click.stop="previewImg(timg.src)"
  8976. >
  8977. <img :src="timg.src" alt="" />
  8978. </div>
  8979. </div>
  8980. <div class="a_add_body">
  8981. <div class="a_add_input">
  8982. <el-radio-group
  8983. v-model="radio[index1]"
  8984. v-if="testJson.testJson[index1].type == '1'"
  8985. >
  8986. <div class="radioBox">
  8987. <el-radio
  8988. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8989. .checkList"
  8990. :key="checkIndex"
  8991. :label="checkIndex"
  8992. :disabled="isAnswer"
  8993. class="redioStyle"
  8994. >
  8995. <div
  8996. style="margin-right: 10px"
  8997. v-if="item2 && item2.imgType && item2.imgType == 1"
  8998. >
  8999. <div class="inImg" @click.stop="previewImg(item2.src)">
  9000. <img :src="item2.src" alt="" />
  9001. </div>
  9002. </div>
  9003. <span v-else v-html="item2"></span>
  9004. </el-radio>
  9005. </div>
  9006. </el-radio-group>
  9007. <el-checkbox-group
  9008. v-model="radio[index1]"
  9009. v-if="testJson.testJson[index1].type == '2'"
  9010. >
  9011. <div class="radioBox">
  9012. <el-checkbox
  9013. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9014. .checkList"
  9015. :key="checkIndex"
  9016. :label="checkIndex"
  9017. :disabled="isAnswer"
  9018. class="redioStyle"
  9019. >
  9020. <div
  9021. style="margin-right: 10px"
  9022. v-if="item2 && item2.imgType && item2.imgType == 1"
  9023. >
  9024. <div class="inImg" @click.stop="previewImg(item2.src)">
  9025. <img :src="item2.src" alt="" />
  9026. </div>
  9027. </div>
  9028. <span v-else v-html="item2"></span>
  9029. </el-checkbox>
  9030. </div>
  9031. </el-checkbox-group>
  9032. </div>
  9033. </div>
  9034. </div>
  9035. </div>
  9036. </div>
  9037. <span slot="footer" class="dialog-footer">
  9038. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9039. >取 消</el-button
  9040. >
  9041. <el-button
  9042. type="primary"
  9043. @click="addStudentTest"
  9044. v-show="noteName == ''"
  9045. >确 定</el-button
  9046. >
  9047. </span>
  9048. </el-dialog>
  9049. <el-dialog
  9050. :title="noteName != '' ? noteName : '查看选择题'"
  9051. :visible.sync="dialogVisibleChoiceTeacher"
  9052. :append-to-body="true"
  9053. width="1000px"
  9054. :before-close="handleClose"
  9055. class="dialog_diy dialog_diy3"
  9056. >
  9057. <div>
  9058. <div class="w_name">
  9059. 学生姓名:<span>{{ sStudent.student }}</span>
  9060. </div>
  9061. <div class="a_addBox">
  9062. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  9063. <div
  9064. class="a_add_box"
  9065. v-for="(item1, index1) in testJson.testCount"
  9066. :key="index1"
  9067. >
  9068. <div class="a_add_head">
  9069. <div style="display: flex">
  9070. {{ index1 + 1 + "、" }}
  9071. <div
  9072. v-if="testJson.testJson[index1].type == '1'"
  9073. style="margin-right: 5px; min-width: 70px"
  9074. >
  9075. (单选题)
  9076. </div>
  9077. <div
  9078. v-if="testJson.testJson[index1].type == '2'"
  9079. style="margin-right: 5px; min-width: 70px"
  9080. >
  9081. (多选题)
  9082. </div>
  9083. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9084. </div>
  9085. <img
  9086. v-if="testJson.testJson[index1].img"
  9087. :src="testJson.testJson[index1].img"
  9088. style="height: 300px; margin-top: 10px; max-width: 100%"
  9089. />
  9090. </div>
  9091. <div
  9092. class="timuImgBox"
  9093. v-if="
  9094. testJson.testJson[index1].timuList &&
  9095. testJson.testJson[index1].timuList.length
  9096. "
  9097. >
  9098. <div
  9099. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9100. :key="tIndex"
  9101. class="timuImg"
  9102. @click.stop="previewImg(timg.src)"
  9103. >
  9104. <img :src="timg.src" alt="" />
  9105. </div>
  9106. </div>
  9107. <div class="a_add_body">
  9108. <div class="a_add_input">
  9109. <el-radio-group
  9110. v-model="radio[index1]"
  9111. v-if="testJson.testJson[index1].type == '1'"
  9112. >
  9113. <div class="radioBox">
  9114. <el-radio
  9115. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9116. .checkList"
  9117. :key="checkIndex"
  9118. :label="checkIndex"
  9119. :disabled="isAnswer"
  9120. class="redioStyle"
  9121. >
  9122. <div
  9123. style="margin-right: 10px"
  9124. v-if="item2 && item2.imgType && item2.imgType == 1"
  9125. >
  9126. <div class="inImg" @click.stop="previewImg(item2.src)">
  9127. <img :src="item2.src" alt="" />
  9128. </div>
  9129. </div>
  9130. <span v-else v-html="item2"></span>
  9131. </el-radio>
  9132. </div>
  9133. </el-radio-group>
  9134. <el-checkbox-group
  9135. v-model="radio[index1]"
  9136. v-if="testJson.testJson[index1].type == '2'"
  9137. >
  9138. <div class="radioBox">
  9139. <el-checkbox
  9140. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9141. .checkList"
  9142. :key="checkIndex"
  9143. :label="checkIndex"
  9144. :disabled="isAnswer"
  9145. class="redioStyle"
  9146. >
  9147. <div
  9148. style="margin-right: 10px"
  9149. v-if="item2 && item2.imgType && item2.imgType == 1"
  9150. >
  9151. <div class="inImg" @click.stop="previewImg(item2.src)">
  9152. <img :src="item2.src" alt="" />
  9153. </div>
  9154. </div>
  9155. <span v-else v-html="item2"></span>
  9156. </el-checkbox>
  9157. </div>
  9158. </el-checkbox-group>
  9159. </div>
  9160. </div>
  9161. </div>
  9162. </div>
  9163. </div>
  9164. <span slot="footer" class="dialog-footer">
  9165. <el-button
  9166. @click="dialogVisibleChoiceTeacher = false"
  9167. v-show="noteName == ''"
  9168. >取 消</el-button
  9169. >
  9170. <el-button
  9171. type="primary"
  9172. @click="addStudentTestTeacher"
  9173. v-show="noteName == ''"
  9174. >确 定</el-button
  9175. >
  9176. </span>
  9177. </el-dialog>
  9178. <el-dialog
  9179. title="查看富文本"
  9180. :visible.sync="dialogVisible1"
  9181. :append-to-body="true"
  9182. width="500px"
  9183. :before-close="handleClose"
  9184. class="dialog_diy textCss"
  9185. >
  9186. <el-form style="font-size: 20px">
  9187. <el-form-item label="文本标题" class="textTitle">
  9188. <div style="font-size: 20px">{{ text.name }}</div>
  9189. </el-form-item>
  9190. <div>富文本内容</div>
  9191. <div
  9192. v-html="text.url"
  9193. style="font-size: 18px; padding: 40px 0 0 0"
  9194. ></div>
  9195. </el-form>
  9196. <span slot="footer" class="dialog-footer">
  9197. <el-button type="primary" @click="dialogVisible1 = false"
  9198. >确定</el-button
  9199. >
  9200. </span>
  9201. </el-dialog>
  9202. <el-dialog
  9203. title="文件预览"
  9204. :visible.sync="dialogVisible3"
  9205. width="50%"
  9206. :before-close="handleClose"
  9207. class="dialog_diy"
  9208. :class="{ fullStyle: full }"
  9209. >
  9210. <div slot="title" class="header-title">
  9211. <div style="color: #fff">文件预览</div>
  9212. <div style="position: absolute; top: 19px; right: 50px">
  9213. <img
  9214. src="../../assets/full.png"
  9215. style="height: 16px; cursor: pointer"
  9216. alt=""
  9217. @click="fullTools"
  9218. />
  9219. </div>
  9220. </div>
  9221. <pdf
  9222. v-if="showPDF"
  9223. :pdfUrl="pptImgUrl"
  9224. style="width: 100%; height: 520px; overflow: auto"
  9225. :class="{ fullStyle: full }"
  9226. ></pdf>
  9227. <iframe
  9228. v-else
  9229. :src="pptImgUrl"
  9230. frameborder="0"
  9231. width="100%"
  9232. height="600"
  9233. :class="{ fullStyle: full }"
  9234. ></iframe>
  9235. </el-dialog>
  9236. <el-dialog
  9237. title="文件预览"
  9238. :visible.sync="dialogVisible6"
  9239. width="50%"
  9240. :before-close="handleClose"
  9241. class="dialog_diy"
  9242. >
  9243. <iframe
  9244. :src="pptImgUrl1"
  9245. frameborder="0"
  9246. width="100%"
  9247. height="600"
  9248. ></iframe>
  9249. </el-dialog>
  9250. <el-dialog
  9251. title="提示"
  9252. :visible.sync="dialogVisible4"
  9253. :append-to-body="true"
  9254. width="800px"
  9255. :before-close="handleClose"
  9256. class="dialog_diy notice"
  9257. >
  9258. <div>此功能暂未开放!</div>
  9259. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9260. </el-dialog>
  9261. <el-dialog
  9262. title="问答"
  9263. :visible.sync="answerDialogVisible"
  9264. :append-to-body="true"
  9265. width="800px"
  9266. :before-close="handleClose"
  9267. class="dialog_diy"
  9268. >
  9269. <div>
  9270. <div
  9271. style="
  9272. display: flex;
  9273. flex-wrap: nowrap;
  9274. flex-direction: column;
  9275. position: relative;
  9276. "
  9277. >
  9278. <div class="queTop" style="padding: 20px 0 20px 0">
  9279. <div class="question">
  9280. <img src="../../assets/icon/question.png" alt />
  9281. </div>
  9282. <div class="queTitle">
  9283. <div style="width: 90px; min-width: 90px">提问:</div>
  9284. <div>{{ answerQ }}</div>
  9285. </div>
  9286. </div>
  9287. <div class="ediBottom">
  9288. <textarea
  9289. rows="6"
  9290. class="binfo_input"
  9291. cols
  9292. style="width: 95%; height: 120px"
  9293. v-model="questionAnswer"
  9294. ></textarea>
  9295. </div>
  9296. </div>
  9297. </div>
  9298. <div slot="footer">
  9299. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9300. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9301. </div>
  9302. </el-dialog>
  9303. <el-dialog
  9304. title="倒计时"
  9305. :visible.sync="timeDialogVisible"
  9306. :append-to-body="true"
  9307. width="800px"
  9308. :before-close="handleClose"
  9309. class="dialog_diy"
  9310. >
  9311. <div>
  9312. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9313. </div>
  9314. <div slot="footer">
  9315. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9316. </div>
  9317. </el-dialog>
  9318. <el-dialog
  9319. title="权限设置"
  9320. :visible.sync="juriVisible"
  9321. :append-to-body="true"
  9322. width="400px"
  9323. :before-close="handleClose"
  9324. class="dialog_diy"
  9325. >
  9326. <div>
  9327. <div class="open_box">
  9328. <div class="switch_box">
  9329. <span>允许学生查看所有作业</span>
  9330. <el-switch
  9331. v-model="sIsOpen"
  9332. active-text=""
  9333. class="switchCss"
  9334. @change="updateSLook"
  9335. ></el-switch>
  9336. </div>
  9337. <div
  9338. class="switch_box"
  9339. v-if="
  9340. courseDetail.userid == userid ||
  9341. (courseDetail.course_teacher &&
  9342. courseDetail.course_teacher.indexOf(userid) != -1)
  9343. "
  9344. >
  9345. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9346. <span>禁止学生查看所有阶段</span>
  9347. <el-switch
  9348. v-model="IsLookOpen"
  9349. active-text=""
  9350. class="switchCss"
  9351. @change="updateLookOpen"
  9352. ></el-switch>
  9353. </div>
  9354. <div class="switch_box" v-if="courseDetail.userid == userid">
  9355. <span>开启跟随模式</span>
  9356. <el-switch
  9357. v-model="IsFollow"
  9358. active-text=""
  9359. class="switchCss"
  9360. @change="updateFollow"
  9361. ></el-switch>
  9362. </div>
  9363. </div>
  9364. </div>
  9365. <div slot="footer">
  9366. <el-button
  9367. style="background: #409efe; color: #fff"
  9368. @click="juriVisible = false"
  9369. >关 闭</el-button
  9370. >
  9371. </div>
  9372. </el-dialog>
  9373. <el-dialog
  9374. title="查看视频"
  9375. :visible.sync="videoVisible"
  9376. :append-to-body="true"
  9377. width="1000px"
  9378. :before-close="handleClose"
  9379. class="dialog_diy1"
  9380. >
  9381. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9382. <video-player
  9383. class="video-player vjs-custom-skin"
  9384. :playsinline="true"
  9385. :options="videoDetail"
  9386. @play="onPlayerPlay($event)"
  9387. style="width: 100%; height: 100%"
  9388. ></video-player>
  9389. </div>
  9390. <div slot="footer">
  9391. <el-button
  9392. style="background: #409efe; color: #fff"
  9393. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9394. >
  9395. 关 闭</el-button
  9396. >
  9397. </div>
  9398. </el-dialog>
  9399. <el-dialog
  9400. title="查看详情"
  9401. :visible.sync="commentDialogVisible"
  9402. :append-to-body="true"
  9403. width="800px"
  9404. :before-close="handleClose"
  9405. class="dialog_diy"
  9406. >
  9407. <div class="commentTop">
  9408. <div class="studentDetail">
  9409. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9410. <div class="nameAndTime">
  9411. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9412. <div>{{ commentDetail.time }}</div>
  9413. </div>
  9414. <div
  9415. class="returnBtn"
  9416. style="margin-left: auto; width: 80px"
  9417. v-if="
  9418. commentDetail.works &&
  9419. commentDetail.type == 0 &&
  9420. (tType == 1 || tType == 4)
  9421. "
  9422. @click="
  9423. showPicturePaint(
  9424. commentDetail.img ? commentDetail.img : commentDetail.works
  9425. )
  9426. "
  9427. >
  9428. 教师批注
  9429. </div>
  9430. </div>
  9431. <div
  9432. class="worksAnswer"
  9433. v-if="commentDetail.works && commentDetail.type == 2"
  9434. >
  9435. {{ JSON.parse(commentDetail.works)[0].answer }}
  9436. </div>
  9437. <div
  9438. class="worksAnswer"
  9439. v-if="commentDetail.works && commentDetail.type == 1"
  9440. >
  9441. <img
  9442. src="../../assets/teacherWork.png"
  9443. v-if="commentDetail.ateacher"
  9444. class="w_teachert"
  9445. />
  9446. <pdf
  9447. v-if="showPDF"
  9448. :pdfUrl="pptImgUrl"
  9449. style="width: 100%; height: 520px; overflow: auto"
  9450. :class="{ fullStyle: full }"
  9451. ></pdf>
  9452. <iframe
  9453. v-else
  9454. :src="pptImgUrl"
  9455. frameborder="0"
  9456. width="100%"
  9457. height="600"
  9458. :class="{ fullStyle: full }"
  9459. ></iframe>
  9460. </div>
  9461. <div
  9462. class="worksAnswer"
  9463. v-if="commentDetail.works && commentDetail.type == 0"
  9464. >
  9465. <img
  9466. src="../../assets/teacherWork.png"
  9467. v-if="commentDetail.ateacher"
  9468. class="w_teachert"
  9469. style="right: 105px"
  9470. />
  9471. <img
  9472. :src="commentDetail.works"
  9473. alt=""
  9474. @click="previewImg(commentDetail.works)"
  9475. />
  9476. </div>
  9477. <div
  9478. class="worksAnswer"
  9479. v-if="commentDetail.works && commentDetail.type == 3"
  9480. >
  9481. <img
  9482. src="../../assets/teacherWork.png"
  9483. v-if="commentDetail.ateacher"
  9484. class="w_teachert"
  9485. />
  9486. <video-player
  9487. class="video-player vjs-custom-skin"
  9488. :playsinline="true"
  9489. :options="videoDetail"
  9490. @play="onPlayerPlay($event)"
  9491. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9492. ></video-player>
  9493. </div>
  9494. <div
  9495. class="worksAnswer"
  9496. v-if="commentDetail.works && commentDetail.type == 10"
  9497. >
  9498. <div class="cont" v-html="commentDetail.works.text"></div>
  9499. </div>
  9500. <div
  9501. class="worksAnswer codeFileBox"
  9502. v-if="commentDetail.works && commentDetail.type == 12"
  9503. @click="downloadFile(commentDetail.works)"
  9504. >
  9505. <img src="../../assets/icon/codeFile.png" />
  9506. <div>点击下载文件</div>
  9507. </div>
  9508. <div
  9509. class="worksAnswer codeFileBox"
  9510. v-if="commentDetail.works && commentDetail.type == 15"
  9511. @click="
  9512. openCocoPi(
  9513. 57,
  9514. commentIndexJson.toolIndex,
  9515. commentDetail.userid,
  9516. commentDetail.sName
  9517. )
  9518. "
  9519. >
  9520. <img src="../../assets/icon/codeFile.png" />
  9521. <div>点击打开CocoPi</div>
  9522. </div>
  9523. <div
  9524. class="worksAnswer"
  9525. v-if="commentDetail.works && commentDetail.type == 13"
  9526. >
  9527. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9528. </div>
  9529. <div
  9530. class="worksAnswer"
  9531. v-if="commentDetail.works && commentDetail.type == 4"
  9532. >
  9533. <div class="evalCss">
  9534. <div class="nav">请选择星星进行评分</div>
  9535. <div class="middleBox" v-if="eScore.eStar">
  9536. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9537. <div class="nameAndrate">
  9538. <div>{{ e.value }}</div>
  9539. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9540. </div>
  9541. <div v-if="e.detail">{{ e.detail }}</div>
  9542. </div>
  9543. <div class="bz">
  9544. <textarea
  9545. disabled
  9546. rows="4"
  9547. class="pj"
  9548. style="
  9549. padding: 10px 5px;
  9550. width: 70%;
  9551. background: #f7f6f9;
  9552. font-size: 14px;
  9553. text-indent: 10px;
  9554. color: #000;
  9555. "
  9556. cols
  9557. v-model="eScore.eBzText"
  9558. placeholder="请输入评价内容..."
  9559. ></textarea>
  9560. </div>
  9561. </div>
  9562. </div>
  9563. </div>
  9564. <div class="comment">
  9565. <div class="commentList">
  9566. <div class="commentImg">
  9567. <img
  9568. @click="
  9569. isLikes(
  9570. commentDetail.wid,
  9571. userid,
  9572. 1,
  9573. null,
  9574. commentDetail.isLikes
  9575. )
  9576. "
  9577. :src="commentDetail.isLikes == true ? likes : noLikes"
  9578. alt=""
  9579. />
  9580. </div>
  9581. <div>{{ commentDetail.likesCount }}</div>
  9582. </div>
  9583. <div class="commentList">
  9584. <div class="commentImg">
  9585. <img src="../../assets/icon/comment/comment.png" alt="" />
  9586. </div>
  9587. <div>{{ commentDetail.commentCount }}</div>
  9588. </div>
  9589. </div>
  9590. <div class="drawPBox" v-if="commentDetail.img">
  9591. <span>教师批注</span>
  9592. <img
  9593. :src="commentDetail.img"
  9594. alt=""
  9595. @click="previewImg(commentDetail.img)"
  9596. />
  9597. <span
  9598. class="deleteImg"
  9599. v-if="tType == 1 || tType == 4"
  9600. @click.stop="deletePicturePaint(commentDetail.wid)"
  9601. style="
  9602. font-size: 14px;
  9603. width: auto !important;
  9604. color: #b4b4b4;
  9605. top: unset;
  9606. bottom: 0;
  9607. border: none;
  9608. padding: 0;
  9609. height: auto !important;
  9610. margin: 0;
  9611. "
  9612. >删除</span
  9613. >
  9614. </div>
  9615. </div>
  9616. <div class="commentBox">
  9617. <div class="pl">评论:</div>
  9618. <div style="max-height: 200px; overflow: auto">
  9619. <div
  9620. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9621. style="padding: 10px 0 0 0"
  9622. >
  9623. <div
  9624. class="studentDetail"
  9625. style="padding-top: 10px"
  9626. v-for="(co, coIndex) in commentDetail.commentJson"
  9627. :key="coIndex"
  9628. >
  9629. <div class="tx" style="min-width: 50px">
  9630. <img src="../../assets/avatar.png" alt="" />
  9631. </div>
  9632. <div class="plPerson">
  9633. <div class="plName">
  9634. <div>{{ co.commentPeople }}</div>
  9635. <div style="margin-left: 5px">
  9636. {{ co.commentTime }}
  9637. </div>
  9638. <div
  9639. class="deleteComment"
  9640. v-if="userid == co.userid"
  9641. @click="deleteComment(co.wid)"
  9642. >
  9643. 删除
  9644. </div>
  9645. </div>
  9646. <div class="plContent">{{ co.commentText }}</div>
  9647. </div>
  9648. </div>
  9649. </div>
  9650. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9651. </div>
  9652. </div>
  9653. <div style="margin-top: 10px">
  9654. <div class="displayBox">
  9655. <div
  9656. style="
  9657. color: #556db4;
  9658. font-size: 14px;
  9659. font-weight: bold;
  9660. padding-bottom: 10px;
  9661. "
  9662. >
  9663. 评价
  9664. </div>
  9665. <div class="easy_comment" v-if="false">
  9666. <div
  9667. v-for="(p, pIndex) in PlTextList"
  9668. :key="pIndex"
  9669. @click="fastText(p, 1)"
  9670. >
  9671. {{ p }}
  9672. </div>
  9673. </div>
  9674. </div>
  9675. <div>
  9676. <textarea
  9677. rows="3"
  9678. class="pj"
  9679. style="padding: 10px 5px"
  9680. cols
  9681. v-model="commentText"
  9682. placeholder="请输入评论"
  9683. ></textarea>
  9684. </div>
  9685. </div>
  9686. <div slot="footer">
  9687. <el-button
  9688. @click="
  9689. (commentDialogVisible = false),
  9690. (commentIndexJson = {}),
  9691. videoDetail.sources && videoDetail.sources[0]
  9692. ? (videoDetail.sources[0].src = '')
  9693. : ''
  9694. "
  9695. >取 消</el-button
  9696. >
  9697. <el-button
  9698. type="primary"
  9699. @click="addComment(commentDetail.wid, userid, 2)"
  9700. >确 定</el-button
  9701. >
  9702. </div>
  9703. </el-dialog>
  9704. <el-dialog
  9705. title="查看文档"
  9706. :visible.sync="fullDialogVisible"
  9707. :append-to-body="true"
  9708. width="100%"
  9709. :before-close="handleClose"
  9710. :show-close="false"
  9711. class="dialog_diy full_diy"
  9712. :class="{ full_diy2: fulltype == 3 }"
  9713. >
  9714. <div slot="title" class="header-title">
  9715. <div style="color: #fff">查看文档</div>
  9716. <div
  9717. @click="fullDialogVisible = false"
  9718. style="
  9719. cursor: pointer;
  9720. position: absolute;
  9721. top: 20px;
  9722. right: 20px;
  9723. color: #fff;
  9724. "
  9725. >
  9726. 退出全屏
  9727. </div>
  9728. </div>
  9729. <div style="height: 100%">
  9730. <div
  9731. class="wheel"
  9732. v-if="
  9733. fullUrl.indexOf(
  9734. 'https://view.officeapps.live.com/op/view.aspx?src='
  9735. ) != -1 && fulltype == 2
  9736. "
  9737. style="width: 95%; margin: 0 auto"
  9738. >
  9739. <iframe
  9740. style="width: 100%; height: 100%; border: none"
  9741. :src="fullUrl"
  9742. ></iframe>
  9743. </div>
  9744. <iframe
  9745. v-else-if="fulltype == 2"
  9746. style="width: 100%; height: 100%; border: none"
  9747. :src="fullUrl"
  9748. security="restricted"
  9749. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9750. ></iframe>
  9751. <pdf
  9752. v-else-if="fulltype == 3"
  9753. :pdfUrl="fullUrl"
  9754. style="width: 100%; height: 100%; overflow: auto"
  9755. ></pdf>
  9756. <div
  9757. class="wheel"
  9758. v-if="fulltype == 1"
  9759. style="
  9760. box-shadow: 0 0 6px 1px #f2f2f2;
  9761. width: 100%;
  9762. background: #f1f1f1;
  9763. "
  9764. >
  9765. <div class="title" style="width: 100%; box-sizing: border-box">
  9766. 查看文档
  9767. </div>
  9768. <el-form class="textBox" style="height: 90%">
  9769. <el-form-item class="textTitle">
  9770. <div style="font-size: 22px">
  9771. {{ fullUrl.name }}
  9772. </div>
  9773. </el-form-item>
  9774. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9775. <div
  9776. v-html="fullUrl.url"
  9777. class="textContent"
  9778. style="height: auto"
  9779. ></div>
  9780. </el-form>
  9781. </div>
  9782. </div>
  9783. <!-- <div slot="footer">
  9784. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9785. </div> -->
  9786. </el-dialog>
  9787. <el-dialog
  9788. title="个人评价"
  9789. :visible.sync="studentEvalDialogVisible"
  9790. :append-to-body="true"
  9791. width="800px"
  9792. :before-close="handleClose"
  9793. class="dialog_diy"
  9794. >
  9795. <div class="evalCss">
  9796. <div class="nav">请选择星星进行评分</div>
  9797. <div class="middleBox" v-if="eScore.eStar">
  9798. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9799. <div class="nameAndrate">
  9800. <div>{{ e.value }}</div>
  9801. <el-rate
  9802. v-model="eScore.eStar[eIndex]"
  9803. :disabled="isStar"
  9804. ></el-rate>
  9805. </div>
  9806. <div v-if="e.detail">{{ e.detail }}</div>
  9807. </div>
  9808. <div class="easy_comment" v-if="false">
  9809. <div
  9810. v-for="(p, pIndex) in PlTextList"
  9811. :key="pIndex"
  9812. @click="fastText(p, 2)"
  9813. >
  9814. {{ p }}
  9815. </div>
  9816. </div>
  9817. <div class="bz">
  9818. <textarea
  9819. :disabled="isStar"
  9820. rows="4"
  9821. class="pj"
  9822. style="
  9823. padding: 10px 5px;
  9824. width: 70%;
  9825. background: #f7f6f9;
  9826. font-size: 14px;
  9827. text-indent: 10px;
  9828. "
  9829. cols
  9830. v-model="eScore.eBzText"
  9831. placeholder="请输入评价内容..."
  9832. ></textarea>
  9833. </div>
  9834. </div>
  9835. </div>
  9836. <div slot="footer">
  9837. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9838. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9839. >确 定</el-button
  9840. >
  9841. </div>
  9842. </el-dialog>
  9843. <el-dialog
  9844. title="个人评价"
  9845. :visible.sync="studentEvalDialogVisibleTeacher"
  9846. :append-to-body="true"
  9847. width="800px"
  9848. :before-close="handleClose"
  9849. class="dialog_diy"
  9850. >
  9851. <div class="w_name">
  9852. 学生姓名:<span>{{ sStudent.student }}</span>
  9853. </div>
  9854. <div class="evalCss">
  9855. <div class="nav">请选择星星进行评分</div>
  9856. <div class="middleBox" v-if="eScore.eStar">
  9857. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9858. <div class="nameAndrate">
  9859. <div>{{ e.value }}</div>
  9860. <el-rate
  9861. v-model="eScore.eStar[eIndex]"
  9862. :disabled="isStar"
  9863. ></el-rate>
  9864. </div>
  9865. <div v-if="e.detail">{{ e.detail }}</div>
  9866. </div>
  9867. <div class="easy_comment" v-if="false">
  9868. <div
  9869. v-for="(p, pIndex) in PlTextList"
  9870. :key="pIndex"
  9871. @click="fastText(p, 2)"
  9872. >
  9873. {{ p }}
  9874. </div>
  9875. </div>
  9876. <div class="bz">
  9877. <textarea
  9878. :disabled="isStar"
  9879. rows="4"
  9880. class="pj"
  9881. style="
  9882. padding: 10px 5px;
  9883. width: 70%;
  9884. background: #f7f6f9;
  9885. font-size: 14px;
  9886. text-indent: 10px;
  9887. "
  9888. cols
  9889. v-model="eScore.eBzText"
  9890. placeholder="请输入评价内容..."
  9891. ></textarea>
  9892. </div>
  9893. </div>
  9894. </div>
  9895. <div slot="footer">
  9896. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9897. >取 消</el-button
  9898. >
  9899. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9900. >确 定</el-button
  9901. >
  9902. </div>
  9903. </el-dialog>
  9904. <el-dialog
  9905. title="选择填空"
  9906. :visible.sync="dialogVisibleSelect"
  9907. :append-to-body="true"
  9908. width="90%"
  9909. :before-close="handleClose"
  9910. class="dialog_diy dialog_diy3"
  9911. >
  9912. <div v-if="selectJson">
  9913. <div class="select_box2">
  9914. <div class="select_box2_title">
  9915. <div>选择填空</div>
  9916. <div>请选择对应的答案进行答题!</div>
  9917. </div>
  9918. <div class="select_box2_box">
  9919. <div class="select_box2_img">
  9920. <img
  9921. :src="selectJson.url"
  9922. @click="previewImg(selectJson.url)"
  9923. alt=""
  9924. />
  9925. </div>
  9926. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9927. <div style="padding-top: 15px">
  9928. <div class="select_answer_title" v-if="isSelect">
  9929. {{ selectAnswer.stu }}
  9930. </div>
  9931. <div class="select_answer_title" v-else>
  9932. 根据题目选择对应答案
  9933. </div>
  9934. <div
  9935. class="select_box2_answer_box"
  9936. v-for="(item2, checkIndex) in selectJson.select"
  9937. :key="checkIndex"
  9938. >
  9939. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9940. <el-select
  9941. :disabled="isSelect"
  9942. v-model="selectAnswer.answer[checkIndex]"
  9943. placeholder="请选择正确答案"
  9944. >
  9945. <el-option
  9946. v-for="(e, eIndex) in selectJson.select"
  9947. :key="eIndex"
  9948. :label="e"
  9949. :value="eIndex"
  9950. >
  9951. </el-option>
  9952. </el-select>
  9953. </div>
  9954. </div>
  9955. <div
  9956. class="rightAnswerCss"
  9957. v-if="isSelect && (tType == 1 || tType == 4)"
  9958. >
  9959. <div
  9960. v-for="(a, aIndex) in selectJson.answer"
  9961. :key="aIndex"
  9962. class="rightAnswer"
  9963. >
  9964. <div
  9965. v-if="selectAnswer.answer[aIndex] === a"
  9966. style="color: #767de1"
  9967. >
  9968. 回答正确
  9969. </div>
  9970. <div v-else>回答错误</div>
  9971. <div
  9972. style="margin-left: 10px"
  9973. v-if="selectAnswer.answer[aIndex] !== a"
  9974. >
  9975. 正确答案:
  9976. </div>
  9977. <div
  9978. :class="
  9979. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9980. "
  9981. >
  9982. {{ selectJson.select[a] }}
  9983. </div>
  9984. </div>
  9985. </div>
  9986. </div>
  9987. <div class="upAnswerCss">
  9988. <el-button
  9989. type="primary"
  9990. @click="addSelectAnswer"
  9991. v-if="!isSelect"
  9992. >提交答案</el-button
  9993. >
  9994. </div>
  9995. </div>
  9996. </div>
  9997. </div>
  9998. </el-dialog>
  9999. <el-dialog
  10000. title="选择填空"
  10001. :visible.sync="dialogVisibleSelectTeacher"
  10002. :append-to-body="true"
  10003. width="90%"
  10004. :before-close="handleClose"
  10005. class="dialog_diy dialog_diy3"
  10006. >
  10007. <div v-if="selectJson">
  10008. <div class="w_name">
  10009. 学生姓名:<span>{{ sStudent.student }}</span>
  10010. </div>
  10011. <div class="select_box2">
  10012. <div class="select_box2_title">
  10013. <div>选择填空</div>
  10014. <div>请选择对应的答案进行答题!</div>
  10015. </div>
  10016. <div class="select_box2_box">
  10017. <div class="select_box2_img">
  10018. <img
  10019. :src="selectJson.url"
  10020. @click="previewImg(selectJson.url)"
  10021. alt=""
  10022. />
  10023. </div>
  10024. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10025. <div style="padding-top: 15px">
  10026. <div class="select_answer_title" v-if="isSelect">
  10027. {{ selectAnswer.stu }}
  10028. </div>
  10029. <div class="select_answer_title" v-else>
  10030. 根据题目选择对应答案
  10031. </div>
  10032. <div
  10033. class="select_box2_answer_box"
  10034. v-for="(item2, checkIndex) in selectJson.select"
  10035. :key="checkIndex"
  10036. >
  10037. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10038. <el-select
  10039. :disabled="isSelect"
  10040. v-model="selectAnswer.answer[checkIndex]"
  10041. placeholder="请选择正确答案"
  10042. >
  10043. <el-option
  10044. v-for="(e, eIndex) in selectJson.select"
  10045. :key="eIndex"
  10046. :label="e"
  10047. :value="eIndex"
  10048. >
  10049. </el-option>
  10050. </el-select>
  10051. </div>
  10052. </div>
  10053. <div
  10054. class="rightAnswerCss"
  10055. v-if="isSelect && (tType == 1 || tType == 4)"
  10056. >
  10057. <div
  10058. v-for="(a, aIndex) in selectJson.answer"
  10059. :key="aIndex"
  10060. class="rightAnswer"
  10061. >
  10062. <div
  10063. v-if="selectAnswer.answer[aIndex] === a"
  10064. style="color: #767de1"
  10065. >
  10066. 回答正确
  10067. </div>
  10068. <div v-else>回答错误</div>
  10069. <div
  10070. style="margin-left: 10px"
  10071. v-if="selectAnswer.answer[aIndex] !== a"
  10072. >
  10073. 正确答案:
  10074. </div>
  10075. <div
  10076. :class="
  10077. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10078. "
  10079. >
  10080. {{ selectJson.select[a] }}
  10081. </div>
  10082. </div>
  10083. </div>
  10084. </div>
  10085. <div class="upAnswerCss">
  10086. <el-button
  10087. type="primary"
  10088. @click="addSelectAnswerTeacher"
  10089. v-if="!isSelect"
  10090. >提交答案</el-button
  10091. >
  10092. </div>
  10093. </div>
  10094. </div>
  10095. </div>
  10096. </el-dialog>
  10097. <el-dialog
  10098. title="教师评分"
  10099. :visible.sync="dialogVisibleScore"
  10100. :append-to-body="true"
  10101. width="800px"
  10102. :before-close="handleClose"
  10103. class="dialog_diy"
  10104. >
  10105. <div>
  10106. <div class="studentDetail">
  10107. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10108. <div class="nameAndTime">
  10109. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10110. <div>{{ commentDetail.time }}</div>
  10111. </div>
  10112. </div>
  10113. <div
  10114. class="worksAnswer"
  10115. v-if="commentDetail.works && commentDetail.type == 2"
  10116. >
  10117. {{ JSON.parse(commentDetail.works)[0].answer }}
  10118. </div>
  10119. <div
  10120. class="worksAnswer"
  10121. v-if="commentDetail.works && commentDetail.type == 1"
  10122. >
  10123. <pdf
  10124. v-if="showPDF"
  10125. :pdfUrl="pptImgUrl"
  10126. style="width: 100%; height: 520px; overflow: auto"
  10127. :class="{ fullStyle: full }"
  10128. ></pdf>
  10129. <iframe
  10130. v-else
  10131. :src="pptImgUrl"
  10132. frameborder="0"
  10133. width="100%"
  10134. height="600"
  10135. :class="{ fullStyle: full }"
  10136. ></iframe>
  10137. </div>
  10138. <div
  10139. class="worksAnswer"
  10140. v-if="commentDetail.works && commentDetail.type == 0"
  10141. >
  10142. <img
  10143. :src="commentDetail.works"
  10144. alt=""
  10145. @click="previewImg(commentDetail.works)"
  10146. />
  10147. </div>
  10148. <div
  10149. class="worksAnswer"
  10150. v-if="commentDetail.works && commentDetail.type == 3"
  10151. >
  10152. <video-player
  10153. class="video-player vjs-custom-skin"
  10154. :playsinline="true"
  10155. :options="videoDetail"
  10156. @play="onPlayerPlay($event)"
  10157. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10158. ></video-player>
  10159. </div>
  10160. <div
  10161. class="worksAnswer codeFileBox"
  10162. v-if="commentDetail.works && commentDetail.type == 12"
  10163. @click="downloadFile(commentDetail.works)"
  10164. >
  10165. <img src="../../assets/icon/codeFile.png" />
  10166. <div>点击下载文件</div>
  10167. </div>
  10168. <div
  10169. class="worksAnswer codeFileBox"
  10170. v-if="commentDetail.works && commentDetail.type == 15"
  10171. @click="
  10172. openCocoPi(
  10173. 57,
  10174. commentIndexJson.toolIndex,
  10175. commentDetail.userid,
  10176. commentDetail.sName
  10177. )
  10178. "
  10179. >
  10180. <img src="../../assets/icon/codeFile.png" />
  10181. <div>点击打开CocoPi</div>
  10182. </div>
  10183. <div
  10184. class="worksAnswer"
  10185. v-if="commentDetail.works && commentDetail.type == 13"
  10186. >
  10187. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10188. </div>
  10189. <div class="scoreBox">
  10190. <span class="t">请输入分数</span>
  10191. <el-input-number
  10192. :disabled="courseDetail.userid != userid"
  10193. v-model="wScore"
  10194. :controls="false"
  10195. :min="0"
  10196. :max="100"
  10197. ></el-input-number>
  10198. </div>
  10199. <div class="scoreDetailBox">
  10200. <span class="t">评分评论</span>
  10201. <el-input
  10202. type="textarea"
  10203. :rows="5"
  10204. :disabled="courseDetail.userid != userid"
  10205. resize="none"
  10206. v-model="scoreDetail"
  10207. placeholder="请输入对学生的评价"
  10208. >
  10209. </el-input>
  10210. </div>
  10211. </div>
  10212. <span slot="footer" class="dialog-footer">
  10213. <el-button
  10214. @click="
  10215. (dialogVisibleScore = false),
  10216. (commentIndexJson = {}),
  10217. videoDetail.sources && videoDetail.sources[0]
  10218. ? (videoDetail.sources[0].src = '')
  10219. : ''
  10220. "
  10221. >取 消</el-button
  10222. >
  10223. <el-button
  10224. type="primary"
  10225. v-if="courseDetail.userid == userid"
  10226. @click="scoreWork(commentDetail.wid)"
  10227. >确 定
  10228. </el-button>
  10229. </span>
  10230. </el-dialog>
  10231. <el-dialog
  10232. title="连词成句"
  10233. :visible.sync="dialogVisibleSentence"
  10234. :append-to-body="true"
  10235. width="1000px"
  10236. :before-close="handleClose"
  10237. class="dialog_diy dialog_diy3"
  10238. >
  10239. <div>
  10240. <div class="sentenBox">
  10241. <div
  10242. v-for="(st, stIndex) in sentenceList"
  10243. :key="stIndex"
  10244. style="padding-bottom: 20px"
  10245. >
  10246. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10247. <div class="cardList" v-if="st.chooseSenList">
  10248. <div class="cardBox">
  10249. <div
  10250. v-for="(r, rIndex) in st.chooseSenList"
  10251. :key="rIndex"
  10252. @click="returnCard(r, stIndex, rIndex)"
  10253. >
  10254. <el-tooltip
  10255. class="item"
  10256. effect="light"
  10257. :content="r"
  10258. placement="top"
  10259. v-if="r != '' && r != undefined"
  10260. >
  10261. <div
  10262. :class="{
  10263. isCard: r,
  10264. isChooseCard: r == '' || r == undefined,
  10265. }"
  10266. >
  10267. <div>{{ r }}</div>
  10268. </div>
  10269. </el-tooltip>
  10270. <div
  10271. :class="{
  10272. isCard: r,
  10273. isChooseCard: r == '' || r == undefined,
  10274. }"
  10275. v-else
  10276. >
  10277. <div>{{ r }}</div>
  10278. </div>
  10279. </div>
  10280. </div>
  10281. </div>
  10282. <div class="cardList" v-if="st.addChangeSen">
  10283. <div class="cardBox">
  10284. <div
  10285. v-for="(s, sIndex) in st.addChangeSen"
  10286. :key="sIndex"
  10287. @click="setRightAnswer(s, stIndex, sIndex)"
  10288. >
  10289. <el-tooltip
  10290. class="item"
  10291. effect="light"
  10292. :content="s"
  10293. placement="top"
  10294. v-if="s != '' && s != undefined"
  10295. >
  10296. <div
  10297. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10298. >
  10299. <div>{{ s }}</div>
  10300. </div>
  10301. </el-tooltip>
  10302. <div
  10303. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10304. v-else
  10305. >
  10306. <div>{{ s }}</div>
  10307. </div>
  10308. </div>
  10309. </div>
  10310. </div>
  10311. </div>
  10312. </div>
  10313. </div>
  10314. <span slot="footer" class="dialog-footer">
  10315. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10316. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10317. </span>
  10318. </el-dialog>
  10319. <el-dialog
  10320. title="连词成句"
  10321. :visible.sync="dialogVisibleSentenceTeacher"
  10322. :append-to-body="true"
  10323. width="1000px"
  10324. :before-close="handleClose"
  10325. class="dialog_diy dialog_diy3"
  10326. >
  10327. <div>
  10328. <div class="w_name">
  10329. 学生姓名:<span>{{ sStudent.student }}</span>
  10330. </div>
  10331. <div class="sentenBox">
  10332. <div
  10333. v-for="(st, stIndex) in sentenceList"
  10334. :key="stIndex"
  10335. style="padding-bottom: 20px"
  10336. >
  10337. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  10338. <div class="cardList" v-if="st.chooseSenList">
  10339. <div class="cardBox">
  10340. <div
  10341. v-for="(r, rIndex) in st.chooseSenList"
  10342. :key="rIndex"
  10343. @click="returnCard(r, stIndex, rIndex)"
  10344. >
  10345. <el-tooltip
  10346. class="item"
  10347. effect="light"
  10348. :content="r"
  10349. placement="top"
  10350. v-if="r != '' && r != undefined"
  10351. >
  10352. <div
  10353. :class="{
  10354. isCard: r,
  10355. isChooseCard: r == '' || r == undefined,
  10356. }"
  10357. >
  10358. <div>{{ r }}</div>
  10359. </div>
  10360. </el-tooltip>
  10361. <div
  10362. :class="{
  10363. isCard: r,
  10364. isChooseCard: r == '' || r == undefined,
  10365. }"
  10366. v-else
  10367. >
  10368. <div>{{ r }}</div>
  10369. </div>
  10370. </div>
  10371. </div>
  10372. </div>
  10373. <div class="cardList" v-if="st.addChangeSen">
  10374. <div class="cardBox">
  10375. <div
  10376. v-for="(s, sIndex) in st.addChangeSen"
  10377. :key="sIndex"
  10378. @click="setRightAnswer(s, stIndex, sIndex)"
  10379. >
  10380. <el-tooltip
  10381. class="item"
  10382. effect="light"
  10383. :content="s"
  10384. placement="top"
  10385. v-if="s != '' && s != undefined"
  10386. >
  10387. <div
  10388. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10389. >
  10390. <div>{{ s }}</div>
  10391. </div>
  10392. </el-tooltip>
  10393. <div
  10394. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10395. v-else
  10396. >
  10397. <div>{{ s }}</div>
  10398. </div>
  10399. </div>
  10400. </div>
  10401. </div>
  10402. </div>
  10403. </div>
  10404. </div>
  10405. <span slot="footer" class="dialog-footer">
  10406. <el-button @click="dialogVisibleSentenceTeacher = false"
  10407. >取 消</el-button
  10408. >
  10409. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10410. </span>
  10411. </el-dialog>
  10412. <el-dialog
  10413. title="连词成句"
  10414. :visible.sync="dialogVisibleSentence1"
  10415. :append-to-body="true"
  10416. width="1000px"
  10417. :before-close="handleClose"
  10418. class="dialog_diy dialog_diy3"
  10419. >
  10420. <div>
  10421. <div class="sentenBox">
  10422. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10423. {{ sentenceList1.stuName }}的作业
  10424. </div>
  10425. <div
  10426. v-for="(st, stIndex) in sentenceList1"
  10427. :key="stIndex"
  10428. style="padding-bottom: 20px"
  10429. >
  10430. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10431. 第{{ stIndex + 1 }}题
  10432. </div>
  10433. <div class="isWrong">
  10434. <div class="cardList1" v-if="st.chooseSenList">
  10435. <div class="cardBox">
  10436. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10437. <el-tooltip
  10438. class="item"
  10439. effect="light"
  10440. :content="s"
  10441. placement="top"
  10442. >
  10443. <div class="isCard">
  10444. <div>{{ s }}</div>
  10445. </div>
  10446. </el-tooltip>
  10447. </div>
  10448. </div>
  10449. <div class="cardAnswerBox">
  10450. 组成句子:{{ st.chooseSenList.join(" ") }}
  10451. </div>
  10452. </div>
  10453. <div
  10454. class="answerRight isTj"
  10455. v-if="
  10456. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10457. (tType == 1 || tType == 4)
  10458. "
  10459. >
  10460. <div class="isTjImg">
  10461. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10462. </div>
  10463. <div>回答正确</div>
  10464. </div>
  10465. <div
  10466. class="answerRight isTj"
  10467. v-if="
  10468. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10469. (tType == 1 || tType == 4)
  10470. "
  10471. >
  10472. <div class="isTjImg">
  10473. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10474. </div>
  10475. <div>回答错误</div>
  10476. </div>
  10477. </div>
  10478. <div
  10479. v-if="
  10480. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10481. (tType == 1 || tType == 4)
  10482. "
  10483. >
  10484. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10485. <div
  10486. class="cardList"
  10487. v-if="st.rightAnswer"
  10488. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10489. >
  10490. <div class="cardBox">
  10491. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10492. <el-tooltip
  10493. class="item"
  10494. effect="light"
  10495. :content="r"
  10496. placement="top"
  10497. >
  10498. <div class="isCard1">
  10499. <div>{{ r }}</div>
  10500. </div>
  10501. </el-tooltip>
  10502. </div>
  10503. </div>
  10504. <div class="cardAnswerBox">
  10505. 组成句子:{{ st.rightAnswer.join(" ") }}
  10506. </div>
  10507. </div>
  10508. </div>
  10509. </div>
  10510. </div>
  10511. </div>
  10512. <span slot="footer" class="dialog-footer">
  10513. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10514. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10515. >确 定</el-button
  10516. >
  10517. </span>
  10518. </el-dialog>
  10519. <el-dialog
  10520. title="提交作业"
  10521. :visible.sync="dialogVisibleWorks"
  10522. :append-to-body="true"
  10523. width="500px"
  10524. :before-close="handleClose"
  10525. class="dialog_change"
  10526. >
  10527. <div class="marginT">
  10528. <div class="w_name">
  10529. 学生姓名:<span>{{ sStudent.student }}</span>
  10530. </div>
  10531. <div>上传文件</div>
  10532. <div
  10533. class="chapter_add"
  10534. @click="addImg($event)"
  10535. v-if="studyJuri[0].cover.length == 0"
  10536. >
  10537. <div class="up_photo">
  10538. <img src="../../assets/uploadImg2.png" alt />
  10539. </div>
  10540. <!-- <input
  10541. type="file"
  10542. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10543. style="display: none"
  10544. @change="beforeUpload1($event, 1)"
  10545. /> -->
  10546. <input
  10547. type="file"
  10548. accept="*"
  10549. style="display: none"
  10550. @change="beforeUpload1($event, 1)"
  10551. />
  10552. </div>
  10553. <!-- capture="camera" -->
  10554. <div
  10555. class="chapter_add"
  10556. style="
  10557. display: flex;
  10558. width: 100%;
  10559. flex-direction: row;
  10560. flex-wrap: wrap;
  10561. justify-content: flex-start;
  10562. padding: 15px 0;
  10563. "
  10564. v-if="studyJuri[0].cover.length > 0"
  10565. >
  10566. <div class="upCover">
  10567. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10568. <img :src="word" alt v-else-if="fileType == 1" />
  10569. <img :src="video" alt v-else-if="fileType == 2" />
  10570. <img :src="word2" alt v-else-if="fileType == 3" />
  10571. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10572. <div class="deleteWord" @click="clean(1)">
  10573. <img src="../../assets/icon/deleteWorks.png" alt />
  10574. </div>
  10575. </div>
  10576. </div>
  10577. </div>
  10578. <div
  10579. class="upload_send"
  10580. @click="addCourseWorksTeacher(taskCount)"
  10581. v-if="!proVisible"
  10582. >
  10583. 提交
  10584. </div>
  10585. </el-dialog>
  10586. <el-dialog
  10587. title="问答"
  10588. :visible.sync="answerDialogVisibleTeacher"
  10589. :append-to-body="true"
  10590. width="800px"
  10591. :before-close="handleClose"
  10592. class="dialog_diy"
  10593. >
  10594. <div>
  10595. <div class="w_name">
  10596. 学生姓名:<span>{{ sStudent.student }}</span>
  10597. </div>
  10598. <div
  10599. style="
  10600. display: flex;
  10601. flex-wrap: nowrap;
  10602. flex-direction: column;
  10603. position: relative;
  10604. "
  10605. >
  10606. <div class="queTop" style="padding: 20px 0 20px 0">
  10607. <div class="question">
  10608. <img src="../../assets/icon/question.png" alt />
  10609. </div>
  10610. <div class="queTitle">
  10611. <div style="width: 90px; min-width: 90px">提问:</div>
  10612. <div>{{ answerQ }}</div>
  10613. </div>
  10614. </div>
  10615. <div class="ediBottom">
  10616. <textarea
  10617. rows="6"
  10618. class="binfo_input"
  10619. cols
  10620. style="width: 95%; height: 120px"
  10621. v-model="questionAnswer"
  10622. ></textarea>
  10623. </div>
  10624. </div>
  10625. </div>
  10626. <div slot="footer">
  10627. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10628. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10629. </div>
  10630. </el-dialog>
  10631. <ImgDraw
  10632. :drawShow="drawShow"
  10633. @closeDraw="closeDraw"
  10634. @addImgDraw="addImgDraw"
  10635. :bg="bg"
  10636. ></ImgDraw>
  10637. <el-dialog
  10638. title="表格"
  10639. :visible.sync="dialogVisibleTable"
  10640. :append-to-body="true"
  10641. width="95%"
  10642. :before-close="handleClose"
  10643. class="dialog_diy"
  10644. >
  10645. <el-form>
  10646. <div>表格内容</div>
  10647. <Table
  10648. v-model="tableJson.text"
  10649. @change="change"
  10650. v-if="dialogVisibleTable"
  10651. ></Table>
  10652. </el-form>
  10653. <span slot="footer" class="dialog-footer">
  10654. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10655. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10656. </span>
  10657. </el-dialog>
  10658. <el-dialog
  10659. title="表格"
  10660. :visible.sync="dialogVisibleTableTeacher"
  10661. :append-to-body="true"
  10662. width="95%"
  10663. :before-close="handleClose"
  10664. class="dialog_diy"
  10665. >
  10666. <el-form>
  10667. <div class="w_name">
  10668. 学生姓名:<span>{{ sStudent.student }}</span>
  10669. </div>
  10670. <div>表格内容</div>
  10671. <Table
  10672. v-model="tableJson.text"
  10673. @change="change"
  10674. v-if="dialogVisibleTableTeacher"
  10675. ></Table>
  10676. </el-form>
  10677. <span slot="footer" class="dialog-footer">
  10678. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10679. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10680. </span>
  10681. </el-dialog>
  10682. <el-dialog
  10683. title="文档"
  10684. :visible.sync="dialogVisibleWord"
  10685. :append-to-body="true"
  10686. width="95%"
  10687. :before-close="handleClose"
  10688. class="dialog_diy"
  10689. >
  10690. <el-form>
  10691. <div>文档内容</div>
  10692. <editor-bar
  10693. v-model="wordJson.text"
  10694. v-if="dialogVisibleWord"
  10695. ></editor-bar>
  10696. </el-form>
  10697. <span slot="footer" class="dialog-footer">
  10698. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10699. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10700. </span>
  10701. </el-dialog>
  10702. <el-dialog
  10703. title="文档"
  10704. :visible.sync="dialogVisibleWordTeacher"
  10705. :append-to-body="true"
  10706. width="95%"
  10707. :before-close="handleClose"
  10708. class="dialog_diy"
  10709. >
  10710. <el-form>
  10711. <div class="w_name">
  10712. 学生姓名:<span>{{ sStudent.student }}</span>
  10713. </div>
  10714. <div>文档内容</div>
  10715. <editor-bar
  10716. v-model="wordJson.text"
  10717. v-if="dialogVisibleWordTeacher"
  10718. ></editor-bar>
  10719. </el-form>
  10720. <span slot="footer" class="dialog-footer">
  10721. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10722. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10723. </span>
  10724. </el-dialog>
  10725. <el-dialog
  10726. title="表格"
  10727. :visible.sync="dialogVisibleTable2"
  10728. :append-to-body="true"
  10729. width="95%"
  10730. :before-close="handleClose"
  10731. class="dialog_diy"
  10732. >
  10733. <el-form>
  10734. <div class="cont" v-html="tableJson.text"></div>
  10735. </el-form>
  10736. <span slot="footer" class="dialog-footer">
  10737. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10738. </span>
  10739. </el-dialog>
  10740. <el-dialog
  10741. title="文档"
  10742. :visible.sync="dialogVisibleTable3"
  10743. :append-to-body="true"
  10744. width="95%"
  10745. :before-close="handleClose"
  10746. class="dialog_diy"
  10747. >
  10748. <el-form>
  10749. <div class="cont" v-html="tableJson.text"></div>
  10750. </el-form>
  10751. <span slot="footer" class="dialog-footer">
  10752. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10753. </span>
  10754. </el-dialog>
  10755. <el-dialog
  10756. title="分组设置"
  10757. :visible.sync="dialogVisibleGroup"
  10758. :append-to-body="true"
  10759. width="95%"
  10760. :before-close="handleClose"
  10761. class="dialog_diy"
  10762. >
  10763. <div v-if="dialogVisibleGroup">
  10764. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10765. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10766. 提示:需要锁定位置,才能点击头像修改座位。
  10767. </div>
  10768. <div
  10769. type="primary"
  10770. v-if="groupJson.islock == 1"
  10771. class="returnBtn"
  10772. style="background-color: #225bc7"
  10773. @click="lockChair"
  10774. >
  10775. 锁定位置
  10776. </div>
  10777. <div
  10778. type="primary"
  10779. v-else
  10780. class="returnBtn"
  10781. style="background-color: #225bc7"
  10782. @click="lockChair"
  10783. >
  10784. 解锁位置
  10785. </div>
  10786. <div
  10787. type="primary"
  10788. @click="updateGroup"
  10789. class="returnBtn"
  10790. style="background-color: #225bc7"
  10791. >
  10792. 分组设置
  10793. </div>
  10794. </div>
  10795. <div>
  10796. <div
  10797. class="g_d_box"
  10798. v-if="groupJson.group && groupStudent[toolindex]"
  10799. >
  10800. <div
  10801. class="g_d_group"
  10802. v-for="(g, gindex) in groupJson.group"
  10803. :key="gindex"
  10804. >
  10805. <div class="g_d_group_chair">
  10806. <div v-if="groupJson.number > 1">
  10807. <span
  10808. :class="{
  10809. isChair:
  10810. groupStudent[toolindex][gindex] &&
  10811. groupStudent[toolindex][gindex][0],
  10812. updateChair:
  10813. courseDetail.userid == userid &&
  10814. groupStudent[toolindex][gindex] &&
  10815. groupStudent[toolindex][gindex][0] &&
  10816. groupJson.islock == 2,
  10817. }"
  10818. ><span
  10819. class="updateChairBtn"
  10820. @click="
  10821. updateGroupChair(
  10822. groupStudent[toolindex][gindex] &&
  10823. groupStudent[toolindex][gindex][0]
  10824. )
  10825. "
  10826. >修改</span
  10827. ></span
  10828. ><span>{{
  10829. groupStudent[toolindex][gindex] &&
  10830. groupStudent[toolindex][gindex][0]
  10831. ? groupStudent[toolindex][gindex] &&
  10832. groupStudent[toolindex][gindex][0].name
  10833. : "空位置"
  10834. }}</span>
  10835. </div>
  10836. <div v-if="groupJson.number > 4">
  10837. <span
  10838. :class="{
  10839. isChair:
  10840. groupStudent[toolindex][gindex] &&
  10841. groupStudent[toolindex][gindex][4],
  10842. updateChair:
  10843. courseDetail.userid == userid &&
  10844. groupStudent[toolindex][gindex] &&
  10845. groupStudent[toolindex][gindex][4] &&
  10846. groupJson.islock == 2,
  10847. }"
  10848. ><span
  10849. class="updateChairBtn"
  10850. @click="
  10851. updateGroupChair(
  10852. groupStudent[toolindex][gindex] &&
  10853. groupStudent[toolindex][gindex][4]
  10854. )
  10855. "
  10856. >修改</span
  10857. ></span
  10858. ><span>{{
  10859. groupStudent[toolindex][gindex] &&
  10860. groupStudent[toolindex][gindex][4]
  10861. ? groupStudent[toolindex][gindex] &&
  10862. groupStudent[toolindex][gindex][4].name
  10863. : "空位置"
  10864. }}</span>
  10865. </div>
  10866. <div v-if="groupJson.number > 8">
  10867. <span
  10868. :class="{
  10869. isChair:
  10870. groupStudent[toolindex][gindex] &&
  10871. groupStudent[toolindex][gindex][8],
  10872. updateChair:
  10873. courseDetail.userid == userid &&
  10874. groupStudent[toolindex][gindex] &&
  10875. groupStudent[toolindex][gindex][8] &&
  10876. groupJson.islock == 2,
  10877. }"
  10878. ><span
  10879. class="updateChairBtn"
  10880. @click="
  10881. updateGroupChair(
  10882. groupStudent[toolindex][gindex] &&
  10883. groupStudent[toolindex][gindex][8]
  10884. )
  10885. "
  10886. >修改</span
  10887. ></span
  10888. ><span>{{
  10889. groupStudent[toolindex][gindex] &&
  10890. groupStudent[toolindex][gindex][8]
  10891. ? groupStudent[toolindex][gindex] &&
  10892. groupStudent[toolindex][gindex][8].name
  10893. : "空位置"
  10894. }}</span>
  10895. </div>
  10896. </div>
  10897. <div class="g_d_group_tableBox">
  10898. <div class="g_d_group_chair2">
  10899. <div v-if="groupJson.number > 2">
  10900. <span
  10901. :class="{
  10902. isChair:
  10903. groupStudent[toolindex][gindex] &&
  10904. groupStudent[toolindex][gindex][2],
  10905. updateChair:
  10906. courseDetail.userid == userid &&
  10907. groupStudent[toolindex][gindex] &&
  10908. groupStudent[toolindex][gindex][2] &&
  10909. groupJson.islock == 2,
  10910. }"
  10911. ><span
  10912. class="updateChairBtn"
  10913. @click="
  10914. updateGroupChair(
  10915. groupStudent[toolindex][gindex] &&
  10916. groupStudent[toolindex][gindex][2]
  10917. )
  10918. "
  10919. >修改</span
  10920. ></span
  10921. ><span>{{
  10922. groupStudent[toolindex][gindex] &&
  10923. groupStudent[toolindex][gindex][2]
  10924. ? groupStudent[toolindex][gindex] &&
  10925. groupStudent[toolindex][gindex][2].name
  10926. : "空位置"
  10927. }}</span>
  10928. </div>
  10929. <div v-if="groupJson.number > 6">
  10930. <span
  10931. :class="{
  10932. isChair:
  10933. groupStudent[toolindex][gindex] &&
  10934. groupStudent[toolindex][gindex][6],
  10935. updateChair:
  10936. courseDetail.userid == userid &&
  10937. groupStudent[toolindex][gindex] &&
  10938. groupStudent[toolindex][gindex][6] &&
  10939. groupJson.islock == 2,
  10940. }"
  10941. ><span
  10942. class="updateChairBtn"
  10943. @click="
  10944. updateGroupChair(
  10945. groupStudent[toolindex][gindex] &&
  10946. groupStudent[toolindex][gindex][6]
  10947. )
  10948. "
  10949. >修改</span
  10950. ></span
  10951. ><span>{{
  10952. groupStudent[toolindex][gindex] &&
  10953. groupStudent[toolindex][gindex][6]
  10954. ? groupStudent[toolindex][gindex] &&
  10955. groupStudent[toolindex][gindex][6].name
  10956. : "空位置"
  10957. }}</span>
  10958. </div>
  10959. </div>
  10960. <div class="g_d_group_table">
  10961. <div>
  10962. {{ g.name }}
  10963. </div>
  10964. <div>
  10965. <div
  10966. v-if="
  10967. courseDetail.userid == userid && groupJson.islock == 2
  10968. "
  10969. @click="deleteGroupChair(gindex)"
  10970. >
  10971. 移除组员
  10972. </div>
  10973. <div
  10974. @click="selectGroup(gindex)"
  10975. v-else-if="
  10976. groupStudentUid[toolindex] &&
  10977. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10978. "
  10979. >
  10980. 加入分组
  10981. </div>
  10982. <div
  10983. @click="
  10984. exitGroup(
  10985. groupStudent[toolindex][gindex] &&
  10986. groupStudent[toolindex][gindex][
  10987. groupStudentUid[toolindex][gindex].indexOf(userid)
  10988. ].id
  10989. )
  10990. "
  10991. v-else-if="
  10992. groupStudentUid[toolindex] &&
  10993. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10994. "
  10995. >
  10996. 退出分组
  10997. </div>
  10998. </div>
  10999. </div>
  11000. <div class="g_d_group_chair2">
  11001. <div v-if="groupJson.number > 3">
  11002. <span
  11003. :class="{
  11004. isChair:
  11005. groupStudent[toolindex][gindex] &&
  11006. groupStudent[toolindex][gindex][3],
  11007. updateChair:
  11008. courseDetail.userid == userid &&
  11009. groupStudent[toolindex][gindex] &&
  11010. groupStudent[toolindex][gindex][3] &&
  11011. groupJson.islock == 2,
  11012. }"
  11013. ><span
  11014. class="updateChairBtn"
  11015. @click="
  11016. updateGroupChair(
  11017. groupStudent[toolindex][gindex] &&
  11018. groupStudent[toolindex][gindex][3]
  11019. )
  11020. "
  11021. >修改</span
  11022. ></span
  11023. ><span>{{
  11024. groupStudent[toolindex][gindex] &&
  11025. groupStudent[toolindex][gindex][3]
  11026. ? groupStudent[toolindex][gindex] &&
  11027. groupStudent[toolindex][gindex][3].name
  11028. : "空位置"
  11029. }}</span>
  11030. </div>
  11031. <div v-if="groupJson.number > 7">
  11032. <span
  11033. :class="{
  11034. isChair:
  11035. groupStudent[toolindex][gindex] &&
  11036. groupStudent[toolindex][gindex][7],
  11037. updateChair:
  11038. courseDetail.userid == userid &&
  11039. groupStudent[toolindex][gindex] &&
  11040. groupStudent[toolindex][gindex][7] &&
  11041. groupJson.islock == 2,
  11042. }"
  11043. ><span
  11044. class="updateChairBtn"
  11045. @click="
  11046. updateGroupChair(
  11047. groupStudent[toolindex][gindex] &&
  11048. groupStudent[toolindex][gindex][7]
  11049. )
  11050. "
  11051. >修改</span
  11052. ></span
  11053. ><span>{{
  11054. groupStudent[toolindex][gindex] &&
  11055. groupStudent[toolindex][gindex][7]
  11056. ? groupStudent[toolindex][gindex] &&
  11057. groupStudent[toolindex][gindex][7].name
  11058. : "空位置"
  11059. }}</span>
  11060. </div>
  11061. </div>
  11062. </div>
  11063. <div class="g_d_group_chair">
  11064. <div v-if="groupJson.number > 1">
  11065. <span
  11066. :class="{
  11067. isChair:
  11068. groupStudent[toolindex][gindex] &&
  11069. groupStudent[toolindex][gindex][1],
  11070. updateChair:
  11071. courseDetail.userid == userid &&
  11072. groupStudent[toolindex][gindex] &&
  11073. groupStudent[toolindex][gindex][1] &&
  11074. groupJson.islock == 2,
  11075. }"
  11076. ><span
  11077. class="updateChairBtn"
  11078. @click="
  11079. updateGroupChair(
  11080. groupStudent[toolindex][gindex] &&
  11081. groupStudent[toolindex][gindex][1]
  11082. )
  11083. "
  11084. >修改</span
  11085. ></span
  11086. ><span>{{
  11087. groupStudent[toolindex][gindex] &&
  11088. groupStudent[toolindex][gindex][1]
  11089. ? groupStudent[toolindex][gindex] &&
  11090. groupStudent[toolindex][gindex][1].name
  11091. : "空位置"
  11092. }}</span>
  11093. </div>
  11094. <div v-if="groupJson.number > 5">
  11095. <span
  11096. :class="{
  11097. isChair:
  11098. groupStudent[toolindex][gindex] &&
  11099. groupStudent[toolindex][gindex][5],
  11100. updateChair:
  11101. courseDetail.userid == userid &&
  11102. groupStudent[toolindex][gindex] &&
  11103. groupStudent[toolindex][gindex][5] &&
  11104. groupJson.islock == 2,
  11105. }"
  11106. ><span
  11107. class="updateChairBtn"
  11108. @click="
  11109. updateGroupChair(
  11110. groupStudent[toolindex][gindex] &&
  11111. groupStudent[toolindex][gindex][5]
  11112. )
  11113. "
  11114. >修改</span
  11115. ></span
  11116. ><span>{{
  11117. groupStudent[toolindex][gindex] &&
  11118. groupStudent[toolindex][gindex][5]
  11119. ? groupStudent[toolindex][gindex] &&
  11120. groupStudent[toolindex][gindex][5].name
  11121. : "空位置"
  11122. }}</span>
  11123. </div>
  11124. <div v-if="groupJson.number > 9">
  11125. <span
  11126. :class="{
  11127. isChair:
  11128. groupStudent[toolindex][gindex] &&
  11129. groupStudent[toolindex][gindex][9],
  11130. updateChair:
  11131. courseDetail.userid == userid &&
  11132. groupStudent[toolindex][gindex] &&
  11133. groupStudent[toolindex][gindex][9] &&
  11134. groupJson.islock == 2,
  11135. }"
  11136. ><span
  11137. class="updateChairBtn"
  11138. @click="
  11139. updateGroupChair(
  11140. groupStudent[toolindex][gindex] &&
  11141. groupStudent[toolindex][gindex][9]
  11142. )
  11143. "
  11144. >修改</span
  11145. ></span
  11146. ><span>{{
  11147. groupStudent[toolindex][gindex] &&
  11148. groupStudent[toolindex][gindex][9]
  11149. ? groupStudent[toolindex][gindex] &&
  11150. groupStudent[toolindex][gindex][9].name
  11151. : "空位置"
  11152. }}</span>
  11153. </div>
  11154. </div>
  11155. </div>
  11156. </div>
  11157. </div>
  11158. </div>
  11159. <span slot="footer" class="dialog-footer">
  11160. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11161. </span>
  11162. </el-dialog>
  11163. <el-dialog
  11164. title="分组设置"
  11165. :visible.sync="dialogVisibleGroup2"
  11166. :append-to-body="true"
  11167. width="650px"
  11168. :before-close="handleClose"
  11169. class="dialog_diy"
  11170. >
  11171. <div class="groupBox">
  11172. <div v-if="groupJson2.group" class="groupContent">
  11173. <div class="groupTitle">请设置小组数量</div>
  11174. <div
  11175. v-for="(item, index) in groupJson2.group"
  11176. :key="index"
  11177. class="groupName"
  11178. >
  11179. <span class="groupn">组{{ index + 1 }}名称:</span>
  11180. <el-input
  11181. v-model="item.name"
  11182. placeholder="请输入名称..."
  11183. style="width: 250px"
  11184. ></el-input>
  11185. <!-- <div class="groupBtn">
  11186. <el-button type="primary" size="small" @click="addGroup(index)">
  11187. 添加</el-button>
  11188. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11189. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11190. </div> -->
  11191. </div>
  11192. </div>
  11193. <div class="groupContent">
  11194. <div class="groupTitle">请设置每组人数数量</div>
  11195. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11196. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11197. <el-input-number
  11198. v-model="groupJson2.number"
  11199. :controls="false"
  11200. :min="2"
  11201. :max="10"
  11202. placeholder="2-10人以内"
  11203. ></el-input-number>
  11204. </div>
  11205. </div>
  11206. <span slot="footer" class="dialog-footer">
  11207. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11208. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11209. </span>
  11210. </el-dialog>
  11211. <el-dialog
  11212. title="作业提交"
  11213. :visible.sync="dialogVisibleGroupWork"
  11214. :append-to-body="true"
  11215. width="500px"
  11216. :before-close="handleClose"
  11217. class="dialog_change"
  11218. >
  11219. <div class="marginT">
  11220. <div>上传文件</div>
  11221. <div
  11222. class="chapter_add"
  11223. @click="addImg($event)"
  11224. v-if="studyJuri[0].cover.length == 0"
  11225. >
  11226. <div class="up_photo">
  11227. <img src="../../assets/icon/uploadImg.png" alt />
  11228. </div>
  11229. <!-- <input
  11230. type="file"
  11231. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11232. style="display: none"
  11233. @change="beforeUpload1($event, 1)"
  11234. /> -->
  11235. <input
  11236. type="file"
  11237. accept="*"
  11238. style="display: none"
  11239. @change="beforeUpload1($event, 1)"
  11240. />
  11241. </div>
  11242. <!-- capture="camera" -->
  11243. <div
  11244. class="chapter_add"
  11245. style="
  11246. display: flex;
  11247. width: 100%;
  11248. flex-direction: row;
  11249. flex-wrap: wrap;
  11250. justify-content: flex-start;
  11251. padding: 15px 0;
  11252. "
  11253. v-if="studyJuri[0].cover.length > 0"
  11254. >
  11255. <div class="upCover">
  11256. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11257. <img :src="word" alt v-else-if="fileType == 1" />
  11258. <img :src="video" alt v-else-if="fileType == 2" />
  11259. <img :src="word2" alt v-else-if="fileType == 3" />
  11260. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11261. <div class="deleteWord" @click="clean(1)">
  11262. <img src="../../assets/icon/deleteWorks.png" alt />
  11263. </div>
  11264. </div>
  11265. </div>
  11266. </div>
  11267. <div
  11268. class="upload_send"
  11269. @click="addCourseWorks2(taskCount)"
  11270. v-if="!proVisible"
  11271. >
  11272. 提交
  11273. </div>
  11274. </el-dialog>
  11275. <el-dialog
  11276. title="修改分组"
  11277. :visible.sync="dialogVisibleUpdateGroup"
  11278. :append-to-body="true"
  11279. width="350px"
  11280. :before-close="handleClose"
  11281. class="dialog_diy"
  11282. >
  11283. <div>
  11284. <h2>
  11285. {{ this.updateGroupUser.name }}
  11286. </h2>
  11287. <div style="color: rgb(171 171 171); margin-top: 10px">
  11288. 请选择要进入的分组
  11289. </div>
  11290. <el-radio-group v-model="checkChair">
  11291. <el-radio
  11292. style="display: block; margin-top: 20px"
  11293. v-for="(item, index) in updateGroupArray"
  11294. :label="item.label"
  11295. :key="index"
  11296. >{{ item.name }}</el-radio
  11297. >
  11298. </el-radio-group>
  11299. </div>
  11300. <span slot="footer" class="dialog-footer">
  11301. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11302. <el-button type="primary" @click="updateChair">确定</el-button>
  11303. </span>
  11304. </el-dialog>
  11305. <el-dialog
  11306. title="移除组员"
  11307. :visible.sync="dialogVisibleDeleteGroup"
  11308. :append-to-body="true"
  11309. width="350px"
  11310. :before-close="handleClose"
  11311. class="dialog_diy"
  11312. >
  11313. <div>
  11314. <h2>
  11315. {{ this.deleteGroupArray.name }}
  11316. </h2>
  11317. <div style="color: rgb(171 171 171); margin-top: 10px">
  11318. 请选择要删除的组员
  11319. </div>
  11320. <el-checkbox-group v-model="checkDeleteGroup">
  11321. <el-checkbox
  11322. style="display: block; margin-top: 20px"
  11323. v-for="(item, index) in deleteGroupUser"
  11324. :label="item.userid"
  11325. :key="index"
  11326. >{{ item.name }}</el-checkbox
  11327. >
  11328. </el-checkbox-group>
  11329. </div>
  11330. <span slot="footer" class="dialog-footer">
  11331. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11332. <el-button type="primary" @click="deleteChair">确定</el-button>
  11333. </span>
  11334. </el-dialog>
  11335. <el-dialog
  11336. title="批量上传"
  11337. :visible.sync="dialogVisiblePl"
  11338. :append-to-body="true"
  11339. width="700px"
  11340. :before-close="handleClose"
  11341. class="dialog_change"
  11342. >
  11343. <div class="marginT">
  11344. <div class="plworkBox">
  11345. <div
  11346. class="chapter_add"
  11347. style="
  11348. display: flex;
  11349. width: 150px;
  11350. flex-direction: row;
  11351. flex-wrap: wrap;
  11352. justify-content: flex-start;
  11353. margin: 0 10px 10px 0;
  11354. "
  11355. v-for="(item, index) in plworkFile"
  11356. :key="index"
  11357. >
  11358. <div class="upCover2">
  11359. <img
  11360. :src="item.url"
  11361. alt
  11362. v-if="item.fileType == 1"
  11363. @click="previewImg(item.url)"
  11364. />
  11365. <img :src="word" alt v-else-if="item.fileType == 4" />
  11366. <img :src="video" alt v-else />
  11367. <!-- <span class="picName">{{ item.name }}</span> -->
  11368. <!-- <el-input
  11369. v-model="item.username"
  11370. placeholder="请输入学生名字"
  11371. style="margin-top: 10px"
  11372. ></el-input> -->
  11373. <div
  11374. class="pl_select_box"
  11375. @click="
  11376. getUpdateMore(true, checkUpload(), item.username, index)
  11377. "
  11378. >
  11379. {{ getSName(item.username) }}
  11380. </div>
  11381. <!-- <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  11382. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  11383. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  11384. </el-option>
  11385. </el-select> -->
  11386. <div class="deleteWord" @click="clean2(index)">
  11387. <img src="../../assets/icon/deleteWorks.png" alt />
  11388. </div>
  11389. </div>
  11390. </div>
  11391. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11392. <div class="up_photo2">
  11393. <img src="../../assets/icon/plwork.png" alt />
  11394. <span>点击上传文件</span>
  11395. </div>
  11396. <input
  11397. type="file"
  11398. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11399. multiple="multiple"
  11400. style="display: none"
  11401. @change="beforeUpload3($event, 6)"
  11402. />
  11403. </div>
  11404. </div>
  11405. </div>
  11406. <!-- capture="camera" -->
  11407. <div
  11408. class="upload_send"
  11409. @click="addCourseWorksPl(taskCount)"
  11410. v-if="!proVisible2"
  11411. >
  11412. 提交
  11413. </div>
  11414. </el-dialog>
  11415. <el-dialog
  11416. title="修改名称"
  11417. :visible.sync="dialogVisibleSname"
  11418. width="500px"
  11419. :before-close="handleClose"
  11420. class="dialog_diy"
  11421. center
  11422. >
  11423. <div
  11424. style="
  11425. text-align: center;
  11426. display: flex;
  11427. align-items: center;
  11428. justify-content: center;
  11429. "
  11430. >
  11431. <span class="tian1">名称</span>
  11432. <div
  11433. class="pl_select_box"
  11434. style="margin-left: 10px; width: 200px"
  11435. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11436. >
  11437. {{ getSName(worksSName) }}
  11438. </div>
  11439. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11440. placeholder="请选择学生">
  11441. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11442. :value="item.userid">
  11443. </el-option>
  11444. </el-select> -->
  11445. <!-- <el-input
  11446. v-model="worksSName"
  11447. style="width: 250px; margin: 15px 0px"
  11448. ></el-input> -->
  11449. </div>
  11450. <span slot="footer" class="dialog-footer">
  11451. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11452. <el-button type="primary" @click="updateName">确 定</el-button>
  11453. </span>
  11454. </el-dialog>
  11455. <interVideo
  11456. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11457. :videoJson="videoJson"
  11458. :userid="userid"
  11459. :id="id"
  11460. :courseType="courseType"
  11461. :taskCount="taskCount"
  11462. :toolindex="toolindex"
  11463. ></interVideo>
  11464. <UpdateMore
  11465. :dialogVisibleMember.sync="dialogVisibleMember"
  11466. :cList="uploadStudentJuri"
  11467. :userid="userid"
  11468. :searchTN="worksSName2"
  11469. @setPlname="setPlname"
  11470. ></UpdateMore>
  11471. </div>
  11472. </template>
  11473. <script>
  11474. import "../../common/aws-sdk-2.235.1.min.js";
  11475. // import pdf from "../components/pdf3";
  11476. import pdf from "../components/vpdf";
  11477. import AskStatic from "../components/askStatic";
  11478. import AskStatic2 from "../components/askStatic2";
  11479. import AnswerData2 from "../components/answerData2";
  11480. import AnswerData from "../components/answerData";
  11481. import EditorBar from "../tools/wangEnduit.vue";
  11482. import Table from "../tools/table.vue";
  11483. import Time from "../tools/time.vue";
  11484. import Mind from "../tools/jsmind.vue";
  11485. import Sunburst from "../tools/sunburst";
  11486. import SeeBoard from "../tools/seeBoard";
  11487. import * as imageConversion from "image-conversion";
  11488. import Audio from "../components/audio.vue";
  11489. import ImgDraw from "../tools/imgDraw/imgDraw";
  11490. import { Empty } from "element-ui";
  11491. import RecordRTC from "recordrtc";
  11492. import interVideo from "../interVideo/index.vue";
  11493. import UpdateMore from "../updateMore/updateMore.vue";
  11494. export default {
  11495. components: {
  11496. EditorBar,
  11497. Time,
  11498. pdf,
  11499. AskStatic,
  11500. AskStatic2,
  11501. Mind,
  11502. Sunburst,
  11503. SeeBoard,
  11504. AnswerData2,
  11505. AnswerData,
  11506. Audio,
  11507. ImgDraw,
  11508. Table,
  11509. interVideo,
  11510. UpdateMore,
  11511. },
  11512. data() {
  11513. return {
  11514. bg: null,
  11515. drawShow: false,
  11516. dialogVisible: false,
  11517. dialogVisiblePl: false,
  11518. commentDialogVisible: false,
  11519. videoVisible: false,
  11520. isStar: false,
  11521. studentEvalDialogVisible: false,
  11522. studentEvalDialogVisibleTeacher: false,
  11523. dialogVisibleSelect: false,
  11524. dialogVisibleSelectTeacher: false,
  11525. dialogVisibleScore: false,
  11526. dialogVisibleSentence: false,
  11527. dialogVisibleSentenceTeacher: false,
  11528. dialogVisibleSentence1: false,
  11529. dialogVisibleWorks: false,
  11530. answerDialogVisibleTeacher: false,
  11531. dialogVisibleTable: false,
  11532. dialogVisibleTableTeacher: false,
  11533. dialogVisibleWord: false,
  11534. dialogVisibleWordTeacher: false,
  11535. dialogVisibleTable2: false,
  11536. dialogVisibleTable3: false,
  11537. dialogVisibleGroupWork: false,
  11538. dialogVisibleUpdateGroup: false,
  11539. dialogVisibleDeleteGroup: false,
  11540. dialogVisibleSname: false,
  11541. dialogVisibleVideo: false,
  11542. worksSName: "",
  11543. classJuri: [],
  11544. uploadStudentJuri: [],
  11545. uploadCid: "",
  11546. snameWid: "",
  11547. sStudent: {},
  11548. sTool: "",
  11549. bzText: "",
  11550. commentDetail: [],
  11551. selectAnswer: [],
  11552. videoDetail: {},
  11553. selectJson: {},
  11554. eScore: { eBzText: "", eStar: [] },
  11555. id: this.$route.query.courseId,
  11556. userid: this.$route.query.userid,
  11557. classId: this.$route.query.cid,
  11558. // courseTypeLine: this.$route.query.type,
  11559. oid: this.$route.query.oid,
  11560. org: this.$route.query.org,
  11561. tType: this.$route.query.tType,
  11562. courseType: this.$route.query.type,
  11563. screenType: this.$route.query.screenType,
  11564. tcid2: this.$route.query.tcid,
  11565. tcid: "",
  11566. pptImgUrl: "",
  11567. pptImgUrl1: "",
  11568. commentText: "",
  11569. full: false,
  11570. sIsOpen: false,
  11571. IsLookOpen: false,
  11572. IsFollow: false,
  11573. pzDialog: false,
  11574. contentDialog: false,
  11575. mlDialog: false,
  11576. type: 1,
  11577. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11578. sentenceList1: [],
  11579. tableJson: [],
  11580. wordJson: [],
  11581. vedio: [],
  11582. text: [],
  11583. textList: [],
  11584. line: [],
  11585. lineList: [],
  11586. chapTools: [],
  11587. chapToolList: [],
  11588. file: [],
  11589. fileC: [],
  11590. vedioTime: [],
  11591. upToolImg: "",
  11592. preTime: 0,
  11593. rateList: {
  11594. ca: 0,
  11595. },
  11596. rateParams: [],
  11597. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11598. studyJuri: [
  11599. {
  11600. content: "",
  11601. cover: [],
  11602. upVedio: [],
  11603. upFile: [],
  11604. },
  11605. ],
  11606. plworkFile: [],
  11607. mr: require("../../assets/vedioPic.png"),
  11608. word: require("../../assets/icon/isWord.png"),
  11609. word2: require("../../assets/icon/word2.png"),
  11610. video: require("../../assets/icon/isVideo.png"),
  11611. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11612. likes: require("../../assets/icon/comment/likes.png"),
  11613. scoreImg: require("../../assets/score.png"),
  11614. courseDetail: {},
  11615. isSelect: false,
  11616. chapInfo: [],
  11617. chapInfoList: [],
  11618. taskCount: 0,
  11619. imgList: [],
  11620. noImgList: [],
  11621. pzList: [],
  11622. PlTextList: [
  11623. "Excellent!",
  11624. "nice!",
  11625. "很有创意!",
  11626. "还不错哦~",
  11627. "继续努力哦~",
  11628. ],
  11629. isClickNav: "",
  11630. navId: "",
  11631. playerOptions: {
  11632. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11633. autoplay: false, //如果true,浏览器准备好时开始回放。
  11634. muted: false, // 默认情况下将会消除任何音频。
  11635. loop: false, // 导致视频一结束就重新开始。
  11636. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11637. language: "zh-CN",
  11638. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11639. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11640. sources: [
  11641. {
  11642. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11643. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11644. },
  11645. ],
  11646. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11647. // poster: dataRes.imgUrl, //你的封面地址
  11648. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11649. controlBar: {
  11650. timeDivider: true, //当前时间和持续时间的分隔符
  11651. durationDisplay: true, //显示持续时间
  11652. remainingTimeDisplay: false, //是否显示剩余时间功能
  11653. fullscreenToggle: true, //全屏按钮
  11654. },
  11655. },
  11656. playerOptions1: {
  11657. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11658. autoplay: false, //如果true,浏览器准备好时开始回放。
  11659. muted: false, // 默认情况下将会消除任何音频。
  11660. loop: false, // 导致视频一结束就重新开始。
  11661. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11662. language: "zh-CN",
  11663. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11664. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11665. sources: [
  11666. {
  11667. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11668. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11669. },
  11670. ],
  11671. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11672. // poster: dataRes.imgUrl, //你的封面地址
  11673. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11674. controlBar: {
  11675. timeDivider: true, //当前时间和持续时间的分隔符
  11676. durationDisplay: true, //显示持续时间
  11677. remainingTimeDisplay: false, //是否显示剩余时间功能
  11678. fullscreenToggle: true, //全屏按钮
  11679. },
  11680. },
  11681. playerO: {},
  11682. noneBtnImg: false,
  11683. proVisible: false,
  11684. proVisible2: false,
  11685. progress: 0,
  11686. isFinishSize: 0,
  11687. isAllSize: 0,
  11688. questionAnswer: "",
  11689. answerQ: "", //问答标题
  11690. rateJson: [],
  11691. wbCount: 0,
  11692. wordCount: 0,
  11693. mindCount: 0,
  11694. askCount: 0,
  11695. noteCount: 0,
  11696. mindNetWorkCount: 0,
  11697. libraryCount: 0,
  11698. workCount: 0,
  11699. timeCount: 0,
  11700. answerCount: 0,
  11701. trainCount: 0,
  11702. evalCount: 0,
  11703. dialogImageUrl: "",
  11704. pictureDialog: false,
  11705. toolTypeList: [],
  11706. dialogVisible1: false,
  11707. dialogVisible2: false,
  11708. dialogVisible3: false,
  11709. dialogVisible6: false,
  11710. dialogVisible4: false,
  11711. isNoHomeWork: false,
  11712. dialogVisible5: false,
  11713. dialogVisible5Teacher: false,
  11714. dialogVisibleChoice: false,
  11715. dialogVisibleChoiceTeacher: false,
  11716. answerDialogVisible: false,
  11717. juriVisible: false,
  11718. timeDialogVisible: false,
  11719. radio: [],
  11720. isAsk: false,
  11721. askJson: {
  11722. askCount: 1,
  11723. askTitle: "",
  11724. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11725. },
  11726. testJson: {},
  11727. checkJson: [],
  11728. askList: [],
  11729. answerList: [],
  11730. navList: [],
  11731. addPzDialog: false,
  11732. ispzType: 1,
  11733. pzConText: "",
  11734. worksStudent: [],
  11735. worksStudent2: [],
  11736. worksTeacher: [],
  11737. isCloseList: [],
  11738. workStudent: [],
  11739. groupStudent: [],
  11740. groupStudentUid: [],
  11741. noWorksS: [],
  11742. isWorksS: [],
  11743. noWorksStudent: [],
  11744. toolindex: 0,
  11745. groupIndex: 0,
  11746. workTypeB: false,
  11747. workTypeC: false,
  11748. isAnswer: false,
  11749. timer: null,
  11750. opertimer: null,
  11751. showType: 0,
  11752. fileType: 0,
  11753. showPDF: false,
  11754. noteName: "",
  11755. evaJuri: [],
  11756. evalua: "",
  11757. eTitle: "",
  11758. eName: "",
  11759. eJson: {},
  11760. fid: "", //一级
  11761. sid: "", //二级
  11762. tid: "", //二级
  11763. typeMode: 1,
  11764. eJSONNum: 0,
  11765. Etype: 1,
  11766. data: {
  11767. meta: {
  11768. name: "example",
  11769. author: "dd@163.com",
  11770. version: "0.2",
  11771. },
  11772. format: "node_array",
  11773. data: [{ id: "root", isroot: true, topic: "" }],
  11774. },
  11775. fullDialogVisible: false,
  11776. fulltype: "",
  11777. fullUrl: "",
  11778. commentIndexJson: {},
  11779. Stbodywidth: 0,
  11780. pzType: 1,
  11781. wScore: 0,
  11782. scoreDetail: "",
  11783. videoStart: false,
  11784. recorder: null,
  11785. groupJson: {},
  11786. groupJson2: {},
  11787. dialogVisibleGroup: false,
  11788. dialogVisibleGroup2: false,
  11789. updateGroupArray: [],
  11790. updateGroupUser: {},
  11791. deleteGroupUser: [],
  11792. deleteGroupArray: {},
  11793. checkChair: "",
  11794. checkDeleteGroup: [],
  11795. inviteCode: "",
  11796. courseGroupStudent: [],
  11797. courseGroupStudentUid: [],
  11798. courseGroup: {},
  11799. isGroup: false,
  11800. toolIndex: null,
  11801. tool: {},
  11802. isWorkTool: [
  11803. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11804. ], //, 40
  11805. videoJson: {},
  11806. toolType: 1,
  11807. checktoolArray: [],
  11808. vChapterData: [],
  11809. isUpdateToolDetail: false,
  11810. updateToolDetailInner: "",
  11811. plIndex: "",
  11812. worksSName2: "",
  11813. worksSid: "",
  11814. };
  11815. },
  11816. methods: {
  11817. jump() {
  11818. window.parent.postMessage({ tools: "43" }, "*");
  11819. },
  11820. getUpdateMore(f, checkboxList, searchTN, index) {
  11821. this.dialogVisibleMember = f;
  11822. this.checkboxList = checkboxList;
  11823. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  11824. this.plIndex = index;
  11825. },
  11826. setPlname(a) {
  11827. if (this.plworkFile.length) {
  11828. this.plworkFile[this.plIndex].username = a;
  11829. } else {
  11830. this.worksSName = a;
  11831. }
  11832. this.dialogVisibleMember = false;
  11833. },
  11834. previewImg(url) {
  11835. this.$hevueImgPreview(url);
  11836. },
  11837. change(val) {
  11838. console.log(val);
  11839. },
  11840. goTo(path) {
  11841. this.$router.push(path);
  11842. },
  11843. handlePictureCardPreview(url) {
  11844. this.dialogImageUrl = url;
  11845. this.pictureDialog = true;
  11846. },
  11847. clean(type) {
  11848. if (type == 1) {
  11849. this.studyJuri[0].cover.splice(0, 1);
  11850. } else if (type == 2) {
  11851. this.studyJuri[0].upVedio.splice(0, 1);
  11852. } else {
  11853. this.studyJuri[0].upFile.splice(0, 1);
  11854. }
  11855. },
  11856. clean2(index) {
  11857. this.plworkFile.splice(index, 1);
  11858. },
  11859. handleClose(done) {
  11860. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  11861. this.videoDetail.sources[0].src = "";
  11862. }
  11863. this.commentIndexJson = {};
  11864. done();
  11865. },
  11866. fullTools() {
  11867. this.full = !this.full;
  11868. },
  11869. imgChange(file, fileList, type) {
  11870. if (type == 1) {
  11871. var _tmp = this.studyJuri[0].cover;
  11872. } else if (type == 2) {
  11873. var _tmp = this.studyJuri[0].upVedio;
  11874. } else {
  11875. var _tmp = this.studyJuri[0].upFile;
  11876. }
  11877. this.noneBtnImg = _tmp.length >= 1;
  11878. },
  11879. setContent(bool) {
  11880. this.contentDialog = bool;
  11881. if (bool && this.mlDialog) {
  11882. document.querySelector(".workd_media").style.height = "650px";
  11883. } else {
  11884. document.querySelector(".workd_media").style.height = "auto";
  11885. }
  11886. },
  11887. setContent2(bool) {
  11888. this.mlDialog = bool;
  11889. if (bool && this.contentDialog) {
  11890. document.querySelector(".workd_media").style.height = "650px";
  11891. } else {
  11892. document.querySelector(".workd_media").style.height = "auto";
  11893. }
  11894. },
  11895. addImg(e) {
  11896. var el = e.currentTarget;
  11897. // this.$message.success('触发上传')
  11898. el.getElementsByTagName("input")[0].click();
  11899. e.target.value = "";
  11900. },
  11901. addSelectAnswer() {
  11902. let params = [
  11903. {
  11904. uid: this.userid,
  11905. cid: this.id,
  11906. stage: this.courseType,
  11907. task: this.taskCount,
  11908. tool: this.toolindex,
  11909. content: this.selectAnswer.answer,
  11910. type: 7,
  11911. },
  11912. ];
  11913. this.ajax
  11914. .post(this.$store.state.api + "addCourseWorks", params)
  11915. .then((res) => {
  11916. this.$message({
  11917. message: "提交成功",
  11918. type: "success",
  11919. });
  11920. this.dialogVisibleSelect = false;
  11921. // this.selectAnswer = {};
  11922. this.selectSWorks();
  11923. this.selectStudent();
  11924. })
  11925. .catch((err) => {
  11926. this.$message.error("提交失败");
  11927. console.error(err);
  11928. });
  11929. },
  11930. addSelectAnswerTeacher() {
  11931. let params = [
  11932. {
  11933. uid: this.sStudent.userid,
  11934. cid: this.id,
  11935. stage: this.courseType,
  11936. task: this.taskCount,
  11937. tool: this.toolindex,
  11938. content: this.selectAnswer.answer,
  11939. type: 7,
  11940. },
  11941. ];
  11942. this.ajax
  11943. .post(this.$store.state.api + "addCourseWorks", params)
  11944. .then((res) => {
  11945. this.$message({
  11946. message: "提交成功",
  11947. type: "success",
  11948. });
  11949. this.dialogVisibleSelectTeacher = false;
  11950. // this.selectAnswer = {};
  11951. this.selectSWorks();
  11952. this.selectStudent();
  11953. })
  11954. .catch((err) => {
  11955. this.$message.error("提交失败");
  11956. console.error(err);
  11957. });
  11958. },
  11959. addSenWorks() {
  11960. for (var i = 0; i < this.sentenceList.length; i++) {
  11961. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  11962. if (
  11963. this.sentenceList[i].chooseSenList[j] == undefined ||
  11964. this.sentenceList[i].chooseSenList[j] == ""
  11965. ) {
  11966. this.$message.error("请将答案填写完整!");
  11967. return;
  11968. }
  11969. }
  11970. }
  11971. let params = [
  11972. {
  11973. uid: this.userid,
  11974. cid: this.id,
  11975. stage: this.courseType,
  11976. task: this.taskCount,
  11977. tool: this.toolindex,
  11978. content: JSON.stringify(this.sentenceList),
  11979. type: 9,
  11980. },
  11981. ];
  11982. this.ajax
  11983. .post(this.$store.state.api + "addCourseWorks", params)
  11984. .then((res) => {
  11985. this.$message({
  11986. message: "提交成功",
  11987. type: "success",
  11988. });
  11989. this.dialogVisibleSentence = false;
  11990. // this.selectAnswer = {};
  11991. this.selectSWorks();
  11992. this.selectStudent();
  11993. })
  11994. .catch((err) => {
  11995. this.$message.error("提交失败");
  11996. console.error(err);
  11997. });
  11998. },
  11999. addSenWorksTeacher() {
  12000. for (var i = 0; i < this.sentenceList.length; i++) {
  12001. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12002. if (
  12003. this.sentenceList[i].chooseSenList[j] == undefined ||
  12004. this.sentenceList[i].chooseSenList[j] == ""
  12005. ) {
  12006. this.$message.error("请将答案填写完整!");
  12007. return;
  12008. }
  12009. }
  12010. }
  12011. let params = [
  12012. {
  12013. uid: this.sStudent.userid,
  12014. cid: this.id,
  12015. stage: this.courseType,
  12016. task: this.taskCount,
  12017. tool: this.toolindex,
  12018. content: JSON.stringify(this.sentenceList),
  12019. type: 9,
  12020. },
  12021. ];
  12022. this.ajax
  12023. .post(this.$store.state.api + "addCourseWorks", params)
  12024. .then((res) => {
  12025. this.$message({
  12026. message: "提交成功",
  12027. type: "success",
  12028. });
  12029. this.dialogVisibleSentenceTeacher = false;
  12030. // this.selectAnswer = {};
  12031. this.selectSWorks();
  12032. this.selectStudent();
  12033. })
  12034. .catch((err) => {
  12035. this.$message.error("提交失败");
  12036. console.error(err);
  12037. });
  12038. },
  12039. addTableWorks() {
  12040. let params = [
  12041. {
  12042. uid: this.userid,
  12043. cid: this.id,
  12044. stage: this.courseType,
  12045. task: this.taskCount,
  12046. tool: this.toolindex,
  12047. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12048. type: 10,
  12049. },
  12050. ];
  12051. this.ajax
  12052. .post(this.$store.state.api + "addCourseWorks", params)
  12053. .then((res) => {
  12054. this.$message({
  12055. message: "提交成功",
  12056. type: "success",
  12057. });
  12058. this.dialogVisibleTable = false;
  12059. // this.selectAnswer = {};
  12060. this.selectSWorks();
  12061. this.selectStudent();
  12062. })
  12063. .catch((err) => {
  12064. this.$message.error("提交失败");
  12065. console.error(err);
  12066. });
  12067. },
  12068. addTableWorksTeacher() {
  12069. let params = [
  12070. {
  12071. uid: this.sStudent.userid,
  12072. cid: this.id,
  12073. stage: this.courseType,
  12074. task: this.taskCount,
  12075. tool: this.toolindex,
  12076. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  12077. type: 10,
  12078. },
  12079. ];
  12080. this.ajax
  12081. .post(this.$store.state.api + "addCourseWorks", params)
  12082. .then((res) => {
  12083. this.$message({
  12084. message: "提交成功",
  12085. type: "success",
  12086. });
  12087. this.dialogVisibleTableTeacher = false;
  12088. // this.selectAnswer = {};
  12089. this.selectSWorks();
  12090. this.selectStudent();
  12091. })
  12092. .catch((err) => {
  12093. this.$message.error("提交失败");
  12094. console.error(err);
  12095. });
  12096. },
  12097. addWordWorks() {
  12098. let params = [
  12099. {
  12100. uid: this.userid,
  12101. cid: this.id,
  12102. stage: this.courseType,
  12103. task: this.taskCount,
  12104. tool: this.toolindex,
  12105. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12106. type: 13,
  12107. atool: 52,
  12108. },
  12109. ];
  12110. console.log(params);
  12111. this.ajax
  12112. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12113. .then((res) => {
  12114. this.$message({
  12115. message: "提交成功",
  12116. type: "success",
  12117. });
  12118. this.dialogVisibleWord = false;
  12119. // this.selectAnswer = {};
  12120. this.selectSWorks();
  12121. this.selectStudent();
  12122. })
  12123. .catch((err) => {
  12124. this.$message.error("提交失败");
  12125. console.error(err);
  12126. });
  12127. },
  12128. addWordWorksTeacher() {
  12129. let params = [
  12130. {
  12131. uid: this.sStudent.userid,
  12132. cid: this.id,
  12133. stage: this.courseType,
  12134. task: this.taskCount,
  12135. tool: this.toolindex,
  12136. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12137. type: 13,
  12138. atool: 52,
  12139. },
  12140. ];
  12141. console.log(params);
  12142. this.ajax
  12143. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12144. .then((res) => {
  12145. this.$message({
  12146. message: "提交成功",
  12147. type: "success",
  12148. });
  12149. this.dialogVisibleWordTeacher = false;
  12150. // this.selectAnswer = {};
  12151. this.selectSWorks();
  12152. this.selectStudent();
  12153. })
  12154. .catch((err) => {
  12155. this.$message.error("提交失败");
  12156. console.error(err);
  12157. });
  12158. },
  12159. addCourseWorks(i) {
  12160. var typesql;
  12161. if (this.fileType === 0) {
  12162. typesql = 1;
  12163. } else if (this.fileType === 1) {
  12164. typesql = 4;
  12165. } else if (this.fileType === 2) {
  12166. typesql = 5;
  12167. } else if (this.fileType === 3) {
  12168. typesql = 12;
  12169. }
  12170. if (!this.studyJuri[0].cover[0].url) {
  12171. this.$message.error("请上传文件");
  12172. return;
  12173. }
  12174. let params = [
  12175. {
  12176. uid: this.userid,
  12177. cid: this.id,
  12178. stage: this.courseType,
  12179. task: i,
  12180. tool: this.toolindex,
  12181. content: this.studyJuri[0].cover[0].url,
  12182. type: typesql,
  12183. },
  12184. ];
  12185. this.ajax
  12186. .post(this.$store.state.api + "addCourseWorksR", params)
  12187. .then((res) => {
  12188. this.$message({
  12189. message: "提交成功",
  12190. type: "success",
  12191. });
  12192. this.studyJuri[0].cover = [];
  12193. this.dialogVisible = false;
  12194. this.getCourseDetail();
  12195. })
  12196. .catch((err) => {
  12197. this.$message.error("提交失败");
  12198. console.error(err);
  12199. });
  12200. },
  12201. addCourseWorksPl(i) {
  12202. let _files = this.plworkFile;
  12203. var c = 1;
  12204. for (var k = 0; k < _files.length; k++) {
  12205. if (!_files[k].username) {
  12206. c = 2;
  12207. }
  12208. }
  12209. if (c == 2) {
  12210. this.$message.error("请填写学生姓名");
  12211. return;
  12212. }
  12213. let params = [
  12214. {
  12215. ateacher: this.userid,
  12216. cid: this.id,
  12217. stage: this.courseType,
  12218. task: i,
  12219. tool: this.toolindex,
  12220. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12221. },
  12222. ];
  12223. this.ajax
  12224. .post(this.$store.state.api + "addCourseWorksPl", params)
  12225. .then((res) => {
  12226. this.$message({
  12227. message: "提交成功",
  12228. type: "success",
  12229. });
  12230. this.plworkFile = [];
  12231. this.dialogVisiblePl = false;
  12232. this.getCourseDetail();
  12233. })
  12234. .catch((err) => {
  12235. this.$message.error("提交失败");
  12236. console.error(err);
  12237. });
  12238. },
  12239. addCourseWorks2(i) {
  12240. var typesql;
  12241. if (this.fileType === 0) {
  12242. typesql = 0;
  12243. } else if (this.fileType === 1) {
  12244. typesql = 1;
  12245. } else if (this.fileType === 2) {
  12246. typesql = 3;
  12247. } else if (this.fileType === 3) {
  12248. typesql = 12;
  12249. }
  12250. if (!this.studyJuri[0].cover[0].url) {
  12251. this.$message.error("请上传文件");
  12252. return;
  12253. }
  12254. let params = [
  12255. {
  12256. uid: this.userid,
  12257. cid: this.id,
  12258. stage: this.courseType,
  12259. task: i,
  12260. tool: this.toolindex,
  12261. content: JSON.stringify({
  12262. type: typesql,
  12263. groupIndex: this.groupIndex,
  12264. url: this.studyJuri[0].cover[0].url,
  12265. }).replaceAll(/%/g, "%25"),
  12266. type: 11,
  12267. atool: 49,
  12268. text: "",
  12269. },
  12270. ];
  12271. this.ajax
  12272. .post(this.$store.state.api + "addCourseWorks5", params)
  12273. .then((res) => {
  12274. this.$message({
  12275. message: "提交成功",
  12276. type: "success",
  12277. });
  12278. this.studyJuri[0].cover = [];
  12279. this.dialogVisibleGroupWork = false;
  12280. this.getCourseDetail();
  12281. })
  12282. .catch((err) => {
  12283. this.$message.error("提交失败");
  12284. console.error(err);
  12285. });
  12286. },
  12287. addCourseWorksGong(i, data, tool) {
  12288. let params = [
  12289. {
  12290. uid: this.userid,
  12291. cid: this.id,
  12292. stage: this.courseType,
  12293. task: this.taskCount,
  12294. tool: i,
  12295. content: data,
  12296. type: 12,
  12297. atool: tool,
  12298. text: "",
  12299. },
  12300. ];
  12301. this.ajax
  12302. .post(this.$store.state.api + "addCourseWorks5", params)
  12303. .then((res) => {
  12304. this.$message({
  12305. message: "提交成功",
  12306. type: "success",
  12307. });
  12308. this.studyJuri[0].cover = [];
  12309. this.selectSWorks();
  12310. this.selectStudent();
  12311. })
  12312. .catch((err) => {
  12313. this.$message.error("提交失败");
  12314. console.error(err);
  12315. });
  12316. },
  12317. addCourseWorksGongTeacher(i, data, tool) {
  12318. let params = [
  12319. {
  12320. uid: this.sStudent.userid,
  12321. cid: this.id,
  12322. stage: this.courseType,
  12323. task: this.taskCount,
  12324. tool: i,
  12325. content: data,
  12326. type: 12,
  12327. atool: tool,
  12328. text: "",
  12329. },
  12330. ];
  12331. this.ajax
  12332. .post(this.$store.state.api + "addCourseWorks5", params)
  12333. .then((res) => {
  12334. this.$message({
  12335. message: "提交成功",
  12336. type: "success",
  12337. });
  12338. this.studyJuri[0].cover = [];
  12339. this.dialogVisibleWorks = false;
  12340. this.selectSWorks();
  12341. this.selectStudent();
  12342. })
  12343. .catch((err) => {
  12344. this.$message.error("提交失败");
  12345. console.error(err);
  12346. });
  12347. },
  12348. addCourseWorksGongPl(i, data, tool, type) {
  12349. let params = [
  12350. {
  12351. uid: this.sStudent.userid,
  12352. cid: this.id,
  12353. stage: this.courseType,
  12354. task: this.taskCount,
  12355. tool: i,
  12356. content: data,
  12357. type: type,
  12358. atool: tool,
  12359. text: "",
  12360. },
  12361. ];
  12362. this.ajax
  12363. .post(this.$store.state.api + "addCourseWorks5", params)
  12364. .then((res) => {
  12365. this.$message({
  12366. message: "提交成功",
  12367. type: "success",
  12368. });
  12369. this.studyJuri[0].cover = [];
  12370. this.dialogVisibleWorks = false;
  12371. this.selectSWorks();
  12372. this.selectStudent();
  12373. })
  12374. .catch((err) => {
  12375. this.$message.error("提交失败");
  12376. console.error(err);
  12377. });
  12378. },
  12379. addCourseWorksTeacher(i) {
  12380. var typesql;
  12381. if (this.sTool == 32) {
  12382. this.addCourseWorksGongTeacher(
  12383. this.toolindex,
  12384. this.studyJuri[0].cover[0].url,
  12385. this.sTool
  12386. );
  12387. return;
  12388. }
  12389. if (this.fileType === 0) {
  12390. typesql = 1;
  12391. } else if (this.fileType === 1) {
  12392. typesql = 4;
  12393. } else if (this.fileType === 2) {
  12394. typesql = 5;
  12395. } else if (this.fileType === 3) {
  12396. typesql = 12;
  12397. }
  12398. if (this.sTool == 50) {
  12399. this.addCourseWorksGongPl(
  12400. this.toolindex,
  12401. this.studyJuri[0].cover[0].url,
  12402. this.sTool,
  12403. typesql
  12404. );
  12405. return;
  12406. }
  12407. if (!this.studyJuri[0].cover[0].url) {
  12408. this.$message.error("请上传文件");
  12409. return;
  12410. }
  12411. let params = [
  12412. {
  12413. uid: this.sStudent.userid,
  12414. cid: this.id,
  12415. stage: this.courseType,
  12416. task: i,
  12417. tool: this.toolindex,
  12418. content: this.studyJuri[0].cover[0].url,
  12419. type: typesql,
  12420. ateacher: this.userid,
  12421. },
  12422. ];
  12423. this.ajax
  12424. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12425. .then((res) => {
  12426. this.$message({
  12427. message: "提交成功",
  12428. type: "success",
  12429. });
  12430. this.studyJuri[0].cover = [];
  12431. this.dialogVisibleWorks = false;
  12432. this.getCourseDetail();
  12433. })
  12434. .catch((err) => {
  12435. this.$message.error("提交失败");
  12436. console.error(err);
  12437. });
  12438. },
  12439. selectUploadStudent(type) {
  12440. const loading = this.$loading.service({
  12441. background: "rgba(255, 255, 255, 0.7)",
  12442. target: document.body,
  12443. });
  12444. let params = {
  12445. cid: this.uploadCid,
  12446. oid: this.oid,
  12447. cn: "",
  12448. };
  12449. this.ajax
  12450. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12451. .then((res) => {
  12452. loading.close();
  12453. var studentK = [];
  12454. if (this.isWorksS[this.toolindex].length > 0) {
  12455. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12456. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12457. }
  12458. studentK = studentK.join(",");
  12459. }
  12460. this.uploadStudentJuri = res.data[0].filter((el) => {
  12461. return studentK.indexOf(el.userid) == -1;
  12462. });
  12463. if (this.worksSName && this.worksSid) {
  12464. this.uploadStudentJuri.push({
  12465. userid: this.worksSid,
  12466. name: this.worksSName,
  12467. });
  12468. }
  12469. if (type == 1) {
  12470. this.plworkFile = [];
  12471. this.dialogVisibleSname = true;
  12472. } else if (type == 2) {
  12473. this.dialogVisiblePl = true;
  12474. }
  12475. })
  12476. .catch((err) => {
  12477. loading.close();
  12478. console.error(err);
  12479. });
  12480. },
  12481. arrayToArray(arrayo, arrayt) {
  12482. let array1 = arrayo;
  12483. let array2 = arrayt;
  12484. let commonElements = [];
  12485. for (let i = 0; i < array1.length; i++) {
  12486. for (let j = 0; j < array2.length; j++) {
  12487. if (array1[i] === array2[j]) {
  12488. commonElements.push(array1[i]);
  12489. }
  12490. }
  12491. }
  12492. return commonElements;
  12493. },
  12494. selectWorksStudent() {
  12495. let params = {
  12496. oid: this.oid,
  12497. cid: this.courseDetail.juri,
  12498. };
  12499. this.ajax
  12500. .get(this.$store.state.api + "selectWorksStudent", params)
  12501. .then((res) => {
  12502. var a = res.data[0];
  12503. for (var i = 0; i < this.isWorksS.length; i++) {
  12504. this.noWorksS[i] = [];
  12505. var studentK = [];
  12506. if (this.isWorksS[i].length > 0) {
  12507. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12508. studentK.push(this.isWorksS[i][z].uid);
  12509. }
  12510. studentK = studentK.join(",");
  12511. for (var j = 0; j < a.length; j++) {
  12512. // if (studentK.indexOf(a[j].userid) == -1) {
  12513. if (this.tcid) {
  12514. // a[j].classid.indexOf(this.tcid) != -1
  12515. if (
  12516. this.arrayToArray(
  12517. a[j].classid.split(","),
  12518. this.tcid.split(",")
  12519. ).length
  12520. ) {
  12521. this.noWorksS[i].push({
  12522. student: a[j].name,
  12523. userid: a[j].userid,
  12524. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12525. });
  12526. }
  12527. } else {
  12528. this.noWorksS[i].push({
  12529. student: a[j].name,
  12530. userid: a[j].userid,
  12531. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  12532. });
  12533. }
  12534. // }
  12535. }
  12536. } else {
  12537. for (var k = 0; k < a.length; k++) {
  12538. if (this.tcid) {
  12539. if (
  12540. this.arrayToArray(
  12541. a[k].classid.split(","),
  12542. this.tcid.split(",")
  12543. ).length
  12544. ) {
  12545. this.noWorksS[i].push({
  12546. student: a[k].name,
  12547. userid: a[k].userid,
  12548. type: "1",
  12549. });
  12550. }
  12551. } else {
  12552. this.noWorksS[i].push({
  12553. student: a[k].name,
  12554. userid: a[k].userid,
  12555. type: "1",
  12556. });
  12557. }
  12558. }
  12559. }
  12560. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  12561. // let jscoreA = parseInt(a.type);
  12562. // let jscoreB = parseInt(b.type);
  12563. // return jscoreB - jscoreA;
  12564. // });
  12565. }
  12566. this.$forceUpdate();
  12567. if (
  12568. Object.keys(this.commentDetail).length &&
  12569. Object.keys(this.commentIndexJson).length &&
  12570. !this.dialogVisibleScore
  12571. ) {
  12572. let a = 1;
  12573. let c = this.commentIndexJson;
  12574. console.log(c);
  12575. if (
  12576. this.commentIndexJson.gindex ||
  12577. this.commentIndexJson.gindex === 0
  12578. ) {
  12579. for (
  12580. var i = 0;
  12581. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12582. i++
  12583. ) {
  12584. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12585. groupA: for (var k = 0; k < _el.length; k++) {
  12586. let el = _el[k];
  12587. if (el.wid == this.commentDetail.wid) {
  12588. a = 2;
  12589. this.commentOther(
  12590. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12591. this.commentIndexJson.toolIndex,
  12592. k,
  12593. this.commentIndexJson.gindex
  12594. );
  12595. break groupA;
  12596. }
  12597. }
  12598. }
  12599. if (a === 1) {
  12600. this.commentDetail = [];
  12601. this.commentIndexJson = {};
  12602. this.commentDialogVisible = false;
  12603. this.$message("此作业已被删除");
  12604. }
  12605. } else {
  12606. if (this.isGroup && this.commentIndexJson.gid) {
  12607. groupA: for (
  12608. var i = 0;
  12609. i < this.courseGroup.group.length;
  12610. i++
  12611. ) {
  12612. let _group = this.courseGroup.group[i];
  12613. if (_group.id == this.commentIndexJson.gid) {
  12614. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12615. for (var k = 0; k < _el2.length; k++) {
  12616. let el2 = _el2[k];
  12617. if (el2.wid == this.commentDetail.wid) {
  12618. a = 2;
  12619. this.commentOther(
  12620. _el2[k],
  12621. this.commentIndexJson.toolIndex,
  12622. k,
  12623. null,
  12624. this.commentIndexJson.gid
  12625. );
  12626. break groupA;
  12627. }
  12628. }
  12629. }
  12630. }
  12631. }
  12632. if (a == 1) {
  12633. for (
  12634. var i = 0;
  12635. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12636. i++
  12637. ) {
  12638. let el =
  12639. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12640. if (el.wid == this.commentDetail.wid) {
  12641. a = 2;
  12642. this.commentOther(
  12643. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12644. this.commentIndexJson.toolIndex,
  12645. i
  12646. );
  12647. break;
  12648. }
  12649. }
  12650. }
  12651. if (a === 1) {
  12652. this.commentDetail = [];
  12653. this.commentIndexJson = {};
  12654. this.commentDialogVisible = false;
  12655. this.$message("此作业已被删除");
  12656. }
  12657. }
  12658. }
  12659. })
  12660. .catch((err) => {
  12661. console.error(err);
  12662. });
  12663. },
  12664. selectStudent() {},
  12665. openVideo(w) {
  12666. this.videoDetail = {};
  12667. this.playerOptions1.sources[0].src = w.works;
  12668. this.videoDetail = this.playerOptions1;
  12669. this.videoVisible = true;
  12670. },
  12671. isLikes(wid, uid, t, c, isLikes) {
  12672. if (isLikes == false) {
  12673. let params = [
  12674. {
  12675. wid: wid,
  12676. lid: uid,
  12677. t: t,
  12678. c: c,
  12679. },
  12680. ];
  12681. this.ajax
  12682. .post(this.$store.state.api + "insertComment", params)
  12683. .then((res) => {
  12684. this.$message({
  12685. message: "点赞成功",
  12686. type: "success",
  12687. });
  12688. this.selectSWorks();
  12689. this.selectStudent();
  12690. })
  12691. .catch((err) => {
  12692. this.$message.error("点赞失败");
  12693. console.error(err);
  12694. });
  12695. } else {
  12696. let params = {
  12697. wid: wid,
  12698. lid: uid,
  12699. type: t,
  12700. };
  12701. this.ajax
  12702. .get(this.$store.state.api + "deleteComment", params)
  12703. .then((res) => {
  12704. this.$message({
  12705. message: "取消点赞成功",
  12706. type: "success",
  12707. });
  12708. this.selectSWorks();
  12709. this.selectStudent();
  12710. })
  12711. .catch((err) => {
  12712. console.error(err);
  12713. });
  12714. }
  12715. },
  12716. deleteComment(wid) {
  12717. this.$confirm("确定删除此评论吗?", "提示", {
  12718. confirmButtonText: "确定",
  12719. cancelButtonText: "取消",
  12720. type: "warning",
  12721. })
  12722. .then(() => {
  12723. let params = {
  12724. id: wid,
  12725. };
  12726. this.ajax
  12727. .get(this.$store.state.api + "deleteComment2", params)
  12728. .then((res) => {
  12729. this.$message({
  12730. message: "删除评论成功",
  12731. type: "success",
  12732. });
  12733. this.selectSWorks();
  12734. this.selectStudent();
  12735. })
  12736. .catch((err) => {
  12737. console.error(err);
  12738. });
  12739. })
  12740. .catch(() => {});
  12741. },
  12742. commentOther(w, toolIndex, wIndex, gindex, gid) {
  12743. this.commentIndexJson = {
  12744. toolIndex: toolIndex,
  12745. wIndex: wIndex,
  12746. gindex: gindex,
  12747. gid: gid,
  12748. };
  12749. this.commentDetail = [];
  12750. this.commentDialogVisible = true;
  12751. this.commentDetail = w;
  12752. if (w.works && w.type == 1) {
  12753. this.pptImgUrl = "";
  12754. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12755. if (
  12756. a.indexOf(
  12757. w.works
  12758. .split(".")
  12759. [w.works.split(".").length - 1].toLocaleUpperCase()
  12760. ) != -1
  12761. ) {
  12762. this.pptImgUrl =
  12763. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12764. this.showPDF = false;
  12765. } else if (
  12766. w.works
  12767. .split(".")
  12768. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12769. ) {
  12770. this.pptImgUrl = w.works;
  12771. this.showPDF = true;
  12772. }
  12773. } else if (w.works && w.type == 3) {
  12774. this.videoDetail = {};
  12775. this.playerOptions1.sources[0].src = w.works;
  12776. this.videoDetail = this.playerOptions1;
  12777. // this.videoVisible = true;
  12778. } else if (w.works && w.type == 4) {
  12779. this.eScore = JSON.parse(w.works);
  12780. this.rateJson =
  12781. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12782. this.taskCount
  12783. ].toolChoose[toolIndex].rateJson;
  12784. } else if (w.works && w.type == 10) {
  12785. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  12786. } else if (w.works && w.type == 13) {
  12787. this.wordJson =
  12788. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12789. this.taskCount
  12790. ].toolChoose[toolIndex].wordJson;
  12791. }
  12792. },
  12793. openScore(w) {
  12794. this.wScore = 0;
  12795. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  12796. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  12797. this.commentDetail = [];
  12798. this.dialogVisibleScore = true;
  12799. this.commentDetail = w;
  12800. if (w.works && w.type == 1) {
  12801. this.pptImgUrl = "";
  12802. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12803. if (
  12804. a.indexOf(
  12805. w.works
  12806. .split(".")
  12807. [w.works.split(".").length - 1].toLocaleUpperCase()
  12808. ) != -1
  12809. ) {
  12810. this.pptImgUrl =
  12811. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12812. this.showPDF = false;
  12813. } else if (
  12814. w.works
  12815. .split(".")
  12816. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12817. ) {
  12818. this.pptImgUrl = w.works;
  12819. this.showPDF = true;
  12820. }
  12821. } else if (w.works && w.type == 3) {
  12822. this.videoDetail = {};
  12823. this.playerOptions1.sources[0].src = w.works;
  12824. this.videoDetail = this.playerOptions1;
  12825. }
  12826. },
  12827. addComment(wid, uid, t) {
  12828. if (this.commentText == "") {
  12829. this.$message.error("请输入评论");
  12830. return;
  12831. }
  12832. let params2 = [
  12833. {
  12834. wid: wid,
  12835. lid: uid,
  12836. t: t,
  12837. },
  12838. ];
  12839. this.ajax
  12840. .post(this.$store.state.api + "getComment", params2)
  12841. .then((res) => {
  12842. if (res.data[0].length > 0) {
  12843. this.$message.error("一个作业只能评论一条");
  12844. } else {
  12845. let params = [
  12846. {
  12847. wid: wid,
  12848. lid: uid,
  12849. t: t,
  12850. c: this.commentText,
  12851. },
  12852. ];
  12853. this.ajax
  12854. .post(this.$store.state.api + "insertComment", params)
  12855. .then((res) => {
  12856. this.$message({
  12857. message: "评论成功",
  12858. type: "success",
  12859. });
  12860. this.commentText = "";
  12861. this.selectSWorks();
  12862. this.selectStudent();
  12863. })
  12864. .catch((err) => {
  12865. this.$message.error("评论失败");
  12866. console.error(err);
  12867. });
  12868. }
  12869. })
  12870. .catch((err) => {
  12871. // this.$message.error("评论失败");
  12872. console.error(err);
  12873. });
  12874. },
  12875. scoreWork(wid) {
  12876. if (this.wScore == 0) {
  12877. this.$message.error("请评分");
  12878. return;
  12879. }
  12880. let params = [
  12881. {
  12882. wid: wid,
  12883. score: JSON.stringify({
  12884. wScore: this.wScore,
  12885. detail: this.scoreDetail,
  12886. }),
  12887. },
  12888. ];
  12889. this.ajax
  12890. .post(this.$store.state.api + "scoreWork", params)
  12891. .then((res) => {
  12892. this.$message({
  12893. message: "评分成功",
  12894. type: "success",
  12895. });
  12896. this.wScore = 0;
  12897. this.scoreDetail = "";
  12898. this.dialogVisibleScore = false;
  12899. this.selectSWorks();
  12900. this.selectStudent();
  12901. })
  12902. .catch((err) => {
  12903. this.$message.error("评分失败");
  12904. console.error(err);
  12905. });
  12906. },
  12907. openXz(w, i) {
  12908. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  12909. .taskJson[this.taskCount].toolChoose[i].selectJson
  12910. ? JSON.parse(
  12911. JSON.stringify(
  12912. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12913. this.taskCount
  12914. ].toolChoose[i].selectJson
  12915. )
  12916. )
  12917. : { url: "", select: [], answer: [] };
  12918. var a = w.works.split(",");
  12919. for (var k = 0; k < a.length; k++) {
  12920. a[k] = parseInt(a[k]);
  12921. }
  12922. this.selectAnswer = { answer: a, stu: w.sName };
  12923. this.isSelect = true;
  12924. this.dialogVisibleSelect = true;
  12925. },
  12926. openSen(w, i) {
  12927. this.sentenceList1 = JSON.parse(w.works);
  12928. this.sentenceList1.stuName = w.sName;
  12929. this.dialogVisibleSentence1 = true;
  12930. },
  12931. openPj(w, toolindex) {
  12932. this.isStar = true;
  12933. this.eScore = JSON.parse(w);
  12934. this.rateJson =
  12935. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12936. this.taskCount
  12937. ].toolChoose[toolindex].rateJson;
  12938. this.studentEvalDialogVisible = true;
  12939. },
  12940. deleteWorks(id) {
  12941. this.$confirm("确定删除此作业吗?", "提示", {
  12942. confirmButtonText: "确定",
  12943. cancelButtonText: "取消",
  12944. type: "warning",
  12945. })
  12946. .then(() => {
  12947. let params = [
  12948. {
  12949. id: id,
  12950. },
  12951. ];
  12952. this.ajax
  12953. .post(this.$store.state.api + "deleteCourseWork", params)
  12954. .then((res) => {
  12955. this.$message({
  12956. message: "删除成功",
  12957. type: "success",
  12958. });
  12959. this.selectStudent();
  12960. this.selectSWorks();
  12961. this.selectSLook();
  12962. })
  12963. .catch((err) => {
  12964. this.$message.error("网络异常");
  12965. console.error(err);
  12966. });
  12967. })
  12968. .catch(() => {});
  12969. },
  12970. selectSWorks(gindex) {
  12971. //教师查看全部作业
  12972. let params = {
  12973. cid: this.id,
  12974. s: this.courseType,
  12975. t: this.taskCount,
  12976. };
  12977. this.ajax
  12978. .get(this.$store.state.api + "selectSWorks", params)
  12979. .then((res) => {
  12980. var a =
  12981. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12982. this.taskCount
  12983. ].toolChoose;
  12984. var b = res.data[0];
  12985. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12986. var y = [
  12987. "AVI",
  12988. "NAVI",
  12989. "MPEG",
  12990. "ASF",
  12991. "MOV",
  12992. "WMV",
  12993. "3GP",
  12994. "RM",
  12995. "RMVB",
  12996. "FLV",
  12997. "F4V",
  12998. "H.264",
  12999. "H.265",
  13000. "REAL VIDEO",
  13001. "MKV",
  13002. "WebM",
  13003. "HDDVD",
  13004. "MP4",
  13005. "MPG",
  13006. "M4V",
  13007. "MGV",
  13008. "OGV",
  13009. "QTM",
  13010. "STR",
  13011. "AMC",
  13012. "DVX",
  13013. "EVO",
  13014. "DAT",
  13015. "OGG",
  13016. "OGM",
  13017. ];
  13018. var d = res.data[1];
  13019. var e = res.data[2];
  13020. var f = res.data[3];
  13021. for (var i = 0; i < a.length; i++) {
  13022. this.worksStudent[i] = [];
  13023. this.worksTeacher[i] = [];
  13024. this.worksStudent2[i] = [];
  13025. if (
  13026. !this.isCloseList[i] ||
  13027. this.isCloseList[i].isClose == undefined
  13028. ) {
  13029. this.isCloseList[i] = { isClose: 0 };
  13030. }
  13031. this.groupStudent[i] = [];
  13032. this.groupStudentUid[i] = [];
  13033. this.isWorksS[i] = [];
  13034. this.checkJson[i] = [];
  13035. if (a[i].tool[0] == 49) {
  13036. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13037. this.groupStudent[i][gA] = [];
  13038. this.groupStudentUid[i][gA] = [];
  13039. this.worksStudent[i][gA] = [];
  13040. this.isCloseList[i][gA] = [];
  13041. for (var g = 0; g < f.length; g++) {
  13042. if (
  13043. f[g].ttype == 2 &&
  13044. this.tcid &&
  13045. this.arrayToArray(
  13046. f[g].classid.split(","),
  13047. this.tcid.split(",")
  13048. ).length == 0
  13049. ) {
  13050. continue;
  13051. }
  13052. if (gA == f[g].group && f[g].tool == i) {
  13053. this.groupStudent[i][gA].push(f[g]);
  13054. this.groupStudentUid[i][gA].push(f[g].userid);
  13055. }
  13056. }
  13057. }
  13058. this.$forceUpdate();
  13059. }
  13060. for (var j = 0; j < b.length; j++) {
  13061. if (
  13062. b[j].ttype == 2 &&
  13063. this.tcid &&
  13064. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13065. .length == 0
  13066. ) {
  13067. continue;
  13068. }
  13069. var likesCount = 0;
  13070. var commentCount = 0;
  13071. var isLikes = false;
  13072. var commentJson = [];
  13073. var data = b[j];
  13074. if (i == b[j].tool) {
  13075. if (data.type == 2 && a[i].tool[0] == 4) {
  13076. // if(JSON.parse(data.content)[0].anwer){
  13077. var checkL =
  13078. JSON.parse(data.content)[0].anwer instanceof Array
  13079. ? JSON.parse(data.content)[0].anwer
  13080. : JSON.parse(data.content)[0].anwer.split(",");
  13081. for (var z = 0; z < checkL.length; z++) {
  13082. if (!this.checkJson[i][z]) {
  13083. this.checkJson[i].push({
  13084. checkCount: [],
  13085. checkPerson: [],
  13086. rightPerson: [],
  13087. });
  13088. }
  13089. if (!this.checkJson[i][z].checkCount.length) {
  13090. this.checkJson[i][z].checkCount = [];
  13091. let _askItemCount = JSON.parse(data.content)[0].askJson
  13092. .askJson[z].askItem;
  13093. for (var aic = 0; aic < _askItemCount; aic++) {
  13094. this.checkJson[i][z].checkCount.push(0);
  13095. }
  13096. }
  13097. if (checkL[z] instanceof Array) {
  13098. if (
  13099. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13100. checkL[z].sort().join(",")
  13101. ) {
  13102. this.checkJson[i][z].rightPerson.push(data.name);
  13103. }
  13104. for (var q = 0; q < checkL[z].length; q++) {
  13105. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13106. ? this.checkJson[i][z].checkPerson[
  13107. parseInt(checkL[z][q])
  13108. ].push(data.name)
  13109. : (this.checkJson[i][z].checkPerson[
  13110. parseInt(checkL[z][q])
  13111. ] = [data.name]);
  13112. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13113. ? this.checkJson[i][z].checkCount[
  13114. parseInt(checkL[z][q])
  13115. ]++
  13116. : (this.checkJson[i][z].checkCount[
  13117. parseInt(checkL[z][q])
  13118. ] = 1);
  13119. }
  13120. } else {
  13121. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13122. this.checkJson[i][z].rightPerson.push(data.name);
  13123. }
  13124. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13125. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13126. ? this.checkJson[i][z].checkPerson[
  13127. parseInt(checkL[z])
  13128. ].push(data.name)
  13129. : (this.checkJson[i][z].checkPerson[
  13130. parseInt(checkL[z])
  13131. ] = [data.name]);
  13132. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13133. ? this.checkJson[i][z].checkCount[
  13134. parseInt(checkL[z])
  13135. ]++
  13136. : (this.checkJson[i][z].checkCount[
  13137. parseInt(checkL[z])
  13138. ] = 1);
  13139. }
  13140. }
  13141. }
  13142. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13143. var checkL = JSON.parse(data.content)[0].anwer;
  13144. for (var z = 0; z < checkL.length; z++) {
  13145. if (!this.checkJson[i][z]) {
  13146. this.checkJson[i].push({
  13147. checkCount: [],
  13148. checkPerson: [],
  13149. rightPerson: [],
  13150. });
  13151. }
  13152. if (!this.checkJson[i][z].checkCount.length) {
  13153. this.checkJson[i][z].checkCount = [];
  13154. let _askItemCount = JSON.parse(data.content)[0].testJson
  13155. .testJson[z].testItem;
  13156. console.log(_askItemCount);
  13157. for (var aic = 0; aic < _askItemCount; aic++) {
  13158. this.checkJson[i][z].checkCount.push(0);
  13159. }
  13160. }
  13161. if (checkL[z] instanceof Array) {
  13162. if (
  13163. JSON.parse(data.content)[0]
  13164. .testJson.testJson[z].answer.sort()
  13165. .join(",") == checkL[z].sort().join(",")
  13166. ) {
  13167. this.checkJson[i][z].rightPerson.push(data.name);
  13168. }
  13169. for (var q = 0; q < checkL[z].length; q++) {
  13170. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13171. ? this.checkJson[i][z].checkPerson[
  13172. parseInt(checkL[z][q])
  13173. ].push(data.name)
  13174. : (this.checkJson[i][z].checkPerson[
  13175. parseInt(checkL[z][q])
  13176. ] = [data.name]);
  13177. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13178. ? this.checkJson[i][z].checkCount[
  13179. parseInt(checkL[z][q])
  13180. ]++
  13181. : (this.checkJson[i][z].checkCount[
  13182. parseInt(checkL[z][q])
  13183. ] = 1);
  13184. }
  13185. } else {
  13186. if (
  13187. JSON.parse(data.content)[0].testJson.testJson[z]
  13188. .answer == checkL[z]
  13189. ) {
  13190. this.checkJson[i][z].rightPerson.push(data.name);
  13191. }
  13192. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13193. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13194. ? this.checkJson[i][z].checkPerson[
  13195. parseInt(checkL[z])
  13196. ].push(data.name)
  13197. : (this.checkJson[i][z].checkPerson[
  13198. parseInt(checkL[z])
  13199. ] = [data.name]);
  13200. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13201. ? this.checkJson[i][z].checkCount[
  13202. parseInt(checkL[z])
  13203. ]++
  13204. : (this.checkJson[i][z].checkCount[
  13205. parseInt(checkL[z])
  13206. ] = 1);
  13207. }
  13208. }
  13209. }
  13210. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13211. var checkL = JSON.parse(data.content);
  13212. for (var z = 0; z < checkL.length; z++) {
  13213. if (!this.checkJson[i][z]) {
  13214. this.checkJson[i].push({
  13215. checkCount: [],
  13216. checkPerson: [],
  13217. rightPerson: [],
  13218. });
  13219. }
  13220. this.checkJson[i][z].checkPerson.push(data.name);
  13221. if (
  13222. checkL[z].chooseSenList.toString() ==
  13223. checkL[z].rightAnswer.toString()
  13224. ) {
  13225. this.checkJson[i][z].rightPerson.push(data.name);
  13226. }
  13227. }
  13228. }
  13229. for (var k = 0; k < d.length; k++) {
  13230. //点赞
  13231. if (d[k].workId == b[j].id) {
  13232. likesCount++;
  13233. if (d[k].likesId == this.userid) {
  13234. isLikes = true;
  13235. }
  13236. }
  13237. }
  13238. for (var l = 0; l < e.length; l++) {
  13239. //评论
  13240. if (e[l].workId == b[j].id) {
  13241. if (e[l].comment != "") {
  13242. commentCount++;
  13243. commentJson.push({
  13244. commentText: e[l].comment,
  13245. commentTime: e[l].commentTime,
  13246. commentPeople: e[l].commentPeople,
  13247. userid: e[l].userid,
  13248. wid: e[l].id,
  13249. });
  13250. }
  13251. }
  13252. }
  13253. if (
  13254. (b[j].type == 1 ||
  13255. b[j].type == 4 ||
  13256. b[j].type == 5 ||
  13257. b[j].type == 6 ||
  13258. b[j].type == 12 ||
  13259. b[j].type == 7) &&
  13260. a[i].tool[0] != 15 &&
  13261. a[i].tool[0] != 4 &&
  13262. a[i].tool[0] != 45 &&
  13263. a[i].tool[0] != 50 &&
  13264. a[i].tool[0] != 32 &&
  13265. a[i].tool[0] != 57 &&
  13266. a[i].tool[0] != 52
  13267. ) {
  13268. if (
  13269. c.indexOf(
  13270. b[j].content
  13271. .split(".")
  13272. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13273. ) != -1 &&
  13274. a[i].tool[0] == 16 &&
  13275. b[j].atool != 50
  13276. ) {
  13277. let _works = {
  13278. userid: b[j].userid,
  13279. ateacher: b[j].ateacher,
  13280. wid: b[j].id,
  13281. works: b[j].content,
  13282. sName: b[j].name,
  13283. type: 1,
  13284. time: b[j].time,
  13285. score: b[j].score,
  13286. img: b[j].img,
  13287. likesCount: likesCount,
  13288. commentCount: commentCount,
  13289. isLikes: isLikes,
  13290. commentJson: commentJson,
  13291. };
  13292. if (b[j].ttype == 1) {
  13293. this.worksTeacher[i].push(_works);
  13294. } else {
  13295. this.worksStudent2[i].push(_works);
  13296. }
  13297. this.worksStudent[i].push(_works);
  13298. this.isWorksS[i].push({
  13299. uid: b[j].userid,
  13300. sName: b[j].name,
  13301. });
  13302. } else if (
  13303. y.indexOf(
  13304. b[j].content
  13305. .split(".")
  13306. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13307. ) != -1 &&
  13308. a[i].tool[0] == 16 &&
  13309. b[j].atool != 50
  13310. ) {
  13311. let _works = {
  13312. userid: b[j].userid,
  13313. ateacher: b[j].ateacher,
  13314. wid: b[j].id,
  13315. works: b[j].content,
  13316. sName: b[j].name,
  13317. type: 3,
  13318. time: b[j].time,
  13319. score: b[j].score,
  13320. img: b[j].img,
  13321. likesCount: likesCount,
  13322. commentCount: commentCount,
  13323. isLikes: isLikes,
  13324. commentJson: commentJson,
  13325. };
  13326. if (b[j].ttype == 1) {
  13327. this.worksTeacher[i].push(_works);
  13328. } else {
  13329. this.worksStudent2[i].push(_works);
  13330. }
  13331. this.worksStudent[i].push(_works);
  13332. this.isWorksS[i].push({
  13333. uid: b[j].userid,
  13334. sName: b[j].name,
  13335. });
  13336. } else if (b[j].type == 6 && b[j].atool != 50) {
  13337. let _works = {
  13338. userid: b[j].userid,
  13339. ateacher: b[j].ateacher,
  13340. wid: b[j].id,
  13341. works: b[j].content,
  13342. sName: b[j].name,
  13343. type: 4,
  13344. time: b[j].time,
  13345. score: b[j].score,
  13346. img: b[j].img,
  13347. likesCount: likesCount,
  13348. commentCount: commentCount,
  13349. isLikes: isLikes,
  13350. commentJson: commentJson,
  13351. };
  13352. if (b[j].ttype == 1) {
  13353. this.worksTeacher[i].push(_works);
  13354. } else {
  13355. this.worksStudent2[i].push(_works);
  13356. }
  13357. this.worksStudent[i].push(_works);
  13358. this.isWorksS[i].push({
  13359. uid: b[j].userid,
  13360. sName: b[j].name,
  13361. });
  13362. } else if (b[j].type == 7 && b[j].atool != 50) {
  13363. let _works = {
  13364. userid: b[j].userid,
  13365. ateacher: b[j].ateacher,
  13366. wid: b[j].id,
  13367. works: b[j].content,
  13368. sName: b[j].name,
  13369. type: 5,
  13370. time: b[j].time,
  13371. score: b[j].score,
  13372. img: b[j].img,
  13373. likesCount: likesCount,
  13374. commentCount: commentCount,
  13375. isLikes: isLikes,
  13376. commentJson: commentJson,
  13377. };
  13378. if (b[j].ttype == 1) {
  13379. this.worksTeacher[i].push(_works);
  13380. } else {
  13381. this.worksStudent2[i].push(_works);
  13382. }
  13383. this.worksStudent[i].push(_works);
  13384. this.isWorksS[i].push({
  13385. uid: b[j].userid,
  13386. sName: b[j].name,
  13387. });
  13388. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13389. let _works = {
  13390. userid: b[j].userid,
  13391. ateacher: b[j].ateacher,
  13392. wid: b[j].id,
  13393. works: b[j].content,
  13394. sName: b[j].name,
  13395. type: 12,
  13396. time: b[j].time,
  13397. score: b[j].score,
  13398. img: b[j].img,
  13399. likesCount: likesCount,
  13400. commentCount: commentCount,
  13401. isLikes: isLikes,
  13402. commentJson: commentJson,
  13403. };
  13404. if (b[j].ttype == 1) {
  13405. this.worksTeacher[i].push(_works);
  13406. } else {
  13407. this.worksStudent2[i].push(_works);
  13408. }
  13409. this.worksStudent[i].push(_works);
  13410. this.isWorksS[i].push({
  13411. uid: b[j].userid,
  13412. sName: b[j].name,
  13413. });
  13414. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13415. let _works = {
  13416. userid: b[j].userid,
  13417. ateacher: b[j].ateacher,
  13418. wid: b[j].id,
  13419. works: b[j].content,
  13420. sName: b[j].name,
  13421. type: 0,
  13422. time: b[j].time,
  13423. score: b[j].score,
  13424. img: b[j].img,
  13425. likesCount: likesCount,
  13426. commentCount: commentCount,
  13427. isLikes: isLikes,
  13428. commentJson: commentJson,
  13429. };
  13430. if (b[j].ttype == 1) {
  13431. this.worksTeacher[i].push(_works);
  13432. } else {
  13433. this.worksStudent2[i].push(_works);
  13434. }
  13435. this.worksStudent[i].push(_works);
  13436. this.isWorksS[i].push({
  13437. uid: b[j].userid,
  13438. sName: b[j].name,
  13439. });
  13440. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13441. let _works = {
  13442. userid: b[j].userid,
  13443. ateacher: b[j].ateacher,
  13444. wid: b[j].id,
  13445. works: b[j].content,
  13446. sName: b[j].name,
  13447. type: 0,
  13448. time: b[j].time,
  13449. score: b[j].score,
  13450. img: b[j].img,
  13451. likesCount: likesCount,
  13452. commentCount: commentCount,
  13453. isLikes: isLikes,
  13454. commentJson: commentJson,
  13455. };
  13456. if (b[j].ttype == 1) {
  13457. this.worksTeacher[i].push(_works);
  13458. } else {
  13459. this.worksStudent2[i].push(_works);
  13460. }
  13461. this.worksStudent[i].push(_works);
  13462. this.isWorksS[i].push({
  13463. uid: b[j].userid,
  13464. sName: b[j].name,
  13465. });
  13466. }
  13467. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13468. let _works = {
  13469. userid: b[j].userid,
  13470. ateacher: b[j].ateacher,
  13471. wid: b[j].id,
  13472. works: b[j].content,
  13473. sName: b[j].name,
  13474. type: 2,
  13475. time: b[j].time,
  13476. score: b[j].score,
  13477. img: b[j].img,
  13478. likesCount: likesCount,
  13479. commentCount: commentCount,
  13480. isLikes: isLikes,
  13481. commentJson: commentJson,
  13482. };
  13483. if (b[j].ttype == 1) {
  13484. this.worksTeacher[i].push(_works);
  13485. } else {
  13486. this.worksStudent2[i].push(_works);
  13487. }
  13488. this.worksStudent[i].push(_works);
  13489. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13490. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13491. //问卷
  13492. let _works = {
  13493. userid: b[j].userid,
  13494. ateacher: b[j].ateacher,
  13495. wid: b[j].id,
  13496. works: b[j].content,
  13497. sName: b[j].name,
  13498. type: 2,
  13499. time: b[j].time,
  13500. score: b[j].score,
  13501. img: b[j].img,
  13502. likesCount: likesCount,
  13503. commentCount: commentCount,
  13504. isLikes: isLikes,
  13505. commentJson: commentJson,
  13506. };
  13507. if (b[j].ttype == 1) {
  13508. this.worksTeacher[i].push(_works);
  13509. } else {
  13510. this.worksStudent2[i].push(_works);
  13511. }
  13512. this.worksStudent[i].push(_works);
  13513. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13514. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13515. //选择题
  13516. let _works = {
  13517. userid: b[j].userid,
  13518. ateacher: b[j].ateacher,
  13519. wid: b[j].id,
  13520. works: b[j].content,
  13521. sName: b[j].name,
  13522. type: 8,
  13523. time: b[j].time,
  13524. score: b[j].score,
  13525. img: b[j].img,
  13526. likesCount: likesCount,
  13527. commentCount: commentCount,
  13528. isLikes: isLikes,
  13529. commentJson: commentJson,
  13530. };
  13531. if (b[j].ttype == 1) {
  13532. this.worksTeacher[i].push(_works);
  13533. } else {
  13534. this.worksStudent2[i].push(_works);
  13535. }
  13536. this.worksStudent[i].push(_works);
  13537. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13538. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13539. //选择题
  13540. let _works = {
  13541. userid: b[j].userid,
  13542. ateacher: b[j].ateacher,
  13543. wid: b[j].id,
  13544. works: b[j].content,
  13545. sName: b[j].name,
  13546. type: 9,
  13547. time: b[j].time,
  13548. score: b[j].score,
  13549. img: b[j].img,
  13550. likesCount: likesCount,
  13551. commentCount: commentCount,
  13552. isLikes: isLikes,
  13553. commentJson: commentJson,
  13554. };
  13555. if (b[j].ttype == 1) {
  13556. this.worksTeacher[i].push(_works);
  13557. } else {
  13558. this.worksStudent2[i].push(_works);
  13559. }
  13560. this.worksStudent[i].push(_works);
  13561. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13562. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13563. //选择题
  13564. let _works = {
  13565. userid: b[j].userid,
  13566. ateacher: b[j].ateacher,
  13567. wid: b[j].id,
  13568. works: b[j].content,
  13569. sName: b[j].name,
  13570. type: 10,
  13571. time: b[j].time,
  13572. score: b[j].score,
  13573. img: b[j].img,
  13574. likesCount: likesCount,
  13575. commentCount: commentCount,
  13576. isLikes: isLikes,
  13577. commentJson: commentJson,
  13578. };
  13579. if (b[j].ttype == 1) {
  13580. this.worksTeacher[i].push(_works);
  13581. } else {
  13582. this.worksStudent2[i].push(_works);
  13583. }
  13584. this.worksStudent[i].push(_works);
  13585. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13586. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13587. //选择题
  13588. let _works = {
  13589. userid: b[j].userid,
  13590. ateacher: b[j].ateacher,
  13591. wid: b[j].id,
  13592. works: b[j].content,
  13593. sName: b[j].name,
  13594. type: 13,
  13595. time: b[j].time,
  13596. score: b[j].score,
  13597. img: b[j].img,
  13598. likesCount: likesCount,
  13599. commentCount: commentCount,
  13600. isLikes: isLikes,
  13601. commentJson: commentJson,
  13602. };
  13603. if (b[j].ttype == 1) {
  13604. this.worksTeacher[i].push(_works);
  13605. } else {
  13606. this.worksStudent2[i].push(_works);
  13607. }
  13608. this.worksStudent[i].push(_works);
  13609. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13610. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  13611. let _gindex = JSON.parse(b[j].content);
  13612. if (
  13613. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  13614. b[j].userid
  13615. ) != -1
  13616. ) {
  13617. this.worksStudent[i][_gindex.groupIndex].push({
  13618. userid: b[j].userid,
  13619. ateacher: b[j].ateacher,
  13620. wid: b[j].id,
  13621. works: _gindex.url,
  13622. sName: b[j].name,
  13623. type: _gindex.type,
  13624. time: b[j].time,
  13625. score: b[j].score,
  13626. img: b[j].img,
  13627. likesCount: likesCount,
  13628. commentCount: commentCount,
  13629. isLikes: isLikes,
  13630. commentJson: commentJson,
  13631. });
  13632. }
  13633. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13634. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  13635. let _works = {
  13636. userid: b[j].userid,
  13637. ateacher: b[j].ateacher,
  13638. wid: b[j].id,
  13639. works: b[j].content,
  13640. sName: b[j].name ? b[j].name : b[j].userid,
  13641. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  13642. time: b[j].time,
  13643. score: b[j].score,
  13644. img: b[j].img,
  13645. likesCount: likesCount,
  13646. commentCount: commentCount,
  13647. isLikes: isLikes,
  13648. commentJson: commentJson,
  13649. };
  13650. if (b[j].ttype == 1) {
  13651. this.worksTeacher[i].push(_works);
  13652. } else {
  13653. this.worksStudent2[i].push(_works);
  13654. }
  13655. this.worksStudent[i].push(_works);
  13656. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13657. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  13658. let _works = {
  13659. userid: b[j].userid,
  13660. ateacher: b[j].ateacher,
  13661. wid: b[j].id,
  13662. works: b[j].content,
  13663. sName: b[j].name ? b[j].name : b[j].userid,
  13664. type: 12,
  13665. time: b[j].time,
  13666. score: b[j].score,
  13667. img: b[j].img,
  13668. likesCount: likesCount,
  13669. commentCount: commentCount,
  13670. isLikes: isLikes,
  13671. commentJson: commentJson,
  13672. };
  13673. if (b[j].ttype == 1) {
  13674. this.worksTeacher[i].push(_works);
  13675. } else {
  13676. this.worksStudent2[i].push(_works);
  13677. }
  13678. this.worksStudent[i].push(_works);
  13679. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13680. } else if (
  13681. a[i].tool[0] == 57 &&
  13682. b[j].atool == 57 &&
  13683. b[j].type == 12
  13684. ) {
  13685. let _works = {
  13686. userid: b[j].userid,
  13687. ateacher: b[j].ateacher,
  13688. wid: b[j].id,
  13689. works: b[j].content,
  13690. sName: b[j].name ? b[j].name : b[j].userid,
  13691. type: 12,
  13692. time: b[j].time,
  13693. score: b[j].score,
  13694. img: b[j].img,
  13695. likesCount: likesCount,
  13696. commentCount: commentCount,
  13697. isLikes: isLikes,
  13698. commentJson: commentJson,
  13699. };
  13700. if (b[j].ttype == 1) {
  13701. this.worksTeacher[i].push(_works);
  13702. } else {
  13703. this.worksStudent2[i].push(_works);
  13704. }
  13705. this.worksStudent[i].push(_works);
  13706. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13707. } else if (
  13708. a[i].tool[0] == 57 &&
  13709. b[j].atool == 57 &&
  13710. b[j].type == 15
  13711. ) {
  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: 15,
  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. }
  13735. }
  13736. }
  13737. if (this.worksStudent[i] && this.worksStudent[i].length) {
  13738. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  13739. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13740. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13741. var scoreA = parseFloat(jscoreA);
  13742. var scoreB = parseFloat(jscoreB);
  13743. if (scoreA == scoreB) {
  13744. return b.likesCount - a.likesCount;
  13745. }
  13746. return scoreB - scoreA;
  13747. });
  13748. }
  13749. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  13750. this.worksStudent2[i] = this.worksStudent2[i].sort(function (
  13751. a,
  13752. b
  13753. ) {
  13754. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13755. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13756. var scoreA = parseFloat(jscoreA);
  13757. var scoreB = parseFloat(jscoreB);
  13758. if (scoreA == scoreB) {
  13759. return b.likesCount - a.likesCount;
  13760. }
  13761. return scoreB - scoreA;
  13762. });
  13763. }
  13764. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  13765. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  13766. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  13767. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  13768. var scoreA = parseFloat(jscoreA);
  13769. var scoreB = parseFloat(jscoreB);
  13770. if (scoreA == scoreB) {
  13771. return b.likesCount - a.likesCount;
  13772. }
  13773. return scoreB - scoreA;
  13774. });
  13775. }
  13776. }
  13777. for (var i = 0; i < a.length; i++) {
  13778. for (var j = 0; j < b.length; j++) {
  13779. var data = b[j];
  13780. if (i == b[j].tool) {
  13781. if (data.type == 2 || data.type == 8) {
  13782. for (var z = 0; z < this.checkJson[i].length; z++) {
  13783. this.checkJson[i][z].checkPerent = [];
  13784. this.checkJson[i][z].right = Math.round(
  13785. (this.checkJson[i][z].rightPerson.length /
  13786. parseInt(this.worksStudent[i].length)) *
  13787. 100
  13788. );
  13789. let aaaa = this.checkJson[i][z];
  13790. console.log(aaaa);
  13791. for (
  13792. var k = 0;
  13793. k < this.checkJson[i][z].checkCount.length;
  13794. k++
  13795. ) {
  13796. this.checkJson[i][z].checkPerent.push(
  13797. Math.round(
  13798. (this.checkJson[i][z].checkCount[k] /
  13799. parseInt(this.worksStudent[i].length)) *
  13800. 100
  13801. )
  13802. );
  13803. }
  13804. }
  13805. } else if (data.type == 9) {
  13806. for (var z = 0; z < this.checkJson[i].length; z++) {
  13807. this.checkJson[i][z].checkPerent = [];
  13808. this.checkJson[i][z].right = Math.round(
  13809. (this.checkJson[i][z].rightPerson.length /
  13810. this.checkJson[i][z].checkPerson.length) *
  13811. 100
  13812. );
  13813. }
  13814. }
  13815. }
  13816. }
  13817. }
  13818. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  13819. this.joinGroup(gindex);
  13820. }
  13821. this.selectWorksStudent();
  13822. })
  13823. .catch((err) => {
  13824. console.error(err);
  13825. });
  13826. },
  13827. pngToWhiteBg(file) {
  13828. const _file = file;
  13829. let read = new FileReader();
  13830. read.readAsDataURL(file); // 文件转base64
  13831. return new Promise((resolve, reject) => {
  13832. read.onload = (e) => {
  13833. let img = new Image();
  13834. img.src = e.target.result;
  13835. img.onload = async () => {
  13836. // 生成canvas
  13837. let canvas = document.createElement("canvas");
  13838. let context = canvas.getContext("2d");
  13839. // 绘制图片到canvas上
  13840. canvas.width = img.width;
  13841. canvas.height = img.height;
  13842. // 在canvas绘制前填充白色背景
  13843. context.fillStyle = "#fff";
  13844. context.fillRect(0, 0, canvas.width, canvas.height);
  13845. context.drawImage(img, 0, 0);
  13846. let base64 = canvas.toDataURL(file["type"], 1);
  13847. let newFile = this.dataUrlToFile(base64, _file);
  13848. resolve(newFile);
  13849. };
  13850. };
  13851. });
  13852. },
  13853. dataUrlToFile(dataurl, file) {
  13854. let arr = dataurl.split(","),
  13855. mime = arr[0].match(/:(.*?);/)[1],
  13856. bstr = atob(arr[1]),
  13857. n = bstr.length,
  13858. u8arr = new Uint8Array(n);
  13859. while (n--) {
  13860. u8arr[n] = bstr.charCodeAt(n);
  13861. }
  13862. // return new Blob([u8arr], { type: mime });
  13863. return new File([new Blob([u8arr], { type: mime })], file.name, {
  13864. type: mime,
  13865. });
  13866. },
  13867. async beforeUpload1(event, type, i) {
  13868. // this.$message.success('进入上传')
  13869. var file = "";
  13870. if (type == 5) {
  13871. file = event;
  13872. } else {
  13873. file = event.target.files[0];
  13874. }
  13875. var credentials = {
  13876. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13877. secretAccessKey: "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",
  13878. }; //秘钥形式的登录上传
  13879. window.AWS.config.update(credentials);
  13880. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13881. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  13882. var _this = this;
  13883. _this.progress = 0;
  13884. _this.proVisible = true;
  13885. _this.isFinishSize = 0;
  13886. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  13887. var b = [
  13888. "DOC",
  13889. "DOCX",
  13890. "DOCM",
  13891. "DOTM",
  13892. "DOTX",
  13893. "PPTX",
  13894. "PPSX",
  13895. "PPT",
  13896. "PPS",
  13897. "PPTM",
  13898. "POTM",
  13899. "PPAM",
  13900. "POTX",
  13901. "PPSM",
  13902. ];
  13903. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  13904. var photoA = [
  13905. "BMP",
  13906. "GIF",
  13907. "PNG",
  13908. "JPGE",
  13909. "JPG",
  13910. "TIF",
  13911. "PCX",
  13912. "TGA",
  13913. "EXIF",
  13914. "FPX",
  13915. "SVG",
  13916. "APNG",
  13917. ];
  13918. // if (
  13919. // b.indexOf(
  13920. // file.name
  13921. // .split(".")
  13922. // [file.name.split(".").length - 1].toLocaleUpperCase()
  13923. // ) != -1
  13924. // ) {
  13925. // if (file.size / 1024 / 1024 > 10) {
  13926. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  13927. // return;
  13928. // }
  13929. // } else if (
  13930. // excelA.indexOf(
  13931. // file.name
  13932. // .split(".")
  13933. // [file.name.split(".").length - 1].toLocaleUpperCase()
  13934. // ) != "-1"
  13935. // ) {
  13936. // if (file.size / 1024 / 1024 > 5) {
  13937. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  13938. // return;
  13939. // }
  13940. // }
  13941. if (
  13942. photoA.indexOf(
  13943. file.name
  13944. .split(".")
  13945. [file.name.split(".").length - 1].toLocaleUpperCase()
  13946. ) != -1 &&
  13947. type != 4
  13948. ) {
  13949. // const blob = await imageConversion.compress(file, 0.8)
  13950. file = await this.pngToWhiteBg(file);
  13951. const blob = await imageConversion.compressAccurately(file, 256);
  13952. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  13953. file = new File([blob], file.name, { type: file.type });
  13954. }
  13955. if (file) {
  13956. var params = {
  13957. Key:
  13958. file.name.split(".")[0] +
  13959. new Date().getTime() +
  13960. "." +
  13961. file.name.split(".")[file.name.split(".").length - 1],
  13962. ContentType: file.type,
  13963. Body: file,
  13964. "Access-Control-Allow-Credentials": "*",
  13965. ACL: "public-read",
  13966. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  13967. var options = {
  13968. // partSize: 2048 * 1024 * 1024,
  13969. partSize: 1024 * 1024 * 1024,
  13970. queueSize: 2,
  13971. leavePartsOnError: true,
  13972. };
  13973. bucket
  13974. .upload(params, options)
  13975. .on("httpUploadProgress", function (evt) {
  13976. //这里可以写进度条
  13977. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  13978. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  13979. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  13980. })
  13981. .send(function (err, data) {
  13982. _this.progress = 100;
  13983. _this.isFinishSize = _this.isAllSize;
  13984. setTimeout(() => {
  13985. _this.proVisible = false;
  13986. }, 1000);
  13987. if (err) {
  13988. var a = _this.$refs.upload1.uploadFiles;
  13989. a.splice(a.length - 1, a.length);
  13990. _this.$message.error("上传失败");
  13991. } else {
  13992. // _this.$message.success('上传成功')
  13993. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13994. var c = [
  13995. "AVI",
  13996. "NAVI",
  13997. "MPEG",
  13998. "ASF",
  13999. "MOV",
  14000. "WMV",
  14001. "3GP",
  14002. "RM",
  14003. "RMVB",
  14004. "FLV",
  14005. "F4V",
  14006. "H.264",
  14007. "H.265",
  14008. "REAL VIDEO",
  14009. "MKV",
  14010. "WebM",
  14011. "HDDVD",
  14012. "MP4",
  14013. "MPG",
  14014. "M4V",
  14015. "MGV",
  14016. "OGV",
  14017. "QTM",
  14018. "STR",
  14019. "AMC",
  14020. "DVX",
  14021. "EVO",
  14022. "DAT",
  14023. "OGG",
  14024. "OGM",
  14025. ];
  14026. if (type == 1) {
  14027. _this.studyJuri[0].cover.push({
  14028. name: file.name,
  14029. url: data.Location,
  14030. uid: file.uid,
  14031. });
  14032. if (
  14033. c.indexOf(
  14034. _this.studyJuri[0].cover[0].url
  14035. .split(".")
  14036. [
  14037. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14038. ].toLocaleUpperCase()
  14039. ) != -1
  14040. ) {
  14041. _this.fileType = 2;
  14042. } else if (
  14043. b.indexOf(
  14044. _this.studyJuri[0].cover[0].url
  14045. .split(".")
  14046. [
  14047. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14048. ].toLocaleUpperCase()
  14049. ) != -1
  14050. ) {
  14051. _this.fileType = 1;
  14052. } else if (
  14053. photoA.indexOf(
  14054. _this.studyJuri[0].cover[0].url
  14055. .split(".")
  14056. [
  14057. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14058. ].toLocaleUpperCase()
  14059. ) != -1
  14060. ) {
  14061. _this.fileType = 0;
  14062. } else {
  14063. _this.fileType = 3;
  14064. }
  14065. _this.imgChange(null, null, type);
  14066. } else if (type == 2) {
  14067. _this.upToolImg = data.Location;
  14068. _this.imgChange(null, null, type);
  14069. _this.addCourseWorks(i);
  14070. } else if (type == 4) {
  14071. _this.addPz("3", data.Location);
  14072. } else if (type == 5) {
  14073. _this.addImgDrawImG(data.Location);
  14074. } else if (type == 6) {
  14075. var _ftype = 1;
  14076. if (
  14077. c.indexOf(
  14078. data.Location.split(".")[
  14079. data.Location.split(".").length - 1
  14080. ].toLocaleUpperCase()
  14081. ) != -1
  14082. ) {
  14083. _ftype = 5;
  14084. } else if (
  14085. b.indexOf(
  14086. data.Location.split(".")[
  14087. data.Location.split(".").length - 1
  14088. ].toLocaleUpperCase()
  14089. ) != -1
  14090. ) {
  14091. _ftype = 4;
  14092. } else {
  14093. _ftype = 1;
  14094. }
  14095. _this.plworkFile.push({
  14096. name: file.name,
  14097. url: data.Location,
  14098. uid: file.uid,
  14099. fileType: _ftype,
  14100. username:
  14101. _this.plworkFile.length + 1 > 10
  14102. ? _this.plworkFile.length + 1
  14103. : "0" + (_this.plworkFile.length + 1),
  14104. });
  14105. } else if (type == 7) {
  14106. _this.addCourseWorksGong(i, data.Location, 32);
  14107. } else if (type == 8) {
  14108. _this.addCourseWorksGong(i, data.Location, 57);
  14109. }
  14110. _this.imgChange(null, null, type);
  14111. console.log(data.Location);
  14112. // _this.$message.success('上传成功'+data.Location)
  14113. }
  14114. });
  14115. }
  14116. },
  14117. async beforeUpload3(event, type, i) {
  14118. // this.$message.success('进入上传')
  14119. let file = "";
  14120. let cfindex2 = 0;
  14121. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14122. file = event.target.files[cfindex];
  14123. var credentials = {
  14124. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14125. secretAccessKey: "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",
  14126. }; //秘钥形式的登录上传
  14127. window.AWS.config.update(credentials);
  14128. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14129. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14130. var _this = this;
  14131. // _this.progress = 0;
  14132. _this.proVisible2 = true;
  14133. var b = [
  14134. "DOC",
  14135. "DOCX",
  14136. "DOCM",
  14137. "DOTM",
  14138. "DOTX",
  14139. "PPTX",
  14140. "PPSX",
  14141. "PPT",
  14142. "PPS",
  14143. "PPTM",
  14144. "POTM",
  14145. "PPAM",
  14146. "POTX",
  14147. "PPSM",
  14148. ];
  14149. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14150. var photoA = [
  14151. "BMP",
  14152. "GIF",
  14153. "PNG",
  14154. "JPGE",
  14155. "JPG",
  14156. "TIF",
  14157. "PCX",
  14158. "TGA",
  14159. "EXIF",
  14160. "FPX",
  14161. "SVG",
  14162. "APNG",
  14163. ];
  14164. if (
  14165. photoA.indexOf(
  14166. file.name
  14167. .split(".")
  14168. [file.name.split(".").length - 1].toLocaleUpperCase()
  14169. ) != -1 &&
  14170. type != 4
  14171. ) {
  14172. // const blob = await imageConversion.compress(file, 0.8)
  14173. file = await this.pngToWhiteBg(file);
  14174. const blob = await imageConversion.compressAccurately(file, 256);
  14175. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14176. file = new File([blob], file.name, { type: file.type });
  14177. }
  14178. if (file) {
  14179. var params = {
  14180. Key:
  14181. file.name.split(".")[0] +
  14182. new Date().getTime() +
  14183. "." +
  14184. file.name.split(".")[file.name.split(".").length - 1],
  14185. ContentType: file.type,
  14186. Body: file,
  14187. "Access-Control-Allow-Credentials": "*",
  14188. ACL: "public-read",
  14189. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14190. var options = {
  14191. // partSize: 2048 * 1024 * 1024,
  14192. partSize: 1024 * 1024 * 1024,
  14193. queueSize: 2,
  14194. leavePartsOnError: true,
  14195. };
  14196. bucket
  14197. .upload(params, options)
  14198. .on("httpUploadProgress", function (evt) {
  14199. //这里可以写进度条
  14200. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14201. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14202. })
  14203. .send(function (err, data) {
  14204. // _this.progress = 100;
  14205. cfindex2++;
  14206. setTimeout(() => {
  14207. if (
  14208. cfindex2 == event.target.files.length - 1 ||
  14209. cfindex2 > event.target.files.length - 1
  14210. ) {
  14211. _this.proVisible2 = false;
  14212. }
  14213. }, 1000);
  14214. if (err) {
  14215. var a = _this.$refs.upload1.uploadFiles;
  14216. a.splice(a.length - 1, a.length);
  14217. _this.$message.error("上传失败");
  14218. } else {
  14219. // _this.$message.success('上传成功')
  14220. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14221. var c = [
  14222. "AVI",
  14223. "NAVI",
  14224. "MPEG",
  14225. "ASF",
  14226. "MOV",
  14227. "WMV",
  14228. "3GP",
  14229. "RM",
  14230. "RMVB",
  14231. "FLV",
  14232. "F4V",
  14233. "H.264",
  14234. "H.265",
  14235. "REAL VIDEO",
  14236. "MKV",
  14237. "WebM",
  14238. "HDDVD",
  14239. "MP4",
  14240. "MPG",
  14241. "M4V",
  14242. "MGV",
  14243. "OGV",
  14244. "QTM",
  14245. "STR",
  14246. "AMC",
  14247. "DVX",
  14248. "EVO",
  14249. "DAT",
  14250. "OGG",
  14251. "OGM",
  14252. ];
  14253. if (type == 1) {
  14254. _this.studyJuri[0].cover.push({
  14255. name: file.name,
  14256. url: data.Location,
  14257. uid: file.uid,
  14258. });
  14259. if (
  14260. c.indexOf(
  14261. _this.studyJuri[0].cover[0].url
  14262. .split(".")
  14263. [
  14264. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14265. ].toLocaleUpperCase()
  14266. ) != -1
  14267. ) {
  14268. _this.fileType = 2;
  14269. } else if (
  14270. b.indexOf(
  14271. _this.studyJuri[0].cover[0].url
  14272. .split(".")
  14273. [
  14274. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14275. ].toLocaleUpperCase()
  14276. ) != -1
  14277. ) {
  14278. _this.fileType = 1;
  14279. } else {
  14280. _this.fileType = 0;
  14281. }
  14282. _this.imgChange(null, null, type);
  14283. } else if (type == 2) {
  14284. _this.upToolImg = data.Location;
  14285. _this.imgChange(null, null, type);
  14286. _this.addCourseWorks(i);
  14287. } else if (type == 4) {
  14288. _this.addPz("3", data.Location);
  14289. } else if (type == 5) {
  14290. _this.addImgDrawImG(data.Location);
  14291. } else if (type == 6) {
  14292. var _ftype = 1;
  14293. if (
  14294. c.indexOf(
  14295. data.Location.split(".")[
  14296. data.Location.split(".").length - 1
  14297. ].toLocaleUpperCase()
  14298. ) != -1
  14299. ) {
  14300. _ftype = 5;
  14301. } else if (
  14302. b.indexOf(
  14303. data.Location.split(".")[
  14304. data.Location.split(".").length - 1
  14305. ].toLocaleUpperCase()
  14306. ) != -1
  14307. ) {
  14308. _ftype = 4;
  14309. } else {
  14310. _ftype = 1;
  14311. }
  14312. _this.plworkFile.push({
  14313. name: file.name,
  14314. url: data.Location,
  14315. uid: file.uid,
  14316. fileType: _ftype,
  14317. username:
  14318. _this.plworkFile.length + 1 > 9
  14319. ? _this.plworkFile.length + 1
  14320. : "0" + (_this.plworkFile.length + 1),
  14321. });
  14322. }
  14323. _this.imgChange(null, null, type);
  14324. console.log(data.Location);
  14325. // _this.$message.success('上传成功'+data.Location)
  14326. }
  14327. });
  14328. }
  14329. }
  14330. },
  14331. beforeUpload2(event, type) {
  14332. var file = event.target.files[0];
  14333. var credentials = {
  14334. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14335. secretAccessKey: "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",
  14336. }; //秘钥形式的登录上传
  14337. window.AWS.config.update(credentials);
  14338. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14339. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14340. var _this = this;
  14341. _this.progress = 0;
  14342. _this.proVisible = true;
  14343. if (file) {
  14344. var params = {
  14345. Key:
  14346. file.name.split(".")[0] +
  14347. new Date().getTime() +
  14348. "." +
  14349. file.name.split(".")[file.name.split(".").length - 1],
  14350. ContentType: file.type,
  14351. Body: file,
  14352. "Access-Control-Allow-Credentials": "*",
  14353. ACL: "public-read",
  14354. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14355. var options = {
  14356. partSize: 2048 * 1024 * 1024,
  14357. queueSize: 2,
  14358. leavePartsOnError: true,
  14359. };
  14360. bucket
  14361. .upload(params, options)
  14362. .on("httpUploadProgress", function (evt) {
  14363. //这里可以写进度条
  14364. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14365. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14366. })
  14367. .send(function (err, data) {
  14368. _this.progress = 100;
  14369. setTimeout(() => {
  14370. _this.proVisible = false;
  14371. }, 1000);
  14372. if (err) {
  14373. var a = _this.$refs.upload1.uploadFiles;
  14374. a.splice(a.length - 1, a.length);
  14375. _this.$message.error("上传失败");
  14376. } else {
  14377. if (type == 2) {
  14378. _this.studyJuri[0].upVedio.push({
  14379. name: file.name,
  14380. url: data.Location,
  14381. uid: file.uid,
  14382. });
  14383. _this.imgChange(null, null, type);
  14384. } else if (type == 3) {
  14385. _this.studyJuri[0].upFile.push({
  14386. name: file.name,
  14387. url: data.Location,
  14388. uid: file.uid,
  14389. });
  14390. _this.imgChange(null, null, type);
  14391. }
  14392. console.log(data.Location);
  14393. }
  14394. });
  14395. }
  14396. },
  14397. allScrell() {
  14398. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  14399. },
  14400. nextToolindex(type) {
  14401. if (type == "last") {
  14402. if (this.toolIndex == 0) {
  14403. this.$message.error("已经是第一个步骤");
  14404. return;
  14405. }
  14406. this.toolIndex = this.toolIndex - 1;
  14407. this.tool =
  14408. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14409. this.taskCount
  14410. ].toolChoose[this.toolIndex];
  14411. } else if (type == "next") {
  14412. if (
  14413. this.toolIndex ==
  14414. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14415. this.taskCount
  14416. ].toolChoose.length -
  14417. 1
  14418. ) {
  14419. this.$message.error("已经是最后一个步骤");
  14420. return;
  14421. }
  14422. this.toolIndex = this.toolIndex + 1;
  14423. this.tool =
  14424. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14425. this.taskCount
  14426. ].toolChoose[this.toolIndex];
  14427. }
  14428. this.$forceUpdate();
  14429. },
  14430. checkBz(index) {
  14431. this.toolIndex = index;
  14432. this.tool =
  14433. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14434. this.taskCount
  14435. ].toolChoose[this.toolIndex];
  14436. this.isUpdateToolDetail = false;
  14437. this.$forceUpdate();
  14438. },
  14439. nextOrpreSteps(t) {
  14440. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14441. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14442. return;
  14443. }
  14444. var b = this.chapInfoList.length - 1;
  14445. if (t == 0) {
  14446. if (this.courseType == 0) {
  14447. if (this.taskCount == 0) {
  14448. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  14449. if (this.IsLookOpen) {
  14450. if (
  14451. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  14452. ) {
  14453. if (
  14454. this.courseDetail.userid != this.userid &&
  14455. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14456. ) {
  14457. this.$message.error("任务未解锁");
  14458. } else {
  14459. this.$message.error("上一任务未解锁");
  14460. }
  14461. return;
  14462. }
  14463. }
  14464. this.navList[this.courseType].isOpen = false;
  14465. this.courseType = b;
  14466. this.taskCount =
  14467. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14468. .length - 1;
  14469. this.navList[this.courseType].isOpen = true;
  14470. } else {
  14471. this.taskCount--;
  14472. }
  14473. } else {
  14474. if (this.taskCount == 0) {
  14475. this.navList[this.courseType].isOpen = false;
  14476. this.courseType--;
  14477. this.taskCount =
  14478. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14479. .length - 1;
  14480. this.navList[this.courseType].isOpen = true;
  14481. } else {
  14482. this.taskCount--;
  14483. }
  14484. }
  14485. } else {
  14486. if (this.courseType == b) {
  14487. if (
  14488. this.taskCount ==
  14489. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14490. 1
  14491. ) {
  14492. this.navList[this.courseType].isOpen = false;
  14493. this.courseType = 0;
  14494. this.taskCount = 0;
  14495. this.navList[this.courseType].isOpen = true;
  14496. } else {
  14497. var bbb = parseInt(this.taskCount) + 1;
  14498. if (
  14499. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14500. .isLook &&
  14501. this.courseDetail.userid != this.userid &&
  14502. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14503. this.IsLookOpen
  14504. ) {
  14505. this.$message.error("任务未解锁");
  14506. return;
  14507. }
  14508. this.taskCount++;
  14509. if (this.IsLookOpen) {
  14510. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14511. this.taskCount
  14512. ].isLook = true;
  14513. this.addCourseState(3);
  14514. }
  14515. }
  14516. } else {
  14517. if (
  14518. this.taskCount ==
  14519. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14520. 1
  14521. ) {
  14522. var bbb = parseInt(this.courseType) + 1;
  14523. if (
  14524. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  14525. this.courseDetail.userid != this.userid &&
  14526. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14527. this.IsLookOpen
  14528. ) {
  14529. this.$message.error("任务未解锁");
  14530. return;
  14531. }
  14532. this.navList[this.courseType].isOpen = false;
  14533. this.courseType++;
  14534. this.taskCount = 0;
  14535. this.navList[this.courseType].isOpen = true;
  14536. } else {
  14537. var bbb = parseInt(this.taskCount) + 1;
  14538. if (
  14539. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14540. .isLook &&
  14541. this.courseDetail.userid != this.userid &&
  14542. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14543. this.IsLookOpen
  14544. ) {
  14545. this.$message.error("任务未解锁");
  14546. return;
  14547. }
  14548. this.taskCount++;
  14549. }
  14550. if (this.IsLookOpen) {
  14551. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14552. this.taskCount
  14553. ].isLook = true;
  14554. this.addCourseState(3);
  14555. }
  14556. }
  14557. }
  14558. document.scrollingElement.scrollTop = 0;
  14559. this.showType = 0;
  14560. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14561. this.toolIndex = null;
  14562. this.isNoHomeWork = false;
  14563. (this.studyJuri = [
  14564. {
  14565. content: "",
  14566. cover: [],
  14567. upVedio: [],
  14568. upFile: [],
  14569. },
  14570. ]),
  14571. (this.radio = []);
  14572. this.isClickNav = "";
  14573. this.selectPz();
  14574. this.getHomeWork();
  14575. this.getCourseDetail();
  14576. this.$forceUpdate();
  14577. },
  14578. openTask(s, n, i) {
  14579. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14580. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14581. return;
  14582. }
  14583. if (this.IsLookOpen) {
  14584. if (
  14585. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  14586. this.courseDetail.userid != this.userid &&
  14587. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14588. ) {
  14589. this.$message.error("任务未解锁");
  14590. return;
  14591. }
  14592. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  14593. if (
  14594. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  14595. .isLook
  14596. ) {
  14597. this.$message.error("上一任务未解锁");
  14598. return;
  14599. }
  14600. } else if (s > this.courseType) {
  14601. if (n > 0) {
  14602. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  14603. this.$message.error("上一任务未解锁");
  14604. return;
  14605. }
  14606. } else {
  14607. if (
  14608. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  14609. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  14610. ].isLook
  14611. ) {
  14612. this.$message.error("上一任务未解锁");
  14613. return;
  14614. }
  14615. }
  14616. }
  14617. }
  14618. this.courseType = s;
  14619. this.navId = i;
  14620. this.taskCount = n;
  14621. if (this.IsLookOpen) {
  14622. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14623. this.taskCount
  14624. ].isLook = true;
  14625. this.addCourseState(3);
  14626. }
  14627. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  14628. this.isCloseList[ci].isClose = 0;
  14629. }
  14630. this.showType = 0;
  14631. this.isNoHomeWork = false;
  14632. (this.studyJuri = [
  14633. {
  14634. content: "",
  14635. cover: [],
  14636. upVedio: [],
  14637. upFile: [],
  14638. },
  14639. ]),
  14640. (this.radio = []);
  14641. document.scrollingElement.scrollTop = 0;
  14642. this.toolIndex = null;
  14643. // setTimeout(() => {
  14644. // let a = document.getElementById(i);
  14645. // if (a.offsetTop - 110 == 0) {
  14646. // window.scrollTo(0, 0);
  14647. // } else {
  14648. // window.scrollTo(0, a.offsetTop);
  14649. // }
  14650. // }, 0);
  14651. this.selectPz();
  14652. this.getHomeWork();
  14653. this.getCourseDetail();
  14654. },
  14655. get(i) {
  14656. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  14657. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14658. return;
  14659. }
  14660. this.navList[i].isOpen = !this.navList[i].isOpen;
  14661. },
  14662. addQuestion() {
  14663. this.answerList.push({
  14664. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14665. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14666. });
  14667. let params = [
  14668. {
  14669. uid: this.userid,
  14670. cid: this.id,
  14671. stage: this.courseType,
  14672. task: this.taskCount,
  14673. tool: this.toolindex,
  14674. content: JSON.stringify(this.answerList),
  14675. type: 3,
  14676. },
  14677. ];
  14678. this.ajax
  14679. .post(this.$store.state.api + "addCourseWorks", params)
  14680. .then((res) => {
  14681. this.$message({
  14682. message: "提交成功",
  14683. type: "success",
  14684. });
  14685. this.answerList = [];
  14686. this.questionAnswer = "";
  14687. this.answerDialogVisible = false;
  14688. this.selectStudent();
  14689. this.selectSWorks();
  14690. this.selectSLook();
  14691. })
  14692. .catch((err) => {
  14693. this.$message.error("提交失败");
  14694. console.error(err);
  14695. });
  14696. },
  14697. addQuestionTeacher() {
  14698. this.answerList.push({
  14699. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14700. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14701. });
  14702. let params = [
  14703. {
  14704. uid: this.sStudent.userid,
  14705. cid: this.id,
  14706. stage: this.courseType,
  14707. task: this.taskCount,
  14708. tool: this.toolindex,
  14709. content: JSON.stringify(this.answerList),
  14710. type: 3,
  14711. ateacher: this.userid,
  14712. },
  14713. ];
  14714. this.ajax
  14715. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14716. .then((res) => {
  14717. this.$message({
  14718. message: "提交成功",
  14719. type: "success",
  14720. });
  14721. this.answerList = [];
  14722. this.questionAnswer = "";
  14723. this.answerDialogVisibleTeacher = false;
  14724. this.selectStudent();
  14725. this.selectSWorks();
  14726. this.selectSLook();
  14727. })
  14728. .catch((err) => {
  14729. this.$message.error("提交失败");
  14730. console.error(err);
  14731. });
  14732. },
  14733. refreshCourse() {
  14734. this.navList = [];
  14735. this.getCourseDetail(1);
  14736. },
  14737. setPz() {
  14738. if (this.ispzType == 4) {
  14739. this.ispzType = 0;
  14740. this.pzDialog = false;
  14741. return;
  14742. }
  14743. this.ispzType = 4;
  14744. this.pzDialog = true;
  14745. this.selectPz();
  14746. },
  14747. getCourseDetail(type, gindex) {
  14748. let loading;
  14749. if (type != 2 && type != 3) {
  14750. loading = this.$loading.service({
  14751. background: "rgba(255, 255, 255, 0.7)",
  14752. target: document.querySelector(".student_table"),
  14753. });
  14754. }
  14755. let params = {
  14756. courseId: this.id,
  14757. };
  14758. this.ajax
  14759. .get(this.$store.state.api + "selectCourseDetail3", params)
  14760. .then((res) => {
  14761. if (type != 2 && type != 3) {
  14762. loading.close();
  14763. if (
  14764. this.courseType >
  14765. JSON.parse(res.data[0][0].chapters).length - 1
  14766. ) {
  14767. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  14768. }
  14769. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  14770. .chapterInfo[0].taskJson;
  14771. var b = [
  14772. "AVI",
  14773. "NAVI",
  14774. "MPEG",
  14775. "ASF",
  14776. "MOV",
  14777. "WMV",
  14778. "3GP",
  14779. "RM",
  14780. "RMVB",
  14781. "FLV",
  14782. "F4V",
  14783. "H.264",
  14784. "H.265",
  14785. "REAL VIDEO",
  14786. "MKV",
  14787. "WebM",
  14788. "HDDVD",
  14789. "MP4",
  14790. "MPG",
  14791. "M4V",
  14792. "MGV",
  14793. "OGV",
  14794. "QTM",
  14795. "STR",
  14796. "AMC",
  14797. "DVX",
  14798. "EVO",
  14799. "DAT",
  14800. "OGG",
  14801. "OGM",
  14802. "MP3",
  14803. ];
  14804. let _chapterData = [];
  14805. for (var i = 0; i < a.length; i++) {
  14806. var c = a[i].chapterData;
  14807. this.vedio[i] = [];
  14808. this.textList[i] = [];
  14809. this.lineList[i] = [];
  14810. this.chapToolList[i] = [];
  14811. this.file[i] = [];
  14812. this.fileC[i] = [];
  14813. _chapterData[i] = c.filter((el) => {
  14814. return el.type != 12;
  14815. });
  14816. this.fileC[i] = c.filter((el) => {
  14817. return el.type == 12;
  14818. });
  14819. for (var j = 0; j < c.length; j++) {
  14820. if (c[j].type == 7) {
  14821. this.chapToolList[i].push(c[j]);
  14822. } else if (c[j].type == 8) {
  14823. this.lineList[i].push(c[j]);
  14824. } else if (c[j].type == 6) {
  14825. this.textList[i].push(c[j]);
  14826. } else {
  14827. if (
  14828. b.indexOf(
  14829. c[j].url
  14830. .split(".")
  14831. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  14832. ) != -1
  14833. ) {
  14834. this.vedio[i].push(c[j]);
  14835. } else {
  14836. this.file[i].push(c[j]);
  14837. }
  14838. }
  14839. }
  14840. var d = JSON.parse(JSON.stringify(this.playerOptions));
  14841. d.sources[0].src =
  14842. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  14843. this.playerO[i] = d;
  14844. }
  14845. this.courseDetail = res.data[0][0];
  14846. this.tcid = this.arrayToArray(
  14847. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  14848. this.tcid2 ? this.tcid2.split(",") : []
  14849. ).join(",");
  14850. console.log(this.tcid);
  14851. this.evalua = res.data[0][0].evaId;
  14852. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  14853. this.courseType
  14854. ];
  14855. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  14856. if (this.tcid && res.data[1].length) {
  14857. let _inviteA = [];
  14858. for (var ik = 0; ik < res.data[1].length; ik++) {
  14859. _inviteA.push({
  14860. cid: res.data[1][ik].classid,
  14861. ic: res.data[1][ik].code,
  14862. });
  14863. }
  14864. for (var ik = 0; ik < _inviteA.length; ik++) {
  14865. if (
  14866. this.arrayToArray(
  14867. _inviteA[ik].cid.split(","),
  14868. this.tcid.split(",")
  14869. ).length
  14870. ) {
  14871. this.inviteCode = _inviteA[ik].ic;
  14872. break;
  14873. }
  14874. }
  14875. }
  14876. for (var l = 0; l < this.chapInfoList.length; l++) {
  14877. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  14878. for (var m = 0; m < w.length; m++) {
  14879. w[m].id = l + "-" + m;
  14880. }
  14881. }
  14882. if (
  14883. _chapterData[this.taskCount].length &&
  14884. _chapterData[this.taskCount][0].type == 2
  14885. ) {
  14886. this.showType = 0;
  14887. } else {
  14888. if (_chapterData[this.taskCount].length > 0) {
  14889. let _url = _chapterData[this.taskCount][0].url;
  14890. if (_chapterData[this.taskCount][0].type == 8) {
  14891. this.showType = 2;
  14892. if (
  14893. _url.indexOf("https://") == -1 &&
  14894. _url.indexOf("http://") == -1
  14895. ) {
  14896. _url = "https://" + _url;
  14897. }
  14898. this.pptImgUrl1 = _url;
  14899. } else if (_chapterData[this.taskCount][0].type == 3) {
  14900. if (
  14901. _url
  14902. .split(".")
  14903. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14904. ) {
  14905. this.showType = 3;
  14906. this.pptImgUrl1 = _url;
  14907. } else if (
  14908. this.isAssetTypeAnImage(
  14909. _url
  14910. .split(".")
  14911. [_url.split(".").length - 1].toLocaleLowerCase()
  14912. )
  14913. ) {
  14914. this.showType = 4;
  14915. this.pptImgUrl1 = _url;
  14916. } else {
  14917. this.showType = 2;
  14918. this.pptImgUrl1 =
  14919. "https://view.officeapps.live.com/op/view.aspx?src=" +
  14920. _url;
  14921. }
  14922. } else if (_chapterData[this.taskCount][0].type == 13) {
  14923. this.showType = 4;
  14924. this.pptImgUrl1 = _url;
  14925. } else if (_chapterData[this.taskCount][0].type == 6) {
  14926. this.showType = 1;
  14927. this.text = this.textList[this.taskCount][0];
  14928. }
  14929. }
  14930. }
  14931. this.isClickNav = 0;
  14932. if (
  14933. !_chapterData[this.taskCount].length ||
  14934. _chapterData[this.taskCount][0].type == 12
  14935. ) {
  14936. this.isClickNav = "";
  14937. this.showType = "";
  14938. }
  14939. this.vChapterData = _chapterData;
  14940. if (
  14941. this.toolIndex == null &&
  14942. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14943. this.taskCount
  14944. ].toolChoose.length
  14945. ) {
  14946. this.toolIndex = 0;
  14947. this.tool =
  14948. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14949. this.taskCount
  14950. ].toolChoose[this.toolIndex];
  14951. }
  14952. } else if (type != 3) {
  14953. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  14954. .chapterInfo[0].taskJson;
  14955. var b = [
  14956. "AVI",
  14957. "NAVI",
  14958. "MPEG",
  14959. "ASF",
  14960. "MOV",
  14961. "WMV",
  14962. "3GP",
  14963. "RM",
  14964. "RMVB",
  14965. "FLV",
  14966. "F4V",
  14967. "H.264",
  14968. "H.265",
  14969. "REAL VIDEO",
  14970. "MKV",
  14971. "WebM",
  14972. "HDDVD",
  14973. "MP4",
  14974. "MPG",
  14975. "M4V",
  14976. "MGV",
  14977. "OGV",
  14978. "QTM",
  14979. "STR",
  14980. "AMC",
  14981. "DVX",
  14982. "EVO",
  14983. "DAT",
  14984. "OGG",
  14985. "OGM",
  14986. "MP3",
  14987. ];
  14988. let _chapterData = [];
  14989. for (var i = 0; i < a.length; i++) {
  14990. var c = a[i].chapterData;
  14991. this.vedio[i] = [];
  14992. this.textList[i] = [];
  14993. this.lineList[i] = [];
  14994. this.chapToolList[i] = [];
  14995. this.file[i] = [];
  14996. this.fileC[i] = [];
  14997. _chapterData[i] = c.filter((el) => {
  14998. return el.type != 12;
  14999. });
  15000. this.fileC[i] = c.filter((el) => {
  15001. return el.type == 12;
  15002. });
  15003. for (var j = 0; j < c.length; j++) {
  15004. if (c[j].type == 7) {
  15005. this.chapToolList[i].push(c[j]);
  15006. } else if (c[j].type == 8) {
  15007. this.lineList[i].push(c[j]);
  15008. } else if (c[j].type == 6) {
  15009. this.textList[i].push(c[j]);
  15010. } else {
  15011. if (
  15012. b.indexOf(
  15013. c[j].url
  15014. .split(".")
  15015. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15016. ) != -1
  15017. ) {
  15018. this.vedio[i].push(c[j]);
  15019. } else {
  15020. this.file[i].push(c[j]);
  15021. }
  15022. }
  15023. }
  15024. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15025. d.sources[0].src =
  15026. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15027. this.playerO[i] = d;
  15028. }
  15029. if (
  15030. _chapterData[this.taskCount].length &&
  15031. _chapterData[this.taskCount][0].type == 2
  15032. ) {
  15033. this.showType = 0;
  15034. } else {
  15035. if (_chapterData[this.taskCount].length > 0) {
  15036. let _url = _chapterData[this.taskCount][0].url;
  15037. if (_chapterData[this.taskCount][0].type == 8) {
  15038. this.showType = 2;
  15039. if (
  15040. _url.indexOf("https://") == -1 &&
  15041. _url.indexOf("http://") == -1
  15042. ) {
  15043. _url = "https://" + _url;
  15044. }
  15045. this.pptImgUrl1 = _url;
  15046. } else if (_chapterData[this.taskCount][0].type == 3) {
  15047. if (
  15048. _url
  15049. .split(".")
  15050. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15051. ) {
  15052. this.showType = 3;
  15053. this.pptImgUrl1 = _url;
  15054. } else if (
  15055. this.isAssetTypeAnImage(
  15056. _url
  15057. .split(".")
  15058. [_url.split(".").length - 1].toLocaleLowerCase()
  15059. )
  15060. ) {
  15061. this.showType = 4;
  15062. this.pptImgUrl1 = _url;
  15063. } else {
  15064. this.showType = 2;
  15065. this.pptImgUrl1 =
  15066. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15067. _url;
  15068. }
  15069. } else if (_chapterData[this.taskCount][0].type == 13) {
  15070. this.showType = 4;
  15071. this.pptImgUrl1 = _url;
  15072. } else if (_chapterData[this.taskCount][0].type == 6) {
  15073. this.showType = 1;
  15074. this.text = this.textList[this.taskCount][0];
  15075. }
  15076. }
  15077. }
  15078. this.isClickNav = 0;
  15079. if (
  15080. !_chapterData[this.taskCount].length ||
  15081. _chapterData[this.taskCount][0].type == 12
  15082. ) {
  15083. this.isClickNav = "";
  15084. this.showType = "";
  15085. }
  15086. this.vChapterData = _chapterData;
  15087. this.$forceUpdate();
  15088. }
  15089. this.isUpdateToolDetail = false;
  15090. this.$nextTick(() => {
  15091. setTimeout(() => {
  15092. this.checkEva();
  15093. }, 1000);
  15094. });
  15095. let _this = this;
  15096. if (_this.timer) {
  15097. clearInterval(_this.timer);
  15098. _this.timer = null;
  15099. }
  15100. _this.selectSWorks(gindex);
  15101. _this.selectStudent();
  15102. _this.selectSLook();
  15103. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15104. _this.setCTask();
  15105. }
  15106. if (_this.dialogVisibleGroup) {
  15107. _this.groupJson =
  15108. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15109. _this.taskCount
  15110. ].toolChoose[_this.toolindex].groupJson;
  15111. }
  15112. _this.timer = setInterval(function () {
  15113. _this.selectSWorks(gindex);
  15114. if (_this.tType == 4 || _this.ispzType == 4) {
  15115. _this.selectPz();
  15116. }
  15117. }, 5000);
  15118. })
  15119. .catch((err) => {
  15120. loading.close();
  15121. console.error(err);
  15122. });
  15123. },
  15124. getCourseGroup(gindex) {
  15125. let params = {
  15126. cid: this.id,
  15127. classid: this.tcid ? this.tcid : "1",
  15128. };
  15129. this.ajax
  15130. .get(this.$store.state.api + "getCourseGroup", params)
  15131. .then((res) => {
  15132. if (res.data && res.data[0].length) {
  15133. if (!this.isGroup) {
  15134. let courseGroup = JSON.parse(res.data[0][0].group);
  15135. courseGroup.group = courseGroup.group.filter((el) => {
  15136. el.works = [];
  15137. return el;
  15138. });
  15139. this.courseGroup = courseGroup;
  15140. let groupPerson = res.data[1];
  15141. let group = JSON.parse(res.data[0][0].group).group;
  15142. let courseGroupStudent = {};
  15143. let courseGroupStudentUid = {};
  15144. for (var i = 0; i < group.length; i++) {
  15145. courseGroupStudent[group[i].id] = [];
  15146. courseGroupStudentUid[group[i].id] = [];
  15147. for (var j = 0; j < groupPerson.length; j++) {
  15148. if (groupPerson[j].groupCid == group[i].id) {
  15149. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15150. courseGroupStudentUid[group[i].id].push(
  15151. groupPerson[j].userid
  15152. );
  15153. }
  15154. }
  15155. }
  15156. this.courseGroupStudent = courseGroupStudent;
  15157. this.courseGroupStudentUid = courseGroupStudentUid;
  15158. }
  15159. this.isGroup = true;
  15160. this.selectSWorks(gindex);
  15161. } else {
  15162. this.selectSWorks(gindex);
  15163. this.isGroup = false;
  15164. }
  15165. })
  15166. .catch((err) => {
  15167. // this.$message.error("网络不佳");
  15168. console.error(err);
  15169. });
  15170. },
  15171. setOperationTime() {
  15172. let _this = this;
  15173. if (_this.opertimer) {
  15174. clearInterval(_this.opertimer);
  15175. _this.opertimer = null;
  15176. }
  15177. _this.opertimer = setInterval(() => {
  15178. _this.setoTime("600");
  15179. }, 600000);
  15180. },
  15181. setoTime(time) {
  15182. let params = [
  15183. {
  15184. uid: this.userid,
  15185. cid: this.id,
  15186. type: "2",
  15187. time: time,
  15188. },
  15189. ];
  15190. this.ajax
  15191. .post(this.$store.state.api + "addOperationTimeT2", params)
  15192. .then((res) => {})
  15193. .catch((err) => {
  15194. console.error(err);
  15195. });
  15196. },
  15197. addPz(type, content) {
  15198. if (type == "1" && this.pzConText == "") {
  15199. this.$message.error("批注不能为空!");
  15200. return;
  15201. }
  15202. let params = [
  15203. {
  15204. cid: this.id,
  15205. uid: this.userid,
  15206. s: this.courseType,
  15207. t: this.taskCount,
  15208. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15209. type: type,
  15210. },
  15211. ];
  15212. this.ajax
  15213. .post(this.$store.state.api + "addPz2", params)
  15214. .then((res) => {
  15215. this.$message({
  15216. message: "添加成功",
  15217. type: "success",
  15218. });
  15219. this.pzConText = "";
  15220. this.addPzDialog = false;
  15221. this.selectPz();
  15222. })
  15223. .catch((err) => {
  15224. this.$message.error("添加失败");
  15225. console.error(err);
  15226. });
  15227. },
  15228. deletePz(id) {
  15229. this.$confirm("确定删除此批注吗?", "提示", {
  15230. confirmButtonText: "确定",
  15231. cancelButtonText: "取消",
  15232. type: "warning",
  15233. })
  15234. .then(() => {
  15235. let params = [
  15236. {
  15237. id: id,
  15238. },
  15239. ];
  15240. this.ajax
  15241. .post(this.$store.state.api + "deletePz", params)
  15242. .then((res) => {
  15243. this.$message({
  15244. message: "删除成功",
  15245. type: "success",
  15246. });
  15247. this.selectPz();
  15248. })
  15249. .catch((err) => {
  15250. this.$message.error("网络异常");
  15251. console.error(err);
  15252. });
  15253. })
  15254. .catch(() => {});
  15255. },
  15256. selectPz() {
  15257. let params = {
  15258. cid: this.id,
  15259. s: this.courseType,
  15260. t: this.taskCount,
  15261. };
  15262. this.ajax
  15263. .get(this.$store.state.api + "selectPzList", params)
  15264. .then((res) => {
  15265. this.pzList = res.data[0];
  15266. })
  15267. .catch((err) => {
  15268. console.error(err);
  15269. });
  15270. },
  15271. updateSLook() {
  15272. let params = {
  15273. sopen: this.sIsOpen == false ? 1 : 2,
  15274. cid: this.id,
  15275. };
  15276. this.ajax
  15277. .get(this.$store.state.api + "updateCourseSLook", params)
  15278. .then((res) => {
  15279. if (this.sIsOpen == true) {
  15280. this.$message({
  15281. message: "权限设置成功",
  15282. type: "success",
  15283. });
  15284. } else {
  15285. this.$message({
  15286. message: "权限关闭成功",
  15287. type: "success",
  15288. });
  15289. }
  15290. })
  15291. .catch((err) => {
  15292. console.error(err);
  15293. });
  15294. },
  15295. updateFollow() {
  15296. let params = [
  15297. {
  15298. sopen: this.IsFollow == false ? 1 : 2,
  15299. cid: this.id,
  15300. },
  15301. ];
  15302. this.ajax
  15303. .post(this.$store.state.api + "updateCourseFollow", params)
  15304. .then((res) => {
  15305. if (this.IsFollow == true) {
  15306. this.$message({
  15307. message: "开启成功",
  15308. type: "success",
  15309. });
  15310. } else {
  15311. this.$message({
  15312. message: "关闭成功",
  15313. type: "success",
  15314. });
  15315. }
  15316. this.setCTask();
  15317. })
  15318. .catch((err) => {
  15319. console.error(err);
  15320. });
  15321. },
  15322. setCTask() {
  15323. let params = [
  15324. {
  15325. sopen: this.courseType + "-" + this.taskCount,
  15326. cid: this.id,
  15327. },
  15328. ];
  15329. this.ajax
  15330. .post(this.$store.state.api + "updateCourseFollowC", params)
  15331. .then((res) => {})
  15332. .catch((err) => {
  15333. console.error(err);
  15334. });
  15335. },
  15336. updateLookOpen() {
  15337. let params = [
  15338. {
  15339. sopen: this.IsLookOpen == false ? 1 : 2,
  15340. cid: this.id,
  15341. },
  15342. ];
  15343. this.ajax
  15344. .post(this.$store.state.api + "updateCourseLookOpen", params)
  15345. .then((res) => {
  15346. if (this.IsLookOpen == true) {
  15347. // if (this.courseType != 0 && this.taskCount != 0) {
  15348. // this.openTask(0, 0, "0-0");
  15349. // }
  15350. this.$message({
  15351. message: "权限设置成功",
  15352. type: "success",
  15353. });
  15354. } else {
  15355. this.$message({
  15356. message: "权限关闭成功",
  15357. type: "success",
  15358. });
  15359. }
  15360. this.getCourseState(2);
  15361. })
  15362. .catch((err) => {
  15363. console.error(err);
  15364. });
  15365. },
  15366. selectSLook() {
  15367. let params = {
  15368. cid: this.id,
  15369. };
  15370. this.ajax
  15371. .get(this.$store.state.api + "selectCourseSLook", params)
  15372. .then((res) => {
  15373. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  15374. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  15375. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  15376. if (!this.IsLookOpen) {
  15377. this.setNavList();
  15378. } else {
  15379. this.getCourseState(1);
  15380. }
  15381. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15382. let _followC = res.data[0][0].followC.split("-");
  15383. if (
  15384. this.courseType != _followC[0] ||
  15385. this.taskCount != _followC[1]
  15386. ) {
  15387. this.navList[this.courseType].isOpen = false;
  15388. this.courseType = _followC[0];
  15389. this.navList[this.courseType].isOpen = true;
  15390. this.taskCount = parseInt(_followC[1]);
  15391. this.navId = res.data[0][0].followC;
  15392. this.getCourseDetail();
  15393. }
  15394. }
  15395. })
  15396. .catch((err) => {
  15397. console.error(err);
  15398. });
  15399. },
  15400. setNavList() {
  15401. if (this.navList.length == 0) {
  15402. this.navList = [];
  15403. for (var l = 0; l < this.chapInfoList.length; l++) {
  15404. var q = this.chapInfoList[l].dyName;
  15405. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15406. var e;
  15407. this.navList.push({
  15408. dyName: q,
  15409. isOpen: l === 0 ? true : false,
  15410. task: [],
  15411. });
  15412. for (var r = 0; r < w.length; r++) {
  15413. e = w[r].task;
  15414. if (this.chapInfoList[l].easy == 1) {
  15415. this.navList[l].task.push({
  15416. taskName: q,
  15417. id: l + "-" + r,
  15418. isLook: w[r].isLook,
  15419. });
  15420. } else {
  15421. this.navList[l].task.push({
  15422. taskName: e,
  15423. id: l + "-" + r,
  15424. isLook: w[r].isLook,
  15425. });
  15426. }
  15427. // this.navId = this.navId ? this.navId : l + "-" + r;
  15428. // this.navId = l + "-" + r;
  15429. }
  15430. }
  15431. this.navList[0].isOpen = false;
  15432. this.navList[this.courseType].isOpen = true;
  15433. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15434. } else {
  15435. this.setNavList2();
  15436. }
  15437. },
  15438. setNavList2() {
  15439. for (var l = 0; l < this.chapInfoList.length; l++) {
  15440. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15441. for (var r = 0; r < w.length; r++) {
  15442. this.navList[l].task[r].isLook = w[r].isLook;
  15443. }
  15444. }
  15445. if (
  15446. this.IsLookOpen &&
  15447. !this.navList[this.courseType].task[this.taskCount].isLook
  15448. ) {
  15449. this.openTask(0, 0, "0-0");
  15450. }
  15451. this.$forceUpdate();
  15452. },
  15453. getCourseState(type) {
  15454. let params = {
  15455. cid: this.id,
  15456. };
  15457. this.ajax
  15458. .get(this.$store.state.api + "getCourseState", params)
  15459. .then((res) => {
  15460. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  15461. this.chapInfoList = JSON.parse(res.data[0][0].state);
  15462. this.setNavList();
  15463. this.$forceUpdate();
  15464. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  15465. this.addCourseState(2);
  15466. } else {
  15467. this.addCourseState(1);
  15468. }
  15469. })
  15470. .catch((err) => {
  15471. console.error(err);
  15472. });
  15473. },
  15474. addCourseState(type) {
  15475. let _state = this.chapInfoList;
  15476. // this.courseType this.taskCount
  15477. if (type == 1 || type == 2) {
  15478. for (var i = 0; i < _state.length; i++) {
  15479. let el = _state[i].chapterInfo[0].taskJson;
  15480. for (var j = 0; j < el.length; j++) {
  15481. // if (i == 0 && j == 0) {
  15482. // el[j].isLook = true;
  15483. // } else {
  15484. // el[j].isLook = false;
  15485. // }
  15486. if (
  15487. this.courseType > i ||
  15488. (this.courseType == i && this.taskCount + 1 > j)
  15489. ) {
  15490. el[j].isLook = true;
  15491. } else {
  15492. el[j].isLook = false;
  15493. }
  15494. }
  15495. }
  15496. }
  15497. let params = [
  15498. {
  15499. cid: this.id,
  15500. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  15501. },
  15502. ];
  15503. this.ajax
  15504. .post(
  15505. this.$store.state.api +
  15506. (type == 1 ? "addCourseState" : "updateCourseSate"),
  15507. params
  15508. )
  15509. .then((res) => {
  15510. if (this.IsLookOpen) {
  15511. this.setNavList();
  15512. }
  15513. if (type == 3 && type == 2) {
  15514. this.getCourseState(1);
  15515. }
  15516. })
  15517. .catch((err) => {
  15518. console.error(err);
  15519. });
  15520. },
  15521. getHomeWork() {
  15522. let params = {
  15523. cid: this.id,
  15524. stage: this.courseType,
  15525. task: this.taskCount,
  15526. uid: this.userid,
  15527. };
  15528. this.ajax
  15529. .get(this.$store.state.api + "selectWork", params)
  15530. .then((res) => {
  15531. if (res.data[0].length > 0) {
  15532. this.studyJuri = JSON.parse(res.data[0][0].content);
  15533. this.isNoHomeWork = true;
  15534. }
  15535. })
  15536. .catch((err) => {
  15537. console.error(err);
  15538. });
  15539. },
  15540. isAssetTypeAnImage(ext) {
  15541. return (
  15542. [
  15543. "png",
  15544. "jpg",
  15545. "jpeg",
  15546. "bmp",
  15547. "gif",
  15548. "webp",
  15549. "psd",
  15550. "svg",
  15551. "tiff",
  15552. ].indexOf(ext) !== -1
  15553. );
  15554. },
  15555. switchVideo(media) {
  15556. this.playerO = {};
  15557. this.playerOptions.poster = "";
  15558. this.playerOptions.sources[0].src = media;
  15559. this.playerO = this.playerOptions;
  15560. },
  15561. onPlayerPlay() {},
  15562. lookVedio(u, i) {
  15563. this.isClickNav = "";
  15564. // this.playerOptions.sources[0].src = u;
  15565. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15566. d.sources[0].src = u;
  15567. this.playerO[this.taskCount] = d;
  15568. this.showType = 0;
  15569. // this.isClickNav = "video" + i;
  15570. this.isClickNav = i;
  15571. this.$forceUpdate();
  15572. },
  15573. lookText(i, t) {
  15574. this.isClickNav = "";
  15575. // this.text = this.textList[i][t];
  15576. this.text = this.vChapterData[i][t];
  15577. // this.dialogVisible1 = true;
  15578. this.showType = 1;
  15579. // this.isClickNav = "text" + t;
  15580. this.isClickNav = t;
  15581. },
  15582. lookTools(i, t) {
  15583. this.chapTools = this.chapToolList[i][t];
  15584. this.dialogVisible2 = true;
  15585. },
  15586. openFile(f) {
  15587. this.pptImgUrl = "";
  15588. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15589. if (
  15590. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  15591. -1
  15592. ) {
  15593. this.pptImgUrl =
  15594. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  15595. this.showPDF = false;
  15596. this.dialogVisible3 = true;
  15597. } else if (
  15598. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15599. ) {
  15600. this.pptImgUrl = f;
  15601. this.showPDF = true;
  15602. this.dialogVisible3 = true;
  15603. }
  15604. },
  15605. openTable(f) {
  15606. this.tableJson = JSON.parse(f.works);
  15607. this.$forceUpdate();
  15608. this.dialogVisibleTable2 = true;
  15609. },
  15610. openWord(f) {
  15611. this.tableJson = JSON.parse(f.works);
  15612. this.$forceUpdate();
  15613. this.dialogVisibleTable3 = true;
  15614. },
  15615. doUrl(url, i) {
  15616. this.isClickNav = "";
  15617. this.pptImgUrl1 = "";
  15618. this.showType = 2;
  15619. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  15620. url = "https://" + url;
  15621. }
  15622. this.pptImgUrl1 = url;
  15623. // this.isClickNav = "line" + i;
  15624. this.isClickNav = i;
  15625. },
  15626. checkPhoto(f, i) {
  15627. this.showType = 4;
  15628. this.pptImgUrl1 = f.url;
  15629. this.isClickNav = i;
  15630. this.$forceUpdate();
  15631. },
  15632. downFile(f, i) {
  15633. this.isClickNav = "";
  15634. this.pptImgUrl1 = "";
  15635. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  15636. if (
  15637. a.indexOf(
  15638. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  15639. ) != -1
  15640. ) {
  15641. this.pptImgUrl1 =
  15642. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  15643. // this.dialogVisible3 = true;
  15644. this.showType = 2;
  15645. } else if (
  15646. this.isAssetTypeAnImage(
  15647. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  15648. )
  15649. ) {
  15650. this.showType = 4;
  15651. this.pptImgUrl1 = f.url;
  15652. } else if (
  15653. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  15654. "PDF"
  15655. ) {
  15656. this.pptImgUrl1 = f.url;
  15657. // this.dialogVisible3 = true;
  15658. this.showType = 3;
  15659. } else {
  15660. window.open(this.file[i].url);
  15661. }
  15662. // this.isClickNav = "word" + i;
  15663. this.isClickNav = i;
  15664. },
  15665. downFileList(i) {
  15666. window.open(this.noImgList[i].url);
  15667. },
  15668. openAddWork() {
  15669. this.dialogVisible = true;
  15670. },
  15671. addBzWorks() {
  15672. let params = [
  15673. {
  15674. uid: this.userid,
  15675. cid: this.id,
  15676. stage: this.courseType,
  15677. task: this.taskCount,
  15678. tool: this.toolindex,
  15679. content: JSON.stringify(this.eScore),
  15680. type: 6,
  15681. },
  15682. ];
  15683. this.ajax
  15684. .post(this.$store.state.api + "addCourseWorks", params)
  15685. .then((res) => {
  15686. this.$message({
  15687. message: "提交成功",
  15688. type: "success",
  15689. });
  15690. this.eScore = { eBzText: "", eStar: [] };
  15691. this.studentEvalDialogVisible = false;
  15692. this.selectSWorks();
  15693. })
  15694. .catch((err) => {
  15695. this.$message.error("提交失败");
  15696. console.error(err);
  15697. });
  15698. },
  15699. addBzWorksTeacher() {
  15700. let params = [
  15701. {
  15702. uid: this.sStudent.userid,
  15703. cid: this.id,
  15704. stage: this.courseType,
  15705. task: this.taskCount,
  15706. tool: this.toolindex,
  15707. content: JSON.stringify(this.eScore),
  15708. type: 6,
  15709. },
  15710. ];
  15711. this.ajax
  15712. .post(this.$store.state.api + "addCourseWorks", params)
  15713. .then((res) => {
  15714. this.$message({
  15715. message: "提交成功",
  15716. type: "success",
  15717. });
  15718. this.eScore = { eBzText: "", eStar: [] };
  15719. this.studentEvalDialogVisibleTeacher = false;
  15720. this.selectSWorks();
  15721. })
  15722. .catch((err) => {
  15723. this.$message.error("提交失败");
  15724. console.error(err);
  15725. });
  15726. },
  15727. addStudentAsk() {
  15728. if (!this.radio.length) {
  15729. this.$message.error("请选择选项");
  15730. return;
  15731. }
  15732. for (var i = 0; i < this.askJson.askCount; i++) {
  15733. if (
  15734. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15735. (this.radio[i] !== 0 && !this.radio[i])
  15736. ) {
  15737. this.$message.error("请选择选项");
  15738. return;
  15739. }
  15740. }
  15741. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  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.askList).replaceAll(/%/g, "%25"),
  15750. type: 2,
  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.askList = [];
  15761. this.dialogVisible5 = false;
  15762. this.selectStudent();
  15763. this.selectSWorks();
  15764. this.selectSLook();
  15765. })
  15766. .catch((err) => {
  15767. this.$message.error("提交失败");
  15768. console.error(err);
  15769. });
  15770. },
  15771. addStudentAskTeacher() {
  15772. if (!this.radio.length) {
  15773. this.$message.error("请选择选项");
  15774. return;
  15775. }
  15776. for (var i = 0; i < this.askJson.askCount; i++) {
  15777. if (
  15778. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15779. (this.radio[i] !== 0 && !this.radio[i])
  15780. ) {
  15781. this.$message.error("请选择选项");
  15782. return;
  15783. }
  15784. }
  15785. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  15786. let params = [
  15787. {
  15788. uid: this.sStudent.userid,
  15789. cid: this.id,
  15790. stage: this.courseType,
  15791. task: this.taskCount,
  15792. tool: this.toolindex,
  15793. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15794. type: 2,
  15795. },
  15796. ];
  15797. this.ajax
  15798. .post(this.$store.state.api + "addCourseWorks", params)
  15799. .then((res) => {
  15800. this.$message({
  15801. message: "提交成功",
  15802. type: "success",
  15803. });
  15804. this.askList = [];
  15805. this.dialogVisible5Teacher = false;
  15806. this.selectStudent();
  15807. this.selectSWorks();
  15808. this.selectSLook();
  15809. })
  15810. .catch((err) => {
  15811. this.$message.error("提交失败");
  15812. console.error(err);
  15813. });
  15814. },
  15815. addStudentTest() {
  15816. if (!this.radio.length) {
  15817. this.$message.error("请选择选项");
  15818. return;
  15819. }
  15820. for (var i = 0; i < this.testJson.testCount; i++) {
  15821. if (
  15822. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15823. (this.radio[i] !== 0 && !this.radio[i])
  15824. ) {
  15825. this.$message.error("请选择选项");
  15826. return;
  15827. }
  15828. }
  15829. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15830. let params = [
  15831. {
  15832. uid: this.userid,
  15833. cid: this.id,
  15834. stage: this.courseType,
  15835. task: this.taskCount,
  15836. tool: this.toolindex,
  15837. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15838. type: 8,
  15839. },
  15840. ];
  15841. this.ajax
  15842. .post(this.$store.state.api + "addCourseWorks", params)
  15843. .then((res) => {
  15844. this.$message({
  15845. message: "提交成功",
  15846. type: "success",
  15847. });
  15848. this.askList = [];
  15849. this.dialogVisibleChoice = false;
  15850. this.selectStudent();
  15851. this.selectSWorks();
  15852. this.selectSLook();
  15853. })
  15854. .catch((err) => {
  15855. this.$message.error("提交失败");
  15856. console.error(err);
  15857. });
  15858. },
  15859. addStudentTestTeacher() {
  15860. if (!this.radio.length) {
  15861. this.$message.error("请选择选项");
  15862. return;
  15863. }
  15864. for (var i = 0; i < this.testJson.testCount; i++) {
  15865. if (
  15866. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  15867. (this.radio[i] !== 0 && !this.radio[i])
  15868. ) {
  15869. this.$message.error("请选择选项");
  15870. return;
  15871. }
  15872. }
  15873. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  15874. let params = [
  15875. {
  15876. uid: this.sStudent.userid,
  15877. cid: this.id,
  15878. stage: this.courseType,
  15879. task: this.taskCount,
  15880. tool: this.toolindex,
  15881. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  15882. type: 8,
  15883. },
  15884. ];
  15885. this.ajax
  15886. .post(this.$store.state.api + "addCourseWorks", params)
  15887. .then((res) => {
  15888. this.$message({
  15889. message: "提交成功",
  15890. type: "success",
  15891. });
  15892. this.askList = [];
  15893. this.dialogVisibleChoiceTeacher = false;
  15894. this.selectStudent();
  15895. this.selectSWorks();
  15896. this.selectSLook();
  15897. })
  15898. .catch((err) => {
  15899. this.$message.error("提交失败");
  15900. console.error(err);
  15901. });
  15902. },
  15903. addWork() {
  15904. if (this.studyJuri[0].content == "") {
  15905. this.$message.error("请将信息填写完整");
  15906. return;
  15907. } else if (this.studyJuri[0].cover.length == 0) {
  15908. this.$message.error("请将信息填写完整");
  15909. return;
  15910. } else if (this.studyJuri[0].upVedio.length == 0) {
  15911. this.$message.error("请将信息填写完整");
  15912. return;
  15913. }
  15914. if (this.isNoHomeWork) {
  15915. this.$confirm(
  15916. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  15917. "提示",
  15918. {
  15919. confirmButtonText: "确定",
  15920. cancelButtonText: "取消",
  15921. type: "warning",
  15922. }
  15923. )
  15924. .then(() => {
  15925. let params = [
  15926. {
  15927. uid: this.userid,
  15928. cid: this.id,
  15929. stage: this.courseType,
  15930. task: this.taskCount,
  15931. content: JSON.stringify(this.studyJuri),
  15932. },
  15933. ];
  15934. this.ajax
  15935. .post(this.$store.state.api + "addWorks", params)
  15936. .then((res) => {
  15937. this.$message({
  15938. message: "提交成功",
  15939. type: "success",
  15940. });
  15941. this.isNoHomeWork = true;
  15942. this.dialogVisible = false;
  15943. })
  15944. .catch((err) => {
  15945. this.$message.error("提交失败");
  15946. console.error(err);
  15947. });
  15948. })
  15949. .catch(() => {});
  15950. } else {
  15951. let params = [
  15952. {
  15953. uid: this.userid,
  15954. cid: this.id,
  15955. stage: this.courseType,
  15956. task: this.taskCount,
  15957. content: JSON.stringify(this.studyJuri),
  15958. },
  15959. ];
  15960. this.ajax
  15961. .post(this.$store.state.api + "addWorks", params)
  15962. .then((res) => {
  15963. this.$message({
  15964. message: "提交成功",
  15965. type: "success",
  15966. });
  15967. this.isNoHomeWork = true;
  15968. this.dialogVisible = false;
  15969. })
  15970. .catch((err) => {
  15971. this.$message.error("提交失败");
  15972. console.error(err);
  15973. });
  15974. }
  15975. },
  15976. selectCount() {
  15977. let params = {
  15978. cid: this.id,
  15979. chid: this.courseType,
  15980. uid: this.userid,
  15981. };
  15982. this.ajax
  15983. .get(this.$store.state.api + "selectToolsCount", params)
  15984. .then((res) => {
  15985. for (var i = 0; i < res.data[0].length; i++) {
  15986. if (res.data[0][i].tools == 1) {
  15987. this.wbCount = res.data[0][i].count;
  15988. } else if (res.data[0][i].tools == 2) {
  15989. this.wordCount = res.data[0][i].count;
  15990. } else if (res.data[0][i].tools == 3) {
  15991. this.mindCount = res.data[0][i].count;
  15992. } else if (res.data[0][i].tools == 4) {
  15993. this.askCount = res.data[0][i].count;
  15994. } else if (res.data[0][i].tools == 6) {
  15995. this.noteCount = res.data[0][i].count;
  15996. } else if (res.data[0][i].tools == 7) {
  15997. this.mindNetWorkCount = res.data[0][i].count;
  15998. } else if (res.data[0][i].tools == 8) {
  15999. this.libraryCount = res.data[0][i].count;
  16000. } else if (res.data[0][i].tools == 16) {
  16001. this.workCount = res.data[0][i].count;
  16002. } else if (res.data[0][i].tools == 10) {
  16003. this.timeCount = res.data[0][i].count;
  16004. } else if (res.data[0][i].tools == 15) {
  16005. this.answerCount = res.data[0][i].count;
  16006. } else if (res.data[0][i].tools == 18) {
  16007. this.trainCount = res.data[0][i].count;
  16008. }
  16009. }
  16010. })
  16011. .catch((err) => {
  16012. console.error(err);
  16013. });
  16014. },
  16015. openTools(t, i, index, c, sName) {
  16016. var z = JSON.parse(c);
  16017. this.noteName = sName;
  16018. if (t == 4) {
  16019. this.radio = [];
  16020. this.isAnswer = false;
  16021. let b = z[0].anwer;
  16022. this.radio = b;
  16023. this.askJson = z[0].askJson;
  16024. this.isAnswer = true;
  16025. this.dialogVisible5 = true;
  16026. } else if (t == 45) {
  16027. this.radio = [];
  16028. this.isAnswer = false;
  16029. let b = z[0].anwer;
  16030. this.radio = b;
  16031. this.testJson = z[0].testJson;
  16032. this.isAnswer = true;
  16033. this.dialogVisibleChoice = true;
  16034. }
  16035. // else if (t == 15) {
  16036. // this.answerQ = "";
  16037. // this.questionAnswer = "";
  16038. // this.answerQ = z[0].answerTitle;
  16039. // this.questionAnswer = z[0].answer;
  16040. // this.answerDialogVisible = true;
  16041. // }
  16042. },
  16043. fastText(p, t) {
  16044. if (t == 1) {
  16045. this.commentText += p;
  16046. } else {
  16047. this.eScore.eBzText += p;
  16048. }
  16049. },
  16050. addTools(t, i, index) {
  16051. var a = 0;
  16052. // this.taskCount = index;
  16053. this.toolindex = i;
  16054. if (t == 1) {
  16055. if (this.wbCount > 0) {
  16056. this.updateCount(this.wbCount, t);
  16057. } else {
  16058. this.wbCount++;
  16059. a = this.wbCount;
  16060. this.toolsCount(a, t);
  16061. }
  16062. window.parent.postMessage(
  16063. {
  16064. tools: "1",
  16065. cid: this.id,
  16066. stage: this.courseType,
  16067. task: this.taskCount,
  16068. tool: i,
  16069. },
  16070. "*"
  16071. );
  16072. } else if (t == 2) {
  16073. if (this.wordCount > 0) {
  16074. this.updateCount(this.wordCount, t);
  16075. } else {
  16076. this.wordCount++;
  16077. a = this.wordCount;
  16078. this.toolsCount(a, t);
  16079. }
  16080. window.parent.postMessage({ tools: "2" }, "*");
  16081. } else if (t == 3) {
  16082. if (this.mindCount > 0) {
  16083. this.updateCount(this.mindCount, t);
  16084. } else {
  16085. this.mindCount++;
  16086. a = this.mindCount;
  16087. this.toolsCount(a, t);
  16088. }
  16089. window.parent.postMessage(
  16090. {
  16091. tools: "3",
  16092. cid: this.id,
  16093. stage: this.courseType,
  16094. task: this.taskCount,
  16095. tool: i,
  16096. },
  16097. "*"
  16098. );
  16099. } else if (t == 4) {
  16100. this.radio = [];
  16101. this.noteName = "";
  16102. this.isAnswer = false;
  16103. if (this.askCount > 0) {
  16104. this.updateCount(this.askCount, t);
  16105. } else {
  16106. this.askCount++;
  16107. a = this.askCount;
  16108. this.toolsCount(a, t);
  16109. }
  16110. this.askJson.askJson =
  16111. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16112. index
  16113. ].toolChoose[i].askJson;
  16114. this.askJson.askTitle =
  16115. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16116. index
  16117. ].toolChoose[i].askTitle;
  16118. this.askJson.askCount =
  16119. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16120. index
  16121. ].toolChoose[i].askCount;
  16122. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16123. if (this.askJson.askJson[k].type == "2") {
  16124. this.radio.push([]);
  16125. } else {
  16126. this.radio.push("");
  16127. }
  16128. }
  16129. this.dialogVisible5 = true;
  16130. // window.parent.postMessage({ tools: "4" }, "*");
  16131. } else if (t == 45) {
  16132. this.noteName = "";
  16133. this.radio = [];
  16134. this.isAnswer = false;
  16135. if (this.askCount > 0) {
  16136. this.updateCount(this.askCount, t);
  16137. } else {
  16138. this.askCount++;
  16139. a = this.askCount;
  16140. this.toolsCount(a, t);
  16141. }
  16142. this.testJson =
  16143. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16144. index
  16145. ].toolChoose[i].testJson;
  16146. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16147. if (this.testJson.testJson[k].type == "2") {
  16148. this.radio.push([]);
  16149. } else {
  16150. this.radio.push("");
  16151. }
  16152. }
  16153. this.dialogVisibleChoice = true;
  16154. // window.parent.postMessage({ tools: "4" }, "*");
  16155. } else if (t == 5) {
  16156. if (this.scoreCount > 0) {
  16157. this.updateCount(this.scoreCount, t);
  16158. } else {
  16159. this.scoreCount++;
  16160. a = this.scoreCount;
  16161. this.toolsCount(a, t);
  16162. }
  16163. this.dialogVisible4 = true;
  16164. // window.parent.postMessage({ tools: "5" }, "*");
  16165. } else if (t == 6) {
  16166. if (this.noteCount > 0) {
  16167. this.updateCount(this.noteCount, t);
  16168. } else {
  16169. this.noteCount++;
  16170. a = this.noteCount;
  16171. this.toolsCount(a, t);
  16172. }
  16173. window.parent.postMessage(
  16174. {
  16175. tools: "6",
  16176. cid: this.id,
  16177. stage: this.courseType,
  16178. task: this.taskCount,
  16179. tool: i,
  16180. },
  16181. "*"
  16182. );
  16183. } else if (t == 7) {
  16184. if (this.mindNetWorkCount > 0) {
  16185. this.updateCount(this.mindNetWorkCount, t);
  16186. } else {
  16187. this.mindNetWorkCount++;
  16188. a = this.mindNetWorkCount;
  16189. this.toolsCount(a, t);
  16190. }
  16191. window.parent.postMessage(
  16192. {
  16193. tools: "7",
  16194. cid: this.id,
  16195. stage: this.courseType,
  16196. task: this.taskCount,
  16197. tool: i,
  16198. },
  16199. "*"
  16200. );
  16201. } else if (t == 16) {
  16202. if (this.workCount > 0) {
  16203. this.updateCount(this.workCount, t);
  16204. } else {
  16205. this.workCount++;
  16206. a = this.workCount;
  16207. this.toolsCount(a, t);
  16208. }
  16209. this.dialogVisible = true;
  16210. } else if (t == 50) {
  16211. if (this.tType == 2) {
  16212. this.$message.error("不支持学生使用");
  16213. return;
  16214. }
  16215. this.plworkFile = [];
  16216. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16217. if (!this.uploadCid) {
  16218. this.$message.error(
  16219. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16220. );
  16221. return;
  16222. }
  16223. this.selectUploadStudent(2);
  16224. } else if (t == 8) {
  16225. if (this.libraryCount > 0) {
  16226. this.updateCount(this.libraryCount, t);
  16227. } else {
  16228. this.libraryCount++;
  16229. a = this.libraryCount;
  16230. this.toolsCount(a, t);
  16231. }
  16232. window.parent.postMessage({ tools: "8" }, "*");
  16233. } else if (t == 17) {
  16234. if (this.libraryCount > 0) {
  16235. this.updateCount(this.libraryCount, t);
  16236. } else {
  16237. this.libraryCount++;
  16238. a = this.libraryCount;
  16239. this.toolsCount(a, t);
  16240. }
  16241. window.parent.postMessage({ tools: "17" }, "*");
  16242. } else if (t == 18) {
  16243. if (this.trainCount > 0) {
  16244. this.updateCount(this.trainCount, t);
  16245. } else {
  16246. this.trainCount++;
  16247. a = this.trainCount;
  16248. this.toolsCount(a, t);
  16249. }
  16250. window.parent.postMessage({ tools: "18" }, "*");
  16251. } else if (t == 10) {
  16252. if (this.timeCount > 0) {
  16253. this.updateCount(this.timeCount, t);
  16254. } else {
  16255. this.timeCount++;
  16256. a = this.timeCount;
  16257. this.toolsCount(a, t);
  16258. }
  16259. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  16260. .taskJson[index].toolChoose[i].preTime
  16261. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16262. .toolChoose[i].preTime
  16263. : "";
  16264. this.timeDialogVisible = true;
  16265. } else if (t == 15) {
  16266. this.answerQ = "";
  16267. this.questionAnswer = "";
  16268. if (this.answerCount > 0) {
  16269. this.updateCount(this.answerCount, t);
  16270. } else {
  16271. this.answerCount++;
  16272. a = this.answerCount;
  16273. this.toolsCount(a, t);
  16274. }
  16275. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16276. .taskJson[index].toolChoose[i].answerQ
  16277. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16278. .toolChoose[i].answerQ
  16279. : "";
  16280. this.answerDialogVisible = true;
  16281. } else if (t == 21) {
  16282. window.parent.postMessage({ tools: "21" }, "*");
  16283. } else if (t == 22) {
  16284. window.parent.postMessage({ tools: "22" }, "*");
  16285. } else if (t == 23) {
  16286. window.parent.postMessage({ tools: "23" }, "*");
  16287. } else if (t == 24) {
  16288. window.parent.postMessage({ tools: "24" }, "*");
  16289. } else if (t == 25) {
  16290. window.parent.postMessage({ tools: "25" }, "*");
  16291. } else if (t == 31) {
  16292. window.parent.postMessage({ tools: "31" }, "*");
  16293. } else if (t == 28) {
  16294. window.parent.postMessage({ tools: "28" }, "*");
  16295. } else if (t == 37) {
  16296. window.parent.postMessage({ tools: "37" }, "*");
  16297. } else if (t == 38) {
  16298. window.parent.postMessage({ tools: "38" }, "*");
  16299. } else if (t == 39) {
  16300. window.parent.postMessage({ tools: "39" }, "*");
  16301. } else if (t == 32) {
  16302. window.parent.postMessage({ tools: "32" }, "*");
  16303. } else if (t == 57) {
  16304. // window.parent.postMessage({ tools: "57" }, "*");
  16305. window.parent.postMessage(
  16306. {
  16307. tools: "57u",
  16308. cid: this.id,
  16309. stage: this.courseType,
  16310. task: this.taskCount,
  16311. tool: i,
  16312. },
  16313. "*"
  16314. );
  16315. } else if (t == 58) {
  16316. window.parent.postMessage({ tools: "58" }, "*");
  16317. } else if (t == 59) {
  16318. window.parent.postMessage({ tools: "59" }, "*");
  16319. } else if (t == 60) {
  16320. window.parent.postMessage({ tools: "60" }, "*");
  16321. } else if (t == 61) {
  16322. window.parent.postMessage({ tools: "61" }, "*");
  16323. } else if (t == 63) {
  16324. window.parent.postMessage({ tools: "63" }, "*");
  16325. } else if (t == 26) {
  16326. window.parent.postMessage(
  16327. {
  16328. tools: "26",
  16329. cid: this.id,
  16330. stage: this.courseType,
  16331. task: this.taskCount,
  16332. tool: i,
  16333. },
  16334. "*"
  16335. );
  16336. } else if (t == 40) {
  16337. if (this.evalCount > 0) {
  16338. this.updateCount(this.evalCount, t);
  16339. } else {
  16340. this.evalCount++;
  16341. a = this.evalCount;
  16342. this.toolsCount(a, t);
  16343. }
  16344. this.eScore = { eBzText: "", eStar: [] };
  16345. if (this.worksStudent[i].length) {
  16346. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16347. if (this.userid == this.worksStudent[i][k].userid) {
  16348. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16349. this.rateJson =
  16350. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16351. index
  16352. ].toolChoose[i].rateJson;
  16353. break;
  16354. } else {
  16355. this.rateJson =
  16356. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16357. index
  16358. ].toolChoose[i].rateJson;
  16359. }
  16360. }
  16361. } else {
  16362. this.rateJson =
  16363. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16364. index
  16365. ].toolChoose[i].rateJson;
  16366. }
  16367. this.isStar = false;
  16368. this.studentEvalDialogVisible = true;
  16369. } else if (t == 41) {
  16370. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16371. .taskJson[index].toolChoose[i].selectJson
  16372. ? JSON.parse(
  16373. JSON.stringify(
  16374. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16375. index
  16376. ].toolChoose[i].selectJson
  16377. )
  16378. )
  16379. : { url: "", select: [], answer: [] };
  16380. if (this.worksStudent[i].length) {
  16381. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16382. if (this.userid == this.worksStudent[i][k].userid) {
  16383. var a = this.worksStudent[i][k].works.split(",");
  16384. for (var ki = 0; ki < a.length; ki++) {
  16385. a[ki] = parseInt(a[ki]);
  16386. }
  16387. this.selectAnswer = {
  16388. answer: a,
  16389. stu: this.worksStudent[i][k].sName,
  16390. };
  16391. break;
  16392. } else {
  16393. this.selectAnswer = { answer: [], stu: "" };
  16394. }
  16395. }
  16396. } else {
  16397. this.selectAnswer = { answer: [], stu: "" };
  16398. }
  16399. this.isSelect = false;
  16400. this.dialogVisibleSelect = true;
  16401. } else if (t == 44) {
  16402. window.parent.postMessage({ tools: "44" }, "*");
  16403. } else if (t == 47) {
  16404. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16405. .taskJson[index].toolChoose[i].sentenceList
  16406. ? JSON.parse(
  16407. JSON.stringify(
  16408. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16409. index
  16410. ].toolChoose[i].sentenceList
  16411. )
  16412. )
  16413. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16414. for (var q = 0; q < this.sentenceList.length; q++) {
  16415. this.sentenceList[q].chooseSenList = [];
  16416. this.sentenceList[q].addChangeSen = [];
  16417. this.sentenceList[q].addChangeSen = JSON.parse(
  16418. JSON.stringify(this.sentenceList[q].addSentence)
  16419. );
  16420. this.sentenceList[q].chooseSenList.length =
  16421. this.sentenceList[q].rightAnswer.length;
  16422. }
  16423. this.dialogVisibleSentence = true;
  16424. } else if (t == 48) {
  16425. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16426. .taskJson[index].toolChoose[i].tableJson
  16427. ? JSON.parse(
  16428. JSON.stringify(
  16429. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16430. index
  16431. ].toolChoose[i].tableJson
  16432. )
  16433. )
  16434. : { text: "" };
  16435. if (this.worksStudent[i].length) {
  16436. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16437. if (this.userid == this.worksStudent[i][k].userid) {
  16438. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16439. break;
  16440. }
  16441. }
  16442. }
  16443. this.dialogVisibleTable = true;
  16444. } else if (t == 52) {
  16445. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16446. .taskJson[index].toolChoose[i].wordJson
  16447. ? JSON.parse(
  16448. JSON.stringify(
  16449. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16450. index
  16451. ].toolChoose[i].wordJson
  16452. )
  16453. )
  16454. : { text: "" };
  16455. this.dialogVisibleWord = true;
  16456. } else if (t == 49) {
  16457. this.groupJson =
  16458. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16459. index
  16460. ].toolChoose[i].groupJson;
  16461. this.dialogVisibleGroup = true;
  16462. } else if (t == 62) {
  16463. this.videoJson =
  16464. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16465. index
  16466. ].toolChoose[i].videoJson;
  16467. this.dialogVisibleVideo = true;
  16468. }
  16469. },
  16470. teacherWorkSubmit(t, i, index, s) {
  16471. this.sStudent = s;
  16472. this.sTool = t;
  16473. this.toolindex = i;
  16474. if (this.tType !== "1" && this.tType !== "4") {
  16475. return;
  16476. }
  16477. if (t == 16 || t == 32 || t == 50) {
  16478. this.dialogVisibleWorks = true; //作业提交
  16479. } else if (t == 15) {
  16480. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16481. .taskJson[index].toolChoose[i].answerQ
  16482. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16483. .toolChoose[i].answerQ
  16484. : "";
  16485. this.questionAnswer = "";
  16486. this.answerDialogVisibleTeacher = true; //问答
  16487. } else if (t == 52) {
  16488. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16489. .taskJson[index].toolChoose[i].wordJson
  16490. ? JSON.parse(
  16491. JSON.stringify(
  16492. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16493. index
  16494. ].toolChoose[i].wordJson
  16495. )
  16496. )
  16497. : { text: "" };
  16498. this.dialogVisibleWordTeacher = true; //文档
  16499. } else if (t == 4) {
  16500. this.radio = [];
  16501. this.noteName = "";
  16502. this.isAnswer = false;
  16503. if (this.askCount > 0) {
  16504. this.updateCount(this.askCount, t);
  16505. } else {
  16506. this.askCount++;
  16507. a = this.askCount;
  16508. this.toolsCount(a, t);
  16509. }
  16510. if (!this.dialogVisible2) {
  16511. this.askJson.askJson =
  16512. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16513. index
  16514. ].toolChoose[i].askJson;
  16515. this.askJson.askTitle =
  16516. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16517. index
  16518. ].toolChoose[i].askTitle;
  16519. this.askJson.askCount =
  16520. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16521. index
  16522. ].toolChoose[i].askCount;
  16523. } else {
  16524. this.askJson.askJson = this.chapTools.askJson.askJson;
  16525. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16526. this.askJson.askCount = this.chapTools.askJson.askCount;
  16527. }
  16528. this.dialogVisible5Teacher = true;
  16529. } else if (t == 45) {
  16530. this.noteName = "";
  16531. this.radio = [];
  16532. this.isAnswer = false;
  16533. if (this.askCount > 0) {
  16534. this.updateCount(this.askCount, t);
  16535. } else {
  16536. this.askCount++;
  16537. a = this.askCount;
  16538. this.toolsCount(a, t);
  16539. }
  16540. this.testJson =
  16541. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16542. index
  16543. ].toolChoose[i].testJson;
  16544. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16545. if (this.testJson.testJson[k].type == "2") {
  16546. this.radio.push([]);
  16547. } else {
  16548. this.radio.push("");
  16549. }
  16550. }
  16551. this.dialogVisibleChoiceTeacher = true;
  16552. } else if (t == 41) {
  16553. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16554. .taskJson[index].toolChoose[i].selectJson
  16555. ? JSON.parse(
  16556. JSON.stringify(
  16557. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16558. index
  16559. ].toolChoose[i].selectJson
  16560. )
  16561. )
  16562. : { url: "", select: [], answer: [] };
  16563. if (this.worksStudent[i].length) {
  16564. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16565. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16566. var a = this.worksStudent[i][k].works.split(",");
  16567. for (var ki = 0; ki < a.length; ki++) {
  16568. a[ki] = parseInt(a[ki]);
  16569. }
  16570. this.selectAnswer = {
  16571. answer: a,
  16572. stu: this.worksStudent[i][k].sName,
  16573. };
  16574. break;
  16575. } else {
  16576. this.selectAnswer = { answer: [], stu: "" };
  16577. }
  16578. }
  16579. } else {
  16580. this.selectAnswer = { answer: [], stu: "" };
  16581. }
  16582. this.isSelect = false;
  16583. this.dialogVisibleSelectTeacher = true;
  16584. } else if (t == 47) {
  16585. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16586. .taskJson[index].toolChoose[i].sentenceList
  16587. ? JSON.parse(
  16588. JSON.stringify(
  16589. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16590. index
  16591. ].toolChoose[i].sentenceList
  16592. )
  16593. )
  16594. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16595. for (var q = 0; q < this.sentenceList.length; q++) {
  16596. this.sentenceList[q].chooseSenList = [];
  16597. this.sentenceList[q].addChangeSen = [];
  16598. this.sentenceList[q].addChangeSen = JSON.parse(
  16599. JSON.stringify(this.sentenceList[q].addSentence)
  16600. );
  16601. this.sentenceList[q].chooseSenList.length =
  16602. this.sentenceList[q].rightAnswer.length;
  16603. }
  16604. this.dialogVisibleSentenceTeacher = true;
  16605. } else if (t == 48) {
  16606. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16607. .taskJson[index].toolChoose[i].tableJson
  16608. ? JSON.parse(
  16609. JSON.stringify(
  16610. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16611. index
  16612. ].toolChoose[i].tableJson
  16613. )
  16614. )
  16615. : { text: "" };
  16616. if (this.worksStudent[i].length) {
  16617. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16618. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16619. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16620. break;
  16621. }
  16622. }
  16623. }
  16624. this.dialogVisibleTableTeacher = true;
  16625. } else if (t == 40) {
  16626. if (this.evalCount > 0) {
  16627. this.updateCount(this.evalCount, t);
  16628. } else {
  16629. this.evalCount++;
  16630. a = this.evalCount;
  16631. this.toolsCount(a, t);
  16632. }
  16633. this.eScore = { eBzText: "", eStar: [] };
  16634. if (this.worksStudent[i].length) {
  16635. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16636. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  16637. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16638. this.rateJson =
  16639. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16640. index
  16641. ].toolChoose[i].rateJson;
  16642. break;
  16643. } else {
  16644. this.rateJson =
  16645. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16646. index
  16647. ].toolChoose[i].rateJson;
  16648. }
  16649. }
  16650. } else {
  16651. this.rateJson =
  16652. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16653. index
  16654. ].toolChoose[i].rateJson;
  16655. }
  16656. this.isStar = false;
  16657. this.studentEvalDialogVisibleTeacher = true;
  16658. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  16659. window.parent.postMessage(
  16660. {
  16661. tools: t + "teacher",
  16662. cid: this.id,
  16663. stage: this.courseType,
  16664. task: this.taskCount,
  16665. tool: i,
  16666. student: this.sStudent,
  16667. },
  16668. "*"
  16669. );
  16670. }
  16671. },
  16672. openCocoPi(tool, i, uid, uname) {
  16673. let student = {
  16674. userid: uid,
  16675. student: uname,
  16676. };
  16677. if (tool == 57) {
  16678. window.parent.postMessage(
  16679. {
  16680. tools: tool + "teacher",
  16681. cid: this.id,
  16682. stage: this.courseType,
  16683. task: this.taskCount,
  16684. tool: i,
  16685. student: student,
  16686. },
  16687. "*"
  16688. );
  16689. }
  16690. },
  16691. setRightAnswer(s, i, j) {
  16692. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  16693. if (
  16694. this.sentenceList[i].chooseSenList[q] == undefined ||
  16695. this.sentenceList[i].chooseSenList[q] == ""
  16696. ) {
  16697. this.sentenceList[i].chooseSenList[q] = s;
  16698. this.sentenceList[i].addChangeSen[j] = "";
  16699. break;
  16700. }
  16701. }
  16702. this.$forceUpdate();
  16703. },
  16704. returnCard(r, i, j) {
  16705. var a = this.sentenceList[i].addSentence.indexOf(r);
  16706. this.sentenceList[i].chooseSenList[j] = "";
  16707. this.sentenceList[i].addChangeSen[a] = r;
  16708. this.$forceUpdate();
  16709. },
  16710. // addSentenceTool() {
  16711. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16712. // this.taskCount
  16713. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  16714. // this.sentenceList = [
  16715. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  16716. // ];
  16717. // this.dialogVisibleSentence = false;
  16718. // },
  16719. toolsCount(a, t) {
  16720. let params = {
  16721. cid: this.id,
  16722. chid: this.courseType,
  16723. uid: this.userid,
  16724. tid: t,
  16725. count: a,
  16726. };
  16727. this.ajax
  16728. .get(this.$store.state.api + "insertToolsCount", params)
  16729. .then((res) => {
  16730. this.selectCount();
  16731. })
  16732. .catch((err) => {
  16733. console.error(err);
  16734. });
  16735. },
  16736. updateCount(c, t) {
  16737. c++;
  16738. let params = {
  16739. cid: this.id,
  16740. chid: this.courseType,
  16741. uid: this.userid,
  16742. tid: t,
  16743. count: c,
  16744. };
  16745. this.ajax
  16746. .get(this.$store.state.api + "updateToolsCount", params)
  16747. .then((res) => {
  16748. this.selectCount();
  16749. })
  16750. .catch((err) => {
  16751. console.error(err);
  16752. });
  16753. },
  16754. checkEva() {
  16755. if (this.evalua != "") {
  16756. for (var i = 0; i < this.evaJuri.length; i++) {
  16757. if (this.evalua == this.evaJuri[i].id) {
  16758. this.eTitle = this.evaJuri[i].title;
  16759. this.eJson = JSON.parse(this.evaJuri[i].content);
  16760. }
  16761. }
  16762. this.$forceUpdate();
  16763. setTimeout(() => {
  16764. this.setMindData();
  16765. }, 0);
  16766. }
  16767. },
  16768. selectEva() {
  16769. let params = {
  16770. oid: this.oid,
  16771. };
  16772. this.ajax
  16773. .get(this.$store.state.api + "selectAllEvaluation", params)
  16774. .then((res) => {
  16775. this.evaJuri = res.data[0];
  16776. })
  16777. .catch((err) => {
  16778. console.error(err);
  16779. });
  16780. },
  16781. setMindData() {
  16782. this.data.data = [];
  16783. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  16784. let _eJson = Object.keys(this.eJson);
  16785. let _e = this.eJson;
  16786. for (let i = 0; i < _eJson.length; i++) {
  16787. let element = _e[_eJson[i]];
  16788. this.data.data.push({
  16789. id: element.id,
  16790. parentid: "root",
  16791. topic: element.name,
  16792. });
  16793. let _eJsonc = Object.keys(element.child);
  16794. let _e2 = element.child;
  16795. for (let j = 0; j < _eJsonc.length; j++) {
  16796. let _ec = _e2[_eJsonc[j]];
  16797. this.data.data.push({
  16798. id: _ec.id,
  16799. parentid: element.id,
  16800. topic: _ec.name,
  16801. });
  16802. let _eJsonz = Object.keys(_ec.child);
  16803. let _e3 = _ec.child;
  16804. for (let z = 0; z < _eJsonz.length; z++) {
  16805. let _ez = _e3[_eJsonz[z]];
  16806. this.data.data.push({
  16807. id: _ez.id,
  16808. parentid: _ec.id,
  16809. topic: _ez.name,
  16810. });
  16811. }
  16812. }
  16813. }
  16814. this.$forceUpdate();
  16815. },
  16816. checkFileFull(type, url) {
  16817. this.fullDialogVisible = true;
  16818. this.fulltype = type;
  16819. this.fullUrl = url;
  16820. },
  16821. openSname(n, id, i, uid) {
  16822. this.snameWid = id;
  16823. this.worksSName = n;
  16824. this.worksSid = uid == n ? "" : uid;
  16825. this.toolindex = i;
  16826. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16827. if (!this.uploadCid) {
  16828. this.$message.error(
  16829. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16830. );
  16831. return;
  16832. }
  16833. this.selectUploadStudent(1);
  16834. },
  16835. updateName() {
  16836. let params = {
  16837. n: this.worksSName,
  16838. cid: this.snameWid,
  16839. };
  16840. this.ajax
  16841. .get(this.$store.state.api + "updateCourseWorksName", params)
  16842. .then((res) => {
  16843. this.$message({
  16844. message: "修改成功",
  16845. type: "success",
  16846. });
  16847. this.dialogVisibleSname = false;
  16848. this.getCourseDetail();
  16849. this.snameWid = "";
  16850. this.worksSName = "";
  16851. })
  16852. .catch((err) => {
  16853. console.error(err);
  16854. });
  16855. },
  16856. downloadFile2(f) {
  16857. let url = f.url;
  16858. let _this = this;
  16859. let _url = "";
  16860. if (
  16861. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16862. ) {
  16863. _url = url.split(
  16864. "https://view.officeapps.live.com/op/view.aspx?src="
  16865. )[1];
  16866. } else {
  16867. _url = url;
  16868. }
  16869. const x = new XMLHttpRequest();
  16870. x.open("GET", _url, true);
  16871. x.responseType = "blob";
  16872. const loading = _this.$loading.service({
  16873. background: "rgba(255, 255, 255, 0.7)",
  16874. target: document.body,
  16875. text: "文件加载中...",
  16876. });
  16877. // _this.$message.success("文件下载中...");
  16878. x.onload = function (e) {
  16879. loading.close();
  16880. let content = x.response;
  16881. let elink = document.createElement("a");
  16882. elink.download = f.name;
  16883. elink.style.display = "none";
  16884. let blob = new Blob([content]);
  16885. elink.href = URL.createObjectURL(blob);
  16886. document.body.appendChild(elink);
  16887. elink.click();
  16888. document.body.removeChild(elink);
  16889. };
  16890. x.send();
  16891. },
  16892. downloadFile(url) {
  16893. let _this = this;
  16894. let _url = "";
  16895. if (
  16896. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  16897. ) {
  16898. _url = url.split(
  16899. "https://view.officeapps.live.com/op/view.aspx?src="
  16900. )[1];
  16901. } else {
  16902. _url = url;
  16903. }
  16904. const x = new XMLHttpRequest();
  16905. x.open("GET", _url, true);
  16906. x.responseType = "blob";
  16907. const loading = _this.$loading.service({
  16908. background: "rgba(255, 255, 255, 0.7)",
  16909. target: document.body,
  16910. text: "文件加载中...",
  16911. });
  16912. // _this.$message.success("文件下载中...");
  16913. x.onload = function (e) {
  16914. loading.close();
  16915. // const url = window.URL.createObjectURL(x.response);
  16916. // const a = document.createElement("a");
  16917. // a.href = url;
  16918. // a.target = "_blank";
  16919. // a.download = url;
  16920. // a.click();
  16921. // a.remove();
  16922. let content = x.response;
  16923. let elink = document.createElement("a");
  16924. elink.download = decodeURI(
  16925. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  16926. );
  16927. elink.style.display = "none";
  16928. let blob = new Blob([content]);
  16929. elink.href = URL.createObjectURL(blob);
  16930. document.body.appendChild(elink);
  16931. elink.click();
  16932. document.body.removeChild(elink);
  16933. };
  16934. x.send();
  16935. },
  16936. openLine(url) {
  16937. window.open(url);
  16938. },
  16939. resize() {
  16940. if (document.getElementsByClassName("box_course").length) {
  16941. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  16942. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  16943. if (this.showType == 2 || this.showType == 3) {
  16944. document.getElementsByClassName("navBox")[0].style.height =
  16945. a - 40 + 46 + "px";
  16946. } else {
  16947. document.getElementsByClassName("navBox")[0].style.height =
  16948. a - 40 + "px";
  16949. }
  16950. }
  16951. this.Stbodywidth =
  16952. document.getElementsByClassName("student_body").length &&
  16953. document.getElementsByClassName("student_body")[0].offsetWidth;
  16954. },
  16955. closeDraw() {
  16956. this.bg = null;
  16957. this.drawShow = false;
  16958. },
  16959. showPicturePaint(url) {
  16960. let params = {
  16961. img: url,
  16962. };
  16963. this.ajax
  16964. .get(this.$store.state.api + "imgToBase64", params)
  16965. .then((res) => {
  16966. console.log(res);
  16967. this.drawShow = true;
  16968. this.bg = res.data[0].img;
  16969. })
  16970. .catch((err) => {
  16971. console.error(err);
  16972. });
  16973. },
  16974. addImgDraw(base64) {
  16975. let file = { name: "批注图.png" };
  16976. let img = this.dataUrlToFile(base64, file);
  16977. this.beforeUpload1(img, 5);
  16978. },
  16979. addImgDrawImG(url) {
  16980. // console.log(url);
  16981. let params = [
  16982. {
  16983. wid: this.commentDetail.wid,
  16984. img: url,
  16985. },
  16986. ];
  16987. this.ajax
  16988. .post(this.$store.state.api + "updateCourseWorks", params)
  16989. .then((res) => {
  16990. this.$message({
  16991. message: "提交成功",
  16992. type: "success",
  16993. });
  16994. this.drawShow = false;
  16995. this.bg = "";
  16996. this.selectSWorks();
  16997. this.selectStudent();
  16998. })
  16999. .catch((err) => {
  17000. this.$message.error("提交失败");
  17001. console.error(err);
  17002. });
  17003. },
  17004. deletePicturePaint() {
  17005. this.$confirm("确定删除此批注吗?", "提示", {
  17006. confirmButtonText: "确定",
  17007. cancelButtonText: "取消",
  17008. type: "warning",
  17009. })
  17010. .then(() => {
  17011. let params = [
  17012. {
  17013. wid: this.commentDetail.wid,
  17014. img: "",
  17015. },
  17016. ];
  17017. this.ajax
  17018. .post(this.$store.state.api + "updateCourseWorks", params)
  17019. .then((res) => {
  17020. this.$message({
  17021. message: "删除成功",
  17022. type: "success",
  17023. });
  17024. this.selectSWorks();
  17025. this.selectStudent();
  17026. })
  17027. .catch((err) => {
  17028. this.$message.error("删除失败");
  17029. console.error(err);
  17030. });
  17031. })
  17032. .catch(() => {});
  17033. },
  17034. getAudioVideo(constraintsData) {
  17035. if (navigator.mediaDevices === undefined) {
  17036. navigator.mediaDevices = {};
  17037. }
  17038. if (navigator.mediaDevices.getUserMedia === undefined) {
  17039. navigator.mediaDevices.getUserMedia = function (constraints) {
  17040. // 首先,如果有getUserMedia的话,就获得它
  17041. var getUserMedia =
  17042. navigator.getUserMedia ||
  17043. navigator.webkitGetUserMedia ||
  17044. navigator.mozGetUserMedia ||
  17045. navigator.msGetUserMedia;
  17046. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  17047. if (!getUserMedia) {
  17048. return Promise.reject({ code: 404 });
  17049. }
  17050. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  17051. return new Promise(function (resolve, reject) {
  17052. getUserMedia.call(navigator, constraints, resolve, reject);
  17053. });
  17054. };
  17055. }
  17056. return navigator.mediaDevices.getUserMedia(constraintsData);
  17057. },
  17058. /**
  17059. * 开始录制
  17060. */
  17061. startRecording(callback) {
  17062. let _function = (screenStream) => {
  17063. this.addStreamStopListener(screenStream, () => {
  17064. console.log("流停止监听");
  17065. this.stopRecording();
  17066. this.$emit("streamStop", {});
  17067. // this.stopRecording();
  17068. });
  17069. var options = {
  17070. type: "video",
  17071. mimeType: "video/webm",
  17072. disableLogs: false,
  17073. getNativeBlob: false, // enable it for longer recordings
  17074. ignoreMutedMedia: false,
  17075. };
  17076. // this.video.srcObject = screenStream;
  17077. this.recorder = RecordRTC(screenStream, options);
  17078. this.recorder.startRecording();
  17079. this.recorder.screen = screenStream;
  17080. this.videoStart = true;
  17081. // callback(true);
  17082. };
  17083. this.getAudioVideo({ audio: true })
  17084. .then((res) => {
  17085. this.captureScreen(_function, true);
  17086. console.log("已点击允许,开启成功");
  17087. })
  17088. .catch((err) => {
  17089. // console.log('浏览器不支持,请更换浏览器')
  17090. // } else {
  17091. this.captureScreen(_function, false);
  17092. console.log("请检查是否存在麦克风");
  17093. });
  17094. },
  17095. /**
  17096. * 停止录制
  17097. */
  17098. stopRecording(callback) {
  17099. this.recorder.stopRecording(() => {
  17100. // this.video.src = this.video.srcObject = null;
  17101. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  17102. const url = URL.createObjectURL(this.recorder.getBlob());
  17103. const a = document.createElement("a"); //this.fileName+
  17104. let videoFile = new File(
  17105. [this.recorder.getBlob()],
  17106. this.courseDetail.title + "录屏.mp4",
  17107. {
  17108. type: "video/mp4",
  17109. }
  17110. );
  17111. let downloadUrl = URL.createObjectURL(videoFile);
  17112. document.body.appendChild(a);
  17113. a.style.display = "none";
  17114. a.href = url;
  17115. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  17116. a.click();
  17117. this.recorder.screen.stop();
  17118. this.recorder.destroy();
  17119. this.recorder = null;
  17120. this.videoStart = false;
  17121. // callback(false);
  17122. });
  17123. },
  17124. //初始化
  17125. captureScreen(callback, type) {
  17126. if (navigator.getDisplayMedia) {
  17127. //录制结束,文件下载
  17128. navigator
  17129. .getDisplayMedia({
  17130. video: true,
  17131. })
  17132. .then((screenStream) => {
  17133. if (type) {
  17134. navigator.mediaDevices
  17135. .getUserMedia({ audio: true })
  17136. .then((mic) => {
  17137. screenStream.addTrack(mic.getTracks()[0]);
  17138. callback(screenStream);
  17139. });
  17140. } else {
  17141. callback(screenStream);
  17142. }
  17143. })
  17144. .catch(function (error) {
  17145. console.log("error", error);
  17146. });
  17147. } else if (navigator.mediaDevices.getDisplayMedia) {
  17148. navigator.mediaDevices
  17149. .getDisplayMedia({
  17150. video: true,
  17151. })
  17152. .then((screenStream) => {
  17153. if (type) {
  17154. navigator.mediaDevices
  17155. .getUserMedia({ audio: true })
  17156. .then((mic) => {
  17157. screenStream.addTrack(mic.getTracks()[0]);
  17158. callback(screenStream);
  17159. });
  17160. } else {
  17161. callback(screenStream);
  17162. }
  17163. })
  17164. .catch(function (error) {
  17165. console.log("error", error);
  17166. });
  17167. } else {
  17168. var error = "getDisplayMedia API are not supported in this browser.";
  17169. console.log("error", error);
  17170. alert(error);
  17171. }
  17172. },
  17173. //流监听
  17174. addStreamStopListener(stream, callback) {
  17175. stream.addEventListener(
  17176. "ended",
  17177. function () {
  17178. callback();
  17179. callback = function () {};
  17180. },
  17181. false
  17182. );
  17183. stream.addEventListener(
  17184. "inactive",
  17185. function () {
  17186. callback();
  17187. callback = function () {};
  17188. },
  17189. false
  17190. );
  17191. stream.getTracks().forEach(function (track) {
  17192. track.addEventListener(
  17193. "ended",
  17194. function () {
  17195. callback();
  17196. callback = function () {};
  17197. },
  17198. false
  17199. );
  17200. track.addEventListener(
  17201. "inactive",
  17202. function () {
  17203. callback();
  17204. callback = function () {};
  17205. },
  17206. false
  17207. );
  17208. });
  17209. },
  17210. updateGroup() {
  17211. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17212. this.dialogVisibleGroup2 = true;
  17213. },
  17214. updateGroupJson() {
  17215. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  17216. if (
  17217. this.groupStudentUid[this.toolindex][i].length >
  17218. this.groupJson2.number
  17219. ) {
  17220. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  17221. return;
  17222. }
  17223. }
  17224. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  17225. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17226. this.taskCount
  17227. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  17228. let params = [
  17229. {
  17230. cid: this.id,
  17231. chapters: JSON.stringify(this.chapInfoList),
  17232. uid: this.userid,
  17233. unitIndex: this.courseType,
  17234. },
  17235. ];
  17236. this.ajax
  17237. .post(this.$store.state.api + "updateWorkNew4", params)
  17238. .then((res) => {
  17239. this.$message.success("设置成功");
  17240. this.getCourseDetail(2);
  17241. this.dialogVisibleGroup2 = false;
  17242. this.groupJson2 = {};
  17243. this.$forceUpdate();
  17244. })
  17245. .catch((err) => {
  17246. this.$message.error("网络不佳");
  17247. console.error(err);
  17248. });
  17249. },
  17250. lockChair() {
  17251. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17252. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  17253. this.updateGroupJson();
  17254. },
  17255. selectGroup(index) {
  17256. this.getCourseDetail(2, index);
  17257. },
  17258. joinGroup(index) {
  17259. if (this.groupJson.islock == 2) {
  17260. this.$message.error("位置已被锁定,无法加入");
  17261. return;
  17262. }
  17263. if (
  17264. this.groupStudent[this.toolindex][index].length >
  17265. this.groupJson.number ||
  17266. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  17267. ) {
  17268. this.$message.error("位置已满,无法加入");
  17269. return;
  17270. }
  17271. let params = [
  17272. {
  17273. cid: this.id,
  17274. stage: this.courseType,
  17275. task: this.taskCount,
  17276. tool: this.toolindex,
  17277. g: index,
  17278. uid: this.userid,
  17279. },
  17280. ];
  17281. this.ajax
  17282. .post(this.$store.state.api + "joinGroup", params)
  17283. .then((res) => {
  17284. this.$message.success("加入成功");
  17285. this.getCourseDetail();
  17286. })
  17287. .catch((err) => {
  17288. this.$message.error("网络不佳");
  17289. console.error(err);
  17290. });
  17291. },
  17292. exitGroup(id) {
  17293. if (this.groupJson.islock == 2) {
  17294. this.$message.error("位置已被锁定,无法退出");
  17295. return;
  17296. }
  17297. let params = [
  17298. {
  17299. gid: id,
  17300. },
  17301. ];
  17302. this.ajax
  17303. .post(this.$store.state.api + "exitGroup", params)
  17304. .then((res) => {
  17305. this.$message.success("退出成功");
  17306. this.getCourseDetail();
  17307. })
  17308. .catch((err) => {
  17309. this.$message.error("网络不佳");
  17310. console.error(err);
  17311. });
  17312. },
  17313. groupUpload(index, task, gindex) {
  17314. this.taskCount = task;
  17315. this.toolindex = index;
  17316. this.groupIndex = gindex;
  17317. this.dialogVisibleGroupWork = true;
  17318. },
  17319. updateGroupChair(user) {
  17320. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  17321. el.label = index;
  17322. return index != user.group;
  17323. });
  17324. this.updateGroupUser = user;
  17325. this.dialogVisibleUpdateGroup = true;
  17326. },
  17327. updateChair() {
  17328. if (
  17329. this.groupStudent[this.toolindex][this.checkChair].length >
  17330. this.groupJson.number ||
  17331. this.groupStudent[this.toolindex][this.checkChair].length ==
  17332. this.groupJson.number
  17333. ) {
  17334. this.$message.error("位置已满,无法加入");
  17335. return;
  17336. }
  17337. let params = [
  17338. {
  17339. cid: this.id,
  17340. stage: this.courseType,
  17341. task: this.taskCount,
  17342. tool: this.toolindex,
  17343. g: this.checkChair,
  17344. uid: this.updateGroupUser.userid,
  17345. },
  17346. ];
  17347. this.ajax
  17348. .post(this.$store.state.api + "joinGroup", params)
  17349. .then((res) => {
  17350. this.$message.success("修改成功");
  17351. this.updateGroupUser = {};
  17352. this.checkChair = "";
  17353. this.updateGroupArray = {};
  17354. this.dialogVisibleUpdateGroup = false;
  17355. this.getCourseDetail();
  17356. })
  17357. .catch((err) => {
  17358. this.$message.error("网络不佳");
  17359. console.error(err);
  17360. });
  17361. },
  17362. deleteGroupChair(gindex) {
  17363. this.checkDeleteGroup = [];
  17364. this.deleteGroupUser = JSON.parse(
  17365. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  17366. );
  17367. this.deleteGroupArray = this.groupJson.group[gindex];
  17368. this.groupIndex = gindex;
  17369. this.dialogVisibleDeleteGroup = true;
  17370. },
  17371. async deleteChair() {
  17372. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  17373. const gid =
  17374. this.groupStudent[this.toolindex][this.groupIndex][
  17375. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  17376. this.checkDeleteGroup[i]
  17377. )
  17378. ];
  17379. let params = [
  17380. {
  17381. gid: gid.id,
  17382. },
  17383. ];
  17384. var a = await this.deleteChairA(params);
  17385. if (i == this.checkDeleteGroup.length - 1) {
  17386. this.$message.success("退出成功");
  17387. this.dialogVisibleDeleteGroup = false;
  17388. this.deleteGroupUser = [];
  17389. this.deleteGroupArray = {};
  17390. this.groupIndex = "";
  17391. this.checkDeleteGroup = [];
  17392. this.getCourseDetail();
  17393. }
  17394. }
  17395. },
  17396. deleteChairA(params) {
  17397. return new Promise((resolve, reject) => {
  17398. this.ajax
  17399. .post(this.$store.state.api + "exitGroup", params)
  17400. .then((res) => {
  17401. resolve(1);
  17402. })
  17403. .catch((err) => {
  17404. this.$message.error("网络不佳");
  17405. console.error(err);
  17406. });
  17407. });
  17408. },
  17409. contract(i) {
  17410. if (this.isCloseList[i].isClose == 0) {
  17411. this.isCloseList[i].isClose = 1;
  17412. } else {
  17413. this.isCloseList[i].isClose = 0;
  17414. }
  17415. this.$forceUpdate();
  17416. },
  17417. openTools2(i) {
  17418. this.$message.error("暂未开放");
  17419. return;
  17420. },
  17421. addTools2(i) {
  17422. if (i == 4) {
  17423. // this.openTools2(4);
  17424. this.$message.error("暂未开放");
  17425. return;
  17426. }
  17427. if (i == 45) {
  17428. // this.openTools2(45);
  17429. this.$message.error("暂未开放");
  17430. return;
  17431. }
  17432. if (i == 47) {
  17433. // this.openTools2(47);
  17434. this.$message.error("暂未开放");
  17435. return;
  17436. }
  17437. if (i == 49) {
  17438. // this.openTools2(49);
  17439. this.$message.error("暂未开放");
  17440. return;
  17441. }
  17442. if (i == 62) {
  17443. // this.openTools(itemTaskIndex, 62, toolIndex);
  17444. this.$message.error("暂未开放");
  17445. return;
  17446. }
  17447. if (i == 15) {
  17448. // this.openTools(itemTaskIndex, 15, toolIndex);
  17449. this.$message.error("暂未开放");
  17450. return;
  17451. }
  17452. if (i == 40) {
  17453. // this.openTools(itemTaskIndex, 40, toolIndex);
  17454. this.$message.error("暂未开放");
  17455. return;
  17456. }
  17457. if (i == 41) {
  17458. // this.openTools(itemTaskIndex, 41, toolIndex);
  17459. this.$message.error("暂未开放");
  17460. return;
  17461. }
  17462. if (i == 42) {
  17463. // this.openTools(itemTaskIndex, 42, toolIndex);
  17464. this.$message.error("暂未开放");
  17465. return;
  17466. }
  17467. if (this.checktoolArray.length > 0) {
  17468. if (this.checktoolArray.indexOf(i) != -1) {
  17469. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17470. } else {
  17471. this.checktoolArray = [];
  17472. this.checktoolArray.push(i);
  17473. }
  17474. } else {
  17475. this.checktoolArray.push(i);
  17476. }
  17477. this.$forceUpdate();
  17478. },
  17479. addToolChoose() {
  17480. if (!this.checktoolArray.length) {
  17481. this.$message.error("请选择要添加的任务");
  17482. return;
  17483. }
  17484. if (
  17485. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17486. this.taskCount
  17487. ].toolChoose[0].tool.length
  17488. ) {
  17489. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17490. this.taskCount
  17491. ].toolChoose[0].tool = this.checktoolArray;
  17492. } else {
  17493. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17494. this.taskCount
  17495. ].toolChoose.push({
  17496. tool: this.checktoolArray,
  17497. toolDetail: "",
  17498. toolType: 1,
  17499. askCount: 1,
  17500. askTitle: "",
  17501. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  17502. });
  17503. }
  17504. let params = [
  17505. {
  17506. cid: this.id,
  17507. chapters: JSON.stringify(this.chapInfoList),
  17508. uid: this.userid,
  17509. unitIndex: this.courseType,
  17510. },
  17511. ];
  17512. this.ajax
  17513. .post(this.$store.state.api + "updateWorkNew4", params)
  17514. .then((res) => {
  17515. this.$message({
  17516. message: "添加成功",
  17517. type: "success",
  17518. });
  17519. this.checktoolArray = [];
  17520. this.getCourseDetail(3);
  17521. this.checkBz(
  17522. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17523. this.taskCount
  17524. ].toolChoose.length - 1
  17525. );
  17526. this.$forceUpdate();
  17527. })
  17528. .catch((err) => {
  17529. console.error(err);
  17530. });
  17531. },
  17532. updateToolDetail() {
  17533. if (!this.isUpdateToolDetail) {
  17534. this.isUpdateToolDetail = true;
  17535. this.updateToolDetailInner = JSON.parse(
  17536. JSON.stringify(this.tool.toolDetail)
  17537. );
  17538. } else {
  17539. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17540. this.taskCount
  17541. ].toolChoose[this.toolIndex].toolDetail = JSON.parse(
  17542. JSON.stringify(this.updateToolDetailInner)
  17543. );
  17544. let params = [
  17545. {
  17546. cid: this.id,
  17547. chapters: JSON.stringify(this.chapInfoList),
  17548. uid: this.userid,
  17549. unitIndex: this.courseType,
  17550. },
  17551. ];
  17552. this.ajax
  17553. .post(this.$store.state.api + "updateWorkNew4", params)
  17554. .then((res) => {
  17555. this.isUpdateToolDetail = false;
  17556. this.$message({
  17557. message: "修改成功",
  17558. type: "success",
  17559. });
  17560. this.updateToolDetailInner = "";
  17561. this.getCourseDetail(3);
  17562. this.$forceUpdate();
  17563. })
  17564. .catch((err) => {
  17565. console.error(err);
  17566. });
  17567. }
  17568. },
  17569. },
  17570. directives: {
  17571. // 使用局部注册指令的方式
  17572. resize: {
  17573. // 指令的名称
  17574. bind(el, binding) {
  17575. // el为绑定的元素,binding为绑定给指令的对象
  17576. let width = "",
  17577. height = "";
  17578. function isReize() {
  17579. const style = document.defaultView.getComputedStyle(el);
  17580. if (width !== style.width || height !== style.height) {
  17581. binding.value(); // 关键
  17582. }
  17583. width = style.width;
  17584. height = style.height;
  17585. }
  17586. el.__vueSetInterval__ = setInterval(isReize, 300);
  17587. },
  17588. unbind(el) {
  17589. clearInterval(el.__vueSetInterval__);
  17590. },
  17591. },
  17592. },
  17593. beforeDestroy() {
  17594. window.onresize = null;
  17595. clearInterval(this.timer);
  17596. this.timer = null;
  17597. clearInterval(this.opertimer);
  17598. this.opertimer = null;
  17599. },
  17600. computed: {
  17601. contentConvent() {
  17602. return function (c) {
  17603. return c
  17604. ? c
  17605. .replaceAll(/\r\n/g, "<br/>")
  17606. .replaceAll(/\n/g, "<br/>")
  17607. .replaceAll(/\s/g, " &nbsp")
  17608. : "";
  17609. };
  17610. },
  17611. checkUpload() {
  17612. return function () {
  17613. var studentK = [];
  17614. if (this.plworkFile.length > 0) {
  17615. for (var z = 0; z < this.plworkFile.length; z++) {
  17616. studentK.push(this.plworkFile[z].username);
  17617. }
  17618. studentK = studentK.join(",");
  17619. }
  17620. var a = this.uploadStudentJuri.filter((el) => {
  17621. return studentK.indexOf(el.userid) == -1;
  17622. });
  17623. return a;
  17624. };
  17625. },
  17626. getSName() {
  17627. return function (name) {
  17628. var check = name;
  17629. this.uploadStudentJuri.forEach((el) => {
  17630. if (el.userid == check) {
  17631. check = el.name ? el.name : el.username;
  17632. }
  17633. });
  17634. return check;
  17635. };
  17636. },
  17637. },
  17638. mounted() {
  17639. if (this.screenType == 2) {
  17640. window.parent.postMessage({ allScreen: 4 }, "*");
  17641. } else if (this.screenType == 3) {
  17642. window.parent.postMessage({ allScreen: 5 }, "*");
  17643. } else if (this.screenType == 1) {
  17644. window.parent.postMessage({ allScreen: 6 }, "*");
  17645. }
  17646. this.setOperationTime();
  17647. this.selectEva();
  17648. this.getCourseDetail();
  17649. this.selectCount();
  17650. this.getHomeWork();
  17651. this.toolIndex = null;
  17652. this.contentDialog = true;
  17653. this.setContent2(true);
  17654. if (this.tType == 4) {
  17655. this.pzDialog = true;
  17656. this.selectPz();
  17657. }
  17658. document.scrollingElement.scrollTop = 0;
  17659. window.addEventListener("resize", () => {
  17660. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17661. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17662. if (this.showType == 2 || this.showType == 3) {
  17663. document.getElementsByClassName("navBox")[0].style.height =
  17664. a - 40 + 46 + "px";
  17665. } else {
  17666. document.getElementsByClassName("navBox")[0].style.height =
  17667. a - 40 + "px";
  17668. }
  17669. });
  17670. let _this = this;
  17671. setTimeout(() => {
  17672. // _this.vedioTime = [];
  17673. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  17674. // _this.vedioTime[i] = document.getElementsByClassName(
  17675. // "vjs-duration-display"
  17676. // )[i].textContent;
  17677. // }
  17678. }, 1000);
  17679. },
  17680. };
  17681. </script>
  17682. <style scoped>
  17683. @media screen and (max-width: 1280px) {
  17684. /* .courseIndex > div:first-child(2) {
  17685. width: 15% !important;
  17686. } */
  17687. /* .navText {
  17688. width: 120px !important;
  17689. } */
  17690. .evaCss {
  17691. flex-direction: column !important;
  17692. align-items: center !important;
  17693. }
  17694. .dialog_diy1 >>> .el-dialog {
  17695. width: 100% !important;
  17696. }
  17697. .rightWidthCss {
  17698. width: 100% !important;
  17699. }
  17700. .dialog_diy3 >>> .el-dialog {
  17701. width: 100% !important;
  17702. }
  17703. /* .textTitle >>> .el-form-item__label {
  17704. width: 150px !important;
  17705. } */
  17706. }
  17707. .evaCssMax {
  17708. flex-direction: column !important;
  17709. align-items: center !important;
  17710. }
  17711. .dialog_diy >>> .el-dialog {
  17712. margin-top: 10vh !important;
  17713. }
  17714. .body_student {
  17715. width: 77%;
  17716. height: 100%;
  17717. position: absolute;
  17718. left: 22%;
  17719. top: 0;
  17720. }
  17721. .student_head {
  17722. width: 100%;
  17723. margin: 40px auto 0;
  17724. padding-bottom: 20px;
  17725. display: flex;
  17726. flex-direction: column;
  17727. flex-wrap: nowrap;
  17728. align-items: flex-start;
  17729. justify-content: flex-start;
  17730. }
  17731. .pb_left {
  17732. width: 20%;
  17733. margin-right: 10px;
  17734. background: rgb(255, 255, 255);
  17735. position: fixed;
  17736. height: calc(100% - 40px);
  17737. border-radius: 20px;
  17738. padding-bottom: 15px;
  17739. box-sizing: border-box;
  17740. }
  17741. .wheel > img,
  17742. .project > img,
  17743. .star > img,
  17744. .evaluate > img,
  17745. .up_photo > img,
  17746. .chapter_add > img,
  17747. .deleteWord > img,
  17748. .question > img,
  17749. .homework > img {
  17750. width: 100%;
  17751. height: 100%;
  17752. }
  17753. .upCover > img {
  17754. width: 131px;
  17755. height: 69px;
  17756. object-fit: cover;
  17757. }
  17758. .upCover {
  17759. width: calc(100% / 3.5);
  17760. position: relative;
  17761. margin: 0 15px 10px 0;
  17762. display: flex;
  17763. flex-direction: column;
  17764. flex-wrap: nowrap;
  17765. justify-content: center;
  17766. align-content: center;
  17767. align-items: center;
  17768. height: fit-content;
  17769. }
  17770. .upCover2 {
  17771. width: 100%;
  17772. position: relative;
  17773. margin: 0 15px 10px 0;
  17774. display: flex;
  17775. flex-direction: column;
  17776. flex-wrap: nowrap;
  17777. justify-content: center;
  17778. align-content: center;
  17779. align-items: center;
  17780. }
  17781. .upCover2 > img {
  17782. width: 100%;
  17783. height: 90px;
  17784. object-fit: contain;
  17785. }
  17786. .chapter_add {
  17787. width: 120px;
  17788. position: relative;
  17789. text-align: center;
  17790. }
  17791. .isAddThings {
  17792. margin-top: 20px;
  17793. position: relative;
  17794. text-align: center;
  17795. background: #f7f8fa;
  17796. height: 90px;
  17797. width: 90px;
  17798. display: flex;
  17799. flex-direction: column;
  17800. justify-content: center;
  17801. }
  17802. .deleteWord {
  17803. width: 22px;
  17804. height: 22px;
  17805. position: absolute;
  17806. right: -5px;
  17807. top: -5px;
  17808. cursor: pointer;
  17809. }
  17810. .box_course {
  17811. /* width: 60%; */
  17812. width: calc(100% - 300px);
  17813. }
  17814. .wheel {
  17815. width: 100%;
  17816. /* height: 100%; */
  17817. height: 650px;
  17818. }
  17819. .right_box {
  17820. display: flex;
  17821. flex-direction: column;
  17822. margin-left: 30px;
  17823. justify-content: space-around;
  17824. }
  17825. .right_box_title {
  17826. font-size: 23px;
  17827. }
  17828. .people {
  17829. display: flex;
  17830. }
  17831. .student_body {
  17832. width: 100%;
  17833. margin: 0 auto;
  17834. margin-top: 10px;
  17835. padding: 0 0 20px;
  17836. background: #fff;
  17837. border-radius: 20px;
  17838. }
  17839. .study_top {
  17840. margin-top: 100px;
  17841. width: 100%;
  17842. /* overflow: auto; */
  17843. height: auto;
  17844. padding-bottom: 20px;
  17845. }
  17846. .study_top .checkbox {
  17847. display: flex;
  17848. align-items: center;
  17849. padding: 15px 0 15px 30px;
  17850. flex: 0 0 auto;
  17851. font-weight: bold;
  17852. border-bottom: 1px solid #eee;
  17853. }
  17854. .study_top .check {
  17855. padding-bottom: 5px;
  17856. text-align: center;
  17857. cursor: pointer;
  17858. height: 30px;
  17859. box-sizing: border-box;
  17860. display: flex;
  17861. }
  17862. .study_top .checked {
  17863. border-bottom: 4px solid #3fc6a0;
  17864. padding-bottom: 5px;
  17865. color: #3fc6a0;
  17866. display: flex;
  17867. height: 35px;
  17868. }
  17869. .study_top .checked > div,
  17870. .study_top .check > div {
  17871. margin-right: 5px;
  17872. }
  17873. .videoTop {
  17874. display: flex;
  17875. flex-direction: row;
  17876. justify-content: space-between;
  17877. background: #fff;
  17878. align-items: center;
  17879. width: 95%;
  17880. padding: 20px;
  17881. }
  17882. .upbtn {
  17883. margin: 25px;
  17884. background: #70afdb;
  17885. color: #fff;
  17886. width: 120px;
  17887. text-align: center;
  17888. height: 30px;
  17889. line-height: 30px;
  17890. font-size: 13px;
  17891. border-radius: 5px;
  17892. cursor: pointer;
  17893. }
  17894. .filebox {
  17895. display: flex;
  17896. flex-wrap: wrap;
  17897. flex-direction: column;
  17898. padding: 15px 0 5px;
  17899. }
  17900. .filebox .tooldetail {
  17901. width: 100%;
  17902. margin: 0px 12px;
  17903. background: rgb(247, 247, 247);
  17904. padding: 20px;
  17905. line-height: 30px;
  17906. word-break: break-word;
  17907. }
  17908. .file {
  17909. display: flex;
  17910. flex-direction: column;
  17911. align-items: center;
  17912. justify-content: center;
  17913. cursor: pointer;
  17914. width: 200px;
  17915. }
  17916. .file div {
  17917. margin-top: 10px;
  17918. width: 150px;
  17919. text-align: center;
  17920. overflow: hidden;
  17921. white-space: nowrap;
  17922. text-overflow: ellipsis;
  17923. }
  17924. .media {
  17925. display: flex;
  17926. flex-direction: column;
  17927. align-items: center;
  17928. justify-content: center;
  17929. margin: 0 20px 20px 0;
  17930. cursor: pointer;
  17931. margin: 12px 0 5px 15px;
  17932. overflow: hidden;
  17933. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  17934. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  17935. box-sizing: border-box;
  17936. }
  17937. .media img {
  17938. height: 90px;
  17939. width: 160px;
  17940. object-fit: cover;
  17941. }
  17942. .media .title {
  17943. padding: 5px;
  17944. text-align: left;
  17945. width: 100%;
  17946. box-sizing: border-box;
  17947. }
  17948. .media .btn {
  17949. width: 100%;
  17950. height: 35px;
  17951. line-height: 35px;
  17952. color: #fff;
  17953. background: #606060;
  17954. text-align: center;
  17955. overflow: hidden;
  17956. white-space: nowrap;
  17957. text-overflow: ellipsis;
  17958. }
  17959. .detail_content_top {
  17960. width: 100%;
  17961. padding: 25px 0 25px 0;
  17962. }
  17963. .detail_title {
  17964. text-align: center;
  17965. font-size: 24px;
  17966. }
  17967. .detail_time {
  17968. font-size: 13px;
  17969. padding: 15px 0 0 40px;
  17970. }
  17971. .detail_content {
  17972. line-height: 2pc;
  17973. width: 90%;
  17974. margin: 0 auto;
  17975. padding-top: 30px;
  17976. text-indent: 30px;
  17977. overflow: auto;
  17978. height: 200px;
  17979. }
  17980. .score_box >>> .el-rate {
  17981. margin-left: 10px;
  17982. }
  17983. .dialog_change >>> .el-dialog {
  17984. border-radius: 5px;
  17985. }
  17986. .dialog_change >>> .el-dialog__header {
  17987. background: #f2f2f2;
  17988. text-align: center;
  17989. }
  17990. .dialog_change >>> .el-dialog__title {
  17991. line-height: 5px;
  17992. }
  17993. .dialog_change >>> .el-dialog__body {
  17994. background: #fff;
  17995. padding: 10px 20px;
  17996. }
  17997. .score_box {
  17998. display: flex;
  17999. align-items: center;
  18000. margin-bottom: 18px;
  18001. margin-top: 20px;
  18002. }
  18003. .up_photo {
  18004. width: 120px;
  18005. cursor: pointer;
  18006. margin-top: 10px;
  18007. }
  18008. .up_photo2 {
  18009. width: 180px;
  18010. box-sizing: border-box;
  18011. min-width: 180px;
  18012. height: 180px;
  18013. max-height: 180px;
  18014. min-height: 180px;
  18015. cursor: pointer;
  18016. display: flex;
  18017. flex-direction: column;
  18018. align-items: center;
  18019. justify-content: center;
  18020. background: rgb(242, 246, 255);
  18021. /* padding: 25px; */
  18022. margin-bottom: 10px;
  18023. }
  18024. .up_photo2 img {
  18025. width: 50%;
  18026. height: auto;
  18027. }
  18028. .up_photo2 span {
  18029. color: #898989;
  18030. }
  18031. .plworkBox {
  18032. display: flex;
  18033. align-items: center;
  18034. margin-top: 10px;
  18035. flex-wrap: wrap;
  18036. }
  18037. .upload_send {
  18038. margin: 30px auto 30px;
  18039. width: 60%;
  18040. background: #169bd6;
  18041. text-align: center;
  18042. height: 35px;
  18043. line-height: 35px;
  18044. color: #fff;
  18045. border-radius: 5px;
  18046. cursor: pointer;
  18047. }
  18048. .marginT {
  18049. margin-top: 20px;
  18050. }
  18051. .cd_content_steps {
  18052. display: flex;
  18053. width: 90%;
  18054. justify-content: space-around;
  18055. border-top: 1px solid #eeeeee;
  18056. }
  18057. .cd_steps_box {
  18058. display: flex;
  18059. justify-content: center;
  18060. align-items: center;
  18061. flex-direction: column;
  18062. cursor: pointer;
  18063. }
  18064. .first {
  18065. display: flex;
  18066. align-items: center;
  18067. margin: 15px 0 20px 0;
  18068. font-size: 20px;
  18069. }
  18070. .first > div:nth-child(2) {
  18071. font-size: 16px !important;
  18072. padding-left: 10px;
  18073. line-height: 26px;
  18074. box-sizing: border-box;
  18075. }
  18076. .blue_box_one {
  18077. text-align: center;
  18078. color: #fff;
  18079. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  18080. border-radius: 7px;
  18081. margin: 10px;
  18082. cursor: pointer;
  18083. width: 95%;
  18084. height: 45px;
  18085. display: flex;
  18086. flex-direction: row;
  18087. justify-content: flex-start;
  18088. align-items: center;
  18089. }
  18090. .blue_box_one > div:nth-child(1) {
  18091. line-height: 30px;
  18092. margin: 0 5px 0 10px;
  18093. width: 30%;
  18094. min-width: 70px;
  18095. border-radius: 4px;
  18096. }
  18097. .blue_box_one > div:nth-child(2) {
  18098. white-space: nowrap;
  18099. text-overflow: ellipsis;
  18100. overflow: hidden;
  18101. word-break: break-all;
  18102. width: 70%;
  18103. text-align: left;
  18104. margin-right: 10px;
  18105. max-width: calc(100% - 85px);
  18106. }
  18107. .blue_box_one > div:nth-child(2):hover {
  18108. overflow: hidden;
  18109. text-overflow: ellipsis;
  18110. white-space: nowrap;
  18111. cursor: pointer;
  18112. }
  18113. .upFile {
  18114. margin: 0 auto;
  18115. width: 120px;
  18116. background: #70afdb;
  18117. color: #fff;
  18118. height: 30px;
  18119. text-align: center;
  18120. line-height: 30px;
  18121. border-radius: 5px;
  18122. font-size: 14px;
  18123. cursor: pointer;
  18124. }
  18125. .courseTitle {
  18126. width: 85%;
  18127. margin: 10px auto;
  18128. display: flex;
  18129. flex-direction: row;
  18130. align-items: center;
  18131. justify-content: space-between;
  18132. text-align: center;
  18133. }
  18134. .courseTitle .ctitle {
  18135. font-size: 24px;
  18136. font-weight: bold;
  18137. color: #0e1e33;
  18138. white-space: nowrap;
  18139. overflow: hidden;
  18140. text-overflow: ellipsis;
  18141. }
  18142. .courseTitle .inviteBox {
  18143. font-size: 14px;
  18144. margin-top: 5px;
  18145. color: #a6cbff;
  18146. }
  18147. .courseTitle >>> .el-tooltip {
  18148. width: 100%;
  18149. white-space: nowrap;
  18150. overflow: hidden;
  18151. text-overflow: ellipsis;
  18152. word-break: break-word;
  18153. }
  18154. .ml {
  18155. margin-left: 20px;
  18156. color: #5b7dba;
  18157. border-left: 3px solid #5b7dba;
  18158. padding-left: 5px;
  18159. font-weight: bold;
  18160. }
  18161. .return {
  18162. width: 2rem;
  18163. height: 2rem;
  18164. cursor: pointer;
  18165. }
  18166. .return > img {
  18167. width: 100%;
  18168. height: 100%;
  18169. }
  18170. .returnBtn {
  18171. width: 86px;
  18172. height: 36px;
  18173. background: #e7ebf1;
  18174. border-radius: 4px;
  18175. color: #717c8d;
  18176. text-align: center;
  18177. line-height: 36px;
  18178. margin-right: 20px;
  18179. cursor: pointer;
  18180. font-size: 14px;
  18181. font-weight: 400;
  18182. display: flex;
  18183. flex-direction: row;
  18184. flex-wrap: nowrap;
  18185. align-items: center;
  18186. justify-content: center;
  18187. }
  18188. .commentIcon::before,
  18189. .vedioIcon::before,
  18190. .lockIcon::before,
  18191. .returnIcon::before {
  18192. content: "";
  18193. display: block;
  18194. background-size: 100% 100%;
  18195. background-repeat: no-repeat;
  18196. width: 20px;
  18197. height: 20px;
  18198. margin-right: 5px;
  18199. }
  18200. .commentIcon::before {
  18201. background-image: url("../../assets/icon/newIcon/comment.png");
  18202. }
  18203. .vedioIcon::before {
  18204. background-image: url("../../assets/icon/newIcon/vedio.png");
  18205. }
  18206. .lockIcon::before {
  18207. background-image: url("../../assets/icon/newIcon/lock.png");
  18208. }
  18209. .returnIcon::before {
  18210. background-image: url("../../assets/icon/newIcon/return.png");
  18211. }
  18212. .tool {
  18213. display: flex;
  18214. flex-direction: column;
  18215. flex-wrap: nowrap;
  18216. width: 13%;
  18217. margin: 0 30px;
  18218. align-items: center;
  18219. }
  18220. .whiteBIcon {
  18221. width: 150px;
  18222. cursor: pointer;
  18223. }
  18224. .whiteBIcon > img {
  18225. width: 100%;
  18226. height: 100%;
  18227. }
  18228. .mask {
  18229. background-color: rgba(0, 0, 0, 0);
  18230. position: fixed;
  18231. top: 0;
  18232. left: 0;
  18233. width: 100%;
  18234. height: 100%;
  18235. z-index: 20000;
  18236. display: flex;
  18237. align-items: center;
  18238. justify-content: center;
  18239. }
  18240. .progressBox {
  18241. width: 500px;
  18242. height: 180px;
  18243. background: #fff;
  18244. border-radius: 10px;
  18245. box-shadow: 0 0 6px 1px #bfbfbf;
  18246. display: flex;
  18247. align-items: center;
  18248. justify-content: center;
  18249. flex-direction: column;
  18250. position: relative;
  18251. color: #6c6c6c;
  18252. }
  18253. .progressBox >>> .el-progress-bar__outer {
  18254. background-color: #d1dfff !important;
  18255. }
  18256. .progressBox .lbox {
  18257. height: 50px;
  18258. font-size: 19px;
  18259. display: flex;
  18260. align-items: center;
  18261. color: #747474;
  18262. }
  18263. .progressBox .lbox img {
  18264. width: 40px;
  18265. margin-right: 20px;
  18266. }
  18267. .closeCss {
  18268. position: absolute;
  18269. top: 8px;
  18270. right: 8px;
  18271. cursor: pointer;
  18272. width: 20px;
  18273. height: 20px;
  18274. }
  18275. .closeCss > img {
  18276. width: 100%;
  18277. height: 100%;
  18278. }
  18279. .uploadVedio {
  18280. display: flex;
  18281. flex-direction: column;
  18282. flex-wrap: nowrap;
  18283. justify-content: center;
  18284. align-items: center;
  18285. margin: 0 15px 10px 0;
  18286. }
  18287. .uploadVedio > img {
  18288. width: 30px;
  18289. height: 30px;
  18290. }
  18291. .uploadVedio > span {
  18292. white-space: nowrap;
  18293. overflow: hidden;
  18294. text-overflow: ellipsis;
  18295. width: 75px;
  18296. margin-top: 7px;
  18297. }
  18298. .picName {
  18299. white-space: nowrap;
  18300. overflow: hidden;
  18301. text-overflow: ellipsis;
  18302. width: 75px;
  18303. margin-top: 7px;
  18304. }
  18305. .new_top {
  18306. display: flex;
  18307. background: #fff;
  18308. flex-direction: row;
  18309. justify-content: flex-start;
  18310. align-items: center;
  18311. height: 60px;
  18312. position: relative;
  18313. }
  18314. .new_top::before{
  18315. content: '';
  18316. width: 100%;
  18317. height: 20px;
  18318. position: absolute;
  18319. top: -20px;
  18320. display: block;
  18321. background: #f2f2f2;
  18322. }
  18323. .before {
  18324. position: absolute;
  18325. background: #c3dad4;
  18326. width: 6px;
  18327. height: 100%;
  18328. }
  18329. .courseIndex {
  18330. display: flex;
  18331. flex-direction: row;
  18332. align-items: center;
  18333. width: calc(100% - 600px);
  18334. }
  18335. .courseIndex > div:nth-child(1) {
  18336. margin: 0 0 0 20px;
  18337. padding-left: 5px;
  18338. font-size: 24px;
  18339. min-width: 100px;
  18340. font-weight: bold;
  18341. border-left: 4px solid #3363b9;
  18342. height: 35px;
  18343. text-align: center;
  18344. line-height: 35px;
  18345. }
  18346. .courseIndex > div:nth-child(2) {
  18347. font-size: 23px;
  18348. /* width: 300px; */
  18349. max-width: calc(100% - 180px);
  18350. white-space: nowrap;
  18351. overflow: hidden;
  18352. text-overflow: ellipsis;
  18353. }
  18354. .courseIndex > div:nth-child(3) {
  18355. border-bottom: 1px solid #d7d7d7;
  18356. padding-bottom: 5px;
  18357. background: #49a0f0;
  18358. width: 55px;
  18359. min-width: 55px;
  18360. border-radius: 5px;
  18361. color: #fff;
  18362. text-align: center;
  18363. height: 20px;
  18364. line-height: 26px;
  18365. font-size: 14px;
  18366. margin: 0 0 0 10px;
  18367. }
  18368. .course_text {
  18369. padding: 20px 0 0 15px;
  18370. text-indent: 30px;
  18371. width: 80%;
  18372. min-height: 20px;
  18373. }
  18374. .vedioList {
  18375. background: #f2f2f2;
  18376. border: 1px solid #ececec;
  18377. /* width: 38.8%; */
  18378. width: 300px;
  18379. height: 445px;
  18380. border-radius: 10px;
  18381. overflow: hidden;
  18382. box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.16);
  18383. }
  18384. .vedioNav {
  18385. margin: 10px 0 0 15px;
  18386. border-bottom: 1px solid #d7d7d7;
  18387. padding-bottom: 5px;
  18388. background: #96d1ff;
  18389. width: 55px;
  18390. min-width: 55px;
  18391. border-radius: 5px;
  18392. color: #fff;
  18393. text-align: center;
  18394. height: 20px;
  18395. line-height: 26px;
  18396. font-size: 14px;
  18397. }
  18398. .queTop {
  18399. display: flex;
  18400. padding: 20px 0 20px 30px;
  18401. width: 100%;
  18402. flex-direction: row;
  18403. justify-content: flex-start;
  18404. align-items: center;
  18405. box-sizing: border-box;
  18406. }
  18407. .queTop::before {
  18408. content: "";
  18409. width: 2px;
  18410. height: 22px;
  18411. background: #3681fc;
  18412. border-radius: 3px;
  18413. display: block;
  18414. margin: 2px 6px 0 0;
  18415. }
  18416. .question {
  18417. width: 40px;
  18418. margin-right: 10px;
  18419. margin-top: 7px;
  18420. }
  18421. .queTitle {
  18422. margin-left: 5px;
  18423. font-size: 25px;
  18424. display: flex;
  18425. align-items: center;
  18426. }
  18427. .addEditor {
  18428. width: 100px;
  18429. height: 30px;
  18430. background: #42cda6;
  18431. color: #fff;
  18432. border-radius: 5px;
  18433. text-align: center;
  18434. line-height: 30px;
  18435. box-shadow: 1px 3px 6px 1px #bfbfbf;
  18436. cursor: pointer;
  18437. }
  18438. .vedioName {
  18439. /* text-overflow: ellipsis;
  18440. top: 8px;
  18441. font-size: 14px;
  18442. overflow: hidden;
  18443. width: 100%;
  18444. word-break: break-all;
  18445. white-space: nowrap; */
  18446. cursor: pointer;
  18447. margin: 0px 0px 10px 5px;
  18448. white-space: nowrap;
  18449. overflow: hidden;
  18450. text-overflow: ellipsis;
  18451. width: 100%;
  18452. }
  18453. .vedioTime {
  18454. width: 35px;
  18455. position: absolute;
  18456. color: #fff;
  18457. bottom: 0px;
  18458. right: 0px;
  18459. text-align: center;
  18460. background: #46411f;
  18461. height: 20px;
  18462. font-size: 14px;
  18463. line-height: 20px;
  18464. }
  18465. .homework {
  18466. width: 200px;
  18467. display: flex;
  18468. flex-direction: column;
  18469. flex-wrap: nowrap;
  18470. align-items: center;
  18471. cursor: pointer;
  18472. }
  18473. .homebox {
  18474. display: flex;
  18475. flex-wrap: wrap;
  18476. flex-direction: row;
  18477. justify-content: flex-start;
  18478. align-items: center;
  18479. padding: 15px 0;
  18480. }
  18481. .isChooseActive {
  18482. color: #3e88f4;
  18483. border-bottom: 2px solid #2f80f3;
  18484. }
  18485. .chooseWho {
  18486. display: flex;
  18487. width: 100%;
  18488. flex-direction: row;
  18489. flex-wrap: nowrap;
  18490. justify-content: flex-start;
  18491. padding-bottom: 10px;
  18492. }
  18493. .chooseWho > div {
  18494. cursor: pointer;
  18495. padding-bottom: 10px;
  18496. margin: 0 30px 0 0;
  18497. font-weight: 400;
  18498. color: #0e1e33;
  18499. }
  18500. .addPoint > div > img {
  18501. cursor: pointer;
  18502. margin: 0 10px;
  18503. width: 85px;
  18504. border-radius: 15px;
  18505. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  18506. }
  18507. .addPoint > div {
  18508. display: flex;
  18509. flex-direction: column;
  18510. flex-wrap: nowrap;
  18511. align-items: center;
  18512. }
  18513. .isBorder > div {
  18514. margin: 0 0 10px 0;
  18515. align-items: flex-start !important;
  18516. }
  18517. .noiframeBox {
  18518. display: flex;
  18519. flex-wrap: wrap;
  18520. }
  18521. .iframeBox iframe {
  18522. width: 100%;
  18523. height: 800px;
  18524. border: none;
  18525. margin-bottom: 20px;
  18526. border: 1px solid #ccc;
  18527. }
  18528. .upload_toolBtn {
  18529. background: #6b92c9;
  18530. color: #fff;
  18531. width: 110px;
  18532. text-align: center;
  18533. height: 35px;
  18534. line-height: 35px;
  18535. font-size: 14px;
  18536. border-radius: 5px;
  18537. cursor: pointer;
  18538. position: absolute;
  18539. right: 10px;
  18540. bottom: 0;
  18541. }
  18542. .binfo_input,
  18543. .pj {
  18544. font: inherit;
  18545. color: currentColor;
  18546. width: 100%;
  18547. margin: 0;
  18548. padding: 15px 14px;
  18549. display: block;
  18550. min-width: 0;
  18551. outline: none;
  18552. box-sizing: content-box;
  18553. background: none;
  18554. -webkit-tap-highlight-color: transparent;
  18555. border: 1px solid rgba(0, 0, 0, 0.23);
  18556. border-radius: 4px;
  18557. box-sizing: border-box;
  18558. resize: none;
  18559. }
  18560. .binfo_input:focus-visible {
  18561. border: 1px solid rgba(61, 103, 188);
  18562. }
  18563. .dialog_diy >>> .el-dialog__header,
  18564. .dialog_diy1 >>> .el-dialog__header {
  18565. background: #454545 !important;
  18566. padding: 15px 20px;
  18567. }
  18568. .dialog_diy >>> .el-dialog__title,
  18569. .dialog_diy1 >>> .el-dialog__title {
  18570. color: #fff;
  18571. }
  18572. .dialog_diy >>> .el-dialog__headerbtn,
  18573. .dialog_diy1 >>> .el-dialog__headerbtn {
  18574. top: 19px;
  18575. }
  18576. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  18577. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  18578. color: #fff;
  18579. }
  18580. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  18581. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  18582. color: #fff;
  18583. }
  18584. .dialog_diy1 >>> .el-dialog__body {
  18585. padding: 0;
  18586. }
  18587. .dialog_diy >>> .el-dialog__body,
  18588. .dialog_diy >>> .el-dialog__footer,
  18589. .dialog_diy1 >>> .el-dialog__footer {
  18590. background: #fafafa;
  18591. }
  18592. .a_addBox {
  18593. margin: 10px 0;
  18594. background: #fff;
  18595. padding: 15px;
  18596. }
  18597. .a_add_box {
  18598. border-bottom: 2px solid #eee;
  18599. padding-bottom: 10px;
  18600. }
  18601. .a_add_head {
  18602. display: flex;
  18603. align-items: flex-start;
  18604. /* justify-content: space-between; */
  18605. flex-direction: column;
  18606. /* flex-direction: row; */
  18607. margin: 10px 0 20px 0;
  18608. font-size: 18px;
  18609. width: 100%;
  18610. }
  18611. .a_add_head .a_add_head_input {
  18612. width: 300px;
  18613. }
  18614. .a_add_head .a_add_head_div {
  18615. display: flex;
  18616. align-items: center;
  18617. justify-content: space-between;
  18618. }
  18619. .a_add_body {
  18620. display: flex;
  18621. align-items: center;
  18622. }
  18623. .a_add_input {
  18624. display: flex;
  18625. align-items: center;
  18626. flex-wrap: wrap;
  18627. }
  18628. .a_add_input >>> el-radio-group {
  18629. margin: 10px 0;
  18630. }
  18631. .a_add_input >>> .el-radio,
  18632. .a_add_input >>> .el-checkbox {
  18633. margin-bottom: 10px;
  18634. display: flex;
  18635. flex-direction: row;
  18636. flex-wrap: nowrap;
  18637. align-items: center;
  18638. }
  18639. .redioStyle >>> .el-radio__label {
  18640. font-size: 18px;
  18641. }
  18642. .redioStyle >>> .el-checkbox__label {
  18643. font-size: 18px;
  18644. }
  18645. .toolHeng2 {
  18646. width: 100%;
  18647. box-sizing:border-box;
  18648. }
  18649. .toolHeng {
  18650. display: flex;
  18651. flex-direction: row;
  18652. flex-wrap: wrap;
  18653. justify-content: flex-start;
  18654. align-items: center;
  18655. width: 100%;
  18656. }
  18657. .toolHeng > div {
  18658. padding-left: 20px;
  18659. }
  18660. .isWidth {
  18661. width: 20%;
  18662. }
  18663. .textTitle {
  18664. display: flex;
  18665. flex-direction: row;
  18666. flex-wrap: nowrap;
  18667. align-items: center;
  18668. width: 95%;
  18669. }
  18670. .textTitle >>> .el-form-item__label {
  18671. font-size: 22px;
  18672. color: #918f8f;
  18673. width: 100px;
  18674. }
  18675. .textTitle >>> .el-form-item__content {
  18676. width: calc(100% - 100px);
  18677. }
  18678. .textCss >>> .el-dialog {
  18679. width: 800px !important;
  18680. height: 400px;
  18681. background: #fafafa;
  18682. }
  18683. .textCss >>> .el-dialog__body {
  18684. margin: 55px 8% 0 8%;
  18685. padding: 0 !important;
  18686. }
  18687. .textCss >>> .el-dialog__footer {
  18688. padding-top: 38px;
  18689. }
  18690. .toolsCss >>> .el-dialog__body {
  18691. padding: 20px;
  18692. }
  18693. .lineCss >>> .el-dialog__body {
  18694. display: flex;
  18695. flex-direction: row;
  18696. align-items: center;
  18697. justify-content: center;
  18698. }
  18699. .newNav {
  18700. display: flex;
  18701. flex-direction: row;
  18702. align-items: baseline;
  18703. justify-content: flex-start;
  18704. }
  18705. .navText {
  18706. cursor: pointer;
  18707. white-space: nowrap;
  18708. overflow: hidden;
  18709. text-overflow: ellipsis;
  18710. width: 175px;
  18711. padding: 0 10px;
  18712. font-weight: 400;
  18713. color: #0e1e33;
  18714. }
  18715. .noVedio {
  18716. display: flex;
  18717. flex-direction: row;
  18718. justify-content: center;
  18719. align-content: center;
  18720. }
  18721. .noNavText {
  18722. cursor: pointer;
  18723. margin: 0px 0px 10px 5px;
  18724. width: 112px;
  18725. }
  18726. .listNoVedio {
  18727. margin: 0 0 0 30px;
  18728. width: 97%;
  18729. }
  18730. .video-player >>> .video-js {
  18731. height: 100%;
  18732. }
  18733. .hangVedioList {
  18734. width: 90% !important;
  18735. height: 150px !important;
  18736. margin: 20px 0 0 30px;
  18737. }
  18738. .hangVedio {
  18739. width: 100%;
  18740. height: 170px !important;
  18741. align-items: flex-start !important;
  18742. }
  18743. .hangHand {
  18744. height: 150px !important;
  18745. }
  18746. .twoChild {
  18747. width: 95%;
  18748. margin: 10px;
  18749. border-radius: 5px;
  18750. background: #f2f2f2;
  18751. display: flex;
  18752. flex-direction: column;
  18753. flex-wrap: nowrap;
  18754. justify-content: flex-start;
  18755. align-items: flex-start;
  18756. transition: all 0.5s;
  18757. overflow: hidden;
  18758. height: 0;
  18759. background: #e7f3ff;
  18760. }
  18761. .twoChild > div:nth-child(1) {
  18762. margin-top: 5px;
  18763. }
  18764. .navChild {
  18765. width: 100%;
  18766. cursor: pointer;
  18767. margin-bottom: 10px;
  18768. position: relative;
  18769. }
  18770. .navChild img {
  18771. position: absolute;
  18772. right: 11px;
  18773. width: 15px;
  18774. top: 50%;
  18775. transform: translateY(-50%);
  18776. }
  18777. .navActive {
  18778. height: auto !important;
  18779. overflow: auto !important;
  18780. padding-bottom: 10px;
  18781. }
  18782. .navTask {
  18783. display: flex;
  18784. flex-direction: row;
  18785. flex-wrap: nowrap;
  18786. align-items: center;
  18787. align-content: flex-start;
  18788. height: 40px;
  18789. justify-content: flex-start;
  18790. padding: 0 10px;
  18791. width: 100%;
  18792. box-sizing: border-box;
  18793. }
  18794. .navTaskname {
  18795. white-space: nowrap;
  18796. text-overflow: ellipsis;
  18797. overflow: hidden;
  18798. word-break: break-all;
  18799. padding-left: 5px;
  18800. }
  18801. .openTaskActive {
  18802. color: #4386e6;
  18803. }
  18804. .iframeName {
  18805. margin: 5px 0;
  18806. border-left: 4px solid #41c4a4;
  18807. padding-left: 4px;
  18808. }
  18809. .toolTitle {
  18810. margin: 0px 0px 20px;
  18811. font-size: 20px;
  18812. font-weight: 500;
  18813. border-left: 4px solid #41c4a4;
  18814. padding-left: 4px;
  18815. }
  18816. .cru_selectBox {
  18817. overflow: auto;
  18818. width: 90%;
  18819. margin: 17px auto 0;
  18820. height: calc(100% - 40px - 21px - 20px - 17px);
  18821. }
  18822. .cru_selectBox::-webkit-scrollbar,
  18823. .study_top::-webkit-scrollbar,
  18824. .textContent::-webkit-scrollbar {
  18825. /*滚动条整体样式*/
  18826. width: 6px;
  18827. /*高宽分别对应横竖滚动条的尺寸*/
  18828. height: 6px;
  18829. }
  18830. /*定义滚动条轨道 内阴影+圆角*/
  18831. .cru_selectBox::-webkit-scrollbar-track,
  18832. .study_top::-webkit-scrollbar-track,
  18833. .textContent::-webkit-scrollbar {
  18834. border-radius: 10px;
  18835. background-color: #b8bdc9;
  18836. }
  18837. /*定义滑块 内阴影+圆角*/
  18838. .cru_selectBox::-webkit-scrollbar-thumb,
  18839. .study_top::-webkit-scrollbar-thumb,
  18840. .textContent::-webkit-scrollbar-thumb {
  18841. border-radius: 10px;
  18842. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  18843. background-color: #2c5ab3;
  18844. }
  18845. .vedioBox {
  18846. border-radius: 0 0 20px 20px;
  18847. background: #fff;
  18848. margin-bottom: 10px;
  18849. overflow: auto;
  18850. }
  18851. .taskBox {
  18852. width: 95%;
  18853. margin: 0 auto;
  18854. border-bottom: 1px solid #cad1dc;
  18855. }
  18856. .vedioTaskBox {
  18857. width: 100%;
  18858. display: flex;
  18859. flex-direction: row;
  18860. flex-wrap: nowrap;
  18861. align-items: flex-start;
  18862. position: relative;
  18863. }
  18864. .toolBox {
  18865. padding: 20px 60px 15px;
  18866. display: flex;
  18867. position: relative;
  18868. }
  18869. .btnAll {
  18870. position: absolute;
  18871. right: 0;
  18872. display: flex;
  18873. flex-direction: row;
  18874. flex-wrap: nowrap;
  18875. align-items: center;
  18876. }
  18877. .btnAllNT {
  18878. position: fixed;
  18879. bottom: 50px;
  18880. right: 40px;
  18881. z-index: 999;
  18882. display: flex;
  18883. flex-direction: row;
  18884. }
  18885. .btnAllNT > img {
  18886. cursor: pointer;
  18887. width: 80px;
  18888. }
  18889. /* .vedioTimeBox {
  18890. display: flex;
  18891. flex-direction: row;
  18892. align-items: center;
  18893. flex-wrap: nowrap;
  18894. position: relative;
  18895. } */
  18896. .navBox {
  18897. background: #fff;
  18898. height: calc(100% - 40px);
  18899. overflow-y: auto;
  18900. overflow-x: hidden;
  18901. }
  18902. .tool_work_box {
  18903. width: 100%;
  18904. padding: 0 37px 10px;
  18905. box-sizing: border-box;
  18906. }
  18907. .worksBox {
  18908. padding: 5px 0;
  18909. border-bottom: 1px solid #eeeeee;
  18910. }
  18911. .worksBTitle {
  18912. font-size: 20px;
  18913. padding-bottom: 15px;
  18914. border-bottom: 1px solid #eeeeee;
  18915. display: flex;
  18916. align-items: center;
  18917. }
  18918. .greenBox {
  18919. width: 5px;
  18920. height: 30px;
  18921. background: #63b6fa;
  18922. margin-right: 5px;
  18923. }
  18924. .worksDetailBox {
  18925. display: flex;
  18926. width: 100%;
  18927. flex-direction: row;
  18928. flex-wrap: wrap;
  18929. align-items: flex-end;
  18930. justify-content: flex-start;
  18931. padding: 15px 0;
  18932. }
  18933. .works {
  18934. display: flex;
  18935. flex-direction: column;
  18936. flex-wrap: nowrap;
  18937. align-items: flex-start;
  18938. justify-content: flex-start;
  18939. align-content: center;
  18940. max-width: 240px;
  18941. width: calc(100% / 3 - 10px);
  18942. height: auto;
  18943. margin-right: 10px;
  18944. margin-bottom: 10px;
  18945. overflow: hidden;
  18946. height: 140px;
  18947. box-shadow: 0 0 6px 1px #dfdada;
  18948. border-radius: 15px;
  18949. }
  18950. .workImg {
  18951. width: 100%;
  18952. /* height: calc(100% - 40px); */
  18953. height: 105px;
  18954. position: relative;
  18955. }
  18956. .workImg > img {
  18957. width: 100%;
  18958. height: 100%;
  18959. object-fit: contain;
  18960. cursor: pointer;
  18961. }
  18962. .worksName {
  18963. height: 40px;
  18964. line-height: 40px;
  18965. display: flex;
  18966. width: 100%;
  18967. flex-direction: row;
  18968. flex-wrap: nowrap;
  18969. justify-content: space-between;
  18970. align-items: center;
  18971. margin: 0 0 0 10px;
  18972. }
  18973. .worksName > div:nth-child(1) {
  18974. width: 110px;
  18975. white-space: nowrap;
  18976. overflow: hidden;
  18977. text-overflow: ellipsis;
  18978. }
  18979. .worksName > div:nth-child(2) {
  18980. color: #b7b4b5;
  18981. }
  18982. .noWorksS {
  18983. padding: 15px 0 0;
  18984. display: flex;
  18985. flex-direction: row;
  18986. flex-wrap: wrap;
  18987. align-items: center;
  18988. justify-content: flex-start;
  18989. }
  18990. .noWorksS > div {
  18991. cursor: pointer;
  18992. }
  18993. .noWorksName,
  18994. .isWorksName {
  18995. background: #7cbcf1;
  18996. color: #fff;
  18997. width: 90px;
  18998. height: 25px;
  18999. text-align: center;
  19000. line-height: 25px;
  19001. border-radius: 5px;
  19002. margin: 10px 15px 10px 0;
  19003. white-space: nowrap;
  19004. overflow: hidden;
  19005. padding: 5px;
  19006. text-overflow: ellipsis;
  19007. }
  19008. .noWorksName.isWork {
  19009. background: #165d96 !important;
  19010. }
  19011. .isWorksName {
  19012. cursor: pointer;
  19013. background: #46a1eb !important;
  19014. width: 100px;
  19015. height: 40px;
  19016. line-height: 40px;
  19017. position: relative;
  19018. }
  19019. .noWorksName:hover {
  19020. background: #46a1eb !important;
  19021. }
  19022. .title {
  19023. background: #1e5cc9;
  19024. /* width: 98%; */
  19025. height: 45px;
  19026. color: #fff;
  19027. line-height: 45px;
  19028. padding-left: 20px;
  19029. box-sizing: border-box;
  19030. }
  19031. .textBox {
  19032. font-size: 20px;
  19033. width: 90%;
  19034. display: flex;
  19035. flex-direction: column;
  19036. align-items: center;
  19037. margin: 20px auto 0;
  19038. max-height: 500px;
  19039. overflow: auto;
  19040. }
  19041. .textContent {
  19042. font-size: 18px;
  19043. width: 95%;
  19044. max-width: 95%;
  19045. }
  19046. .answerBg {
  19047. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  19048. background-size: 100% 100%;
  19049. width: 100%;
  19050. height: 100%;
  19051. color: #fff;
  19052. text-align: center;
  19053. display: flex;
  19054. flex-direction: column;
  19055. flex-wrap: nowrap;
  19056. align-items: center;
  19057. position: relative;
  19058. justify-content: center;
  19059. }
  19060. .answerBg > div:nth-child(1) {
  19061. /* font-size: 22px;
  19062. padding: 25px 0 10px; */
  19063. }
  19064. .answerContent {
  19065. width: 215px;
  19066. max-height: 60px;
  19067. word-break: break-all;
  19068. text-align: center;
  19069. /* white-space: nowrap; */
  19070. overflow: hidden;
  19071. text-overflow: ellipsis;
  19072. /* padding: 23px 0 0; */
  19073. -webkit-line-clamp: 3;
  19074. -webkit-box-orient: vertical;
  19075. display: -webkit-box;
  19076. font-size: 15px;
  19077. cursor: pointer;
  19078. }
  19079. .elist_input_box {
  19080. display: flex;
  19081. align-items: flex-start;
  19082. flex-wrap: nowrap;
  19083. padding: 10px 0 15px 30px;
  19084. flex-direction: column;
  19085. }
  19086. .elist_input {
  19087. /* width: 40%; */
  19088. width: 100%;
  19089. }
  19090. .elist_input .elist_input_box input {
  19091. font: inherit;
  19092. color: currentColor;
  19093. width: 200px;
  19094. padding: 8px 14px;
  19095. display: block;
  19096. min-width: 0;
  19097. outline: none;
  19098. border: 1px solid rgba(0, 0, 0, 0.23);
  19099. border-radius: 4px;
  19100. box-sizing: border-box;
  19101. background: #fff;
  19102. margin: 0 20px 0 0;
  19103. }
  19104. .elist_input .elist_input_box span {
  19105. height: 36px;
  19106. line-height: 36px;
  19107. color: rgb(82, 82, 82);
  19108. }
  19109. .elist_input .elist_input_box .remove {
  19110. height: 20px;
  19111. width: 20px;
  19112. background-size: 100% 100%;
  19113. background-position: unset;
  19114. margin-left: 5px;
  19115. }
  19116. .elist_input_box >>> .el-rate {
  19117. display: flex;
  19118. height: 36px;
  19119. align-items: center;
  19120. }
  19121. .elist_input_box .elist_inptu_text {
  19122. min-height: 50px;
  19123. /* width: 500px;
  19124. max-height: 150px; */
  19125. width: 100%;
  19126. line-height: 50px;
  19127. color: rgb(82, 82, 82);
  19128. overflow: auto;
  19129. text-indent: 5px;
  19130. background: #f7f6f9;
  19131. border-radius: 10px;
  19132. }
  19133. .elist_input_box .elist_inptu_text input {
  19134. width: 500px;
  19135. }
  19136. .elist_input_box >>> .el-rate__icon {
  19137. font-size: 24px;
  19138. }
  19139. .isClick {
  19140. background: #4d9def;
  19141. }
  19142. /*定义滚动条轨道 内阴影+圆角*/
  19143. .bzTypeBox::-webkit-scrollbar {
  19144. /*滚动条整体样式*/
  19145. width: 6px;
  19146. /*高宽分别对应横竖滚动条的尺寸*/
  19147. height: 6px;
  19148. }
  19149. /*定义滚动条轨道 内阴影+圆角*/
  19150. .bzTypeBox::-webkit-scrollbar-track {
  19151. border-radius: 10px;
  19152. background-color: rgba(0, 0, 0, 0.1);
  19153. }
  19154. /*定义滑块 内阴影+圆角*/
  19155. .bzTypeBox::-webkit-scrollbar-thumb {
  19156. border-radius: 10px;
  19157. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  19158. background-color: rgba(0, 0, 0, 0.1);
  19159. }
  19160. .choiceBox {
  19161. display: flex;
  19162. margin: 20px 0;
  19163. width: 100%;
  19164. }
  19165. .bzTypeBox {
  19166. display: flex;
  19167. width: 100%;
  19168. overflow: auto;
  19169. white-space: nowrap;
  19170. }
  19171. .bzChild {
  19172. cursor: pointer;
  19173. box-sizing: border-box;
  19174. padding-bottom: 10px;
  19175. font-weight: bold;
  19176. min-width: fit-content;
  19177. }
  19178. .bzChild.active {
  19179. color: #3e88f4;
  19180. border-bottom: 2px solid #2f80f3;
  19181. }
  19182. .bzChild + .bzChild {
  19183. margin-left: 25px;
  19184. }
  19185. .bzBox {
  19186. display: flex;
  19187. flex-direction: row;
  19188. align-items: center;
  19189. }
  19190. .bzBox .yCss {
  19191. width: 14px;
  19192. height: 14px;
  19193. background: #3681fc;
  19194. margin: 0 16px 0 7px;
  19195. border-radius: 50%;
  19196. }
  19197. .bzBox > div:nth-child(2) {
  19198. font-size: 18px;
  19199. font-weight: bold;
  19200. color: #0e1e33;
  19201. }
  19202. .navTitile {
  19203. padding: 0 0px 0 15px;
  19204. font-size: 16px;
  19205. font-weight: bold;
  19206. color: #0e1e33;
  19207. height: 40px;
  19208. line-height: 40px;
  19209. }
  19210. .isTypeOne {
  19211. width: 240px;
  19212. height: 170px;
  19213. /* border: 1px solid #f8f8f8; */
  19214. border-radius: 10px;
  19215. box-shadow: 0 0 6px 1px #dfdada;
  19216. }
  19217. .e_add_top {
  19218. display: flex;
  19219. justify-content: space-between;
  19220. padding: 20px 20px 0 20px;
  19221. border-radius: 3px;
  19222. background: #fff;
  19223. }
  19224. .e_add_title2 {
  19225. display: flex;
  19226. align-items: center;
  19227. }
  19228. .e_add_title2 span {
  19229. width: 40px;
  19230. }
  19231. .e_add_title {
  19232. display: flex;
  19233. align-items: center;
  19234. color: #b8b8b8;
  19235. font-size: 18px;
  19236. position: relative;
  19237. height: 40px;
  19238. }
  19239. .e_add_title span {
  19240. margin-right: 10px;
  19241. }
  19242. .e_add_title .el_input {
  19243. width: 300px;
  19244. }
  19245. .e_add_title >>> .el-input__inner {
  19246. width: 400px;
  19247. }
  19248. .e_add_btn {
  19249. }
  19250. .e_add_content {
  19251. display: flex;
  19252. width: 100%;
  19253. max-width: 650px;
  19254. height: 550px;
  19255. }
  19256. .e_add_list {
  19257. background: #fff;
  19258. height: 500px;
  19259. width: 210px;
  19260. position: relative;
  19261. margin: 15px 5px 0 0;
  19262. flex-shrink: 0;
  19263. display: flex;
  19264. flex-direction: column;
  19265. }
  19266. .e_add_list_title {
  19267. font-size: 20px;
  19268. width: 100%;
  19269. box-sizing: border-box;
  19270. padding: 15px 40px;
  19271. text-align: center;
  19272. border-bottom: 1px solid #eaeaea;
  19273. position: relative;
  19274. display: flex;
  19275. align-items: center;
  19276. justify-content: center;
  19277. height: 57px;
  19278. background: #f6f6f6;
  19279. }
  19280. .e_add_list_title span {
  19281. overflow: hidden;
  19282. white-space: nowrap;
  19283. text-overflow: ellipsis;
  19284. }
  19285. .e_add_list_title img {
  19286. position: absolute;
  19287. right: 15px;
  19288. width: 25px;
  19289. cursor: pointer;
  19290. top: 50%;
  19291. transform: translateY(-50%);
  19292. }
  19293. .e_add_list_body {
  19294. height: calc(100% - 187px);
  19295. overflow: auto;
  19296. }
  19297. .e_add_list_child {
  19298. width: 100%;
  19299. display: flex;
  19300. align-items: center;
  19301. justify-content: center;
  19302. position: relative;
  19303. box-sizing: border-box;
  19304. padding: 15px 40px;
  19305. text-align: center;
  19306. }
  19307. .e_add_list_child span {
  19308. overflow: hidden;
  19309. white-space: nowrap;
  19310. text-overflow: ellipsis;
  19311. cursor: pointer;
  19312. }
  19313. .e_add_list_child img {
  19314. position: absolute;
  19315. right: 10px;
  19316. width: 21px;
  19317. cursor: pointer;
  19318. top: 50%;
  19319. transform: translateY(-50%);
  19320. }
  19321. .e_add_list_child + .e_add_list_child {
  19322. border-top: 1px solid #eaeaea;
  19323. }
  19324. .e_add_list_child .active {
  19325. color: #409eff;
  19326. }
  19327. .e_add_list_btn {
  19328. position: absolute;
  19329. bottom: 0;
  19330. height: 50px;
  19331. background: rgb(120, 120, 254);
  19332. width: 100%;
  19333. color: #fff;
  19334. font-size: 16px;
  19335. text-align: center;
  19336. line-height: 50px;
  19337. cursor: pointer;
  19338. }
  19339. .e_add_list_detail {
  19340. position: absolute;
  19341. bottom: 0;
  19342. height: 130px;
  19343. background: rgb(120, 120, 254);
  19344. width: 100%;
  19345. color: #fff;
  19346. font-size: 16px;
  19347. display: flex;
  19348. align-items: center;
  19349. justify-content: center;
  19350. }
  19351. .e_add_list_detail textarea {
  19352. height: 90%;
  19353. width: 95%;
  19354. border: none;
  19355. resize: none;
  19356. outline: none;
  19357. padding: 5px;
  19358. box-sizing: border-box;
  19359. }
  19360. .e_add_list_pbox {
  19361. width: 100%;
  19362. max-width: 650px;
  19363. /* height: 600px; */
  19364. }
  19365. .e_add_list_pbox_title {
  19366. height: 50px;
  19367. background: #fff;
  19368. display: flex;
  19369. align-items: center;
  19370. width: 100%;
  19371. box-sizing: border-box;
  19372. padding: 0 20px;
  19373. }
  19374. .type_title {
  19375. font-size: 18px;
  19376. font-weight: 700;
  19377. }
  19378. .type_content {
  19379. font-size: 16px;
  19380. margin-left: 30px;
  19381. }
  19382. .type_content span + span {
  19383. margin-left: 20px;
  19384. }
  19385. .type_content span {
  19386. cursor: pointer;
  19387. padding-bottom: 5px;
  19388. box-sizing: border-box;
  19389. }
  19390. .type_content .active {
  19391. color: #409eff;
  19392. border-bottom: 2px solid #409eff;
  19393. }
  19394. .e_add_list_pbox_content {
  19395. height: calc(100% - 50px);
  19396. display: flex;
  19397. align-items: center;
  19398. width: 100%;
  19399. background: #fff;
  19400. }
  19401. .evaCss {
  19402. display: flex;
  19403. flex-direction: row;
  19404. flex-wrap: nowrap;
  19405. align-items: flex-start;
  19406. }
  19407. .cru_line {
  19408. position: absolute;
  19409. bottom: 0px;
  19410. transition: all 0.5s;
  19411. left: 0px;
  19412. width: 125px;
  19413. margin-left: -25px;
  19414. }
  19415. .isNoMessage {
  19416. width: 20%;
  19417. margin: 25% auto 0;
  19418. }
  19419. .isNoMessage > img {
  19420. width: 100%;
  19421. height: 100%;
  19422. }
  19423. .fullStyle >>> .el-dialog__body {
  19424. height: 100% !important;
  19425. }
  19426. .fullStyle >>> .el-dialog,
  19427. .fullStyle {
  19428. width: 100% !important;
  19429. max-width: 100% !important;
  19430. height: 100% !important;
  19431. margin: 0 !important;
  19432. }
  19433. .full_diy >>> .el-dialog {
  19434. margin: 0 !important;
  19435. height: 100%;
  19436. padding: 4px;
  19437. }
  19438. .full_diy >>> .el-dialog__body {
  19439. height: calc(100% - 100px);
  19440. }
  19441. .full_diy2 >>> .el-dialog__body {
  19442. height: calc(100% - 50px);
  19443. padding: 0;
  19444. }
  19445. .switchCss {
  19446. /* width: 100%; */
  19447. display: flex;
  19448. flex-direction: row;
  19449. flex-wrap: nowrap;
  19450. align-items: center;
  19451. /* justify-content: center; */
  19452. }
  19453. .isClickNav {
  19454. color: #499eef;
  19455. }
  19456. .commentImg {
  19457. width: 25px;
  19458. height: 25px;
  19459. cursor: pointer;
  19460. }
  19461. .commentImg > img {
  19462. width: 100%;
  19463. height: 100%;
  19464. }
  19465. .comment {
  19466. background: #f9f9f9;
  19467. border-radius: 0 0 15px 15px;
  19468. display: flex;
  19469. flex-direction: row;
  19470. flex-wrap: nowrap;
  19471. align-items: center;
  19472. justify-content: flex-end;
  19473. height: 35px;
  19474. }
  19475. .commentList {
  19476. display: flex;
  19477. flex-direction: row;
  19478. flex-wrap: nowrap;
  19479. align-items: center;
  19480. justify-content: center;
  19481. align-content: center;
  19482. /* margin-left: 15px; */
  19483. /* margin-left: 8px; */
  19484. }
  19485. .scoreImg {
  19486. width: 17px;
  19487. height: 17px;
  19488. }
  19489. .studentDetail {
  19490. display: flex;
  19491. flex-direction: row;
  19492. flex-wrap: nowrap;
  19493. /* align-items: center; */
  19494. align-items: flex-start;
  19495. }
  19496. .tx {
  19497. width: 50px;
  19498. }
  19499. .tx > img {
  19500. width: 100%;
  19501. height: 100%;
  19502. }
  19503. .nameAndTime {
  19504. display: flex;
  19505. flex-direction: column;
  19506. flex-wrap: nowrap;
  19507. align-items: flex-start;
  19508. margin-left: 10px;
  19509. }
  19510. .worksAnswer {
  19511. color: #4078dd;
  19512. margin: 10px 0;
  19513. font-size: 16px;
  19514. position: relative;
  19515. }
  19516. .worksAnswer > img {
  19517. width: 500px;
  19518. height: 300px;
  19519. object-fit: contain;
  19520. margin: 0 auto;
  19521. display: block;
  19522. }
  19523. .commentTop {
  19524. border-bottom: 1px solid #eaeaea;
  19525. padding-bottom: 10px;
  19526. }
  19527. .commentBox {
  19528. padding-top: 15px;
  19529. }
  19530. .pl {
  19531. font-size: 18px;
  19532. }
  19533. .plPerson {
  19534. width: 100%;
  19535. }
  19536. .plName {
  19537. display: flex;
  19538. flex-direction: row;
  19539. flex-wrap: nowrap;
  19540. align-items: baseline;
  19541. color: #78787a;
  19542. width: 100%;
  19543. }
  19544. .deleteComment {
  19545. cursor: pointer;
  19546. margin-left: auto;
  19547. color: #237ade;
  19548. }
  19549. .plContent {
  19550. margin-top: 5px;
  19551. }
  19552. .evalCss {
  19553. background: #fff;
  19554. font-size: 18px;
  19555. }
  19556. .nav {
  19557. color: #9d9d9d;
  19558. padding: 5px 0 15px 20px;
  19559. }
  19560. .middleBox {
  19561. padding: 5px 0 15px 20px;
  19562. }
  19563. .pfBox {
  19564. padding-bottom: 30px;
  19565. }
  19566. .nameAndrate {
  19567. display: flex;
  19568. flex-direction: row;
  19569. flex-wrap: nowrap;
  19570. align-items: center;
  19571. padding-bottom: 10px;
  19572. height: 30px;
  19573. line-height: 30px;
  19574. }
  19575. .nameAndrate > div {
  19576. margin-left: 10px;
  19577. color: #000;
  19578. height: 30px;
  19579. }
  19580. .nameAndrate >>> .el-rate__icon {
  19581. font-size: 28px !important;
  19582. }
  19583. .pfBox > div:nth-child(2) {
  19584. background: #f7f6f9;
  19585. width: 400px;
  19586. min-height: 45px;
  19587. border-radius: 10px;
  19588. font-size: 16px;
  19589. display: flex;
  19590. flex-wrap: wrap;
  19591. align-items: center;
  19592. padding: 10px 20px;
  19593. box-sizing: border-box;
  19594. color: #000;
  19595. }
  19596. .bz {
  19597. display: flex;
  19598. flex-direction: row;
  19599. flex-wrap: nowrap;
  19600. align-items: flex-start;
  19601. }
  19602. .bz > div {
  19603. padding: 0 10px;
  19604. }
  19605. .select_box2_title {
  19606. background: #fff;
  19607. border-radius: 5px;
  19608. padding: 15px 10px;
  19609. box-sizing: border-box;
  19610. margin-bottom: 10px;
  19611. display: flex;
  19612. flex-direction: row;
  19613. flex-wrap: nowrap;
  19614. align-items: center;
  19615. }
  19616. .select_box2_title > div:nth-child(2) {
  19617. margin-left: 10px;
  19618. color: #c4c4c4;
  19619. }
  19620. .select_box2_box {
  19621. display: flex;
  19622. height: 500px;
  19623. }
  19624. .select_box2_img {
  19625. width: calc(100% - 310px);
  19626. height: 100%;
  19627. overflow: auto;
  19628. background: #fff;
  19629. border-radius: 5px;
  19630. }
  19631. .select_box2_img img {
  19632. width: 100%;
  19633. }
  19634. .select_box2_answer {
  19635. background: #fff;
  19636. margin-left: 10px;
  19637. border-radius: 5px;
  19638. width: 300px;
  19639. overflow: auto;
  19640. height: 90%;
  19641. display: flex;
  19642. flex-direction: column;
  19643. align-items: flex-start;
  19644. padding-top: 10px;
  19645. box-sizing: border-box;
  19646. position: relative;
  19647. }
  19648. .select_answer_title {
  19649. padding: 0 0 15px 20px;
  19650. color: #c4c4c4;
  19651. }
  19652. .select_box2_answer_box {
  19653. margin: 0 0 10px 20px;
  19654. width: 85%;
  19655. display: flex;
  19656. flex-direction: row;
  19657. flex-wrap: nowrap;
  19658. align-items: center;
  19659. }
  19660. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  19661. color: #000;
  19662. }
  19663. .upAnswerCss {
  19664. position: absolute;
  19665. bottom: 15px;
  19666. right: 15px;
  19667. }
  19668. .upAnswerCss >>> .el-button {
  19669. width: 95px;
  19670. height: 35px;
  19671. line-height: 35px;
  19672. padding: 0;
  19673. }
  19674. .rightWidthCss {
  19675. width: 60%;
  19676. display: flex;
  19677. flex-direction: row;
  19678. align-items: flex-start;
  19679. }
  19680. .rightAnswer {
  19681. display: flex;
  19682. flex-direction: row;
  19683. flex-wrap: nowrap;
  19684. align-items: center;
  19685. color: red;
  19686. margin-bottom: 31px;
  19687. }
  19688. .rightAnswerCss {
  19689. display: flex;
  19690. flex-direction: column;
  19691. flex-wrap: nowrap;
  19692. padding-top: 60px;
  19693. }
  19694. .blueCss {
  19695. color: #767de1;
  19696. margin-left: 10px;
  19697. }
  19698. .redCss {
  19699. color: red;
  19700. }
  19701. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  19702. color: rgb(0 123 255) !important;
  19703. }
  19704. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  19705. color: rgb(0 123 255) !important;
  19706. }
  19707. .zuoyeYulan {
  19708. padding-top: 15px;
  19709. font-size: 18px;
  19710. display: flex;
  19711. align-items: flex-end;
  19712. }
  19713. .buttonA {
  19714. margin-left: 10px;
  19715. padding: 0;
  19716. }
  19717. .displayBox {
  19718. margin-bottom: 10px;
  19719. display: block;
  19720. border-bottom: 3px solid #eee;
  19721. display: flex;
  19722. align-items: center;
  19723. }
  19724. .easy_comment {
  19725. width: calc(100% - 90px);
  19726. margin-left: 10px;
  19727. display: flex;
  19728. flex-wrap: wrap;
  19729. }
  19730. .easy_comment > div {
  19731. border: 1px solid #4a4a4a;
  19732. color: #666;
  19733. border-radius: 15px;
  19734. padding: 5px 10px;
  19735. font-size: 16px;
  19736. margin-bottom: 10px;
  19737. margin-right: 5px;
  19738. cursor: pointer;
  19739. }
  19740. .easy_comment div:hover {
  19741. border: 1px solid #f7ba2a;
  19742. color: #c69217;
  19743. }
  19744. .xuan_right_box {
  19745. padding: 10px;
  19746. background: rgb(247, 247, 247);
  19747. margin: 10px 12px;
  19748. border-radius: 5px;
  19749. }
  19750. .tool_right_box {
  19751. display: flex;
  19752. align-items: center;
  19753. }
  19754. .tool_right_box + .tool_right_box {
  19755. margin-top: 10px;
  19756. }
  19757. .right_box_xuan {
  19758. background: rgb(0 123 255);
  19759. color: #fff;
  19760. border-radius: 5px;
  19761. padding: 5px;
  19762. margin-left: 10px;
  19763. }
  19764. .pButton:hover {
  19765. opacity: 1 !important;
  19766. }
  19767. .pButton {
  19768. position: fixed;
  19769. /* right: 5%; */
  19770. /* bottom: 5%; */
  19771. color: #fff;
  19772. /* width: 50px;
  19773. height: 50px; */
  19774. /* border-radius: 50%; */
  19775. text-align: center;
  19776. /* line-height: 50px; */
  19777. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  19778. cursor: pointer;
  19779. z-index: 999;
  19780. right: 0;
  19781. top: 110px;
  19782. width: 50px;
  19783. height: 50px;
  19784. background: #fff;
  19785. display: flex;
  19786. align-items: center;
  19787. justify-content: center;
  19788. box-shadow: 0px 0 8px 2px #c5c5c5;
  19789. border-radius: 5px;
  19790. }
  19791. .pzClass {
  19792. width: calc(100% - 340px);
  19793. }
  19794. .newDialogCss {
  19795. /* position: fixed;
  19796. right: 5%;
  19797. top: 50%;
  19798. width: 340px;
  19799. transform: translateY(-50%);
  19800. height: 60%;
  19801. box-shadow: 0px 0 8px 0px #555555;
  19802. border-radius: 15px;
  19803. z-index: 999; */
  19804. position: fixed;
  19805. right: 0;
  19806. top: 101px;
  19807. width: 340px;
  19808. height: calc(100% - 80px);
  19809. z-index: 999;
  19810. background: #fff;
  19811. border-radius: 15px;
  19812. border-top-right-radius: 0px;
  19813. border-bottom-right-radius: 0px;
  19814. overflow: hidden;
  19815. }
  19816. .pzTop {
  19817. color: #fff;
  19818. background: #000;
  19819. display: flex;
  19820. flex-direction: row;
  19821. flex-wrap: nowrap;
  19822. align-items: center;
  19823. justify-content: space-between;
  19824. height: 40px;
  19825. border-radius: 15px 15px 0 0;
  19826. }
  19827. .pzTop2 .checkbox {
  19828. display: flex;
  19829. align-items: center;
  19830. padding: 15px 30px;
  19831. flex: 0 0 auto;
  19832. font-weight: bold;
  19833. border-bottom: 1px solid #eee;
  19834. justify-content: space-between;
  19835. }
  19836. .pzTop2 .check {
  19837. text-align: center;
  19838. cursor: pointer;
  19839. box-sizing: border-box;
  19840. display: flex;
  19841. }
  19842. .pzTop2 img {
  19843. width: 25px;
  19844. cursor: pointer;
  19845. }
  19846. .pzTop > div:nth-child(1) {
  19847. padding-left: 10px;
  19848. }
  19849. .pzTop > div:nth-child(2) {
  19850. width: 15px;
  19851. height: 15px;
  19852. padding-right: 10px;
  19853. cursor: pointer;
  19854. }
  19855. .pzTop > div:nth-child(2) > img {
  19856. width: 100%;
  19857. height: 100%;
  19858. }
  19859. .pzBox,
  19860. .noPzBox {
  19861. height: calc(100% - 60px);
  19862. /* background: #ededed; */
  19863. background: #fff;
  19864. /* border-radius: 0 0 15px 15px; */
  19865. }
  19866. .noPzBox {
  19867. display: flex;
  19868. flex-direction: column;
  19869. flex-wrap: nowrap;
  19870. justify-content: center;
  19871. align-items: center;
  19872. }
  19873. .pzList {
  19874. background: #f7f7f7;
  19875. width: 90%;
  19876. margin: 0 auto 15px;
  19877. border-radius: 5px;
  19878. }
  19879. .pzNavTop {
  19880. display: flex;
  19881. flex-direction: row;
  19882. flex-wrap: nowrap;
  19883. padding: 10px 10px 0 10px;
  19884. align-items: center;
  19885. }
  19886. .pzDelete {
  19887. cursor: pointer;
  19888. margin-left: auto;
  19889. font-size: 14px;
  19890. color: #afafaf;
  19891. }
  19892. .pzNavTop > div:nth-child(1) {
  19893. background: #3760af;
  19894. width: 35px;
  19895. height: 35px;
  19896. color: #fff;
  19897. text-align: center;
  19898. line-height: 35px;
  19899. border-radius: 50%;
  19900. font-size: 14px;
  19901. }
  19902. .pzNavTop > div:nth-child(2) {
  19903. font-size: 18px;
  19904. color: #959595;
  19905. margin-left: 5px;
  19906. }
  19907. .pzContent {
  19908. padding: 10px;
  19909. word-break: break-word;
  19910. }
  19911. .pzContent audio {
  19912. width: 100%;
  19913. }
  19914. .pzContent audio::-webkit-media-controls-panel {
  19915. background: #fff;
  19916. }
  19917. .pzListBox {
  19918. padding-top: 15px;
  19919. height: calc(100% - 110px);
  19920. overflow: auto;
  19921. }
  19922. .addPzButton {
  19923. position: relative;
  19924. margin-top: 3px;
  19925. width: 100%;
  19926. }
  19927. .addPzButton .img1 {
  19928. position: absolute;
  19929. top: 50%;
  19930. right: 25px;
  19931. transform: translateY(-50%);
  19932. height: 100%;
  19933. display: flex;
  19934. align-items: center;
  19935. }
  19936. .addPzButton .img1 div {
  19937. display: flex;
  19938. }
  19939. .addPzButton .img1 div img {
  19940. width: 28px;
  19941. margin-left: 10px;
  19942. cursor: pointer;
  19943. }
  19944. .addPzButton .img1 div span {
  19945. font-size: 14px;
  19946. margin: 4px 0 0 3px;
  19947. color: #afafaf;
  19948. }
  19949. .addPz {
  19950. background: #4b79ce;
  19951. width: 100px;
  19952. color: #fff;
  19953. font-size: 12px;
  19954. height: 30px;
  19955. margin: 0 auto;
  19956. text-align: center;
  19957. line-height: 30px;
  19958. border-radius: 10px;
  19959. cursor: pointer;
  19960. }
  19961. .addDialogCss {
  19962. position: fixed;
  19963. right: 37%;
  19964. top: 50%;
  19965. width: 600px;
  19966. transform: translateY(-50%);
  19967. height: 70%;
  19968. min-height: 450px;
  19969. box-shadow: 0px 0 8px 0px #555555;
  19970. border-radius: 15px;
  19971. z-index: 999;
  19972. }
  19973. .teacherPz {
  19974. display: flex;
  19975. flex-direction: row;
  19976. align-items: center;
  19977. flex-wrap: nowrap;
  19978. }
  19979. .teacherPzImg {
  19980. width: 30px;
  19981. height: 30px;
  19982. }
  19983. .teacherPzImg > img {
  19984. width: 100%;
  19985. height: 100%;
  19986. }
  19987. .addPzBox {
  19988. height: calc(100% - 40px);
  19989. background: #ededed;
  19990. }
  19991. .pzAudioClass {
  19992. margin: 15px 14px;
  19993. background: #fff;
  19994. height: 100%;
  19995. display: flex;
  19996. justify-content: center;
  19997. align-items: center;
  19998. }
  19999. .pzConText {
  20000. width: 95%;
  20001. height: 100%;
  20002. margin: 10px auto 0;
  20003. border: none;
  20004. background: #fff;
  20005. border-radius: 0px;
  20006. }
  20007. .pzConText >>> .text {
  20008. height: calc(100% - 82px);
  20009. }
  20010. .addTextCss {
  20011. background: #4b79ce;
  20012. width: 80px;
  20013. height: 30px;
  20014. text-align: center;
  20015. color: #fff;
  20016. line-height: 30px;
  20017. border-radius: 10px;
  20018. margin: 10px auto 0;
  20019. cursor: pointer;
  20020. }
  20021. .pzConText:focus-visible {
  20022. border: none !important;
  20023. }
  20024. .maxWidth {
  20025. width: 1000px;
  20026. }
  20027. .noPz {
  20028. width: 150px;
  20029. margin: 0 auto 20%;
  20030. }
  20031. .noPz > img {
  20032. width: 100%;
  20033. height: 100%;
  20034. }
  20035. .pzList .time {
  20036. text-align: right;
  20037. box-sizing: border-box;
  20038. padding: 0 10px 10px 0px;
  20039. color: #949494;
  20040. font-size: 14px;
  20041. }
  20042. /* code 样式 */
  20043. .cont {
  20044. /* -webkit-user-modify: read-write; */
  20045. overflow-wrap: break-word;
  20046. -webkit-line-break: after-white-space;
  20047. }
  20048. /* table 样式 */
  20049. .cont >>> table {
  20050. border-top: 1px solid #ccc;
  20051. border-left: 1px solid #ccc;
  20052. }
  20053. .cont >>> table td,
  20054. .cont >>> table th {
  20055. border-bottom: 1px solid #ccc;
  20056. border-right: 1px solid #ccc;
  20057. /* padding: 20px 5px; */
  20058. padding: 5px 10px;
  20059. max-width: 0px;
  20060. height: 30px;
  20061. vertical-align: baseline;
  20062. box-sizing: border-box;
  20063. }
  20064. .cont >>> table th {
  20065. border-bottom: 2px solid #ccc;
  20066. text-align: center;
  20067. }
  20068. /* blockquote 样式 */
  20069. .cont >>> blockquote {
  20070. display: block;
  20071. border-left: 8px solid #d0e5f2;
  20072. padding: 5px 10px;
  20073. margin: 10px 0;
  20074. line-height: 1.4;
  20075. font-size: 100%;
  20076. background-color: #f1f1f1;
  20077. }
  20078. /* code 样式 */
  20079. .cont >>> code {
  20080. display: inline-block;
  20081. *display: inline;
  20082. *zoom: 1;
  20083. background-color: #f1f1f1;
  20084. border-radius: 3px;
  20085. padding: 3px 5px;
  20086. margin: 0 3px;
  20087. }
  20088. .cont >>> pre code {
  20089. display: block;
  20090. }
  20091. /* ul ol 样式 */
  20092. .cont >>> ul,
  20093. ol {
  20094. margin: 10px 0 10px 20px;
  20095. }
  20096. .addPzCheck {
  20097. display: flex;
  20098. flex-direction: row;
  20099. flex-wrap: nowrap;
  20100. padding: 10px 15px 0;
  20101. }
  20102. .addPzCheck span {
  20103. cursor: pointer;
  20104. padding-bottom: 5px;
  20105. font-weight: bold;
  20106. }
  20107. .addPzCheck span + span {
  20108. margin-left: 10px;
  20109. }
  20110. .addPzCheck .isChooseActive {
  20111. color: #3e88f4;
  20112. border-bottom: 2px solid #2f80f3;
  20113. }
  20114. .scoreBox,
  20115. .scoreDetailBox {
  20116. display: flex;
  20117. align-items: center;
  20118. justify-content: flex-start;
  20119. margin-top: 20px;
  20120. font-size: 18px;
  20121. width: 100%;
  20122. }
  20123. .scoreBox .t,
  20124. .scoreDetailBox .t {
  20125. margin-right: 10px;
  20126. width: 100px;
  20127. text-align: right;
  20128. }
  20129. .scoreDetailBox {
  20130. align-items: flex-start;
  20131. }
  20132. .scoreDetailBox >>> .el-textarea {
  20133. width: calc(100% - 200px);
  20134. }
  20135. .scoreBox >>> .el-input {
  20136. width: 130px;
  20137. font-size: 38px;
  20138. }
  20139. .scoreBox >>> .el-input__inner {
  20140. height: 60px;
  20141. }
  20142. .answerScore {
  20143. position: absolute;
  20144. top: 10px;
  20145. right: 10px;
  20146. background: #0000008f;
  20147. border-radius: 5px;
  20148. padding: 3px 5px;
  20149. font-size: 14px;
  20150. color: #fff;
  20151. cursor: pointer;
  20152. }
  20153. .open_box .switch_box {
  20154. width: 100%;
  20155. margin: 0 auto;
  20156. display: flex;
  20157. justify-content: space-between;
  20158. }
  20159. .open_box .switch_box + .switch_box {
  20160. margin-top: 10px;
  20161. }
  20162. .deleteImg {
  20163. width: 25px !important;
  20164. height: 25px !important;
  20165. cursor: pointer;
  20166. position: absolute;
  20167. top: 10px;
  20168. right: 10px;
  20169. }
  20170. .deleteImg2 {
  20171. width: 15px !important;
  20172. height: 15px !important;
  20173. top: 5px;
  20174. right: 5px;
  20175. }
  20176. .rightW {
  20177. right: 40px;
  20178. }
  20179. .drawPBox {
  20180. display: flex;
  20181. flex-direction: column;
  20182. position: relative;
  20183. }
  20184. .drawPBox span {
  20185. font-size: 18px;
  20186. color: #606266;
  20187. padding-bottom: 10px;
  20188. margin: 10px 0;
  20189. border-bottom: 1px solid #eaeaea;
  20190. }
  20191. .drawPBox img {
  20192. width: 500px;
  20193. height: 300px;
  20194. object-fit: contain;
  20195. cursor: pointer;
  20196. margin: 0 auto;
  20197. }
  20198. .sentenBox {
  20199. background: #fff;
  20200. height: 450px;
  20201. overflow: auto;
  20202. background-image: url("../../assets/icon/conSentences/stuBg.png");
  20203. background-position: 102%;
  20204. background-repeat: no-repeat;
  20205. background-size: 60%;
  20206. }
  20207. .addSen {
  20208. background: #409efe;
  20209. width: 90px;
  20210. color: #fff;
  20211. height: 35px;
  20212. text-align: center;
  20213. line-height: 35px;
  20214. border-radius: 5px;
  20215. float: right;
  20216. margin: 10px 20px 0 0;
  20217. cursor: pointer;
  20218. }
  20219. .sentenTop {
  20220. display: flex;
  20221. flex-direction: row;
  20222. flex-wrap: nowrap;
  20223. align-items: center;
  20224. padding: 55px 0 0 20px;
  20225. box-sizing: border-box;
  20226. }
  20227. .sentenTop > div:nth-child(2) {
  20228. width: 300px;
  20229. margin: 0 15px;
  20230. }
  20231. .sentenTop > div:nth-child(3) {
  20232. background: #409efe;
  20233. color: #fff;
  20234. width: 65px;
  20235. height: 35px;
  20236. text-align: center;
  20237. line-height: 35px;
  20238. border-radius: 5px;
  20239. cursor: pointer;
  20240. }
  20241. .cardList,
  20242. .cardList1 {
  20243. padding: 10px 0 10px 0;
  20244. display: flex;
  20245. flex-direction: row;
  20246. flex-wrap: wrap;
  20247. align-items: center;
  20248. box-sizing: border-box;
  20249. border-bottom: 1px solid #f4f4f4;
  20250. width: 98%;
  20251. margin: 0 auto;
  20252. min-width: 60%;
  20253. max-width: 85%;
  20254. }
  20255. .cardList1 {
  20256. padding: 10px 0 10px 10px !important;
  20257. margin: 0 !important;
  20258. }
  20259. .cardBox {
  20260. display: flex;
  20261. flex-direction: row;
  20262. flex-wrap: wrap;
  20263. align-items: center;
  20264. align-content: center;
  20265. }
  20266. .cardBox > div {
  20267. margin-bottom: 10px;
  20268. }
  20269. .isCard,
  20270. .isChooseCard,
  20271. .noCard,
  20272. .isCard1 {
  20273. width: 130px;
  20274. height: 60px;
  20275. text-align: center;
  20276. line-height: 60px;
  20277. font-size: 20px;
  20278. cursor: pointer;
  20279. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  20280. background-size: cover;
  20281. transition: all 2s;
  20282. margin-right: 20px;
  20283. }
  20284. .isCard > div,
  20285. .noCard > div,
  20286. .isCard1 > div {
  20287. white-space: nowrap;
  20288. overflow: hidden;
  20289. text-overflow: ellipsis;
  20290. width: 75%;
  20291. margin: 0 auto;
  20292. }
  20293. .noCard {
  20294. background-image: none;
  20295. }
  20296. .isCard1 {
  20297. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  20298. }
  20299. .isChooseCard {
  20300. background-image: none;
  20301. border: 1px dashed #b9b9b9;
  20302. border-radius: 10px;
  20303. }
  20304. .card {
  20305. width: 130px;
  20306. height: 60px;
  20307. }
  20308. .card > img {
  20309. width: 100%;
  20310. height: 100%;
  20311. }
  20312. .rightCardBox {
  20313. margin: 10px 0 0 10px;
  20314. }
  20315. .rightCardBox > div:nth-child(1) {
  20316. margin-bottom: 10px;
  20317. }
  20318. .cardCss {
  20319. display: flex;
  20320. flex-direction: column;
  20321. flex-wrap: nowrap;
  20322. align-items: center;
  20323. border-bottom: 3px solid #b4c3d3;
  20324. padding: 0 0 5px 0;
  20325. margin-right: 10px;
  20326. }
  20327. .cardCss > div:nth-child(2) {
  20328. background: #5b7b9d;
  20329. color: #fff;
  20330. width: 20px;
  20331. height: 20px;
  20332. border-radius: 50%;
  20333. text-align: center;
  20334. line-height: 20px;
  20335. }
  20336. .isWrong {
  20337. display: flex;
  20338. flex-direction: row;
  20339. flex-wrap: nowrap;
  20340. align-content: center;
  20341. align-items: center;
  20342. }
  20343. .answerRight {
  20344. width: 25%;
  20345. }
  20346. .isTj {
  20347. display: flex;
  20348. flex-direction: row;
  20349. flex-wrap: nowrap;
  20350. align-items: center;
  20351. }
  20352. .isTj > div:nth-child(2) {
  20353. color: #727070;
  20354. margin-left: 10px;
  20355. }
  20356. .isTjImg {
  20357. width: 30px;
  20358. height: 30px;
  20359. }
  20360. .isTjImg > img {
  20361. width: 100%;
  20362. height: 100%;
  20363. }
  20364. .cardAnswerBox {
  20365. font-size: 18px;
  20366. width: 97%;
  20367. border: 5px;
  20368. padding: 0;
  20369. border-radius: 5px;
  20370. margin: 10px auto;
  20371. word-break: break-word;
  20372. }
  20373. .w_name {
  20374. margin-bottom: 10px;
  20375. }
  20376. .w_name span {
  20377. font-size: 16px;
  20378. }
  20379. .w_teachert {
  20380. width: 50px !important;
  20381. position: absolute;
  20382. height: auto !important;
  20383. z-index: 10;
  20384. right: 25px;
  20385. top: -25px;
  20386. }
  20387. .group_workBox {
  20388. }
  20389. .group_workBox + .group_workBox {
  20390. margin-top: 20px;
  20391. }
  20392. .group_box {
  20393. padding-bottom: 20px;
  20394. border-bottom: 2px solid #f0f0f0;
  20395. }
  20396. .group_title {
  20397. display: flex;
  20398. align-items: center;
  20399. justify-content: space-between;
  20400. }
  20401. .group_name {
  20402. background-image: url(../../assets/icon/groupN.png);
  20403. width: 220px;
  20404. background-size: 100% 100%;
  20405. height: 67px;
  20406. padding: 0 20px 0 43px;
  20407. box-sizing: border-box;
  20408. line-height: 63px;
  20409. color: #fff;
  20410. overflow: hidden;
  20411. white-space: nowrap;
  20412. text-overflow: ellipsis;
  20413. }
  20414. .group_work {
  20415. width: 100%;
  20416. padding: 0 10px;
  20417. box-sizing: border-box;
  20418. display: flex;
  20419. flex-wrap: wrap;
  20420. }
  20421. .g_d_box {
  20422. display: flex;
  20423. flex-flow: wrap;
  20424. justify-content: space-around;
  20425. }
  20426. .g_d_box .isChair {
  20427. background-image: url(../../assets/avatar.png) !important;
  20428. }
  20429. .g_d_group {
  20430. width: 500px;
  20431. margin-bottom: 80px;
  20432. }
  20433. .g_d_group_chair {
  20434. display: flex;
  20435. align-items: center;
  20436. justify-content: center;
  20437. }
  20438. .g_d_group_chair > div + div {
  20439. margin-left: 30px;
  20440. }
  20441. .g_d_group_chair > div,
  20442. .g_d_group_chair2 > div {
  20443. display: flex;
  20444. flex-direction: column;
  20445. align-items: center;
  20446. }
  20447. .g_d_group_chair > div > span:nth-child(1),
  20448. .g_d_group_chair2 > div > span:nth-child(1) {
  20449. background-image: url(../../assets/icon/chair.png);
  20450. width: 50px;
  20451. height: 50px;
  20452. display: block;
  20453. background-size: 100% 100%;
  20454. }
  20455. .g_d_group_tableBox {
  20456. display: flex;
  20457. align-items: center;
  20458. justify-content: center;
  20459. }
  20460. .g_d_group_chair2 {
  20461. display: flex;
  20462. flex-direction: column;
  20463. align-items: center;
  20464. justify-content: center;
  20465. }
  20466. .g_d_group_chair2 > div + div {
  20467. margin-top: 10px;
  20468. }
  20469. .g_d_group_table {
  20470. background-image: url(../../assets/icon/groupBg.png);
  20471. width: 354px;
  20472. height: 196px;
  20473. background-size: 100% 100%;
  20474. display: flex;
  20475. align-items: center;
  20476. justify-content: center;
  20477. flex-direction: column;
  20478. color: #fff;
  20479. }
  20480. .g_d_group_table > div:nth-child(1) {
  20481. font-size: 24px;
  20482. margin-bottom: 5px;
  20483. }
  20484. .g_d_group_table > div:nth-child(2) div {
  20485. cursor: pointer;
  20486. background: #2e77bf;
  20487. padding: 4px 10px;
  20488. border-radius: 5px;
  20489. }
  20490. .groupBox {
  20491. }
  20492. .groupContent + .groupContent {
  20493. margin-top: 30px;
  20494. }
  20495. .groupTitle {
  20496. font-size: 24px;
  20497. color: rgb(80, 80, 80);
  20498. margin-bottom: 20px;
  20499. }
  20500. .groupName {
  20501. display: flex;
  20502. align-items: center;
  20503. }
  20504. .groupn {
  20505. font-size: 15px;
  20506. margin-right: 10px;
  20507. }
  20508. .groupName + .groupName {
  20509. margin-top: 15px;
  20510. }
  20511. .groupBtn {
  20512. margin-left: 10px;
  20513. }
  20514. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  20515. text-align: left;
  20516. }
  20517. .g_d_btnBox {
  20518. display: flex;
  20519. justify-content: flex-end;
  20520. align-items: flex-end;
  20521. margin-bottom: 20px;
  20522. }
  20523. .updateChair {
  20524. position: relative;
  20525. }
  20526. .updateChairBtn {
  20527. position: absolute;
  20528. width: 50px;
  20529. height: 50px;
  20530. overflow: hidden;
  20531. /* display: flex; */
  20532. align-items: center;
  20533. justify-content: center;
  20534. background: #00000087;
  20535. color: #fff;
  20536. border-radius: 50px;
  20537. display: none;
  20538. cursor: pointer;
  20539. }
  20540. .updateChair:hover .updateChairBtn {
  20541. display: flex;
  20542. }
  20543. .group_staic_box {
  20544. display: flex;
  20545. padding: 30px 40px 10px;
  20546. flex-wrap: wrap;
  20547. }
  20548. .group_staic {
  20549. /* width: 50%; */
  20550. margin-bottom: 20px;
  20551. display: flex;
  20552. align-items: center;
  20553. }
  20554. .group_staic span:nth-child(1) {
  20555. width: 150px;
  20556. text-align: right;
  20557. margin-right: 15px;
  20558. }
  20559. .group_staic span:nth-child(2) {
  20560. background: rgb(0 123 255);
  20561. color: #fff;
  20562. border-radius: 5px;
  20563. padding: 5px;
  20564. }
  20565. .codeFileBox {
  20566. height: 300px;
  20567. background: #fff;
  20568. display: flex;
  20569. align-items: center;
  20570. justify-content: center;
  20571. }
  20572. .codeFileBox img {
  20573. width: 200px;
  20574. margin: 0;
  20575. height: auto;
  20576. }
  20577. .codeFileBox div {
  20578. background: rgb(80, 142, 226);
  20579. color: #fff;
  20580. padding: 10px 20px;
  20581. border-radius: 25px;
  20582. cursor: pointer;
  20583. margin-left: 15px;
  20584. }
  20585. .radioBox {
  20586. display: flex;
  20587. flex-direction: column;
  20588. flex-wrap: nowrap;
  20589. align-items: flex-start;
  20590. }
  20591. .radioBox > div {
  20592. margin: 10px 0 0 10px;
  20593. }
  20594. /* .radioBox >>> .el-radio__input,
  20595. .radioBox >>> .el-checkbox__inner {
  20596. margin-left: 10px;
  20597. } */
  20598. .radioBox >>> .el-radio__label,
  20599. .radioBox >>> .el-checkbox__label {
  20600. display: flex;
  20601. align-items: center;
  20602. }
  20603. .radioBox >>> .el-radio__label > span {
  20604. width: 100%;
  20605. display: -webkit-box;
  20606. overflow: hidden;
  20607. white-space: normal !important;
  20608. text-overflow: ellipsis;
  20609. word-wrap: break-word;
  20610. }
  20611. .inImg {
  20612. width: 100px;
  20613. cursor: pointer;
  20614. }
  20615. .inImg > img {
  20616. width: 100%;
  20617. height: 100%;
  20618. object-fit: cover;
  20619. }
  20620. .timuImgBox {
  20621. margin: 10px 0;
  20622. display: flex;
  20623. flex-direction: column;
  20624. flex-wrap: wrap;
  20625. align-items: flex-start;
  20626. }
  20627. .timuImg {
  20628. width: 150px;
  20629. margin: 5px 0;
  20630. cursor: pointer;
  20631. }
  20632. .timuImg > img {
  20633. width: 100%;
  20634. height: 100%;
  20635. object-fit: cover;
  20636. }
  20637. .worksTop {
  20638. display: flex;
  20639. flex-direction: row;
  20640. align-items: flex-end;
  20641. }
  20642. .corOpen {
  20643. margin: 0 0 0 10px;
  20644. font-size: 14px;
  20645. cursor: pointer;
  20646. color: #505050;
  20647. }
  20648. .corOpen:hover {
  20649. color: #499eef;
  20650. }
  20651. .navCorOpenBox {
  20652. display: flex;
  20653. flex-direction: row;
  20654. align-items: center;
  20655. justify-content: space-between;
  20656. height: 55px;
  20657. background: #ffffff;
  20658. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  20659. border-radius: 8px 8px 0px 0px;
  20660. z-index: 9;
  20661. position: relative;
  20662. }
  20663. .navCorOpen {
  20664. padding-right: 15px;
  20665. cursor: pointer;
  20666. width: 20px;
  20667. display: flex;
  20668. }
  20669. .navCorOpen > img {
  20670. width: 100%;
  20671. height: 100%;
  20672. }
  20673. .mlImg {
  20674. width: 25px !important;
  20675. cursor: pointer;
  20676. margin-top: 5px;
  20677. }
  20678. .mlImg > img {
  20679. width: 100%;
  20680. height: 100%;
  20681. }
  20682. .navLeftCss {
  20683. width: 100% !important;
  20684. left: 0 !important;
  20685. }
  20686. .isContentCss {
  20687. width: 100% !important;
  20688. }
  20689. .isAllWidth {
  20690. width: 100% !important;
  20691. }
  20692. .toolBoxSteps {
  20693. position: absolute;
  20694. top: 50%;
  20695. transform: translateY(-50%);
  20696. cursor: pointer;
  20697. width: 60px;
  20698. display: flex;
  20699. align-items: center;
  20700. justify-content: center;
  20701. }
  20702. .toolBoxSteps:nth-child(1) > img,
  20703. .toolBoxSteps:nth-child(2) > img {
  20704. width: 24px;
  20705. }
  20706. .toolBoxSteps:nth-child(1) {
  20707. left: 0;
  20708. }
  20709. .toolBoxSteps:nth-child(2) {
  20710. right: 0;
  20711. }
  20712. .isChooseActive {
  20713. color: #3681fc !important;
  20714. font-weight: bold !important;
  20715. }
  20716. .tool_box {
  20717. width: 100%;
  20718. margin-top: 20px;
  20719. }
  20720. .tool_type_box {
  20721. display: flex;
  20722. flex-direction: row;
  20723. align-items: baseline;
  20724. flex-wrap: nowrap;
  20725. justify-content: flex-start;
  20726. position: relative;
  20727. }
  20728. .toolSort {
  20729. display: flex;
  20730. flex-direction: row;
  20731. flex-wrap: wrap;
  20732. justify-content: flex-start;
  20733. align-items: flex-start;
  20734. }
  20735. .toolSort > div {
  20736. margin: 0 45px 0 0;
  20737. width: auto;
  20738. }
  20739. .tools {
  20740. width: 100%;
  20741. display: flex;
  20742. flex-direction: column;
  20743. flex-wrap: nowrap;
  20744. align-items: flex-start;
  20745. }
  20746. .whiteBIcon {
  20747. width: 80px;
  20748. cursor: pointer;
  20749. display: flex;
  20750. flex-direction: column;
  20751. flex-wrap: nowrap;
  20752. align-items: center;
  20753. }
  20754. .whiteBIcon > img {
  20755. width: 100%;
  20756. height: 100%;
  20757. }
  20758. .whiteBIcon > img {
  20759. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  20760. border-radius: 15px;
  20761. }
  20762. .dia_tool_box {
  20763. display: flex;
  20764. flex-wrap: wrap;
  20765. width: 100%;
  20766. }
  20767. .dia_tool_box > div {
  20768. margin-right: 40px;
  20769. }
  20770. .check {
  20771. /* width: 20px;
  20772. height: 20px; */
  20773. cursor: pointer;
  20774. margin: 10px 0;
  20775. }
  20776. .checkDiv {
  20777. display: flex;
  20778. align-items: center;
  20779. }
  20780. .checkDiv span {
  20781. margin-left: 5px;
  20782. color: #858585;
  20783. }
  20784. .check img {
  20785. width: 20px;
  20786. height: 20px;
  20787. }
  20788. .fileC_box > .fileC_title {
  20789. padding: 10px 5px;
  20790. border-top: 1px solid #cdcdcd;
  20791. font-size: 14px;
  20792. color: #868686;
  20793. }
  20794. .pl_select_box {
  20795. height: 40px;
  20796. line-height: 40px;
  20797. width: 100%;
  20798. cursor: pointer;
  20799. padding: 0 20px;
  20800. box-sizing: border-box;
  20801. border-radius: 5px;
  20802. border: 1px solid #d6d6d6;
  20803. white-space: nowrap;
  20804. overflow: hidden;
  20805. text-overflow: ellipsis;
  20806. background: #fff;
  20807. text-align: left;
  20808. }
  20809. .stageBoxCss {
  20810. display: flex;
  20811. flex-direction: row;
  20812. flex-wrap: nowrap;
  20813. align-items: center;
  20814. height: 50px;
  20815. border-bottom: 1px solid #e2f5fc;
  20816. cursor: pointer;
  20817. }
  20818. .closeTri {
  20819. width: 20px;
  20820. height: 20px;
  20821. padding-left: 15px;
  20822. }
  20823. .closeTri > img {
  20824. width: 100%;
  20825. height: 100%;
  20826. }
  20827. .stageChild {
  20828. height: 0;
  20829. overflow: hidden;
  20830. transition: all 0.5s;
  20831. }
  20832. .navItem {
  20833. background: #f0f4fa;
  20834. border-radius: 8px;
  20835. width: 90%;
  20836. margin: 10px auto 0;
  20837. display: flex;
  20838. flex-direction: row;
  20839. flex-wrap: nowrap;
  20840. justify-content: flex-start;
  20841. align-items: center;
  20842. }
  20843. .navItemList {
  20844. display: flex;
  20845. flex-direction: row;
  20846. flex-wrap: nowrap;
  20847. align-items: center;
  20848. padding: 18px 13px;
  20849. cursor: pointer;
  20850. font-size: 16px;
  20851. font-weight: 400;
  20852. color: #0e1e33;
  20853. justify-content: flex-start;
  20854. width: 100%;
  20855. border-radius: 8px;
  20856. }
  20857. .navItemList > div {
  20858. font-size: 16px;
  20859. font-weight: 400;
  20860. color: #0e1e33;
  20861. }
  20862. .isItemList {
  20863. background: #3681fc;
  20864. }
  20865. .isItemList > div {
  20866. color: #fff;
  20867. }
  20868. .navListItem {
  20869. width: 220px;
  20870. height: 50px;
  20871. margin: 0px auto 10px;
  20872. display: flex;
  20873. flex-direction: row;
  20874. flex-wrap: nowrap;
  20875. align-items: center;
  20876. justify-content: space-between;
  20877. background: #f0f4fa;
  20878. border-radius: 6px 6px 6px 6px;
  20879. }
  20880. .downIcon {
  20881. width: 20px;
  20882. height: 20px;
  20883. margin-right: 15px;
  20884. cursor: pointer;
  20885. }
  20886. .downIcon > img {
  20887. width: 100%;
  20888. height: 100%;
  20889. }
  20890. .newButton {
  20891. width: 102px;
  20892. height: 36px;
  20893. background: #e7ebf1;
  20894. border-radius: 4px;
  20895. color: #0e1e33;
  20896. font-weight: 400;
  20897. font-size: 14px;
  20898. border: none;
  20899. float: right;
  20900. margin-left: 10px;
  20901. }
  20902. </style>