studyStudent.vue 746 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <!-- 极简模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 900px;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. "
  13. >
  14. <div class="btnAllNT">
  15. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  16. <img
  17. src="../../assets/icon/learn/addTool.png"
  18. @click="openToolAll"
  19. style="position: relative"
  20. />
  21. <img
  22. src="../../assets/icon/learn/last.png"
  23. @click="nextOrpreSteps(0)"
  24. />
  25. <img
  26. src="../../assets/icon/learn/next.png"
  27. @click="nextOrpreSteps(1)"
  28. />
  29. <img
  30. src="../../assets/icon/learn/return.png"
  31. @click.stop="
  32. goTo(
  33. '/courseDetail?userid=' +
  34. userid +
  35. '&oid=' +
  36. oid +
  37. '&org=' +
  38. org +
  39. '&cid=' +
  40. classId +
  41. '&courseId=' +
  42. id +
  43. '&tType=' +
  44. tType +
  45. '&screenType=' +
  46. screenType
  47. )
  48. "
  49. />
  50. </div>
  51. <div
  52. class="pButton"
  53. style="left: 0; top: 140px"
  54. v-if="mlDialog == false"
  55. @click="setContent2(true)"
  56. >
  57. <!-- 批 , getCourseDetail()-->
  58. <img
  59. src="../../assets/icon/newIcons/isRight.png"
  60. style="width: 45px"
  61. alt=""
  62. />
  63. </div>
  64. <div class="pb_left" v-else>
  65. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  66. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  67. <div class="courseTitle">
  68. <div
  69. style="
  70. max-width: calc(100% - 40px);
  71. width: auto;
  72. white-space: nowrap;
  73. overflow: hidden;
  74. text-overflow: ellipsis;
  75. word-break: break-word;
  76. display: block;
  77. "
  78. >
  79. <el-tooltip
  80. effect="light"
  81. :content="courseDetail.title"
  82. placement="top"
  83. >
  84. <div class="ctitle">
  85. {{ courseDetail.title }}
  86. </div>
  87. </el-tooltip>
  88. </div>
  89. <el-tooltip effect="light" content="收缩" placement="top">
  90. <div class="mlImg" @click="setContent2(false)">
  91. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  92. </div>
  93. </el-tooltip>
  94. </div>
  95. </div>
  96. <div class="cru_selectBox">
  97. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  98. <div class="stageChild" :class="{ navActive: item.isOpen }">
  99. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  100. <div
  101. class="navItem"
  102. :class="{
  103. openTaskActive:
  104. navIndex == taskCount &&
  105. nav.id == navId &&
  106. stageIndex == courseType,
  107. }"
  108. >
  109. <div v-if="nav.tool[0].tool != undefined">
  110. <div
  111. class="closeTri1"
  112. v-if="nav.isOpen"
  113. @click="openTask(stageIndex, navIndex, nav.id)"
  114. >
  115. <img src="../../assets/icon/newIcons/bDown.png" alt />
  116. </div>
  117. <div
  118. class="closeTri1"
  119. v-else
  120. @click="openTask(stageIndex, navIndex, nav.id)"
  121. >
  122. <img src="../../assets/icon/newIcons/right.png" alt />
  123. </div>
  124. </div>
  125. <div v-else class="noToolBlue"></div>
  126. <div
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. class="navItemList"
  129. :class="{
  130. isItemList:
  131. navIndex == taskCount &&
  132. nav.id == navId &&
  133. stageIndex == courseType,
  134. }"
  135. >
  136. <div>任务{{ navIndex + 1 }}:</div>
  137. <el-tooltip
  138. effect="light"
  139. :content="nav.taskName"
  140. placement="top"
  141. >
  142. <div
  143. :style="{
  144. width:
  145. IsLookOpen && !nav.isLook
  146. ? 'calc(100% - 75px)'
  147. : 'auto',
  148. }"
  149. >
  150. {{ nav.taskName }}
  151. </div>
  152. </el-tooltip>
  153. </div>
  154. </div>
  155. <div
  156. v-if="nav.tool[0].tool != undefined"
  157. class="toolChild"
  158. :class="{ toolActive: nav.isOpen }"
  159. >
  160. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  161. <div
  162. class="gjCss"
  163. :class="{
  164. isGjCss:
  165. navIndex == taskCount &&
  166. nav.id == navId &&
  167. stageIndex == courseType &&
  168. toolIndex == toolIndex2,
  169. }"
  170. @click="
  171. checkBz1(stageIndex, navIndex, toolIndex2, nav.id)
  172. "
  173. >
  174. <div>工具{{ toolIndex2 + 1 }}:</div>
  175. <div v-if="t.tool == 58">模拟驾驶</div>
  176. <div v-if="t.tool == 59">路径搜索</div>
  177. <div v-if="t.tool == 60">深度学习</div>
  178. <div v-if="t.tool == 10">倒计时</div>
  179. <div v-if="t.tool == 65">挑人</div>
  180. <div v-if="t.tool == 7">思维网格</div>
  181. <div v-if="t.tool == 1">电子白板</div>
  182. <div v-if="t.tool == 52">文档</div>
  183. <div v-if="t.tool == 3">思维导图</div>
  184. <div v-if="t.tool == 48">表格</div>
  185. <div v-if="t.tool == 49">学生分组</div>
  186. <div v-if="t.tool == 4">问卷调查</div>
  187. <div v-if="t.tool == 45">选择题</div>
  188. <div v-if="t.tool == 15">问答</div>
  189. <div v-if="t.tool == 16">作业提交</div>
  190. <div v-if="t.tool == 50">批量上传</div>
  191. <div v-if="t.tool == 41">选择匹配</div>
  192. <div v-if="t.tool == 47">排序</div>
  193. <div v-if="t.tool == 40">个人评价</div>
  194. <div v-if="t.tool == 18">训练平台</div>
  195. <div v-if="t.tool == 21">AIoT Blockly</div>
  196. <div v-if="t.tool == 23">AI Python</div>
  197. <div v-if="t.tool == 24">AI Blockly</div>
  198. <div v-if="t.tool == 32">源码编辑</div>
  199. <div v-if="t.tool == 57">CocoPi</div>
  200. <div v-if="t.tool == 63">海龟编程</div>
  201. <div v-if="t.tool == 28">翻译</div>
  202. <div v-if="t.tool == 31">数字画板</div>
  203. <div v-if="t.tool == 39">GeoGebra</div>
  204. <div v-if="t.tool == 66">公式编辑</div>
  205. <div v-if="t.tool == 67">分子结构</div>
  206. <div v-if="t.tool == 68">时间轴</div>
  207. <div v-if="t.tool == 25">目标管理</div>
  208. <div v-if="t.tool == 26">课程设计</div>
  209. <div v-if="t.tool == 62">交互视频</div>
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  219. <div class="new_topFixed"></div>
  220. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  221. <div class="courseIndex">
  222. <div>任务{{ taskCount + 1 }}</div>
  223. <el-tooltip
  224. effect="light"
  225. :content="
  226. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  227. "
  228. placement="top"
  229. >
  230. <div>
  231. {{
  232. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  233. .task
  234. }}
  235. </div>
  236. </el-tooltip>
  237. </div>
  238. <div class="btnAll">
  239. <div class="btnLeft">
  240. <el-tooltip effect="light" content="刷新" placement="top">
  241. <div class="reBtnIcon" @click="refreshCourse"></div>
  242. </el-tooltip>
  243. <el-tooltip effect="light" content="评论" placement="top">
  244. <div class="commentIcon" @click="setPz" v-if="tType == 1"></div>
  245. </el-tooltip>
  246. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  247. <el-tooltip effect="light" content="录制" placement="top">
  248. <div class="vedioIcon" @click="startRecording"></div>
  249. </el-tooltip>
  250. </div>
  251. <div v-else-if="tType == 1 || tType == 4">
  252. <el-tooltip effect="light" content="下载" placement="top">
  253. <div class="vedioIcon1" @click="stopRecording"></div>
  254. </el-tooltip>
  255. </div>
  256. </div>
  257. <div class="btnRight">
  258. <div
  259. class="last"
  260. @click="nextOrpreSteps(0)"
  261. @mouseover="isHovered = true"
  262. @mouseout="isHovered = false"
  263. >
  264. <div class="lastImg">
  265. <img
  266. :src="
  267. isHovered
  268. ? require('../../assets/icon/newIcons/whiteLast.png')
  269. : require('../../assets/icon/newIcons/last.png')
  270. "
  271. alt=""
  272. />
  273. </div>
  274. <div class="lastText">上一步</div>
  275. </div>
  276. <div
  277. class="last"
  278. @click="nextOrpreSteps(1)"
  279. @mouseover="isHovered1 = true"
  280. @mouseout="isHovered1 = false"
  281. >
  282. <div class="lastText">下一步</div>
  283. <div class="lastImg">
  284. <img
  285. :src="
  286. isHovered1
  287. ? require('../../assets/icon/newIcons/whiteNext.png')
  288. : require('../../assets/icon/newIcons/next.png')
  289. "
  290. alt=""
  291. />
  292. </div>
  293. </div>
  294. <!-- <div class="last" @click="juriVisible = true" v-if="tType == 1">
  295. <div class="lastImg">
  296. <img src="../../assets/icon/newIcons/lock.png" alt="" />
  297. </div>
  298. <div class="lastText">权限</div>
  299. </div> -->
  300. <div
  301. class="returnBtn1 returnIcon"
  302. @click.stop="
  303. goTo(
  304. '/courseDetail?userid=' +
  305. userid +
  306. '&oid=' +
  307. oid +
  308. '&org=' +
  309. org +
  310. '&cid=' +
  311. classId +
  312. '&courseId=' +
  313. id +
  314. '&tType=' +
  315. tType +
  316. '&screenType=' +
  317. screenType
  318. )
  319. "
  320. >
  321. <div class="lastImg">
  322. <img src="../../assets/icon/newIcon/return.png" alt="" />
  323. </div>
  324. <div class="lastText" style="color: #000">返回</div>
  325. </div>
  326. </div>
  327. <!-- <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  328. 评论
  329. </div>
  330. <div
  331. class="returnBtn vedioIcon"
  332. @click="startRecording"
  333. v-if="!videoStart && (tType == 1 || tType == 4)"
  334. >
  335. 录制
  336. </div>
  337. <div class="returnBtn" @click="refreshCourse">刷新</div>
  338. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  339. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  340. <div
  341. class="returnBtn returnIcon"
  342. @click.stop="
  343. goTo(
  344. '/courseDetail?userid=' +
  345. userid +
  346. '&oid=' +
  347. oid +
  348. '&org=' +
  349. org +
  350. '&cid=' +
  351. classId +
  352. '&courseId=' +
  353. id +
  354. '&tType=' +
  355. tType +
  356. '&screenType=' +
  357. screenType
  358. )
  359. "
  360. >
  361. 返回
  362. </div> -->
  363. </div>
  364. </div>
  365. <div
  366. class="isNoMessage"
  367. v-if="
  368. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  369. .chapterData.length == 0 &&
  370. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  371. .toolChoose[0].tool.length == 0 &&
  372. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  373. .taskDetail == '' &&
  374. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  375. .eList &&
  376. !(
  377. courseDetail.userid == userid ||
  378. (courseDetail.course_teacher &&
  379. courseDetail.course_teacher.indexOf(userid) != -1)
  380. )
  381. "
  382. >
  383. <img src="../../assets/icon/isNoMessage.png" alt />
  384. </div>
  385. <div class="study_top" :class="{ pzClass: pzDialog }">
  386. <div
  387. class="vedioBox"
  388. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  389. >
  390. <div
  391. class="student_head"
  392. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  393. >
  394. <div class="vedioTaskBox">
  395. <div
  396. :class="
  397. contentDialog == false
  398. ? 'box_course isContentCss'
  399. : 'box_course'
  400. "
  401. v-if="
  402. vChapterData.length > 0 &&
  403. vChapterData[0] &&
  404. showType !== ''
  405. "
  406. >
  407. <div class="wheel" style="height: auto" v-if="showType === 0">
  408. <div
  409. class="workd_media"
  410. style="height: 650px; width: calc(100% - 50px)"
  411. >
  412. <video-player
  413. class="video-player vjs-custom-skin"
  414. :class="contentDialog == false ? 'isAllWidth' : ''"
  415. :playsinline="true"
  416. :options="playerO[0]"
  417. @play="onPlayerPlay($event)"
  418. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  419. ></video-player>
  420. </div>
  421. </div>
  422. <div
  423. class="wheel"
  424. v-if="showType == 1"
  425. style="
  426. box-shadow: 0 0 6px 1px #f2f2f2;
  427. width: 95%;
  428. margin: 0 auto;
  429. background: #f1f1f1;
  430. "
  431. >
  432. <div class="title">查看文档</div>
  433. <el-form class="textBox">
  434. <el-form-item class="textTitle">
  435. <div style="font-size: 22px">
  436. {{ text.name }}
  437. </div>
  438. </el-form-item>
  439. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  440. <div v-html="text.url" class="textContent cont"></div>
  441. </el-form>
  442. </div>
  443. <div
  444. class="wheel"
  445. v-if="
  446. pptImgUrl1.indexOf(
  447. 'https://view.officeapps.live.com/op/view.aspx?src='
  448. ) != -1 && showType == 2
  449. "
  450. style="width: 95%; margin: 0 auto"
  451. >
  452. <iframe
  453. style="width: 100%; height: 100%; border: none"
  454. :src="pptImgUrl1"
  455. ></iframe>
  456. </div>
  457. <div
  458. class="wheel"
  459. v-else-if="showType == 2"
  460. style="width: 95%; margin: 0 auto"
  461. >
  462. <iframe
  463. style="width: 100%; height: 100%; border: none"
  464. security="restricted"
  465. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  466. :src="pptImgUrl1"
  467. ></iframe>
  468. </div>
  469. <div
  470. class="wheel"
  471. v-if="showType == 3"
  472. style="width: 95%; margin: 0 auto"
  473. >
  474. <pdf
  475. :pdfUrl="pptImgUrl1"
  476. style="width: 100%; height: 100%; overflow: auto"
  477. ></pdf>
  478. </div>
  479. <div
  480. class="wheel"
  481. v-if="showType == 4"
  482. style="width: 95%; margin: 0 auto"
  483. >
  484. <el-image
  485. :src="pptImgUrl1"
  486. fit="contain"
  487. style="width: 100%; height: 100%; cursor: pointer"
  488. @click="previewImg(pptImgUrl1)"
  489. ></el-image>
  490. </div>
  491. </div>
  492. <div
  493. class="pButton"
  494. style="position: absolute; right: 20px; top: 0; z-index: 998"
  495. v-if="!contentDialog"
  496. @click="setContent(true)"
  497. >
  498. <!-- 批 -->
  499. <img
  500. src="../../assets/icon/newIcons/isLeft.png"
  501. style="width: 45px"
  502. alt=""
  503. />
  504. </div>
  505. <div
  506. v-if="contentDialog == true"
  507. :style="{
  508. width:
  509. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  510. showType === ''
  511. ? 'calc(100%)'
  512. : '300px',
  513. margin:
  514. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  515. showType === ''
  516. ? '0 15px'
  517. : '0 15px 0 0',
  518. }"
  519. >
  520. <div
  521. class="vedioList"
  522. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  523. style="height: 650px"
  524. >
  525. <div class="navCorOpenBox">
  526. <div class="navTitile">内容列表:</div>
  527. <div class="navCorOpen" @click="setContent(false)">
  528. <img
  529. src="../../assets/icon/newIcons/isRight.png"
  530. alt=""
  531. />
  532. </div>
  533. </div>
  534. <div class="navBox">
  535. <div
  536. v-show="
  537. vChapterData[0].length > 0 || fileC[0].length > 0
  538. "
  539. style="padding: 10px 0 25px 0"
  540. >
  541. <div
  542. class="vedioTimeBox"
  543. v-for="(vitem, vindex) in vChapterData[0]"
  544. :key="vindex + '1'"
  545. >
  546. <div class="navListItem" v-if="vitem.type == 2">
  547. <div
  548. @click="lookVedio(vitem.url, vindex)"
  549. class="navText"
  550. :class="isClickNav == vindex ? 'isClickNav' : ''"
  551. >
  552. <span v-if="vitem.text">{{ vitem.text }}-</span
  553. >{{ vitem.name }}
  554. </div>
  555. <div class="downIcon" @click="downloadFile2(vitem)">
  556. <img
  557. src="../../assets/icon/newIcon/down.png"
  558. alt
  559. />
  560. </div>
  561. </div>
  562. <div class="navListItem" v-if="vitem.type == 6">
  563. <div
  564. @click="lookText(taskCount, vindex)"
  565. class="navText"
  566. :class="isClickNav == vindex ? 'isClickNav' : ''"
  567. >
  568. {{ vitem.name }}.doc
  569. </div>
  570. <div
  571. class="downIcon"
  572. @click="checkFileFull1(vitem.type, vitem)"
  573. >
  574. <img
  575. src="../../assets/icon/newIcon/allScreen.png"
  576. alt
  577. />
  578. </div>
  579. </div>
  580. <div
  581. class="navListItem"
  582. v-if="vitem.type == 8 || vitem.type == 14"
  583. >
  584. <div
  585. @click="doUrl(vitem.url, vindex)"
  586. class="navText"
  587. :class="isClickNav == vindex ? 'isClickNav' : ''"
  588. >
  589. {{ vitem.title ? vitem.title : vitem.url }}
  590. </div>
  591. <div
  592. class="downIcon"
  593. @click="checkFileFull1(vitem.type, vitem)"
  594. >
  595. <img
  596. src="../../assets/icon/newIcon/allScreen.png"
  597. alt
  598. />
  599. </div>
  600. </div>
  601. <div class="navListItem" v-if="vitem.type == 3">
  602. <div
  603. @click="downFile(vitem, vindex)"
  604. class="navText"
  605. :class="isClickNav == vindex ? 'isClickNav' : ''"
  606. >
  607. <span v-if="vitem.text">{{ vitem.text }}-</span
  608. >{{ vitem.name }}
  609. </div>
  610. <div class="downIcon" @click="downloadFile2(vitem)">
  611. <img
  612. src="../../assets/icon/newIcon/down.png"
  613. alt
  614. />
  615. </div>
  616. <div
  617. class="downIcon"
  618. @click="checkFileFull1(vitem.type, vitem)"
  619. >
  620. <img
  621. src="../../assets/icon/newIcon/allScreen.png"
  622. alt
  623. />
  624. </div>
  625. </div>
  626. <div class="navListItem" v-if="vitem.type == 12">
  627. <div class="navText" @click="downloadFile2(vitem)">
  628. <span v-if="vitem.text">{{ vitem.text }}-</span
  629. >{{ vitem.name }}
  630. </div>
  631. <div class="downIcon" @click="downloadFile2(vitem)">
  632. <img
  633. src="../../assets/icon/newIcon/down.png"
  634. alt
  635. />
  636. </div>
  637. <div
  638. class="downIcon"
  639. @click="checkFileFull1(vitem.type, vitem)"
  640. >
  641. <img
  642. src="../../assets/icon/newIcon/allScreen.png"
  643. alt
  644. />
  645. </div>
  646. </div>
  647. <div class="navListItem" v-if="vitem.type == 13">
  648. <div
  649. class="navText"
  650. @click="checkPhoto(vitem, vindex)"
  651. :class="isClickNav == vindex ? 'isClickNav' : ''"
  652. >
  653. {{ vitem.name }}
  654. </div>
  655. <div class="downIcon" @click="downloadFile2(vitem)">
  656. <img
  657. src="../../assets/icon/newIcon/down.png"
  658. alt
  659. />
  660. </div>
  661. </div>
  662. </div>
  663. <div class="fileC_box" v-if="fileC[0].length > 0">
  664. <div class="fileC_title">以下文件不支持预览</div>
  665. <div
  666. class="vedioTimeBox"
  667. v-for="(vitem, vindex) in fileC[0]"
  668. :key="vindex + '1'"
  669. >
  670. <div class="navListItem" v-if="vitem.type == 12">
  671. <div class="navText" style="color: #acb4bf">
  672. <span v-if="vitem.text">{{ vitem.text }}-</span
  673. >{{ vitem.name }}
  674. </div>
  675. <div
  676. class="downIcon"
  677. @click="downloadFile2(vitem)"
  678. >
  679. <img
  680. src="../../assets/icon/newIcon/down.png"
  681. alt
  682. />
  683. </div>
  684. </div>
  685. </div>
  686. </div>
  687. </div>
  688. </div>
  689. </div>
  690. </div>
  691. </div>
  692. <div style="width: calc(100% - 315px)">
  693. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  694. <!-- <el-button
  695. type="primary"
  696. class="newButton"
  697. @click="checkFileFull(showType, pptImgUrl1)"
  698. >全屏查看</el-button
  699. >
  700. <el-button
  701. type="primary"
  702. class="newButton"
  703. @click="downloadFile(pptImgUrl1)"
  704. v-if="showType != 2"
  705. >文件下载</el-button
  706. > -->
  707. <el-button
  708. v-if="
  709. showType == 2 &&
  710. pptImgUrl1.indexOf(
  711. 'https://view.officeapps.live.com/op/view.aspx?src='
  712. ) == -1
  713. "
  714. type="primary"
  715. class="newButton"
  716. @click="openLine(pptImgUrl1)"
  717. >打开链接
  718. </el-button>
  719. </div>
  720. <!-- <div
  721. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  722. v-if="showType == 1"
  723. >
  724. <el-button
  725. type="primary"
  726. class="newButton"
  727. @click="checkFileFull(showType, text)"
  728. >全屏查看</el-button
  729. >
  730. </div> -->
  731. </div>
  732. </div>
  733. </div>
  734. <div
  735. class="student_body"
  736. v-resize="resize"
  737. :style="{
  738. borderRadius:
  739. vChapterData[0].length == 0 && fileC[0].length == 0
  740. ? '0 0 20px 20px'
  741. : '20px',
  742. }"
  743. v-if="
  744. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  745. .toolChoose[0].tool &&
  746. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  747. .toolChoose[0].tool.length > 0) ||
  748. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  749. .taskDetail != ''
  750. "
  751. >
  752. <div
  753. class="taskBox"
  754. v-if="
  755. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  756. .taskDetail != ''
  757. "
  758. :style="
  759. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  760. .toolChoose[0].tool &&
  761. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  762. .toolChoose[0].tool.length &&
  763. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  764. .toolChoose[0].tool.length > 0
  765. ? 'border-bottom: 1px solid #cad1dc'
  766. : ''
  767. "
  768. >
  769. <div
  770. style="
  771. display: flex;
  772. flex-wrap: nowrap;
  773. flex-direction: column;
  774. position: relative;
  775. "
  776. >
  777. <div
  778. style="
  779. padding: 15px 0;
  780. line-height: 29px;
  781. font-size: 18px;
  782. color: #0e1e33;
  783. "
  784. class="cont"
  785. v-if="
  786. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  787. .taskDetail != ''
  788. "
  789. v-html="
  790. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  791. .taskDetail
  792. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  793. taskCount
  794. ].taskDetail
  795. : '暂无描述'
  796. "
  797. ></div>
  798. </div>
  799. </div>
  800. <div
  801. class="vedioBox"
  802. v-if="
  803. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  804. .toolChoose[0].tool &&
  805. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  806. .toolChoose[0].tool.length &&
  807. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  808. .toolChoose[0].tool.length > 0
  809. "
  810. :style="{
  811. borderRadius:
  812. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  813. .taskDetail == '' &&
  814. vChapterData[0].length == 0 &&
  815. fileC[0].length == 0
  816. ? '0 0 20px 20px'
  817. : '20px',
  818. }"
  819. >
  820. <div
  821. class="queTop"
  822. style="
  823. font-size: 20px;
  824. padding: 15px 0 15px 37px;
  825. font-weight: bold;
  826. "
  827. >
  828. 工作区
  829. </div>
  830. <div class="toolHeng2" style="position: relative">
  831. <div
  832. class="filebox"
  833. style="flex-wrap: nowrap; margin: 0 37px"
  834. v-if="
  835. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  836. .toolChoose.length
  837. "
  838. >
  839. <div class="choiceBox">
  840. <div class="bzChild" style="margin-right: 20px">
  841. <span>步骤选择:</span>
  842. </div>
  843. <div class="bzTypeBox">
  844. <div
  845. class="bzChild"
  846. v-for="(bz, bzIndex) in chapInfoList[courseType]
  847. .chapterInfo[0].taskJson[taskCount].toolChoose"
  848. :key="bzIndex"
  849. :class="{ active: toolIndex == bzIndex }"
  850. @click="checkBz(bzIndex)"
  851. >
  852. <span>步骤{{ bzIndex + 1 }}</span>
  853. </div>
  854. </div>
  855. </div>
  856. <div class="bzBox">
  857. <!-- <div class="yCss"></div>
  858. <div>步骤{{ toolIndex + 1 }}</div> -->
  859. <div
  860. style="margin: 0 72px 20px auto"
  861. v-if="tool.tool[0] == 15 || tool.tool[0] == 16"
  862. >
  863. <el-button
  864. type="primary"
  865. size="mini"
  866. v-if="tool.tool[0] == 15"
  867. @click="openWordCloud(toolIndex)"
  868. >生成词云</el-button
  869. >
  870. <el-button
  871. type="primary"
  872. size="mini"
  873. v-if="tool.tool[0] == 16 && worksStudent[toolIndex].length > 0"
  874. @click="uploadWorks(toolIndex)"
  875. >导出作业</el-button
  876. >
  877. <!-- courseDetail.userid == userid || -->
  878. <!-- <el-button
  879. v-if="courseDetail.userid == userid"
  880. type="primary"
  881. size="mini"
  882. @click="updateToolDetail"
  883. >{{
  884. !isUpdateToolDetail ? "编辑" : "确认修改"
  885. }}</el-button
  886. > -->
  887. </div>
  888. </div>
  889. <div class="toolBox">
  890. <div class="toolBoxSteps" @click="nextToolindex('last')">
  891. <img src="../../assets/icon/leftIcon.png" />
  892. </div>
  893. <div class="toolBoxSteps" @click="nextToolindex('next')">
  894. <img src="../../assets/icon/rightIcon.png" />
  895. </div>
  896. <div>
  897. <div class="noiframeBox">
  898. <div
  899. class="addPoint"
  900. v-for="(tooC, toolCIndex) in tool.tool"
  901. :key="toolCIndex"
  902. >
  903. <div v-show="tooC == 1">
  904. <img
  905. src="../../assets/icon/secondToolList/whiteBoard.png"
  906. alt
  907. @click="addTools(tooC, toolIndex, taskCount)"
  908. />
  909. <div style="margin: 5px 0">电子白板</div>
  910. </div>
  911. <div v-show="tooC == 3">
  912. <img
  913. src="../../assets/icon/secondToolList/mindMapping.png"
  914. alt
  915. @click="addTools(tooC, toolIndex, taskCount)"
  916. />
  917. <div style="margin: 5px 0">思维导图</div>
  918. </div>
  919. <div v-show="tooC == 6">
  920. <img
  921. src="../../assets/icon/secondToolList/doc.png"
  922. alt
  923. @click="addTools(tooC, toolIndex, taskCount)"
  924. />
  925. <div style="margin: 5px 0">协同文档</div>
  926. </div>
  927. <div v-show="tooC == 7">
  928. <img
  929. src="../../assets/icon/secondToolList/mindNetwork.png"
  930. alt
  931. @click="addTools(tooC, toolIndex, taskCount)"
  932. />
  933. <div style="margin: 5px 0">思维网格</div>
  934. </div>
  935. <div v-show="tooC == 8">
  936. <img
  937. src="../../assets/icon/secondToolList/library.png"
  938. alt
  939. @click="addTools(tooC, toolIndex, taskCount)"
  940. />
  941. <div style="margin: 5px 0">素材库</div>
  942. </div>
  943. <div v-show="tooC == 17">
  944. <img
  945. src="../../assets/icon/secondToolList/library.png"
  946. alt
  947. @click="addTools(tooC, toolIndex, taskCount)"
  948. />
  949. <div style="margin: 5px 0">学习资料</div>
  950. </div>
  951. <div v-show="tooC == 2">
  952. <img
  953. @click="addTools(tooC, toolIndex, taskCount)"
  954. src="../../assets/icon/secondToolList/note.png"
  955. alt
  956. />
  957. <div style="margin: 5px 0">便签</div>
  958. </div>
  959. <div v-show="tooC == 4">
  960. <img
  961. @click="addTools(tooC, toolIndex, taskCount)"
  962. src="../../assets/icon/thirdToolList/ask.png"
  963. alt
  964. />
  965. <div style="margin: 5px 0">问卷调查</div>
  966. </div>
  967. <div v-show="tooC == 45">
  968. <img
  969. @click="addTools(tooC, toolIndex, taskCount)"
  970. src="../../assets/icon/thirdToolList/choose.png"
  971. alt
  972. />
  973. <div style="margin: 5px 0">选择题</div>
  974. </div>
  975. <!-- <div v-show="tooC == 5">
  976. <img
  977. @click="addTools(tooC, toolIndex, taskCount)"
  978. src="../../assets/icon/thirdToolList/score.png"
  979. alt
  980. />
  981. <div style="margin: 5px 0">量规评分</div>
  982. </div> -->
  983. <div v-show="tooC == 10">
  984. <img
  985. @click="addTools(tooC, toolIndex, taskCount)"
  986. src="../../assets/icon/thirdToolList/time.png"
  987. alt
  988. />
  989. <div style="margin: 5px 0">倒计时</div>
  990. </div>
  991. <div v-show="tooC == 15">
  992. <img
  993. @click="addTools(tooC, toolIndex, taskCount)"
  994. src="../../assets/icon/thirdToolList/answer.png"
  995. alt
  996. />
  997. <div style="margin: 5px 0">问答</div>
  998. </div>
  999. <div v-show="tooC == 26">
  1000. <img
  1001. @click="addTools(tooC, toolIndex, taskCount)"
  1002. src="../../assets/icon/thirdToolList/courseDesign.png"
  1003. alt
  1004. />
  1005. <div style="margin: 5px 0">课程设计</div>
  1006. </div>
  1007. <div v-show="tooC == 18">
  1008. <img
  1009. @click="addTools(tooC, toolIndex, taskCount)"
  1010. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1011. alt
  1012. />
  1013. <div style="margin: 5px 0">训练服务器</div>
  1014. </div>
  1015. <div v-show="tooC == 16">
  1016. <img
  1017. @click="addTools(tooC, toolIndex, taskCount)"
  1018. src="../../assets/icon/thirdToolList/work.png"
  1019. alt
  1020. />
  1021. <div style="margin: 5px 0">作业提交</div>
  1022. </div>
  1023. <div v-show="tooC == 50">
  1024. <img
  1025. @click="addTools(tooC, toolIndex, taskCount)"
  1026. src="../../assets/icon/thirdToolList/plwork.png"
  1027. alt
  1028. />
  1029. <div style="margin: 5px 0">批量上传</div>
  1030. </div>
  1031. <div v-show="tooC == 21">
  1032. <img
  1033. @click="addTools(tooC, toolIndex, taskCount)"
  1034. src="../../assets/icon/fourthToolList/program.png"
  1035. alt
  1036. />
  1037. <div style="margin: 5px 0">AIoT Blockly</div>
  1038. </div>
  1039. <!-- <div v-show="tooC == 22">
  1040. <img
  1041. @click="addTools(tooC, toolIndex, taskCount)"
  1042. src="../../assets/icon/fourthToolList/program.png"
  1043. alt
  1044. />
  1045. <div style="margin: 5px 0">AI体验</div>
  1046. </div> -->
  1047. <div v-show="tooC == 23">
  1048. <img
  1049. @click="addTools(tooC, toolIndex, taskCount)"
  1050. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1051. alt
  1052. />
  1053. <div style="margin: 5px 0">AI Python</div>
  1054. </div>
  1055. <div v-show="tooC == 24">
  1056. <img
  1057. @click="addTools(tooC, toolIndex, taskCount)"
  1058. src="../../assets/icon/fourthToolList/AIprogram.png"
  1059. alt
  1060. />
  1061. <div style="margin: 5px 0">AI Blockly</div>
  1062. </div>
  1063. <div v-show="tooC == 25">
  1064. <img
  1065. @click="addTools(tooC, toolIndex, taskCount)"
  1066. src="../../assets/icon/thirdToolList/evalua.png"
  1067. alt
  1068. />
  1069. <div style="margin: 5px 0">目标管理</div>
  1070. </div>
  1071. <div v-show="tooC == 31">
  1072. <img
  1073. @click="addTools(tooC, toolIndex, taskCount)"
  1074. src="../../assets/icon/secondToolList/networkPanel.png"
  1075. alt
  1076. />
  1077. <div style="margin: 5px 0">数学画板</div>
  1078. </div>
  1079. <div v-show="tooC == 28">
  1080. <img
  1081. @click="addTools(tooC, toolIndex, taskCount)"
  1082. src="../../assets/icon/secondToolList/translation.png"
  1083. alt
  1084. />
  1085. <div style="margin: 5px 0">翻译</div>
  1086. </div>
  1087. <div v-show="tooC == 37">
  1088. <img
  1089. @click="addTools(tooC, toolIndex, taskCount)"
  1090. src="../../assets/icon/secondToolList/mohe.png"
  1091. alt
  1092. />
  1093. <div style="margin: 5px 0">魔盒识字</div>
  1094. </div>
  1095. <div v-show="tooC == 38">
  1096. <img
  1097. @click="addTools(tooC, toolIndex, taskCount)"
  1098. src="../../assets/icon/secondToolList/24game.png"
  1099. alt
  1100. />
  1101. <div style="margin: 5px 0">24点</div>
  1102. </div>
  1103. <div v-show="tooC == 39">
  1104. <img
  1105. @click="addTools(tooC, toolIndex, taskCount)"
  1106. src="../../assets/icon/secondToolList/GeoGebra.png"
  1107. alt
  1108. />
  1109. <div style="margin: 5px 0">GeoGebra</div>
  1110. </div>
  1111. <div v-show="tooC == 32">
  1112. <img
  1113. @click="addTools(tooC, toolIndex, taskCount)"
  1114. src="../../assets/icon/thirdToolList/code.png"
  1115. alt
  1116. />
  1117. <div style="margin: 5px 0">源码编辑</div>
  1118. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1119. style="position: absolute;left: 110px;bottom: 30px;">
  1120. 上传文件
  1121. <input type="file" accept="*" style="display: none"
  1122. @change="beforeUpload1($event, 7, toolIndex)" />
  1123. </div> -->
  1124. </div>
  1125. <!-- <div v-show="tooC == 40">
  1126. <img @click="addTools(tooC, toolIndex, taskCount)"
  1127. src="../../assets/icon/secondToolList/eval.png" alt />
  1128. <div style="margin: 5px 0">个人评价</div>
  1129. </div> -->
  1130. <div v-show="tooC == 41">
  1131. <img
  1132. @click="addTools(tooC, toolIndex, taskCount)"
  1133. src="../../assets/icon/thirdToolList/select.png"
  1134. alt
  1135. />
  1136. <div style="margin: 5px 0">选择匹配</div>
  1137. </div>
  1138. <div v-show="tooC == 44">
  1139. <img
  1140. @click="addTools(tooC, toolIndex, taskCount)"
  1141. src="../../assets/icon/thirdToolList/hanClass.png"
  1142. alt
  1143. />
  1144. <div style="margin: 5px 0">汉字宫</div>
  1145. </div>
  1146. <div v-show="tooC == 47">
  1147. <img
  1148. @click="addTools(tooC, toolIndex, taskCount)"
  1149. src="../../assets/icon/fourthToolList/conSentences.png"
  1150. alt
  1151. />
  1152. <div style="margin: 5px 0">排序</div>
  1153. </div>
  1154. <div v-show="tooC == 48">
  1155. <img
  1156. @click="addTools(tooC, toolIndex, taskCount)"
  1157. src="../../assets/icon/fourthToolList/table.png"
  1158. alt
  1159. />
  1160. <div style="margin: 5px 0">表格</div>
  1161. </div>
  1162. <div v-show="tooC == 52">
  1163. <img
  1164. @click="addTools(tooC, toolIndex, taskCount)"
  1165. src="../../assets/icon/fourthToolList/text.png"
  1166. alt
  1167. />
  1168. <div style="margin: 5px 0">文档</div>
  1169. </div>
  1170. <!-- <div v-show="tooC == 49">
  1171. <img @click="addTools(tooC, toolIndex, taskCount)"
  1172. src="../../assets/icon/fourthToolList/group.png" alt />
  1173. <div style="margin: 5px 0">学生分组</div>
  1174. </div> -->
  1175. <div v-show="tooC == 57">
  1176. <img
  1177. @click="addTools(tooC, toolIndex, taskCount)"
  1178. src="../../assets/icon/fourthToolList/cocopi.png"
  1179. alt
  1180. />
  1181. <div style="margin: 5px 0">CocoPi</div>
  1182. </div>
  1183. <div v-show="tooC == 58">
  1184. <img
  1185. @click="addTools(tooC, toolIndex, taskCount)"
  1186. src="../../assets/icon/fourthToolList/car.png"
  1187. alt
  1188. />
  1189. <div style="margin: 5px 0">模拟驾驶</div>
  1190. </div>
  1191. <div v-show="tooC == 59">
  1192. <img
  1193. @click="addTools(tooC, toolIndex, taskCount)"
  1194. src="../../assets/icon/fourthToolList/lineSearch.png"
  1195. alt
  1196. />
  1197. <div style="margin: 5px 0">路径搜索</div>
  1198. </div>
  1199. <div v-show="tooC == 60">
  1200. <img
  1201. @click="addTools(tooC, toolIndex, taskCount)"
  1202. src="../../assets/icon/fourthToolList/deepLearning.png"
  1203. alt
  1204. />
  1205. <div style="margin: 5px 0">深度学习</div>
  1206. </div>
  1207. <div v-show="tooC == 61">
  1208. <img
  1209. @click="addTools(tooC, toolIndex, taskCount)"
  1210. src="../../assets/icon/fourthToolList/allHistory.png"
  1211. alt
  1212. />
  1213. <div style="margin: 5px 0">全历史</div>
  1214. </div>
  1215. <div v-show="tooC == 62">
  1216. <img
  1217. @click="addTools(tooC, toolIndex, taskCount)"
  1218. src="../../assets/icon/fourthToolList/interVideo.png"
  1219. alt
  1220. />
  1221. <div style="margin: 5px 0">交互视频</div>
  1222. </div>
  1223. <div v-show="tooC == 63">
  1224. <img
  1225. @click="addTools(tooC, toolIndex, taskCount)"
  1226. src="../../assets/icon/fourthToolList/Wood.png"
  1227. alt
  1228. />
  1229. <div style="margin: 5px 0">海龟编程</div>
  1230. </div>
  1231. <div v-if="tooC == 65">
  1232. <img
  1233. @click="addTools(tooC, toolIndex, taskCount)"
  1234. src="../../assets/icon/firstToolList/pickPeople.png"
  1235. alt
  1236. />
  1237. <div style="margin: 5px 0">挑人</div>
  1238. </div>
  1239. <div v-if="tooC == 66">
  1240. <img
  1241. @click="addTools(tooC, toolIndex, taskCount)"
  1242. src="../../assets/icon/secondToolList/formulaEdi.png"
  1243. alt
  1244. />
  1245. <div style="margin: 5px 0">公式编辑</div>
  1246. </div>
  1247. <div v-if="tooC == 67">
  1248. <img
  1249. @click="addTools(tooC, toolIndex, taskCount)"
  1250. src="../../assets/icon/secondToolList/molStr.png"
  1251. alt
  1252. />
  1253. <div style="margin: 5px 0">分子结构</div>
  1254. </div>
  1255. <div v-if="tooC == 68">
  1256. <img
  1257. @click="addTools(tooC, toolIndex, taskCount)"
  1258. src="../../assets/icon/secondToolList/timeAxis.png"
  1259. alt
  1260. />
  1261. <div style="margin: 5px 0">时间轴</div>
  1262. </div>
  1263. </div>
  1264. </div>
  1265. </div>
  1266. <div class="tooldetail">
  1267. <!-- <div class="toolTitle">工具描述</div> -->
  1268. <div
  1269. style="height: 100%"
  1270. v-html="
  1271. contentConvent(
  1272. tool.toolDetail ? tool.toolDetail : '暂无描述'
  1273. )
  1274. "
  1275. v-if="!isUpdateToolDetail"
  1276. @click.stop="updateToolDetail"
  1277. ></div>
  1278. <div v-else @click.stop="">
  1279. <el-input
  1280. type="textarea"
  1281. :rows="3"
  1282. resize="none"
  1283. v-model="updateToolDetailInner"
  1284. placeholder="请输入任务描述"
  1285. ></el-input>
  1286. </div>
  1287. </div>
  1288. <el-button
  1289. type="primary"
  1290. v-if="tool.tool[0] == 32"
  1291. style="
  1292. position: absolute;
  1293. right: 30px;
  1294. transform: translateY(-130%);
  1295. "
  1296. @click="addImg($event)"
  1297. >上传作业<input
  1298. type="file"
  1299. accept="*"
  1300. style="display: none"
  1301. @change="beforeUpload1($event, 7, toolIndex)"
  1302. /></el-button>
  1303. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1304. position: absolute;
  1305. right: 30px;
  1306. transform: translateY(-130%);
  1307. " @click="addImg($event)">上传作业<input type="file" accept="*"
  1308. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1309. </div>
  1310. </div>
  1311. </div>
  1312. </div>
  1313. <div
  1314. class="vedioBox"
  1315. v-if="
  1316. arrayToArray(tool.tool, isWorkTool).length &&
  1317. worksTeacher.length &&
  1318. worksTeacher[toolIndex].length &&
  1319. false
  1320. "
  1321. >
  1322. <div
  1323. class="queTop"
  1324. style="
  1325. font-size: 20px;
  1326. padding: 15px 0 15px 37px;
  1327. font-weight: bold;
  1328. "
  1329. >
  1330. 教师工作区
  1331. </div>
  1332. <div class="tool_work_box">
  1333. <div
  1334. v-if="
  1335. tType &&
  1336. ((tType == 2 && sIsOpen == true) ||
  1337. tType == 1 ||
  1338. tType == 4) &&
  1339. tool.tool.indexOf(16) != -1
  1340. "
  1341. class="worksBox"
  1342. >
  1343. <div
  1344. class="zuoyeYulan"
  1345. v-if="
  1346. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1347. "
  1348. >
  1349. <div class="worksTop">
  1350. <div>作业预览</div>
  1351. </div>
  1352. </div>
  1353. <div
  1354. class="worksDetailBox"
  1355. v-if="
  1356. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1357. "
  1358. >
  1359. <div
  1360. class="works"
  1361. style="
  1362. width: 200px;
  1363. height: 140px;
  1364. margin: 10px 10px 10px 0;
  1365. border-radius: 15px;
  1366. box-shadow: 0 0 6px 1px #dfdada;
  1367. "
  1368. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1369. :key="wIndex"
  1370. :class="w.type == 1 ? 'isTypeOne' : ''"
  1371. >
  1372. <div class="workImg" v-if="w.type == 0">
  1373. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1374. <img :src="w.works" @click="previewImg(w.works)" alt />
  1375. <div
  1376. class="answerScore"
  1377. v-if="w.score"
  1378. @click.stop="openScore(w)"
  1379. :class="{
  1380. rightW:
  1381. w.userid == userid ||
  1382. tType == 1 ||
  1383. tType == 4 ||
  1384. w.ateacher == userid,
  1385. }"
  1386. >
  1387. {{ JSON.parse(w.score).wScore }}分
  1388. </div>
  1389. <div
  1390. class="answerScore"
  1391. @click.stop="openScore(w)"
  1392. v-else-if="courseDetail.userid == userid"
  1393. :class="{
  1394. rightW:
  1395. w.userid == userid ||
  1396. tType == 1 ||
  1397. tType == 4 ||
  1398. w.ateacher == userid,
  1399. }"
  1400. >
  1401. 评分
  1402. </div>
  1403. <img
  1404. class="deleteImg"
  1405. src="../../assets/deleteworks.png"
  1406. v-if="w.userid == userid || tType == 1 || tType == 4"
  1407. @click.stop="deleteWorks(w.wid)"
  1408. alt
  1409. />
  1410. </div>
  1411. <div class="workImg" v-if="w.type == 1">
  1412. <img :src="word" @click="openFile(w.works)" alt />
  1413. <!-- @click="openFile(w.works)" -->
  1414. <div
  1415. class="answerScore"
  1416. v-if="w.score"
  1417. @click.stop="openScore(w)"
  1418. :class="{
  1419. rightW:
  1420. w.userid == userid ||
  1421. tType == 1 ||
  1422. tType == 4 ||
  1423. w.ateacher == userid,
  1424. }"
  1425. >
  1426. {{ JSON.parse(w.score).wScore }}分
  1427. </div>
  1428. <div
  1429. class="answerScore"
  1430. @click.stop="openScore(w)"
  1431. v-else-if="courseDetail.userid == userid"
  1432. :class="{
  1433. rightW:
  1434. w.userid == userid ||
  1435. tType == 1 ||
  1436. tType == 4 ||
  1437. w.ateacher == userid,
  1438. }"
  1439. >
  1440. 评分
  1441. </div>
  1442. <img
  1443. class="deleteImg"
  1444. src="../../assets/deleteworks.png"
  1445. v-if="w.userid == userid || tType == 1 || tType == 4"
  1446. @click.stop="deleteWorks(w.wid)"
  1447. alt
  1448. />
  1449. </div>
  1450. <div class="workImg" v-if="w.type == 3">
  1451. <img
  1452. style="cursor: pointer"
  1453. :src="video"
  1454. @click="openVideo(w)"
  1455. alt
  1456. />
  1457. <!-- @click="openVideo(w.works)" -->
  1458. <div
  1459. class="answerScore"
  1460. v-if="w.score"
  1461. @click.stop="openScore(w)"
  1462. :class="{
  1463. rightW:
  1464. w.userid == userid ||
  1465. tType == 1 ||
  1466. tType == 4 ||
  1467. w.ateacher == userid,
  1468. }"
  1469. >
  1470. {{ JSON.parse(w.score).wScore }}分
  1471. </div>
  1472. <div
  1473. class="answerScore"
  1474. @click.stop="openScore(w)"
  1475. v-else-if="courseDetail.userid == userid"
  1476. :class="{
  1477. rightW:
  1478. w.userid == userid ||
  1479. tType == 1 ||
  1480. tType == 4 ||
  1481. w.ateacher == userid,
  1482. }"
  1483. >
  1484. 评分
  1485. </div>
  1486. <img
  1487. class="deleteImg"
  1488. src="../../assets/deleteworks.png"
  1489. v-if="w.userid == userid || tType == 1 || tType == 4"
  1490. @click.stop="deleteWorks(w.wid)"
  1491. alt
  1492. />
  1493. </div>
  1494. <div class="workImg" v-if="w.type == 12">
  1495. <img
  1496. style="cursor: pointer"
  1497. :src="word2"
  1498. @click="downloadFile(w.works)"
  1499. alt
  1500. />
  1501. <!-- @click="openVideo(w.works)" -->
  1502. <div
  1503. class="answerScore"
  1504. v-if="w.score"
  1505. @click.stop="openScore(w)"
  1506. :class="{
  1507. rightW:
  1508. w.userid == userid ||
  1509. tType == 1 ||
  1510. tType == 4 ||
  1511. w.ateacher == userid,
  1512. }"
  1513. >
  1514. {{ JSON.parse(w.score).wScore }}分
  1515. </div>
  1516. <div
  1517. class="answerScore"
  1518. @click.stop="openScore(w)"
  1519. v-else-if="courseDetail.userid == userid"
  1520. :class="{
  1521. rightW:
  1522. w.userid == userid ||
  1523. tType == 1 ||
  1524. tType == 4 ||
  1525. w.ateacher == userid,
  1526. }"
  1527. >
  1528. 评分
  1529. </div>
  1530. <img
  1531. class="deleteImg"
  1532. src="../../assets/deleteworks.png"
  1533. v-if="w.userid == userid || tType == 1 || tType == 4"
  1534. @click.stop="deleteWorks(w.wid)"
  1535. alt
  1536. />
  1537. </div>
  1538. <div class="comment" style="min-width: 200px">
  1539. <div class="worksName">
  1540. <div>{{ w.sName }}</div>
  1541. </div>
  1542. <div class="commentList">
  1543. <div class="commentList">
  1544. <div
  1545. class="commentImg"
  1546. @click="
  1547. isLikes(w.wid, userid, 1, null, w.isLikes)
  1548. "
  1549. >
  1550. <img
  1551. :src="w.isLikes == true ? likes : noLikes"
  1552. alt=""
  1553. />
  1554. </div>
  1555. <div>{{ w.likesCount }}</div>
  1556. </div>
  1557. <div class="commentList" style="margin-right: 15px">
  1558. <div
  1559. class="commentImg"
  1560. @click="commentOther(w, toolIndex, wIndex)"
  1561. >
  1562. <img
  1563. src="../../assets/icon/comment/comment.png"
  1564. alt=""
  1565. />
  1566. </div>
  1567. <div>{{ w.commentCount }}</div>
  1568. </div>
  1569. </div>
  1570. </div>
  1571. </div>
  1572. </div>
  1573. </div>
  1574. <div
  1575. v-if="
  1576. tType &&
  1577. ((tType == 2 && sIsOpen == true) ||
  1578. tType == 1 ||
  1579. tType == 4) &&
  1580. tool.tool.indexOf(32) != -1
  1581. "
  1582. class="worksBox"
  1583. >
  1584. <div
  1585. class="zuoyeYulan"
  1586. v-if="
  1587. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1588. "
  1589. >
  1590. <div class="worksTop">
  1591. <div>作业预览</div>
  1592. </div>
  1593. </div>
  1594. <div
  1595. class="worksDetailBox"
  1596. v-if="
  1597. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1598. "
  1599. >
  1600. <div
  1601. class="works"
  1602. style="
  1603. width: 200px;
  1604. height: 140px;
  1605. margin: 10px 10px 10px 0;
  1606. border-radius: 15px;
  1607. box-shadow: 0 0 6px 1px #dfdada;
  1608. "
  1609. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1610. :key="wIndex"
  1611. :class="w.type == 1 ? 'isTypeOne' : ''"
  1612. >
  1613. <div class="workImg">
  1614. <img :src="word2" @click="downloadFile(w.works)" alt />
  1615. <div
  1616. class="answerScore"
  1617. v-if="w.score"
  1618. @click.stop="openScore(w)"
  1619. :class="{
  1620. rightW:
  1621. w.userid == userid ||
  1622. tType == 1 ||
  1623. tType == 4 ||
  1624. w.ateacher == userid,
  1625. }"
  1626. >
  1627. {{ JSON.parse(w.score).wScore }}分
  1628. </div>
  1629. <div
  1630. class="answerScore"
  1631. @click.stop="openScore(w)"
  1632. v-else-if="courseDetail.userid == userid"
  1633. :class="{
  1634. rightW:
  1635. w.userid == userid ||
  1636. tType == 1 ||
  1637. tType == 4 ||
  1638. w.ateacher == userid,
  1639. }"
  1640. >
  1641. 评分
  1642. </div>
  1643. <img
  1644. class="deleteImg"
  1645. src="../../assets/deleteworks.png"
  1646. v-if="w.userid == userid || tType == 1 || tType == 4"
  1647. @click.stop="deleteWorks(w.wid)"
  1648. alt
  1649. />
  1650. </div>
  1651. <div class="comment" style="min-width: 200px">
  1652. <div class="worksName">
  1653. <div>{{ w.sName }}</div>
  1654. </div>
  1655. <div class="commentList">
  1656. <div class="commentList">
  1657. <div
  1658. class="commentImg"
  1659. @click="
  1660. isLikes(w.wid, userid, 1, null, w.isLikes)
  1661. "
  1662. >
  1663. <img
  1664. :src="w.isLikes == true ? likes : noLikes"
  1665. alt=""
  1666. />
  1667. </div>
  1668. <div>{{ w.likesCount }}</div>
  1669. </div>
  1670. <div class="commentList" style="margin-right: 15px">
  1671. <div
  1672. class="commentImg"
  1673. @click="commentOther(w, toolIndex, wIndex)"
  1674. >
  1675. <img
  1676. src="../../assets/icon/comment/comment.png"
  1677. alt=""
  1678. />
  1679. </div>
  1680. <div>{{ w.commentCount }}</div>
  1681. </div>
  1682. </div>
  1683. </div>
  1684. </div>
  1685. </div>
  1686. </div>
  1687. <div
  1688. v-if="
  1689. tType &&
  1690. ((tType == 2 && sIsOpen == true) ||
  1691. tType == 1 ||
  1692. tType == 4) &&
  1693. tool.tool.indexOf(57) != -1
  1694. "
  1695. class="worksBox"
  1696. >
  1697. <div
  1698. class="zuoyeYulan"
  1699. v-if="
  1700. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1701. "
  1702. >
  1703. <div class="worksTop">
  1704. <div>作业预览</div>
  1705. </div>
  1706. </div>
  1707. <div
  1708. class="worksDetailBox"
  1709. v-if="
  1710. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1711. "
  1712. >
  1713. <div
  1714. class="works"
  1715. style="
  1716. width: 200px;
  1717. height: 140px;
  1718. margin: 10px 10px 10px 0;
  1719. border-radius: 15px;
  1720. box-shadow: 0 0 6px 1px #dfdada;
  1721. "
  1722. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1723. :key="wIndex"
  1724. :class="w.type == 1 ? 'isTypeOne' : ''"
  1725. >
  1726. <div class="workImg">
  1727. <img
  1728. :src="word2"
  1729. @click="downloadFile(w.works)"
  1730. v-if="w.type == 12"
  1731. alt
  1732. />
  1733. <img
  1734. :src="word2"
  1735. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  1736. v-else-if="w.type == 15"
  1737. alt
  1738. />
  1739. <div
  1740. class="answerScore"
  1741. v-if="w.score"
  1742. @click.stop="openScore(w)"
  1743. :class="{
  1744. rightW:
  1745. w.userid == userid ||
  1746. tType == 1 ||
  1747. tType == 4 ||
  1748. w.ateacher == userid,
  1749. }"
  1750. >
  1751. {{ JSON.parse(w.score).wScore }}分
  1752. </div>
  1753. <div
  1754. class="answerScore"
  1755. @click.stop="openScore(w)"
  1756. v-else-if="courseDetail.userid == userid"
  1757. :class="{
  1758. rightW:
  1759. w.userid == userid ||
  1760. tType == 1 ||
  1761. tType == 4 ||
  1762. w.ateacher == userid,
  1763. }"
  1764. >
  1765. 评分
  1766. </div>
  1767. <img
  1768. class="deleteImg"
  1769. src="../../assets/deleteworks.png"
  1770. v-if="w.userid == userid || tType == 1 || tType == 4"
  1771. @click.stop="deleteWorks(w.wid)"
  1772. alt
  1773. />
  1774. </div>
  1775. <div class="comment" style="min-width: 200px">
  1776. <div class="worksName">
  1777. <div>{{ w.sName }}</div>
  1778. </div>
  1779. <div class="commentList">
  1780. <div class="commentList">
  1781. <div
  1782. class="commentImg"
  1783. @click="
  1784. isLikes(w.wid, userid, 1, null, w.isLikes)
  1785. "
  1786. >
  1787. <img
  1788. :src="w.isLikes == true ? likes : noLikes"
  1789. alt=""
  1790. />
  1791. </div>
  1792. <div>{{ w.likesCount }}</div>
  1793. </div>
  1794. <div class="commentList" style="margin-right: 15px">
  1795. <div
  1796. class="commentImg"
  1797. @click="commentOther(w, toolIndex, wIndex)"
  1798. >
  1799. <img
  1800. src="../../assets/icon/comment/comment.png"
  1801. alt=""
  1802. />
  1803. </div>
  1804. <div>{{ w.commentCount }}</div>
  1805. </div>
  1806. </div>
  1807. </div>
  1808. </div>
  1809. </div>
  1810. </div>
  1811. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  1812. <div
  1813. class="zuoyeYulan"
  1814. v-if="
  1815. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1816. "
  1817. >
  1818. <span>作业预览</span>
  1819. </div>
  1820. <div
  1821. class="worksDetailBox"
  1822. v-if="
  1823. worksTeacher.length && worksTeacher[toolIndex].length > 0
  1824. "
  1825. >
  1826. <div
  1827. class="works"
  1828. style="
  1829. width: 200px;
  1830. height: 140px;
  1831. margin: 10px 10px 10px 0;
  1832. border-radius: 15px;
  1833. box-shadow: 0 0 6px 1px #dfdada;
  1834. "
  1835. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1836. :key="wIndex"
  1837. :class="w.type == 1 ? 'isTypeOne' : ''"
  1838. >
  1839. <div class="workImg" v-if="w.type == 0">
  1840. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1841. <img :src="w.works" @click="previewImg(w.works)" alt />
  1842. <div
  1843. class="answerScore"
  1844. v-if="w.score"
  1845. @click.stop="openScore(w)"
  1846. :class="{
  1847. rightW:
  1848. w.userid == userid ||
  1849. tType == 1 ||
  1850. tType == 4 ||
  1851. w.ateacher == userid,
  1852. }"
  1853. >
  1854. {{ JSON.parse(w.score).wScore }}分
  1855. </div>
  1856. <div
  1857. class="answerScore"
  1858. @click.stop="openScore(w)"
  1859. v-else-if="courseDetail.userid == userid"
  1860. :class="{
  1861. rightW:
  1862. w.userid == userid ||
  1863. tType == 1 ||
  1864. tType == 4 ||
  1865. w.ateacher == userid,
  1866. }"
  1867. >
  1868. 评分
  1869. </div>
  1870. <img
  1871. class="deleteImg"
  1872. src="../../assets/deleteworks.png"
  1873. v-if="w.userid == userid || tType == 1 || tType == 4"
  1874. @click.stop="deleteWorks(w.wid)"
  1875. alt
  1876. />
  1877. </div>
  1878. <div
  1879. class="workImg"
  1880. style="cursor: pointer"
  1881. v-if="w.type == 1"
  1882. >
  1883. <img :src="word" @click="openFile(w.works)" alt />
  1884. <!-- @click="openFile(w.works)" -->
  1885. <div
  1886. class="answerScore"
  1887. v-if="w.score"
  1888. @click.stop="openScore(w)"
  1889. :class="{
  1890. rightW:
  1891. w.userid == userid ||
  1892. tType == 1 ||
  1893. tType == 4 ||
  1894. w.ateacher == userid,
  1895. }"
  1896. >
  1897. {{ JSON.parse(w.score).wScore }}分
  1898. </div>
  1899. <div
  1900. class="answerScore"
  1901. @click.stop="openScore(w)"
  1902. v-else-if="courseDetail.userid == userid"
  1903. :class="{
  1904. rightW:
  1905. w.userid == userid ||
  1906. tType == 1 ||
  1907. tType == 4 ||
  1908. w.ateacher == userid,
  1909. }"
  1910. >
  1911. 评分
  1912. </div>
  1913. <img
  1914. class="deleteImg"
  1915. src="../../assets/deleteworks.png"
  1916. v-if="w.userid == userid || tType == 1 || tType == 4"
  1917. @click.stop="deleteWorks(w.wid)"
  1918. alt
  1919. />
  1920. </div>
  1921. <div class="workImg" v-if="w.type == 3">
  1922. <img
  1923. style="cursor: pointer"
  1924. :src="video"
  1925. @click="openVideo(w)"
  1926. alt
  1927. />
  1928. <!-- @click="openVideo(w.works)" -->
  1929. <div
  1930. class="answerScore"
  1931. v-if="w.score"
  1932. @click.stop="openScore(w)"
  1933. :class="{
  1934. rightW:
  1935. w.userid == userid ||
  1936. tType == 1 ||
  1937. tType == 4 ||
  1938. w.ateacher == userid,
  1939. }"
  1940. >
  1941. {{ JSON.parse(w.score).wScore }}分
  1942. </div>
  1943. <div
  1944. class="answerScore"
  1945. @click.stop="openScore(w)"
  1946. v-else-if="courseDetail.userid == userid"
  1947. :class="{
  1948. rightW:
  1949. w.userid == userid ||
  1950. tType == 1 ||
  1951. tType == 4 ||
  1952. w.ateacher == userid,
  1953. }"
  1954. >
  1955. 评分
  1956. </div>
  1957. <img
  1958. class="deleteImg"
  1959. src="../../assets/deleteworks.png"
  1960. v-if="w.userid == userid || tType == 1 || tType == 4"
  1961. @click.stop="deleteWorks(w.wid)"
  1962. alt
  1963. />
  1964. </div>
  1965. <div class="comment" style="min-width: 200px">
  1966. <div class="worksName">
  1967. <div
  1968. style="cursor: pointer"
  1969. @click="
  1970. openSname(w.sName, w.wid, toolIndex, w.userid)
  1971. "
  1972. >
  1973. {{ w.sName }}
  1974. </div>
  1975. </div>
  1976. <div class="commentList">
  1977. <div class="commentList">
  1978. <div
  1979. class="commentImg"
  1980. @click="
  1981. isLikes(w.wid, userid, 1, null, w.isLikes)
  1982. "
  1983. >
  1984. <img
  1985. :src="w.isLikes == true ? likes : noLikes"
  1986. alt=""
  1987. />
  1988. </div>
  1989. <div>{{ w.likesCount }}</div>
  1990. </div>
  1991. <div class="commentList" style="margin-right: 15px">
  1992. <div
  1993. class="commentImg"
  1994. @click="commentOther(w, toolIndex, wIndex)"
  1995. >
  1996. <img
  1997. src="../../assets/icon/comment/comment.png"
  1998. alt=""
  1999. />
  2000. </div>
  2001. <div>{{ w.commentCount }}</div>
  2002. </div>
  2003. </div>
  2004. </div>
  2005. </div>
  2006. </div>
  2007. </div>
  2008. <div
  2009. v-if="
  2010. tType &&
  2011. ((tType == 2 && sIsOpen == true) ||
  2012. tType == 1 ||
  2013. tType == 4) &&
  2014. tool.tool.indexOf(4) != -1
  2015. "
  2016. class="worksBox"
  2017. >
  2018. <div
  2019. class="zuoyeYulan"
  2020. v-if="
  2021. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2022. "
  2023. >
  2024. <div class="worksTop">
  2025. <div>作业预览</div>
  2026. </div>
  2027. </div>
  2028. <div>
  2029. <div
  2030. class="worksDetailBox"
  2031. v-if="
  2032. worksTeacher.length &&
  2033. worksTeacher[toolIndex].length > 0
  2034. "
  2035. >
  2036. <div
  2037. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2038. :key="wIndex"
  2039. class="isWorksName2"
  2040. @click="
  2041. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2042. "
  2043. >
  2044. {{ w.sName }}
  2045. <img
  2046. class="deleteImg deleteImg2"
  2047. src="../../assets/deleteworks.png"
  2048. v-if="w.userid == userid || tType == 1 || tType == 4"
  2049. @click.stop="deleteWorks(w.wid)"
  2050. alt
  2051. />
  2052. </div>
  2053. </div>
  2054. </div>
  2055. </div>
  2056. <div
  2057. v-if="
  2058. tType &&
  2059. ((tType == 2 && sIsOpen == true) ||
  2060. tType == 1 ||
  2061. tType == 4) &&
  2062. tool.tool.indexOf(45) != -1
  2063. "
  2064. class="worksBox"
  2065. >
  2066. <div
  2067. class="zuoyeYulan"
  2068. v-if="
  2069. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2070. "
  2071. >
  2072. <div class="worksTop">
  2073. <div>作业预览</div>
  2074. </div>
  2075. </div>
  2076. <div>
  2077. <div
  2078. class="worksDetailBox"
  2079. v-if="
  2080. worksTeacher.length &&
  2081. worksTeacher[toolIndex].length > 0
  2082. "
  2083. >
  2084. <div
  2085. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2086. :key="wIndex"
  2087. class="isWorksName2"
  2088. @click="
  2089. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2090. "
  2091. >
  2092. {{ w.sName }}
  2093. <img
  2094. class="deleteImg deleteImg2"
  2095. src="../../assets/deleteworks.png"
  2096. v-if="w.userid == userid || tType == 1 || tType == 4"
  2097. @click.stop="deleteWorks(w.wid)"
  2098. alt
  2099. />
  2100. </div>
  2101. </div>
  2102. </div>
  2103. </div>
  2104. <div
  2105. v-if="
  2106. tType &&
  2107. ((tType == 2 && sIsOpen == true) ||
  2108. tType == 1 ||
  2109. tType == 4) &&
  2110. tool.tool.indexOf(15) != -1
  2111. "
  2112. class="worksBox"
  2113. >
  2114. <div
  2115. class="zuoyeYulan"
  2116. v-if="
  2117. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2118. "
  2119. >
  2120. <div class="worksTop">
  2121. <div>作业预览</div>
  2122. </div>
  2123. </div>
  2124. <div
  2125. class="worksDetailBox"
  2126. v-if="
  2127. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2128. "
  2129. >
  2130. <div
  2131. class="works"
  2132. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2133. :key="wIndex"
  2134. >
  2135. <div
  2136. class="workImg"
  2137. style="
  2138. border-radius: 15px;
  2139. box-shadow: #eee 0px 0px 5px 5px;
  2140. "
  2141. >
  2142. <!-- <img
  2143. src="../../assets/icon/works/noImg.png"
  2144. @click="openTools(15, toolIndex, taskCount, w.works)"
  2145. alt=""
  2146. />-->
  2147. <div
  2148. class="answerBg"
  2149. style="border-radius: 15px 15px 0 0"
  2150. @click="commentOther(w, toolIndex, wIndex)"
  2151. >
  2152. <!-- <div>{{ w.sName }}</div> -->
  2153. <div class="answerContent">
  2154. {{ JSON.parse(w.works)[0].answer }}
  2155. </div>
  2156. <div
  2157. class="answerScore"
  2158. v-if="w.score"
  2159. @click.stop="openScore(w)"
  2160. :class="{
  2161. rightW:
  2162. w.userid == userid || tType == 1 || tType == 4,
  2163. }"
  2164. >
  2165. {{ JSON.parse(w.score).wScore }}分
  2166. </div>
  2167. <div
  2168. class="answerScore"
  2169. @click.stop="openScore(w)"
  2170. v-else-if="courseDetail.userid == userid"
  2171. :class="{
  2172. rightW:
  2173. w.userid == userid || tType == 1 || tType == 4,
  2174. }"
  2175. >
  2176. 评分
  2177. </div>
  2178. <img
  2179. class="deleteImg"
  2180. src="../../assets/deleteworks.png"
  2181. v-if="
  2182. w.userid == userid || tType == 1 || tType == 4
  2183. "
  2184. @click.stop="deleteWorks(w.wid)"
  2185. alt
  2186. />
  2187. </div>
  2188. <div class="comment">
  2189. <div class="worksName">
  2190. <div>{{ w.sName }}</div>
  2191. </div>
  2192. <div class="commentList">
  2193. <div
  2194. class="commentImg"
  2195. @click="
  2196. isLikes(w.wid, userid, 1, null, w.isLikes)
  2197. "
  2198. >
  2199. <img
  2200. :src="w.isLikes == true ? likes : noLikes"
  2201. alt=""
  2202. />
  2203. </div>
  2204. <div>{{ w.likesCount }}</div>
  2205. </div>
  2206. <div class="commentList" style="margin-right: 15px">
  2207. <div
  2208. class="commentImg"
  2209. @click="commentOther(w, toolIndex, wIndex)"
  2210. >
  2211. <img
  2212. src="../../assets/icon/comment/comment.png"
  2213. alt=""
  2214. />
  2215. </div>
  2216. <div>{{ w.commentCount }}</div>
  2217. </div>
  2218. </div>
  2219. </div>
  2220. </div>
  2221. </div>
  2222. </div>
  2223. <div
  2224. v-if="
  2225. tType &&
  2226. ((tType == 2 && sIsOpen == true) ||
  2227. tType == 1 ||
  2228. tType == 4) &&
  2229. tool.tool.indexOf(1) != -1
  2230. "
  2231. class="worksBox"
  2232. >
  2233. <div
  2234. class="zuoyeYulan"
  2235. v-if="
  2236. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2237. "
  2238. >
  2239. <div class="worksTop">
  2240. <div>作业预览</div>
  2241. </div>
  2242. </div>
  2243. <div
  2244. class="worksDetailBox"
  2245. v-if="
  2246. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2247. "
  2248. >
  2249. <div
  2250. class="works"
  2251. style="
  2252. width: 200px;
  2253. height: 140px;
  2254. margin: 10px 10px 10px 0;
  2255. border-radius: 15px;
  2256. box-shadow: 0 0 6px 1px #dfdada;
  2257. "
  2258. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2259. :key="wIndex"
  2260. >
  2261. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2262. <div class="workImg">
  2263. <img :src="w.works" @click="previewImg(w.works)" alt />
  2264. <div
  2265. class="answerScore"
  2266. v-if="w.score"
  2267. @click.stop="openScore(w)"
  2268. :class="{
  2269. rightW:
  2270. w.userid == userid || tType == 1 || tType == 4,
  2271. }"
  2272. >
  2273. {{ JSON.parse(w.score).wScore }}分
  2274. </div>
  2275. <div
  2276. class="answerScore"
  2277. @click.stop="openScore(w)"
  2278. v-else-if="courseDetail.userid == userid"
  2279. :class="{
  2280. rightW:
  2281. w.userid == userid || tType == 1 || tType == 4,
  2282. }"
  2283. >
  2284. 评分
  2285. </div>
  2286. <img
  2287. class="deleteImg"
  2288. src="../../assets/deleteworks.png"
  2289. v-if="w.userid == userid || tType == 1 || tType == 4"
  2290. @click.stop="deleteWorks(w.wid)"
  2291. alt
  2292. />
  2293. </div>
  2294. <div class="comment" style="min-width: 200px">
  2295. <div class="worksName">
  2296. <div>{{ w.sName }}</div>
  2297. </div>
  2298. <div class="commentList">
  2299. <div class="commentList">
  2300. <div
  2301. class="commentImg"
  2302. @click="
  2303. isLikes(w.wid, userid, 1, null, w.isLikes)
  2304. "
  2305. >
  2306. <img
  2307. :src="w.isLikes == true ? likes : noLikes"
  2308. alt=""
  2309. />
  2310. </div>
  2311. <div>{{ w.likesCount }}</div>
  2312. </div>
  2313. <div class="commentList" style="margin-right: 15px">
  2314. <div
  2315. class="commentImg"
  2316. @click="commentOther(w, toolIndex, wIndex)"
  2317. >
  2318. <img
  2319. src="../../assets/icon/comment/comment.png"
  2320. alt=""
  2321. />
  2322. </div>
  2323. <div>{{ w.commentCount }}</div>
  2324. </div>
  2325. </div>
  2326. </div>
  2327. </div>
  2328. </div>
  2329. </div>
  2330. <div
  2331. v-if="
  2332. tType &&
  2333. ((tType == 2 && sIsOpen == true) ||
  2334. tType == 1 ||
  2335. tType == 4) &&
  2336. tool.tool.indexOf(3) != -1
  2337. "
  2338. class="worksBox"
  2339. >
  2340. <div
  2341. class="zuoyeYulan"
  2342. v-if="
  2343. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2344. "
  2345. >
  2346. <div class="worksTop">
  2347. <div>作业预览</div>
  2348. </div>
  2349. </div>
  2350. <div
  2351. class="worksDetailBox"
  2352. v-if="
  2353. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2354. "
  2355. >
  2356. <div
  2357. class="works"
  2358. style="
  2359. width: 200px;
  2360. height: 140px;
  2361. margin: 10px 10px 10px 0;
  2362. border-radius: 15px;
  2363. box-shadow: 0 0 6px 1px #dfdada;
  2364. "
  2365. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2366. :key="wIndex"
  2367. >
  2368. <!-- @click="previewImg(w.works)" -->
  2369. <div class="workImg">
  2370. <img :src="w.works" @click="previewImg(w.works)" alt />
  2371. <div
  2372. class="answerScore"
  2373. v-if="w.score"
  2374. @click.stop="openScore(w)"
  2375. :class="{
  2376. rightW:
  2377. w.userid == userid || tType == 1 || tType == 4,
  2378. }"
  2379. >
  2380. {{ JSON.parse(w.score).wScore }}分
  2381. </div>
  2382. <div
  2383. class="answerScore"
  2384. @click.stop="openScore(w)"
  2385. v-else-if="courseDetail.userid == userid"
  2386. :class="{
  2387. rightW:
  2388. w.userid == userid || tType == 1 || tType == 4,
  2389. }"
  2390. >
  2391. 评分
  2392. </div>
  2393. <img
  2394. class="deleteImg"
  2395. src="../../assets/deleteworks.png"
  2396. v-if="w.userid == userid || tType == 1 || tType == 4"
  2397. @click.stop="deleteWorks(w.wid)"
  2398. alt
  2399. />
  2400. </div>
  2401. <div class="comment" style="min-width: 200px">
  2402. <div class="worksName">
  2403. <div>{{ w.sName }}</div>
  2404. </div>
  2405. <div class="commentList">
  2406. <div class="commentList">
  2407. <div
  2408. class="commentImg"
  2409. @click="
  2410. isLikes(w.wid, userid, 1, null, w.isLikes)
  2411. "
  2412. >
  2413. <img
  2414. :src="w.isLikes == true ? likes : noLikes"
  2415. alt=""
  2416. />
  2417. </div>
  2418. <div>{{ w.likesCount }}</div>
  2419. </div>
  2420. <div class="commentList" style="margin-right: 15px">
  2421. <div
  2422. class="commentImg"
  2423. @click="commentOther(w, toolIndex, wIndex)"
  2424. >
  2425. <img
  2426. src="../../assets/icon/comment/comment.png"
  2427. alt=""
  2428. />
  2429. </div>
  2430. <div>{{ w.commentCount }}</div>
  2431. </div>
  2432. </div>
  2433. </div>
  2434. </div>
  2435. </div>
  2436. </div>
  2437. <div
  2438. v-if="
  2439. tType &&
  2440. ((tType == 2 && sIsOpen == true) ||
  2441. tType == 1 ||
  2442. tType == 4) &&
  2443. tool.tool.indexOf(6) != -1
  2444. "
  2445. class="worksBox"
  2446. >
  2447. <div
  2448. class="zuoyeYulan"
  2449. v-if="
  2450. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2451. "
  2452. >
  2453. <div class="worksTop">
  2454. <div>作业预览</div>
  2455. </div>
  2456. </div>
  2457. <div
  2458. class="worksDetailBox"
  2459. v-if="
  2460. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2461. "
  2462. >
  2463. <div
  2464. class="works"
  2465. style="
  2466. width: 200px;
  2467. height: 140px;
  2468. margin: 10px 10px 10px 0;
  2469. border-radius: 15px;
  2470. box-shadow: 0 0 6px 1px #dfdada;
  2471. "
  2472. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2473. :key="wIndex"
  2474. >
  2475. <!-- @click="previewImg(w.works)" -->
  2476. <div class="workImg">
  2477. <img :src="w.works" @click="previewImg(w.works)" alt />
  2478. <div
  2479. class="answerScore"
  2480. v-if="w.score"
  2481. @click.stop="openScore(w)"
  2482. :class="{
  2483. rightW:
  2484. w.userid == userid || tType == 1 || tType == 4,
  2485. }"
  2486. >
  2487. {{ JSON.parse(w.score).wScore }}分
  2488. </div>
  2489. <div
  2490. class="answerScore"
  2491. @click.stop="openScore(w)"
  2492. v-else-if="courseDetail.userid == userid"
  2493. :class="{
  2494. rightW:
  2495. w.userid == userid || tType == 1 || tType == 4,
  2496. }"
  2497. >
  2498. 评分
  2499. </div>
  2500. <img
  2501. class="deleteImg"
  2502. src="../../assets/deleteworks.png"
  2503. v-if="w.userid == userid || tType == 1 || tType == 4"
  2504. @click.stop="deleteWorks(w.wid)"
  2505. alt
  2506. />
  2507. </div>
  2508. <div class="comment" style="min-width: 200px">
  2509. <div class="worksName">
  2510. <div>{{ w.sName }}</div>
  2511. </div>
  2512. <div class="commentList">
  2513. <div class="commentList">
  2514. <div
  2515. class="commentImg"
  2516. @click="
  2517. isLikes(w.wid, userid, 1, null, w.isLikes)
  2518. "
  2519. >
  2520. <img
  2521. :src="w.isLikes == true ? likes : noLikes"
  2522. alt=""
  2523. />
  2524. </div>
  2525. <div>{{ w.likesCount }}</div>
  2526. </div>
  2527. <div class="commentList" style="margin-right: 15px">
  2528. <div
  2529. class="commentImg"
  2530. @click="commentOther(w, toolIndex, wIndex)"
  2531. >
  2532. <img
  2533. src="../../assets/icon/comment/comment.png"
  2534. alt=""
  2535. />
  2536. </div>
  2537. <div>{{ w.commentCount }}</div>
  2538. </div>
  2539. </div>
  2540. </div>
  2541. </div>
  2542. </div>
  2543. </div>
  2544. <div
  2545. v-if="
  2546. tType &&
  2547. ((tType == 2 && sIsOpen == true) ||
  2548. tType == 1 ||
  2549. tType == 4) &&
  2550. tool.tool.indexOf(7) != -1
  2551. "
  2552. class="worksBox"
  2553. >
  2554. <div
  2555. class="zuoyeYulan"
  2556. v-if="
  2557. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2558. "
  2559. >
  2560. <div class="worksTop">
  2561. <div>作业预览</div>
  2562. </div>
  2563. </div>
  2564. <div
  2565. class="worksDetailBox"
  2566. v-if="
  2567. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2568. "
  2569. >
  2570. <div
  2571. class="works"
  2572. style="
  2573. width: 200px;
  2574. height: 140px;
  2575. margin: 10px 10px 10px 0;
  2576. border-radius: 15px;
  2577. box-shadow: 0 0 6px 1px #dfdada;
  2578. "
  2579. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2580. :key="wIndex"
  2581. >
  2582. <!-- @click="previewImg(w.works)" -->
  2583. <div class="workImg">
  2584. <img :src="w.works" @click="previewImg(w.works)" alt />
  2585. <div
  2586. class="answerScore"
  2587. v-if="w.score"
  2588. @click.stop="openScore(w)"
  2589. :class="{
  2590. rightW:
  2591. w.userid == userid || tType == 1 || tType == 4,
  2592. }"
  2593. >
  2594. {{ JSON.parse(w.score).wScore }}分
  2595. </div>
  2596. <div
  2597. class="answerScore"
  2598. @click.stop="openScore(w)"
  2599. v-else-if="courseDetail.userid == userid"
  2600. :class="{
  2601. rightW:
  2602. w.userid == userid || tType == 1 || tType == 4,
  2603. }"
  2604. >
  2605. 评分
  2606. </div>
  2607. <img
  2608. class="deleteImg"
  2609. src="../../assets/deleteworks.png"
  2610. v-if="w.userid == userid || tType == 1 || tType == 4"
  2611. @click.stop="deleteWorks(w.wid)"
  2612. alt
  2613. />
  2614. </div>
  2615. <div class="comment" style="min-width: 200px">
  2616. <div class="worksName">
  2617. <div>{{ w.sName }}</div>
  2618. </div>
  2619. <div class="commentList">
  2620. <div class="commentList">
  2621. <div
  2622. class="commentImg"
  2623. @click="
  2624. isLikes(w.wid, userid, 1, null, w.isLikes)
  2625. "
  2626. >
  2627. <img
  2628. :src="w.isLikes == true ? likes : noLikes"
  2629. alt=""
  2630. />
  2631. </div>
  2632. <div>{{ w.likesCount }}</div>
  2633. </div>
  2634. <div class="commentList" style="margin-right: 15px">
  2635. <div
  2636. class="commentImg"
  2637. @click="commentOther(w, toolIndex, wIndex)"
  2638. >
  2639. <img
  2640. src="../../assets/icon/comment/comment.png"
  2641. alt=""
  2642. />
  2643. </div>
  2644. <div>{{ w.commentCount }}</div>
  2645. </div>
  2646. </div>
  2647. </div>
  2648. </div>
  2649. </div>
  2650. </div>
  2651. <div
  2652. v-if="
  2653. tType &&
  2654. ((tType == 2 && sIsOpen == true) ||
  2655. tType == 1 ||
  2656. tType == 4) &&
  2657. tool.tool.indexOf(26) != -1
  2658. "
  2659. class="worksBox"
  2660. >
  2661. <div
  2662. class="zuoyeYulan"
  2663. v-if="
  2664. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2665. "
  2666. >
  2667. <div class="worksTop">
  2668. <div>作业预览</div>
  2669. </div>
  2670. </div>
  2671. <div
  2672. class="worksDetailBox"
  2673. v-if="
  2674. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2675. "
  2676. >
  2677. <div
  2678. class="works"
  2679. style="width: 240px; height: 140px; overflow: hidden"
  2680. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2681. :key="wIndex"
  2682. :class="w.type == 1 ? 'isTypeOne' : ''"
  2683. >
  2684. <div class="workImg" v-if="w.type == 0">
  2685. <img :src="w.works" @click="previewImg(w.works)" alt />
  2686. <img
  2687. class="deleteImg"
  2688. src="../../assets/deleteworks.png"
  2689. v-if="w.userid == userid || tType == 1 || tType == 4"
  2690. @click.stop="deleteWorks(w.wid)"
  2691. alt
  2692. />
  2693. </div>
  2694. <div class="workImg" v-if="w.type == 1">
  2695. <img :src="word" @click="openFile(w.works)" alt />
  2696. <img
  2697. class="deleteImg"
  2698. src="../../assets/deleteworks.png"
  2699. v-if="w.userid == userid || tType == 1 || tType == 4"
  2700. @click.stop="deleteWorks(w.wid)"
  2701. alt
  2702. />
  2703. </div>
  2704. <div class="worksName">
  2705. <div>{{ w.sName }}</div>
  2706. </div>
  2707. </div>
  2708. </div>
  2709. </div>
  2710. <div
  2711. v-if="
  2712. tType &&
  2713. ((tType == 2 && sIsOpen == true) ||
  2714. tType == 1 ||
  2715. tType == 4) &&
  2716. tool.tool.indexOf(40) != -1
  2717. "
  2718. class="worksBox"
  2719. >
  2720. <div
  2721. class="zuoyeYulan"
  2722. v-if="
  2723. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2724. "
  2725. >
  2726. <div class="worksTop">
  2727. <div>作业预览</div>
  2728. </div>
  2729. </div>
  2730. <div
  2731. class="worksDetailBox"
  2732. v-if="
  2733. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2734. "
  2735. >
  2736. <div
  2737. class="works"
  2738. style="
  2739. width: 200px;
  2740. height: 140px;
  2741. margin: 10px 10px 10px 0;
  2742. border-radius: 15px;
  2743. box-shadow: 0 0 6px 1px #dfdada;
  2744. "
  2745. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2746. :key="wIndex"
  2747. :class="w.type == 1 ? 'isTypeOne' : ''"
  2748. >
  2749. <div class="workImg">
  2750. <img
  2751. src="../../assets/icon/works/noImg.png"
  2752. @click="openPj(w.works, toolIndex)"
  2753. alt
  2754. />
  2755. <img
  2756. class="deleteImg"
  2757. src="../../assets/deleteworks.png"
  2758. v-if="w.userid == userid || tType == 1 || tType == 4"
  2759. @click.stop="deleteWorks(w.wid)"
  2760. alt
  2761. />
  2762. </div>
  2763. <div class="comment" style="min-width: 200px">
  2764. <div class="worksName">
  2765. <div>{{ w.sName }}</div>
  2766. </div>
  2767. <div class="commentList">
  2768. <div class="commentList">
  2769. <div
  2770. class="commentImg"
  2771. @click="
  2772. isLikes(w.wid, userid, 1, null, w.isLikes)
  2773. "
  2774. >
  2775. <img
  2776. :src="w.isLikes == true ? likes : noLikes"
  2777. alt=""
  2778. />
  2779. </div>
  2780. <div>{{ w.likesCount }}</div>
  2781. </div>
  2782. <div class="commentList" style="margin-right: 15px">
  2783. <div
  2784. class="commentImg"
  2785. @click="commentOther(w, toolIndex, wIndex)"
  2786. >
  2787. <img
  2788. src="../../assets/icon/comment/comment.png"
  2789. alt=""
  2790. />
  2791. </div>
  2792. <div>{{ w.commentCount }}</div>
  2793. </div>
  2794. </div>
  2795. </div>
  2796. </div>
  2797. </div>
  2798. </div>
  2799. <div
  2800. v-if="
  2801. tType &&
  2802. ((tType == 2 && sIsOpen == true) ||
  2803. tType == 1 ||
  2804. tType == 4) &&
  2805. tool.tool.indexOf(41) != -1
  2806. "
  2807. class="worksBox"
  2808. >
  2809. <div
  2810. class="zuoyeYulan"
  2811. v-if="
  2812. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2813. "
  2814. >
  2815. <div class="worksTop">
  2816. <div>作业预览</div>
  2817. </div>
  2818. </div>
  2819. <div
  2820. class="worksDetailBox"
  2821. v-if="
  2822. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2823. "
  2824. >
  2825. <div
  2826. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2827. :key="wIndex"
  2828. class="isWorksName2"
  2829. @click="openXz(w, toolIndex)"
  2830. >
  2831. {{ w.sName }}
  2832. <img
  2833. class="deleteImg deleteImg2"
  2834. src="../../assets/deleteworks.png"
  2835. v-if="w.userid == userid || tType == 1 || tType == 4"
  2836. @click.stop="deleteWorks(w.wid)"
  2837. alt
  2838. />
  2839. </div>
  2840. </div>
  2841. </div>
  2842. <div
  2843. v-if="
  2844. tType &&
  2845. ((tType == 2 && sIsOpen == true) ||
  2846. tType == 1 ||
  2847. tType == 4) &&
  2848. tool.tool.indexOf(47) != -1
  2849. "
  2850. class="worksBox"
  2851. >
  2852. <div
  2853. class="zuoyeYulan"
  2854. v-if="
  2855. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2856. "
  2857. >
  2858. <div class="worksTop">
  2859. <div>作业预览</div>
  2860. </div>
  2861. </div>
  2862. <div
  2863. class="worksDetailBox"
  2864. v-if="
  2865. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2866. "
  2867. >
  2868. <!-- @click="openXz(w, toolIndex)" -->
  2869. <div
  2870. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2871. :key="wIndex"
  2872. class="isWorksName2"
  2873. @click="openSen(w, toolIndex)"
  2874. >
  2875. {{ w.sName }}
  2876. <img
  2877. class="deleteImg deleteImg2"
  2878. src="../../assets/deleteworks.png"
  2879. v-if="w.userid == userid || tType == 1 || tType == 4"
  2880. @click.stop="deleteWorks(w.wid)"
  2881. alt
  2882. />
  2883. </div>
  2884. </div>
  2885. </div>
  2886. <div
  2887. v-if="
  2888. tType &&
  2889. ((tType == 2 && sIsOpen == true) ||
  2890. tType == 1 ||
  2891. tType == 4) &&
  2892. tool.tool.indexOf(48) != -1
  2893. "
  2894. class="worksBox"
  2895. >
  2896. <div
  2897. class="zuoyeYulan"
  2898. v-if="
  2899. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2900. "
  2901. >
  2902. <div class="worksTop">
  2903. <div>作业预览</div>
  2904. </div>
  2905. </div>
  2906. <div
  2907. class="worksDetailBox"
  2908. v-if="
  2909. worksTeacher.length && worksTeacher[toolIndex].length > 0
  2910. "
  2911. >
  2912. <div
  2913. class="works"
  2914. style="
  2915. width: 200px;
  2916. height: 140px;
  2917. margin: 10px 10px 10px 0;
  2918. border-radius: 15px;
  2919. box-shadow: 0 0 6px 1px #dfdada;
  2920. "
  2921. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  2922. :key="wIndex"
  2923. :class="w.type == 1 ? 'isTypeOne' : ''"
  2924. >
  2925. <div class="workImg">
  2926. <img :src="word" @click="openTable(w)" alt />
  2927. <!-- @click="openFile(w.works)" -->
  2928. <div
  2929. class="answerScore"
  2930. v-if="w.score"
  2931. @click.stop="openScore(w)"
  2932. :class="{
  2933. rightW:
  2934. w.userid == userid ||
  2935. tType == 1 ||
  2936. tType == 4 ||
  2937. w.ateacher == userid,
  2938. }"
  2939. >
  2940. {{ JSON.parse(w.score).wScore }}分
  2941. </div>
  2942. <div
  2943. class="answerScore"
  2944. @click.stop="openScore(w)"
  2945. v-else-if="courseDetail.userid == userid"
  2946. :class="{
  2947. rightW:
  2948. w.userid == userid ||
  2949. tType == 1 ||
  2950. tType == 4 ||
  2951. w.ateacher == userid,
  2952. }"
  2953. >
  2954. 评分
  2955. </div>
  2956. <img
  2957. class="deleteImg"
  2958. src="../../assets/deleteworks.png"
  2959. v-if="w.userid == userid || tType == 1 || tType == 4"
  2960. @click.stop="deleteWorks(w.wid)"
  2961. alt
  2962. />
  2963. </div>
  2964. <div class="comment" style="min-width: 200px">
  2965. <div class="worksName">
  2966. <div>{{ w.sName }}</div>
  2967. </div>
  2968. <div class="commentList">
  2969. <div class="commentList">
  2970. <div
  2971. class="commentImg"
  2972. @click="
  2973. isLikes(w.wid, userid, 1, null, w.isLikes)
  2974. "
  2975. >
  2976. <img
  2977. :src="w.isLikes == true ? likes : noLikes"
  2978. alt=""
  2979. />
  2980. </div>
  2981. <div>{{ w.likesCount }}</div>
  2982. </div>
  2983. <div class="commentList" style="margin-right: 15px">
  2984. <div
  2985. class="commentImg"
  2986. @click="commentOther(w, toolIndex, wIndex)"
  2987. >
  2988. <img
  2989. src="../../assets/icon/comment/comment.png"
  2990. alt=""
  2991. />
  2992. </div>
  2993. <div>{{ w.commentCount }}</div>
  2994. </div>
  2995. </div>
  2996. </div>
  2997. </div>
  2998. </div>
  2999. </div>
  3000. <div
  3001. v-if="
  3002. tType &&
  3003. ((tType == 2 && sIsOpen == true) ||
  3004. tType == 1 ||
  3005. tType == 4) &&
  3006. tool.tool.indexOf(52) != -1
  3007. "
  3008. class="worksBox"
  3009. >
  3010. <div
  3011. class="zuoyeYulan"
  3012. v-if="
  3013. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3014. "
  3015. >
  3016. <div class="worksTop">
  3017. <div>作业预览</div>
  3018. </div>
  3019. </div>
  3020. <div
  3021. class="worksDetailBox"
  3022. v-if="
  3023. worksTeacher.length && worksTeacher[toolIndex].length > 0
  3024. "
  3025. >
  3026. <div
  3027. class="works"
  3028. style="
  3029. width: 200px;
  3030. height: 140px;
  3031. margin: 10px 10px 10px 0;
  3032. border-radius: 15px;
  3033. box-shadow: 0 0 6px 1px #dfdada;
  3034. "
  3035. v-for="(w, wIndex) in worksTeacher[toolIndex]"
  3036. :key="wIndex"
  3037. :class="w.type == 1 ? 'isTypeOne' : ''"
  3038. >
  3039. <div class="workImg">
  3040. <img :src="word" @click="openWord(w)" alt />
  3041. <!-- @click="openFile(w.works)" -->
  3042. <div
  3043. class="answerScore"
  3044. v-if="w.score"
  3045. @click.stop="openScore(w)"
  3046. :class="{
  3047. rightW:
  3048. w.userid == userid ||
  3049. tType == 1 ||
  3050. tType == 4 ||
  3051. w.ateacher == userid,
  3052. }"
  3053. >
  3054. {{ JSON.parse(w.score).wScore }}分
  3055. </div>
  3056. <div
  3057. class="answerScore"
  3058. @click.stop="openScore(w)"
  3059. v-else-if="courseDetail.userid == userid"
  3060. :class="{
  3061. rightW:
  3062. w.userid == userid ||
  3063. tType == 1 ||
  3064. tType == 4 ||
  3065. w.ateacher == userid,
  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. </div>
  3116. <div class="vedioBox">
  3117. <div
  3118. v-if="
  3119. tType &&
  3120. ((tType == 2 && sIsOpen == true) ||
  3121. tType == 1 ||
  3122. tType == 4) &&
  3123. tool.tool.indexOf(4) != -1 &&
  3124. worksStudent.length &&
  3125. worksStudent[toolIndex].length &&
  3126. (tool.askJson[0].answer || tool.askJson[0].answer === 0) &&
  3127. checkJson[toolIndex].length
  3128. "
  3129. class="xuan_right_box"
  3130. >
  3131. <div
  3132. class="tool_right_box"
  3133. v-for="(item, index) in tool.askJson"
  3134. :key="index"
  3135. >
  3136. <div>
  3137. <span style="word-break: break-all; white-space: normal">{{
  3138. index + 1 + "、" + item.askstitle
  3139. }}</span>
  3140. </div>
  3141. <div class="right_box_xuan">
  3142. <span>正确率</span>
  3143. <span>{{
  3144. (checkJson[toolIndex][index].right
  3145. ? checkJson[toolIndex][index].right
  3146. : 0) + "%"
  3147. }}</span>
  3148. </div>
  3149. </div>
  3150. </div>
  3151. <div
  3152. class="xuan_right_box"
  3153. style="background: unset; padding: 0 10px"
  3154. v-if="
  3155. tType &&
  3156. ((tType == 2 && sIsOpen == true) ||
  3157. tType == 1 ||
  3158. tType == 4) &&
  3159. tool.tool.indexOf(4) != -1 &&
  3160. worksStudent.length &&
  3161. worksStudent[toolIndex].length
  3162. "
  3163. >
  3164. <AskStatic
  3165. v-if="
  3166. worksStudent.length && worksStudent[toolIndex].length > 0
  3167. "
  3168. :askJSON="tool"
  3169. :checkJson="checkJson[toolIndex]"
  3170. ></AskStatic>
  3171. </div>
  3172. <div
  3173. v-if="
  3174. tType &&
  3175. ((tType == 2 && sIsOpen == true) ||
  3176. tType == 1 ||
  3177. tType == 4) &&
  3178. tool.tool.indexOf(45) != -1 &&
  3179. worksStudent.length &&
  3180. worksStudent[toolIndex].length &&
  3181. (tool.testJson.testJson[0].answer ||
  3182. tool.testJson.testJson[0].answer === 0) &&
  3183. checkJson[toolIndex].length
  3184. "
  3185. class="xuan_right_box"
  3186. >
  3187. <div
  3188. class="tool_right_box"
  3189. v-for="(item, index) in tool.testJson.testJson"
  3190. :key="index"
  3191. >
  3192. <div class="right_box_xuan" style="margin-right: 10px">
  3193. <span>正确率</span>
  3194. <span>{{
  3195. (checkJson[toolIndex][index].right
  3196. ? checkJson[toolIndex][index].right
  3197. : 0) + "%"
  3198. }}</span>
  3199. </div>
  3200. <div>
  3201. <span style="word-break: break-all; white-space: normal">{{
  3202. index + 1 + "、" + item.teststitle
  3203. }}</span>
  3204. </div>
  3205. </div>
  3206. </div>
  3207. <div
  3208. class="xuan_right_box"
  3209. style="background: unset; padding: 0 10px"
  3210. v-if="
  3211. tType &&
  3212. ((tType == 2 && sIsOpen == true) ||
  3213. tType == 1 ||
  3214. tType == 4) &&
  3215. tool.tool.indexOf(45) != -1 &&
  3216. worksStudent.length &&
  3217. worksStudent[toolIndex].length
  3218. "
  3219. >
  3220. <AskStatic2
  3221. v-if="
  3222. worksStudent.length && worksStudent[toolIndex].length > 0
  3223. "
  3224. :askJSON="tool"
  3225. :checkJson="checkJson[toolIndex]"
  3226. ></AskStatic2>
  3227. </div>
  3228. <div
  3229. v-if="
  3230. tType &&
  3231. ((tType == 2 && sIsOpen == true) ||
  3232. tType == 1 ||
  3233. tType == 4) &&
  3234. tool.tool.indexOf(41) != -1
  3235. "
  3236. >
  3237. <AnswerData2
  3238. v-if="
  3239. worksStudent.length && worksStudent[toolIndex].length > 0
  3240. "
  3241. :problemJson="tool.selectJson.answer"
  3242. :people="worksStudent[toolIndex]"
  3243. ></AnswerData2>
  3244. </div>
  3245. <div
  3246. v-if="
  3247. tType &&
  3248. ((tType == 2 && sIsOpen == true) ||
  3249. tType == 1 ||
  3250. tType == 4) &&
  3251. tool.tool.indexOf(47) != -1
  3252. "
  3253. >
  3254. <AnswerData
  3255. v-if="
  3256. checkJson[toolIndex].length &&
  3257. (tool.sentenceList || tool.sentenceList.length > 0)
  3258. "
  3259. :people="checkJson[toolIndex]"
  3260. ></AnswerData>
  3261. </div>
  3262. </div>
  3263. <div
  3264. class="vedioBox"
  3265. v-if="
  3266. noWorksS[toolIndex].length &&
  3267. arrayToArray(tool.tool, isWorkTool).length &&
  3268. false
  3269. "
  3270. >
  3271. <div
  3272. class="queTop"
  3273. style="
  3274. font-size: 20px;
  3275. padding: 15px 0 15px 37px;
  3276. font-weight: bold;
  3277. "
  3278. >
  3279. 学生工作区
  3280. </div>
  3281. <div class="tool_work_box">
  3282. <div
  3283. v-if="
  3284. tType &&
  3285. ((tType == 2 && sIsOpen == true) ||
  3286. tType == 1 ||
  3287. tType == 4) &&
  3288. tool.tool.indexOf(16) != -1
  3289. "
  3290. class="worksBox"
  3291. >
  3292. <div
  3293. class="zuoyeYulan"
  3294. v-if="
  3295. worksStudent2.length &&
  3296. worksStudent2[toolIndex].length > 0
  3297. "
  3298. >
  3299. <div class="worksTop">
  3300. <div>作业预览</div>
  3301. <div
  3302. class="corOpen"
  3303. @click="contract(toolIndex)"
  3304. v-if="
  3305. worksStudent2[toolIndex].length > 6 &&
  3306. isCloseList[toolIndex].isClose == 0
  3307. "
  3308. >
  3309. 收缩
  3310. </div>
  3311. <div
  3312. class="corOpen"
  3313. @click="contract(toolIndex)"
  3314. v-if="isCloseList[toolIndex].isClose == 1"
  3315. >
  3316. 展开
  3317. </div>
  3318. </div>
  3319. </div>
  3320. <div
  3321. class="worksDetailBox"
  3322. v-if="
  3323. worksStudent2.length &&
  3324. worksStudent2[toolIndex].length > 0
  3325. "
  3326. >
  3327. <div
  3328. class="works"
  3329. style="
  3330. width: 200px;
  3331. height: 140px;
  3332. margin: 10px 10px 10px 0;
  3333. border-radius: 15px;
  3334. box-shadow: 0 0 6px 1px #dfdada;
  3335. "
  3336. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3337. ? worksStudent2[toolIndex]
  3338. : worksStudent2[toolIndex].slice(0, 6)"
  3339. :key="wIndex"
  3340. :class="w.type == 1 ? 'isTypeOne' : ''"
  3341. >
  3342. <div class="workImg" v-if="w.type == 0">
  3343. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3344. <img :src="w.works" @click="previewImg(w.works)" alt />
  3345. <div
  3346. class="answerScore"
  3347. v-if="w.score"
  3348. @click.stop="openScore(w)"
  3349. :class="{
  3350. rightW:
  3351. w.userid == userid ||
  3352. tType == 1 ||
  3353. tType == 4 ||
  3354. w.ateacher == userid,
  3355. }"
  3356. >
  3357. {{ JSON.parse(w.score).wScore }}分
  3358. </div>
  3359. <div
  3360. class="answerScore"
  3361. @click.stop="openScore(w)"
  3362. v-else-if="courseDetail.userid == userid"
  3363. :class="{
  3364. rightW:
  3365. w.userid == userid ||
  3366. tType == 1 ||
  3367. tType == 4 ||
  3368. w.ateacher == userid,
  3369. }"
  3370. >
  3371. 评分
  3372. </div>
  3373. <img
  3374. class="deleteImg"
  3375. src="../../assets/deleteworks.png"
  3376. v-if="w.userid == userid || tType == 1 || tType == 4"
  3377. @click.stop="deleteWorks(w.wid)"
  3378. alt
  3379. />
  3380. </div>
  3381. <div class="workImg" v-if="w.type == 1">
  3382. <img :src="word" @click="openFile(w.works)" alt />
  3383. <!-- @click="openFile(w.works)" -->
  3384. <div
  3385. class="answerScore"
  3386. v-if="w.score"
  3387. @click.stop="openScore(w)"
  3388. :class="{
  3389. rightW:
  3390. w.userid == userid ||
  3391. tType == 1 ||
  3392. tType == 4 ||
  3393. w.ateacher == userid,
  3394. }"
  3395. >
  3396. {{ JSON.parse(w.score).wScore }}分
  3397. </div>
  3398. <div
  3399. class="answerScore"
  3400. @click.stop="openScore(w)"
  3401. v-else-if="courseDetail.userid == userid"
  3402. :class="{
  3403. rightW:
  3404. w.userid == userid ||
  3405. tType == 1 ||
  3406. tType == 4 ||
  3407. w.ateacher == userid,
  3408. }"
  3409. >
  3410. 评分
  3411. </div>
  3412. <img
  3413. class="deleteImg"
  3414. src="../../assets/deleteworks.png"
  3415. v-if="w.userid == userid || tType == 1 || tType == 4"
  3416. @click.stop="deleteWorks(w.wid)"
  3417. alt
  3418. />
  3419. </div>
  3420. <div class="workImg" v-if="w.type == 3">
  3421. <img
  3422. style="cursor: pointer"
  3423. :src="video"
  3424. @click="openVideo(w)"
  3425. alt
  3426. />
  3427. <!-- @click="openVideo(w.works)" -->
  3428. <div
  3429. class="answerScore"
  3430. v-if="w.score"
  3431. @click.stop="openScore(w)"
  3432. :class="{
  3433. rightW:
  3434. w.userid == userid ||
  3435. tType == 1 ||
  3436. tType == 4 ||
  3437. w.ateacher == userid,
  3438. }"
  3439. >
  3440. {{ JSON.parse(w.score).wScore }}分
  3441. </div>
  3442. <div
  3443. class="answerScore"
  3444. @click.stop="openScore(w)"
  3445. v-else-if="courseDetail.userid == userid"
  3446. :class="{
  3447. rightW:
  3448. w.userid == userid ||
  3449. tType == 1 ||
  3450. tType == 4 ||
  3451. w.ateacher == userid,
  3452. }"
  3453. >
  3454. 评分
  3455. </div>
  3456. <img
  3457. class="deleteImg"
  3458. src="../../assets/deleteworks.png"
  3459. v-if="w.userid == userid || tType == 1 || tType == 4"
  3460. @click.stop="deleteWorks(w.wid)"
  3461. alt
  3462. />
  3463. </div>
  3464. <div class="workImg" v-if="w.type == 12">
  3465. <img
  3466. style="cursor: pointer"
  3467. :src="word2"
  3468. @click="downloadFile(w.works)"
  3469. alt
  3470. />
  3471. <!-- @click="openVideo(w.works)" -->
  3472. <div
  3473. class="answerScore"
  3474. v-if="w.score"
  3475. @click.stop="openScore(w)"
  3476. :class="{
  3477. rightW:
  3478. w.userid == userid ||
  3479. tType == 1 ||
  3480. tType == 4 ||
  3481. w.ateacher == userid,
  3482. }"
  3483. >
  3484. {{ JSON.parse(w.score).wScore }}分
  3485. </div>
  3486. <div
  3487. class="answerScore"
  3488. @click.stop="openScore(w)"
  3489. v-else-if="courseDetail.userid == userid"
  3490. :class="{
  3491. rightW:
  3492. w.userid == userid ||
  3493. tType == 1 ||
  3494. tType == 4 ||
  3495. w.ateacher == userid,
  3496. }"
  3497. >
  3498. 评分
  3499. </div>
  3500. <img
  3501. class="deleteImg"
  3502. src="../../assets/deleteworks.png"
  3503. v-if="w.userid == userid || tType == 1 || tType == 4"
  3504. @click.stop="deleteWorks(w.wid)"
  3505. alt
  3506. />
  3507. </div>
  3508. <div class="comment" style="min-width: 200px">
  3509. <div class="worksName">
  3510. <div>{{ w.sName }}</div>
  3511. </div>
  3512. <div class="commentList">
  3513. <div class="commentList">
  3514. <div
  3515. class="commentImg"
  3516. @click="
  3517. isLikes(w.wid, userid, 1, null, w.isLikes)
  3518. "
  3519. >
  3520. <img
  3521. :src="w.isLikes == true ? likes : noLikes"
  3522. alt=""
  3523. />
  3524. </div>
  3525. <div>{{ w.likesCount }}</div>
  3526. </div>
  3527. <div class="commentList" style="margin-right: 15px">
  3528. <div
  3529. class="commentImg"
  3530. @click="commentOther(w, toolIndex, wIndex)"
  3531. >
  3532. <img
  3533. src="../../assets/icon/comment/comment.png"
  3534. alt=""
  3535. />
  3536. </div>
  3537. <div>{{ w.commentCount }}</div>
  3538. </div>
  3539. </div>
  3540. </div>
  3541. </div>
  3542. </div>
  3543. <div class="noWorksS">
  3544. <div
  3545. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3546. :key="sIndex"
  3547. class="noWorksName"
  3548. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3549. :class="{ isWork: s.type == '2' }"
  3550. >
  3551. {{ s.student }}
  3552. </div>
  3553. </div>
  3554. </div>
  3555. <div
  3556. v-if="
  3557. tType &&
  3558. ((tType == 2 && sIsOpen == true) ||
  3559. tType == 1 ||
  3560. tType == 4) &&
  3561. tool.tool.indexOf(32) != -1
  3562. "
  3563. class="worksBox"
  3564. >
  3565. <div
  3566. class="zuoyeYulan"
  3567. v-if="
  3568. worksStudent2.length &&
  3569. worksStudent2[toolIndex].length > 0
  3570. "
  3571. >
  3572. <div class="worksTop">
  3573. <div>作业预览</div>
  3574. <div
  3575. class="corOpen"
  3576. @click="contract(toolIndex)"
  3577. v-if="
  3578. worksStudent2[toolIndex].length > 6 &&
  3579. isCloseList[toolIndex].isClose == 0
  3580. "
  3581. >
  3582. 收缩
  3583. </div>
  3584. <div
  3585. class="corOpen"
  3586. @click="contract(toolIndex)"
  3587. v-if="isCloseList[toolIndex].isClose == 1"
  3588. >
  3589. 展开
  3590. </div>
  3591. </div>
  3592. </div>
  3593. <div
  3594. class="worksDetailBox"
  3595. v-if="
  3596. worksStudent2.length &&
  3597. worksStudent2[toolIndex].length > 0
  3598. "
  3599. >
  3600. <div
  3601. class="works"
  3602. style="
  3603. width: 200px;
  3604. height: 140px;
  3605. margin: 10px 10px 10px 0;
  3606. border-radius: 15px;
  3607. box-shadow: 0 0 6px 1px #dfdada;
  3608. "
  3609. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3610. ? worksStudent2[toolIndex]
  3611. : worksStudent2[toolIndex].slice(0, 6)"
  3612. :key="wIndex"
  3613. :class="w.type == 1 ? 'isTypeOne' : ''"
  3614. >
  3615. <div class="workImg">
  3616. <img :src="word2" @click="downloadFile(w.works)" alt />
  3617. <div
  3618. class="answerScore"
  3619. v-if="w.score"
  3620. @click.stop="openScore(w)"
  3621. :class="{
  3622. rightW:
  3623. w.userid == userid ||
  3624. tType == 1 ||
  3625. tType == 4 ||
  3626. w.ateacher == userid,
  3627. }"
  3628. >
  3629. {{ JSON.parse(w.score).wScore }}分
  3630. </div>
  3631. <div
  3632. class="answerScore"
  3633. @click.stop="openScore(w)"
  3634. v-else-if="courseDetail.userid == userid"
  3635. :class="{
  3636. rightW:
  3637. w.userid == userid ||
  3638. tType == 1 ||
  3639. tType == 4 ||
  3640. w.ateacher == userid,
  3641. }"
  3642. >
  3643. 评分
  3644. </div>
  3645. <img
  3646. class="deleteImg"
  3647. src="../../assets/deleteworks.png"
  3648. v-if="w.userid == userid || tType == 1 || tType == 4"
  3649. @click.stop="deleteWorks(w.wid)"
  3650. alt
  3651. />
  3652. </div>
  3653. <div class="comment" style="min-width: 200px">
  3654. <div class="worksName">
  3655. <div>{{ w.sName }}</div>
  3656. </div>
  3657. <div class="commentList">
  3658. <div class="commentList">
  3659. <div
  3660. class="commentImg"
  3661. @click="
  3662. isLikes(w.wid, userid, 1, null, w.isLikes)
  3663. "
  3664. >
  3665. <img
  3666. :src="w.isLikes == true ? likes : noLikes"
  3667. alt=""
  3668. />
  3669. </div>
  3670. <div>{{ w.likesCount }}</div>
  3671. </div>
  3672. <div class="commentList" style="margin-right: 15px">
  3673. <div
  3674. class="commentImg"
  3675. @click="commentOther(w, toolIndex, wIndex)"
  3676. >
  3677. <img
  3678. src="../../assets/icon/comment/comment.png"
  3679. alt=""
  3680. />
  3681. </div>
  3682. <div>{{ w.commentCount }}</div>
  3683. </div>
  3684. </div>
  3685. </div>
  3686. </div>
  3687. </div>
  3688. <div class="noWorksS">
  3689. <div
  3690. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3691. :key="sIndex"
  3692. class="noWorksName"
  3693. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3694. :class="{ isWork: s.type == '2' }"
  3695. >
  3696. {{ s.student }}
  3697. </div>
  3698. </div>
  3699. </div>
  3700. <div
  3701. v-if="
  3702. tType &&
  3703. ((tType == 2 && sIsOpen == true) ||
  3704. tType == 1 ||
  3705. tType == 4) &&
  3706. tool.tool.indexOf(57) != -1
  3707. "
  3708. class="worksBox"
  3709. >
  3710. <div
  3711. class="zuoyeYulan"
  3712. v-if="
  3713. worksStudent2.length &&
  3714. worksStudent2[toolIndex].length > 0
  3715. "
  3716. >
  3717. <div class="worksTop">
  3718. <div>作业预览</div>
  3719. <div
  3720. class="corOpen"
  3721. @click="contract(toolIndex)"
  3722. v-if="
  3723. worksStudent2[toolIndex].length > 6 &&
  3724. isCloseList[toolIndex].isClose == 0
  3725. "
  3726. >
  3727. 收缩
  3728. </div>
  3729. <div
  3730. class="corOpen"
  3731. @click="contract(toolIndex)"
  3732. v-if="isCloseList[toolIndex].isClose == 1"
  3733. >
  3734. 展开
  3735. </div>
  3736. </div>
  3737. </div>
  3738. <div
  3739. class="worksDetailBox"
  3740. v-if="
  3741. worksStudent2.length &&
  3742. worksStudent2[toolIndex].length > 0
  3743. "
  3744. >
  3745. <div
  3746. class="works"
  3747. style="
  3748. width: 200px;
  3749. height: 140px;
  3750. margin: 10px 10px 10px 0;
  3751. border-radius: 15px;
  3752. box-shadow: 0 0 6px 1px #dfdada;
  3753. "
  3754. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3755. ? worksStudent2[toolIndex]
  3756. : worksStudent2[toolIndex].slice(0, 6)"
  3757. :key="wIndex"
  3758. :class="w.type == 1 ? 'isTypeOne' : ''"
  3759. >
  3760. <div class="workImg">
  3761. <img
  3762. :src="word2"
  3763. @click="downloadFile(w.works)"
  3764. v-if="w.type == 12"
  3765. alt
  3766. />
  3767. <img
  3768. :src="word2"
  3769. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  3770. v-else-if="w.type == 15"
  3771. alt
  3772. />
  3773. <div
  3774. class="answerScore"
  3775. v-if="w.score"
  3776. @click.stop="openScore(w)"
  3777. :class="{
  3778. rightW:
  3779. w.userid == userid ||
  3780. tType == 1 ||
  3781. tType == 4 ||
  3782. w.ateacher == userid,
  3783. }"
  3784. >
  3785. {{ JSON.parse(w.score).wScore }}分
  3786. </div>
  3787. <div
  3788. class="answerScore"
  3789. @click.stop="openScore(w)"
  3790. v-else-if="courseDetail.userid == userid"
  3791. :class="{
  3792. rightW:
  3793. w.userid == userid ||
  3794. tType == 1 ||
  3795. tType == 4 ||
  3796. w.ateacher == userid,
  3797. }"
  3798. >
  3799. 评分
  3800. </div>
  3801. <img
  3802. class="deleteImg"
  3803. src="../../assets/deleteworks.png"
  3804. v-if="w.userid == userid || tType == 1 || tType == 4"
  3805. @click.stop="deleteWorks(w.wid)"
  3806. alt
  3807. />
  3808. </div>
  3809. <div class="comment" style="min-width: 200px">
  3810. <div class="worksName">
  3811. <div>{{ w.sName }}</div>
  3812. </div>
  3813. <div class="commentList">
  3814. <div class="commentList">
  3815. <div
  3816. class="commentImg"
  3817. @click="
  3818. isLikes(w.wid, userid, 1, null, w.isLikes)
  3819. "
  3820. >
  3821. <img
  3822. :src="w.isLikes == true ? likes : noLikes"
  3823. alt=""
  3824. />
  3825. </div>
  3826. <div>{{ w.likesCount }}</div>
  3827. </div>
  3828. <div class="commentList" style="margin-right: 15px">
  3829. <div
  3830. class="commentImg"
  3831. @click="commentOther(w, toolIndex, wIndex)"
  3832. >
  3833. <img
  3834. src="../../assets/icon/comment/comment.png"
  3835. alt=""
  3836. />
  3837. </div>
  3838. <div>{{ w.commentCount }}</div>
  3839. </div>
  3840. </div>
  3841. </div>
  3842. </div>
  3843. </div>
  3844. <div class="noWorksS">
  3845. <div
  3846. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3847. :key="sIndex"
  3848. class="noWorksName"
  3849. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3850. :class="{ isWork: s.type == '2' }"
  3851. >
  3852. {{ s.student }}
  3853. </div>
  3854. </div>
  3855. </div>
  3856. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3857. <div
  3858. class="zuoyeYulan"
  3859. v-if="
  3860. worksStudent2.length &&
  3861. worksStudent2[toolIndex].length > 0
  3862. "
  3863. >
  3864. <span>作业预览</span>
  3865. <div
  3866. class="corOpen"
  3867. @click="contract(toolIndex)"
  3868. v-if="
  3869. worksStudent2[toolIndex].length > 6 &&
  3870. isCloseList[toolIndex].isClose == 0
  3871. "
  3872. >
  3873. 收缩
  3874. </div>
  3875. <div
  3876. class="corOpen"
  3877. @click="contract(toolIndex)"
  3878. v-if="isCloseList[toolIndex].isClose == 1"
  3879. >
  3880. 展开
  3881. </div>
  3882. </div>
  3883. <div
  3884. class="worksDetailBox"
  3885. v-if="
  3886. worksStudent2.length &&
  3887. worksStudent2[toolIndex].length > 0
  3888. "
  3889. >
  3890. <div
  3891. class="works"
  3892. style="
  3893. width: 200px;
  3894. height: 140px;
  3895. margin: 10px 10px 10px 0;
  3896. border-radius: 15px;
  3897. box-shadow: 0 0 6px 1px #dfdada;
  3898. "
  3899. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  3900. ? worksStudent2[toolIndex]
  3901. : worksStudent2[toolIndex].slice(0, 6)"
  3902. :key="wIndex"
  3903. :class="w.type == 1 ? 'isTypeOne' : ''"
  3904. >
  3905. <div class="workImg" v-if="w.type == 0">
  3906. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3907. <img :src="w.works" @click="previewImg(w.works)" alt />
  3908. <div
  3909. class="answerScore"
  3910. v-if="w.score"
  3911. @click.stop="openScore(w)"
  3912. :class="{
  3913. rightW:
  3914. w.userid == userid ||
  3915. tType == 1 ||
  3916. tType == 4 ||
  3917. w.ateacher == userid,
  3918. }"
  3919. >
  3920. {{ JSON.parse(w.score).wScore }}分
  3921. </div>
  3922. <div
  3923. class="answerScore"
  3924. @click.stop="openScore(w)"
  3925. v-else-if="courseDetail.userid == userid"
  3926. :class="{
  3927. rightW:
  3928. w.userid == userid ||
  3929. tType == 1 ||
  3930. tType == 4 ||
  3931. w.ateacher == userid,
  3932. }"
  3933. >
  3934. 评分
  3935. </div>
  3936. <img
  3937. class="deleteImg"
  3938. src="../../assets/deleteworks.png"
  3939. v-if="w.userid == userid || tType == 1 || tType == 4"
  3940. @click.stop="deleteWorks(w.wid)"
  3941. alt
  3942. />
  3943. </div>
  3944. <div
  3945. class="workImg"
  3946. style="cursor: pointer"
  3947. v-if="w.type == 1"
  3948. >
  3949. <img :src="word" @click="openFile(w.works)" alt />
  3950. <!-- @click="openFile(w.works)" -->
  3951. <div
  3952. class="answerScore"
  3953. v-if="w.score"
  3954. @click.stop="openScore(w)"
  3955. :class="{
  3956. rightW:
  3957. w.userid == userid ||
  3958. tType == 1 ||
  3959. tType == 4 ||
  3960. w.ateacher == userid,
  3961. }"
  3962. >
  3963. {{ JSON.parse(w.score).wScore }}分
  3964. </div>
  3965. <div
  3966. class="answerScore"
  3967. @click.stop="openScore(w)"
  3968. v-else-if="courseDetail.userid == userid"
  3969. :class="{
  3970. rightW:
  3971. w.userid == userid ||
  3972. tType == 1 ||
  3973. tType == 4 ||
  3974. w.ateacher == userid,
  3975. }"
  3976. >
  3977. 评分
  3978. </div>
  3979. <img
  3980. class="deleteImg"
  3981. src="../../assets/deleteworks.png"
  3982. v-if="w.userid == userid || tType == 1 || tType == 4"
  3983. @click.stop="deleteWorks(w.wid)"
  3984. alt
  3985. />
  3986. </div>
  3987. <div class="workImg" v-if="w.type == 3">
  3988. <img
  3989. style="cursor: pointer"
  3990. :src="video"
  3991. @click="openVideo(w)"
  3992. alt
  3993. />
  3994. <!-- @click="openVideo(w.works)" -->
  3995. <div
  3996. class="answerScore"
  3997. v-if="w.score"
  3998. @click.stop="openScore(w)"
  3999. :class="{
  4000. rightW:
  4001. w.userid == userid ||
  4002. tType == 1 ||
  4003. tType == 4 ||
  4004. w.ateacher == userid,
  4005. }"
  4006. >
  4007. {{ JSON.parse(w.score).wScore }}分
  4008. </div>
  4009. <div
  4010. class="answerScore"
  4011. @click.stop="openScore(w)"
  4012. v-else-if="courseDetail.userid == userid"
  4013. :class="{
  4014. rightW:
  4015. w.userid == userid ||
  4016. tType == 1 ||
  4017. tType == 4 ||
  4018. w.ateacher == userid,
  4019. }"
  4020. >
  4021. 评分
  4022. </div>
  4023. <img
  4024. class="deleteImg"
  4025. src="../../assets/deleteworks.png"
  4026. v-if="w.userid == userid || tType == 1 || tType == 4"
  4027. @click.stop="deleteWorks(w.wid)"
  4028. alt
  4029. />
  4030. </div>
  4031. <div class="comment" style="min-width: 200px">
  4032. <div class="worksName">
  4033. <div
  4034. style="cursor: pointer"
  4035. @click="
  4036. openSname(w.sName, w.wid, toolIndex, w.userid)
  4037. "
  4038. >
  4039. {{ w.sName }}
  4040. </div>
  4041. </div>
  4042. <div class="commentList">
  4043. <div class="commentList">
  4044. <div
  4045. class="commentImg"
  4046. @click="
  4047. isLikes(w.wid, userid, 1, null, w.isLikes)
  4048. "
  4049. >
  4050. <img
  4051. :src="w.isLikes == true ? likes : noLikes"
  4052. alt=""
  4053. />
  4054. </div>
  4055. <div>{{ w.likesCount }}</div>
  4056. </div>
  4057. <div class="commentList" style="margin-right: 15px">
  4058. <div
  4059. class="commentImg"
  4060. @click="commentOther(w, toolIndex, wIndex)"
  4061. >
  4062. <img
  4063. src="../../assets/icon/comment/comment.png"
  4064. alt=""
  4065. />
  4066. </div>
  4067. <div>{{ w.commentCount }}</div>
  4068. </div>
  4069. </div>
  4070. </div>
  4071. </div>
  4072. </div>
  4073. <div class="noWorksS">
  4074. <div
  4075. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4076. :key="sIndex"
  4077. class="noWorksName"
  4078. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4079. :class="{ isWork: s.type == '2' }"
  4080. >
  4081. {{ s.student }}
  4082. </div>
  4083. </div>
  4084. </div>
  4085. <div
  4086. v-if="
  4087. tType &&
  4088. ((tType == 2 && sIsOpen == true) ||
  4089. tType == 1 ||
  4090. tType == 4) &&
  4091. tool.tool.indexOf(4) != -1
  4092. "
  4093. class="worksBox"
  4094. >
  4095. <div
  4096. class="zuoyeYulan"
  4097. v-if="
  4098. worksStudent2.length &&
  4099. worksStudent2[toolIndex].length > 0
  4100. "
  4101. >
  4102. <div class="worksTop">
  4103. <div>作业预览</div>
  4104. <div
  4105. class="corOpen"
  4106. @click="contract(toolIndex)"
  4107. v-if="
  4108. worksStudent2[toolIndex].length > 6 &&
  4109. isCloseList[toolIndex].isClose == 0
  4110. "
  4111. >
  4112. 收缩
  4113. </div>
  4114. <div
  4115. class="corOpen"
  4116. @click="contract(toolIndex)"
  4117. v-if="isCloseList[toolIndex].isClose == 1"
  4118. >
  4119. 展开
  4120. </div>
  4121. </div>
  4122. </div>
  4123. <div>
  4124. <div
  4125. class="worksDetailBox"
  4126. v-if="
  4127. worksStudent2.length &&
  4128. worksStudent2[toolIndex].length > 0
  4129. "
  4130. >
  4131. <div
  4132. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4133. 0
  4134. ? worksStudent2[toolIndex]
  4135. : worksStudent2[toolIndex].slice(0, 6)"
  4136. :key="wIndex"
  4137. class="isWorksName2"
  4138. @click="
  4139. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4140. "
  4141. >
  4142. {{ w.sName }}
  4143. <img
  4144. class="deleteImg deleteImg2"
  4145. src="../../assets/deleteworks.png"
  4146. v-if="w.userid == userid || tType == 1 || tType == 4"
  4147. @click.stop="deleteWorks(w.wid)"
  4148. alt
  4149. />
  4150. </div>
  4151. </div>
  4152. </div>
  4153. <div class="noWorksS">
  4154. <div
  4155. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4156. :key="sIndex"
  4157. class="noWorksName"
  4158. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4159. :class="{ isWork: s.type == '2' }"
  4160. >
  4161. {{ s.student }}
  4162. </div>
  4163. </div>
  4164. </div>
  4165. <div
  4166. v-if="
  4167. tType &&
  4168. ((tType == 2 && sIsOpen == true) ||
  4169. tType == 1 ||
  4170. tType == 4) &&
  4171. tool.tool.indexOf(45) != -1
  4172. "
  4173. class="worksBox"
  4174. >
  4175. <div
  4176. class="zuoyeYulan"
  4177. v-if="
  4178. worksStudent2.length &&
  4179. worksStudent2[toolIndex].length > 0
  4180. "
  4181. >
  4182. <div class="worksTop">
  4183. <div>作业预览</div>
  4184. <div
  4185. class="corOpen"
  4186. @click="contract(toolIndex)"
  4187. v-if="
  4188. worksStudent2[toolIndex].length > 6 &&
  4189. isCloseList[toolIndex].isClose == 0
  4190. "
  4191. >
  4192. 收缩
  4193. </div>
  4194. <div
  4195. class="corOpen"
  4196. @click="contract(toolIndex)"
  4197. v-if="isCloseList[toolIndex].isClose == 1"
  4198. >
  4199. 展开
  4200. </div>
  4201. </div>
  4202. </div>
  4203. <div>
  4204. <div
  4205. class="worksDetailBox"
  4206. v-if="
  4207. worksStudent2.length &&
  4208. worksStudent2[toolIndex].length > 0
  4209. "
  4210. >
  4211. <div
  4212. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4213. 0
  4214. ? worksStudent2[toolIndex]
  4215. : worksStudent2[toolIndex].slice(0, 6)"
  4216. :key="wIndex"
  4217. class="isWorksName2"
  4218. @click="
  4219. openTools(45, toolIndex, taskCount, w.works, w.sName)
  4220. "
  4221. >
  4222. {{ w.sName }}
  4223. <img
  4224. class="deleteImg deleteImg2"
  4225. src="../../assets/deleteworks.png"
  4226. v-if="w.userid == userid || tType == 1 || tType == 4"
  4227. @click.stop="deleteWorks(w.wid)"
  4228. alt
  4229. />
  4230. </div>
  4231. </div>
  4232. </div>
  4233. <div class="noWorksS">
  4234. <div
  4235. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4236. :key="sIndex"
  4237. class="noWorksName"
  4238. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4239. :class="{ isWork: s.type == '2' }"
  4240. >
  4241. {{ s.student }}
  4242. </div>
  4243. </div>
  4244. </div>
  4245. <div
  4246. v-if="
  4247. tType &&
  4248. ((tType == 2 && sIsOpen == true) ||
  4249. tType == 1 ||
  4250. tType == 4) &&
  4251. tool.tool.indexOf(15) != -1
  4252. "
  4253. class="worksBox"
  4254. >
  4255. <div
  4256. class="zuoyeYulan"
  4257. v-if="
  4258. worksStudent2.length &&
  4259. worksStudent2[toolIndex].length > 0
  4260. "
  4261. >
  4262. <div class="worksTop">
  4263. <div>作业预览</div>
  4264. <div
  4265. class="corOpen"
  4266. @click="contract(toolIndex)"
  4267. v-if="
  4268. worksStudent2[toolIndex].length > 6 &&
  4269. isCloseList[toolIndex].isClose == 0
  4270. "
  4271. >
  4272. 收缩
  4273. </div>
  4274. <div
  4275. class="corOpen"
  4276. @click="contract(toolIndex)"
  4277. v-if="isCloseList[toolIndex].isClose == 1"
  4278. >
  4279. 展开
  4280. </div>
  4281. </div>
  4282. </div>
  4283. <div
  4284. class="worksDetailBox"
  4285. v-if="
  4286. worksStudent2.length &&
  4287. worksStudent2[toolIndex].length > 0
  4288. "
  4289. >
  4290. <div
  4291. class="works"
  4292. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4293. ? worksStudent2[toolIndex]
  4294. : worksStudent2[toolIndex].slice(0, 6)"
  4295. :key="wIndex"
  4296. >
  4297. <div
  4298. class="workImg"
  4299. style="
  4300. border-radius: 15px;
  4301. box-shadow: #eee 0px 0px 5px 5px;
  4302. "
  4303. >
  4304. <!-- <img
  4305. src="../../assets/icon/works/noImg.png"
  4306. @click="openTools(15, toolIndex, taskCount, w.works)"
  4307. alt=""
  4308. />-->
  4309. <div
  4310. class="answerBg"
  4311. style="border-radius: 15px 15px 0 0"
  4312. @click="commentOther(w, toolIndex, wIndex)"
  4313. >
  4314. <!-- <div>{{ w.sName }}</div> -->
  4315. <div class="answerContent">
  4316. {{ JSON.parse(w.works)[0].answer }}
  4317. </div>
  4318. <div
  4319. class="answerScore"
  4320. v-if="w.score"
  4321. @click.stop="openScore(w)"
  4322. :class="{
  4323. rightW:
  4324. w.userid == userid || tType == 1 || tType == 4,
  4325. }"
  4326. >
  4327. {{ JSON.parse(w.score).wScore }}分
  4328. </div>
  4329. <div
  4330. class="answerScore"
  4331. @click.stop="openScore(w)"
  4332. v-else-if="courseDetail.userid == userid"
  4333. :class="{
  4334. rightW:
  4335. w.userid == userid || tType == 1 || tType == 4,
  4336. }"
  4337. >
  4338. 评分
  4339. </div>
  4340. <img
  4341. class="deleteImg"
  4342. src="../../assets/deleteworks.png"
  4343. v-if="
  4344. w.userid == userid || tType == 1 || tType == 4
  4345. "
  4346. @click.stop="deleteWorks(w.wid)"
  4347. alt
  4348. />
  4349. </div>
  4350. <div class="comment">
  4351. <div class="worksName">
  4352. <div>{{ w.sName }}</div>
  4353. </div>
  4354. <div class="commentList">
  4355. <div
  4356. class="commentImg"
  4357. @click="
  4358. isLikes(w.wid, userid, 1, null, w.isLikes)
  4359. "
  4360. >
  4361. <img
  4362. :src="w.isLikes == true ? likes : noLikes"
  4363. alt=""
  4364. />
  4365. </div>
  4366. <div>{{ w.likesCount }}</div>
  4367. </div>
  4368. <div class="commentList" style="margin-right: 15px">
  4369. <div
  4370. class="commentImg"
  4371. @click="commentOther(w, toolIndex, wIndex)"
  4372. >
  4373. <img
  4374. src="../../assets/icon/comment/comment.png"
  4375. alt=""
  4376. />
  4377. </div>
  4378. <div>{{ w.commentCount }}</div>
  4379. </div>
  4380. </div>
  4381. </div>
  4382. </div>
  4383. </div>
  4384. <div class="noWorksS">
  4385. <div
  4386. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4387. :key="sIndex"
  4388. class="noWorksName"
  4389. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4390. :class="{ isWork: s.type == '2' }"
  4391. >
  4392. {{ s.student }}
  4393. </div>
  4394. </div>
  4395. </div>
  4396. <div
  4397. v-if="
  4398. tType &&
  4399. ((tType == 2 && sIsOpen == true) ||
  4400. tType == 1 ||
  4401. tType == 4) &&
  4402. tool.tool.indexOf(1) != -1
  4403. "
  4404. class="worksBox"
  4405. >
  4406. <div
  4407. class="zuoyeYulan"
  4408. v-if="
  4409. worksStudent2.length &&
  4410. worksStudent2[toolIndex].length > 0
  4411. "
  4412. >
  4413. <div class="worksTop">
  4414. <div>作业预览</div>
  4415. <div
  4416. class="corOpen"
  4417. @click="contract(toolIndex)"
  4418. v-if="
  4419. worksStudent2[toolIndex].length > 6 &&
  4420. isCloseList[toolIndex].isClose == 0
  4421. "
  4422. >
  4423. 收缩
  4424. </div>
  4425. <div
  4426. class="corOpen"
  4427. @click="contract(toolIndex)"
  4428. v-if="isCloseList[toolIndex].isClose == 1"
  4429. >
  4430. 展开
  4431. </div>
  4432. </div>
  4433. </div>
  4434. <div
  4435. class="worksDetailBox"
  4436. v-if="
  4437. worksStudent2.length &&
  4438. worksStudent2[toolIndex].length > 0
  4439. "
  4440. >
  4441. <div
  4442. class="works"
  4443. style="
  4444. width: 200px;
  4445. height: 140px;
  4446. margin: 10px 10px 10px 0;
  4447. border-radius: 15px;
  4448. box-shadow: 0 0 6px 1px #dfdada;
  4449. "
  4450. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4451. ? worksStudent2[toolIndex]
  4452. : worksStudent2[toolIndex].slice(0, 6)"
  4453. :key="wIndex"
  4454. >
  4455. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4456. <div class="workImg">
  4457. <img :src="w.works" @click="previewImg(w.works)" alt />
  4458. <div
  4459. class="answerScore"
  4460. v-if="w.score"
  4461. @click.stop="openScore(w)"
  4462. :class="{
  4463. rightW:
  4464. w.userid == userid || tType == 1 || tType == 4,
  4465. }"
  4466. >
  4467. {{ JSON.parse(w.score).wScore }}分
  4468. </div>
  4469. <div
  4470. class="answerScore"
  4471. @click.stop="openScore(w)"
  4472. v-else-if="courseDetail.userid == userid"
  4473. :class="{
  4474. rightW:
  4475. w.userid == userid || tType == 1 || tType == 4,
  4476. }"
  4477. >
  4478. 评分
  4479. </div>
  4480. <img
  4481. class="deleteImg"
  4482. src="../../assets/deleteworks.png"
  4483. v-if="w.userid == userid || tType == 1 || tType == 4"
  4484. @click.stop="deleteWorks(w.wid)"
  4485. alt
  4486. />
  4487. </div>
  4488. <div class="comment" style="min-width: 200px">
  4489. <div class="worksName">
  4490. <div>{{ w.sName }}</div>
  4491. </div>
  4492. <div class="commentList">
  4493. <div class="commentList">
  4494. <div
  4495. class="commentImg"
  4496. @click="
  4497. isLikes(w.wid, userid, 1, null, w.isLikes)
  4498. "
  4499. >
  4500. <img
  4501. :src="w.isLikes == true ? likes : noLikes"
  4502. alt=""
  4503. />
  4504. </div>
  4505. <div>{{ w.likesCount }}</div>
  4506. </div>
  4507. <div class="commentList" style="margin-right: 15px">
  4508. <div
  4509. class="commentImg"
  4510. @click="commentOther(w, toolIndex, wIndex)"
  4511. >
  4512. <img
  4513. src="../../assets/icon/comment/comment.png"
  4514. alt=""
  4515. />
  4516. </div>
  4517. <div>{{ w.commentCount }}</div>
  4518. </div>
  4519. </div>
  4520. </div>
  4521. </div>
  4522. </div>
  4523. <div class="noWorksS">
  4524. <div
  4525. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4526. :key="sIndex"
  4527. class="noWorksName"
  4528. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4529. :class="{ isWork: s.type == '2' }"
  4530. >
  4531. {{ s.student }}
  4532. </div>
  4533. </div>
  4534. </div>
  4535. <div
  4536. v-if="
  4537. tType &&
  4538. ((tType == 2 && sIsOpen == true) ||
  4539. tType == 1 ||
  4540. tType == 4) &&
  4541. tool.tool.indexOf(3) != -1
  4542. "
  4543. class="worksBox"
  4544. >
  4545. <div
  4546. class="zuoyeYulan"
  4547. v-if="
  4548. worksStudent2.length &&
  4549. worksStudent2[toolIndex].length > 0
  4550. "
  4551. >
  4552. <div class="worksTop">
  4553. <div>作业预览</div>
  4554. <div
  4555. class="corOpen"
  4556. @click="contract(toolIndex)"
  4557. v-if="
  4558. worksStudent2[toolIndex].length > 6 &&
  4559. isCloseList[toolIndex].isClose == 0
  4560. "
  4561. >
  4562. 收缩
  4563. </div>
  4564. <div
  4565. class="corOpen"
  4566. @click="contract(toolIndex)"
  4567. v-if="isCloseList[toolIndex].isClose == 1"
  4568. >
  4569. 展开
  4570. </div>
  4571. </div>
  4572. </div>
  4573. <div
  4574. class="worksDetailBox"
  4575. v-if="
  4576. worksStudent2.length &&
  4577. worksStudent2[toolIndex].length > 0
  4578. "
  4579. >
  4580. <div
  4581. class="works"
  4582. style="
  4583. width: 200px;
  4584. height: 140px;
  4585. margin: 10px 10px 10px 0;
  4586. border-radius: 15px;
  4587. box-shadow: 0 0 6px 1px #dfdada;
  4588. "
  4589. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4590. ? worksStudent2[toolIndex]
  4591. : worksStudent2[toolIndex].slice(0, 6)"
  4592. :key="wIndex"
  4593. >
  4594. <!-- @click="previewImg(w.works)" -->
  4595. <div class="workImg">
  4596. <img :src="w.works" @click="previewImg(w.works)" alt />
  4597. <div
  4598. class="answerScore"
  4599. v-if="w.score"
  4600. @click.stop="openScore(w)"
  4601. :class="{
  4602. rightW:
  4603. w.userid == userid || tType == 1 || tType == 4,
  4604. }"
  4605. >
  4606. {{ JSON.parse(w.score).wScore }}分
  4607. </div>
  4608. <div
  4609. class="answerScore"
  4610. @click.stop="openScore(w)"
  4611. v-else-if="courseDetail.userid == userid"
  4612. :class="{
  4613. rightW:
  4614. w.userid == userid || tType == 1 || tType == 4,
  4615. }"
  4616. >
  4617. 评分
  4618. </div>
  4619. <img
  4620. class="deleteImg"
  4621. src="../../assets/deleteworks.png"
  4622. v-if="w.userid == userid || tType == 1 || tType == 4"
  4623. @click.stop="deleteWorks(w.wid)"
  4624. alt
  4625. />
  4626. </div>
  4627. <div class="comment" style="min-width: 200px">
  4628. <div class="worksName">
  4629. <div>{{ w.sName }}</div>
  4630. </div>
  4631. <div class="commentList">
  4632. <div class="commentList">
  4633. <div
  4634. class="commentImg"
  4635. @click="
  4636. isLikes(w.wid, userid, 1, null, w.isLikes)
  4637. "
  4638. >
  4639. <img
  4640. :src="w.isLikes == true ? likes : noLikes"
  4641. alt=""
  4642. />
  4643. </div>
  4644. <div>{{ w.likesCount }}</div>
  4645. </div>
  4646. <div class="commentList" style="margin-right: 15px">
  4647. <div
  4648. class="commentImg"
  4649. @click="commentOther(w, toolIndex, wIndex)"
  4650. >
  4651. <img
  4652. src="../../assets/icon/comment/comment.png"
  4653. alt=""
  4654. />
  4655. </div>
  4656. <div>{{ w.commentCount }}</div>
  4657. </div>
  4658. </div>
  4659. </div>
  4660. </div>
  4661. </div>
  4662. <div class="noWorksS">
  4663. <div
  4664. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4665. :key="sIndex"
  4666. class="noWorksName"
  4667. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4668. :class="{ isWork: s.type == '2' }"
  4669. >
  4670. {{ s.student }}
  4671. </div>
  4672. </div>
  4673. </div>
  4674. <div
  4675. v-if="
  4676. tType &&
  4677. ((tType == 2 && sIsOpen == true) ||
  4678. tType == 1 ||
  4679. tType == 4) &&
  4680. tool.tool.indexOf(6) != -1
  4681. "
  4682. class="worksBox"
  4683. >
  4684. <div
  4685. class="zuoyeYulan"
  4686. v-if="
  4687. worksStudent2.length &&
  4688. worksStudent2[toolIndex].length > 0
  4689. "
  4690. >
  4691. <div class="worksTop">
  4692. <div>作业预览</div>
  4693. <div
  4694. class="corOpen"
  4695. @click="contract(toolIndex)"
  4696. v-if="
  4697. worksStudent[toolIndex].length > 6 &&
  4698. isCloseList[toolIndex].isClose == 0
  4699. "
  4700. >
  4701. 收缩
  4702. </div>
  4703. <div
  4704. class="corOpen"
  4705. @click="contract(toolIndex)"
  4706. v-if="isCloseList[toolIndex].isClose == 1"
  4707. >
  4708. 展开
  4709. </div>
  4710. </div>
  4711. </div>
  4712. <div
  4713. class="worksDetailBox"
  4714. v-if="
  4715. worksStudent2.length &&
  4716. worksStudent2[toolIndex].length > 0
  4717. "
  4718. >
  4719. <div
  4720. class="works"
  4721. style="
  4722. width: 200px;
  4723. height: 140px;
  4724. margin: 10px 10px 10px 0;
  4725. border-radius: 15px;
  4726. box-shadow: 0 0 6px 1px #dfdada;
  4727. "
  4728. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4729. ? worksStudent2[toolIndex]
  4730. : worksStudent2[toolIndex].slice(0, 6)"
  4731. :key="wIndex"
  4732. >
  4733. <!-- @click="previewImg(w.works)" -->
  4734. <div class="workImg">
  4735. <img :src="w.works" @click="previewImg(w.works)" alt />
  4736. <div
  4737. class="answerScore"
  4738. v-if="w.score"
  4739. @click.stop="openScore(w)"
  4740. :class="{
  4741. rightW:
  4742. w.userid == userid || tType == 1 || tType == 4,
  4743. }"
  4744. >
  4745. {{ JSON.parse(w.score).wScore }}分
  4746. </div>
  4747. <div
  4748. class="answerScore"
  4749. @click.stop="openScore(w)"
  4750. v-else-if="courseDetail.userid == userid"
  4751. :class="{
  4752. rightW:
  4753. w.userid == userid || tType == 1 || tType == 4,
  4754. }"
  4755. >
  4756. 评分
  4757. </div>
  4758. <img
  4759. class="deleteImg"
  4760. src="../../assets/deleteworks.png"
  4761. v-if="w.userid == userid || tType == 1 || tType == 4"
  4762. @click.stop="deleteWorks(w.wid)"
  4763. alt
  4764. />
  4765. </div>
  4766. <div class="comment" style="min-width: 200px">
  4767. <div class="worksName">
  4768. <div>{{ w.sName }}</div>
  4769. </div>
  4770. <div class="commentList">
  4771. <div class="commentList">
  4772. <div
  4773. class="commentImg"
  4774. @click="
  4775. isLikes(w.wid, userid, 1, null, w.isLikes)
  4776. "
  4777. >
  4778. <img
  4779. :src="w.isLikes == true ? likes : noLikes"
  4780. alt=""
  4781. />
  4782. </div>
  4783. <div>{{ w.likesCount }}</div>
  4784. </div>
  4785. <div class="commentList" style="margin-right: 15px">
  4786. <div
  4787. class="commentImg"
  4788. @click="commentOther(w, toolIndex, wIndex)"
  4789. >
  4790. <img
  4791. src="../../assets/icon/comment/comment.png"
  4792. alt=""
  4793. />
  4794. </div>
  4795. <div>{{ w.commentCount }}</div>
  4796. </div>
  4797. </div>
  4798. </div>
  4799. </div>
  4800. </div>
  4801. <div class="noWorksS">
  4802. <div
  4803. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4804. :key="sIndex"
  4805. class="noWorksName"
  4806. :class="{ isWork: s.type == '2' }"
  4807. >
  4808. {{ s.student }}
  4809. </div>
  4810. </div>
  4811. </div>
  4812. <div
  4813. v-if="
  4814. tType &&
  4815. ((tType == 2 && sIsOpen == true) ||
  4816. tType == 1 ||
  4817. tType == 4) &&
  4818. tool.tool.indexOf(7) != -1
  4819. "
  4820. class="worksBox"
  4821. >
  4822. <div
  4823. class="zuoyeYulan"
  4824. v-if="
  4825. worksStudent2.length &&
  4826. worksStudent2[toolIndex].length > 0
  4827. "
  4828. >
  4829. <div class="worksTop">
  4830. <div>作业预览</div>
  4831. <div
  4832. class="corOpen"
  4833. @click="contract(toolIndex)"
  4834. v-if="
  4835. worksStudent2[toolIndex].length > 6 &&
  4836. isCloseList[toolIndex].isClose == 0
  4837. "
  4838. >
  4839. 收缩
  4840. </div>
  4841. <div
  4842. class="corOpen"
  4843. @click="contract(toolIndex)"
  4844. v-if="isCloseList[toolIndex].isClose == 1"
  4845. >
  4846. 展开
  4847. </div>
  4848. </div>
  4849. </div>
  4850. <div
  4851. class="worksDetailBox"
  4852. v-if="
  4853. worksStudent2.length &&
  4854. worksStudent2[toolIndex].length > 0
  4855. "
  4856. >
  4857. <div
  4858. class="works"
  4859. style="
  4860. width: 200px;
  4861. height: 140px;
  4862. margin: 10px 10px 10px 0;
  4863. border-radius: 15px;
  4864. box-shadow: 0 0 6px 1px #dfdada;
  4865. "
  4866. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  4867. ? worksStudent2[toolIndex]
  4868. : worksStudent2[toolIndex].slice(0, 6)"
  4869. :key="wIndex"
  4870. >
  4871. <!-- @click="previewImg(w.works)" -->
  4872. <div class="workImg">
  4873. <img :src="w.works" @click="previewImg(w.works)" alt />
  4874. <div
  4875. class="answerScore"
  4876. v-if="w.score"
  4877. @click.stop="openScore(w)"
  4878. :class="{
  4879. rightW:
  4880. w.userid == userid || tType == 1 || tType == 4,
  4881. }"
  4882. >
  4883. {{ JSON.parse(w.score).wScore }}分
  4884. </div>
  4885. <div
  4886. class="answerScore"
  4887. @click.stop="openScore(w)"
  4888. v-else-if="courseDetail.userid == userid"
  4889. :class="{
  4890. rightW:
  4891. w.userid == userid || tType == 1 || tType == 4,
  4892. }"
  4893. >
  4894. 评分
  4895. </div>
  4896. <img
  4897. class="deleteImg"
  4898. src="../../assets/deleteworks.png"
  4899. v-if="w.userid == userid || tType == 1 || tType == 4"
  4900. @click.stop="deleteWorks(w.wid)"
  4901. alt
  4902. />
  4903. </div>
  4904. <div class="comment" style="min-width: 200px">
  4905. <div class="worksName">
  4906. <div>{{ w.sName }}</div>
  4907. </div>
  4908. <div class="commentList">
  4909. <div class="commentList">
  4910. <div
  4911. class="commentImg"
  4912. @click="
  4913. isLikes(w.wid, userid, 1, null, w.isLikes)
  4914. "
  4915. >
  4916. <img
  4917. :src="w.isLikes == true ? likes : noLikes"
  4918. alt=""
  4919. />
  4920. </div>
  4921. <div>{{ w.likesCount }}</div>
  4922. </div>
  4923. <div class="commentList" style="margin-right: 15px">
  4924. <div
  4925. class="commentImg"
  4926. @click="commentOther(w, toolIndex, wIndex)"
  4927. >
  4928. <img
  4929. src="../../assets/icon/comment/comment.png"
  4930. alt=""
  4931. />
  4932. </div>
  4933. <div>{{ w.commentCount }}</div>
  4934. </div>
  4935. </div>
  4936. </div>
  4937. </div>
  4938. </div>
  4939. <div class="noWorksS">
  4940. <div
  4941. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4942. :key="sIndex"
  4943. class="noWorksName"
  4944. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  4945. :class="{ isWork: s.type == '2' }"
  4946. >
  4947. {{ s.student }}
  4948. </div>
  4949. </div>
  4950. </div>
  4951. <div
  4952. v-if="
  4953. tType &&
  4954. ((tType == 2 && sIsOpen == true) ||
  4955. tType == 1 ||
  4956. tType == 4) &&
  4957. tool.tool.indexOf(26) != -1
  4958. "
  4959. class="worksBox"
  4960. >
  4961. <div
  4962. class="zuoyeYulan"
  4963. v-if="
  4964. worksStudent2.length &&
  4965. worksStudent2[toolIndex].length > 0
  4966. "
  4967. >
  4968. <div class="worksTop">
  4969. <div>作业预览</div>
  4970. <div
  4971. class="corOpen"
  4972. @click="contract(toolIndex)"
  4973. v-if="
  4974. worksStudent2[toolIndex].length > 6 &&
  4975. isCloseList[toolIndex].isClose == 0
  4976. "
  4977. >
  4978. 收缩
  4979. </div>
  4980. <div
  4981. class="corOpen"
  4982. @click="contract(toolIndex)"
  4983. v-if="isCloseList[toolIndex].isClose == 1"
  4984. >
  4985. 展开
  4986. </div>
  4987. </div>
  4988. </div>
  4989. <div
  4990. class="worksDetailBox"
  4991. v-if="
  4992. worksStudent2.length &&
  4993. worksStudent2[toolIndex].length > 0
  4994. "
  4995. >
  4996. <div
  4997. class="works"
  4998. style="width: 240px; height: 140px; overflow: hidden"
  4999. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5000. ? worksStudent2[toolIndex]
  5001. : worksStudent2[toolIndex].slice(0, 6)"
  5002. :key="wIndex"
  5003. :class="w.type == 1 ? 'isTypeOne' : ''"
  5004. >
  5005. <div class="workImg" v-if="w.type == 0">
  5006. <img :src="w.works" @click="previewImg(w.works)" alt />
  5007. <img
  5008. class="deleteImg"
  5009. src="../../assets/deleteworks.png"
  5010. v-if="w.userid == userid || tType == 1 || tType == 4"
  5011. @click.stop="deleteWorks(w.wid)"
  5012. alt
  5013. />
  5014. </div>
  5015. <div class="workImg" v-if="w.type == 1">
  5016. <img :src="word" @click="openFile(w.works)" alt />
  5017. <img
  5018. class="deleteImg"
  5019. src="../../assets/deleteworks.png"
  5020. v-if="w.userid == userid || tType == 1 || tType == 4"
  5021. @click.stop="deleteWorks(w.wid)"
  5022. alt
  5023. />
  5024. </div>
  5025. <div class="worksName">
  5026. <div>{{ w.sName }}</div>
  5027. </div>
  5028. </div>
  5029. </div>
  5030. <div class="noWorksS">
  5031. <div
  5032. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5033. :key="sIndex"
  5034. class="noWorksName"
  5035. :class="{ isWork: s.type == '2' }"
  5036. >
  5037. {{ s.student }}
  5038. </div>
  5039. </div>
  5040. </div>
  5041. <div
  5042. v-if="
  5043. tType &&
  5044. ((tType == 2 && sIsOpen == true) ||
  5045. tType == 1 ||
  5046. tType == 4) &&
  5047. tool.tool.indexOf(40) != -1
  5048. "
  5049. class="worksBox"
  5050. >
  5051. <div
  5052. class="zuoyeYulan"
  5053. v-if="
  5054. worksStudent2.length &&
  5055. worksStudent2[toolIndex].length > 0
  5056. "
  5057. >
  5058. <div class="worksTop">
  5059. <div>作业预览</div>
  5060. <div
  5061. class="corOpen"
  5062. @click="contract(toolIndex)"
  5063. v-if="
  5064. worksStudent2[toolIndex].length > 6 &&
  5065. isCloseList[toolIndex].isClose == 0
  5066. "
  5067. >
  5068. 收缩
  5069. </div>
  5070. <div
  5071. class="corOpen"
  5072. @click="contract(toolIndex)"
  5073. v-if="isCloseList[toolIndex].isClose == 1"
  5074. >
  5075. 展开
  5076. </div>
  5077. </div>
  5078. </div>
  5079. <div
  5080. class="worksDetailBox"
  5081. v-if="
  5082. worksStudent2.length &&
  5083. worksStudent2[toolIndex].length > 0
  5084. "
  5085. >
  5086. <div
  5087. class="works"
  5088. style="
  5089. width: 200px;
  5090. height: 140px;
  5091. margin: 10px 10px 10px 0;
  5092. border-radius: 15px;
  5093. box-shadow: 0 0 6px 1px #dfdada;
  5094. "
  5095. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5096. ? worksStudent2[toolIndex]
  5097. : worksStudent2[toolIndex].slice(0, 6)"
  5098. :key="wIndex"
  5099. :class="w.type == 1 ? 'isTypeOne' : ''"
  5100. >
  5101. <div class="workImg">
  5102. <img
  5103. src="../../assets/icon/works/noImg.png"
  5104. @click="openPj(w.works, toolIndex)"
  5105. alt
  5106. />
  5107. <img
  5108. class="deleteImg"
  5109. src="../../assets/deleteworks.png"
  5110. v-if="w.userid == userid || tType == 1 || tType == 4"
  5111. @click.stop="deleteWorks(w.wid)"
  5112. alt
  5113. />
  5114. </div>
  5115. <div class="comment" style="min-width: 200px">
  5116. <div class="worksName">
  5117. <div>{{ w.sName }}</div>
  5118. </div>
  5119. <div class="commentList">
  5120. <div class="commentList">
  5121. <div
  5122. class="commentImg"
  5123. @click="
  5124. isLikes(w.wid, userid, 1, null, w.isLikes)
  5125. "
  5126. >
  5127. <img
  5128. :src="w.isLikes == true ? likes : noLikes"
  5129. alt=""
  5130. />
  5131. </div>
  5132. <div>{{ w.likesCount }}</div>
  5133. </div>
  5134. <div class="commentList" style="margin-right: 15px">
  5135. <div
  5136. class="commentImg"
  5137. @click="commentOther(w, toolIndex, wIndex)"
  5138. >
  5139. <img
  5140. src="../../assets/icon/comment/comment.png"
  5141. alt=""
  5142. />
  5143. </div>
  5144. <div>{{ w.commentCount }}</div>
  5145. </div>
  5146. </div>
  5147. </div>
  5148. </div>
  5149. </div>
  5150. <div class="noWorksS">
  5151. <div
  5152. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5153. :key="sIndex"
  5154. class="noWorksName"
  5155. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5156. :class="{ isWork: s.type == '2' }"
  5157. >
  5158. {{ s.student }}
  5159. </div>
  5160. </div>
  5161. </div>
  5162. <div
  5163. v-if="
  5164. tType &&
  5165. ((tType == 2 && sIsOpen == true) ||
  5166. tType == 1 ||
  5167. tType == 4) &&
  5168. tool.tool.indexOf(41) != -1
  5169. "
  5170. class="worksBox"
  5171. >
  5172. <div class="noWorksS">
  5173. <div
  5174. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5175. :key="sIndex"
  5176. class="noWorksName"
  5177. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5178. :class="{ isWork: s.type == '2' }"
  5179. >
  5180. {{ s.student }}
  5181. </div>
  5182. </div>
  5183. <div
  5184. class="zuoyeYulan"
  5185. v-if="
  5186. worksStudent2.length &&
  5187. worksStudent2[toolIndex].length > 0
  5188. "
  5189. >
  5190. <div class="worksTop">
  5191. <div>作业预览</div>
  5192. <div
  5193. class="corOpen"
  5194. @click="contract(toolIndex)"
  5195. v-if="
  5196. worksStudent2[toolIndex].length > 6 &&
  5197. isCloseList[toolIndex].isClose == 0
  5198. "
  5199. >
  5200. 收缩
  5201. </div>
  5202. <div
  5203. class="corOpen"
  5204. @click="contract(toolIndex)"
  5205. v-if="isCloseList[toolIndex].isClose == 1"
  5206. >
  5207. 展开
  5208. </div>
  5209. </div>
  5210. </div>
  5211. <div
  5212. class="worksDetailBox"
  5213. v-if="
  5214. worksStudent2.length &&
  5215. worksStudent2[toolIndex].length > 0
  5216. "
  5217. >
  5218. <div
  5219. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5220. ? worksStudent2[toolIndex]
  5221. : worksStudent2[toolIndex].slice(0, 6)"
  5222. :key="wIndex"
  5223. class="isWorksName2"
  5224. @click="openXz(w, toolIndex)"
  5225. >
  5226. {{ w.sName }}
  5227. <img
  5228. class="deleteImg deleteImg2"
  5229. src="../../assets/deleteworks.png"
  5230. v-if="w.userid == userid || tType == 1 || tType == 4"
  5231. @click.stop="deleteWorks(w.wid)"
  5232. alt
  5233. />
  5234. </div>
  5235. </div>
  5236. </div>
  5237. <div
  5238. v-if="
  5239. tType &&
  5240. ((tType == 2 && sIsOpen == true) ||
  5241. tType == 1 ||
  5242. tType == 4) &&
  5243. tool.tool.indexOf(47) != -1
  5244. "
  5245. class="worksBox"
  5246. >
  5247. <div class="noWorksS">
  5248. <div
  5249. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5250. :key="sIndex"
  5251. class="noWorksName"
  5252. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5253. :class="{ isWork: s.type == '2' }"
  5254. >
  5255. {{ s.student }}
  5256. </div>
  5257. </div>
  5258. <div
  5259. class="zuoyeYulan"
  5260. v-if="
  5261. worksStudent2.length &&
  5262. worksStudent2[toolIndex].length > 0
  5263. "
  5264. >
  5265. <div class="worksTop">
  5266. <div>作业预览</div>
  5267. <div
  5268. class="corOpen"
  5269. @click="contract(toolIndex)"
  5270. v-if="
  5271. worksStudent2[toolIndex].length > 6 &&
  5272. isCloseList[toolIndex].isClose == 0
  5273. "
  5274. >
  5275. 收缩
  5276. </div>
  5277. <div
  5278. class="corOpen"
  5279. @click="contract(toolIndex)"
  5280. v-if="isCloseList[toolIndex].isClose == 1"
  5281. >
  5282. 展开
  5283. </div>
  5284. </div>
  5285. </div>
  5286. <div
  5287. class="worksDetailBox"
  5288. v-if="
  5289. worksStudent2.length &&
  5290. worksStudent2[toolIndex].length > 0
  5291. "
  5292. >
  5293. <!-- @click="openXz(w, toolIndex)" -->
  5294. <div
  5295. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5296. ? worksStudent2[toolIndex]
  5297. : worksStudent2[toolIndex].slice(0, 6)"
  5298. :key="wIndex"
  5299. class="isWorksName2"
  5300. @click="openSen(w, toolIndex)"
  5301. >
  5302. {{ w.sName }}
  5303. <img
  5304. class="deleteImg deleteImg2"
  5305. src="../../assets/deleteworks.png"
  5306. v-if="w.userid == userid || tType == 1 || tType == 4"
  5307. @click.stop="deleteWorks(w.wid)"
  5308. alt
  5309. />
  5310. </div>
  5311. </div>
  5312. </div>
  5313. <div
  5314. v-if="
  5315. tType &&
  5316. ((tType == 2 && sIsOpen == true) ||
  5317. tType == 1 ||
  5318. tType == 4) &&
  5319. tool.tool.indexOf(48) != -1
  5320. "
  5321. class="worksBox"
  5322. >
  5323. <div
  5324. class="zuoyeYulan"
  5325. v-if="
  5326. worksStudent2.length &&
  5327. worksStudent2[toolIndex].length > 0
  5328. "
  5329. >
  5330. <div class="worksTop">
  5331. <div>作业预览</div>
  5332. <div
  5333. class="corOpen"
  5334. @click="contract(toolIndex)"
  5335. v-if="
  5336. worksStudent2[toolIndex].length > 6 &&
  5337. isCloseList[toolIndex].isClose == 0
  5338. "
  5339. >
  5340. 收缩
  5341. </div>
  5342. <div
  5343. class="corOpen"
  5344. @click="contract(toolIndex)"
  5345. v-if="isCloseList[toolIndex].isClose == 1"
  5346. >
  5347. 展开
  5348. </div>
  5349. </div>
  5350. </div>
  5351. <div
  5352. class="worksDetailBox"
  5353. v-if="
  5354. worksStudent2.length &&
  5355. worksStudent2[toolIndex].length > 0
  5356. "
  5357. >
  5358. <div
  5359. class="works"
  5360. style="
  5361. width: 200px;
  5362. height: 140px;
  5363. margin: 10px 10px 10px 0;
  5364. border-radius: 15px;
  5365. box-shadow: 0 0 6px 1px #dfdada;
  5366. "
  5367. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5368. ? worksStudent2[toolIndex]
  5369. : worksStudent2[toolIndex].slice(0, 6)"
  5370. :key="wIndex"
  5371. :class="w.type == 1 ? 'isTypeOne' : ''"
  5372. >
  5373. <div class="workImg">
  5374. <img :src="word" @click="openTable(w)" alt />
  5375. <!-- @click="openFile(w.works)" -->
  5376. <div
  5377. class="answerScore"
  5378. v-if="w.score"
  5379. @click.stop="openScore(w)"
  5380. :class="{
  5381. rightW:
  5382. w.userid == userid ||
  5383. tType == 1 ||
  5384. tType == 4 ||
  5385. w.ateacher == userid,
  5386. }"
  5387. >
  5388. {{ JSON.parse(w.score).wScore }}分
  5389. </div>
  5390. <div
  5391. class="answerScore"
  5392. @click.stop="openScore(w)"
  5393. v-else-if="courseDetail.userid == userid"
  5394. :class="{
  5395. rightW:
  5396. w.userid == userid ||
  5397. tType == 1 ||
  5398. tType == 4 ||
  5399. w.ateacher == userid,
  5400. }"
  5401. >
  5402. 评分
  5403. </div>
  5404. <img
  5405. class="deleteImg"
  5406. src="../../assets/deleteworks.png"
  5407. v-if="w.userid == userid || tType == 1 || tType == 4"
  5408. @click.stop="deleteWorks(w.wid)"
  5409. alt
  5410. />
  5411. </div>
  5412. <div class="comment" style="min-width: 200px">
  5413. <div class="worksName">
  5414. <div>{{ w.sName }}</div>
  5415. </div>
  5416. <div class="commentList">
  5417. <div class="commentList">
  5418. <div
  5419. class="commentImg"
  5420. @click="
  5421. isLikes(w.wid, userid, 1, null, w.isLikes)
  5422. "
  5423. >
  5424. <img
  5425. :src="w.isLikes == true ? likes : noLikes"
  5426. alt=""
  5427. />
  5428. </div>
  5429. <div>{{ w.likesCount }}</div>
  5430. </div>
  5431. <div class="commentList" style="margin-right: 15px">
  5432. <div
  5433. class="commentImg"
  5434. @click="commentOther(w, toolIndex, wIndex)"
  5435. >
  5436. <img
  5437. src="../../assets/icon/comment/comment.png"
  5438. alt=""
  5439. />
  5440. </div>
  5441. <div>{{ w.commentCount }}</div>
  5442. </div>
  5443. </div>
  5444. </div>
  5445. </div>
  5446. </div>
  5447. <div class="noWorksS">
  5448. <div
  5449. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5450. :key="sIndex"
  5451. class="noWorksName"
  5452. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5453. :class="{ isWork: s.type == '2' }"
  5454. >
  5455. {{ s.student }}
  5456. </div>
  5457. </div>
  5458. </div>
  5459. <div
  5460. v-if="
  5461. tType &&
  5462. ((tType == 2 && sIsOpen == true) ||
  5463. tType == 1 ||
  5464. tType == 4) &&
  5465. tool.tool.indexOf(52) != -1
  5466. "
  5467. class="worksBox"
  5468. >
  5469. <div
  5470. class="zuoyeYulan"
  5471. v-if="
  5472. worksStudent2.length &&
  5473. worksStudent2[toolIndex].length > 0
  5474. "
  5475. >
  5476. <div class="worksTop">
  5477. <div>作业预览</div>
  5478. <div
  5479. class="corOpen"
  5480. @click="contract(toolIndex)"
  5481. v-if="
  5482. worksStudent2[toolIndex].length > 6 &&
  5483. isCloseList[toolIndex].isClose == 0
  5484. "
  5485. >
  5486. 收缩
  5487. </div>
  5488. <div
  5489. class="corOpen"
  5490. @click="contract(toolIndex)"
  5491. v-if="isCloseList[toolIndex].isClose == 1"
  5492. >
  5493. 展开
  5494. </div>
  5495. </div>
  5496. </div>
  5497. <div
  5498. class="worksDetailBox"
  5499. v-if="
  5500. worksStudent2.length &&
  5501. worksStudent2[toolIndex].length > 0
  5502. "
  5503. >
  5504. <div
  5505. class="works"
  5506. style="
  5507. width: 200px;
  5508. height: 140px;
  5509. margin: 10px 10px 10px 0;
  5510. border-radius: 15px;
  5511. box-shadow: 0 0 6px 1px #dfdada;
  5512. "
  5513. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5514. ? worksStudent2[toolIndex]
  5515. : worksStudent2[toolIndex].slice(0, 6)"
  5516. :key="wIndex"
  5517. :class="w.type == 1 ? 'isTypeOne' : ''"
  5518. >
  5519. <div class="workImg">
  5520. <img :src="word" @click="openWord(w)" alt />
  5521. <!-- @click="openFile(w.works)" -->
  5522. <div
  5523. class="answerScore"
  5524. v-if="w.score"
  5525. @click.stop="openScore(w)"
  5526. :class="{
  5527. rightW:
  5528. w.userid == userid ||
  5529. tType == 1 ||
  5530. tType == 4 ||
  5531. w.ateacher == userid,
  5532. }"
  5533. >
  5534. {{ JSON.parse(w.score).wScore }}分
  5535. </div>
  5536. <div
  5537. class="answerScore"
  5538. @click.stop="openScore(w)"
  5539. v-else-if="courseDetail.userid == userid"
  5540. :class="{
  5541. rightW:
  5542. w.userid == userid ||
  5543. tType == 1 ||
  5544. tType == 4 ||
  5545. w.ateacher == userid,
  5546. }"
  5547. >
  5548. 评分
  5549. </div>
  5550. <img
  5551. class="deleteImg"
  5552. src="../../assets/deleteworks.png"
  5553. v-if="w.userid == userid || tType == 1 || tType == 4"
  5554. @click.stop="deleteWorks(w.wid)"
  5555. alt
  5556. />
  5557. </div>
  5558. <div class="comment" style="min-width: 200px">
  5559. <div class="worksName">
  5560. <div>{{ w.sName }}</div>
  5561. </div>
  5562. <div class="commentList">
  5563. <div class="commentList">
  5564. <div
  5565. class="commentImg"
  5566. @click="
  5567. isLikes(w.wid, userid, 1, null, w.isLikes)
  5568. "
  5569. >
  5570. <img
  5571. :src="w.isLikes == true ? likes : noLikes"
  5572. alt=""
  5573. />
  5574. </div>
  5575. <div>{{ w.likesCount }}</div>
  5576. </div>
  5577. <div class="commentList" style="margin-right: 15px">
  5578. <div
  5579. class="commentImg"
  5580. @click="commentOther(w, toolIndex, wIndex)"
  5581. >
  5582. <img
  5583. src="../../assets/icon/comment/comment.png"
  5584. alt=""
  5585. />
  5586. </div>
  5587. <div>{{ w.commentCount }}</div>
  5588. </div>
  5589. </div>
  5590. </div>
  5591. </div>
  5592. </div>
  5593. <div class="noWorksS">
  5594. <div
  5595. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5596. :key="sIndex"
  5597. class="noWorksName"
  5598. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  5599. :class="{ isWork: s.type == '2' }"
  5600. >
  5601. {{ s.student }}
  5602. </div>
  5603. </div>
  5604. </div>
  5605. </div>
  5606. </div>
  5607. <div
  5608. class="vedioBox"
  5609. v-if="
  5610. arrayToArray(tool.tool, isWorkTool).length &&
  5611. (noWorksS[toolIndex].length || worksStudent[toolIndex].length)
  5612. "
  5613. >
  5614. <!-- <div
  5615. class="queTop"
  5616. style="
  5617. font-size: 25px;
  5618. padding: 15px 0 15px 37px;
  5619. font-weight: bold;
  5620. "
  5621. >
  5622. 工作区
  5623. </div> -->
  5624. <div class="tool_work_box">
  5625. <div
  5626. v-if="
  5627. tType &&
  5628. ((tType == 2 && sIsOpen == true) ||
  5629. tType == 1 ||
  5630. tType == 4) &&
  5631. tool.tool.indexOf(16) != -1
  5632. "
  5633. class="worksBox"
  5634. >
  5635. <div
  5636. class="zuoyeYulan"
  5637. v-if="
  5638. worksStudent.length && worksStudent[toolIndex].length > 0
  5639. "
  5640. >
  5641. <div class="worksTop">
  5642. <div>作业预览</div>
  5643. <div
  5644. class="corOpen"
  5645. @click="contract(toolIndex)"
  5646. v-if="
  5647. worksStudent[toolIndex].length > 6 &&
  5648. isCloseList[toolIndex].isClose == 0
  5649. "
  5650. >
  5651. 收缩
  5652. </div>
  5653. <div
  5654. class="corOpen"
  5655. @click="contract(toolIndex)"
  5656. v-if="isCloseList[toolIndex].isClose == 1"
  5657. >
  5658. 展开
  5659. </div>
  5660. </div>
  5661. </div>
  5662. <div
  5663. class="worksDetailBox"
  5664. v-if="
  5665. worksStudent.length && worksStudent[toolIndex].length > 0
  5666. "
  5667. >
  5668. <div
  5669. class="works"
  5670. style="
  5671. width: 200px;
  5672. height: 140px;
  5673. margin: 10px 10px 10px 0;
  5674. border-radius: 15px;
  5675. box-shadow: 0 0 6px 1px #dfdada;
  5676. "
  5677. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5678. ? worksStudent[toolIndex]
  5679. : worksStudent[toolIndex].slice(0, 6)"
  5680. :key="wIndex"
  5681. :class="w.type == 1 ? 'isTypeOne' : ''"
  5682. >
  5683. <div class="workImg" v-if="w.type == 0">
  5684. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  5685. <img :src="w.works" @click="previewImg(w.works)" alt />
  5686. <div
  5687. class="answerScore"
  5688. v-if="w.score"
  5689. @click.stop="openScore(w)"
  5690. :class="{
  5691. rightW:
  5692. w.userid == userid ||
  5693. tType == 1 ||
  5694. tType == 4 ||
  5695. w.ateacher == userid,
  5696. }"
  5697. >
  5698. {{ JSON.parse(w.score).wScore }}分
  5699. </div>
  5700. <div
  5701. class="answerScore"
  5702. @click.stop="openScore(w)"
  5703. v-else-if="courseDetail.userid == userid"
  5704. :class="{
  5705. rightW:
  5706. w.userid == userid ||
  5707. tType == 1 ||
  5708. tType == 4 ||
  5709. w.ateacher == userid,
  5710. }"
  5711. >
  5712. 评分
  5713. </div>
  5714. <img
  5715. class="deleteImg"
  5716. src="../../assets/deleteworks.png"
  5717. v-if="w.userid == userid || tType == 1 || tType == 4"
  5718. @click.stop="deleteWorks(w.wid)"
  5719. alt
  5720. />
  5721. </div>
  5722. <div class="workImg" v-if="w.type == 1">
  5723. <img :src="word" @click="openFile(w.works)" alt />
  5724. <!-- @click="openFile(w.works)" -->
  5725. <div
  5726. class="answerScore"
  5727. v-if="w.score"
  5728. @click.stop="openScore(w)"
  5729. :class="{
  5730. rightW:
  5731. w.userid == userid ||
  5732. tType == 1 ||
  5733. tType == 4 ||
  5734. w.ateacher == userid,
  5735. }"
  5736. >
  5737. {{ JSON.parse(w.score).wScore }}分
  5738. </div>
  5739. <div
  5740. class="answerScore"
  5741. @click.stop="openScore(w)"
  5742. v-else-if="courseDetail.userid == userid"
  5743. :class="{
  5744. rightW:
  5745. w.userid == userid ||
  5746. tType == 1 ||
  5747. tType == 4 ||
  5748. w.ateacher == userid,
  5749. }"
  5750. >
  5751. 评分
  5752. </div>
  5753. <img
  5754. class="deleteImg"
  5755. src="../../assets/deleteworks.png"
  5756. v-if="w.userid == userid || tType == 1 || tType == 4"
  5757. @click.stop="deleteWorks(w.wid)"
  5758. alt
  5759. />
  5760. </div>
  5761. <div class="workImg" v-if="w.type == 3">
  5762. <img
  5763. style="cursor: pointer"
  5764. :src="video"
  5765. @click="openVideo(w)"
  5766. alt
  5767. />
  5768. <!-- @click="openVideo(w.works)" -->
  5769. <div
  5770. class="answerScore"
  5771. v-if="w.score"
  5772. @click.stop="openScore(w)"
  5773. :class="{
  5774. rightW:
  5775. w.userid == userid ||
  5776. tType == 1 ||
  5777. tType == 4 ||
  5778. w.ateacher == userid,
  5779. }"
  5780. >
  5781. {{ JSON.parse(w.score).wScore }}分
  5782. </div>
  5783. <div
  5784. class="answerScore"
  5785. @click.stop="openScore(w)"
  5786. v-else-if="courseDetail.userid == userid"
  5787. :class="{
  5788. rightW:
  5789. w.userid == userid ||
  5790. tType == 1 ||
  5791. tType == 4 ||
  5792. w.ateacher == userid,
  5793. }"
  5794. >
  5795. 评分
  5796. </div>
  5797. <img
  5798. class="deleteImg"
  5799. src="../../assets/deleteworks.png"
  5800. v-if="w.userid == userid || tType == 1 || tType == 4"
  5801. @click.stop="deleteWorks(w.wid)"
  5802. alt
  5803. />
  5804. </div>
  5805. <div class="workImg" v-if="w.type == 12">
  5806. <img
  5807. style="cursor: pointer"
  5808. :src="word2"
  5809. @click="downloadFile(w.works)"
  5810. alt
  5811. />
  5812. <!-- @click="openVideo(w.works)" -->
  5813. <div
  5814. class="answerScore"
  5815. v-if="w.score"
  5816. @click.stop="openScore(w)"
  5817. :class="{
  5818. rightW:
  5819. w.userid == userid ||
  5820. tType == 1 ||
  5821. tType == 4 ||
  5822. w.ateacher == userid,
  5823. }"
  5824. >
  5825. {{ JSON.parse(w.score).wScore }}分
  5826. </div>
  5827. <div
  5828. class="answerScore"
  5829. @click.stop="openScore(w)"
  5830. v-else-if="courseDetail.userid == userid"
  5831. :class="{
  5832. rightW:
  5833. w.userid == userid ||
  5834. tType == 1 ||
  5835. tType == 4 ||
  5836. w.ateacher == userid,
  5837. }"
  5838. >
  5839. 评分
  5840. </div>
  5841. <img
  5842. class="deleteImg"
  5843. src="../../assets/deleteworks.png"
  5844. v-if="w.userid == userid || tType == 1 || tType == 4"
  5845. @click.stop="deleteWorks(w.wid)"
  5846. alt
  5847. />
  5848. </div>
  5849. <div class="comment" style="min-width: 200px">
  5850. <div class="worksName">
  5851. <div>{{ w.sName }}</div>
  5852. </div>
  5853. <div class="commentList">
  5854. <div class="commentList">
  5855. <div
  5856. class="commentImg"
  5857. @click="
  5858. isLikes(w.wid, userid, 1, null, w.isLikes)
  5859. "
  5860. >
  5861. <img
  5862. :src="w.isLikes == true ? likes : noLikes"
  5863. alt=""
  5864. />
  5865. </div>
  5866. <div>{{ w.likesCount }}</div>
  5867. </div>
  5868. <div class="commentList" style="margin-right: 15px">
  5869. <div
  5870. class="commentImg"
  5871. @click="commentOther(w, toolIndex, wIndex)"
  5872. >
  5873. <img
  5874. src="../../assets/icon/comment/comment.png"
  5875. alt=""
  5876. />
  5877. </div>
  5878. <div>{{ w.commentCount }}</div>
  5879. </div>
  5880. </div>
  5881. </div>
  5882. </div>
  5883. </div>
  5884. <div class="noWorksS">
  5885. <div
  5886. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5887. :key="sIndex"
  5888. class="noWorksName"
  5889. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  5890. :class="{ isWork: s.type == '2' }"
  5891. >
  5892. {{ s.student }}
  5893. </div>
  5894. </div>
  5895. </div>
  5896. <div
  5897. v-if="
  5898. tType &&
  5899. ((tType == 2 && sIsOpen == true) ||
  5900. tType == 1 ||
  5901. tType == 4) &&
  5902. tool.tool.indexOf(32) != -1
  5903. "
  5904. class="worksBox"
  5905. >
  5906. <div
  5907. class="zuoyeYulan"
  5908. v-if="
  5909. worksStudent.length && worksStudent[toolIndex].length > 0
  5910. "
  5911. >
  5912. <div class="worksTop">
  5913. <div>作业预览</div>
  5914. <div
  5915. class="corOpen"
  5916. @click="contract(toolIndex)"
  5917. v-if="
  5918. worksStudent[toolIndex].length > 6 &&
  5919. isCloseList[toolIndex].isClose == 0
  5920. "
  5921. >
  5922. 收缩
  5923. </div>
  5924. <div
  5925. class="corOpen"
  5926. @click="contract(toolIndex)"
  5927. v-if="isCloseList[toolIndex].isClose == 1"
  5928. >
  5929. 展开
  5930. </div>
  5931. </div>
  5932. </div>
  5933. <div
  5934. class="worksDetailBox"
  5935. v-if="
  5936. worksStudent.length && worksStudent[toolIndex].length > 0
  5937. "
  5938. >
  5939. <div
  5940. class="works"
  5941. style="
  5942. width: 200px;
  5943. height: 140px;
  5944. margin: 10px 10px 10px 0;
  5945. border-radius: 15px;
  5946. box-shadow: 0 0 6px 1px #dfdada;
  5947. "
  5948. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  5949. ? worksStudent[toolIndex]
  5950. : worksStudent[toolIndex].slice(0, 6)"
  5951. :key="wIndex"
  5952. :class="w.type == 1 ? 'isTypeOne' : ''"
  5953. >
  5954. <div class="workImg">
  5955. <img :src="word2" @click="downloadFile(w.works)" alt />
  5956. <div
  5957. class="answerScore"
  5958. v-if="w.score"
  5959. @click.stop="openScore(w)"
  5960. :class="{
  5961. rightW:
  5962. w.userid == userid ||
  5963. tType == 1 ||
  5964. tType == 4 ||
  5965. w.ateacher == userid,
  5966. }"
  5967. >
  5968. {{ JSON.parse(w.score).wScore }}分
  5969. </div>
  5970. <div
  5971. class="answerScore"
  5972. @click.stop="openScore(w)"
  5973. v-else-if="courseDetail.userid == userid"
  5974. :class="{
  5975. rightW:
  5976. w.userid == userid ||
  5977. tType == 1 ||
  5978. tType == 4 ||
  5979. w.ateacher == userid,
  5980. }"
  5981. >
  5982. 评分
  5983. </div>
  5984. <img
  5985. class="deleteImg"
  5986. src="../../assets/deleteworks.png"
  5987. v-if="w.userid == userid || tType == 1 || tType == 4"
  5988. @click.stop="deleteWorks(w.wid)"
  5989. alt
  5990. />
  5991. </div>
  5992. <div class="comment" style="min-width: 200px">
  5993. <div class="worksName">
  5994. <div>{{ w.sName }}</div>
  5995. </div>
  5996. <div class="commentList">
  5997. <div class="commentList">
  5998. <div
  5999. class="commentImg"
  6000. @click="
  6001. isLikes(w.wid, userid, 1, null, w.isLikes)
  6002. "
  6003. >
  6004. <img
  6005. :src="w.isLikes == true ? likes : noLikes"
  6006. alt=""
  6007. />
  6008. </div>
  6009. <div>{{ w.likesCount }}</div>
  6010. </div>
  6011. <div class="commentList" style="margin-right: 15px">
  6012. <div
  6013. class="commentImg"
  6014. @click="commentOther(w, toolIndex, wIndex)"
  6015. >
  6016. <img
  6017. src="../../assets/icon/comment/comment.png"
  6018. alt=""
  6019. />
  6020. </div>
  6021. <div>{{ w.commentCount }}</div>
  6022. </div>
  6023. </div>
  6024. </div>
  6025. </div>
  6026. </div>
  6027. <div class="noWorksS">
  6028. <div
  6029. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6030. :key="sIndex"
  6031. class="noWorksName"
  6032. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  6033. :class="{ isWork: s.type == '2' }"
  6034. >
  6035. {{ s.student }}
  6036. </div>
  6037. </div>
  6038. </div>
  6039. <div
  6040. v-if="
  6041. tType &&
  6042. ((tType == 2 && sIsOpen == true) ||
  6043. tType == 1 ||
  6044. tType == 4) &&
  6045. tool.tool.indexOf(57) != -1
  6046. "
  6047. class="worksBox"
  6048. >
  6049. <div
  6050. class="zuoyeYulan"
  6051. v-if="
  6052. worksStudent.length && worksStudent[toolIndex].length > 0
  6053. "
  6054. >
  6055. <div class="worksTop">
  6056. <div>作业预览</div>
  6057. <div
  6058. class="corOpen"
  6059. @click="contract(toolIndex)"
  6060. v-if="
  6061. worksStudent[toolIndex].length > 6 &&
  6062. isCloseList[toolIndex].isClose == 0
  6063. "
  6064. >
  6065. 收缩
  6066. </div>
  6067. <div
  6068. class="corOpen"
  6069. @click="contract(toolIndex)"
  6070. v-if="isCloseList[toolIndex].isClose == 1"
  6071. >
  6072. 展开
  6073. </div>
  6074. </div>
  6075. </div>
  6076. <div
  6077. class="worksDetailBox"
  6078. v-if="
  6079. worksStudent.length && worksStudent[toolIndex].length > 0
  6080. "
  6081. >
  6082. <div
  6083. class="works"
  6084. style="
  6085. width: 200px;
  6086. height: 140px;
  6087. margin: 10px 10px 10px 0;
  6088. border-radius: 15px;
  6089. box-shadow: 0 0 6px 1px #dfdada;
  6090. "
  6091. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6092. ? worksStudent[toolIndex]
  6093. : worksStudent[toolIndex].slice(0, 6)"
  6094. :key="wIndex"
  6095. :class="w.type == 1 ? 'isTypeOne' : ''"
  6096. >
  6097. <div class="workImg">
  6098. <img
  6099. :src="word2"
  6100. @click="downloadFile(w.works)"
  6101. v-if="w.type == 12"
  6102. alt
  6103. />
  6104. <img
  6105. :src="word2"
  6106. @click="openCocoPi(57, toolIndex, w.userid, w.sName)"
  6107. v-else-if="w.type == 15"
  6108. alt
  6109. />
  6110. <div
  6111. class="answerScore"
  6112. v-if="w.score"
  6113. @click.stop="openScore(w)"
  6114. :class="{
  6115. rightW:
  6116. w.userid == userid ||
  6117. tType == 1 ||
  6118. tType == 4 ||
  6119. w.ateacher == userid,
  6120. }"
  6121. >
  6122. {{ JSON.parse(w.score).wScore }}分
  6123. </div>
  6124. <div
  6125. class="answerScore"
  6126. @click.stop="openScore(w)"
  6127. v-else-if="courseDetail.userid == userid"
  6128. :class="{
  6129. rightW:
  6130. w.userid == userid ||
  6131. tType == 1 ||
  6132. tType == 4 ||
  6133. w.ateacher == userid,
  6134. }"
  6135. >
  6136. 评分
  6137. </div>
  6138. <img
  6139. class="deleteImg"
  6140. src="../../assets/deleteworks.png"
  6141. v-if="w.userid == userid || tType == 1 || tType == 4"
  6142. @click.stop="deleteWorks(w.wid)"
  6143. alt
  6144. />
  6145. </div>
  6146. <div class="comment" style="min-width: 200px">
  6147. <div class="worksName">
  6148. <div>{{ w.sName }}</div>
  6149. </div>
  6150. <div class="commentList">
  6151. <div class="commentList">
  6152. <div
  6153. class="commentImg"
  6154. @click="
  6155. isLikes(w.wid, userid, 1, null, w.isLikes)
  6156. "
  6157. >
  6158. <img
  6159. :src="w.isLikes == true ? likes : noLikes"
  6160. alt=""
  6161. />
  6162. </div>
  6163. <div>{{ w.likesCount }}</div>
  6164. </div>
  6165. <div class="commentList" style="margin-right: 15px">
  6166. <div
  6167. class="commentImg"
  6168. @click="commentOther(w, toolIndex, wIndex)"
  6169. >
  6170. <img
  6171. src="../../assets/icon/comment/comment.png"
  6172. alt=""
  6173. />
  6174. </div>
  6175. <div>{{ w.commentCount }}</div>
  6176. </div>
  6177. </div>
  6178. </div>
  6179. </div>
  6180. </div>
  6181. <div class="noWorksS">
  6182. <div
  6183. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6184. :key="sIndex"
  6185. class="noWorksName"
  6186. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  6187. :class="{ isWork: s.type == '2' }"
  6188. >
  6189. {{ s.student }}
  6190. </div>
  6191. </div>
  6192. </div>
  6193. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  6194. <div
  6195. class="zuoyeYulan"
  6196. v-if="
  6197. worksStudent.length && worksStudent[toolIndex].length > 0
  6198. "
  6199. >
  6200. <span>作业预览</span>
  6201. <div
  6202. class="corOpen"
  6203. @click="contract(toolIndex)"
  6204. v-if="
  6205. worksStudent[toolIndex].length > 6 &&
  6206. isCloseList[toolIndex].isClose == 0
  6207. "
  6208. >
  6209. 收缩
  6210. </div>
  6211. <div
  6212. class="corOpen"
  6213. @click="contract(toolIndex)"
  6214. v-if="isCloseList[toolIndex].isClose == 1"
  6215. >
  6216. 展开
  6217. </div>
  6218. </div>
  6219. <div
  6220. class="worksDetailBox"
  6221. v-if="
  6222. worksStudent.length && worksStudent[toolIndex].length > 0
  6223. "
  6224. >
  6225. <div
  6226. class="works"
  6227. style="
  6228. width: 200px;
  6229. height: 140px;
  6230. margin: 10px 10px 10px 0;
  6231. border-radius: 15px;
  6232. box-shadow: 0 0 6px 1px #dfdada;
  6233. "
  6234. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6235. ? worksStudent[toolIndex]
  6236. : worksStudent[toolIndex].slice(0, 6)"
  6237. :key="wIndex"
  6238. :class="w.type == 1 ? 'isTypeOne' : ''"
  6239. >
  6240. <div class="workImg" v-if="w.type == 0">
  6241. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  6242. <img :src="w.works" @click="previewImg(w.works)" alt />
  6243. <div
  6244. class="answerScore"
  6245. v-if="w.score"
  6246. @click.stop="openScore(w)"
  6247. :class="{
  6248. rightW:
  6249. w.userid == userid ||
  6250. tType == 1 ||
  6251. tType == 4 ||
  6252. w.ateacher == userid,
  6253. }"
  6254. >
  6255. {{ JSON.parse(w.score).wScore }}分
  6256. </div>
  6257. <div
  6258. class="answerScore"
  6259. @click.stop="openScore(w)"
  6260. v-else-if="courseDetail.userid == userid"
  6261. :class="{
  6262. rightW:
  6263. w.userid == userid ||
  6264. tType == 1 ||
  6265. tType == 4 ||
  6266. w.ateacher == userid,
  6267. }"
  6268. >
  6269. 评分
  6270. </div>
  6271. <img
  6272. class="deleteImg"
  6273. src="../../assets/deleteworks.png"
  6274. v-if="w.userid == userid || tType == 1 || tType == 4"
  6275. @click.stop="deleteWorks(w.wid)"
  6276. alt
  6277. />
  6278. </div>
  6279. <div
  6280. class="workImg"
  6281. style="cursor: pointer"
  6282. v-if="w.type == 1"
  6283. >
  6284. <img :src="word" @click="openFile(w.works)" alt />
  6285. <!-- @click="openFile(w.works)" -->
  6286. <div
  6287. class="answerScore"
  6288. v-if="w.score"
  6289. @click.stop="openScore(w)"
  6290. :class="{
  6291. rightW:
  6292. w.userid == userid ||
  6293. tType == 1 ||
  6294. tType == 4 ||
  6295. w.ateacher == userid,
  6296. }"
  6297. >
  6298. {{ JSON.parse(w.score).wScore }}分
  6299. </div>
  6300. <div
  6301. class="answerScore"
  6302. @click.stop="openScore(w)"
  6303. v-else-if="courseDetail.userid == userid"
  6304. :class="{
  6305. rightW:
  6306. w.userid == userid ||
  6307. tType == 1 ||
  6308. tType == 4 ||
  6309. w.ateacher == userid,
  6310. }"
  6311. >
  6312. 评分
  6313. </div>
  6314. <img
  6315. class="deleteImg"
  6316. src="../../assets/deleteworks.png"
  6317. v-if="w.userid == userid || tType == 1 || tType == 4"
  6318. @click.stop="deleteWorks(w.wid)"
  6319. alt
  6320. />
  6321. </div>
  6322. <div class="workImg" v-if="w.type == 3">
  6323. <img
  6324. style="cursor: pointer"
  6325. :src="video"
  6326. @click="openVideo(w)"
  6327. alt
  6328. />
  6329. <!-- @click="openVideo(w.works)" -->
  6330. <div
  6331. class="answerScore"
  6332. v-if="w.score"
  6333. @click.stop="openScore(w)"
  6334. :class="{
  6335. rightW:
  6336. w.userid == userid ||
  6337. tType == 1 ||
  6338. tType == 4 ||
  6339. w.ateacher == userid,
  6340. }"
  6341. >
  6342. {{ JSON.parse(w.score).wScore }}分
  6343. </div>
  6344. <div
  6345. class="answerScore"
  6346. @click.stop="openScore(w)"
  6347. v-else-if="courseDetail.userid == userid"
  6348. :class="{
  6349. rightW:
  6350. w.userid == userid ||
  6351. tType == 1 ||
  6352. tType == 4 ||
  6353. w.ateacher == userid,
  6354. }"
  6355. >
  6356. 评分
  6357. </div>
  6358. <img
  6359. class="deleteImg"
  6360. src="../../assets/deleteworks.png"
  6361. v-if="w.userid == userid || tType == 1 || tType == 4"
  6362. @click.stop="deleteWorks(w.wid)"
  6363. alt
  6364. />
  6365. </div>
  6366. <div class="comment" style="min-width: 200px">
  6367. <div class="worksName">
  6368. <div
  6369. style="cursor: pointer"
  6370. @click="
  6371. openSname(w.sName, w.wid, toolIndex, w.userid)
  6372. "
  6373. >
  6374. {{ w.sName }}
  6375. </div>
  6376. </div>
  6377. <div class="commentList">
  6378. <div class="commentList">
  6379. <div
  6380. class="commentImg"
  6381. @click="
  6382. isLikes(w.wid, userid, 1, null, w.isLikes)
  6383. "
  6384. >
  6385. <img
  6386. :src="w.isLikes == true ? likes : noLikes"
  6387. alt=""
  6388. />
  6389. </div>
  6390. <div>{{ w.likesCount }}</div>
  6391. </div>
  6392. <div class="commentList" style="margin-right: 15px">
  6393. <div
  6394. class="commentImg"
  6395. @click="commentOther(w, toolIndex, wIndex)"
  6396. >
  6397. <img
  6398. src="../../assets/icon/comment/comment.png"
  6399. alt=""
  6400. />
  6401. </div>
  6402. <div>{{ w.commentCount }}</div>
  6403. </div>
  6404. </div>
  6405. </div>
  6406. </div>
  6407. </div>
  6408. <div class="noWorksS">
  6409. <div
  6410. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6411. :key="sIndex"
  6412. class="noWorksName"
  6413. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  6414. :class="{ isWork: s.type == '2' }"
  6415. >
  6416. {{ s.student }}
  6417. </div>
  6418. </div>
  6419. </div>
  6420. <div
  6421. v-if="
  6422. tType &&
  6423. ((tType == 2 && sIsOpen == true) ||
  6424. tType == 1 ||
  6425. tType == 4) &&
  6426. tool.tool.indexOf(4) != -1
  6427. "
  6428. class="worksBox"
  6429. >
  6430. <div
  6431. class="zuoyeYulan"
  6432. v-if="
  6433. worksStudent.length && worksStudent[toolIndex].length > 0
  6434. "
  6435. >
  6436. <div class="worksTop">
  6437. <div>作业预览</div>
  6438. <div
  6439. class="corOpen"
  6440. @click="contract(toolIndex)"
  6441. v-if="
  6442. worksStudent[toolIndex].length > 6 &&
  6443. isCloseList[toolIndex].isClose == 0
  6444. "
  6445. >
  6446. 收缩
  6447. </div>
  6448. <div
  6449. class="corOpen"
  6450. @click="contract(toolIndex)"
  6451. v-if="isCloseList[toolIndex].isClose == 1"
  6452. >
  6453. 展开
  6454. </div>
  6455. </div>
  6456. </div>
  6457. <div>
  6458. <div
  6459. class="worksDetailBox"
  6460. v-if="
  6461. worksStudent.length &&
  6462. worksStudent[toolIndex].length > 0
  6463. "
  6464. >
  6465. <div
  6466. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6467. 0
  6468. ? worksStudent[toolIndex]
  6469. : worksStudent[toolIndex].slice(0, 6)"
  6470. :key="wIndex"
  6471. class="isWorksName2"
  6472. @click="
  6473. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6474. "
  6475. >
  6476. {{ w.sName }}
  6477. <img
  6478. class="deleteImg deleteImg2"
  6479. src="../../assets/deleteworks.png"
  6480. v-if="w.userid == userid || tType == 1 || tType == 4"
  6481. @click.stop="deleteWorks(w.wid)"
  6482. alt
  6483. />
  6484. </div>
  6485. </div>
  6486. </div>
  6487. <div class="noWorksS">
  6488. <div
  6489. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6490. :key="sIndex"
  6491. class="noWorksName"
  6492. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6493. :class="{ isWork: s.type == '2' }"
  6494. >
  6495. {{ s.student }}
  6496. </div>
  6497. </div>
  6498. </div>
  6499. <div
  6500. v-if="
  6501. tType &&
  6502. ((tType == 2 && sIsOpen == true) ||
  6503. tType == 1 ||
  6504. tType == 4) &&
  6505. tool.tool.indexOf(45) != -1
  6506. "
  6507. class="worksBox"
  6508. >
  6509. <div
  6510. class="zuoyeYulan"
  6511. v-if="
  6512. worksStudent.length && worksStudent[toolIndex].length > 0
  6513. "
  6514. >
  6515. <div class="worksTop">
  6516. <div>作业预览</div>
  6517. <div
  6518. class="corOpen"
  6519. @click="contract(toolIndex)"
  6520. v-if="
  6521. worksStudent[toolIndex].length > 6 &&
  6522. isCloseList[toolIndex].isClose == 0
  6523. "
  6524. >
  6525. 收缩
  6526. </div>
  6527. <div
  6528. class="corOpen"
  6529. @click="contract(toolIndex)"
  6530. v-if="isCloseList[toolIndex].isClose == 1"
  6531. >
  6532. 展开
  6533. </div>
  6534. </div>
  6535. </div>
  6536. <div>
  6537. <div
  6538. class="worksDetailBox"
  6539. v-if="
  6540. worksStudent.length &&
  6541. worksStudent[toolIndex].length > 0
  6542. "
  6543. >
  6544. <div
  6545. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6546. 0
  6547. ? worksStudent[toolIndex]
  6548. : worksStudent[toolIndex].slice(0, 6)"
  6549. :key="wIndex"
  6550. class="isWorksName2"
  6551. @click="
  6552. openTools(45, toolIndex, taskCount, w.works, w.sName)
  6553. "
  6554. >
  6555. {{ w.sName }}
  6556. <img
  6557. class="deleteImg deleteImg2"
  6558. src="../../assets/deleteworks.png"
  6559. v-if="w.userid == userid || tType == 1 || tType == 4"
  6560. @click.stop="deleteWorks(w.wid)"
  6561. alt
  6562. />
  6563. </div>
  6564. </div>
  6565. </div>
  6566. <div class="noWorksS">
  6567. <div
  6568. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6569. :key="sIndex"
  6570. class="noWorksName"
  6571. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  6572. :class="{ isWork: s.type == '2' }"
  6573. >
  6574. {{ s.student }}
  6575. </div>
  6576. </div>
  6577. </div>
  6578. <div
  6579. v-if="
  6580. tType &&
  6581. ((tType == 2 && sIsOpen == true) ||
  6582. tType == 1 ||
  6583. tType == 4) &&
  6584. tool.tool.indexOf(15) != -1
  6585. "
  6586. class="worksBox"
  6587. >
  6588. <div
  6589. class="zuoyeYulan"
  6590. v-if="
  6591. worksStudent.length && worksStudent[toolIndex].length > 0
  6592. "
  6593. >
  6594. <div class="worksTop">
  6595. <div>作业预览</div>
  6596. <div
  6597. class="corOpen"
  6598. @click="contract(toolIndex)"
  6599. v-if="
  6600. worksStudent[toolIndex].length > 6 &&
  6601. isCloseList[toolIndex].isClose == 0
  6602. "
  6603. >
  6604. 收缩
  6605. </div>
  6606. <div
  6607. class="corOpen"
  6608. @click="contract(toolIndex)"
  6609. v-if="isCloseList[toolIndex].isClose == 1"
  6610. >
  6611. 展开
  6612. </div>
  6613. </div>
  6614. </div>
  6615. <div
  6616. class="worksDetailBox"
  6617. v-if="
  6618. worksStudent.length && worksStudent[toolIndex].length > 0
  6619. "
  6620. >
  6621. <div
  6622. class="works"
  6623. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6624. ? worksStudent[toolIndex]
  6625. : worksStudent[toolIndex].slice(0, 6)"
  6626. :key="wIndex"
  6627. >
  6628. <div
  6629. class="workImg"
  6630. style="
  6631. border-radius: 15px;
  6632. box-shadow: #eee 0px 0px 5px 5px;
  6633. "
  6634. >
  6635. <!-- <img
  6636. src="../../assets/icon/works/noImg.png"
  6637. @click="openTools(15, toolIndex, taskCount, w.works)"
  6638. alt=""
  6639. />-->
  6640. <div
  6641. class="answerBg"
  6642. style="border-radius: 15px 15px 0 0"
  6643. @click="commentOther(w, toolIndex, wIndex)"
  6644. >
  6645. <!-- <div>{{ w.sName }}</div> -->
  6646. <div class="answerContent">
  6647. {{ JSON.parse(w.works)[0].answer }}
  6648. </div>
  6649. <div
  6650. class="answerScore"
  6651. v-if="w.score"
  6652. @click.stop="openScore(w)"
  6653. :class="{
  6654. rightW:
  6655. w.userid == userid || tType == 1 || tType == 4,
  6656. }"
  6657. >
  6658. {{ JSON.parse(w.score).wScore }}分
  6659. </div>
  6660. <div
  6661. class="answerScore"
  6662. @click.stop="openScore(w)"
  6663. v-else-if="courseDetail.userid == userid"
  6664. :class="{
  6665. rightW:
  6666. w.userid == userid || tType == 1 || tType == 4,
  6667. }"
  6668. >
  6669. 评分
  6670. </div>
  6671. <img
  6672. class="deleteImg"
  6673. src="../../assets/deleteworks.png"
  6674. v-if="
  6675. w.userid == userid || tType == 1 || tType == 4
  6676. "
  6677. @click.stop="deleteWorks(w.wid)"
  6678. alt
  6679. />
  6680. </div>
  6681. <div class="comment">
  6682. <div class="worksName">
  6683. <div>{{ w.sName }}</div>
  6684. </div>
  6685. <div class="commentList">
  6686. <div
  6687. class="commentImg"
  6688. @click="
  6689. isLikes(w.wid, userid, 1, null, w.isLikes)
  6690. "
  6691. >
  6692. <img
  6693. :src="w.isLikes == true ? likes : noLikes"
  6694. alt=""
  6695. />
  6696. </div>
  6697. <div>{{ w.likesCount }}</div>
  6698. </div>
  6699. <div class="commentList" style="margin-right: 15px">
  6700. <div
  6701. class="commentImg"
  6702. @click="commentOther(w, toolIndex, wIndex)"
  6703. >
  6704. <img
  6705. src="../../assets/icon/comment/comment.png"
  6706. alt=""
  6707. />
  6708. </div>
  6709. <div>{{ w.commentCount }}</div>
  6710. </div>
  6711. </div>
  6712. </div>
  6713. </div>
  6714. </div>
  6715. <div class="noWorksS">
  6716. <div
  6717. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6718. :key="sIndex"
  6719. class="noWorksName"
  6720. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6721. :class="{ isWork: s.type == '2' }"
  6722. >
  6723. {{ s.student }}
  6724. </div>
  6725. </div>
  6726. </div>
  6727. <div
  6728. v-if="
  6729. tType &&
  6730. ((tType == 2 && sIsOpen == true) ||
  6731. tType == 1 ||
  6732. tType == 4) &&
  6733. tool.tool.indexOf(1) != -1
  6734. "
  6735. class="worksBox"
  6736. >
  6737. <div
  6738. class="zuoyeYulan"
  6739. v-if="
  6740. worksStudent.length && worksStudent[toolIndex].length > 0
  6741. "
  6742. >
  6743. <div class="worksTop">
  6744. <div>作业预览</div>
  6745. <div
  6746. class="corOpen"
  6747. @click="contract(toolIndex)"
  6748. v-if="
  6749. worksStudent[toolIndex].length > 6 &&
  6750. isCloseList[toolIndex].isClose == 0
  6751. "
  6752. >
  6753. 收缩
  6754. </div>
  6755. <div
  6756. class="corOpen"
  6757. @click="contract(toolIndex)"
  6758. v-if="isCloseList[toolIndex].isClose == 1"
  6759. >
  6760. 展开
  6761. </div>
  6762. </div>
  6763. </div>
  6764. <div
  6765. class="worksDetailBox"
  6766. v-if="
  6767. worksStudent.length && worksStudent[toolIndex].length > 0
  6768. "
  6769. >
  6770. <div
  6771. class="works"
  6772. style="
  6773. width: 200px;
  6774. height: 140px;
  6775. margin: 10px 10px 10px 0;
  6776. border-radius: 15px;
  6777. box-shadow: 0 0 6px 1px #dfdada;
  6778. "
  6779. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6780. ? worksStudent[toolIndex]
  6781. : worksStudent[toolIndex].slice(0, 6)"
  6782. :key="wIndex"
  6783. >
  6784. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  6785. <div class="workImg">
  6786. <img :src="w.works" @click="previewImg(w.works)" alt />
  6787. <div
  6788. class="answerScore"
  6789. v-if="w.score"
  6790. @click.stop="openScore(w)"
  6791. :class="{
  6792. rightW:
  6793. w.userid == userid || tType == 1 || tType == 4,
  6794. }"
  6795. >
  6796. {{ JSON.parse(w.score).wScore }}分
  6797. </div>
  6798. <div
  6799. class="answerScore"
  6800. @click.stop="openScore(w)"
  6801. v-else-if="courseDetail.userid == userid"
  6802. :class="{
  6803. rightW:
  6804. w.userid == userid || tType == 1 || tType == 4,
  6805. }"
  6806. >
  6807. 评分
  6808. </div>
  6809. <img
  6810. class="deleteImg"
  6811. src="../../assets/deleteworks.png"
  6812. v-if="w.userid == userid || tType == 1 || tType == 4"
  6813. @click.stop="deleteWorks(w.wid)"
  6814. alt
  6815. />
  6816. </div>
  6817. <div class="comment" style="min-width: 200px">
  6818. <div class="worksName">
  6819. <div>{{ w.sName }}</div>
  6820. </div>
  6821. <div class="commentList">
  6822. <div class="commentList">
  6823. <div
  6824. class="commentImg"
  6825. @click="
  6826. isLikes(w.wid, userid, 1, null, w.isLikes)
  6827. "
  6828. >
  6829. <img
  6830. :src="w.isLikes == true ? likes : noLikes"
  6831. alt=""
  6832. />
  6833. </div>
  6834. <div>{{ w.likesCount }}</div>
  6835. </div>
  6836. <div class="commentList" style="margin-right: 15px">
  6837. <div
  6838. class="commentImg"
  6839. @click="commentOther(w, toolIndex, wIndex)"
  6840. >
  6841. <img
  6842. src="../../assets/icon/comment/comment.png"
  6843. alt=""
  6844. />
  6845. </div>
  6846. <div>{{ w.commentCount }}</div>
  6847. </div>
  6848. </div>
  6849. </div>
  6850. </div>
  6851. </div>
  6852. <div class="noWorksS">
  6853. <div
  6854. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6855. :key="sIndex"
  6856. class="noWorksName"
  6857. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  6858. :class="{ isWork: s.type == '2' }"
  6859. >
  6860. {{ s.student }}
  6861. </div>
  6862. </div>
  6863. </div>
  6864. <div
  6865. v-if="
  6866. tType &&
  6867. ((tType == 2 && sIsOpen == true) ||
  6868. tType == 1 ||
  6869. tType == 4) &&
  6870. tool.tool.indexOf(3) != -1
  6871. "
  6872. class="worksBox"
  6873. >
  6874. <div
  6875. class="zuoyeYulan"
  6876. v-if="
  6877. worksStudent.length && worksStudent[toolIndex].length > 0
  6878. "
  6879. >
  6880. <div class="worksTop">
  6881. <div>作业预览</div>
  6882. <div
  6883. class="corOpen"
  6884. @click="contract(toolIndex)"
  6885. v-if="
  6886. worksStudent[toolIndex].length > 6 &&
  6887. isCloseList[toolIndex].isClose == 0
  6888. "
  6889. >
  6890. 收缩
  6891. </div>
  6892. <div
  6893. class="corOpen"
  6894. @click="contract(toolIndex)"
  6895. v-if="isCloseList[toolIndex].isClose == 1"
  6896. >
  6897. 展开
  6898. </div>
  6899. </div>
  6900. </div>
  6901. <div
  6902. class="worksDetailBox"
  6903. v-if="
  6904. worksStudent.length && worksStudent[toolIndex].length > 0
  6905. "
  6906. >
  6907. <div
  6908. class="works"
  6909. style="
  6910. width: 200px;
  6911. height: 140px;
  6912. margin: 10px 10px 10px 0;
  6913. border-radius: 15px;
  6914. box-shadow: 0 0 6px 1px #dfdada;
  6915. "
  6916. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  6917. ? worksStudent[toolIndex]
  6918. : worksStudent[toolIndex].slice(0, 6)"
  6919. :key="wIndex"
  6920. >
  6921. <!-- @click="previewImg(w.works)" -->
  6922. <div class="workImg">
  6923. <img :src="w.works" @click="previewImg(w.works)" alt />
  6924. <div
  6925. class="answerScore"
  6926. v-if="w.score"
  6927. @click.stop="openScore(w)"
  6928. :class="{
  6929. rightW:
  6930. w.userid == userid || tType == 1 || tType == 4,
  6931. }"
  6932. >
  6933. {{ JSON.parse(w.score).wScore }}分
  6934. </div>
  6935. <div
  6936. class="answerScore"
  6937. @click.stop="openScore(w)"
  6938. v-else-if="courseDetail.userid == userid"
  6939. :class="{
  6940. rightW:
  6941. w.userid == userid || tType == 1 || tType == 4,
  6942. }"
  6943. >
  6944. 评分
  6945. </div>
  6946. <img
  6947. class="deleteImg"
  6948. src="../../assets/deleteworks.png"
  6949. v-if="w.userid == userid || tType == 1 || tType == 4"
  6950. @click.stop="deleteWorks(w.wid)"
  6951. alt
  6952. />
  6953. </div>
  6954. <div class="comment" style="min-width: 200px">
  6955. <div class="worksName">
  6956. <div>{{ w.sName }}</div>
  6957. </div>
  6958. <div class="commentList">
  6959. <div class="commentList">
  6960. <div
  6961. class="commentImg"
  6962. @click="
  6963. isLikes(w.wid, userid, 1, null, w.isLikes)
  6964. "
  6965. >
  6966. <img
  6967. :src="w.isLikes == true ? likes : noLikes"
  6968. alt=""
  6969. />
  6970. </div>
  6971. <div>{{ w.likesCount }}</div>
  6972. </div>
  6973. <div class="commentList" style="margin-right: 15px">
  6974. <div
  6975. class="commentImg"
  6976. @click="commentOther(w, toolIndex, wIndex)"
  6977. >
  6978. <img
  6979. src="../../assets/icon/comment/comment.png"
  6980. alt=""
  6981. />
  6982. </div>
  6983. <div>{{ w.commentCount }}</div>
  6984. </div>
  6985. </div>
  6986. </div>
  6987. </div>
  6988. </div>
  6989. <div class="noWorksS">
  6990. <div
  6991. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6992. :key="sIndex"
  6993. class="noWorksName"
  6994. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  6995. :class="{ isWork: s.type == '2' }"
  6996. >
  6997. {{ s.student }}
  6998. </div>
  6999. </div>
  7000. </div>
  7001. <div
  7002. v-if="
  7003. tType &&
  7004. ((tType == 2 && sIsOpen == true) ||
  7005. tType == 1 ||
  7006. tType == 4) &&
  7007. tool.tool.indexOf(6) != -1
  7008. "
  7009. class="worksBox"
  7010. >
  7011. <div
  7012. class="zuoyeYulan"
  7013. v-if="
  7014. worksStudent.length && worksStudent[toolIndex].length > 0
  7015. "
  7016. >
  7017. <div class="worksTop">
  7018. <div>作业预览</div>
  7019. <div
  7020. class="corOpen"
  7021. @click="contract(toolIndex)"
  7022. v-if="
  7023. worksStudent[toolIndex].length > 6 &&
  7024. isCloseList[toolIndex].isClose == 0
  7025. "
  7026. >
  7027. 收缩
  7028. </div>
  7029. <div
  7030. class="corOpen"
  7031. @click="contract(toolIndex)"
  7032. v-if="isCloseList[toolIndex].isClose == 1"
  7033. >
  7034. 展开
  7035. </div>
  7036. </div>
  7037. </div>
  7038. <div
  7039. class="worksDetailBox"
  7040. v-if="
  7041. worksStudent.length && worksStudent[toolIndex].length > 0
  7042. "
  7043. >
  7044. <div
  7045. class="works"
  7046. style="
  7047. width: 200px;
  7048. height: 140px;
  7049. margin: 10px 10px 10px 0;
  7050. border-radius: 15px;
  7051. box-shadow: 0 0 6px 1px #dfdada;
  7052. "
  7053. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7054. ? worksStudent[toolIndex]
  7055. : worksStudent[toolIndex].slice(0, 6)"
  7056. :key="wIndex"
  7057. >
  7058. <!-- @click="previewImg(w.works)" -->
  7059. <div class="workImg">
  7060. <img :src="w.works" @click="previewImg(w.works)" alt />
  7061. <div
  7062. class="answerScore"
  7063. v-if="w.score"
  7064. @click.stop="openScore(w)"
  7065. :class="{
  7066. rightW:
  7067. w.userid == userid || tType == 1 || tType == 4,
  7068. }"
  7069. >
  7070. {{ JSON.parse(w.score).wScore }}分
  7071. </div>
  7072. <div
  7073. class="answerScore"
  7074. @click.stop="openScore(w)"
  7075. v-else-if="courseDetail.userid == userid"
  7076. :class="{
  7077. rightW:
  7078. w.userid == userid || tType == 1 || tType == 4,
  7079. }"
  7080. >
  7081. 评分
  7082. </div>
  7083. <img
  7084. class="deleteImg"
  7085. src="../../assets/deleteworks.png"
  7086. v-if="w.userid == userid || tType == 1 || tType == 4"
  7087. @click.stop="deleteWorks(w.wid)"
  7088. alt
  7089. />
  7090. </div>
  7091. <div class="comment" style="min-width: 200px">
  7092. <div class="worksName">
  7093. <div>{{ w.sName }}</div>
  7094. </div>
  7095. <div class="commentList">
  7096. <div class="commentList">
  7097. <div
  7098. class="commentImg"
  7099. @click="
  7100. isLikes(w.wid, userid, 1, null, w.isLikes)
  7101. "
  7102. >
  7103. <img
  7104. :src="w.isLikes == true ? likes : noLikes"
  7105. alt=""
  7106. />
  7107. </div>
  7108. <div>{{ w.likesCount }}</div>
  7109. </div>
  7110. <div class="commentList" style="margin-right: 15px">
  7111. <div
  7112. class="commentImg"
  7113. @click="commentOther(w, toolIndex, wIndex)"
  7114. >
  7115. <img
  7116. src="../../assets/icon/comment/comment.png"
  7117. alt=""
  7118. />
  7119. </div>
  7120. <div>{{ w.commentCount }}</div>
  7121. </div>
  7122. </div>
  7123. </div>
  7124. </div>
  7125. </div>
  7126. <div class="noWorksS">
  7127. <div
  7128. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7129. :key="sIndex"
  7130. class="noWorksName"
  7131. :class="{ isWork: s.type == '2' }"
  7132. >
  7133. {{ s.student }}
  7134. </div>
  7135. </div>
  7136. </div>
  7137. <div
  7138. v-if="
  7139. tType &&
  7140. ((tType == 2 && sIsOpen == true) ||
  7141. tType == 1 ||
  7142. tType == 4) &&
  7143. tool.tool.indexOf(7) != -1
  7144. "
  7145. class="worksBox"
  7146. >
  7147. <div
  7148. class="zuoyeYulan"
  7149. v-if="
  7150. worksStudent.length && worksStudent[toolIndex].length > 0
  7151. "
  7152. >
  7153. <div class="worksTop">
  7154. <div>作业预览</div>
  7155. <div
  7156. class="corOpen"
  7157. @click="contract(toolIndex)"
  7158. v-if="
  7159. worksStudent[toolIndex].length > 6 &&
  7160. isCloseList[toolIndex].isClose == 0
  7161. "
  7162. >
  7163. 收缩
  7164. </div>
  7165. <div
  7166. class="corOpen"
  7167. @click="contract(toolIndex)"
  7168. v-if="isCloseList[toolIndex].isClose == 1"
  7169. >
  7170. 展开
  7171. </div>
  7172. </div>
  7173. </div>
  7174. <div
  7175. class="worksDetailBox"
  7176. v-if="
  7177. worksStudent.length && worksStudent[toolIndex].length > 0
  7178. "
  7179. >
  7180. <div
  7181. class="works"
  7182. style="
  7183. width: 200px;
  7184. height: 140px;
  7185. margin: 10px 10px 10px 0;
  7186. border-radius: 15px;
  7187. box-shadow: 0 0 6px 1px #dfdada;
  7188. "
  7189. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7190. ? worksStudent[toolIndex]
  7191. : worksStudent[toolIndex].slice(0, 6)"
  7192. :key="wIndex"
  7193. >
  7194. <!-- @click="previewImg(w.works)" -->
  7195. <div class="workImg">
  7196. <img :src="w.works" @click="previewImg(w.works)" alt />
  7197. <div
  7198. class="answerScore"
  7199. v-if="w.score"
  7200. @click.stop="openScore(w)"
  7201. :class="{
  7202. rightW:
  7203. w.userid == userid || tType == 1 || tType == 4,
  7204. }"
  7205. >
  7206. {{ JSON.parse(w.score).wScore }}分
  7207. </div>
  7208. <div
  7209. class="answerScore"
  7210. @click.stop="openScore(w)"
  7211. v-else-if="courseDetail.userid == userid"
  7212. :class="{
  7213. rightW:
  7214. w.userid == userid || tType == 1 || tType == 4,
  7215. }"
  7216. >
  7217. 评分
  7218. </div>
  7219. <img
  7220. class="deleteImg"
  7221. src="../../assets/deleteworks.png"
  7222. v-if="w.userid == userid || tType == 1 || tType == 4"
  7223. @click.stop="deleteWorks(w.wid)"
  7224. alt
  7225. />
  7226. </div>
  7227. <div class="comment" style="min-width: 200px">
  7228. <div class="worksName">
  7229. <div>{{ w.sName }}</div>
  7230. </div>
  7231. <div class="commentList">
  7232. <div class="commentList">
  7233. <div
  7234. class="commentImg"
  7235. @click="
  7236. isLikes(w.wid, userid, 1, null, w.isLikes)
  7237. "
  7238. >
  7239. <img
  7240. :src="w.isLikes == true ? likes : noLikes"
  7241. alt=""
  7242. />
  7243. </div>
  7244. <div>{{ w.likesCount }}</div>
  7245. </div>
  7246. <div class="commentList" style="margin-right: 15px">
  7247. <div
  7248. class="commentImg"
  7249. @click="commentOther(w, toolIndex, wIndex)"
  7250. >
  7251. <img
  7252. src="../../assets/icon/comment/comment.png"
  7253. alt=""
  7254. />
  7255. </div>
  7256. <div>{{ w.commentCount }}</div>
  7257. </div>
  7258. </div>
  7259. </div>
  7260. </div>
  7261. </div>
  7262. <div class="noWorksS">
  7263. <div
  7264. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7265. :key="sIndex"
  7266. class="noWorksName"
  7267. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  7268. :class="{ isWork: s.type == '2' }"
  7269. >
  7270. {{ s.student }}
  7271. </div>
  7272. </div>
  7273. </div>
  7274. <div
  7275. v-if="
  7276. tType &&
  7277. ((tType == 2 && sIsOpen == true) ||
  7278. tType == 1 ||
  7279. tType == 4) &&
  7280. tool.tool.indexOf(26) != -1
  7281. "
  7282. class="worksBox"
  7283. >
  7284. <div
  7285. class="zuoyeYulan"
  7286. v-if="
  7287. worksStudent.length && worksStudent[toolIndex].length > 0
  7288. "
  7289. >
  7290. <div class="worksTop">
  7291. <div>作业预览</div>
  7292. <div
  7293. class="corOpen"
  7294. @click="contract(toolIndex)"
  7295. v-if="
  7296. worksStudent[toolIndex].length > 6 &&
  7297. isCloseList[toolIndex].isClose == 0
  7298. "
  7299. >
  7300. 收缩
  7301. </div>
  7302. <div
  7303. class="corOpen"
  7304. @click="contract(toolIndex)"
  7305. v-if="isCloseList[toolIndex].isClose == 1"
  7306. >
  7307. 展开
  7308. </div>
  7309. </div>
  7310. </div>
  7311. <div
  7312. class="worksDetailBox"
  7313. v-if="
  7314. worksStudent.length && worksStudent[toolIndex].length > 0
  7315. "
  7316. >
  7317. <div
  7318. class="works"
  7319. style="width: 240px; height: 140px; overflow: hidden"
  7320. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7321. ? worksStudent[toolIndex]
  7322. : worksStudent[toolIndex].slice(0, 6)"
  7323. :key="wIndex"
  7324. :class="w.type == 1 ? 'isTypeOne' : ''"
  7325. >
  7326. <div class="workImg" v-if="w.type == 0">
  7327. <img :src="w.works" @click="previewImg(w.works)" alt />
  7328. <img
  7329. class="deleteImg"
  7330. src="../../assets/deleteworks.png"
  7331. v-if="w.userid == userid || tType == 1 || tType == 4"
  7332. @click.stop="deleteWorks(w.wid)"
  7333. alt
  7334. />
  7335. </div>
  7336. <div class="workImg" v-if="w.type == 1">
  7337. <img :src="word" @click="openFile(w.works)" alt />
  7338. <img
  7339. class="deleteImg"
  7340. src="../../assets/deleteworks.png"
  7341. v-if="w.userid == userid || tType == 1 || tType == 4"
  7342. @click.stop="deleteWorks(w.wid)"
  7343. alt
  7344. />
  7345. </div>
  7346. <div class="worksName">
  7347. <div>{{ w.sName }}</div>
  7348. </div>
  7349. </div>
  7350. </div>
  7351. <div class="noWorksS">
  7352. <div
  7353. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7354. :key="sIndex"
  7355. class="noWorksName"
  7356. :class="{ isWork: s.type == '2' }"
  7357. >
  7358. {{ s.student }}
  7359. </div>
  7360. </div>
  7361. </div>
  7362. <div
  7363. v-if="
  7364. tType &&
  7365. ((tType == 2 && sIsOpen == true) ||
  7366. tType == 1 ||
  7367. tType == 4) &&
  7368. tool.tool.indexOf(40) != -1
  7369. "
  7370. class="worksBox"
  7371. >
  7372. <div
  7373. class="zuoyeYulan"
  7374. v-if="
  7375. worksStudent.length && worksStudent[toolIndex].length > 0
  7376. "
  7377. >
  7378. <div class="worksTop">
  7379. <div>作业预览</div>
  7380. <div
  7381. class="corOpen"
  7382. @click="contract(toolIndex)"
  7383. v-if="
  7384. worksStudent[toolIndex].length > 6 &&
  7385. isCloseList[toolIndex].isClose == 0
  7386. "
  7387. >
  7388. 收缩
  7389. </div>
  7390. <div
  7391. class="corOpen"
  7392. @click="contract(toolIndex)"
  7393. v-if="isCloseList[toolIndex].isClose == 1"
  7394. >
  7395. 展开
  7396. </div>
  7397. </div>
  7398. </div>
  7399. <div
  7400. class="worksDetailBox"
  7401. v-if="
  7402. worksStudent.length && worksStudent[toolIndex].length > 0
  7403. "
  7404. >
  7405. <div
  7406. class="works"
  7407. style="
  7408. width: 200px;
  7409. height: 140px;
  7410. margin: 10px 10px 10px 0;
  7411. border-radius: 15px;
  7412. box-shadow: 0 0 6px 1px #dfdada;
  7413. "
  7414. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7415. ? worksStudent[toolIndex]
  7416. : worksStudent[toolIndex].slice(0, 6)"
  7417. :key="wIndex"
  7418. :class="w.type == 1 ? 'isTypeOne' : ''"
  7419. >
  7420. <div class="workImg">
  7421. <img
  7422. src="../../assets/icon/works/noImg.png"
  7423. @click="openPj(w.works, toolIndex)"
  7424. alt
  7425. />
  7426. <img
  7427. class="deleteImg"
  7428. src="../../assets/deleteworks.png"
  7429. v-if="w.userid == userid || tType == 1 || tType == 4"
  7430. @click.stop="deleteWorks(w.wid)"
  7431. alt
  7432. />
  7433. </div>
  7434. <div class="comment" style="min-width: 200px">
  7435. <div class="worksName">
  7436. <div>{{ w.sName }}</div>
  7437. </div>
  7438. <div class="commentList">
  7439. <div class="commentList">
  7440. <div
  7441. class="commentImg"
  7442. @click="
  7443. isLikes(w.wid, userid, 1, null, w.isLikes)
  7444. "
  7445. >
  7446. <img
  7447. :src="w.isLikes == true ? likes : noLikes"
  7448. alt=""
  7449. />
  7450. </div>
  7451. <div>{{ w.likesCount }}</div>
  7452. </div>
  7453. <div class="commentList" style="margin-right: 15px">
  7454. <div
  7455. class="commentImg"
  7456. @click="commentOther(w, toolIndex, wIndex)"
  7457. >
  7458. <img
  7459. src="../../assets/icon/comment/comment.png"
  7460. alt=""
  7461. />
  7462. </div>
  7463. <div>{{ w.commentCount }}</div>
  7464. </div>
  7465. </div>
  7466. </div>
  7467. </div>
  7468. </div>
  7469. <div class="noWorksS">
  7470. <div
  7471. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7472. :key="sIndex"
  7473. class="noWorksName"
  7474. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  7475. :class="{ isWork: s.type == '2' }"
  7476. >
  7477. {{ s.student }}
  7478. </div>
  7479. </div>
  7480. </div>
  7481. <div
  7482. v-if="
  7483. tType &&
  7484. ((tType == 2 && sIsOpen == true) ||
  7485. tType == 1 ||
  7486. tType == 4) &&
  7487. tool.tool.indexOf(41) != -1
  7488. "
  7489. class="worksBox"
  7490. >
  7491. <div class="noWorksS">
  7492. <div
  7493. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7494. :key="sIndex"
  7495. class="noWorksName"
  7496. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  7497. :class="{ isWork: s.type == '2' }"
  7498. >
  7499. {{ s.student }}
  7500. </div>
  7501. </div>
  7502. <div
  7503. class="zuoyeYulan"
  7504. v-if="
  7505. worksStudent.length && worksStudent[toolIndex].length > 0
  7506. "
  7507. >
  7508. <div class="worksTop">
  7509. <div>作业预览</div>
  7510. <div
  7511. class="corOpen"
  7512. @click="contract(toolIndex)"
  7513. v-if="
  7514. worksStudent[toolIndex].length > 6 &&
  7515. isCloseList[toolIndex].isClose == 0
  7516. "
  7517. >
  7518. 收缩
  7519. </div>
  7520. <div
  7521. class="corOpen"
  7522. @click="contract(toolIndex)"
  7523. v-if="isCloseList[toolIndex].isClose == 1"
  7524. >
  7525. 展开
  7526. </div>
  7527. </div>
  7528. </div>
  7529. <div
  7530. class="worksDetailBox"
  7531. v-if="
  7532. worksStudent.length && worksStudent[toolIndex].length > 0
  7533. "
  7534. >
  7535. <div
  7536. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7537. ? worksStudent[toolIndex]
  7538. : worksStudent[toolIndex].slice(0, 6)"
  7539. :key="wIndex"
  7540. class="isWorksName2"
  7541. @click="openXz(w, toolIndex)"
  7542. >
  7543. {{ w.sName }}
  7544. <img
  7545. class="deleteImg deleteImg2"
  7546. src="../../assets/deleteworks.png"
  7547. v-if="w.userid == userid || tType == 1 || tType == 4"
  7548. @click.stop="deleteWorks(w.wid)"
  7549. alt
  7550. />
  7551. </div>
  7552. </div>
  7553. </div>
  7554. <div
  7555. v-if="
  7556. tType &&
  7557. ((tType == 2 && sIsOpen == true) ||
  7558. tType == 1 ||
  7559. tType == 4) &&
  7560. tool.tool.indexOf(47) != -1
  7561. "
  7562. class="worksBox"
  7563. >
  7564. <div class="noWorksS">
  7565. <div
  7566. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7567. :key="sIndex"
  7568. class="noWorksName"
  7569. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  7570. :class="{ isWork: s.type == '2' }"
  7571. >
  7572. {{ s.student }}
  7573. </div>
  7574. </div>
  7575. <div
  7576. class="zuoyeYulan"
  7577. v-if="
  7578. worksStudent.length && worksStudent[toolIndex].length > 0
  7579. "
  7580. >
  7581. <div class="worksTop">
  7582. <div>作业预览</div>
  7583. <div
  7584. class="corOpen"
  7585. @click="contract(toolIndex)"
  7586. v-if="
  7587. worksStudent[toolIndex].length > 6 &&
  7588. isCloseList[toolIndex].isClose == 0
  7589. "
  7590. >
  7591. 收缩
  7592. </div>
  7593. <div
  7594. class="corOpen"
  7595. @click="contract(toolIndex)"
  7596. v-if="isCloseList[toolIndex].isClose == 1"
  7597. >
  7598. 展开
  7599. </div>
  7600. </div>
  7601. </div>
  7602. <div
  7603. class="worksDetailBox"
  7604. v-if="
  7605. worksStudent.length && worksStudent[toolIndex].length > 0
  7606. "
  7607. >
  7608. <!-- @click="openXz(w, toolIndex)" -->
  7609. <div
  7610. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7611. ? worksStudent[toolIndex]
  7612. : worksStudent[toolIndex].slice(0, 6)"
  7613. :key="wIndex"
  7614. class="isWorksName2"
  7615. @click="openSen(w, toolIndex)"
  7616. >
  7617. {{ w.sName }}
  7618. <img
  7619. class="deleteImg deleteImg2"
  7620. src="../../assets/deleteworks.png"
  7621. v-if="w.userid == userid || tType == 1 || tType == 4"
  7622. @click.stop="deleteWorks(w.wid)"
  7623. alt
  7624. />
  7625. </div>
  7626. </div>
  7627. </div>
  7628. <div
  7629. v-if="
  7630. tType &&
  7631. ((tType == 2 && sIsOpen == true) ||
  7632. tType == 1 ||
  7633. tType == 4) &&
  7634. tool.tool.indexOf(48) != -1
  7635. "
  7636. class="worksBox"
  7637. >
  7638. <div
  7639. class="zuoyeYulan"
  7640. v-if="
  7641. worksStudent.length && worksStudent[toolIndex].length > 0
  7642. "
  7643. >
  7644. <div class="worksTop">
  7645. <div>作业预览</div>
  7646. <div
  7647. class="corOpen"
  7648. @click="contract(toolIndex)"
  7649. v-if="
  7650. worksStudent[toolIndex].length > 6 &&
  7651. isCloseList[toolIndex].isClose == 0
  7652. "
  7653. >
  7654. 收缩
  7655. </div>
  7656. <div
  7657. class="corOpen"
  7658. @click="contract(toolIndex)"
  7659. v-if="isCloseList[toolIndex].isClose == 1"
  7660. >
  7661. 展开
  7662. </div>
  7663. </div>
  7664. </div>
  7665. <div
  7666. class="worksDetailBox"
  7667. v-if="
  7668. worksStudent.length && worksStudent[toolIndex].length > 0
  7669. "
  7670. >
  7671. <div
  7672. class="works"
  7673. style="
  7674. width: 200px;
  7675. height: 140px;
  7676. margin: 10px 10px 10px 0;
  7677. border-radius: 15px;
  7678. box-shadow: 0 0 6px 1px #dfdada;
  7679. "
  7680. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7681. ? worksStudent[toolIndex]
  7682. : worksStudent[toolIndex].slice(0, 6)"
  7683. :key="wIndex"
  7684. :class="w.type == 1 ? 'isTypeOne' : ''"
  7685. >
  7686. <div class="workImg">
  7687. <img :src="word" @click="openTable(w)" alt />
  7688. <!-- @click="openFile(w.works)" -->
  7689. <div
  7690. class="answerScore"
  7691. v-if="w.score"
  7692. @click.stop="openScore(w)"
  7693. :class="{
  7694. rightW:
  7695. w.userid == userid ||
  7696. tType == 1 ||
  7697. tType == 4 ||
  7698. w.ateacher == userid,
  7699. }"
  7700. >
  7701. {{ JSON.parse(w.score).wScore }}分
  7702. </div>
  7703. <div
  7704. class="answerScore"
  7705. @click.stop="openScore(w)"
  7706. v-else-if="courseDetail.userid == userid"
  7707. :class="{
  7708. rightW:
  7709. w.userid == userid ||
  7710. tType == 1 ||
  7711. tType == 4 ||
  7712. w.ateacher == userid,
  7713. }"
  7714. >
  7715. 评分
  7716. </div>
  7717. <img
  7718. class="deleteImg"
  7719. src="../../assets/deleteworks.png"
  7720. v-if="w.userid == userid || tType == 1 || tType == 4"
  7721. @click.stop="deleteWorks(w.wid)"
  7722. alt
  7723. />
  7724. </div>
  7725. <div class="comment" style="min-width: 200px">
  7726. <div class="worksName">
  7727. <div>{{ w.sName }}</div>
  7728. </div>
  7729. <div class="commentList">
  7730. <div class="commentList">
  7731. <div
  7732. class="commentImg"
  7733. @click="
  7734. isLikes(w.wid, userid, 1, null, w.isLikes)
  7735. "
  7736. >
  7737. <img
  7738. :src="w.isLikes == true ? likes : noLikes"
  7739. alt=""
  7740. />
  7741. </div>
  7742. <div>{{ w.likesCount }}</div>
  7743. </div>
  7744. <div class="commentList" style="margin-right: 15px">
  7745. <div
  7746. class="commentImg"
  7747. @click="commentOther(w, toolIndex, wIndex)"
  7748. >
  7749. <img
  7750. src="../../assets/icon/comment/comment.png"
  7751. alt=""
  7752. />
  7753. </div>
  7754. <div>{{ w.commentCount }}</div>
  7755. </div>
  7756. </div>
  7757. </div>
  7758. </div>
  7759. </div>
  7760. <div class="noWorksS">
  7761. <div
  7762. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7763. :key="sIndex"
  7764. class="noWorksName"
  7765. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  7766. :class="{ isWork: s.type == '2' }"
  7767. >
  7768. {{ s.student }}
  7769. </div>
  7770. </div>
  7771. </div>
  7772. <div
  7773. v-if="
  7774. tType &&
  7775. ((tType == 2 && sIsOpen == true) ||
  7776. tType == 1 ||
  7777. tType == 4) &&
  7778. tool.tool.indexOf(52) != -1
  7779. "
  7780. class="worksBox"
  7781. >
  7782. <div
  7783. class="zuoyeYulan"
  7784. v-if="
  7785. worksStudent.length && worksStudent[toolIndex].length > 0
  7786. "
  7787. >
  7788. <div class="worksTop">
  7789. <div>作业预览</div>
  7790. <div
  7791. class="corOpen"
  7792. @click="contract(toolIndex)"
  7793. v-if="
  7794. worksStudent[toolIndex].length > 6 &&
  7795. isCloseList[toolIndex].isClose == 0
  7796. "
  7797. >
  7798. 收缩
  7799. </div>
  7800. <div
  7801. class="corOpen"
  7802. @click="contract(toolIndex)"
  7803. v-if="isCloseList[toolIndex].isClose == 1"
  7804. >
  7805. 展开
  7806. </div>
  7807. </div>
  7808. </div>
  7809. <div
  7810. class="worksDetailBox"
  7811. v-if="
  7812. worksStudent.length && worksStudent[toolIndex].length > 0
  7813. "
  7814. >
  7815. <div
  7816. class="works"
  7817. style="
  7818. width: 200px;
  7819. height: 140px;
  7820. margin: 10px 10px 10px 0;
  7821. border-radius: 15px;
  7822. box-shadow: 0 0 6px 1px #dfdada;
  7823. "
  7824. v-for="(w, wIndex) in isCloseList[toolIndex].isClose == 0
  7825. ? worksStudent[toolIndex]
  7826. : worksStudent[toolIndex].slice(0, 6)"
  7827. :key="wIndex"
  7828. :class="w.type == 1 ? 'isTypeOne' : ''"
  7829. >
  7830. <div class="workImg">
  7831. <img :src="word" @click="openWord(w)" alt />
  7832. <!-- @click="openFile(w.works)" -->
  7833. <div
  7834. class="answerScore"
  7835. v-if="w.score"
  7836. @click.stop="openScore(w)"
  7837. :class="{
  7838. rightW:
  7839. w.userid == userid ||
  7840. tType == 1 ||
  7841. tType == 4 ||
  7842. w.ateacher == userid,
  7843. }"
  7844. >
  7845. {{ JSON.parse(w.score).wScore }}分
  7846. </div>
  7847. <div
  7848. class="answerScore"
  7849. @click.stop="openScore(w)"
  7850. v-else-if="courseDetail.userid == userid"
  7851. :class="{
  7852. rightW:
  7853. w.userid == userid ||
  7854. tType == 1 ||
  7855. tType == 4 ||
  7856. w.ateacher == userid,
  7857. }"
  7858. >
  7859. 评分
  7860. </div>
  7861. <img
  7862. class="deleteImg"
  7863. src="../../assets/deleteworks.png"
  7864. v-if="w.userid == userid || tType == 1 || tType == 4"
  7865. @click.stop="deleteWorks(w.wid)"
  7866. alt
  7867. />
  7868. </div>
  7869. <div class="comment" style="min-width: 200px">
  7870. <div class="worksName">
  7871. <div>{{ w.sName }}</div>
  7872. </div>
  7873. <div class="commentList">
  7874. <div class="commentList">
  7875. <div
  7876. class="commentImg"
  7877. @click="
  7878. isLikes(w.wid, userid, 1, null, w.isLikes)
  7879. "
  7880. >
  7881. <img
  7882. :src="w.isLikes == true ? likes : noLikes"
  7883. alt=""
  7884. />
  7885. </div>
  7886. <div>{{ w.likesCount }}</div>
  7887. </div>
  7888. <div class="commentList" style="margin-right: 15px">
  7889. <div
  7890. class="commentImg"
  7891. @click="commentOther(w, toolIndex, wIndex)"
  7892. >
  7893. <img
  7894. src="../../assets/icon/comment/comment.png"
  7895. alt=""
  7896. />
  7897. </div>
  7898. <div>{{ w.commentCount }}</div>
  7899. </div>
  7900. </div>
  7901. </div>
  7902. </div>
  7903. </div>
  7904. <div class="noWorksS">
  7905. <div
  7906. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7907. :key="sIndex"
  7908. class="noWorksName"
  7909. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7910. :class="{ isWork: s.type == '2' }"
  7911. >
  7912. {{ s.student }}
  7913. </div>
  7914. </div>
  7915. </div>
  7916. </div>
  7917. </div>
  7918. <div class="vedioBox" style="margin-top: 10px" v-if="false">
  7919. <div
  7920. class="queTop"
  7921. style="
  7922. font-size: 20px;
  7923. padding: 15px 0 15px 30px;
  7924. font-weight: bold;
  7925. "
  7926. >
  7927. 评一评
  7928. </div>
  7929. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7930. <div class="elist_input">
  7931. <div
  7932. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7933. .chapterInfo[0].taskJson[taskCount].eList"
  7934. :key="eIndex"
  7935. class="elist_input_box"
  7936. >
  7937. <div style="width: 95%">
  7938. <div
  7939. style="
  7940. display: flex;
  7941. flex-direction: row;
  7942. flex-wrap: nowrap;
  7943. align-items: center;
  7944. "
  7945. >
  7946. <div style="max-width: calc(100% - 285px)">
  7947. <span>{{ eItem.value }}</span>
  7948. </div>
  7949. <div
  7950. style="
  7951. padding-left: 25px;
  7952. display: flex;
  7953. flex-direction: row;
  7954. align-items: center;
  7955. "
  7956. >
  7957. <el-rate
  7958. v-model="eItem.score"
  7959. :colors="colors"
  7960. disabled
  7961. ></el-rate>
  7962. </div>
  7963. </div>
  7964. <div class="elist_inptu_text" style="padding-left: 10px">
  7965. <span v-if="eItem.detail != ''">{{
  7966. eItem.detail
  7967. }}</span>
  7968. <span v-else style="color: #b2b1b3; font-size: 14px"
  7969. >暂无描述...</span
  7970. >
  7971. </div>
  7972. </div>
  7973. </div>
  7974. </div>
  7975. <div
  7976. v-if="evalua"
  7977. style="
  7978. border: 1px solid #e5e5e5;
  7979. max-width: 650px;
  7980. width: 100%;
  7981. margin-top: 20px;
  7982. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7983. "
  7984. >
  7985. <div class="e_add_top">
  7986. <div class="e_add_title">
  7987. <span>目标管理名称</span>
  7988. <span>{{ eTitle }}</span>
  7989. <img
  7990. src="../../assets/line.png"
  7991. class="cru_line"
  7992. style="
  7993. width: 125px;
  7994. height: 20px;
  7995. bottom: -10px;
  7996. left: 120px;
  7997. "
  7998. />
  7999. <!-- <el-input
  8000. v-model="eTitle"
  8001. placeholder="请输入名称"
  8002. @change="setMindData"
  8003. ></el-input>-->
  8004. </div>
  8005. </div>
  8006. <div class="e_add_content">
  8007. <div class="e_add_list_pbox">
  8008. <div class="e_add_list_pbox_title">
  8009. <span class="type_title">切换模式</span>
  8010. <div class="type_content">
  8011. <span
  8012. :class="{ active: typeMode == 1 }"
  8013. @click="typeMode = 1"
  8014. >目标树</span
  8015. >
  8016. <span
  8017. :class="{ active: typeMode == 2 }"
  8018. @click="typeMode = 2"
  8019. >目标罗盘</span
  8020. >
  8021. <span
  8022. :class="{ active: typeMode == 3 }"
  8023. @click="typeMode = 3"
  8024. >目标看板</span
  8025. >
  8026. </div>
  8027. </div>
  8028. <div class="e_add_list_pbox_content">
  8029. <Mind
  8030. :showBar="false"
  8031. :mindData="data"
  8032. style="width: 100%"
  8033. v-show="typeMode == 1"
  8034. ></Mind>
  8035. <Sunburst
  8036. :Josn="eJson"
  8037. :num="eJSONNum"
  8038. style="width: 100%"
  8039. v-if="typeMode == 2"
  8040. ></Sunburst>
  8041. <SeeBoard
  8042. :Josn="eJson"
  8043. :num="eJSONNum"
  8044. :ename="eTitle"
  8045. style="width: 100%"
  8046. v-if="typeMode == 3"
  8047. >
  8048. </SeeBoard>
  8049. </div>
  8050. </div>
  8051. </div>
  8052. </div>
  8053. </div>
  8054. </div>
  8055. </div>
  8056. <!-- <div
  8057. class="vedioBox"
  8058. style="margin-top: 10px"
  8059. v-if="
  8060. courseDetail.userid == userid ||
  8061. (courseDetail.course_teacher &&
  8062. courseDetail.course_teacher.indexOf(userid) != -1)
  8063. "
  8064. :style="{
  8065. borderRadius:
  8066. !(
  8067. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8068. .toolChoose[0].tool &&
  8069. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8070. .toolChoose[0].tool.length > 0
  8071. ) &&
  8072. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8073. .taskDetail == '' &&
  8074. vChapterData[0].length == 0 &&
  8075. fileC[0].length == 0
  8076. ? '0 0 20px 20px'
  8077. : '20px',
  8078. }"
  8079. >
  8080. <div
  8081. class="queTop"
  8082. @click="isClose = !isClose"
  8083. style="padding: 15px 0 15px 37px; justify-content: space-between"
  8084. >
  8085. <div class="queTopTitle">新增工具</div>
  8086. <div class="queTopRight">
  8087. <div class="queTopClose" v-if="isClose == 0">
  8088. 展开
  8089. <div class="closeImg">
  8090. <img src="../../assets/icon/newIcon/close.png" alt="" />
  8091. </div>
  8092. </div>
  8093. <div class="queTopClose" v-if="isClose == 1">
  8094. 收缩
  8095. <div class="openImg">
  8096. <img src="../../assets/icon/newIcon/open.png" alt="" />
  8097. </div>
  8098. </div>
  8099. <el-button
  8100. style="margin: 0 30px 0 auto"
  8101. type="primary"
  8102. size="small"
  8103. v-if="isClose == 1 && checktoolArray.length > 0"
  8104. @click.stop="addToolChoose"
  8105. >确定</el-button
  8106. >
  8107. </div>
  8108. </div>
  8109. <div
  8110. class="tool_work_box"
  8111. :style="isClose == 0 ? 'display:none' : 'display:block'"
  8112. >
  8113. <div class="tool_box">
  8114. <div class="tool_type_box">
  8115. <div class="chooseWho">
  8116. <div
  8117. :class="toolType == 0 ? 'isChooseActive' : ''"
  8118. @click="(toolType = 0), $forceUpdate()"
  8119. >
  8120. 互动类
  8121. </div>
  8122. <div
  8123. :class="toolType == 1 ? 'isChooseActive' : ''"
  8124. @click="(toolType = 1), $forceUpdate()"
  8125. >
  8126. 思维类
  8127. </div>
  8128. <div
  8129. :class="toolType == 2 ? 'isChooseActive' : ''"
  8130. @click="(toolType = 2), $forceUpdate()"
  8131. >
  8132. 测评类
  8133. </div>
  8134. <div
  8135. :class="toolType == 3 ? 'isChooseActive' : ''"
  8136. @click="(toolType = 3), $forceUpdate()"
  8137. >
  8138. 编程类
  8139. </div>
  8140. <div
  8141. :class="toolType == 5 ? 'isChooseActive' : ''"
  8142. @click="(toolType = 5), $forceUpdate()"
  8143. >
  8144. 学科类
  8145. </div>
  8146. </div>
  8147. </div>
  8148. <div>
  8149. <div class="toolSort" v-if="toolType == 0">
  8150. <div class="tool">
  8151. <div class="whiteBIcon" @click="addTools2(10)">
  8152. <img
  8153. src="../../assets/icon/thirdToolList/time.png"
  8154. alt
  8155. />
  8156. <div style="margin: 5px 0">倒计时</div>
  8157. </div>
  8158. <div class="check" @click="addTools2(10)">
  8159. <img
  8160. src="../../assets/icon/checkNo.png"
  8161. alt
  8162. v-if="checktoolArray.indexOf(10) == -1"
  8163. />
  8164. <div class="checkDiv" v-else>
  8165. <img src="../../assets/icon/checkedIs.png" alt /><span
  8166. >已选择</span
  8167. >
  8168. </div>
  8169. </div>
  8170. </div>
  8171. <div class="tool">
  8172. <div class="whiteBIcon" @click="addTools2(65)">
  8173. <img
  8174. src="../../assets/icon/firstToolList/pickPeople.png"
  8175. alt
  8176. />
  8177. <div style="margin: 5px 0">挑人</div>
  8178. </div>
  8179. <div class="check" @click="addTools2(65)">
  8180. <img
  8181. src="../../assets/icon/checkNo.png"
  8182. alt
  8183. v-if="checktoolArray.indexOf(65) == -1"
  8184. />
  8185. <div class="checkDiv" v-else>
  8186. <img src="../../assets/icon/checkedIs.png" alt /><span
  8187. >已选择</span
  8188. >
  8189. </div>
  8190. </div>
  8191. </div>
  8192. </div>
  8193. <div class="toolSort" v-if="toolType == 1">
  8194. <div class="tool">
  8195. <div class="whiteBIcon" @click="addTools2(7)">
  8196. <img
  8197. src="../../assets/icon/secondToolList/mindNetwork.png"
  8198. alt
  8199. />
  8200. <div style="margin: 5px 0">思维网格</div>
  8201. </div>
  8202. <div class="check" @click="addTools2(7)">
  8203. <img
  8204. src="../../assets/icon/checkNo.png"
  8205. alt
  8206. v-if="checktoolArray.indexOf(7) == -1"
  8207. />
  8208. <div class="checkDiv" v-else>
  8209. <img src="../../assets/icon/checkedIs.png" alt /><span
  8210. >已选择</span
  8211. >
  8212. </div>
  8213. </div>
  8214. </div>
  8215. <div class="tool">
  8216. <div class="whiteBIcon" @click="addTools2(1)">
  8217. <img
  8218. src="../../assets/icon/secondToolList/whiteBoard.png"
  8219. alt
  8220. />
  8221. <div style="margin: 5px 0">电子白板</div>
  8222. </div>
  8223. <div class="check" @click="addTools2(1)">
  8224. <img
  8225. src="../../assets/icon/checkNo.png"
  8226. alt
  8227. v-if="checktoolArray.indexOf(1) == -1"
  8228. />
  8229. <div class="checkDiv" v-else>
  8230. <img src="../../assets/icon/checkedIs.png" alt /><span
  8231. >已选择</span
  8232. >
  8233. </div>
  8234. </div>
  8235. </div>
  8236. <div class="tool">
  8237. <div class="whiteBIcon" @click="addTools2(52)">
  8238. <img
  8239. src="../../assets/icon/fourthToolList/text.png"
  8240. alt
  8241. />
  8242. <div style="margin: 5px 0">文档</div>
  8243. </div>
  8244. <div class="check" @click="addTools2(52)">
  8245. <img
  8246. src="../../assets/icon/checkNo.png"
  8247. alt
  8248. v-if="checktoolArray.indexOf(52) == -1"
  8249. />
  8250. <div class="checkDiv" v-else>
  8251. <img src="../../assets/icon/checkedIs.png" alt /><span
  8252. >已选择</span
  8253. >
  8254. </div>
  8255. </div>
  8256. </div>
  8257. <div class="tool">
  8258. <div class="whiteBIcon" @click="addTools2(3)">
  8259. <img
  8260. src="../../assets/icon/secondToolList/mindMapping.png"
  8261. alt
  8262. />
  8263. <div style="margin: 5px 0">思维导图</div>
  8264. </div>
  8265. <div class="check" @click="addTools2(3)">
  8266. <img
  8267. src="../../assets/icon/checkNo.png"
  8268. alt
  8269. v-if="checktoolArray.indexOf(3) == -1"
  8270. />
  8271. <div class="checkDiv" v-else>
  8272. <img src="../../assets/icon/checkedIs.png" alt /><span
  8273. >已选择</span
  8274. >
  8275. </div>
  8276. </div>
  8277. </div>
  8278. <div class="tool">
  8279. <div class="whiteBIcon" @click="addTools2(48)">
  8280. <img
  8281. src="../../assets/icon/fourthToolList/table.png"
  8282. alt
  8283. />
  8284. <div style="margin: 5px 0">表格</div>
  8285. </div>
  8286. <div class="check" @click="addTools2(48)">
  8287. <img
  8288. src="../../assets/icon/checkNo.png"
  8289. alt
  8290. v-if="checktoolArray.indexOf(48) == -1"
  8291. />
  8292. <div class="checkDiv" v-else>
  8293. <img src="../../assets/icon/checkedIs.png" alt /><span
  8294. >已选择</span
  8295. >
  8296. </div>
  8297. </div>
  8298. </div>
  8299. </div>
  8300. <div class="toolSort" v-if="toolType == 6">
  8301. <div v-show="tooC == 49">
  8302. <img
  8303. @click="addTools(tooC, toolIndex, taskCount)"
  8304. src="../../assets/icon/fourthToolList/group.png"
  8305. alt
  8306. />
  8307. <div style="margin: 5px 0">学生分组</div>
  8308. </div>
  8309. </div>
  8310. <div class="toolSort" v-if="toolType == 2">
  8311. <div class="tool">
  8312. <div class="whiteBIcon" @click="addTools2(16)">
  8313. <img
  8314. src="../../assets/icon/thirdToolList/work.png"
  8315. alt
  8316. />
  8317. <div style="margin: 5px 0">作业提交</div>
  8318. </div>
  8319. <div class="check" @click="addTools2(16)">
  8320. <img
  8321. src="../../assets/icon/checkNo.png"
  8322. alt
  8323. v-if="checktoolArray.indexOf(16) == -1"
  8324. />
  8325. <div class="checkDiv" v-else>
  8326. <img src="../../assets/icon/checkedIs.png" alt /><span
  8327. >已选择</span
  8328. >
  8329. </div>
  8330. </div>
  8331. </div>
  8332. <div class="tool">
  8333. <div class="whiteBIcon" @click="addTools2(50)">
  8334. <img
  8335. src="../../assets/icon/thirdToolList/plwork.png"
  8336. alt
  8337. />
  8338. <div style="margin: 5px 0">批量上传</div>
  8339. </div>
  8340. <div class="check" @click="addTools2(50)">
  8341. <img
  8342. src="../../assets/icon/checkNo.png"
  8343. alt
  8344. v-if="checktoolArray.indexOf(50) == -1"
  8345. />
  8346. <div class="checkDiv" v-else>
  8347. <img src="../../assets/icon/checkedIs.png" alt /><span
  8348. >已选择</span
  8349. >
  8350. </div>
  8351. </div>
  8352. </div>
  8353. </div>
  8354. <div class="toolSort" v-if="toolType == 3">
  8355. <div class="tool">
  8356. <div class="whiteBIcon" @click="addTools2(18)">
  8357. <img
  8358. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8359. alt
  8360. />
  8361. <div style="margin: 5px 0">训练平台</div>
  8362. </div>
  8363. <div class="check" @click="addTools2(18)">
  8364. <img
  8365. src="../../assets/icon/checkNo.png"
  8366. alt
  8367. v-if="checktoolArray.indexOf(18) == -1"
  8368. />
  8369. <div class="checkDiv" v-else>
  8370. <img src="../../assets/icon/checkedIs.png" alt /><span
  8371. >已选择</span
  8372. >
  8373. </div>
  8374. </div>
  8375. </div>
  8376. <div class="tool">
  8377. <div class="whiteBIcon" @click="addTools2(21)">
  8378. <img
  8379. src="../../assets/icon/fourthToolList/program.png"
  8380. alt
  8381. />
  8382. <div style="margin: 5px 0">AIoT Blockly</div>
  8383. </div>
  8384. <div class="check" @click="addTools2(21)">
  8385. <img
  8386. src="../../assets/icon/checkNo.png"
  8387. alt
  8388. v-if="checktoolArray.indexOf(21) == -1"
  8389. />
  8390. <div class="checkDiv" v-else>
  8391. <img src="../../assets/icon/checkedIs.png" alt /><span
  8392. >已选择</span
  8393. >
  8394. </div>
  8395. </div>
  8396. </div>
  8397. <div class="tool">
  8398. <div class="whiteBIcon" @click="addTools2(23)">
  8399. <img
  8400. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8401. alt
  8402. />
  8403. <div style="margin: 5px 0">AI Python</div>
  8404. </div>
  8405. <div class="check" @click="addTools2(23)">
  8406. <img
  8407. src="../../assets/icon/checkNo.png"
  8408. alt
  8409. v-if="checktoolArray.indexOf(23) == -1"
  8410. />
  8411. <div class="checkDiv" v-else>
  8412. <img src="../../assets/icon/checkedIs.png" alt /><span
  8413. >已选择</span
  8414. >
  8415. </div>
  8416. </div>
  8417. </div>
  8418. <div class="tool">
  8419. <div class="whiteBIcon" @click="addTools2(24)">
  8420. <img
  8421. src="../../assets/icon/fourthToolList/AIprogram.png"
  8422. alt
  8423. />
  8424. <div style="margin: 5px 0">AI Blockly</div>
  8425. </div>
  8426. <div class="check" @click="addTools2(24)">
  8427. <img
  8428. src="../../assets/icon/checkNo.png"
  8429. alt
  8430. v-if="checktoolArray.indexOf(24) == -1"
  8431. />
  8432. <div class="checkDiv" v-else>
  8433. <img src="../../assets/icon/checkedIs.png" alt /><span
  8434. >已选择</span
  8435. >
  8436. </div>
  8437. </div>
  8438. </div>
  8439. <div class="tool">
  8440. <div class="whiteBIcon" @click="addTools2(32)">
  8441. <img
  8442. src="../../assets/icon/thirdToolList/code.png"
  8443. alt
  8444. />
  8445. <div style="margin: 5px 0">源码编辑</div>
  8446. </div>
  8447. <div class="check" @click="addTools2(32)">
  8448. <img
  8449. src="../../assets/icon/checkNo.png"
  8450. alt
  8451. v-if="checktoolArray.indexOf(32) == -1"
  8452. />
  8453. <div class="checkDiv" v-else>
  8454. <img src="../../assets/icon/checkedIs.png" alt /><span
  8455. >已选择</span
  8456. >
  8457. </div>
  8458. </div>
  8459. </div>
  8460. <div class="tool">
  8461. <div class="whiteBIcon" @click="addTools2(57)">
  8462. <img
  8463. src="../../assets/icon/fourthToolList/cocopi.png"
  8464. alt
  8465. />
  8466. <div style="margin: 5px 0">CocoPi</div>
  8467. </div>
  8468. <div class="check" @click="addTools2(57)">
  8469. <img
  8470. src="../../assets/icon/checkNo.png"
  8471. alt
  8472. v-if="checktoolArray.indexOf(57) == -1"
  8473. />
  8474. <div class="checkDiv" v-else>
  8475. <img src="../../assets/icon/checkedIs.png" alt /><span
  8476. >已选择</span
  8477. >
  8478. </div>
  8479. </div>
  8480. </div>
  8481. <div class="tool">
  8482. <div class="whiteBIcon" @click="addTools2(63)">
  8483. <img
  8484. src="../../assets/icon/fourthToolList/Wood.png"
  8485. alt
  8486. />
  8487. <div style="margin: 5px 0">海龟编程</div>
  8488. </div>
  8489. <div class="check" @click="addTools2(63)">
  8490. <img
  8491. src="../../assets/icon/checkNo.png"
  8492. alt
  8493. v-if="checktoolArray.indexOf(63) == -1"
  8494. />
  8495. <div class="checkDiv" v-else>
  8496. <img src="../../assets/icon/checkedIs.png" alt /><span
  8497. >已选择</span
  8498. >
  8499. </div>
  8500. </div>
  8501. </div>
  8502. </div>
  8503. <div class="toolSort" v-if="toolType == 7">
  8504. <div class="tool">
  8505. <div class="whiteBIcon" @click="addTools2(40)">
  8506. <img
  8507. src="../../assets/icon/secondToolList/eval.png"
  8508. alt
  8509. />
  8510. <div style="margin: 5px 0">个人评价</div>
  8511. </div>
  8512. <div class="check" @click="addTools2(40)">
  8513. <img
  8514. src="../../assets/icon/checkNo.png"
  8515. alt
  8516. v-if="checktoolArray.indexOf(40) == -1"
  8517. />
  8518. <div class="checkDiv" v-else>
  8519. <img src="../../assets/icon/checkedIs.png" alt /><span
  8520. >已选择</span
  8521. >
  8522. </div>
  8523. </div>
  8524. </div>
  8525. </div>
  8526. <div class="toolSort" v-if="toolType == 5">
  8527. <div class="tool">
  8528. <div class="whiteBIcon" @click="addTools2(28)">
  8529. <img
  8530. src="../../assets/icon/secondToolList/translation.png"
  8531. alt
  8532. />
  8533. <div style="margin: 5px 0">翻译</div>
  8534. </div>
  8535. <div class="check" @click="addTools2(28)">
  8536. <img
  8537. src="../../assets/icon/checkNo.png"
  8538. alt
  8539. v-if="checktoolArray.indexOf(28) == -1"
  8540. />
  8541. <div class="checkDiv" v-else>
  8542. <img src="../../assets/icon/checkedIs.png" alt /><span
  8543. >已选择</span
  8544. >
  8545. </div>
  8546. </div>
  8547. </div>
  8548. <div class="tool">
  8549. <div class="whiteBIcon" @click="addTools2(31)">
  8550. <img
  8551. src="../../assets/icon/secondToolList/networkPanel.png"
  8552. alt
  8553. />
  8554. <div style="margin: 5px 0">数字画板</div>
  8555. </div>
  8556. <div class="check" @click="addTools2(31)">
  8557. <img
  8558. src="../../assets/icon/checkNo.png"
  8559. alt
  8560. v-if="checktoolArray.indexOf(31) == -1"
  8561. />
  8562. <div class="checkDiv" v-else>
  8563. <img src="../../assets/icon/checkedIs.png" alt /><span
  8564. >已选择</span
  8565. >
  8566. </div>
  8567. </div>
  8568. </div>
  8569. <div class="tool">
  8570. <div class="whiteBIcon" @click="addTools2(39)">
  8571. <img
  8572. src="../../assets/icon/secondToolList/GeoGebra.png"
  8573. alt
  8574. />
  8575. <div style="margin: 5px 0">GeoGebra</div>
  8576. </div>
  8577. <div class="check" @click="addTools2(39)">
  8578. <img
  8579. src="../../assets/icon/checkNo.png"
  8580. alt
  8581. v-if="checktoolArray.indexOf(39) == -1"
  8582. />
  8583. <div class="checkDiv" v-else>
  8584. <img src="../../assets/icon/checkedIs.png" alt /><span
  8585. >已选择</span
  8586. >
  8587. </div>
  8588. </div>
  8589. </div>
  8590. <div class="tool">
  8591. <div class="whiteBIcon" @click="addTools2(66)">
  8592. <img
  8593. src="../../assets/icon/secondToolList/formulaEdi.png"
  8594. alt
  8595. />
  8596. <div style="margin: 5px 0">公式编辑</div>
  8597. </div>
  8598. <div class="check" @click="addTools2(66)">
  8599. <img
  8600. src="../../assets/icon/checkNo.png"
  8601. alt
  8602. v-if="checktoolArray.indexOf(66) == -1"
  8603. />
  8604. <div class="checkDiv" v-else>
  8605. <img src="../../assets/icon/checkedIs.png" alt /><span
  8606. >已选择</span
  8607. >
  8608. </div>
  8609. </div>
  8610. </div>
  8611. <div class="tool">
  8612. <div class="whiteBIcon" @click="addTools2(67)">
  8613. <img
  8614. src="../../assets/icon/secondToolList/molStr.png"
  8615. alt
  8616. />
  8617. <div style="margin: 5px 0">分子结构</div>
  8618. </div>
  8619. <div class="check" @click="addTools2(67)">
  8620. <img
  8621. src="../../assets/icon/checkNo.png"
  8622. alt
  8623. v-if="checktoolArray.indexOf(67) == -1"
  8624. />
  8625. <div class="checkDiv" v-else>
  8626. <img src="../../assets/icon/checkedIs.png" alt /><span
  8627. >已选择</span
  8628. >
  8629. </div>
  8630. </div>
  8631. </div>
  8632. <div class="tool">
  8633. <div class="whiteBIcon" @click="addTools2(68)">
  8634. <img
  8635. src="../../assets/icon/secondToolList/timeAxis.png"
  8636. alt
  8637. />
  8638. <div style="margin: 5px 0">时间轴</div>
  8639. </div>
  8640. <div class="check" @click="addTools2(68)">
  8641. <img
  8642. src="../../assets/icon/checkNo.png"
  8643. alt
  8644. v-if="checktoolArray.indexOf(68) == -1"
  8645. />
  8646. <div class="checkDiv" v-else>
  8647. <img src="../../assets/icon/checkedIs.png" alt /><span
  8648. >已选择</span
  8649. >
  8650. </div>
  8651. </div>
  8652. </div>
  8653. </div>
  8654. <div class="toolSort" v-if="toolType == 4">
  8655. <div class="tool">
  8656. <div class="whiteBIcon" @click="addTools2(26)">
  8657. <img
  8658. src="../../assets/icon/thirdToolList/courseDesign.png"
  8659. alt
  8660. />
  8661. <div style="margin: 5px 0">课程设计</div>
  8662. </div>
  8663. <div class="check" @click="addTools2(26)">
  8664. <img
  8665. src="../../assets/icon/checkNo.png"
  8666. alt
  8667. v-if="checktoolArray.indexOf(26) == -1"
  8668. />
  8669. <div class="checkDiv" v-else>
  8670. <img src="../../assets/icon/checkedIs.png" alt /><span
  8671. >已选择</span
  8672. >
  8673. </div>
  8674. </div>
  8675. </div>
  8676. <div class="tool">
  8677. <div class="whiteBIcon" @click="addTools2(25)">
  8678. <img
  8679. src="../../assets/icon/thirdToolList/evalua.png"
  8680. alt
  8681. />
  8682. <div style="margin: 5px 0">目标管理</div>
  8683. </div>
  8684. <div class="check" @click="addTools2(25)">
  8685. <img
  8686. src="../../assets/icon/checkNo.png"
  8687. alt
  8688. v-if="checktoolArray.indexOf(25) == -1"
  8689. />
  8690. <div class="checkDiv" v-else>
  8691. <img src="../../assets/icon/checkedIs.png" alt /><span
  8692. >已选择</span
  8693. >
  8694. </div>
  8695. </div>
  8696. </div>
  8697. </div>
  8698. </div>
  8699. </div>
  8700. </div>
  8701. </div> -->
  8702. </div>
  8703. <el-dialog
  8704. title="作业提交"
  8705. :visible.sync="dialogVisible"
  8706. :append-to-body="true"
  8707. width="500px"
  8708. :before-close="handleClose"
  8709. class="dialog_change"
  8710. >
  8711. <div class="marginT">
  8712. <div>上传文件</div>
  8713. <div
  8714. class="chapter_add"
  8715. @click="addImg($event)"
  8716. v-if="studyJuri[0].cover.length == 0"
  8717. >
  8718. <div class="up_photo">
  8719. <img src="../../assets/icon/uploadImg.png" alt />
  8720. </div>
  8721. <!-- <input
  8722. type="file"
  8723. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8724. style="display: none"
  8725. @change="beforeUpload1($event, 1)"
  8726. /> -->
  8727. <input
  8728. type="file"
  8729. accept="*"
  8730. style="display: none"
  8731. @change="beforeUpload1($event, 1)"
  8732. />
  8733. <!-- <input
  8734. type="file"
  8735. accept="image/*"
  8736. capture="camera"
  8737. style="display: none"
  8738. @change="beforeUpload1($event, 1)"
  8739. /> -->
  8740. </div>
  8741. <div
  8742. class="chapter_add"
  8743. style="
  8744. display: flex;
  8745. width: 100%;
  8746. flex-direction: row;
  8747. flex-wrap: wrap;
  8748. justify-content: flex-start;
  8749. padding: 15px 0;
  8750. "
  8751. v-if="studyJuri[0].cover.length > 0"
  8752. >
  8753. <div class="upCover">
  8754. <img
  8755. :src="studyJuri[0].cover[0].url"
  8756. alt
  8757. v-if="fileType == 0"
  8758. />
  8759. <img :src="word" alt v-else-if="fileType == 1" />
  8760. <img :src="video" alt v-else-if="fileType == 2" />
  8761. <img :src="word2" alt v-else-if="fileType == 3" />
  8762. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8763. <div class="deleteWord" @click="clean(1)">
  8764. <img src="../../assets/icon/deleteWorks.png" alt />
  8765. </div>
  8766. </div>
  8767. </div>
  8768. </div>
  8769. <div
  8770. class="upload_send"
  8771. @click="addCourseWorks(taskCount)"
  8772. v-if="!proVisible"
  8773. >
  8774. 提交
  8775. </div>
  8776. </el-dialog>
  8777. </div>
  8778. </div>
  8779. <div
  8780. class="pButton"
  8781. @click="(pzDialog = true), selectPz()"
  8782. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8783. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8784. >
  8785. <!-- 批 -->
  8786. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8787. </div>
  8788. <div v-if="pzDialog == true" class="newDialogCss">
  8789. <div class="pzTop2">
  8790. <!-- <div>批注</div>
  8791. <div @click="pzDialog = false">
  8792. <img src="../../assets/close1.png" alt="" />
  8793. </div> -->
  8794. <div class="checkbox">
  8795. <div class="check" style="font-size: 25px;position:unset;">评课笔记</div>
  8796. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  8797. <el-option label="时间降序" :value="1"></el-option>
  8798. <el-option label="时间升序" :value="2"></el-option>
  8799. <el-option label="我的评课" :value="3"></el-option>
  8800. </el-select>
  8801. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8802. </div>
  8803. </div>
  8804. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  8805. <div class="pzListBox" v-if="pzList && pzList.length">
  8806. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8807. <div class="pzNavTop">
  8808. <div>批</div>
  8809. <div>
  8810. {{
  8811. pz.username && pz.username.length > 5
  8812. ? pz.username.substring(0, 5) + "..."
  8813. : pz.username
  8814. }}的批注
  8815. </div>
  8816. <div
  8817. class="pzDelete"
  8818. v-if="pz.userid == userid"
  8819. @click="deletePz(pz.id)"
  8820. >
  8821. 删除
  8822. </div>
  8823. </div>
  8824. <div
  8825. @click="checkImg(getImgList(pz.content))"
  8826. class="pzContent cont"
  8827. v-html="pz.content"
  8828. v-if="pz.type == '1'"
  8829. ></div>
  8830. <div class="pzContent" v-if="pz.type == '2'">
  8831. <audio :src="pz.content" controls="controls" ref="audio">
  8832. Your browser does not support the audio element.
  8833. </audio>
  8834. </div>
  8835. <div class="pzContent" v-if="pz.type == '3'">
  8836. <img
  8837. :src="pz.content"
  8838. style="width: 90%; margin: 0 auto; display: block"
  8839. @click="previewImg(pz.content)"
  8840. />
  8841. </div>
  8842. <div class="timeAndReply">
  8843. <div class="time">
  8844. {{ pz.time }}
  8845. </div>
  8846. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8847. </div>
  8848. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8849. <div
  8850. v-for="(h, hIndex) in pz.hfList"
  8851. :key="hIndex"
  8852. class="hfItem"
  8853. >
  8854. <div class="whoReplyWho">
  8855. <div class="hfName">{{ h.username }}</div>
  8856. <div class="hfImg">
  8857. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8858. </div>
  8859. <div class="hfName">{{ pz.username }}</div>
  8860. </div>
  8861. <div class="hfContent" v-html="h.content"></div>
  8862. <div class="hfBottom">
  8863. <div class="hfTime">{{ h.time }}</div>
  8864. <div
  8865. class="deleteHfItem"
  8866. @click="deleteReply(h.id)"
  8867. v-if="userid == h.userid"
  8868. >
  8869. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8870. </div>
  8871. </div>
  8872. </div>
  8873. </div>
  8874. </div>
  8875. </div>
  8876. <div class="noPz" v-else>
  8877. <img src="../../assets/icon/noPz.png" alt="" />
  8878. </div>
  8879. <div class="addPzButton">
  8880. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8881. 添加批注
  8882. </div>
  8883. <!-- <div class="img1">
  8884. <div @click="(addPzDialog = true), (pzType = 2)">
  8885. <img src="../../assets/audio.png" /><span>音频</span>
  8886. </div>
  8887. </div> -->
  8888. </div>
  8889. </div>
  8890. </div>
  8891. <div v-if="toolDialogVisible == true" class="toolMask" @click="toolDialogVisible = false"></div>
  8892. <div v-if="toolDialogVisible == true" class="addToolCss">
  8893. <div class="toolTop">
  8894. <div style="font-weight: bold">新增工具</div>
  8895. <div @click="toolDialogVisible = false">
  8896. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8897. </div>
  8898. </div>
  8899. <div class="tool_box">
  8900. <div class="tool_type_box">
  8901. <div class="chooseWho">
  8902. <div
  8903. :class="toolType == 0 ? 'isChooseActive' : ''"
  8904. @click="(toolType = 0), $forceUpdate()"
  8905. >
  8906. 互动类
  8907. </div>
  8908. <div
  8909. :class="toolType == 1 ? 'isChooseActive' : ''"
  8910. @click="(toolType = 1), $forceUpdate()"
  8911. >
  8912. 思维类
  8913. </div>
  8914. <div
  8915. :class="toolType == 2 ? 'isChooseActive' : ''"
  8916. @click="(toolType = 2), $forceUpdate()"
  8917. >
  8918. 测评类
  8919. </div>
  8920. <div
  8921. :class="toolType == 3 ? 'isChooseActive' : ''"
  8922. @click="(toolType = 3), $forceUpdate()"
  8923. >
  8924. 编程类
  8925. </div>
  8926. <div
  8927. :class="toolType == 5 ? 'isChooseActive' : ''"
  8928. @click="(toolType = 5), $forceUpdate()"
  8929. >
  8930. 学科类
  8931. </div>
  8932. </div>
  8933. </div>
  8934. <div>
  8935. <div class="toolSort" v-if="toolType == 0">
  8936. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(10) != -1 }" @click="addTools2(10)">
  8937. <div class="whiteBIcon">
  8938. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8939. <div style="margin: 5px 0">倒计时</div>
  8940. </div>
  8941. <div class="check">
  8942. <div v-if="checktoolArray.indexOf(10) == -1" class="noChoose"></div>
  8943. <div v-else class="isChoose"></div>
  8944. </div>
  8945. </div>
  8946. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(65) != -1 }" @click="addTools2(65)">
  8947. <div class="whiteBIcon">
  8948. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8949. <div style="margin: 5px 0">挑人</div>
  8950. </div>
  8951. <div class="check">
  8952. <div v-if="checktoolArray.indexOf(65) == -1" class="noChoose"></div>
  8953. <div v-else class="isChoose"></div>
  8954. </div>
  8955. </div>
  8956. </div>
  8957. <div class="toolSort" v-if="toolType == 1">
  8958. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(7) != -1 }" @click="addTools2(7)">
  8959. <div class="whiteBIcon">
  8960. <img
  8961. src="../../assets/icon/secondToolList/mindNetwork.png"
  8962. alt
  8963. />
  8964. <div style="margin: 5px 0">思维网格</div>
  8965. </div>
  8966. <div class="check">
  8967. <div v-if="checktoolArray.indexOf(7) == -1" class="noChoose"></div>
  8968. <div v-else class="isChoose"></div>
  8969. </div>
  8970. </div>
  8971. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(1) != -1 }" @click="addTools2(1)">
  8972. <div class="whiteBIcon">
  8973. <img
  8974. src="../../assets/icon/secondToolList/whiteBoard.png"
  8975. alt
  8976. />
  8977. <div style="margin: 5px 0">电子白板</div>
  8978. </div>
  8979. <div class="check">
  8980. <div v-if="checktoolArray.indexOf(1) == -1" class="noChoose"></div>
  8981. <div v-else class="isChoose"></div>
  8982. </div>
  8983. </div>
  8984. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(52) != -1 }" @click="addTools2(52)">
  8985. <div class="whiteBIcon">
  8986. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8987. <div style="margin: 5px 0">文档</div>
  8988. </div>
  8989. <div class="check">
  8990. <div v-if="checktoolArray.indexOf(52) == -1" class="noChoose"></div>
  8991. <div v-else class="isChoose"></div>
  8992. </div>
  8993. </div>
  8994. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(3) != -1 }" @click="addTools2(3)">
  8995. <div class="whiteBIcon">
  8996. <img
  8997. src="../../assets/icon/secondToolList/mindMapping.png"
  8998. alt
  8999. />
  9000. <div style="margin: 5px 0">思维导图</div>
  9001. </div>
  9002. <div class="check">
  9003. <div v-if="checktoolArray.indexOf(3) == -1" class="noChoose"></div>
  9004. <div v-else class="isChoose"></div>
  9005. </div>
  9006. </div>
  9007. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(48) != -1 }" @click="addTools2(48)">
  9008. <div class="whiteBIcon">
  9009. <img src="../../assets/icon/fourthToolList/table.png" alt />
  9010. <div style="margin: 5px 0">表格</div>
  9011. </div>
  9012. <div class="check">
  9013. <div v-if="checktoolArray.indexOf(48) == -1" class="noChoose"></div>
  9014. <div v-else class="isChoose"></div>
  9015. </div>
  9016. </div>
  9017. </div>
  9018. <div class="toolSort" v-if="toolType == 6">
  9019. <div v-show="tooC == 49">
  9020. <img
  9021. @click="addTools(tooC, toolIndex, taskCount)"
  9022. src="../../assets/icon/fourthToolList/group.png"
  9023. alt
  9024. />
  9025. <div style="margin: 5px 0">学生分组</div>
  9026. </div>
  9027. </div>
  9028. <div class="toolSort" v-if="toolType == 2">
  9029. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(16) != -1 }" @click="addTools2(16)">
  9030. <div class="whiteBIcon">
  9031. <img src="../../assets/icon/thirdToolList/work.png" alt />
  9032. <div style="margin: 5px 0">作业提交</div>
  9033. </div>
  9034. <div class="check">
  9035. <div v-if="checktoolArray.indexOf(16) == -1" class="noChoose"></div>
  9036. <div v-else class="isChoose"></div>
  9037. </div>
  9038. </div>
  9039. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(50) != -1 }" @click="addTools2(50)">
  9040. <div class="whiteBIcon">
  9041. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  9042. <div style="margin: 5px 0">批量上传</div>
  9043. </div>
  9044. <div class="check">
  9045. <div v-if="checktoolArray.indexOf(50) == -1" class="noChoose"></div>
  9046. <div v-else class="isChoose"></div>
  9047. </div>
  9048. </div>
  9049. </div>
  9050. <div class="toolSort" v-if="toolType == 3">
  9051. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(18) != -1 }" @click="addTools2(18)">
  9052. <div class="whiteBIcon">
  9053. <img
  9054. src="../../assets/icon/thirdToolList/trainPlatform.png"
  9055. alt
  9056. />
  9057. <div style="margin: 5px 0">训练平台</div>
  9058. </div>
  9059. <div class="check">
  9060. <div v-if="checktoolArray.indexOf(18) == -1" class="noChoose"></div>
  9061. <div v-else class="isChoose"></div>
  9062. </div>
  9063. </div>
  9064. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(21) != -1 }" @click="addTools2(21)">
  9065. <div class="whiteBIcon">
  9066. <img src="../../assets/icon/fourthToolList/program.png" alt />
  9067. <div style="margin: 5px 0">AIoT Blockly</div>
  9068. </div>
  9069. <div class="check">
  9070. <div v-if="checktoolArray.indexOf(21) == -1" class="noChoose"></div>
  9071. <div v-else class="isChoose"></div>
  9072. </div>
  9073. </div>
  9074. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(23) != -1 }" @click="addTools2(23)">
  9075. <div class="whiteBIcon">
  9076. <img
  9077. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  9078. alt
  9079. />
  9080. <div style="margin: 5px 0">AI Python</div>
  9081. </div>
  9082. <div class="check">
  9083. <div v-if="checktoolArray.indexOf(23) == -1" class="noChoose"></div>
  9084. <div v-else class="isChoose"></div>
  9085. </div>
  9086. </div>
  9087. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(24) != -1 }" @click="addTools2(24)">
  9088. <div class="whiteBIcon">
  9089. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  9090. <div style="margin: 5px 0">AI Blockly</div>
  9091. </div>
  9092. <div class="check">
  9093. <div v-if="checktoolArray.indexOf(24) == -1" class="noChoose"></div>
  9094. <div v-else class="isChoose"></div>
  9095. </div>
  9096. </div>
  9097. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(32) != -1 }" @click="addTools2(32)">
  9098. <div class="whiteBIcon">
  9099. <img src="../../assets/icon/thirdToolList/code.png" alt />
  9100. <div style="margin: 5px 0">源码编辑</div>
  9101. </div>
  9102. <div class="check">
  9103. <div v-if="checktoolArray.indexOf(32) == -1" class="noChoose"></div>
  9104. <div v-else class="isChoose"></div>
  9105. </div>
  9106. </div>
  9107. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(57) != -1 }" @click="addTools2(57)">
  9108. <div class="whiteBIcon">
  9109. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  9110. <div style="margin: 5px 0">CocoPi</div>
  9111. </div>
  9112. <div class="check">
  9113. <div v-if="checktoolArray.indexOf(57) == -1" class="noChoose"></div>
  9114. <div v-else class="isChoose"></div>
  9115. </div>
  9116. </div>
  9117. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(63) != -1 }" @click="addTools2(63)">
  9118. <div class="whiteBIcon">
  9119. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  9120. <div style="margin: 5px 0">海龟编程</div>
  9121. </div>
  9122. <div class="check">
  9123. <div v-if="checktoolArray.indexOf(63) == -1" class="noChoose"></div>
  9124. <div v-else class="isChoose"></div>
  9125. </div>
  9126. </div>
  9127. </div>
  9128. <div class="toolSort" v-if="toolType == 7">
  9129. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(40) != -1 }" @click="addTools2(40)">
  9130. <div class="whiteBIcon">
  9131. <img src="../../assets/icon/secondToolList/eval.png" alt />
  9132. <div style="margin: 5px 0">个人评价</div>
  9133. </div>
  9134. <div class="check">
  9135. <div v-if="checktoolArray.indexOf(40) == -1" class="noChoose"></div>
  9136. <div v-else class="isChoose"></div>
  9137. </div>
  9138. </div>
  9139. </div>
  9140. <div class="toolSort" v-if="toolType == 5">
  9141. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(28) != -1 }" @click="addTools2(28)">
  9142. <div class="whiteBIcon">
  9143. <img
  9144. src="../../assets/icon/secondToolList/translation.png"
  9145. alt
  9146. />
  9147. <div style="margin: 5px 0">翻译</div>
  9148. </div>
  9149. <div class="check">
  9150. <div v-if="checktoolArray.indexOf(28) == -1" class="noChoose"></div>
  9151. <div v-else class="isChoose"></div>
  9152. </div>
  9153. </div>
  9154. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(31) != -1 }" @click="addTools2(31)">
  9155. <div class="whiteBIcon">
  9156. <img
  9157. src="../../assets/icon/secondToolList/networkPanel.png"
  9158. alt
  9159. />
  9160. <div style="margin: 5px 0">数字画板</div>
  9161. </div>
  9162. <div class="check">
  9163. <div v-if="checktoolArray.indexOf(31) == -1" class="noChoose"></div>
  9164. <div v-else class="isChoose"></div>
  9165. </div>
  9166. </div>
  9167. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(39) != -1 }" @click="addTools2(39)">
  9168. <div class="whiteBIcon">
  9169. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  9170. <div style="margin: 5px 0">GeoGebra</div>
  9171. </div>
  9172. <div class="check">
  9173. <div v-if="checktoolArray.indexOf(39) == -1" class="noChoose"></div>
  9174. <div v-else class="isChoose"></div>
  9175. </div>
  9176. </div>
  9177. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(66) != -1 }" @click="addTools2(66)">
  9178. <div class="whiteBIcon">
  9179. <img
  9180. src="../../assets/icon/secondToolList/formulaEdi.png"
  9181. alt
  9182. />
  9183. <div style="margin: 5px 0">公式编辑</div>
  9184. </div>
  9185. <div class="check">
  9186. <div v-if="checktoolArray.indexOf(66) == -1" class="noChoose"></div>
  9187. <div v-else class="isChoose"></div>
  9188. </div>
  9189. </div>
  9190. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9191. <div class="whiteBIcon" @click="addTools2(67)">
  9192. <img src="../../assets/icon/secondToolList/molStr.png" alt />
  9193. <div style="margin: 5px 0">分子结构</div>
  9194. </div>
  9195. <div class="check" @click="addTools2(67)">
  9196. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9197. <div v-else class="isChoose"></div>
  9198. </div>
  9199. </div> -->
  9200. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(68) != -1 }" @click="addTools2(68)">
  9201. <div class="whiteBIcon">
  9202. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  9203. <div style="margin: 5px 0">时间轴</div>
  9204. </div>
  9205. <div class="check">
  9206. <div v-if="checktoolArray.indexOf(68) == -1" class="noChoose"></div>
  9207. <div v-else class="isChoose"></div>
  9208. </div>
  9209. </div>
  9210. </div>
  9211. <div class="toolSort" v-if="toolType == 4">
  9212. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(26) != -1 }" @click="addTools2(26)">
  9213. <div class="whiteBIcon">
  9214. <img
  9215. src="../../assets/icon/thirdToolList/courseDesign.png"
  9216. alt
  9217. />
  9218. <div style="margin: 5px 0">课程设计</div>
  9219. </div>
  9220. <div class="check">
  9221. <div v-if="checktoolArray.indexOf(26) == -1" class="noChoose"></div>
  9222. <div v-else class="isChoose"></div>
  9223. </div>
  9224. </div>
  9225. <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(25) != -1 }" @click="addTools2(25)">
  9226. <div class="whiteBIcon">
  9227. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  9228. <div style="margin: 5px 0">目标管理</div>
  9229. </div>
  9230. <div class="check">
  9231. <div v-if="checktoolArray.indexOf(25) == -1" class="noChoose"></div>
  9232. <div v-else class="isChoose"></div>
  9233. </div>
  9234. </div>
  9235. </div>
  9236. </div>
  9237. </div>
  9238. <span slot="footer" class="dialog-footer" style="display: block;text-align: center;padding:0 0 10px 0;">
  9239. <el-button @click="toolDialogVisible = false"
  9240. >取 消</el-button
  9241. >
  9242. <el-button type="primary" @click.stop="addToolChoose"
  9243. >确 定</el-button
  9244. >
  9245. </span>
  9246. </div>
  9247. <div
  9248. v-if="replyDialogVisible == true"
  9249. class="addDialogCss"
  9250. v-el-drag-dialog
  9251. >
  9252. <div class="pzTop">
  9253. <div class="teacherPz">
  9254. <div class="teacherPzImg">
  9255. <img src="../../assets/icon/teacherPz.png" alt="" />
  9256. </div>
  9257. <div style="margin-left: 10px; height: 25px">添加回复</div>
  9258. </div>
  9259. <div @click="replyDialogVisible = false">
  9260. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9261. </div>
  9262. </div>
  9263. <div class="addPzBox">
  9264. <!-- <div class="addPzCheck">
  9265. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9266. >文本</span
  9267. >
  9268. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9269. >音频</span
  9270. >
  9271. </div> -->
  9272. <div style="height: calc(100% - 50px)">
  9273. <editor-bar
  9274. class="binfo_input pzConText"
  9275. style="width: 100% !important; margin: 0 auto"
  9276. placeholder="请输入回复描述"
  9277. v-model="reply"
  9278. @change="change"
  9279. ></editor-bar>
  9280. </div>
  9281. <div class="addTextCss" @click="addHf">确定</div>
  9282. </div>
  9283. </div>
  9284. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  9285. <div class="pzTop">
  9286. <div class="teacherPz">
  9287. <div class="teacherPzImg">
  9288. <img src="../../assets/icon/teacherPz.png" alt="" />
  9289. </div>
  9290. <div style="margin-left: 10px; height: 25px">教师批注</div>
  9291. </div>
  9292. <div @click="addPzDialog = false">
  9293. <img src="../../assets/close1.png" class="pzClose" alt="" />
  9294. </div>
  9295. </div>
  9296. <div class="addPzBox">
  9297. <div class="addPzCheck">
  9298. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  9299. >文本</span
  9300. >
  9301. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  9302. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  9303. >音频</span
  9304. >
  9305. </div>
  9306. <div style="height: calc(100% - 95px)">
  9307. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  9308. v-if="pzType == 1"></textarea> -->
  9309. <editor-bar
  9310. class="binfo_input pzConText"
  9311. style="width: 100% !important"
  9312. placeholder="请输入任务描述"
  9313. v-model="pzConText"
  9314. @change="change"
  9315. v-if="pzType == 1"
  9316. ></editor-bar>
  9317. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  9318. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  9319. <div @click="addImg($event)">
  9320. <el-button type="primary">上传图片</el-button>
  9321. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  9322. @change="beforeUpload1($event, 4)" />
  9323. </div>
  9324. </div> -->
  9325. </div>
  9326. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  9327. 确定
  9328. </div>
  9329. </div>
  9330. </div>
  9331. <div v-if="proVisible" class="mask">
  9332. <div class="progressBox">
  9333. <!-- <div id="closePro" class="closeCss">
  9334. <img src="../../assets/icon/close.png" alt />
  9335. </div> -->
  9336. <div class="lbox">
  9337. <img src="../../assets/loading.gif" />上传中,请稍后
  9338. </div>
  9339. <div style="margin-bottom: 10px">
  9340. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  9341. </div>
  9342. <el-progress
  9343. :text-inside="true"
  9344. :stroke-width="20"
  9345. :percentage="progress"
  9346. style="width: 80%"
  9347. ></el-progress>
  9348. </div>
  9349. </div>
  9350. <div v-if="proVisible2" class="mask">
  9351. <div class="progressBox">
  9352. <div class="lbox">
  9353. <img src="../../assets/loading.gif" />上传中,请稍后
  9354. </div>
  9355. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  9356. </div>
  9357. </div>
  9358. <el-dialog :visible.sync="pictureDialog" size="tiny">
  9359. <img width="100%" :src="dialogImageUrl" alt />
  9360. </el-dialog>
  9361. <el-dialog
  9362. :title="noteName != '' ? noteName : '查看问卷'"
  9363. :visible.sync="dialogVisible5"
  9364. :append-to-body="true"
  9365. width="1000px"
  9366. :before-close="handleClose"
  9367. class="dialog_diy dialog_diy3"
  9368. >
  9369. <div>
  9370. <div
  9371. class="a_add_title"
  9372. style="
  9373. display: flex;
  9374. flex-direction: row;
  9375. align-items: center;
  9376. justify-content: center;
  9377. "
  9378. >
  9379. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9380. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9381. </div>
  9382. <div class="a_addBox">
  9383. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9384. 题目内容
  9385. </div>
  9386. <div
  9387. class="a_add_box"
  9388. v-for="(item1, index1) in askJson.askCount"
  9389. :key="index1"
  9390. >
  9391. <div class="a_add_head">
  9392. <div style="display: flex">
  9393. <span class="askIndex"> {{ index1 + 1 }}</span>
  9394. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9395. </div>
  9396. <img
  9397. v-if="askJson.askJson[index1].img"
  9398. :src="askJson.askJson[index1].img"
  9399. style="height: 300px; margin-top: 10px; max-width: 100%"
  9400. />
  9401. </div>
  9402. <div class="a_add_body">
  9403. <div class="a_add_input">
  9404. <el-radio-group
  9405. v-model="radio[index1]"
  9406. v-if="
  9407. askJson.askJson[index1].type == '1' ||
  9408. !askJson.askJson[index1].type
  9409. "
  9410. >
  9411. <el-radio
  9412. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9413. .checkList"
  9414. :key="checkIndex"
  9415. :label="checkIndex"
  9416. :disabled="isAnswer"
  9417. class="redioStyle"
  9418. ><span v-html="item2"></span
  9419. ></el-radio>
  9420. </el-radio-group>
  9421. <el-checkbox-group
  9422. v-model="radio[index1]"
  9423. v-if="askJson.askJson[index1].type == '2'"
  9424. >
  9425. <el-checkbox
  9426. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9427. .checkList"
  9428. :key="checkIndex1"
  9429. :label="checkIndex1"
  9430. :disabled="isAnswer"
  9431. class="redioStyle"
  9432. ><span v-html="item2"></span>
  9433. </el-checkbox>
  9434. </el-checkbox-group>
  9435. </div>
  9436. </div>
  9437. </div>
  9438. </div>
  9439. </div>
  9440. <span slot="footer" class="dialog-footer">
  9441. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9442. >取 消</el-button
  9443. >
  9444. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9445. >确 定</el-button
  9446. >
  9447. </span>
  9448. </el-dialog>
  9449. <el-dialog
  9450. :title="noteName != '' ? noteName : '查看问卷'"
  9451. :visible.sync="dialogVisible5Teacher"
  9452. :append-to-body="true"
  9453. width="1000px"
  9454. :before-close="handleClose"
  9455. class="dialog_diy dialog_diy3"
  9456. >
  9457. <div>
  9458. <div class="w_name">
  9459. 学生姓名:<span>{{ sStudent.student }}</span>
  9460. </div>
  9461. <div
  9462. class="a_add_title"
  9463. style="
  9464. display: flex;
  9465. flex-direction: row;
  9466. align-items: center;
  9467. justify-content: center;
  9468. "
  9469. >
  9470. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9471. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9472. </div>
  9473. <div class="a_addBox">
  9474. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9475. 题目内容
  9476. </div>
  9477. <div
  9478. class="a_add_box"
  9479. v-for="(item1, index1) in askJson.askCount"
  9480. :key="index1"
  9481. >
  9482. <div class="a_add_head">
  9483. <div style="display: flex">
  9484. <span class="askIndex"> {{ index1 + 1 }}</span>
  9485. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9486. </div>
  9487. <img
  9488. v-if="askJson.askJson[index1].img"
  9489. :src="askJson.askJson[index1].img"
  9490. style="height: 300px; margin-top: 10px; max-width: 100%"
  9491. />
  9492. </div>
  9493. <div class="a_add_body">
  9494. <div class="a_add_input">
  9495. <el-radio-group
  9496. v-model="radio[index1]"
  9497. v-if="
  9498. askJson.askJson[index1].type == '1' ||
  9499. !askJson.askJson[index1].type
  9500. "
  9501. >
  9502. <el-radio
  9503. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9504. .checkList"
  9505. :key="checkIndex"
  9506. :label="checkIndex"
  9507. :disabled="isAnswer"
  9508. class="redioStyle"
  9509. ><span v-html="item2"></span
  9510. ></el-radio>
  9511. </el-radio-group>
  9512. <el-checkbox-group
  9513. v-model="radio[index1]"
  9514. v-if="askJson.askJson[index1].type == '2'"
  9515. >
  9516. <el-checkbox
  9517. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9518. .checkList"
  9519. :key="checkIndex1"
  9520. :label="checkIndex1"
  9521. :disabled="isAnswer"
  9522. class="redioStyle"
  9523. ><span v-html="item2"></span>
  9524. </el-checkbox>
  9525. </el-checkbox-group>
  9526. </div>
  9527. </div>
  9528. </div>
  9529. </div>
  9530. </div>
  9531. <span slot="footer" class="dialog-footer">
  9532. <el-button
  9533. @click="dialogVisible5Teacher = false"
  9534. v-show="noteName == ''"
  9535. >取 消</el-button
  9536. >
  9537. <el-button
  9538. type="primary"
  9539. @click="addStudentAskTeacher"
  9540. v-show="noteName == ''"
  9541. >确 定</el-button
  9542. >
  9543. </span>
  9544. </el-dialog>
  9545. <el-dialog
  9546. :title="noteName != '' ? noteName : '查看选择题'"
  9547. :visible.sync="dialogVisibleChoice"
  9548. :append-to-body="true"
  9549. width="1000px"
  9550. :before-close="handleClose"
  9551. class="dialog_diy dialog_diy3"
  9552. >
  9553. <div>
  9554. <div class="a_addBox">
  9555. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9556. 题目内容
  9557. </div>
  9558. <div
  9559. class="a_add_box"
  9560. v-for="(item1, index1) in testJson.testCount"
  9561. :key="index1"
  9562. >
  9563. <div class="a_add_head">
  9564. <div style="display: flex">
  9565. <span class="askIndex"> {{ index1 + 1 }}</span>
  9566. <div
  9567. v-if="testJson.testJson[index1].type == '1'"
  9568. style="margin-right: 5px; min-width: 70px"
  9569. >
  9570. (单选题)
  9571. </div>
  9572. <div
  9573. v-if="testJson.testJson[index1].type == '2'"
  9574. style="margin-right: 5px; min-width: 70px"
  9575. >
  9576. (多选题)
  9577. </div>
  9578. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9579. </div>
  9580. <img
  9581. v-if="testJson.testJson[index1].img"
  9582. :src="testJson.testJson[index1].img"
  9583. style="height: 300px; margin-top: 10px; max-width: 100%"
  9584. />
  9585. </div>
  9586. <div
  9587. class="timuImgBox"
  9588. v-if="
  9589. testJson.testJson[index1].timuList &&
  9590. testJson.testJson[index1].timuList.length
  9591. "
  9592. >
  9593. <div
  9594. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9595. :key="tIndex"
  9596. class="timuImg"
  9597. @click.stop="previewImg(timg.src)"
  9598. >
  9599. <img :src="timg.src" alt="" />
  9600. </div>
  9601. </div>
  9602. <div class="a_add_body">
  9603. <div class="a_add_input">
  9604. <el-radio-group
  9605. v-model="radio[index1]"
  9606. v-if="testJson.testJson[index1].type == '1'"
  9607. >
  9608. <div class="radioBox">
  9609. <el-radio
  9610. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9611. .checkList"
  9612. :key="checkIndex"
  9613. :label="checkIndex"
  9614. :disabled="isAnswer"
  9615. class="redioStyle"
  9616. >
  9617. <div
  9618. style="margin-right: 10px"
  9619. v-if="item2 && item2.imgType && item2.imgType == 1"
  9620. >
  9621. <div class="inImg" @click.stop="previewImg(item2.src)">
  9622. <img :src="item2.src" alt="" />
  9623. </div>
  9624. </div>
  9625. <span v-else v-html="item2"></span>
  9626. </el-radio>
  9627. </div>
  9628. </el-radio-group>
  9629. <el-checkbox-group
  9630. v-model="radio[index1]"
  9631. v-if="testJson.testJson[index1].type == '2'"
  9632. >
  9633. <div class="radioBox">
  9634. <el-checkbox
  9635. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9636. .checkList"
  9637. :key="checkIndex"
  9638. :label="checkIndex"
  9639. :disabled="isAnswer"
  9640. class="redioStyle"
  9641. >
  9642. <div
  9643. style="margin-right: 10px"
  9644. v-if="item2 && item2.imgType && item2.imgType == 1"
  9645. >
  9646. <div class="inImg" @click.stop="previewImg(item2.src)">
  9647. <img :src="item2.src" alt="" />
  9648. </div>
  9649. </div>
  9650. <span v-else v-html="item2"></span>
  9651. </el-checkbox>
  9652. </div>
  9653. </el-checkbox-group>
  9654. </div>
  9655. </div>
  9656. </div>
  9657. </div>
  9658. </div>
  9659. <span slot="footer" class="dialog-footer">
  9660. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9661. >取 消</el-button
  9662. >
  9663. <el-button
  9664. type="primary"
  9665. @click="addStudentTest"
  9666. v-show="noteName == ''"
  9667. >确 定</el-button
  9668. >
  9669. </span>
  9670. </el-dialog>
  9671. <el-dialog
  9672. :title="noteName != '' ? noteName : '查看选择题'"
  9673. :visible.sync="dialogVisibleChoiceTeacher"
  9674. :append-to-body="true"
  9675. width="1000px"
  9676. :before-close="handleClose"
  9677. class="dialog_diy dialog_diy3"
  9678. >
  9679. <div>
  9680. <div class="w_name">
  9681. 学生姓名:<span>{{ sStudent.student }}</span>
  9682. </div>
  9683. <div class="a_addBox">
  9684. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9685. 题目内容
  9686. </div>
  9687. <div
  9688. class="a_add_box"
  9689. v-for="(item1, index1) in testJson.testCount"
  9690. :key="index1"
  9691. >
  9692. <div class="a_add_head">
  9693. <div style="display: flex">
  9694. <span class="askIndex"> {{ index1 + 1 }}</span>
  9695. <div
  9696. v-if="testJson.testJson[index1].type == '1'"
  9697. style="margin-right: 5px; min-width: 70px"
  9698. >
  9699. (单选题)
  9700. </div>
  9701. <div
  9702. v-if="testJson.testJson[index1].type == '2'"
  9703. style="margin-right: 5px; min-width: 70px"
  9704. >
  9705. (多选题)
  9706. </div>
  9707. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9708. </div>
  9709. <img
  9710. v-if="testJson.testJson[index1].img"
  9711. :src="testJson.testJson[index1].img"
  9712. style="height: 300px; margin-top: 10px; max-width: 100%"
  9713. />
  9714. </div>
  9715. <div
  9716. class="timuImgBox"
  9717. v-if="
  9718. testJson.testJson[index1].timuList &&
  9719. testJson.testJson[index1].timuList.length
  9720. "
  9721. >
  9722. <div
  9723. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9724. :key="tIndex"
  9725. class="timuImg"
  9726. @click.stop="previewImg(timg.src)"
  9727. >
  9728. <img :src="timg.src" alt="" />
  9729. </div>
  9730. </div>
  9731. <div class="a_add_body">
  9732. <div class="a_add_input">
  9733. <el-radio-group
  9734. v-model="radio[index1]"
  9735. v-if="testJson.testJson[index1].type == '1'"
  9736. >
  9737. <div class="radioBox">
  9738. <el-radio
  9739. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9740. .checkList"
  9741. :key="checkIndex"
  9742. :label="checkIndex"
  9743. :disabled="isAnswer"
  9744. class="redioStyle"
  9745. >
  9746. <div
  9747. style="margin-right: 10px"
  9748. v-if="item2 && item2.imgType && item2.imgType == 1"
  9749. >
  9750. <div class="inImg" @click.stop="previewImg(item2.src)">
  9751. <img :src="item2.src" alt="" />
  9752. </div>
  9753. </div>
  9754. <span v-else v-html="item2"></span>
  9755. </el-radio>
  9756. </div>
  9757. </el-radio-group>
  9758. <el-checkbox-group
  9759. v-model="radio[index1]"
  9760. v-if="testJson.testJson[index1].type == '2'"
  9761. >
  9762. <div class="radioBox">
  9763. <el-checkbox
  9764. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9765. .checkList"
  9766. :key="checkIndex"
  9767. :label="checkIndex"
  9768. :disabled="isAnswer"
  9769. class="redioStyle"
  9770. >
  9771. <div
  9772. style="margin-right: 10px"
  9773. v-if="item2 && item2.imgType && item2.imgType == 1"
  9774. >
  9775. <div class="inImg" @click.stop="previewImg(item2.src)">
  9776. <img :src="item2.src" alt="" />
  9777. </div>
  9778. </div>
  9779. <span v-else v-html="item2"></span>
  9780. </el-checkbox>
  9781. </div>
  9782. </el-checkbox-group>
  9783. </div>
  9784. </div>
  9785. </div>
  9786. </div>
  9787. </div>
  9788. <span slot="footer" class="dialog-footer">
  9789. <el-button
  9790. @click="dialogVisibleChoiceTeacher = false"
  9791. v-show="noteName == ''"
  9792. >取 消</el-button
  9793. >
  9794. <el-button
  9795. type="primary"
  9796. @click="addStudentTestTeacher"
  9797. v-show="noteName == ''"
  9798. >确 定</el-button
  9799. >
  9800. </span>
  9801. </el-dialog>
  9802. <el-dialog
  9803. title="查看富文本"
  9804. :visible.sync="dialogVisible1"
  9805. :append-to-body="true"
  9806. width="500px"
  9807. :before-close="handleClose"
  9808. class="dialog_diy textCss"
  9809. >
  9810. <el-form style="font-size: 20px">
  9811. <el-form-item label="文本标题" class="textTitle">
  9812. <div style="font-size: 20px">{{ text.name }}</div>
  9813. </el-form-item>
  9814. <div>富文本内容</div>
  9815. <div
  9816. v-html="text.url"
  9817. style="font-size: 18px; padding: 40px 0 0 0"
  9818. ></div>
  9819. </el-form>
  9820. <span slot="footer" class="dialog-footer">
  9821. <el-button type="primary" @click="dialogVisible1 = false"
  9822. >确定</el-button
  9823. >
  9824. </span>
  9825. </el-dialog>
  9826. <el-dialog
  9827. title="文件预览"
  9828. :visible.sync="dialogVisible3"
  9829. width="50%"
  9830. :before-close="handleClose"
  9831. class="dialog_diy"
  9832. :class="{ fullStyle: full }"
  9833. >
  9834. <div slot="title" class="header-title">
  9835. <div style="color: #fff">文件预览</div>
  9836. <div style="position: absolute; top: 19px; right: 50px">
  9837. <img
  9838. src="../../assets/full.png"
  9839. style="height: 16px; cursor: pointer"
  9840. alt=""
  9841. @click="fullTools"
  9842. />
  9843. </div>
  9844. </div>
  9845. <pdf
  9846. v-if="showPDF"
  9847. :pdfUrl="pptImgUrl"
  9848. style="width: 100%; height: 520px; overflow: auto"
  9849. :class="{ fullStyle: full }"
  9850. ></pdf>
  9851. <iframe
  9852. v-else
  9853. :src="pptImgUrl"
  9854. frameborder="0"
  9855. width="100%"
  9856. height="600"
  9857. :class="{ fullStyle: full }"
  9858. ></iframe>
  9859. </el-dialog>
  9860. <el-dialog
  9861. title="文件预览"
  9862. :visible.sync="dialogVisible6"
  9863. width="50%"
  9864. :before-close="handleClose"
  9865. class="dialog_diy"
  9866. >
  9867. <iframe
  9868. :src="pptImgUrl1"
  9869. frameborder="0"
  9870. width="100%"
  9871. height="600"
  9872. ></iframe>
  9873. </el-dialog>
  9874. <el-dialog
  9875. title="提示"
  9876. :visible.sync="dialogVisible4"
  9877. :append-to-body="true"
  9878. width="800px"
  9879. :before-close="handleClose"
  9880. class="dialog_diy notice"
  9881. >
  9882. <div>此功能暂未开放!</div>
  9883. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9884. </el-dialog>
  9885. <el-dialog
  9886. title="问答"
  9887. :visible.sync="answerDialogVisible"
  9888. :append-to-body="true"
  9889. width="800px"
  9890. :before-close="handleClose"
  9891. class="dialog_diy"
  9892. >
  9893. <div>
  9894. <div
  9895. style="
  9896. display: flex;
  9897. flex-wrap: nowrap;
  9898. flex-direction: column;
  9899. position: relative;
  9900. "
  9901. >
  9902. <div class="queTop" style="padding: 20px 0 20px 0">
  9903. <div class="question">
  9904. <img src="../../assets/icon/question.png" alt />
  9905. </div>
  9906. <div class="queTitle">
  9907. <div style="width: 90px; min-width: 90px">提问:</div>
  9908. <div>{{ answerQ }}</div>
  9909. </div>
  9910. </div>
  9911. <div class="ediBottom">
  9912. <textarea
  9913. rows="6"
  9914. class="binfo_input"
  9915. cols
  9916. style="width: 95%; height: 120px"
  9917. v-model="questionAnswer"
  9918. ></textarea>
  9919. </div>
  9920. </div>
  9921. </div>
  9922. <div slot="footer">
  9923. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9924. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9925. </div>
  9926. </el-dialog>
  9927. <el-dialog
  9928. title="倒计时"
  9929. :visible.sync="timeDialogVisible"
  9930. :append-to-body="true"
  9931. width="800px"
  9932. :before-close="handleClose"
  9933. class="dialog_diy"
  9934. >
  9935. <div>
  9936. <div style="margin-bottom: 20px; color: #999">
  9937. 提示:点击“+”或“-”修改倒计时时长。
  9938. </div>
  9939. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9940. </div>
  9941. <div slot="footer">
  9942. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9943. </div>
  9944. </el-dialog>
  9945. <el-dialog
  9946. title="权限设置"
  9947. :visible.sync="juriVisible"
  9948. :append-to-body="true"
  9949. width="400px"
  9950. :before-close="handleClose"
  9951. class="dialog_diy"
  9952. >
  9953. <div>
  9954. <div class="open_box">
  9955. <div class="switch_box">
  9956. <span>允许学生查看所有作业</span>
  9957. <el-switch
  9958. v-model="sIsOpen"
  9959. active-text=""
  9960. class="switchCss"
  9961. @change="updateSLook"
  9962. ></el-switch>
  9963. </div>
  9964. <div
  9965. class="switch_box"
  9966. v-if="
  9967. courseDetail.userid == userid ||
  9968. (courseDetail.course_teacher &&
  9969. courseDetail.course_teacher.indexOf(userid) != -1)
  9970. "
  9971. >
  9972. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9973. <span>禁止学生查看所有阶段</span>
  9974. <el-switch
  9975. v-model="IsLookOpen"
  9976. active-text=""
  9977. class="switchCss"
  9978. @change="updateLookOpen"
  9979. ></el-switch>
  9980. </div>
  9981. <div class="switch_box" v-if="courseDetail.userid == userid">
  9982. <span>开启跟随模式</span>
  9983. <el-switch
  9984. v-model="IsFollow"
  9985. active-text=""
  9986. class="switchCss"
  9987. @change="updateFollow"
  9988. ></el-switch>
  9989. </div>
  9990. </div>
  9991. </div>
  9992. <div slot="footer">
  9993. <el-button
  9994. style="background: #409efe; color: #fff"
  9995. @click="juriVisible = false"
  9996. >关 闭</el-button
  9997. >
  9998. </div>
  9999. </el-dialog>
  10000. <el-dialog
  10001. title="查看视频"
  10002. :visible.sync="videoVisible"
  10003. :append-to-body="true"
  10004. width="1000px"
  10005. :before-close="handleClose"
  10006. class="dialog_diy1"
  10007. >
  10008. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10009. <video-player
  10010. class="video-player vjs-custom-skin"
  10011. :playsinline="true"
  10012. :options="videoDetail"
  10013. @play="onPlayerPlay($event)"
  10014. style="width: 100%; height: 100%"
  10015. ></video-player>
  10016. </div>
  10017. <div slot="footer">
  10018. <el-button
  10019. style="background: #409efe; color: #fff"
  10020. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10021. >
  10022. 关 闭</el-button
  10023. >
  10024. </div>
  10025. </el-dialog>
  10026. <el-dialog
  10027. title="查看详情"
  10028. :visible.sync="commentDialogVisible"
  10029. :append-to-body="true"
  10030. width="800px"
  10031. :before-close="handleClose"
  10032. class="dialog_diy"
  10033. >
  10034. <div class="commentTop">
  10035. <div class="studentDetail">
  10036. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10037. <div class="nameAndTime">
  10038. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10039. <div>{{ commentDetail.time }}</div>
  10040. </div>
  10041. <div
  10042. class="returnBtn"
  10043. style="margin-left: auto; width: 80px"
  10044. v-if="
  10045. commentDetail.works &&
  10046. commentDetail.type == 0 &&
  10047. (tType == 1 || tType == 4)
  10048. "
  10049. @click="
  10050. showPicturePaint(
  10051. commentDetail.img ? commentDetail.img : commentDetail.works
  10052. )
  10053. "
  10054. >
  10055. 教师批注
  10056. </div>
  10057. </div>
  10058. <div
  10059. class="worksAnswer"
  10060. v-if="commentDetail.works && commentDetail.type == 2"
  10061. >
  10062. {{ JSON.parse(commentDetail.works)[0].answer }}
  10063. </div>
  10064. <div
  10065. class="worksAnswer"
  10066. v-if="commentDetail.works && commentDetail.type == 1"
  10067. >
  10068. <img
  10069. src="../../assets/teacherWork.png"
  10070. v-if="commentDetail.ateacher"
  10071. class="w_teachert"
  10072. />
  10073. <pdf
  10074. v-if="showPDF"
  10075. :pdfUrl="pptImgUrl"
  10076. style="width: 100%; height: 520px; overflow: auto"
  10077. :class="{ fullStyle: full }"
  10078. ></pdf>
  10079. <iframe
  10080. v-else
  10081. :src="pptImgUrl"
  10082. frameborder="0"
  10083. width="100%"
  10084. height="600"
  10085. :class="{ fullStyle: full }"
  10086. ></iframe>
  10087. </div>
  10088. <div
  10089. class="worksAnswer"
  10090. v-if="commentDetail.works && commentDetail.type == 0"
  10091. >
  10092. <img
  10093. src="../../assets/teacherWork.png"
  10094. v-if="commentDetail.ateacher"
  10095. class="w_teachert"
  10096. style="right: 105px"
  10097. />
  10098. <img
  10099. :src="commentDetail.works"
  10100. alt=""
  10101. @click="previewImg(commentDetail.works)"
  10102. />
  10103. </div>
  10104. <div
  10105. class="worksAnswer"
  10106. v-if="commentDetail.works && commentDetail.type == 3"
  10107. >
  10108. <img
  10109. src="../../assets/teacherWork.png"
  10110. v-if="commentDetail.ateacher"
  10111. class="w_teachert"
  10112. />
  10113. <video-player
  10114. class="video-player vjs-custom-skin"
  10115. :playsinline="true"
  10116. :options="videoDetail"
  10117. @play="onPlayerPlay($event)"
  10118. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10119. ></video-player>
  10120. </div>
  10121. <div
  10122. class="worksAnswer"
  10123. v-if="commentDetail.works && commentDetail.type == 10"
  10124. >
  10125. <div class="cont" v-html="commentDetail.works.text"></div>
  10126. </div>
  10127. <div
  10128. class="worksAnswer codeFileBox"
  10129. v-if="commentDetail.works && commentDetail.type == 12"
  10130. @click="downloadFile(commentDetail.works)"
  10131. >
  10132. <img src="../../assets/icon/codeFile.png" />
  10133. <div>点击下载文件</div>
  10134. </div>
  10135. <div
  10136. class="worksAnswer codeFileBox"
  10137. v-if="commentDetail.works && commentDetail.type == 15"
  10138. @click="
  10139. openCocoPi(
  10140. 57,
  10141. commentIndexJson.toolIndex,
  10142. commentDetail.userid,
  10143. commentDetail.sName
  10144. )
  10145. "
  10146. >
  10147. <img src="../../assets/icon/codeFile.png" />
  10148. <div>点击打开CocoPi</div>
  10149. </div>
  10150. <div
  10151. class="worksAnswer"
  10152. v-if="commentDetail.works && commentDetail.type == 13"
  10153. >
  10154. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10155. </div>
  10156. <div
  10157. class="worksAnswer"
  10158. v-if="commentDetail.works && commentDetail.type == 4"
  10159. >
  10160. <div class="evalCss">
  10161. <div class="nav">请选择星星进行评分</div>
  10162. <div class="middleBox" v-if="eScore.eStar">
  10163. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10164. <div class="nameAndrate">
  10165. <div>{{ e.value }}</div>
  10166. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10167. </div>
  10168. <div v-if="e.detail">{{ e.detail }}</div>
  10169. </div>
  10170. <div class="bz">
  10171. <textarea
  10172. disabled
  10173. rows="4"
  10174. class="pj"
  10175. style="
  10176. padding: 10px 5px;
  10177. width: 70%;
  10178. background: #f7f6f9;
  10179. font-size: 14px;
  10180. text-indent: 10px;
  10181. color: #000;
  10182. "
  10183. cols
  10184. v-model="eScore.eBzText"
  10185. placeholder="请输入评价内容..."
  10186. ></textarea>
  10187. </div>
  10188. </div>
  10189. </div>
  10190. </div>
  10191. <div class="comment">
  10192. <div class="commentList">
  10193. <div class="commentImg">
  10194. <img
  10195. @click="
  10196. isLikes(
  10197. commentDetail.wid,
  10198. userid,
  10199. 1,
  10200. null,
  10201. commentDetail.isLikes
  10202. )
  10203. "
  10204. :src="commentDetail.isLikes == true ? likes : noLikes"
  10205. alt=""
  10206. />
  10207. </div>
  10208. <div>{{ commentDetail.likesCount }}</div>
  10209. </div>
  10210. <div class="commentList">
  10211. <div class="commentImg">
  10212. <img src="../../assets/icon/comment/comment.png" alt="" />
  10213. </div>
  10214. <div>{{ commentDetail.commentCount }}</div>
  10215. </div>
  10216. </div>
  10217. <div class="drawPBox" v-if="commentDetail.img">
  10218. <span>教师批注</span>
  10219. <img
  10220. :src="commentDetail.img"
  10221. alt=""
  10222. @click="previewImg(commentDetail.img)"
  10223. />
  10224. <span
  10225. class="deleteImg"
  10226. v-if="tType == 1 || tType == 4"
  10227. @click.stop="deletePicturePaint(commentDetail.wid)"
  10228. style="
  10229. font-size: 14px;
  10230. width: auto !important;
  10231. color: #b4b4b4;
  10232. top: unset;
  10233. bottom: 0;
  10234. border: none;
  10235. padding: 0;
  10236. height: auto !important;
  10237. margin: 0;
  10238. "
  10239. >删除</span
  10240. >
  10241. </div>
  10242. </div>
  10243. <div class="commentBox">
  10244. <div class="pl">评论:</div>
  10245. <div style="max-height: 200px; overflow: auto">
  10246. <div
  10247. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  10248. style="padding: 10px 0 0 0"
  10249. >
  10250. <div
  10251. class="studentDetail"
  10252. style="padding-top: 10px"
  10253. v-for="(co, coIndex) in commentDetail.commentJson"
  10254. :key="coIndex"
  10255. >
  10256. <div class="tx" style="min-width: 50px">
  10257. <img src="../../assets/avatar.png" alt="" />
  10258. </div>
  10259. <div class="plPerson">
  10260. <div class="plName">
  10261. <div>{{ co.commentPeople }}</div>
  10262. <div style="margin-left: 5px">
  10263. {{ co.commentTime }}
  10264. </div>
  10265. <div
  10266. class="deleteComment"
  10267. v-if="userid == co.userid"
  10268. @click="deleteComment(co.wid)"
  10269. >
  10270. 删除
  10271. </div>
  10272. </div>
  10273. <div class="plContent">{{ co.commentText }}</div>
  10274. </div>
  10275. </div>
  10276. </div>
  10277. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  10278. </div>
  10279. </div>
  10280. <div style="margin-top: 10px">
  10281. <div class="displayBox">
  10282. <div
  10283. style="
  10284. color: #556db4;
  10285. font-size: 14px;
  10286. font-weight: bold;
  10287. padding-bottom: 10px;
  10288. "
  10289. >
  10290. 评价
  10291. </div>
  10292. <div class="easy_comment" v-if="false">
  10293. <div
  10294. v-for="(p, pIndex) in PlTextList"
  10295. :key="pIndex"
  10296. @click="fastText(p, 1)"
  10297. >
  10298. {{ p }}
  10299. </div>
  10300. </div>
  10301. </div>
  10302. <div>
  10303. <textarea
  10304. rows="3"
  10305. class="pj"
  10306. style="padding: 10px 5px"
  10307. cols
  10308. v-model="commentText"
  10309. placeholder="请输入评论"
  10310. ></textarea>
  10311. </div>
  10312. </div>
  10313. <div slot="footer">
  10314. <el-button
  10315. @click="
  10316. (commentDialogVisible = false),
  10317. (commentIndexJson = {}),
  10318. videoDetail.sources && videoDetail.sources[0]
  10319. ? (videoDetail.sources[0].src = '')
  10320. : ''
  10321. "
  10322. >取 消</el-button
  10323. >
  10324. <el-button
  10325. type="primary"
  10326. @click="addComment(commentDetail.wid, userid, 2)"
  10327. >确 定</el-button
  10328. >
  10329. </div>
  10330. </el-dialog>
  10331. <el-dialog
  10332. title="查看文档"
  10333. :visible.sync="fullDialogVisible"
  10334. :append-to-body="true"
  10335. width="100%"
  10336. :before-close="handleClose"
  10337. :show-close="false"
  10338. class="dialog_diy full_diy"
  10339. :class="{ full_diy2: fulltype == 3 }"
  10340. >
  10341. <div slot="title" class="header-title">
  10342. <div style="color: #fff">查看文档</div>
  10343. <div
  10344. @click="fullDialogVisible = false"
  10345. style="
  10346. cursor: pointer;
  10347. position: absolute;
  10348. top: 20px;
  10349. right: 20px;
  10350. color: #fff;
  10351. "
  10352. >
  10353. 退出全屏
  10354. </div>
  10355. </div>
  10356. <div style="height: 100%">
  10357. <div
  10358. class="wheel"
  10359. v-if="
  10360. fulltype == 2 &&
  10361. fullUrl.indexOf(
  10362. 'https://view.officeapps.live.com/op/view.aspx?src='
  10363. ) != -1
  10364. "
  10365. style="width: 95%; margin: 0 auto"
  10366. >
  10367. <iframe
  10368. style="width: 100%; height: 100%; border: none"
  10369. :src="fullUrl"
  10370. ></iframe>
  10371. </div>
  10372. <iframe
  10373. v-else-if="fulltype == 2"
  10374. style="width: 100%; height: 100%; border: none"
  10375. :src="fullUrl"
  10376. security="restricted"
  10377. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10378. ></iframe>
  10379. <pdf
  10380. v-else-if="fulltype == 3"
  10381. :pdfUrl="fullUrl"
  10382. style="width: 100%; height: 100%; overflow: auto"
  10383. ></pdf>
  10384. <div
  10385. class="wheel"
  10386. v-if="fulltype == 1"
  10387. style="
  10388. box-shadow: 0 0 6px 1px #f2f2f2;
  10389. width: 100%;
  10390. background: #f1f1f1;
  10391. "
  10392. >
  10393. <div class="title" style="width: 100%; box-sizing: border-box">
  10394. 查看文档
  10395. </div>
  10396. <el-form class="textBox" style="height: 90%">
  10397. <el-form-item class="textTitle">
  10398. <div style="font-size: 22px">
  10399. {{ fullUrl.name }}
  10400. </div>
  10401. </el-form-item>
  10402. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10403. <div
  10404. v-html="fullUrl.url"
  10405. class="textContent"
  10406. style="height: auto"
  10407. ></div>
  10408. </el-form>
  10409. </div>
  10410. </div>
  10411. <!-- <div slot="footer">
  10412. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10413. </div> -->
  10414. </el-dialog>
  10415. <el-dialog
  10416. title="个人评价"
  10417. :visible.sync="studentEvalDialogVisible"
  10418. :append-to-body="true"
  10419. width="800px"
  10420. :before-close="handleClose"
  10421. class="dialog_diy"
  10422. >
  10423. <div class="evalCss">
  10424. <div class="nav">请选择星星进行评分</div>
  10425. <div class="middleBox" v-if="eScore.eStar">
  10426. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10427. <div class="nameAndrate">
  10428. <div>{{ e.value }}</div>
  10429. <el-rate
  10430. v-model="eScore.eStar[eIndex]"
  10431. :disabled="isStar"
  10432. ></el-rate>
  10433. </div>
  10434. <div v-if="e.detail">{{ e.detail }}</div>
  10435. </div>
  10436. <div class="easy_comment" v-if="false">
  10437. <div
  10438. v-for="(p, pIndex) in PlTextList"
  10439. :key="pIndex"
  10440. @click="fastText(p, 2)"
  10441. >
  10442. {{ p }}
  10443. </div>
  10444. </div>
  10445. <div class="bz">
  10446. <textarea
  10447. :disabled="isStar"
  10448. rows="4"
  10449. class="pj"
  10450. style="
  10451. padding: 10px 5px;
  10452. width: 70%;
  10453. background: #f7f6f9;
  10454. font-size: 14px;
  10455. text-indent: 10px;
  10456. "
  10457. cols
  10458. v-model="eScore.eBzText"
  10459. placeholder="请输入评价内容..."
  10460. ></textarea>
  10461. </div>
  10462. </div>
  10463. </div>
  10464. <div slot="footer">
  10465. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10466. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10467. >确 定</el-button
  10468. >
  10469. </div>
  10470. </el-dialog>
  10471. <el-dialog
  10472. title="个人评价"
  10473. :visible.sync="studentEvalDialogVisibleTeacher"
  10474. :append-to-body="true"
  10475. width="800px"
  10476. :before-close="handleClose"
  10477. class="dialog_diy"
  10478. >
  10479. <div class="w_name">
  10480. 学生姓名:<span>{{ sStudent.student }}</span>
  10481. </div>
  10482. <div class="evalCss">
  10483. <div class="nav">请选择星星进行评分</div>
  10484. <div class="middleBox" v-if="eScore.eStar">
  10485. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10486. <div class="nameAndrate">
  10487. <div>{{ e.value }}</div>
  10488. <el-rate
  10489. v-model="eScore.eStar[eIndex]"
  10490. :disabled="isStar"
  10491. ></el-rate>
  10492. </div>
  10493. <div v-if="e.detail">{{ e.detail }}</div>
  10494. </div>
  10495. <div class="easy_comment" v-if="false">
  10496. <div
  10497. v-for="(p, pIndex) in PlTextList"
  10498. :key="pIndex"
  10499. @click="fastText(p, 2)"
  10500. >
  10501. {{ p }}
  10502. </div>
  10503. </div>
  10504. <div class="bz">
  10505. <textarea
  10506. :disabled="isStar"
  10507. rows="4"
  10508. class="pj"
  10509. style="
  10510. padding: 10px 5px;
  10511. width: 70%;
  10512. background: #f7f6f9;
  10513. font-size: 14px;
  10514. text-indent: 10px;
  10515. "
  10516. cols
  10517. v-model="eScore.eBzText"
  10518. placeholder="请输入评价内容..."
  10519. ></textarea>
  10520. </div>
  10521. </div>
  10522. </div>
  10523. <div slot="footer">
  10524. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10525. >取 消</el-button
  10526. >
  10527. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10528. >确 定</el-button
  10529. >
  10530. </div>
  10531. </el-dialog>
  10532. <el-dialog
  10533. title="选择匹配"
  10534. :visible.sync="dialogVisibleSelect"
  10535. :append-to-body="true"
  10536. width="90%"
  10537. :before-close="handleClose"
  10538. class="dialog_diy dialog_diy3"
  10539. >
  10540. <div v-if="selectJson">
  10541. <div class="select_box2">
  10542. <div class="select_box2_title">
  10543. <div>选择匹配</div>
  10544. <div>请选择对应的答案进行答题!</div>
  10545. </div>
  10546. <div class="select_box2_box">
  10547. <div class="select_box2_img">
  10548. <img
  10549. :src="selectJson.url"
  10550. @click="previewImg(selectJson.url)"
  10551. alt=""
  10552. />
  10553. </div>
  10554. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10555. <div style="padding-top: 15px">
  10556. <div class="select_answer_title" v-if="isSelect">
  10557. {{ selectAnswer.stu }}
  10558. </div>
  10559. <div class="select_answer_title" v-else>
  10560. 根据题目选择对应答案
  10561. </div>
  10562. <div
  10563. class="select_box2_answer_box"
  10564. v-for="(item2, checkIndex) in selectJson.select"
  10565. :key="checkIndex"
  10566. >
  10567. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10568. <el-select
  10569. :disabled="isSelect"
  10570. v-model="selectAnswer.answer[checkIndex]"
  10571. placeholder="请选择正确答案"
  10572. >
  10573. <el-option
  10574. v-for="(e, eIndex) in selectJson.select"
  10575. :key="eIndex"
  10576. :label="e"
  10577. :value="eIndex"
  10578. >
  10579. </el-option>
  10580. </el-select>
  10581. </div>
  10582. </div>
  10583. <div
  10584. class="rightAnswerCss"
  10585. v-if="isSelect && (tType == 1 || tType == 4)"
  10586. >
  10587. <div
  10588. v-for="(a, aIndex) in selectJson.answer"
  10589. :key="aIndex"
  10590. class="rightAnswer"
  10591. >
  10592. <div
  10593. v-if="selectAnswer.answer[aIndex] === a"
  10594. style="color: #767de1"
  10595. >
  10596. 回答正确
  10597. </div>
  10598. <div v-else>回答错误</div>
  10599. <div
  10600. style="margin-left: 10px"
  10601. v-if="selectAnswer.answer[aIndex] !== a"
  10602. >
  10603. 正确答案:
  10604. </div>
  10605. <div
  10606. :class="
  10607. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10608. "
  10609. >
  10610. {{ selectJson.select[a] }}
  10611. </div>
  10612. </div>
  10613. </div>
  10614. </div>
  10615. <div class="upAnswerCss">
  10616. <el-button
  10617. type="primary"
  10618. @click="addSelectAnswer"
  10619. v-if="!isSelect"
  10620. >提交答案</el-button
  10621. >
  10622. </div>
  10623. </div>
  10624. </div>
  10625. </div>
  10626. </el-dialog>
  10627. <el-dialog
  10628. title="选择匹配"
  10629. :visible.sync="dialogVisibleSelectTeacher"
  10630. :append-to-body="true"
  10631. width="90%"
  10632. :before-close="handleClose"
  10633. class="dialog_diy dialog_diy3"
  10634. >
  10635. <div v-if="selectJson">
  10636. <div class="w_name">
  10637. 学生姓名:<span>{{ sStudent.student }}</span>
  10638. </div>
  10639. <div class="select_box2">
  10640. <div class="select_box2_title">
  10641. <div>选择匹配</div>
  10642. <div>请选择对应的答案进行答题!</div>
  10643. </div>
  10644. <div class="select_box2_box">
  10645. <div class="select_box2_img">
  10646. <img
  10647. :src="selectJson.url"
  10648. @click="previewImg(selectJson.url)"
  10649. alt=""
  10650. />
  10651. </div>
  10652. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10653. <div style="padding-top: 15px">
  10654. <div class="select_answer_title" v-if="isSelect">
  10655. {{ selectAnswer.stu }}
  10656. </div>
  10657. <div class="select_answer_title" v-else>
  10658. 根据题目选择对应答案
  10659. </div>
  10660. <div
  10661. class="select_box2_answer_box"
  10662. v-for="(item2, checkIndex) in selectJson.select"
  10663. :key="checkIndex"
  10664. >
  10665. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10666. <el-select
  10667. :disabled="isSelect"
  10668. v-model="selectAnswer.answer[checkIndex]"
  10669. placeholder="请选择正确答案"
  10670. >
  10671. <el-option
  10672. v-for="(e, eIndex) in selectJson.select"
  10673. :key="eIndex"
  10674. :label="e"
  10675. :value="eIndex"
  10676. >
  10677. </el-option>
  10678. </el-select>
  10679. </div>
  10680. </div>
  10681. <div
  10682. class="rightAnswerCss"
  10683. v-if="isSelect && (tType == 1 || tType == 4)"
  10684. >
  10685. <div
  10686. v-for="(a, aIndex) in selectJson.answer"
  10687. :key="aIndex"
  10688. class="rightAnswer"
  10689. >
  10690. <div
  10691. v-if="selectAnswer.answer[aIndex] === a"
  10692. style="color: #767de1"
  10693. >
  10694. 回答正确
  10695. </div>
  10696. <div v-else>回答错误</div>
  10697. <div
  10698. style="margin-left: 10px"
  10699. v-if="selectAnswer.answer[aIndex] !== a"
  10700. >
  10701. 正确答案:
  10702. </div>
  10703. <div
  10704. :class="
  10705. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10706. "
  10707. >
  10708. {{ selectJson.select[a] }}
  10709. </div>
  10710. </div>
  10711. </div>
  10712. </div>
  10713. <div class="upAnswerCss">
  10714. <el-button
  10715. type="primary"
  10716. @click="addSelectAnswerTeacher"
  10717. v-if="!isSelect"
  10718. >提交答案</el-button
  10719. >
  10720. </div>
  10721. </div>
  10722. </div>
  10723. </div>
  10724. </el-dialog>
  10725. <el-dialog
  10726. title="教师评分"
  10727. :visible.sync="dialogVisibleScore"
  10728. :append-to-body="true"
  10729. width="800px"
  10730. :before-close="handleClose"
  10731. class="dialog_diy"
  10732. >
  10733. <div>
  10734. <div class="studentDetail">
  10735. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10736. <div class="nameAndTime">
  10737. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10738. <div>{{ commentDetail.time }}</div>
  10739. </div>
  10740. </div>
  10741. <div
  10742. class="worksAnswer"
  10743. v-if="commentDetail.works && commentDetail.type == 2"
  10744. >
  10745. {{ JSON.parse(commentDetail.works)[0].answer }}
  10746. </div>
  10747. <div
  10748. class="worksAnswer"
  10749. v-if="commentDetail.works && commentDetail.type == 1"
  10750. >
  10751. <pdf
  10752. v-if="showPDF"
  10753. :pdfUrl="pptImgUrl"
  10754. style="width: 100%; height: 520px; overflow: auto"
  10755. :class="{ fullStyle: full }"
  10756. ></pdf>
  10757. <iframe
  10758. v-else
  10759. :src="pptImgUrl"
  10760. frameborder="0"
  10761. width="100%"
  10762. height="600"
  10763. :class="{ fullStyle: full }"
  10764. ></iframe>
  10765. </div>
  10766. <div
  10767. class="worksAnswer"
  10768. v-if="commentDetail.works && commentDetail.type == 0"
  10769. >
  10770. <img
  10771. :src="commentDetail.works"
  10772. alt=""
  10773. @click="previewImg(commentDetail.works)"
  10774. />
  10775. </div>
  10776. <div
  10777. class="worksAnswer"
  10778. v-if="commentDetail.works && commentDetail.type == 3"
  10779. >
  10780. <video-player
  10781. class="video-player vjs-custom-skin"
  10782. :playsinline="true"
  10783. :options="videoDetail"
  10784. @play="onPlayerPlay($event)"
  10785. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10786. ></video-player>
  10787. </div>
  10788. <div
  10789. class="worksAnswer codeFileBox"
  10790. v-if="commentDetail.works && commentDetail.type == 12"
  10791. @click="downloadFile(commentDetail.works)"
  10792. >
  10793. <img src="../../assets/icon/codeFile.png" />
  10794. <div>点击下载文件</div>
  10795. </div>
  10796. <div
  10797. class="worksAnswer codeFileBox"
  10798. v-if="commentDetail.works && commentDetail.type == 15"
  10799. @click="
  10800. openCocoPi(
  10801. 57,
  10802. commentIndexJson.toolIndex,
  10803. commentDetail.userid,
  10804. commentDetail.sName
  10805. )
  10806. "
  10807. >
  10808. <img src="../../assets/icon/codeFile.png" />
  10809. <div>点击打开CocoPi</div>
  10810. </div>
  10811. <div
  10812. class="worksAnswer"
  10813. v-if="commentDetail.works && commentDetail.type == 13"
  10814. >
  10815. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10816. </div>
  10817. <div class="scoreBox">
  10818. <span class="t">请输入分数</span>
  10819. <el-input-number
  10820. :disabled="courseDetail.userid != userid"
  10821. v-model="wScore"
  10822. :controls="false"
  10823. :min="0"
  10824. :max="100"
  10825. ></el-input-number>
  10826. </div>
  10827. <div class="scoreDetailBox">
  10828. <span class="t">评分评论</span>
  10829. <el-input
  10830. type="textarea"
  10831. :rows="5"
  10832. :disabled="courseDetail.userid != userid"
  10833. resize="none"
  10834. v-model="scoreDetail"
  10835. placeholder="请输入对学生的评价"
  10836. >
  10837. </el-input>
  10838. </div>
  10839. </div>
  10840. <span slot="footer" class="dialog-footer">
  10841. <el-button
  10842. @click="
  10843. (dialogVisibleScore = false),
  10844. (commentIndexJson = {}),
  10845. videoDetail.sources && videoDetail.sources[0]
  10846. ? (videoDetail.sources[0].src = '')
  10847. : ''
  10848. "
  10849. >取 消</el-button
  10850. >
  10851. <el-button
  10852. type="primary"
  10853. v-if="courseDetail.userid == userid"
  10854. @click="scoreWork(commentDetail.wid)"
  10855. >确 定
  10856. </el-button>
  10857. </span>
  10858. </el-dialog>
  10859. <el-dialog
  10860. title="排序"
  10861. :visible.sync="dialogVisibleSentence"
  10862. :append-to-body="true"
  10863. width="1000px"
  10864. :before-close="handleClose"
  10865. class="dialog_diy dialog_diy3"
  10866. >
  10867. <div>
  10868. <div class="sentenBox">
  10869. <div
  10870. v-for="(st, stIndex) in sentenceList"
  10871. :key="stIndex"
  10872. style="padding-bottom: 20px"
  10873. >
  10874. <div
  10875. style="padding: 15px 0 10px 20px"
  10876. class="sentenceTitle"
  10877. :index="stIndex + 1"
  10878. >
  10879. 题目{{ stIndex + 1 }}:请选择正确顺序
  10880. </div>
  10881. <div class="cardList" v-if="st.chooseSenList">
  10882. <div class="cardBox">
  10883. <div
  10884. v-for="(r, rIndex) in st.chooseSenList"
  10885. :key="rIndex"
  10886. @click="returnCard(r, stIndex, rIndex)"
  10887. >
  10888. <el-tooltip
  10889. class="item"
  10890. effect="light"
  10891. :content="r"
  10892. placement="top"
  10893. v-if="r != '' && r != undefined"
  10894. >
  10895. <div
  10896. :class="{
  10897. isCard: r,
  10898. isChooseCard: r == '' || r == undefined,
  10899. }"
  10900. >
  10901. <div>{{ r }}</div>
  10902. </div>
  10903. </el-tooltip>
  10904. <div
  10905. :class="{
  10906. isCard: r,
  10907. isChooseCard: r == '' || r == undefined,
  10908. }"
  10909. v-else
  10910. >
  10911. <div>{{ r }}</div>
  10912. </div>
  10913. </div>
  10914. </div>
  10915. </div>
  10916. <div class="cardList" v-if="st.addChangeSen">
  10917. <div class="cardBox">
  10918. <div
  10919. v-for="(s, sIndex) in st.addChangeSen"
  10920. :key="sIndex"
  10921. @click="setRightAnswer(s, stIndex, sIndex)"
  10922. >
  10923. <el-tooltip
  10924. class="item"
  10925. effect="light"
  10926. :content="s"
  10927. placement="top"
  10928. v-if="s != '' && s != undefined"
  10929. >
  10930. <div
  10931. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10932. >
  10933. <div>{{ s }}</div>
  10934. </div>
  10935. </el-tooltip>
  10936. <div
  10937. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10938. v-else
  10939. >
  10940. <div>{{ s }}</div>
  10941. </div>
  10942. </div>
  10943. </div>
  10944. </div>
  10945. </div>
  10946. </div>
  10947. </div>
  10948. <span slot="footer" class="dialog-footer">
  10949. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10950. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10951. </span>
  10952. </el-dialog>
  10953. <el-dialog
  10954. title="排序"
  10955. :visible.sync="dialogVisibleSentenceTeacher"
  10956. :append-to-body="true"
  10957. width="1000px"
  10958. :before-close="handleClose"
  10959. class="dialog_diy dialog_diy3"
  10960. >
  10961. <div>
  10962. <div class="w_name">
  10963. 学生姓名:<span>{{ sStudent.student }}</span>
  10964. </div>
  10965. <div class="sentenBox">
  10966. <div
  10967. v-for="(st, stIndex) in sentenceList"
  10968. :key="stIndex"
  10969. style="padding-bottom: 20px"
  10970. >
  10971. <div
  10972. style="padding: 15px 0 10px 20px"
  10973. class="sentenceTitle"
  10974. :index="stIndex + 1"
  10975. >
  10976. 题目{{ stIndex + 1 }}:请选择正确顺序
  10977. </div>
  10978. <div class="cardList" v-if="st.chooseSenList">
  10979. <div class="cardBox">
  10980. <div
  10981. v-for="(r, rIndex) in st.chooseSenList"
  10982. :key="rIndex"
  10983. @click="returnCard(r, stIndex, rIndex)"
  10984. >
  10985. <el-tooltip
  10986. class="item"
  10987. effect="light"
  10988. :content="r"
  10989. placement="top"
  10990. v-if="r != '' && r != undefined"
  10991. >
  10992. <div
  10993. :class="{
  10994. isCard: r,
  10995. isChooseCard: r == '' || r == undefined,
  10996. }"
  10997. >
  10998. <div>{{ r }}</div>
  10999. </div>
  11000. </el-tooltip>
  11001. <div
  11002. :class="{
  11003. isCard: r,
  11004. isChooseCard: r == '' || r == undefined,
  11005. }"
  11006. v-else
  11007. >
  11008. <div>{{ r }}</div>
  11009. </div>
  11010. </div>
  11011. </div>
  11012. </div>
  11013. <div class="cardList" v-if="st.addChangeSen">
  11014. <div class="cardBox">
  11015. <div
  11016. v-for="(s, sIndex) in st.addChangeSen"
  11017. :key="sIndex"
  11018. @click="setRightAnswer(s, stIndex, sIndex)"
  11019. >
  11020. <el-tooltip
  11021. class="item"
  11022. effect="light"
  11023. :content="s"
  11024. placement="top"
  11025. v-if="s != '' && s != undefined"
  11026. >
  11027. <div
  11028. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11029. >
  11030. <div>{{ s }}</div>
  11031. </div>
  11032. </el-tooltip>
  11033. <div
  11034. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11035. v-else
  11036. >
  11037. <div>{{ s }}</div>
  11038. </div>
  11039. </div>
  11040. </div>
  11041. </div>
  11042. </div>
  11043. </div>
  11044. </div>
  11045. <span slot="footer" class="dialog-footer">
  11046. <el-button @click="dialogVisibleSentenceTeacher = false"
  11047. >取 消</el-button
  11048. >
  11049. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11050. </span>
  11051. </el-dialog>
  11052. <el-dialog
  11053. title="排序"
  11054. :visible.sync="dialogVisibleSentence1"
  11055. :append-to-body="true"
  11056. width="1000px"
  11057. :before-close="handleClose"
  11058. class="dialog_diy dialog_diy3"
  11059. >
  11060. <div>
  11061. <div class="sentenBox">
  11062. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11063. {{ sentenceList1.stuName }}的作业
  11064. </div>
  11065. <div
  11066. v-for="(st, stIndex) in sentenceList1"
  11067. :key="stIndex"
  11068. style="padding-bottom: 20px"
  11069. >
  11070. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11071. 第{{ stIndex + 1 }}题
  11072. </div>
  11073. <div class="isWrong">
  11074. <div class="cardList1" v-if="st.chooseSenList">
  11075. <div class="cardBox">
  11076. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11077. <el-tooltip
  11078. class="item"
  11079. effect="light"
  11080. :content="s"
  11081. placement="top"
  11082. >
  11083. <div class="isCard">
  11084. <div>{{ s }}</div>
  11085. </div>
  11086. </el-tooltip>
  11087. </div>
  11088. </div>
  11089. <div class="cardAnswerBox">
  11090. 组成句子:{{ st.chooseSenList.join(" ") }}
  11091. </div>
  11092. </div>
  11093. <div
  11094. class="answerRight isTj"
  11095. v-if="
  11096. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11097. (tType == 1 || tType == 4)
  11098. "
  11099. >
  11100. <div class="isTjImg">
  11101. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11102. </div>
  11103. <div>回答正确</div>
  11104. </div>
  11105. <div
  11106. class="answerRight isTj"
  11107. v-if="
  11108. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11109. (tType == 1 || tType == 4)
  11110. "
  11111. >
  11112. <div class="isTjImg">
  11113. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  11114. </div>
  11115. <div>回答错误</div>
  11116. </div>
  11117. </div>
  11118. <div
  11119. v-if="
  11120. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11121. (tType == 1 || tType == 4)
  11122. "
  11123. >
  11124. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11125. <div
  11126. class="cardList"
  11127. v-if="st.rightAnswer"
  11128. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11129. >
  11130. <div class="cardBox">
  11131. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11132. <el-tooltip
  11133. class="item"
  11134. effect="light"
  11135. :content="r"
  11136. placement="top"
  11137. >
  11138. <div class="isCard1">
  11139. <div>{{ r }}</div>
  11140. </div>
  11141. </el-tooltip>
  11142. </div>
  11143. </div>
  11144. <div class="cardAnswerBox">
  11145. 组成句子:{{ st.rightAnswer.join(" ") }}
  11146. </div>
  11147. </div>
  11148. </div>
  11149. </div>
  11150. </div>
  11151. </div>
  11152. <span slot="footer" class="dialog-footer">
  11153. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11154. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11155. >确 定</el-button
  11156. >
  11157. </span>
  11158. </el-dialog>
  11159. <el-dialog
  11160. title="提交作业"
  11161. :visible.sync="dialogVisibleWorks"
  11162. :append-to-body="true"
  11163. width="500px"
  11164. :before-close="handleClose"
  11165. class="dialog_change"
  11166. >
  11167. <div class="marginT">
  11168. <div class="w_name">
  11169. 学生姓名:<span>{{ sStudent.student }}</span>
  11170. </div>
  11171. <div>上传文件</div>
  11172. <div
  11173. class="chapter_add"
  11174. @click="addImg($event)"
  11175. v-if="studyJuri[0].cover.length == 0"
  11176. >
  11177. <div class="up_photo">
  11178. <img src="../../assets/uploadImg2.png" alt />
  11179. </div>
  11180. <!-- <input
  11181. type="file"
  11182. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11183. style="display: none"
  11184. @change="beforeUpload1($event, 1)"
  11185. /> -->
  11186. <input
  11187. type="file"
  11188. accept="*"
  11189. style="display: none"
  11190. @change="beforeUpload1($event, 1)"
  11191. />
  11192. </div>
  11193. <!-- capture="camera" -->
  11194. <div
  11195. class="chapter_add"
  11196. style="
  11197. display: flex;
  11198. width: 100%;
  11199. flex-direction: row;
  11200. flex-wrap: wrap;
  11201. justify-content: flex-start;
  11202. padding: 15px 0;
  11203. "
  11204. v-if="studyJuri[0].cover.length > 0"
  11205. >
  11206. <div class="upCover">
  11207. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11208. <img :src="word" alt v-else-if="fileType == 1" />
  11209. <img :src="video" alt v-else-if="fileType == 2" />
  11210. <img :src="word2" alt v-else-if="fileType == 3" />
  11211. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11212. <div class="deleteWord" @click="clean(1)">
  11213. <img src="../../assets/icon/deleteWorks.png" alt />
  11214. </div>
  11215. </div>
  11216. </div>
  11217. </div>
  11218. <div
  11219. class="upload_send"
  11220. @click="addCourseWorksTeacher(taskCount)"
  11221. v-if="!proVisible"
  11222. >
  11223. 提交
  11224. </div>
  11225. </el-dialog>
  11226. <el-dialog
  11227. title="问答"
  11228. :visible.sync="answerDialogVisibleTeacher"
  11229. :append-to-body="true"
  11230. width="800px"
  11231. :before-close="handleClose"
  11232. class="dialog_diy"
  11233. >
  11234. <div>
  11235. <div class="w_name">
  11236. 学生姓名:<span>{{ sStudent.student }}</span>
  11237. </div>
  11238. <div
  11239. style="
  11240. display: flex;
  11241. flex-wrap: nowrap;
  11242. flex-direction: column;
  11243. position: relative;
  11244. "
  11245. >
  11246. <div class="queTop" style="padding: 20px 0 20px 0">
  11247. <div class="question">
  11248. <img src="../../assets/icon/question.png" alt />
  11249. </div>
  11250. <div class="queTitle">
  11251. <div style="width: 90px; min-width: 90px">提问:</div>
  11252. <div>{{ answerQ }}</div>
  11253. </div>
  11254. </div>
  11255. <div class="ediBottom">
  11256. <textarea
  11257. rows="6"
  11258. class="binfo_input"
  11259. cols
  11260. style="width: 95%; height: 120px"
  11261. v-model="questionAnswer"
  11262. ></textarea>
  11263. </div>
  11264. </div>
  11265. </div>
  11266. <div slot="footer">
  11267. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  11268. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  11269. </div>
  11270. </el-dialog>
  11271. <ImgDraw
  11272. :drawShow="drawShow"
  11273. @closeDraw="closeDraw"
  11274. @addImgDraw="addImgDraw"
  11275. :bg="bg"
  11276. ></ImgDraw>
  11277. <el-dialog
  11278. title="表格"
  11279. :visible.sync="dialogVisibleTable"
  11280. :append-to-body="true"
  11281. width="95%"
  11282. :before-close="handleClose"
  11283. class="dialog_diy"
  11284. >
  11285. <el-form>
  11286. <div>表格内容</div>
  11287. <Table
  11288. v-model="tableJson.text"
  11289. @change="change"
  11290. v-if="dialogVisibleTable"
  11291. ></Table>
  11292. </el-form>
  11293. <span slot="footer" class="dialog-footer">
  11294. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  11295. <el-button type="primary" @click="addTableWorks">确定</el-button>
  11296. </span>
  11297. </el-dialog>
  11298. <el-dialog
  11299. title="表格"
  11300. :visible.sync="dialogVisibleTableTeacher"
  11301. :append-to-body="true"
  11302. width="95%"
  11303. :before-close="handleClose"
  11304. class="dialog_diy"
  11305. >
  11306. <el-form>
  11307. <div class="w_name">
  11308. 学生姓名:<span>{{ sStudent.student }}</span>
  11309. </div>
  11310. <div>表格内容</div>
  11311. <Table
  11312. v-model="tableJson.text"
  11313. @change="change"
  11314. v-if="dialogVisibleTableTeacher"
  11315. ></Table>
  11316. </el-form>
  11317. <span slot="footer" class="dialog-footer">
  11318. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  11319. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  11320. </span>
  11321. </el-dialog>
  11322. <el-dialog
  11323. title="文档"
  11324. :visible.sync="dialogVisibleWord"
  11325. :append-to-body="true"
  11326. width="95%"
  11327. :before-close="handleClose"
  11328. class="dialog_diy"
  11329. >
  11330. <el-form>
  11331. <div>文档内容</div>
  11332. <editor-bar
  11333. v-model="wordJson.text"
  11334. v-if="dialogVisibleWord"
  11335. ></editor-bar>
  11336. </el-form>
  11337. <span slot="footer" class="dialog-footer">
  11338. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  11339. <el-button type="primary" @click="addWordWorks">确定</el-button>
  11340. </span>
  11341. </el-dialog>
  11342. <el-dialog
  11343. title="文档"
  11344. :visible.sync="dialogVisibleWordTeacher"
  11345. :append-to-body="true"
  11346. width="95%"
  11347. :before-close="handleClose"
  11348. class="dialog_diy"
  11349. >
  11350. <el-form>
  11351. <div class="w_name">
  11352. 学生姓名:<span>{{ sStudent.student }}</span>
  11353. </div>
  11354. <div>文档内容</div>
  11355. <editor-bar
  11356. v-model="wordJson.text"
  11357. v-if="dialogVisibleWordTeacher"
  11358. ></editor-bar>
  11359. </el-form>
  11360. <span slot="footer" class="dialog-footer">
  11361. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  11362. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  11363. </span>
  11364. </el-dialog>
  11365. <el-dialog
  11366. title="表格"
  11367. :visible.sync="dialogVisibleTable2"
  11368. :append-to-body="true"
  11369. width="95%"
  11370. :before-close="handleClose"
  11371. class="dialog_diy"
  11372. >
  11373. <el-form>
  11374. <div class="cont" v-html="tableJson.text"></div>
  11375. </el-form>
  11376. <span slot="footer" class="dialog-footer">
  11377. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  11378. </span>
  11379. </el-dialog>
  11380. <el-dialog
  11381. title="文档"
  11382. :visible.sync="dialogVisibleTable3"
  11383. :append-to-body="true"
  11384. width="95%"
  11385. :before-close="handleClose"
  11386. class="dialog_diy"
  11387. >
  11388. <el-form>
  11389. <div class="cont" v-html="tableJson.text"></div>
  11390. </el-form>
  11391. <span slot="footer" class="dialog-footer">
  11392. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11393. </span>
  11394. </el-dialog>
  11395. <el-dialog
  11396. title="分组设置"
  11397. :visible.sync="dialogVisibleGroup"
  11398. :append-to-body="true"
  11399. width="95%"
  11400. :before-close="handleClose"
  11401. class="dialog_diy"
  11402. >
  11403. <div v-if="dialogVisibleGroup">
  11404. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11405. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11406. 提示:需要锁定位置,才能点击头像修改座位。
  11407. </div>
  11408. <div
  11409. type="primary"
  11410. v-if="groupJson.islock == 1"
  11411. class="returnBtn"
  11412. style="background-color: #225bc7"
  11413. @click="lockChair"
  11414. >
  11415. 锁定位置
  11416. </div>
  11417. <div
  11418. type="primary"
  11419. v-else
  11420. class="returnBtn"
  11421. style="background-color: #225bc7"
  11422. @click="lockChair"
  11423. >
  11424. 解锁位置
  11425. </div>
  11426. <div
  11427. type="primary"
  11428. @click="updateGroup"
  11429. class="returnBtn"
  11430. style="background-color: #225bc7"
  11431. >
  11432. 分组设置
  11433. </div>
  11434. </div>
  11435. <div>
  11436. <div
  11437. class="g_d_box"
  11438. v-if="groupJson.group && groupStudent[toolindex]"
  11439. >
  11440. <div
  11441. class="g_d_group"
  11442. v-for="(g, gindex) in groupJson.group"
  11443. :key="gindex"
  11444. >
  11445. <div class="g_d_group_chair">
  11446. <div v-if="groupJson.number > 1">
  11447. <span
  11448. :class="{
  11449. isChair:
  11450. groupStudent[toolindex][gindex] &&
  11451. groupStudent[toolindex][gindex][0],
  11452. updateChair:
  11453. courseDetail.userid == userid &&
  11454. groupStudent[toolindex][gindex] &&
  11455. groupStudent[toolindex][gindex][0] &&
  11456. groupJson.islock == 2,
  11457. }"
  11458. ><span
  11459. class="updateChairBtn"
  11460. @click="
  11461. updateGroupChair(
  11462. groupStudent[toolindex][gindex] &&
  11463. groupStudent[toolindex][gindex][0]
  11464. )
  11465. "
  11466. >修改</span
  11467. ></span
  11468. ><span>{{
  11469. groupStudent[toolindex][gindex] &&
  11470. groupStudent[toolindex][gindex][0]
  11471. ? groupStudent[toolindex][gindex] &&
  11472. groupStudent[toolindex][gindex][0].name
  11473. : "空位置"
  11474. }}</span>
  11475. </div>
  11476. <div v-if="groupJson.number > 4">
  11477. <span
  11478. :class="{
  11479. isChair:
  11480. groupStudent[toolindex][gindex] &&
  11481. groupStudent[toolindex][gindex][4],
  11482. updateChair:
  11483. courseDetail.userid == userid &&
  11484. groupStudent[toolindex][gindex] &&
  11485. groupStudent[toolindex][gindex][4] &&
  11486. groupJson.islock == 2,
  11487. }"
  11488. ><span
  11489. class="updateChairBtn"
  11490. @click="
  11491. updateGroupChair(
  11492. groupStudent[toolindex][gindex] &&
  11493. groupStudent[toolindex][gindex][4]
  11494. )
  11495. "
  11496. >修改</span
  11497. ></span
  11498. ><span>{{
  11499. groupStudent[toolindex][gindex] &&
  11500. groupStudent[toolindex][gindex][4]
  11501. ? groupStudent[toolindex][gindex] &&
  11502. groupStudent[toolindex][gindex][4].name
  11503. : "空位置"
  11504. }}</span>
  11505. </div>
  11506. <div v-if="groupJson.number > 8">
  11507. <span
  11508. :class="{
  11509. isChair:
  11510. groupStudent[toolindex][gindex] &&
  11511. groupStudent[toolindex][gindex][8],
  11512. updateChair:
  11513. courseDetail.userid == userid &&
  11514. groupStudent[toolindex][gindex] &&
  11515. groupStudent[toolindex][gindex][8] &&
  11516. groupJson.islock == 2,
  11517. }"
  11518. ><span
  11519. class="updateChairBtn"
  11520. @click="
  11521. updateGroupChair(
  11522. groupStudent[toolindex][gindex] &&
  11523. groupStudent[toolindex][gindex][8]
  11524. )
  11525. "
  11526. >修改</span
  11527. ></span
  11528. ><span>{{
  11529. groupStudent[toolindex][gindex] &&
  11530. groupStudent[toolindex][gindex][8]
  11531. ? groupStudent[toolindex][gindex] &&
  11532. groupStudent[toolindex][gindex][8].name
  11533. : "空位置"
  11534. }}</span>
  11535. </div>
  11536. </div>
  11537. <div class="g_d_group_tableBox">
  11538. <div class="g_d_group_chair2">
  11539. <div v-if="groupJson.number > 2">
  11540. <span
  11541. :class="{
  11542. isChair:
  11543. groupStudent[toolindex][gindex] &&
  11544. groupStudent[toolindex][gindex][2],
  11545. updateChair:
  11546. courseDetail.userid == userid &&
  11547. groupStudent[toolindex][gindex] &&
  11548. groupStudent[toolindex][gindex][2] &&
  11549. groupJson.islock == 2,
  11550. }"
  11551. ><span
  11552. class="updateChairBtn"
  11553. @click="
  11554. updateGroupChair(
  11555. groupStudent[toolindex][gindex] &&
  11556. groupStudent[toolindex][gindex][2]
  11557. )
  11558. "
  11559. >修改</span
  11560. ></span
  11561. ><span>{{
  11562. groupStudent[toolindex][gindex] &&
  11563. groupStudent[toolindex][gindex][2]
  11564. ? groupStudent[toolindex][gindex] &&
  11565. groupStudent[toolindex][gindex][2].name
  11566. : "空位置"
  11567. }}</span>
  11568. </div>
  11569. <div v-if="groupJson.number > 6">
  11570. <span
  11571. :class="{
  11572. isChair:
  11573. groupStudent[toolindex][gindex] &&
  11574. groupStudent[toolindex][gindex][6],
  11575. updateChair:
  11576. courseDetail.userid == userid &&
  11577. groupStudent[toolindex][gindex] &&
  11578. groupStudent[toolindex][gindex][6] &&
  11579. groupJson.islock == 2,
  11580. }"
  11581. ><span
  11582. class="updateChairBtn"
  11583. @click="
  11584. updateGroupChair(
  11585. groupStudent[toolindex][gindex] &&
  11586. groupStudent[toolindex][gindex][6]
  11587. )
  11588. "
  11589. >修改</span
  11590. ></span
  11591. ><span>{{
  11592. groupStudent[toolindex][gindex] &&
  11593. groupStudent[toolindex][gindex][6]
  11594. ? groupStudent[toolindex][gindex] &&
  11595. groupStudent[toolindex][gindex][6].name
  11596. : "空位置"
  11597. }}</span>
  11598. </div>
  11599. </div>
  11600. <div class="g_d_group_table">
  11601. <div>
  11602. {{ g.name }}
  11603. </div>
  11604. <div>
  11605. <div
  11606. v-if="
  11607. courseDetail.userid == userid && groupJson.islock == 2
  11608. "
  11609. @click="deleteGroupChair(gindex)"
  11610. >
  11611. 移除组员
  11612. </div>
  11613. <div
  11614. @click="selectGroup(gindex)"
  11615. v-else-if="
  11616. groupStudentUid[toolindex] &&
  11617. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11618. "
  11619. >
  11620. 加入分组
  11621. </div>
  11622. <div
  11623. @click="
  11624. exitGroup(
  11625. groupStudent[toolindex][gindex] &&
  11626. groupStudent[toolindex][gindex][
  11627. groupStudentUid[toolindex][gindex].indexOf(userid)
  11628. ].id
  11629. )
  11630. "
  11631. v-else-if="
  11632. groupStudentUid[toolindex] &&
  11633. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11634. "
  11635. >
  11636. 退出分组
  11637. </div>
  11638. </div>
  11639. </div>
  11640. <div class="g_d_group_chair2">
  11641. <div v-if="groupJson.number > 3">
  11642. <span
  11643. :class="{
  11644. isChair:
  11645. groupStudent[toolindex][gindex] &&
  11646. groupStudent[toolindex][gindex][3],
  11647. updateChair:
  11648. courseDetail.userid == userid &&
  11649. groupStudent[toolindex][gindex] &&
  11650. groupStudent[toolindex][gindex][3] &&
  11651. groupJson.islock == 2,
  11652. }"
  11653. ><span
  11654. class="updateChairBtn"
  11655. @click="
  11656. updateGroupChair(
  11657. groupStudent[toolindex][gindex] &&
  11658. groupStudent[toolindex][gindex][3]
  11659. )
  11660. "
  11661. >修改</span
  11662. ></span
  11663. ><span>{{
  11664. groupStudent[toolindex][gindex] &&
  11665. groupStudent[toolindex][gindex][3]
  11666. ? groupStudent[toolindex][gindex] &&
  11667. groupStudent[toolindex][gindex][3].name
  11668. : "空位置"
  11669. }}</span>
  11670. </div>
  11671. <div v-if="groupJson.number > 7">
  11672. <span
  11673. :class="{
  11674. isChair:
  11675. groupStudent[toolindex][gindex] &&
  11676. groupStudent[toolindex][gindex][7],
  11677. updateChair:
  11678. courseDetail.userid == userid &&
  11679. groupStudent[toolindex][gindex] &&
  11680. groupStudent[toolindex][gindex][7] &&
  11681. groupJson.islock == 2,
  11682. }"
  11683. ><span
  11684. class="updateChairBtn"
  11685. @click="
  11686. updateGroupChair(
  11687. groupStudent[toolindex][gindex] &&
  11688. groupStudent[toolindex][gindex][7]
  11689. )
  11690. "
  11691. >修改</span
  11692. ></span
  11693. ><span>{{
  11694. groupStudent[toolindex][gindex] &&
  11695. groupStudent[toolindex][gindex][7]
  11696. ? groupStudent[toolindex][gindex] &&
  11697. groupStudent[toolindex][gindex][7].name
  11698. : "空位置"
  11699. }}</span>
  11700. </div>
  11701. </div>
  11702. </div>
  11703. <div class="g_d_group_chair">
  11704. <div v-if="groupJson.number > 1">
  11705. <span
  11706. :class="{
  11707. isChair:
  11708. groupStudent[toolindex][gindex] &&
  11709. groupStudent[toolindex][gindex][1],
  11710. updateChair:
  11711. courseDetail.userid == userid &&
  11712. groupStudent[toolindex][gindex] &&
  11713. groupStudent[toolindex][gindex][1] &&
  11714. groupJson.islock == 2,
  11715. }"
  11716. ><span
  11717. class="updateChairBtn"
  11718. @click="
  11719. updateGroupChair(
  11720. groupStudent[toolindex][gindex] &&
  11721. groupStudent[toolindex][gindex][1]
  11722. )
  11723. "
  11724. >修改</span
  11725. ></span
  11726. ><span>{{
  11727. groupStudent[toolindex][gindex] &&
  11728. groupStudent[toolindex][gindex][1]
  11729. ? groupStudent[toolindex][gindex] &&
  11730. groupStudent[toolindex][gindex][1].name
  11731. : "空位置"
  11732. }}</span>
  11733. </div>
  11734. <div v-if="groupJson.number > 5">
  11735. <span
  11736. :class="{
  11737. isChair:
  11738. groupStudent[toolindex][gindex] &&
  11739. groupStudent[toolindex][gindex][5],
  11740. updateChair:
  11741. courseDetail.userid == userid &&
  11742. groupStudent[toolindex][gindex] &&
  11743. groupStudent[toolindex][gindex][5] &&
  11744. groupJson.islock == 2,
  11745. }"
  11746. ><span
  11747. class="updateChairBtn"
  11748. @click="
  11749. updateGroupChair(
  11750. groupStudent[toolindex][gindex] &&
  11751. groupStudent[toolindex][gindex][5]
  11752. )
  11753. "
  11754. >修改</span
  11755. ></span
  11756. ><span>{{
  11757. groupStudent[toolindex][gindex] &&
  11758. groupStudent[toolindex][gindex][5]
  11759. ? groupStudent[toolindex][gindex] &&
  11760. groupStudent[toolindex][gindex][5].name
  11761. : "空位置"
  11762. }}</span>
  11763. </div>
  11764. <div v-if="groupJson.number > 9">
  11765. <span
  11766. :class="{
  11767. isChair:
  11768. groupStudent[toolindex][gindex] &&
  11769. groupStudent[toolindex][gindex][9],
  11770. updateChair:
  11771. courseDetail.userid == userid &&
  11772. groupStudent[toolindex][gindex] &&
  11773. groupStudent[toolindex][gindex][9] &&
  11774. groupJson.islock == 2,
  11775. }"
  11776. ><span
  11777. class="updateChairBtn"
  11778. @click="
  11779. updateGroupChair(
  11780. groupStudent[toolindex][gindex] &&
  11781. groupStudent[toolindex][gindex][9]
  11782. )
  11783. "
  11784. >修改</span
  11785. ></span
  11786. ><span>{{
  11787. groupStudent[toolindex][gindex] &&
  11788. groupStudent[toolindex][gindex][9]
  11789. ? groupStudent[toolindex][gindex] &&
  11790. groupStudent[toolindex][gindex][9].name
  11791. : "空位置"
  11792. }}</span>
  11793. </div>
  11794. </div>
  11795. </div>
  11796. </div>
  11797. </div>
  11798. </div>
  11799. <span slot="footer" class="dialog-footer">
  11800. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11801. </span>
  11802. </el-dialog>
  11803. <el-dialog
  11804. title="分组设置"
  11805. :visible.sync="dialogVisibleGroup2"
  11806. :append-to-body="true"
  11807. width="650px"
  11808. :before-close="handleClose"
  11809. class="dialog_diy"
  11810. >
  11811. <div class="groupBox">
  11812. <div v-if="groupJson2.group" class="groupContent">
  11813. <div class="groupTitle">请设置小组数量及名称</div>
  11814. <div
  11815. v-for="(item, index) in groupJson2.group"
  11816. :key="index"
  11817. class="groupName"
  11818. >
  11819. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11820. <el-input
  11821. v-model="item.name"
  11822. placeholder="请输入名称..."
  11823. style="width: 250px"
  11824. ></el-input>
  11825. <!-- <div class="groupBtn">
  11826. <el-button type="primary" size="small" @click="addGroup(index)">
  11827. 添加</el-button>
  11828. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11829. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11830. </div> -->
  11831. </div>
  11832. </div>
  11833. <div class="groupContent">
  11834. <div class="groupTitle">请设置每组人数</div>
  11835. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11836. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11837. <el-input
  11838. v-model="groupJson.number"
  11839. style="width: 150px"
  11840. placeholder="请输入2-10的数字"
  11841. @change="numberPan"
  11842. ></el-input>
  11843. </div>
  11844. </div>
  11845. <span slot="footer" class="dialog-footer">
  11846. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11847. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11848. </span>
  11849. </el-dialog>
  11850. <el-dialog
  11851. title="作业提交"
  11852. :visible.sync="dialogVisibleGroupWork"
  11853. :append-to-body="true"
  11854. width="500px"
  11855. :before-close="handleClose"
  11856. class="dialog_change"
  11857. >
  11858. <div class="marginT">
  11859. <div>上传文件</div>
  11860. <div
  11861. class="chapter_add"
  11862. @click="addImg($event)"
  11863. v-if="studyJuri[0].cover.length == 0"
  11864. >
  11865. <div class="up_photo">
  11866. <img src="../../assets/icon/uploadImg.png" alt />
  11867. </div>
  11868. <!-- <input
  11869. type="file"
  11870. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11871. style="display: none"
  11872. @change="beforeUpload1($event, 1)"
  11873. /> -->
  11874. <input
  11875. type="file"
  11876. accept="*"
  11877. style="display: none"
  11878. @change="beforeUpload1($event, 1)"
  11879. />
  11880. </div>
  11881. <!-- capture="camera" -->
  11882. <div
  11883. class="chapter_add"
  11884. style="
  11885. display: flex;
  11886. width: 100%;
  11887. flex-direction: row;
  11888. flex-wrap: wrap;
  11889. justify-content: flex-start;
  11890. padding: 15px 0;
  11891. "
  11892. v-if="studyJuri[0].cover.length > 0"
  11893. >
  11894. <div class="upCover">
  11895. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11896. <img :src="word" alt v-else-if="fileType == 1" />
  11897. <img :src="video" alt v-else-if="fileType == 2" />
  11898. <img :src="word2" alt v-else-if="fileType == 3" />
  11899. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11900. <div class="deleteWord" @click="clean(1)">
  11901. <img src="../../assets/icon/deleteWorks.png" alt />
  11902. </div>
  11903. </div>
  11904. </div>
  11905. </div>
  11906. <div
  11907. class="upload_send"
  11908. @click="addCourseWorks2(taskCount)"
  11909. v-if="!proVisible"
  11910. >
  11911. 提交
  11912. </div>
  11913. </el-dialog>
  11914. <el-dialog
  11915. title="修改分组"
  11916. :visible.sync="dialogVisibleUpdateGroup"
  11917. :append-to-body="true"
  11918. width="350px"
  11919. :before-close="handleClose"
  11920. class="dialog_diy"
  11921. >
  11922. <div>
  11923. <h2>
  11924. {{ this.updateGroupUser.name }}
  11925. </h2>
  11926. <div style="color: rgb(171 171 171); margin-top: 10px">
  11927. 请选择要进入的分组
  11928. </div>
  11929. <el-radio-group v-model="checkChair">
  11930. <el-radio
  11931. style="display: block; margin-top: 20px"
  11932. v-for="(item, index) in updateGroupArray"
  11933. :label="item.label"
  11934. :key="index"
  11935. >{{ item.name }}</el-radio
  11936. >
  11937. </el-radio-group>
  11938. </div>
  11939. <span slot="footer" class="dialog-footer">
  11940. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11941. <el-button type="primary" @click="updateChair">确定</el-button>
  11942. </span>
  11943. </el-dialog>
  11944. <el-dialog
  11945. title="移除组员"
  11946. :visible.sync="dialogVisibleDeleteGroup"
  11947. :append-to-body="true"
  11948. width="350px"
  11949. :before-close="handleClose"
  11950. class="dialog_diy"
  11951. >
  11952. <div>
  11953. <h2>
  11954. {{ this.deleteGroupArray.name }}
  11955. </h2>
  11956. <div style="color: rgb(171 171 171); margin-top: 10px">
  11957. 请选择要删除的组员
  11958. </div>
  11959. <el-checkbox-group v-model="checkDeleteGroup">
  11960. <el-checkbox
  11961. style="display: flex; margin-top: 20px"
  11962. v-for="(item, index) in deleteGroupUser"
  11963. :label="item.userid"
  11964. :key="index"
  11965. >{{ item.name }}</el-checkbox
  11966. >
  11967. </el-checkbox-group>
  11968. </div>
  11969. <span slot="footer" class="dialog-footer">
  11970. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11971. <el-button type="primary" @click="deleteChair">确定</el-button>
  11972. </span>
  11973. </el-dialog>
  11974. <el-dialog
  11975. title="批量上传"
  11976. :visible.sync="dialogVisiblePl"
  11977. :append-to-body="true"
  11978. width="700px"
  11979. :before-close="handleClose"
  11980. class="dialog_change"
  11981. >
  11982. <div class="marginT">
  11983. <div class="plworkBox">
  11984. <div
  11985. class="chapter_add"
  11986. style="
  11987. display: flex;
  11988. width: 150px;
  11989. flex-direction: row;
  11990. flex-wrap: wrap;
  11991. justify-content: flex-start;
  11992. margin: 0 10px 10px 0;
  11993. "
  11994. v-for="(item, index) in plworkFile"
  11995. :key="index"
  11996. >
  11997. <div class="upCover2">
  11998. <img
  11999. :src="item.url"
  12000. alt
  12001. v-if="item.fileType == 1"
  12002. @click="previewImg(item.url)"
  12003. />
  12004. <img :src="word" alt v-else-if="item.fileType == 4" />
  12005. <img :src="video" alt v-else />
  12006. <!-- <span class="picName">{{ item.name }}</span> -->
  12007. <!-- <el-input
  12008. v-model="item.username"
  12009. placeholder="请输入学生名字"
  12010. style="margin-top: 10px"
  12011. ></el-input> -->
  12012. <div
  12013. class="pl_select_box"
  12014. @click="
  12015. getUpdateMore(true, checkUpload(), item.username, index)
  12016. "
  12017. >
  12018. {{ getSName(item.username) }}
  12019. </div>
  12020. <!-- <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  12021. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  12022. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  12023. </el-option>
  12024. </el-select> -->
  12025. <div class="deleteWord" @click="clean2(index)">
  12026. <img src="../../assets/icon/deleteWorks.png" alt />
  12027. </div>
  12028. </div>
  12029. </div>
  12030. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12031. <div class="up_photo2">
  12032. <img src="../../assets/icon/plwork.png" alt />
  12033. <span>点击上传文件</span>
  12034. </div>
  12035. <input
  12036. type="file"
  12037. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12038. multiple="multiple"
  12039. style="display: none"
  12040. @change="beforeUpload3($event, 6)"
  12041. />
  12042. </div>
  12043. </div>
  12044. </div>
  12045. <!-- capture="camera" -->
  12046. <div
  12047. class="upload_send"
  12048. @click="addCourseWorksPl(taskCount)"
  12049. v-if="!proVisible2"
  12050. >
  12051. 提交
  12052. </div>
  12053. </el-dialog>
  12054. <el-dialog
  12055. title="修改名称"
  12056. :visible.sync="dialogVisibleSname"
  12057. width="500px"
  12058. :before-close="handleClose"
  12059. class="dialog_diy"
  12060. center
  12061. >
  12062. <div
  12063. style="
  12064. text-align: center;
  12065. display: flex;
  12066. align-items: center;
  12067. justify-content: center;
  12068. "
  12069. >
  12070. <span class="tian1">名称</span>
  12071. <div
  12072. class="pl_select_box"
  12073. style="margin-left: 10px; width: 200px"
  12074. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12075. >
  12076. {{ getSName(worksSName) }}
  12077. </div>
  12078. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12079. placeholder="请选择学生">
  12080. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12081. :value="item.userid">
  12082. </el-option>
  12083. </el-select> -->
  12084. <!-- <el-input
  12085. v-model="worksSName"
  12086. style="width: 250px; margin: 15px 0px"
  12087. ></el-input> -->
  12088. </div>
  12089. <span slot="footer" class="dialog-footer">
  12090. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12091. <el-button type="primary" @click="updateName">确 定</el-button>
  12092. </span>
  12093. </el-dialog>
  12094. <interVideo
  12095. :dialogVisibleVideo.sync="dialogVisibleVideo"
  12096. :videoJson="videoJson"
  12097. :userid="userid"
  12098. :id="id"
  12099. :courseType="courseType"
  12100. :taskCount="taskCount"
  12101. :toolindex="toolindex"
  12102. ></interVideo>
  12103. <UpdateMore
  12104. :dialogVisibleMember.sync="dialogVisibleMember"
  12105. :cList="uploadStudentJuri"
  12106. :userid="userid"
  12107. :searchTN="worksSName2"
  12108. @setPlname="setPlname"
  12109. ></UpdateMore>
  12110. <wordCloud
  12111. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  12112. :data="wordCloudData"
  12113. ></wordCloud>
  12114. <el-dialog
  12115. title="挑人"
  12116. :visible.sync="dialogVisiblePickPeople"
  12117. width="650px"
  12118. :before-close="handleClose"
  12119. class="dialog_diy"
  12120. center
  12121. >
  12122. <div class="pick_box">
  12123. <div
  12124. class="noWorksName"
  12125. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  12126. v-for="(item, index) in uploadStudentJuri"
  12127. :key="index"
  12128. @click="pickStudent(item)"
  12129. >
  12130. {{ item.name }}
  12131. </div>
  12132. </div>
  12133. </el-dialog>
  12134. </div>
  12135. </template>
  12136. <script>
  12137. import "../../common/aws-sdk-2.235.1.min.js";
  12138. // import pdf from "../components/pdf3";
  12139. import pdf from "../components/vpdf";
  12140. import AskStatic from "../components/askStatic";
  12141. import AskStatic2 from "../components/askStatic2";
  12142. import AnswerData2 from "../components/answerData2";
  12143. import AnswerData from "../components/answerData";
  12144. import EditorBar from "../tools/wangEnduit.vue";
  12145. import Table from "../tools/table.vue";
  12146. import Time from "../tools/time.vue";
  12147. import Mind from "../tools/jsmind.vue";
  12148. import Sunburst from "../tools/sunburst";
  12149. import SeeBoard from "../tools/seeBoard";
  12150. import * as imageConversion from "image-conversion";
  12151. import Audio from "../components/audio.vue";
  12152. import ImgDraw from "../tools/imgDraw/imgDraw";
  12153. import { Empty } from "element-ui";
  12154. import RecordRTC from "recordrtc";
  12155. import interVideo from "../interVideo/index.vue";
  12156. import UpdateMore from "../updateMore/updateMore.vue";
  12157. import wordCloud from "../wordCloud/index.vue";
  12158. import axios from "axios";
  12159. import JSZip from "jszip";
  12160. import FileSaver from "file-saver";
  12161. const getFile = (url) => {
  12162. return new Promise((resolve, reject) => {
  12163. axios({
  12164. method: "get",
  12165. url,
  12166. responseType: "blob",
  12167. })
  12168. .then((data) => {
  12169. resolve({ data: data.data });
  12170. })
  12171. .catch((error) => {
  12172. resolve({ data: 1 });
  12173. // reject(error.toString());
  12174. });
  12175. });
  12176. };
  12177. export default {
  12178. components: {
  12179. EditorBar,
  12180. Time,
  12181. pdf,
  12182. AskStatic,
  12183. AskStatic2,
  12184. Mind,
  12185. Sunburst,
  12186. SeeBoard,
  12187. AnswerData2,
  12188. AnswerData,
  12189. Audio,
  12190. ImgDraw,
  12191. Table,
  12192. interVideo,
  12193. UpdateMore,
  12194. wordCloud,
  12195. },
  12196. data() {
  12197. return {
  12198. bg: null,
  12199. drawShow: false,
  12200. dialogVisible: false,
  12201. dialogVisiblePl: false,
  12202. commentDialogVisible: false,
  12203. videoVisible: false,
  12204. isStar: false,
  12205. studentEvalDialogVisible: false,
  12206. studentEvalDialogVisibleTeacher: false,
  12207. dialogVisibleSelect: false,
  12208. dialogVisibleSelectTeacher: false,
  12209. dialogVisibleScore: false,
  12210. dialogVisibleSentence: false,
  12211. dialogVisibleSentenceTeacher: false,
  12212. dialogVisibleSentence1: false,
  12213. dialogVisibleWorks: false,
  12214. answerDialogVisibleTeacher: false,
  12215. dialogVisibleTable: false,
  12216. dialogVisibleTableTeacher: false,
  12217. dialogVisibleWord: false,
  12218. dialogVisibleWordTeacher: false,
  12219. dialogVisibleTable2: false,
  12220. dialogVisibleTable3: false,
  12221. dialogVisibleGroupWork: false,
  12222. dialogVisibleUpdateGroup: false,
  12223. dialogVisibleDeleteGroup: false,
  12224. dialogVisibleSname: false,
  12225. dialogVisibleVideo: false,
  12226. dialogVisiblePickPeople: false,
  12227. isClose: 0,
  12228. worksSName: "",
  12229. classJuri: [],
  12230. uploadStudentJuri: [],
  12231. uploadCid: "",
  12232. snameWid: "",
  12233. sStudent: {},
  12234. sTool: "",
  12235. bzText: "",
  12236. commentDetail: [],
  12237. selectAnswer: [],
  12238. videoDetail: {},
  12239. selectJson: {},
  12240. eScore: { eBzText: "", eStar: [] },
  12241. id: this.$route.query.courseId,
  12242. userid: this.$route.query.userid,
  12243. classId: this.$route.query.cid,
  12244. // courseTypeLine: this.$route.query.type,
  12245. oid: this.$route.query.oid,
  12246. org: this.$route.query.org,
  12247. tType: this.$route.query.tType,
  12248. courseType: this.$route.query.type,
  12249. screenType: this.$route.query.screenType,
  12250. tcid2: this.$route.query.tcid,
  12251. tcid: "",
  12252. pptImgUrl: "",
  12253. pptImgUrl1: "",
  12254. commentText: "",
  12255. full: false,
  12256. sIsOpen: false,
  12257. IsLookOpen: false,
  12258. IsFollow: false,
  12259. pzDialog: false,
  12260. contentDialog: false,
  12261. mlDialog: false,
  12262. type: 1,
  12263. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12264. sentenceList1: [],
  12265. tableJson: [],
  12266. wordJson: [],
  12267. vedio: [],
  12268. text: [],
  12269. textList: [],
  12270. line: [],
  12271. lineList: [],
  12272. chapTools: [],
  12273. chapToolList: [],
  12274. file: [],
  12275. fileC: [],
  12276. vedioTime: [],
  12277. upToolImg: "",
  12278. preTime: 0,
  12279. rateList: {
  12280. ca: 0,
  12281. },
  12282. rateParams: [],
  12283. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12284. studyJuri: [
  12285. {
  12286. content: "",
  12287. cover: [],
  12288. upVedio: [],
  12289. upFile: [],
  12290. },
  12291. ],
  12292. plworkFile: [],
  12293. mr: require("../../assets/vedioPic.png"),
  12294. word: require("../../assets/icon/isWord.png"),
  12295. word2: require("../../assets/icon/word2.png"),
  12296. video: require("../../assets/icon/isVideo.png"),
  12297. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12298. likes: require("../../assets/icon/comment/likes.png"),
  12299. scoreImg: require("../../assets/score.png"),
  12300. courseDetail: {},
  12301. isSelect: false,
  12302. chapInfo: [],
  12303. chapInfoList: [],
  12304. taskCount: 0,
  12305. imgList: [],
  12306. noImgList: [],
  12307. pzList: [],
  12308. PlTextList: [
  12309. "Excellent!",
  12310. "nice!",
  12311. "很有创意!",
  12312. "还不错哦~",
  12313. "继续努力哦~",
  12314. ],
  12315. isClickNav: "",
  12316. navId: "",
  12317. playerOptions: {
  12318. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12319. autoplay: false, //如果true,浏览器准备好时开始回放。
  12320. muted: false, // 默认情况下将会消除任何音频。
  12321. loop: false, // 导致视频一结束就重新开始。
  12322. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12323. language: "zh-CN",
  12324. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12325. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12326. sources: [
  12327. {
  12328. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12329. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  12330. },
  12331. ],
  12332. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  12333. // poster: dataRes.imgUrl, //你的封面地址
  12334. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12335. controlBar: {
  12336. timeDivider: true, //当前时间和持续时间的分隔符
  12337. durationDisplay: true, //显示持续时间
  12338. remainingTimeDisplay: false, //是否显示剩余时间功能
  12339. fullscreenToggle: true, //全屏按钮
  12340. },
  12341. },
  12342. playerOptions1: {
  12343. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12344. autoplay: false, //如果true,浏览器准备好时开始回放。
  12345. muted: false, // 默认情况下将会消除任何音频。
  12346. loop: false, // 导致视频一结束就重新开始。
  12347. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12348. language: "zh-CN",
  12349. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12350. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12351. sources: [
  12352. {
  12353. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12354. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  12355. },
  12356. ],
  12357. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  12358. // poster: dataRes.imgUrl, //你的封面地址
  12359. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12360. controlBar: {
  12361. timeDivider: true, //当前时间和持续时间的分隔符
  12362. durationDisplay: true, //显示持续时间
  12363. remainingTimeDisplay: false, //是否显示剩余时间功能
  12364. fullscreenToggle: true, //全屏按钮
  12365. },
  12366. },
  12367. playerO: {},
  12368. noneBtnImg: false,
  12369. proVisible: false,
  12370. proVisible2: false,
  12371. progress: 0,
  12372. isFinishSize: 0,
  12373. isAllSize: 0,
  12374. questionAnswer: "",
  12375. answerQ: "", //问答标题
  12376. rateJson: [],
  12377. wbCount: 0,
  12378. wordCount: 0,
  12379. mindCount: 0,
  12380. askCount: 0,
  12381. noteCount: 0,
  12382. mindNetWorkCount: 0,
  12383. libraryCount: 0,
  12384. workCount: 0,
  12385. timeCount: 0,
  12386. answerCount: 0,
  12387. trainCount: 0,
  12388. evalCount: 0,
  12389. dialogImageUrl: "",
  12390. pictureDialog: false,
  12391. toolTypeList: [],
  12392. dialogVisible1: false,
  12393. dialogVisible2: false,
  12394. dialogVisible3: false,
  12395. dialogVisible6: false,
  12396. dialogVisible4: false,
  12397. isNoHomeWork: false,
  12398. dialogVisible5: false,
  12399. dialogVisible5Teacher: false,
  12400. dialogVisibleChoice: false,
  12401. dialogVisibleChoiceTeacher: false,
  12402. answerDialogVisible: false,
  12403. juriVisible: false,
  12404. timeDialogVisible: false,
  12405. replyDialogVisible: false,
  12406. toolDialogVisible: false,
  12407. replyIndex: 0,
  12408. replyPid: "",
  12409. radio: [],
  12410. isAsk: false,
  12411. askJson: {
  12412. askCount: 1,
  12413. askTitle: "",
  12414. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12415. },
  12416. testJson: {},
  12417. checkJson: [],
  12418. askList: [],
  12419. answerList: [],
  12420. navList: [],
  12421. addPzDialog: false,
  12422. ispzType: 1,
  12423. pzConText: "",
  12424. worksStudent: [],
  12425. worksStudent2: [],
  12426. worksTeacher: [],
  12427. isCloseList: [],
  12428. workStudent: [],
  12429. groupStudent: [],
  12430. groupStudentUid: [],
  12431. noWorksS: [],
  12432. isWorksS: [],
  12433. noWorksStudent: [],
  12434. toolindex: 0,
  12435. groupIndex: 0,
  12436. workTypeB: false,
  12437. workTypeC: false,
  12438. isAnswer: false,
  12439. isHovered: false,
  12440. isHovered1: false,
  12441. timer: null,
  12442. opertimer: null,
  12443. showType: 0,
  12444. fileType: 0,
  12445. showPDF: false,
  12446. noteName: "",
  12447. evaJuri: [],
  12448. evalua: "",
  12449. eTitle: "",
  12450. eName: "",
  12451. eJson: {},
  12452. fid: "", //一级
  12453. sid: "", //二级
  12454. tid: "", //二级
  12455. typeMode: 1,
  12456. eJSONNum: 0,
  12457. Etype: 1,
  12458. data: {
  12459. meta: {
  12460. name: "example",
  12461. author: "dd@163.com",
  12462. version: "0.2",
  12463. },
  12464. format: "node_array",
  12465. data: [{ id: "root", isroot: true, topic: "" }],
  12466. },
  12467. fullDialogVisible: false,
  12468. fulltype: "",
  12469. fullUrl: "",
  12470. commentIndexJson: {},
  12471. Stbodywidth: 0,
  12472. pzType: 1,
  12473. wScore: 0,
  12474. scoreDetail: "",
  12475. videoStart: false,
  12476. recorder: null,
  12477. groupJson: {},
  12478. groupJson2: {},
  12479. dialogVisibleGroup: false,
  12480. dialogVisibleGroup2: false,
  12481. updateGroupArray: [],
  12482. updateGroupUser: {},
  12483. deleteGroupUser: [],
  12484. deleteGroupArray: {},
  12485. checkChair: "",
  12486. checkDeleteGroup: [],
  12487. inviteCode: "",
  12488. courseGroupStudent: [],
  12489. courseGroupStudentUid: [],
  12490. courseGroup: {},
  12491. isGroup: false,
  12492. toolIndex: null,
  12493. tool: {},
  12494. isWorkTool: [
  12495. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12496. ], //, 40
  12497. videoJson: {},
  12498. toolType: 0,
  12499. checktoolArray: [],
  12500. vChapterData: [],
  12501. isUpdateToolDetail: false,
  12502. updateToolDetailInner: "",
  12503. plIndex: "",
  12504. worksSName2: "",
  12505. worksSid: "",
  12506. dialogVisibleWordCloud: false,
  12507. wordCloudData: [],
  12508. isPickStudent: [],
  12509. pzStype: 1,
  12510. };
  12511. },
  12512. methods: {
  12513. jump() {
  12514. window.topU.postMessage({ tools: "43" }, "*");
  12515. },
  12516. getUpdateMore(f, checkboxList, searchTN, index) {
  12517. this.dialogVisibleMember = f;
  12518. this.checkboxList = checkboxList;
  12519. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12520. this.plIndex = index;
  12521. },
  12522. setPlname(a) {
  12523. if (this.plworkFile.length) {
  12524. this.plworkFile[this.plIndex].username = a;
  12525. } else {
  12526. this.worksSName = a;
  12527. }
  12528. this.dialogVisibleMember = false;
  12529. },
  12530. previewImg(url) {
  12531. this.$hevueImgPreview(url);
  12532. },
  12533. checkImg(list) {
  12534. if (!list.length) {
  12535. return;
  12536. }
  12537. this.$hevueImgPreview({
  12538. multiple: true, // 开启多图预览模式
  12539. imgList: list, // 需要预览的多图数组
  12540. });
  12541. },
  12542. change(val) {
  12543. console.log(val);
  12544. },
  12545. goTo(path) {
  12546. this.$router.push(path);
  12547. },
  12548. handlePictureCardPreview(url) {
  12549. this.dialogImageUrl = url;
  12550. this.pictureDialog = true;
  12551. },
  12552. clean(type) {
  12553. if (type == 1) {
  12554. this.studyJuri[0].cover.splice(0, 1);
  12555. } else if (type == 2) {
  12556. this.studyJuri[0].upVedio.splice(0, 1);
  12557. } else {
  12558. this.studyJuri[0].upFile.splice(0, 1);
  12559. }
  12560. },
  12561. clean2(index) {
  12562. this.plworkFile.splice(index, 1);
  12563. },
  12564. handleClose(done) {
  12565. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12566. this.videoDetail.sources[0].src = "";
  12567. }
  12568. this.commentIndexJson = {};
  12569. done();
  12570. },
  12571. fullTools() {
  12572. this.full = !this.full;
  12573. },
  12574. imgChange(file, fileList, type) {
  12575. if (type == 1) {
  12576. var _tmp = this.studyJuri[0].cover;
  12577. } else if (type == 2) {
  12578. var _tmp = this.studyJuri[0].upVedio;
  12579. } else {
  12580. var _tmp = this.studyJuri[0].upFile;
  12581. }
  12582. this.noneBtnImg = _tmp.length >= 1;
  12583. },
  12584. setContent(bool) {
  12585. this.contentDialog = bool;
  12586. if (bool && this.mlDialog) {
  12587. document.querySelector(".workd_media").style.height = "650px";
  12588. } else {
  12589. document.querySelector(".workd_media").style.height = "auto";
  12590. }
  12591. },
  12592. setContent2(bool) {
  12593. this.mlDialog = bool;
  12594. if (bool && this.contentDialog) {
  12595. document.querySelector(".workd_media").style.height = "650px";
  12596. } else {
  12597. document.querySelector(".workd_media").style.height = "auto";
  12598. }
  12599. },
  12600. addImg(e) {
  12601. var el = e.currentTarget;
  12602. // this.$message.success('触发上传')
  12603. el.getElementsByTagName("input")[0].click();
  12604. e.target.value = "";
  12605. },
  12606. addSelectAnswer() {
  12607. let params = [
  12608. {
  12609. uid: this.userid,
  12610. cid: this.id,
  12611. stage: this.courseType,
  12612. task: this.taskCount,
  12613. tool: this.toolindex,
  12614. content: this.selectAnswer.answer,
  12615. type: 7,
  12616. },
  12617. ];
  12618. this.ajax
  12619. .post(this.$store.state.api + "addCourseWorks", params)
  12620. .then((res) => {
  12621. this.$message({
  12622. message: "提交成功",
  12623. type: "success",
  12624. });
  12625. this.dialogVisibleSelect = false;
  12626. // this.selectAnswer = {};
  12627. this.selectSWorks();
  12628. this.selectStudent();
  12629. })
  12630. .catch((err) => {
  12631. this.$message.error("提交失败");
  12632. console.error(err);
  12633. });
  12634. },
  12635. addSelectAnswerTeacher() {
  12636. let params = [
  12637. {
  12638. uid: this.sStudent.userid,
  12639. cid: this.id,
  12640. stage: this.courseType,
  12641. task: this.taskCount,
  12642. tool: this.toolindex,
  12643. content: this.selectAnswer.answer,
  12644. type: 7,
  12645. },
  12646. ];
  12647. this.ajax
  12648. .post(this.$store.state.api + "addCourseWorks", params)
  12649. .then((res) => {
  12650. this.$message({
  12651. message: "提交成功",
  12652. type: "success",
  12653. });
  12654. this.dialogVisibleSelectTeacher = false;
  12655. // this.selectAnswer = {};
  12656. this.selectSWorks();
  12657. this.selectStudent();
  12658. })
  12659. .catch((err) => {
  12660. this.$message.error("提交失败");
  12661. console.error(err);
  12662. });
  12663. },
  12664. addSenWorks() {
  12665. for (var i = 0; i < this.sentenceList.length; i++) {
  12666. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12667. if (
  12668. this.sentenceList[i].chooseSenList[j] == undefined ||
  12669. this.sentenceList[i].chooseSenList[j] == ""
  12670. ) {
  12671. this.$message.error("请将答案填写完整!");
  12672. return;
  12673. }
  12674. }
  12675. }
  12676. let params = [
  12677. {
  12678. uid: this.userid,
  12679. cid: this.id,
  12680. stage: this.courseType,
  12681. task: this.taskCount,
  12682. tool: this.toolindex,
  12683. content: JSON.stringify(this.sentenceList),
  12684. type: 9,
  12685. },
  12686. ];
  12687. this.ajax
  12688. .post(this.$store.state.api + "addCourseWorks", params)
  12689. .then((res) => {
  12690. this.$message({
  12691. message: "提交成功",
  12692. type: "success",
  12693. });
  12694. this.dialogVisibleSentence = false;
  12695. // this.selectAnswer = {};
  12696. this.selectSWorks();
  12697. this.selectStudent();
  12698. })
  12699. .catch((err) => {
  12700. this.$message.error("提交失败");
  12701. console.error(err);
  12702. });
  12703. },
  12704. addSenWorksTeacher() {
  12705. for (var i = 0; i < this.sentenceList.length; i++) {
  12706. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12707. if (
  12708. this.sentenceList[i].chooseSenList[j] == undefined ||
  12709. this.sentenceList[i].chooseSenList[j] == ""
  12710. ) {
  12711. this.$message.error("请将答案填写完整!");
  12712. return;
  12713. }
  12714. }
  12715. }
  12716. let params = [
  12717. {
  12718. uid: this.sStudent.userid,
  12719. cid: this.id,
  12720. stage: this.courseType,
  12721. task: this.taskCount,
  12722. tool: this.toolindex,
  12723. content: JSON.stringify(this.sentenceList),
  12724. type: 9,
  12725. },
  12726. ];
  12727. this.ajax
  12728. .post(this.$store.state.api + "addCourseWorks", params)
  12729. .then((res) => {
  12730. this.$message({
  12731. message: "提交成功",
  12732. type: "success",
  12733. });
  12734. this.dialogVisibleSentenceTeacher = false;
  12735. // this.selectAnswer = {};
  12736. this.selectSWorks();
  12737. this.selectStudent();
  12738. })
  12739. .catch((err) => {
  12740. this.$message.error("提交失败");
  12741. console.error(err);
  12742. });
  12743. },
  12744. addTableWorks() {
  12745. let params = [
  12746. {
  12747. uid: this.userid,
  12748. cid: this.id,
  12749. stage: this.courseType,
  12750. task: this.taskCount,
  12751. tool: this.toolindex,
  12752. content: JSON.stringify(this.tableJson),
  12753. type: 10,
  12754. },
  12755. ];
  12756. this.ajax
  12757. .post(this.$store.state.api + "addCourseWorks", params)
  12758. .then((res) => {
  12759. this.$message({
  12760. message: "提交成功",
  12761. type: "success",
  12762. });
  12763. this.dialogVisibleTable = false;
  12764. // this.selectAnswer = {};
  12765. this.selectSWorks();
  12766. this.selectStudent();
  12767. })
  12768. .catch((err) => {
  12769. this.$message.error("提交失败");
  12770. console.error(err);
  12771. });
  12772. },
  12773. addTableWorksTeacher() {
  12774. let params = [
  12775. {
  12776. uid: this.sStudent.userid,
  12777. cid: this.id,
  12778. stage: this.courseType,
  12779. task: this.taskCount,
  12780. tool: this.toolindex,
  12781. content: JSON.stringify(this.tableJson),
  12782. type: 10,
  12783. },
  12784. ];
  12785. this.ajax
  12786. .post(this.$store.state.api + "addCourseWorks", params)
  12787. .then((res) => {
  12788. this.$message({
  12789. message: "提交成功",
  12790. type: "success",
  12791. });
  12792. this.dialogVisibleTableTeacher = false;
  12793. // this.selectAnswer = {};
  12794. this.selectSWorks();
  12795. this.selectStudent();
  12796. })
  12797. .catch((err) => {
  12798. this.$message.error("提交失败");
  12799. console.error(err);
  12800. });
  12801. },
  12802. addWordWorks() {
  12803. let params = [
  12804. {
  12805. uid: this.userid,
  12806. cid: this.id,
  12807. stage: this.courseType,
  12808. task: this.taskCount,
  12809. tool: this.toolindex,
  12810. content: JSON.stringify(this.wordJson),
  12811. type: 13,
  12812. atool: 52,
  12813. },
  12814. ];
  12815. console.log(params);
  12816. this.ajax
  12817. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12818. .then((res) => {
  12819. this.$message({
  12820. message: "提交成功",
  12821. type: "success",
  12822. });
  12823. this.dialogVisibleWord = false;
  12824. // this.selectAnswer = {};
  12825. this.selectSWorks();
  12826. this.selectStudent();
  12827. })
  12828. .catch((err) => {
  12829. this.$message.error("提交失败");
  12830. console.error(err);
  12831. });
  12832. },
  12833. addWordWorksTeacher() {
  12834. let params = [
  12835. {
  12836. uid: this.sStudent.userid,
  12837. cid: this.id,
  12838. stage: this.courseType,
  12839. task: this.taskCount,
  12840. tool: this.toolindex,
  12841. content: JSON.stringify(this.wordJson),
  12842. type: 13,
  12843. atool: 52,
  12844. },
  12845. ];
  12846. console.log(params);
  12847. this.ajax
  12848. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12849. .then((res) => {
  12850. this.$message({
  12851. message: "提交成功",
  12852. type: "success",
  12853. });
  12854. this.dialogVisibleWordTeacher = false;
  12855. // this.selectAnswer = {};
  12856. this.selectSWorks();
  12857. this.selectStudent();
  12858. })
  12859. .catch((err) => {
  12860. this.$message.error("提交失败");
  12861. console.error(err);
  12862. });
  12863. },
  12864. addCourseWorks(i) {
  12865. var typesql;
  12866. if (this.fileType === 0) {
  12867. typesql = 1;
  12868. } else if (this.fileType === 1) {
  12869. typesql = 4;
  12870. } else if (this.fileType === 2) {
  12871. typesql = 5;
  12872. } else if (this.fileType === 3) {
  12873. typesql = 12;
  12874. }
  12875. if (!this.studyJuri[0].cover[0].url) {
  12876. this.$message.error("请上传文件");
  12877. return;
  12878. }
  12879. let params = [
  12880. {
  12881. uid: this.userid,
  12882. cid: this.id,
  12883. stage: this.courseType,
  12884. task: i,
  12885. tool: this.toolindex,
  12886. content: this.studyJuri[0].cover[0].url,
  12887. type: typesql,
  12888. },
  12889. ];
  12890. this.ajax
  12891. .post(this.$store.state.api + "addCourseWorksR", params)
  12892. .then((res) => {
  12893. this.$message({
  12894. message: "提交成功",
  12895. type: "success",
  12896. });
  12897. this.studyJuri[0].cover = [];
  12898. this.dialogVisible = false;
  12899. this.getCourseDetail();
  12900. })
  12901. .catch((err) => {
  12902. this.$message.error("提交失败");
  12903. console.error(err);
  12904. });
  12905. },
  12906. addCourseWorksPl(i) {
  12907. let _files = this.plworkFile;
  12908. var c = 1;
  12909. for (var k = 0; k < _files.length; k++) {
  12910. if (!_files[k].username) {
  12911. c = 2;
  12912. }
  12913. }
  12914. if (c == 2) {
  12915. this.$message.error("请填写学生姓名");
  12916. return;
  12917. }
  12918. let params = [
  12919. {
  12920. ateacher: this.userid,
  12921. cid: this.id,
  12922. stage: this.courseType,
  12923. task: i,
  12924. tool: this.toolindex,
  12925. content: JSON.stringify(_files),
  12926. },
  12927. ];
  12928. this.ajax
  12929. .post(this.$store.state.api + "addCourseWorksPl", params)
  12930. .then((res) => {
  12931. this.$message({
  12932. message: "提交成功",
  12933. type: "success",
  12934. });
  12935. this.plworkFile = [];
  12936. this.dialogVisiblePl = false;
  12937. this.getCourseDetail();
  12938. })
  12939. .catch((err) => {
  12940. this.$message.error("提交失败");
  12941. console.error(err);
  12942. });
  12943. },
  12944. addCourseWorks2(i) {
  12945. var typesql;
  12946. if (this.fileType === 0) {
  12947. typesql = 0;
  12948. } else if (this.fileType === 1) {
  12949. typesql = 1;
  12950. } else if (this.fileType === 2) {
  12951. typesql = 3;
  12952. } else if (this.fileType === 3) {
  12953. typesql = 12;
  12954. }
  12955. if (!this.studyJuri[0].cover[0].url) {
  12956. this.$message.error("请上传文件");
  12957. return;
  12958. }
  12959. let params = [
  12960. {
  12961. uid: this.userid,
  12962. cid: this.id,
  12963. stage: this.courseType,
  12964. task: i,
  12965. tool: this.toolindex,
  12966. content: JSON.stringify({
  12967. type: typesql,
  12968. groupIndex: this.groupIndex,
  12969. url: this.studyJuri[0].cover[0].url,
  12970. }),
  12971. type: 11,
  12972. atool: 49,
  12973. text: "",
  12974. },
  12975. ];
  12976. this.ajax
  12977. .post(this.$store.state.api + "addCourseWorks5", params)
  12978. .then((res) => {
  12979. this.$message({
  12980. message: "提交成功",
  12981. type: "success",
  12982. });
  12983. this.studyJuri[0].cover = [];
  12984. this.dialogVisibleGroupWork = false;
  12985. this.getCourseDetail();
  12986. })
  12987. .catch((err) => {
  12988. this.$message.error("提交失败");
  12989. console.error(err);
  12990. });
  12991. },
  12992. addCourseWorksGong(i, data, tool) {
  12993. let params = [
  12994. {
  12995. uid: this.userid,
  12996. cid: this.id,
  12997. stage: this.courseType,
  12998. task: this.taskCount,
  12999. tool: i,
  13000. content: data,
  13001. type: 12,
  13002. atool: tool,
  13003. text: "",
  13004. },
  13005. ];
  13006. this.ajax
  13007. .post(this.$store.state.api + "addCourseWorks5", params)
  13008. .then((res) => {
  13009. this.$message({
  13010. message: "提交成功",
  13011. type: "success",
  13012. });
  13013. this.studyJuri[0].cover = [];
  13014. this.selectSWorks();
  13015. this.selectStudent();
  13016. })
  13017. .catch((err) => {
  13018. this.$message.error("提交失败");
  13019. console.error(err);
  13020. });
  13021. },
  13022. addCourseWorksGongTeacher(i, data, tool) {
  13023. let params = [
  13024. {
  13025. uid: this.sStudent.userid,
  13026. cid: this.id,
  13027. stage: this.courseType,
  13028. task: this.taskCount,
  13029. tool: i,
  13030. content: data,
  13031. type: 12,
  13032. atool: tool,
  13033. text: "",
  13034. },
  13035. ];
  13036. this.ajax
  13037. .post(this.$store.state.api + "addCourseWorks5", params)
  13038. .then((res) => {
  13039. this.$message({
  13040. message: "提交成功",
  13041. type: "success",
  13042. });
  13043. this.studyJuri[0].cover = [];
  13044. this.dialogVisibleWorks = false;
  13045. this.selectSWorks();
  13046. this.selectStudent();
  13047. })
  13048. .catch((err) => {
  13049. this.$message.error("提交失败");
  13050. console.error(err);
  13051. });
  13052. },
  13053. addCourseWorksGongPl(i, data, tool, type) {
  13054. let params = [
  13055. {
  13056. uid: this.sStudent.userid,
  13057. cid: this.id,
  13058. stage: this.courseType,
  13059. task: this.taskCount,
  13060. tool: i,
  13061. content: data,
  13062. type: type,
  13063. atool: tool,
  13064. text: "",
  13065. },
  13066. ];
  13067. this.ajax
  13068. .post(this.$store.state.api + "addCourseWorks5", params)
  13069. .then((res) => {
  13070. this.$message({
  13071. message: "提交成功",
  13072. type: "success",
  13073. });
  13074. this.studyJuri[0].cover = [];
  13075. this.dialogVisibleWorks = false;
  13076. this.selectSWorks();
  13077. this.selectStudent();
  13078. })
  13079. .catch((err) => {
  13080. this.$message.error("提交失败");
  13081. console.error(err);
  13082. });
  13083. },
  13084. addCourseWorksTeacher(i) {
  13085. var typesql;
  13086. if (this.sTool == 32) {
  13087. this.addCourseWorksGongTeacher(
  13088. this.toolindex,
  13089. this.studyJuri[0].cover[0].url,
  13090. this.sTool
  13091. );
  13092. return;
  13093. }
  13094. if (this.fileType === 0) {
  13095. typesql = 1;
  13096. } else if (this.fileType === 1) {
  13097. typesql = 4;
  13098. } else if (this.fileType === 2) {
  13099. typesql = 5;
  13100. } else if (this.fileType === 3) {
  13101. typesql = 12;
  13102. }
  13103. if (this.sTool == 50) {
  13104. this.addCourseWorksGongPl(
  13105. this.toolindex,
  13106. this.studyJuri[0].cover[0].url,
  13107. this.sTool,
  13108. typesql
  13109. );
  13110. return;
  13111. }
  13112. if (!this.studyJuri[0].cover[0].url) {
  13113. this.$message.error("请上传文件");
  13114. return;
  13115. }
  13116. let params = [
  13117. {
  13118. uid: this.sStudent.userid,
  13119. cid: this.id,
  13120. stage: this.courseType,
  13121. task: i,
  13122. tool: this.toolindex,
  13123. content: this.studyJuri[0].cover[0].url,
  13124. type: typesql,
  13125. ateacher: this.userid,
  13126. },
  13127. ];
  13128. this.ajax
  13129. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13130. .then((res) => {
  13131. this.$message({
  13132. message: "提交成功",
  13133. type: "success",
  13134. });
  13135. this.studyJuri[0].cover = [];
  13136. this.dialogVisibleWorks = false;
  13137. this.getCourseDetail();
  13138. })
  13139. .catch((err) => {
  13140. this.$message.error("提交失败");
  13141. console.error(err);
  13142. });
  13143. },
  13144. selectUploadStudent(type) {
  13145. const loading = this.$loading.service({
  13146. background: "rgba(255, 255, 255, 0.7)",
  13147. target: document.body,
  13148. });
  13149. let params = {
  13150. cid: this.uploadCid,
  13151. oid: this.oid,
  13152. cn: "",
  13153. };
  13154. this.ajax
  13155. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13156. .then((res) => {
  13157. loading.close();
  13158. var studentK = [];
  13159. if (this.isWorksS[this.toolindex].length > 0) {
  13160. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13161. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13162. }
  13163. studentK = studentK.join(",");
  13164. }
  13165. this.uploadStudentJuri = res.data[0].filter((el) => {
  13166. return studentK.indexOf(el.userid) == -1;
  13167. });
  13168. if (this.worksSName && this.worksSid) {
  13169. this.uploadStudentJuri.push({
  13170. userid: this.worksSid,
  13171. name: this.worksSName,
  13172. });
  13173. }
  13174. if (type == 1) {
  13175. this.plworkFile = [];
  13176. this.dialogVisibleSname = true;
  13177. } else if (type == 2) {
  13178. this.dialogVisiblePl = true;
  13179. }
  13180. })
  13181. .catch((err) => {
  13182. loading.close();
  13183. console.error(err);
  13184. });
  13185. },
  13186. selectPickStudent() {
  13187. const loading = this.$loading.service({
  13188. background: "rgba(255, 255, 255, 0.7)",
  13189. target: document.body,
  13190. });
  13191. let params = {
  13192. cid: this.uploadCid,
  13193. oid: this.oid,
  13194. cn: "",
  13195. };
  13196. this.ajax
  13197. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13198. .then((res) => {
  13199. loading.close();
  13200. this.uploadStudentJuri = res.data[0];
  13201. this.dialogVisiblePickPeople = true;
  13202. })
  13203. .catch((err) => {
  13204. loading.close();
  13205. console.error(err);
  13206. });
  13207. },
  13208. arrayToArray(arrayo, arrayt) {
  13209. let array1 = arrayo;
  13210. let array2 = arrayt;
  13211. let commonElements = [];
  13212. for (let i = 0; i < array1.length; i++) {
  13213. for (let j = 0; j < array2.length; j++) {
  13214. if (array1[i] === array2[j]) {
  13215. commonElements.push(array1[i]);
  13216. }
  13217. }
  13218. }
  13219. return commonElements;
  13220. },
  13221. selectWorksStudent() {
  13222. let params = {
  13223. oid: this.oid,
  13224. cid: this.courseDetail.juri,
  13225. };
  13226. this.ajax
  13227. .get(this.$store.state.api + "selectWorksStudent", params)
  13228. .then((res) => {
  13229. var a = res.data[0];
  13230. for (var i = 0; i < this.isWorksS.length; i++) {
  13231. this.noWorksS[i] = [];
  13232. var studentK = [];
  13233. if (this.isWorksS[i].length > 0) {
  13234. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13235. studentK.push(this.isWorksS[i][z].uid);
  13236. }
  13237. studentK = studentK.join(",");
  13238. for (var j = 0; j < a.length; j++) {
  13239. // if (studentK.indexOf(a[j].userid) == -1) {
  13240. if (this.tcid) {
  13241. // a[j].classid.indexOf(this.tcid) != -1
  13242. if (
  13243. this.arrayToArray(
  13244. a[j].classid.split(","),
  13245. this.tcid.split(",")
  13246. ).length
  13247. ) {
  13248. this.noWorksS[i].push({
  13249. student: a[j].name,
  13250. userid: a[j].userid,
  13251. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  13252. });
  13253. }
  13254. } else {
  13255. this.noWorksS[i].push({
  13256. student: a[j].name,
  13257. userid: a[j].userid,
  13258. type: studentK.indexOf(a[j].userid) == -1 ? "1" : "2",
  13259. });
  13260. }
  13261. // }
  13262. }
  13263. } else {
  13264. for (var k = 0; k < a.length; k++) {
  13265. if (this.tcid) {
  13266. if (
  13267. this.arrayToArray(
  13268. a[k].classid.split(","),
  13269. this.tcid.split(",")
  13270. ).length
  13271. ) {
  13272. this.noWorksS[i].push({
  13273. student: a[k].name,
  13274. userid: a[k].userid,
  13275. type: "1",
  13276. });
  13277. }
  13278. } else {
  13279. this.noWorksS[i].push({
  13280. student: a[k].name,
  13281. userid: a[k].userid,
  13282. type: "1",
  13283. });
  13284. }
  13285. }
  13286. }
  13287. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  13288. // let jscoreA = parseInt(a.type);
  13289. // let jscoreB = parseInt(b.type);
  13290. // return jscoreB - jscoreA;
  13291. // });
  13292. }
  13293. this.$forceUpdate();
  13294. if (
  13295. Object.keys(this.commentDetail).length &&
  13296. Object.keys(this.commentIndexJson).length &&
  13297. !this.dialogVisibleScore
  13298. ) {
  13299. let a = 1;
  13300. let c = this.commentIndexJson;
  13301. console.log(c);
  13302. if (
  13303. this.commentIndexJson.gindex ||
  13304. this.commentIndexJson.gindex === 0
  13305. ) {
  13306. for (
  13307. var i = 0;
  13308. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13309. i++
  13310. ) {
  13311. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13312. groupA: for (var k = 0; k < _el.length; k++) {
  13313. let el = _el[k];
  13314. if (el.wid == this.commentDetail.wid) {
  13315. a = 2;
  13316. this.commentOther(
  13317. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13318. this.commentIndexJson.toolIndex,
  13319. k,
  13320. this.commentIndexJson.gindex
  13321. );
  13322. break groupA;
  13323. }
  13324. }
  13325. }
  13326. if (a === 1) {
  13327. this.commentDetail = [];
  13328. this.commentIndexJson = {};
  13329. this.commentDialogVisible = false;
  13330. this.$message("此作业已被删除");
  13331. }
  13332. } else {
  13333. if (this.isGroup && this.commentIndexJson.gid) {
  13334. groupA: for (
  13335. var i = 0;
  13336. i < this.courseGroup.group.length;
  13337. i++
  13338. ) {
  13339. let _group = this.courseGroup.group[i];
  13340. if (_group.id == this.commentIndexJson.gid) {
  13341. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13342. for (var k = 0; k < _el2.length; k++) {
  13343. let el2 = _el2[k];
  13344. if (el2.wid == this.commentDetail.wid) {
  13345. a = 2;
  13346. this.commentOther(
  13347. _el2[k],
  13348. this.commentIndexJson.toolIndex,
  13349. k,
  13350. null,
  13351. this.commentIndexJson.gid
  13352. );
  13353. break groupA;
  13354. }
  13355. }
  13356. }
  13357. }
  13358. }
  13359. if (a == 1) {
  13360. for (
  13361. var i = 0;
  13362. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13363. i++
  13364. ) {
  13365. let el =
  13366. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13367. if (el.wid == this.commentDetail.wid) {
  13368. a = 2;
  13369. this.commentOther(
  13370. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13371. this.commentIndexJson.toolIndex,
  13372. i
  13373. );
  13374. break;
  13375. }
  13376. }
  13377. }
  13378. if (a === 1) {
  13379. this.commentDetail = [];
  13380. this.commentIndexJson = {};
  13381. this.commentDialogVisible = false;
  13382. this.$message("此作业已被删除");
  13383. }
  13384. }
  13385. }
  13386. })
  13387. .catch((err) => {
  13388. console.error(err);
  13389. });
  13390. },
  13391. selectStudent() {},
  13392. openVideo(w) {
  13393. this.videoDetail = {};
  13394. this.playerOptions1.sources[0].src = w.works;
  13395. this.videoDetail = this.playerOptions1;
  13396. this.videoVisible = true;
  13397. },
  13398. isLikes(wid, uid, t, c, isLikes) {
  13399. if (isLikes == false) {
  13400. let params = [
  13401. {
  13402. wid: wid,
  13403. lid: uid,
  13404. t: t,
  13405. c: c,
  13406. },
  13407. ];
  13408. this.ajax
  13409. .post(this.$store.state.api + "insertComment", params)
  13410. .then((res) => {
  13411. this.$message({
  13412. message: "点赞成功",
  13413. type: "success",
  13414. });
  13415. this.selectSWorks();
  13416. this.selectStudent();
  13417. })
  13418. .catch((err) => {
  13419. this.$message.error("点赞失败");
  13420. console.error(err);
  13421. });
  13422. } else {
  13423. let params = {
  13424. wid: wid,
  13425. lid: uid,
  13426. type: t,
  13427. };
  13428. this.ajax
  13429. .get(this.$store.state.api + "deleteComment", params)
  13430. .then((res) => {
  13431. this.$message({
  13432. message: "取消点赞成功",
  13433. type: "success",
  13434. });
  13435. this.selectSWorks();
  13436. this.selectStudent();
  13437. })
  13438. .catch((err) => {
  13439. console.error(err);
  13440. });
  13441. }
  13442. },
  13443. deleteComment(wid) {
  13444. this.$confirm("确定删除此评论吗?", "提示", {
  13445. confirmButtonText: "确定",
  13446. cancelButtonText: "取消",
  13447. type: "warning",
  13448. })
  13449. .then(() => {
  13450. let params = {
  13451. id: wid,
  13452. };
  13453. this.ajax
  13454. .get(this.$store.state.api + "deleteComment2", params)
  13455. .then((res) => {
  13456. this.$message({
  13457. message: "删除评论成功",
  13458. type: "success",
  13459. });
  13460. this.selectSWorks();
  13461. this.selectStudent();
  13462. })
  13463. .catch((err) => {
  13464. console.error(err);
  13465. });
  13466. })
  13467. .catch(() => {});
  13468. },
  13469. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13470. this.commentIndexJson = {
  13471. toolIndex: toolIndex,
  13472. wIndex: wIndex,
  13473. gindex: gindex,
  13474. gid: gid,
  13475. };
  13476. this.commentDetail = [];
  13477. this.commentDialogVisible = true;
  13478. this.commentDetail = w;
  13479. if (w.works && w.type == 1) {
  13480. this.pptImgUrl = "";
  13481. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13482. if (
  13483. a.indexOf(
  13484. w.works
  13485. .split(".")
  13486. [w.works.split(".").length - 1].toLocaleUpperCase()
  13487. ) != -1
  13488. ) {
  13489. this.pptImgUrl =
  13490. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13491. this.showPDF = false;
  13492. } else if (
  13493. w.works
  13494. .split(".")
  13495. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13496. ) {
  13497. this.pptImgUrl = w.works;
  13498. this.showPDF = true;
  13499. }
  13500. } else if (w.works && w.type == 3) {
  13501. this.videoDetail = {};
  13502. this.playerOptions1.sources[0].src = w.works;
  13503. this.videoDetail = this.playerOptions1;
  13504. // this.videoVisible = true;
  13505. } else if (w.works && w.type == 4) {
  13506. this.eScore = JSON.parse(w.works);
  13507. this.rateJson =
  13508. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13509. this.taskCount
  13510. ].toolChoose[toolIndex].rateJson;
  13511. } else if (w.works && w.type == 10) {
  13512. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13513. } else if (w.works && w.type == 13) {
  13514. this.wordJson =
  13515. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13516. this.taskCount
  13517. ].toolChoose[toolIndex].wordJson;
  13518. }
  13519. },
  13520. openScore(w) {
  13521. this.wScore = 0;
  13522. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13523. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13524. this.commentDetail = [];
  13525. this.dialogVisibleScore = true;
  13526. this.commentDetail = w;
  13527. if (w.works && w.type == 1) {
  13528. this.pptImgUrl = "";
  13529. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13530. if (
  13531. a.indexOf(
  13532. w.works
  13533. .split(".")
  13534. [w.works.split(".").length - 1].toLocaleUpperCase()
  13535. ) != -1
  13536. ) {
  13537. this.pptImgUrl =
  13538. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13539. this.showPDF = false;
  13540. } else if (
  13541. w.works
  13542. .split(".")
  13543. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13544. ) {
  13545. this.pptImgUrl = w.works;
  13546. this.showPDF = true;
  13547. }
  13548. } else if (w.works && w.type == 3) {
  13549. this.videoDetail = {};
  13550. this.playerOptions1.sources[0].src = w.works;
  13551. this.videoDetail = this.playerOptions1;
  13552. }
  13553. },
  13554. addComment(wid, uid, t) {
  13555. if (this.commentText == "") {
  13556. this.$message.error("请输入评论");
  13557. return;
  13558. }
  13559. let params2 = [
  13560. {
  13561. wid: wid,
  13562. lid: uid,
  13563. t: t,
  13564. },
  13565. ];
  13566. this.ajax
  13567. .post(this.$store.state.api + "getComment", params2)
  13568. .then((res) => {
  13569. if (res.data[0].length > 0) {
  13570. this.$message.error("一个作业只能评论一条");
  13571. } else {
  13572. let params = [
  13573. {
  13574. wid: wid,
  13575. lid: uid,
  13576. t: t,
  13577. c: this.commentText,
  13578. },
  13579. ];
  13580. this.ajax
  13581. .post(this.$store.state.api + "insertComment", params)
  13582. .then((res) => {
  13583. this.$message({
  13584. message: "评论成功",
  13585. type: "success",
  13586. });
  13587. this.commentText = "";
  13588. this.selectSWorks();
  13589. this.selectStudent();
  13590. })
  13591. .catch((err) => {
  13592. this.$message.error("评论失败");
  13593. console.error(err);
  13594. });
  13595. }
  13596. })
  13597. .catch((err) => {
  13598. // this.$message.error("评论失败");
  13599. console.error(err);
  13600. });
  13601. },
  13602. scoreWork(wid) {
  13603. if (this.wScore == 0) {
  13604. this.$message.error("请评分");
  13605. return;
  13606. }
  13607. let params = [
  13608. {
  13609. wid: wid,
  13610. score: JSON.stringify({
  13611. wScore: this.wScore,
  13612. detail: this.scoreDetail,
  13613. }),
  13614. },
  13615. ];
  13616. this.ajax
  13617. .post(this.$store.state.api + "scoreWork", params)
  13618. .then((res) => {
  13619. this.$message({
  13620. message: "评分成功",
  13621. type: "success",
  13622. });
  13623. this.wScore = 0;
  13624. this.scoreDetail = "";
  13625. this.dialogVisibleScore = false;
  13626. this.selectSWorks();
  13627. this.selectStudent();
  13628. })
  13629. .catch((err) => {
  13630. this.$message.error("评分失败");
  13631. console.error(err);
  13632. });
  13633. },
  13634. openXz(w, i) {
  13635. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13636. .taskJson[this.taskCount].toolChoose[i].selectJson
  13637. ? JSON.parse(
  13638. JSON.stringify(
  13639. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13640. this.taskCount
  13641. ].toolChoose[i].selectJson
  13642. )
  13643. )
  13644. : { url: "", select: [], answer: [] };
  13645. var a = w.works.split(",");
  13646. for (var k = 0; k < a.length; k++) {
  13647. a[k] = parseInt(a[k]);
  13648. }
  13649. this.selectAnswer = { answer: a, stu: w.sName };
  13650. this.isSelect = true;
  13651. this.dialogVisibleSelect = true;
  13652. },
  13653. openSen(w, i) {
  13654. this.sentenceList1 = JSON.parse(w.works);
  13655. this.sentenceList1.stuName = w.sName;
  13656. this.dialogVisibleSentence1 = true;
  13657. },
  13658. openPj(w, toolindex) {
  13659. this.isStar = true;
  13660. this.eScore = JSON.parse(w);
  13661. this.rateJson =
  13662. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13663. this.taskCount
  13664. ].toolChoose[toolindex].rateJson;
  13665. this.studentEvalDialogVisible = true;
  13666. },
  13667. deleteWorks(id) {
  13668. this.$confirm("确定删除此作业吗?", "提示", {
  13669. confirmButtonText: "确定",
  13670. cancelButtonText: "取消",
  13671. type: "warning",
  13672. })
  13673. .then(() => {
  13674. let params = [
  13675. {
  13676. id: id,
  13677. },
  13678. ];
  13679. this.ajax
  13680. .post(this.$store.state.api + "deleteCourseWork", params)
  13681. .then((res) => {
  13682. this.$message({
  13683. message: "删除成功",
  13684. type: "success",
  13685. });
  13686. this.selectStudent();
  13687. this.selectSWorks();
  13688. this.selectSLook();
  13689. })
  13690. .catch((err) => {
  13691. this.$message.error("网络异常");
  13692. console.error(err);
  13693. });
  13694. })
  13695. .catch(() => {});
  13696. },
  13697. selectSWorks(gindex) {
  13698. //教师查看全部作业
  13699. let params = {
  13700. cid: this.id,
  13701. s: this.courseType,
  13702. t: this.taskCount,
  13703. };
  13704. this.ajax
  13705. .get(this.$store.state.api + "selectSWorks", params)
  13706. .then((res) => {
  13707. var a =
  13708. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13709. this.taskCount
  13710. ].toolChoose;
  13711. var b = res.data[0];
  13712. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13713. var y = [
  13714. "AVI",
  13715. "NAVI",
  13716. "MPEG",
  13717. "ASF",
  13718. "MOV",
  13719. "WMV",
  13720. "3GP",
  13721. "RM",
  13722. "RMVB",
  13723. "FLV",
  13724. "F4V",
  13725. "H.264",
  13726. "H.265",
  13727. "REAL VIDEO",
  13728. "MKV",
  13729. "WebM",
  13730. "HDDVD",
  13731. "MP4",
  13732. "MPG",
  13733. "M4V",
  13734. "MGV",
  13735. "OGV",
  13736. "QTM",
  13737. "STR",
  13738. "AMC",
  13739. "DVX",
  13740. "EVO",
  13741. "DAT",
  13742. "OGG",
  13743. "OGM",
  13744. ];
  13745. var d = res.data[1];
  13746. var e = res.data[2];
  13747. var f = res.data[3];
  13748. for (var i = 0; i < a.length; i++) {
  13749. this.worksStudent[i] = [];
  13750. this.worksTeacher[i] = [];
  13751. this.worksStudent2[i] = [];
  13752. if (
  13753. !this.isCloseList[i] ||
  13754. this.isCloseList[i].isClose == undefined
  13755. ) {
  13756. this.isCloseList[i] = { isClose: 0 };
  13757. }
  13758. this.groupStudent[i] = [];
  13759. this.groupStudentUid[i] = [];
  13760. this.isWorksS[i] = [];
  13761. this.checkJson[i] = [];
  13762. if (a[i].tool[0] == 49) {
  13763. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13764. this.groupStudent[i][gA] = [];
  13765. this.groupStudentUid[i][gA] = [];
  13766. this.worksStudent[i][gA] = [];
  13767. this.isCloseList[i][gA] = [];
  13768. for (var g = 0; g < f.length; g++) {
  13769. if (
  13770. f[g].ttype == 2 &&
  13771. this.tcid &&
  13772. this.arrayToArray(
  13773. (f[g].classid ? f[g].classid.split(",") : []),
  13774. this.tcid.split(",")
  13775. ).length == 0
  13776. ) {
  13777. continue;
  13778. }
  13779. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  13780. (f[g].classid ? f[g].classid.split(",") : []),
  13781. this.tcid.split(",")
  13782. ).length !== 0 || this.arrayToArray(
  13783. (f[g].classid ? f[g].classid.split(",") : []),
  13784. this.classId ? this.classId.split(",") : []
  13785. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  13786. this.groupStudent[i][gA].push(f[g]);
  13787. this.groupStudentUid[i][gA].push(f[g].userid);
  13788. }
  13789. }
  13790. }
  13791. this.$forceUpdate();
  13792. }
  13793. for (var j = 0; j < b.length; j++) {
  13794. if (
  13795. b[j].ttype == 2 &&
  13796. this.tcid &&
  13797. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13798. .length == 0
  13799. ) {
  13800. continue;
  13801. }
  13802. var likesCount = 0;
  13803. var commentCount = 0;
  13804. var isLikes = false;
  13805. var commentJson = [];
  13806. var data = b[j];
  13807. if (i == b[j].tool) {
  13808. if (data.type == 2 && a[i].tool[0] == 4) {
  13809. // if(JSON.parse(data.content)[0].anwer){
  13810. var checkL =
  13811. JSON.parse(data.content)[0].anwer instanceof Array
  13812. ? JSON.parse(data.content)[0].anwer
  13813. : JSON.parse(data.content)[0].anwer.split(",");
  13814. for (var z = 0; z < checkL.length; z++) {
  13815. if (!this.checkJson[i][z]) {
  13816. this.checkJson[i].push({
  13817. checkCount: [],
  13818. checkPerson: [],
  13819. rightPerson: [],
  13820. });
  13821. }
  13822. if (!this.checkJson[i][z].checkCount.length) {
  13823. this.checkJson[i][z].checkCount = [];
  13824. let _askItemCount = JSON.parse(data.content)[0].askJson
  13825. .askJson[z].askItem;
  13826. for (var aic = 0; aic < _askItemCount; aic++) {
  13827. this.checkJson[i][z].checkCount.push(0);
  13828. }
  13829. }
  13830. if (checkL[z] instanceof Array) {
  13831. if (
  13832. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13833. checkL[z].sort().join(",")
  13834. ) {
  13835. this.checkJson[i][z].rightPerson.push(data.name);
  13836. }
  13837. for (var q = 0; q < checkL[z].length; q++) {
  13838. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13839. ? this.checkJson[i][z].checkPerson[
  13840. parseInt(checkL[z][q])
  13841. ].push(data.name)
  13842. : (this.checkJson[i][z].checkPerson[
  13843. parseInt(checkL[z][q])
  13844. ] = [data.name]);
  13845. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13846. ? this.checkJson[i][z].checkCount[
  13847. parseInt(checkL[z][q])
  13848. ]++
  13849. : (this.checkJson[i][z].checkCount[
  13850. parseInt(checkL[z][q])
  13851. ] = 1);
  13852. }
  13853. } else {
  13854. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13855. this.checkJson[i][z].rightPerson.push(data.name);
  13856. }
  13857. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13858. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13859. ? this.checkJson[i][z].checkPerson[
  13860. parseInt(checkL[z])
  13861. ].push(data.name)
  13862. : (this.checkJson[i][z].checkPerson[
  13863. parseInt(checkL[z])
  13864. ] = [data.name]);
  13865. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13866. ? this.checkJson[i][z].checkCount[
  13867. parseInt(checkL[z])
  13868. ]++
  13869. : (this.checkJson[i][z].checkCount[
  13870. parseInt(checkL[z])
  13871. ] = 1);
  13872. }
  13873. }
  13874. }
  13875. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13876. var checkL = JSON.parse(data.content)[0].anwer;
  13877. for (var z = 0; z < checkL.length; z++) {
  13878. if (!this.checkJson[i][z]) {
  13879. this.checkJson[i].push({
  13880. checkCount: [],
  13881. checkPerson: [],
  13882. rightPerson: [],
  13883. });
  13884. }
  13885. if (!this.checkJson[i][z].checkCount.length) {
  13886. this.checkJson[i][z].checkCount = [];
  13887. let _askItemCount = JSON.parse(data.content)[0].testJson
  13888. .testJson[z].testItem;
  13889. console.log(_askItemCount);
  13890. for (var aic = 0; aic < _askItemCount; aic++) {
  13891. this.checkJson[i][z].checkCount.push(0);
  13892. }
  13893. }
  13894. if (checkL[z] instanceof Array) {
  13895. if (
  13896. JSON.parse(data.content)[0]
  13897. .testJson.testJson[z].answer.sort()
  13898. .join(",") == checkL[z].sort().join(",")
  13899. ) {
  13900. this.checkJson[i][z].rightPerson.push(data.name);
  13901. }
  13902. for (var q = 0; q < checkL[z].length; q++) {
  13903. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13904. ? this.checkJson[i][z].checkPerson[
  13905. parseInt(checkL[z][q])
  13906. ].push(data.name)
  13907. : (this.checkJson[i][z].checkPerson[
  13908. parseInt(checkL[z][q])
  13909. ] = [data.name]);
  13910. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13911. ? this.checkJson[i][z].checkCount[
  13912. parseInt(checkL[z][q])
  13913. ]++
  13914. : (this.checkJson[i][z].checkCount[
  13915. parseInt(checkL[z][q])
  13916. ] = 1);
  13917. }
  13918. } else {
  13919. if (
  13920. JSON.parse(data.content)[0].testJson.testJson[z]
  13921. .answer == checkL[z]
  13922. ) {
  13923. this.checkJson[i][z].rightPerson.push(data.name);
  13924. }
  13925. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13926. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13927. ? this.checkJson[i][z].checkPerson[
  13928. parseInt(checkL[z])
  13929. ].push(data.name)
  13930. : (this.checkJson[i][z].checkPerson[
  13931. parseInt(checkL[z])
  13932. ] = [data.name]);
  13933. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13934. ? this.checkJson[i][z].checkCount[
  13935. parseInt(checkL[z])
  13936. ]++
  13937. : (this.checkJson[i][z].checkCount[
  13938. parseInt(checkL[z])
  13939. ] = 1);
  13940. }
  13941. }
  13942. }
  13943. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13944. var checkL = JSON.parse(data.content);
  13945. for (var z = 0; z < checkL.length; z++) {
  13946. if (!this.checkJson[i][z]) {
  13947. this.checkJson[i].push({
  13948. checkCount: [],
  13949. checkPerson: [],
  13950. rightPerson: [],
  13951. });
  13952. }
  13953. this.checkJson[i][z].checkPerson.push(data.name);
  13954. if (
  13955. checkL[z].chooseSenList.toString() ==
  13956. checkL[z].rightAnswer.toString()
  13957. ) {
  13958. this.checkJson[i][z].rightPerson.push(data.name);
  13959. }
  13960. }
  13961. }
  13962. for (var k = 0; k < d.length; k++) {
  13963. //点赞
  13964. if (d[k].workId == b[j].id) {
  13965. likesCount++;
  13966. if (d[k].likesId == this.userid) {
  13967. isLikes = true;
  13968. }
  13969. }
  13970. }
  13971. for (var l = 0; l < e.length; l++) {
  13972. //评论
  13973. if (e[l].workId == b[j].id) {
  13974. if (e[l].comment != "") {
  13975. commentCount++;
  13976. commentJson.push({
  13977. commentText: e[l].comment,
  13978. commentTime: e[l].commentTime,
  13979. commentPeople: e[l].commentPeople,
  13980. userid: e[l].userid,
  13981. wid: e[l].id,
  13982. });
  13983. }
  13984. }
  13985. }
  13986. if (
  13987. (b[j].type == 1 ||
  13988. b[j].type == 4 ||
  13989. b[j].type == 5 ||
  13990. b[j].type == 6 ||
  13991. b[j].type == 12 ||
  13992. b[j].type == 7) &&
  13993. a[i].tool[0] != 15 &&
  13994. a[i].tool[0] != 4 &&
  13995. a[i].tool[0] != 45 &&
  13996. a[i].tool[0] != 50 &&
  13997. a[i].tool[0] != 32 &&
  13998. a[i].tool[0] != 57 &&
  13999. a[i].tool[0] != 52
  14000. ) {
  14001. if (
  14002. c.indexOf(
  14003. b[j].content
  14004. .split(".")
  14005. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14006. ) != -1 &&
  14007. a[i].tool[0] == 16 &&
  14008. b[j].atool != 50
  14009. ) {
  14010. let _works = {
  14011. userid: b[j].userid,
  14012. ateacher: b[j].ateacher,
  14013. wid: b[j].id,
  14014. works: b[j].content,
  14015. sName: b[j].name,
  14016. type: 1,
  14017. time: b[j].time,
  14018. score: b[j].score,
  14019. img: b[j].img,
  14020. likesCount: likesCount,
  14021. commentCount: commentCount,
  14022. isLikes: isLikes,
  14023. commentJson: commentJson,
  14024. };
  14025. if (b[j].ttype == 1) {
  14026. this.worksTeacher[i].push(_works);
  14027. } else {
  14028. this.worksStudent2[i].push(_works);
  14029. }
  14030. this.worksStudent[i].push(_works);
  14031. this.isWorksS[i].push({
  14032. uid: b[j].userid,
  14033. sName: b[j].name,
  14034. });
  14035. } else if (
  14036. y.indexOf(
  14037. b[j].content
  14038. .split(".")
  14039. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14040. ) != -1 &&
  14041. a[i].tool[0] == 16 &&
  14042. b[j].atool != 50
  14043. ) {
  14044. let _works = {
  14045. userid: b[j].userid,
  14046. ateacher: b[j].ateacher,
  14047. wid: b[j].id,
  14048. works: b[j].content,
  14049. sName: b[j].name,
  14050. type: 3,
  14051. time: b[j].time,
  14052. score: b[j].score,
  14053. img: b[j].img,
  14054. likesCount: likesCount,
  14055. commentCount: commentCount,
  14056. isLikes: isLikes,
  14057. commentJson: commentJson,
  14058. };
  14059. if (b[j].ttype == 1) {
  14060. this.worksTeacher[i].push(_works);
  14061. } else {
  14062. this.worksStudent2[i].push(_works);
  14063. }
  14064. this.worksStudent[i].push(_works);
  14065. this.isWorksS[i].push({
  14066. uid: b[j].userid,
  14067. sName: b[j].name,
  14068. });
  14069. } else if (b[j].type == 6 && b[j].atool != 50) {
  14070. let _works = {
  14071. userid: b[j].userid,
  14072. ateacher: b[j].ateacher,
  14073. wid: b[j].id,
  14074. works: b[j].content,
  14075. sName: b[j].name,
  14076. type: 4,
  14077. time: b[j].time,
  14078. score: b[j].score,
  14079. img: b[j].img,
  14080. likesCount: likesCount,
  14081. commentCount: commentCount,
  14082. isLikes: isLikes,
  14083. commentJson: commentJson,
  14084. };
  14085. if (b[j].ttype == 1) {
  14086. this.worksTeacher[i].push(_works);
  14087. } else {
  14088. this.worksStudent2[i].push(_works);
  14089. }
  14090. this.worksStudent[i].push(_works);
  14091. this.isWorksS[i].push({
  14092. uid: b[j].userid,
  14093. sName: b[j].name,
  14094. });
  14095. } else if (b[j].type == 7 && b[j].atool != 50) {
  14096. let _works = {
  14097. userid: b[j].userid,
  14098. ateacher: b[j].ateacher,
  14099. wid: b[j].id,
  14100. works: b[j].content,
  14101. sName: b[j].name,
  14102. type: 5,
  14103. time: b[j].time,
  14104. score: b[j].score,
  14105. img: b[j].img,
  14106. likesCount: likesCount,
  14107. commentCount: commentCount,
  14108. isLikes: isLikes,
  14109. commentJson: commentJson,
  14110. };
  14111. if (b[j].ttype == 1) {
  14112. this.worksTeacher[i].push(_works);
  14113. } else {
  14114. this.worksStudent2[i].push(_works);
  14115. }
  14116. this.worksStudent[i].push(_works);
  14117. this.isWorksS[i].push({
  14118. uid: b[j].userid,
  14119. sName: b[j].name,
  14120. });
  14121. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14122. let _works = {
  14123. userid: b[j].userid,
  14124. ateacher: b[j].ateacher,
  14125. wid: b[j].id,
  14126. works: b[j].content,
  14127. sName: b[j].name,
  14128. type: 12,
  14129. time: b[j].time,
  14130. score: b[j].score,
  14131. img: b[j].img,
  14132. likesCount: likesCount,
  14133. commentCount: commentCount,
  14134. isLikes: isLikes,
  14135. commentJson: commentJson,
  14136. };
  14137. if (b[j].ttype == 1) {
  14138. this.worksTeacher[i].push(_works);
  14139. } else {
  14140. this.worksStudent2[i].push(_works);
  14141. }
  14142. this.worksStudent[i].push(_works);
  14143. this.isWorksS[i].push({
  14144. uid: b[j].userid,
  14145. sName: b[j].name,
  14146. });
  14147. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14148. let _works = {
  14149. userid: b[j].userid,
  14150. ateacher: b[j].ateacher,
  14151. wid: b[j].id,
  14152. works: b[j].content,
  14153. sName: b[j].name,
  14154. type: 0,
  14155. time: b[j].time,
  14156. score: b[j].score,
  14157. img: b[j].img,
  14158. likesCount: likesCount,
  14159. commentCount: commentCount,
  14160. isLikes: isLikes,
  14161. commentJson: commentJson,
  14162. };
  14163. if (b[j].ttype == 1) {
  14164. this.worksTeacher[i].push(_works);
  14165. } else {
  14166. this.worksStudent2[i].push(_works);
  14167. }
  14168. this.worksStudent[i].push(_works);
  14169. this.isWorksS[i].push({
  14170. uid: b[j].userid,
  14171. sName: b[j].name,
  14172. });
  14173. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14174. let _works = {
  14175. userid: b[j].userid,
  14176. ateacher: b[j].ateacher,
  14177. wid: b[j].id,
  14178. works: b[j].content,
  14179. sName: b[j].name,
  14180. type: 0,
  14181. time: b[j].time,
  14182. score: b[j].score,
  14183. img: b[j].img,
  14184. likesCount: likesCount,
  14185. commentCount: commentCount,
  14186. isLikes: isLikes,
  14187. commentJson: commentJson,
  14188. };
  14189. if (b[j].ttype == 1) {
  14190. this.worksTeacher[i].push(_works);
  14191. } else {
  14192. this.worksStudent2[i].push(_works);
  14193. }
  14194. this.worksStudent[i].push(_works);
  14195. this.isWorksS[i].push({
  14196. uid: b[j].userid,
  14197. sName: b[j].name,
  14198. });
  14199. }
  14200. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14201. let _works = {
  14202. userid: b[j].userid,
  14203. ateacher: b[j].ateacher,
  14204. wid: b[j].id,
  14205. works: b[j].content,
  14206. sName: b[j].name,
  14207. type: 2,
  14208. time: b[j].time,
  14209. score: b[j].score,
  14210. img: b[j].img,
  14211. likesCount: likesCount,
  14212. commentCount: commentCount,
  14213. isLikes: isLikes,
  14214. commentJson: commentJson,
  14215. };
  14216. if (b[j].ttype == 1) {
  14217. this.worksTeacher[i].push(_works);
  14218. } else {
  14219. this.worksStudent2[i].push(_works);
  14220. }
  14221. this.worksStudent[i].push(_works);
  14222. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14223. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14224. //问卷
  14225. let _works = {
  14226. userid: b[j].userid,
  14227. ateacher: b[j].ateacher,
  14228. wid: b[j].id,
  14229. works: b[j].content,
  14230. sName: b[j].name,
  14231. type: 2,
  14232. time: b[j].time,
  14233. score: b[j].score,
  14234. img: b[j].img,
  14235. likesCount: likesCount,
  14236. commentCount: commentCount,
  14237. isLikes: isLikes,
  14238. commentJson: commentJson,
  14239. };
  14240. if (b[j].ttype == 1) {
  14241. this.worksTeacher[i].push(_works);
  14242. } else {
  14243. this.worksStudent2[i].push(_works);
  14244. }
  14245. this.worksStudent[i].push(_works);
  14246. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14247. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14248. //选择题
  14249. let _works = {
  14250. userid: b[j].userid,
  14251. ateacher: b[j].ateacher,
  14252. wid: b[j].id,
  14253. works: b[j].content,
  14254. sName: b[j].name,
  14255. type: 8,
  14256. time: b[j].time,
  14257. score: b[j].score,
  14258. img: b[j].img,
  14259. likesCount: likesCount,
  14260. commentCount: commentCount,
  14261. isLikes: isLikes,
  14262. commentJson: commentJson,
  14263. };
  14264. if (b[j].ttype == 1) {
  14265. this.worksTeacher[i].push(_works);
  14266. } else {
  14267. this.worksStudent2[i].push(_works);
  14268. }
  14269. this.worksStudent[i].push(_works);
  14270. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14271. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14272. //选择题
  14273. let _works = {
  14274. userid: b[j].userid,
  14275. ateacher: b[j].ateacher,
  14276. wid: b[j].id,
  14277. works: b[j].content,
  14278. sName: b[j].name,
  14279. type: 9,
  14280. time: b[j].time,
  14281. score: b[j].score,
  14282. img: b[j].img,
  14283. likesCount: likesCount,
  14284. commentCount: commentCount,
  14285. isLikes: isLikes,
  14286. commentJson: commentJson,
  14287. };
  14288. if (b[j].ttype == 1) {
  14289. this.worksTeacher[i].push(_works);
  14290. } else {
  14291. this.worksStudent2[i].push(_works);
  14292. }
  14293. this.worksStudent[i].push(_works);
  14294. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14295. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14296. //选择题
  14297. let _works = {
  14298. userid: b[j].userid,
  14299. ateacher: b[j].ateacher,
  14300. wid: b[j].id,
  14301. works: b[j].content,
  14302. sName: b[j].name,
  14303. type: 10,
  14304. time: b[j].time,
  14305. score: b[j].score,
  14306. img: b[j].img,
  14307. likesCount: likesCount,
  14308. commentCount: commentCount,
  14309. isLikes: isLikes,
  14310. commentJson: commentJson,
  14311. };
  14312. if (b[j].ttype == 1) {
  14313. this.worksTeacher[i].push(_works);
  14314. } else {
  14315. this.worksStudent2[i].push(_works);
  14316. }
  14317. this.worksStudent[i].push(_works);
  14318. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14319. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14320. //选择题
  14321. let _works = {
  14322. userid: b[j].userid,
  14323. ateacher: b[j].ateacher,
  14324. wid: b[j].id,
  14325. works: b[j].content,
  14326. sName: b[j].name,
  14327. type: 13,
  14328. time: b[j].time,
  14329. score: b[j].score,
  14330. img: b[j].img,
  14331. likesCount: likesCount,
  14332. commentCount: commentCount,
  14333. isLikes: isLikes,
  14334. commentJson: commentJson,
  14335. };
  14336. if (b[j].ttype == 1) {
  14337. this.worksTeacher[i].push(_works);
  14338. } else {
  14339. this.worksStudent2[i].push(_works);
  14340. }
  14341. this.worksStudent[i].push(_works);
  14342. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14343. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14344. let _gindex = JSON.parse(b[j].content);
  14345. if (
  14346. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  14347. b[j].userid
  14348. ) != -1
  14349. ) {
  14350. this.worksStudent[i][_gindex.groupIndex].push({
  14351. userid: b[j].userid,
  14352. ateacher: b[j].ateacher,
  14353. wid: b[j].id,
  14354. works: _gindex.url,
  14355. sName: b[j].name,
  14356. type: _gindex.type,
  14357. time: b[j].time,
  14358. score: b[j].score,
  14359. img: b[j].img,
  14360. likesCount: likesCount,
  14361. commentCount: commentCount,
  14362. isLikes: isLikes,
  14363. commentJson: commentJson,
  14364. });
  14365. }
  14366. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14367. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  14368. let _works = {
  14369. userid: b[j].userid,
  14370. ateacher: b[j].ateacher,
  14371. wid: b[j].id,
  14372. works: b[j].content,
  14373. sName: b[j].name ? b[j].name : b[j].userid,
  14374. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14375. time: b[j].time,
  14376. score: b[j].score,
  14377. img: b[j].img,
  14378. likesCount: likesCount,
  14379. commentCount: commentCount,
  14380. isLikes: isLikes,
  14381. commentJson: commentJson,
  14382. };
  14383. if (b[j].ttype == 1) {
  14384. this.worksTeacher[i].push(_works);
  14385. } else {
  14386. this.worksStudent2[i].push(_works);
  14387. }
  14388. this.worksStudent[i].push(_works);
  14389. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14390. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  14391. let _works = {
  14392. userid: b[j].userid,
  14393. ateacher: b[j].ateacher,
  14394. wid: b[j].id,
  14395. works: b[j].content,
  14396. sName: b[j].name ? b[j].name : b[j].userid,
  14397. type: 12,
  14398. time: b[j].time,
  14399. score: b[j].score,
  14400. img: b[j].img,
  14401. likesCount: likesCount,
  14402. commentCount: commentCount,
  14403. isLikes: isLikes,
  14404. commentJson: commentJson,
  14405. };
  14406. if (b[j].ttype == 1) {
  14407. this.worksTeacher[i].push(_works);
  14408. } else {
  14409. this.worksStudent2[i].push(_works);
  14410. }
  14411. this.worksStudent[i].push(_works);
  14412. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14413. } else if (
  14414. a[i].tool[0] == 57 &&
  14415. b[j].atool == 57 &&
  14416. b[j].type == 12
  14417. ) {
  14418. let _works = {
  14419. userid: b[j].userid,
  14420. ateacher: b[j].ateacher,
  14421. wid: b[j].id,
  14422. works: b[j].content,
  14423. sName: b[j].name ? b[j].name : b[j].userid,
  14424. type: 12,
  14425. time: b[j].time,
  14426. score: b[j].score,
  14427. img: b[j].img,
  14428. likesCount: likesCount,
  14429. commentCount: commentCount,
  14430. isLikes: isLikes,
  14431. commentJson: commentJson,
  14432. };
  14433. if (b[j].ttype == 1) {
  14434. this.worksTeacher[i].push(_works);
  14435. } else {
  14436. this.worksStudent2[i].push(_works);
  14437. }
  14438. this.worksStudent[i].push(_works);
  14439. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14440. } else if (
  14441. a[i].tool[0] == 57 &&
  14442. b[j].atool == 57 &&
  14443. b[j].type == 15
  14444. ) {
  14445. let _works = {
  14446. userid: b[j].userid,
  14447. ateacher: b[j].ateacher,
  14448. wid: b[j].id,
  14449. works: b[j].content,
  14450. sName: b[j].name ? b[j].name : b[j].userid,
  14451. type: 15,
  14452. time: b[j].time,
  14453. score: b[j].score,
  14454. img: b[j].img,
  14455. likesCount: likesCount,
  14456. commentCount: commentCount,
  14457. isLikes: isLikes,
  14458. commentJson: commentJson,
  14459. };
  14460. if (b[j].ttype == 1) {
  14461. this.worksTeacher[i].push(_works);
  14462. } else {
  14463. this.worksStudent2[i].push(_works);
  14464. }
  14465. this.worksStudent[i].push(_works);
  14466. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14467. }
  14468. }
  14469. }
  14470. if (this.worksStudent[i] && this.worksStudent[i].length) {
  14471. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  14472. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14473. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14474. var scoreA = parseFloat(jscoreA);
  14475. var scoreB = parseFloat(jscoreB);
  14476. if (scoreA == scoreB) {
  14477. return b.likesCount - a.likesCount;
  14478. }
  14479. return scoreB - scoreA;
  14480. });
  14481. }
  14482. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  14483. this.worksStudent2[i] = this.worksStudent2[i].sort(function (
  14484. a,
  14485. b
  14486. ) {
  14487. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14488. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14489. var scoreA = parseFloat(jscoreA);
  14490. var scoreB = parseFloat(jscoreB);
  14491. if (scoreA == scoreB) {
  14492. return b.likesCount - a.likesCount;
  14493. }
  14494. return scoreB - scoreA;
  14495. });
  14496. }
  14497. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  14498. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  14499. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14500. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14501. var scoreA = parseFloat(jscoreA);
  14502. var scoreB = parseFloat(jscoreB);
  14503. if (scoreA == scoreB) {
  14504. return b.likesCount - a.likesCount;
  14505. }
  14506. return scoreB - scoreA;
  14507. });
  14508. }
  14509. }
  14510. for (var i = 0; i < a.length; i++) {
  14511. for (var j = 0; j < b.length; j++) {
  14512. var data = b[j];
  14513. if (i == b[j].tool) {
  14514. if (data.type == 2 || data.type == 8) {
  14515. for (var z = 0; z < this.checkJson[i].length; z++) {
  14516. this.checkJson[i][z].checkPerent = [];
  14517. this.checkJson[i][z].right = Math.round(
  14518. (this.checkJson[i][z].rightPerson.length /
  14519. parseInt(this.worksStudent[i].length)) *
  14520. 100
  14521. );
  14522. let aaaa = this.checkJson[i][z];
  14523. console.log(aaaa);
  14524. for (
  14525. var k = 0;
  14526. k < this.checkJson[i][z].checkCount.length;
  14527. k++
  14528. ) {
  14529. this.checkJson[i][z].checkPerent.push(
  14530. Math.round(
  14531. (this.checkJson[i][z].checkCount[k] /
  14532. parseInt(this.worksStudent[i].length)) *
  14533. 100
  14534. )
  14535. );
  14536. }
  14537. }
  14538. } else if (data.type == 9) {
  14539. for (var z = 0; z < this.checkJson[i].length; z++) {
  14540. this.checkJson[i][z].checkPerent = [];
  14541. this.checkJson[i][z].right = Math.round(
  14542. (this.checkJson[i][z].rightPerson.length /
  14543. this.checkJson[i][z].checkPerson.length) *
  14544. 100
  14545. );
  14546. }
  14547. }
  14548. }
  14549. }
  14550. }
  14551. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14552. this.joinGroup(gindex);
  14553. }
  14554. this.selectWorksStudent();
  14555. })
  14556. .catch((err) => {
  14557. console.error(err);
  14558. });
  14559. },
  14560. pngToWhiteBg(file) {
  14561. const _file = file;
  14562. let read = new FileReader();
  14563. read.readAsDataURL(file); // 文件转base64
  14564. return new Promise((resolve, reject) => {
  14565. read.onload = (e) => {
  14566. let img = new Image();
  14567. img.src = e.target.result;
  14568. img.onload = async () => {
  14569. // 生成canvas
  14570. let canvas = document.createElement("canvas");
  14571. let context = canvas.getContext("2d");
  14572. // 绘制图片到canvas上
  14573. canvas.width = img.width;
  14574. canvas.height = img.height;
  14575. // 在canvas绘制前填充白色背景
  14576. context.fillStyle = "#fff";
  14577. context.fillRect(0, 0, canvas.width, canvas.height);
  14578. context.drawImage(img, 0, 0);
  14579. let base64 = canvas.toDataURL(file["type"], 1);
  14580. let newFile = this.dataUrlToFile(base64, _file);
  14581. resolve(newFile);
  14582. };
  14583. };
  14584. });
  14585. },
  14586. dataUrlToFile(dataurl, file) {
  14587. let arr = dataurl.split(","),
  14588. mime = arr[0].match(/:(.*?);/)[1],
  14589. bstr = atob(arr[1]),
  14590. n = bstr.length,
  14591. u8arr = new Uint8Array(n);
  14592. while (n--) {
  14593. u8arr[n] = bstr.charCodeAt(n);
  14594. }
  14595. // return new Blob([u8arr], { type: mime });
  14596. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14597. type: mime,
  14598. });
  14599. },
  14600. async beforeUpload1(event, type, i) {
  14601. // this.$message.success('进入上传')
  14602. var file = "";
  14603. if (type == 5) {
  14604. file = event;
  14605. } else {
  14606. file = event.target.files[0];
  14607. }
  14608. var credentials = {
  14609. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14610. secretAccessKey: "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",
  14611. }; //秘钥形式的登录上传
  14612. window.AWS.config.update(credentials);
  14613. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14614. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14615. var _this = this;
  14616. _this.progress = 0;
  14617. _this.proVisible = true;
  14618. _this.isFinishSize = 0;
  14619. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14620. var b = [
  14621. "DOC",
  14622. "DOCX",
  14623. "DOCM",
  14624. "DOTM",
  14625. "DOTX",
  14626. "PPTX",
  14627. "PPSX",
  14628. "PPT",
  14629. "PPS",
  14630. "PPTM",
  14631. "POTM",
  14632. "PPAM",
  14633. "POTX",
  14634. "PPSM",
  14635. ];
  14636. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14637. var photoA = [
  14638. "BMP",
  14639. "GIF",
  14640. "PNG",
  14641. "JPEG",
  14642. "JPG",
  14643. "TIF",
  14644. "PCX",
  14645. "TGA",
  14646. "EXIF",
  14647. "FPX",
  14648. "SVG",
  14649. "APNG",
  14650. ];
  14651. // if (
  14652. // b.indexOf(
  14653. // file.name
  14654. // .split(".")
  14655. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14656. // ) != -1
  14657. // ) {
  14658. // if (file.size / 1024 / 1024 > 10) {
  14659. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14660. // return;
  14661. // }
  14662. // } else if (
  14663. // excelA.indexOf(
  14664. // file.name
  14665. // .split(".")
  14666. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14667. // ) != "-1"
  14668. // ) {
  14669. // if (file.size / 1024 / 1024 > 5) {
  14670. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14671. // return;
  14672. // }
  14673. // }
  14674. if (
  14675. photoA.indexOf(
  14676. file.name
  14677. .split(".")
  14678. [file.name.split(".").length - 1].toLocaleUpperCase()
  14679. ) != -1 &&
  14680. type != 4
  14681. ) {
  14682. // const blob = await imageConversion.compress(file, 0.8)
  14683. file = await this.pngToWhiteBg(file);
  14684. const blob = await imageConversion.compressAccurately(file, 256);
  14685. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14686. file = new File([blob], file.name, { type: file.type });
  14687. }
  14688. if (file) {
  14689. var params = {
  14690. Key:
  14691. file.name.split(".")[0] +
  14692. new Date().getTime() +
  14693. "." +
  14694. file.name.split(".")[file.name.split(".").length - 1],
  14695. ContentType: file.type,
  14696. Body: file,
  14697. "Access-Control-Allow-Credentials": "*",
  14698. ACL: "public-read",
  14699. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14700. var options = {
  14701. // partSize: 2048 * 1024 * 1024,
  14702. partSize: 1024 * 1024 * 1024,
  14703. queueSize: 2,
  14704. leavePartsOnError: true,
  14705. };
  14706. bucket
  14707. .upload(params, options)
  14708. .on("httpUploadProgress", function (evt) {
  14709. //这里可以写进度条
  14710. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14711. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14712. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14713. })
  14714. .send(function (err, data) {
  14715. _this.progress = 100;
  14716. _this.isFinishSize = _this.isAllSize;
  14717. setTimeout(() => {
  14718. _this.proVisible = false;
  14719. }, 1000);
  14720. if (err) {
  14721. var a = _this.$refs.upload1.uploadFiles;
  14722. a.splice(a.length - 1, a.length);
  14723. _this.$message.error("上传失败");
  14724. } else {
  14725. // _this.$message.success('上传成功')
  14726. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14727. var c = [
  14728. "AVI",
  14729. "NAVI",
  14730. "MPEG",
  14731. "ASF",
  14732. "MOV",
  14733. "WMV",
  14734. "3GP",
  14735. "RM",
  14736. "RMVB",
  14737. "FLV",
  14738. "F4V",
  14739. "H.264",
  14740. "H.265",
  14741. "REAL VIDEO",
  14742. "MKV",
  14743. "WebM",
  14744. "HDDVD",
  14745. "MP4",
  14746. "MPG",
  14747. "M4V",
  14748. "MGV",
  14749. "OGV",
  14750. "QTM",
  14751. "STR",
  14752. "AMC",
  14753. "DVX",
  14754. "EVO",
  14755. "DAT",
  14756. "OGG",
  14757. "OGM",
  14758. ];
  14759. if (type == 1) {
  14760. _this.studyJuri[0].cover.push({
  14761. name: file.name,
  14762. url: data.Location,
  14763. uid: file.uid,
  14764. });
  14765. if (
  14766. c.indexOf(
  14767. _this.studyJuri[0].cover[0].url
  14768. .split(".")
  14769. [
  14770. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14771. ].toLocaleUpperCase()
  14772. ) != -1
  14773. ) {
  14774. _this.fileType = 2;
  14775. } else if (
  14776. b.indexOf(
  14777. _this.studyJuri[0].cover[0].url
  14778. .split(".")
  14779. [
  14780. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14781. ].toLocaleUpperCase()
  14782. ) != -1
  14783. ) {
  14784. _this.fileType = 1;
  14785. } else if (
  14786. photoA.indexOf(
  14787. _this.studyJuri[0].cover[0].url
  14788. .split(".")
  14789. [
  14790. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14791. ].toLocaleUpperCase()
  14792. ) != -1
  14793. ) {
  14794. _this.fileType = 0;
  14795. } else {
  14796. _this.fileType = 3;
  14797. }
  14798. _this.imgChange(null, null, type);
  14799. } else if (type == 2) {
  14800. _this.upToolImg = data.Location;
  14801. _this.imgChange(null, null, type);
  14802. _this.addCourseWorks(i);
  14803. } else if (type == 4) {
  14804. _this.addPz("3", data.Location);
  14805. } else if (type == 5) {
  14806. _this.addImgDrawImG(data.Location);
  14807. } else if (type == 6) {
  14808. var _ftype = 1;
  14809. if (
  14810. c.indexOf(
  14811. data.Location.split(".")[
  14812. data.Location.split(".").length - 1
  14813. ].toLocaleUpperCase()
  14814. ) != -1
  14815. ) {
  14816. _ftype = 5;
  14817. } else if (
  14818. b.indexOf(
  14819. data.Location.split(".")[
  14820. data.Location.split(".").length - 1
  14821. ].toLocaleUpperCase()
  14822. ) != -1
  14823. ) {
  14824. _ftype = 4;
  14825. } else {
  14826. _ftype = 1;
  14827. }
  14828. _this.plworkFile.push({
  14829. name: file.name,
  14830. url: data.Location,
  14831. uid: file.uid,
  14832. fileType: _ftype,
  14833. username:
  14834. _this.plworkFile.length + 1 > 10
  14835. ? _this.plworkFile.length + 1
  14836. : "0" + (_this.plworkFile.length + 1),
  14837. });
  14838. } else if (type == 7) {
  14839. _this.addCourseWorksGong(i, data.Location, 32);
  14840. } else if (type == 8) {
  14841. _this.addCourseWorksGong(i, data.Location, 57);
  14842. }
  14843. _this.imgChange(null, null, type);
  14844. console.log(data.Location);
  14845. // _this.$message.success('上传成功'+data.Location)
  14846. }
  14847. });
  14848. }
  14849. },
  14850. async beforeUpload3(event, type, i) {
  14851. // this.$message.success('进入上传')
  14852. let file = "";
  14853. let cfindex2 = 0;
  14854. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14855. file = event.target.files[cfindex];
  14856. var credentials = {
  14857. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14858. secretAccessKey: "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",
  14859. }; //秘钥形式的登录上传
  14860. window.AWS.config.update(credentials);
  14861. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14862. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14863. var _this = this;
  14864. // _this.progress = 0;
  14865. _this.proVisible2 = true;
  14866. var b = [
  14867. "DOC",
  14868. "DOCX",
  14869. "DOCM",
  14870. "DOTM",
  14871. "DOTX",
  14872. "PPTX",
  14873. "PPSX",
  14874. "PPT",
  14875. "PPS",
  14876. "PPTM",
  14877. "POTM",
  14878. "PPAM",
  14879. "POTX",
  14880. "PPSM",
  14881. ];
  14882. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14883. var photoA = [
  14884. "BMP",
  14885. "GIF",
  14886. "PNG",
  14887. "JPEG",
  14888. "JPG",
  14889. "TIF",
  14890. "PCX",
  14891. "TGA",
  14892. "EXIF",
  14893. "FPX",
  14894. "SVG",
  14895. "APNG",
  14896. ];
  14897. if (
  14898. photoA.indexOf(
  14899. file.name
  14900. .split(".")
  14901. [file.name.split(".").length - 1].toLocaleUpperCase()
  14902. ) != -1 &&
  14903. type != 4
  14904. ) {
  14905. // const blob = await imageConversion.compress(file, 0.8)
  14906. file = await this.pngToWhiteBg(file);
  14907. const blob = await imageConversion.compressAccurately(file, 256);
  14908. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14909. file = new File([blob], file.name, { type: file.type });
  14910. }
  14911. if (file) {
  14912. var params = {
  14913. Key:
  14914. file.name.split(".")[0] +
  14915. new Date().getTime() +
  14916. "." +
  14917. file.name.split(".")[file.name.split(".").length - 1],
  14918. ContentType: file.type,
  14919. Body: file,
  14920. "Access-Control-Allow-Credentials": "*",
  14921. ACL: "public-read",
  14922. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14923. var options = {
  14924. // partSize: 2048 * 1024 * 1024,
  14925. partSize: 1024 * 1024 * 1024,
  14926. queueSize: 2,
  14927. leavePartsOnError: true,
  14928. };
  14929. bucket
  14930. .upload(params, options)
  14931. .on("httpUploadProgress", function (evt) {
  14932. //这里可以写进度条
  14933. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14934. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14935. })
  14936. .send(function (err, data) {
  14937. // _this.progress = 100;
  14938. cfindex2++;
  14939. setTimeout(() => {
  14940. if (
  14941. cfindex2 == event.target.files.length - 1 ||
  14942. cfindex2 > event.target.files.length - 1
  14943. ) {
  14944. _this.proVisible2 = false;
  14945. }
  14946. }, 1000);
  14947. if (err) {
  14948. var a = _this.$refs.upload1.uploadFiles;
  14949. a.splice(a.length - 1, a.length);
  14950. _this.$message.error("上传失败");
  14951. } else {
  14952. // _this.$message.success('上传成功')
  14953. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14954. var c = [
  14955. "AVI",
  14956. "NAVI",
  14957. "MPEG",
  14958. "ASF",
  14959. "MOV",
  14960. "WMV",
  14961. "3GP",
  14962. "RM",
  14963. "RMVB",
  14964. "FLV",
  14965. "F4V",
  14966. "H.264",
  14967. "H.265",
  14968. "REAL VIDEO",
  14969. "MKV",
  14970. "WebM",
  14971. "HDDVD",
  14972. "MP4",
  14973. "MPG",
  14974. "M4V",
  14975. "MGV",
  14976. "OGV",
  14977. "QTM",
  14978. "STR",
  14979. "AMC",
  14980. "DVX",
  14981. "EVO",
  14982. "DAT",
  14983. "OGG",
  14984. "OGM",
  14985. ];
  14986. if (type == 1) {
  14987. _this.studyJuri[0].cover.push({
  14988. name: file.name,
  14989. url: data.Location,
  14990. uid: file.uid,
  14991. });
  14992. if (
  14993. c.indexOf(
  14994. _this.studyJuri[0].cover[0].url
  14995. .split(".")
  14996. [
  14997. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14998. ].toLocaleUpperCase()
  14999. ) != -1
  15000. ) {
  15001. _this.fileType = 2;
  15002. } else if (
  15003. b.indexOf(
  15004. _this.studyJuri[0].cover[0].url
  15005. .split(".")
  15006. [
  15007. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15008. ].toLocaleUpperCase()
  15009. ) != -1
  15010. ) {
  15011. _this.fileType = 1;
  15012. } else {
  15013. _this.fileType = 0;
  15014. }
  15015. _this.imgChange(null, null, type);
  15016. } else if (type == 2) {
  15017. _this.upToolImg = data.Location;
  15018. _this.imgChange(null, null, type);
  15019. _this.addCourseWorks(i);
  15020. } else if (type == 4) {
  15021. _this.addPz("3", data.Location);
  15022. } else if (type == 5) {
  15023. _this.addImgDrawImG(data.Location);
  15024. } else if (type == 6) {
  15025. var _ftype = 1;
  15026. if (
  15027. c.indexOf(
  15028. data.Location.split(".")[
  15029. data.Location.split(".").length - 1
  15030. ].toLocaleUpperCase()
  15031. ) != -1
  15032. ) {
  15033. _ftype = 5;
  15034. } else if (
  15035. b.indexOf(
  15036. data.Location.split(".")[
  15037. data.Location.split(".").length - 1
  15038. ].toLocaleUpperCase()
  15039. ) != -1
  15040. ) {
  15041. _ftype = 4;
  15042. } else {
  15043. _ftype = 1;
  15044. }
  15045. _this.plworkFile.push({
  15046. name: file.name,
  15047. url: data.Location,
  15048. uid: file.uid,
  15049. fileType: _ftype,
  15050. username:
  15051. _this.plworkFile.length + 1 > 9
  15052. ? _this.plworkFile.length + 1
  15053. : "0" + (_this.plworkFile.length + 1),
  15054. });
  15055. }
  15056. _this.imgChange(null, null, type);
  15057. console.log(data.Location);
  15058. // _this.$message.success('上传成功'+data.Location)
  15059. }
  15060. });
  15061. }
  15062. }
  15063. },
  15064. beforeUpload2(event, type) {
  15065. var file = event.target.files[0];
  15066. var credentials = {
  15067. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15068. secretAccessKey: "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",
  15069. }; //秘钥形式的登录上传
  15070. window.AWS.config.update(credentials);
  15071. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15072. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15073. var _this = this;
  15074. _this.progress = 0;
  15075. _this.proVisible = true;
  15076. if (file) {
  15077. var params = {
  15078. Key:
  15079. file.name.split(".")[0] +
  15080. new Date().getTime() +
  15081. "." +
  15082. file.name.split(".")[file.name.split(".").length - 1],
  15083. ContentType: file.type,
  15084. Body: file,
  15085. "Access-Control-Allow-Credentials": "*",
  15086. ACL: "public-read",
  15087. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15088. var options = {
  15089. partSize: 2048 * 1024 * 1024,
  15090. queueSize: 2,
  15091. leavePartsOnError: true,
  15092. };
  15093. bucket
  15094. .upload(params, options)
  15095. .on("httpUploadProgress", function (evt) {
  15096. //这里可以写进度条
  15097. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15098. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15099. })
  15100. .send(function (err, data) {
  15101. _this.progress = 100;
  15102. setTimeout(() => {
  15103. _this.proVisible = false;
  15104. }, 1000);
  15105. if (err) {
  15106. var a = _this.$refs.upload1.uploadFiles;
  15107. a.splice(a.length - 1, a.length);
  15108. _this.$message.error("上传失败");
  15109. } else {
  15110. if (type == 2) {
  15111. _this.studyJuri[0].upVedio.push({
  15112. name: file.name,
  15113. url: data.Location,
  15114. uid: file.uid,
  15115. });
  15116. _this.imgChange(null, null, type);
  15117. } else if (type == 3) {
  15118. _this.studyJuri[0].upFile.push({
  15119. name: file.name,
  15120. url: data.Location,
  15121. uid: file.uid,
  15122. });
  15123. _this.imgChange(null, null, type);
  15124. }
  15125. console.log(data.Location);
  15126. }
  15127. });
  15128. }
  15129. },
  15130. allScrell() {
  15131. window.topU.postMessage({ allScreen: this.screenType + "NT" }, "*");
  15132. },
  15133. nextToolindex(type) {
  15134. if (type == "last") {
  15135. if (this.toolIndex == 0) {
  15136. this.$message.error("已经是第一个步骤");
  15137. return;
  15138. }
  15139. this.toolIndex = this.toolIndex - 1;
  15140. this.tool =
  15141. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15142. this.taskCount
  15143. ].toolChoose[this.toolIndex];
  15144. } else if (type == "next") {
  15145. if (
  15146. this.toolIndex ==
  15147. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15148. this.taskCount
  15149. ].toolChoose.length -
  15150. 1
  15151. ) {
  15152. this.$message.error("已经是最后一个步骤");
  15153. return;
  15154. }
  15155. this.toolIndex = this.toolIndex + 1;
  15156. this.tool =
  15157. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15158. this.taskCount
  15159. ].toolChoose[this.toolIndex];
  15160. }
  15161. this.$forceUpdate();
  15162. },
  15163. checkBz(index) {
  15164. this.toolIndex = index;
  15165. this.tool =
  15166. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15167. this.taskCount
  15168. ].toolChoose[this.toolIndex];
  15169. this.isUpdateToolDetail = false;
  15170. this.$forceUpdate();
  15171. },
  15172. checkBz1(i, j, k, l) {
  15173. this.courseType = i;
  15174. this.navId = l;
  15175. this.taskCount = j;
  15176. this.toolIndex = k;
  15177. this.tool = this.chapInfoList[i].chapterInfo[0].taskJson[j].toolChoose[k];
  15178. this.isUpdateToolDetail = false;
  15179. this.selectPz();
  15180. this.getHomeWork();
  15181. this.getCourseDetail(2);
  15182. this.$forceUpdate();
  15183. },
  15184. openToolAll() {
  15185. this.toolDialogVisible = true;
  15186. },
  15187. nextOrpreSteps(t) {
  15188. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15189. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15190. return;
  15191. }
  15192. var b = this.chapInfoList.length - 1;
  15193. if (t == 0) {
  15194. if (this.courseType == 0) {
  15195. if (this.taskCount == 0) {
  15196. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15197. if (this.IsLookOpen) {
  15198. if (
  15199. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15200. ) {
  15201. if (
  15202. this.courseDetail.userid != this.userid &&
  15203. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15204. ) {
  15205. this.$message.error("任务未解锁");
  15206. } else {
  15207. this.$message.error("上一任务未解锁");
  15208. }
  15209. return;
  15210. }
  15211. }
  15212. this.navList[this.courseType].isOpen = false;
  15213. this.courseType = b;
  15214. this.taskCount =
  15215. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15216. .length - 1;
  15217. this.navList[this.courseType].isOpen = true;
  15218. } else {
  15219. this.taskCount--;
  15220. }
  15221. } else {
  15222. if (this.taskCount == 0) {
  15223. this.navList[this.courseType].isOpen = false;
  15224. this.courseType--;
  15225. this.taskCount =
  15226. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15227. .length - 1;
  15228. this.navList[this.courseType].isOpen = true;
  15229. } else {
  15230. this.taskCount--;
  15231. }
  15232. }
  15233. } else {
  15234. if (this.courseType == b) {
  15235. if (
  15236. this.taskCount ==
  15237. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15238. 1
  15239. ) {
  15240. this.navList[this.courseType].isOpen = false;
  15241. this.courseType = 0;
  15242. this.taskCount = 0;
  15243. this.navList[this.courseType].isOpen = true;
  15244. } else {
  15245. var bbb = parseInt(this.taskCount) + 1;
  15246. if (
  15247. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15248. .isLook &&
  15249. this.courseDetail.userid != this.userid &&
  15250. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15251. this.IsLookOpen
  15252. ) {
  15253. this.$message.error("任务未解锁");
  15254. return;
  15255. }
  15256. this.taskCount++;
  15257. if (this.IsLookOpen) {
  15258. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15259. this.taskCount
  15260. ].isLook = true;
  15261. this.addCourseState(3);
  15262. }
  15263. }
  15264. } else {
  15265. if (
  15266. this.taskCount ==
  15267. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15268. 1
  15269. ) {
  15270. var bbb = parseInt(this.courseType) + 1;
  15271. if (
  15272. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15273. this.courseDetail.userid != this.userid &&
  15274. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15275. this.IsLookOpen
  15276. ) {
  15277. this.$message.error("任务未解锁");
  15278. return;
  15279. }
  15280. this.navList[this.courseType].isOpen = false;
  15281. this.courseType++;
  15282. this.taskCount = 0;
  15283. this.navList[this.courseType].isOpen = true;
  15284. } else {
  15285. var bbb = parseInt(this.taskCount) + 1;
  15286. if (
  15287. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15288. .isLook &&
  15289. this.courseDetail.userid != this.userid &&
  15290. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15291. this.IsLookOpen
  15292. ) {
  15293. this.$message.error("任务未解锁");
  15294. return;
  15295. }
  15296. this.taskCount++;
  15297. }
  15298. if (this.IsLookOpen) {
  15299. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15300. this.taskCount
  15301. ].isLook = true;
  15302. this.addCourseState(3);
  15303. }
  15304. }
  15305. }
  15306. document.scrollingElement.scrollTop = 0;
  15307. // this.showType = 0;
  15308. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15309. this.toolIndex = null;
  15310. this.isNoHomeWork = false;
  15311. (this.studyJuri = [
  15312. {
  15313. content: "",
  15314. cover: [],
  15315. upVedio: [],
  15316. upFile: [],
  15317. },
  15318. ]),
  15319. (this.radio = []);
  15320. // this.isClickNav = "";
  15321. this.selectPz();
  15322. this.getHomeWork();
  15323. this.getCourseDetail(2);
  15324. this.$forceUpdate();
  15325. },
  15326. openTask(s, n, i) {
  15327. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15328. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15329. return;
  15330. }
  15331. if (this.IsLookOpen) {
  15332. if (
  15333. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15334. this.courseDetail.userid != this.userid &&
  15335. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15336. ) {
  15337. this.$message.error("任务未解锁");
  15338. return;
  15339. }
  15340. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15341. if (
  15342. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15343. .isLook
  15344. ) {
  15345. this.$message.error("上一任务未解锁");
  15346. return;
  15347. }
  15348. } else if (s > this.courseType) {
  15349. if (n > 0) {
  15350. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15351. this.$message.error("上一任务未解锁");
  15352. return;
  15353. }
  15354. } else {
  15355. if (
  15356. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15357. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15358. ].isLook
  15359. ) {
  15360. this.$message.error("上一任务未解锁");
  15361. return;
  15362. }
  15363. }
  15364. }
  15365. }
  15366. if (this.navList[s].task[n].isOpen == true) {
  15367. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15368. return;
  15369. }
  15370. this.courseType = s;
  15371. this.navId = i;
  15372. this.taskCount = n;
  15373. this.navList[this.courseType].task[this.taskCount].isOpen =
  15374. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15375. if (this.IsLookOpen) {
  15376. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15377. this.taskCount
  15378. ].isLook = true;
  15379. this.addCourseState(3);
  15380. }
  15381. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  15382. this.isCloseList[ci].isClose = 0;
  15383. }
  15384. // this.showType = 0;
  15385. this.isNoHomeWork = false;
  15386. (this.studyJuri = [
  15387. {
  15388. content: "",
  15389. cover: [],
  15390. upVedio: [],
  15391. upFile: [],
  15392. },
  15393. ]),
  15394. (this.radio = []);
  15395. document.scrollingElement.scrollTop = 0;
  15396. this.toolIndex = null;
  15397. // setTimeout(() => {
  15398. // let a = document.getElementById(i);
  15399. // if (a.offsetTop - 110 == 0) {
  15400. // window.scrollTo(0, 0);
  15401. // } else {
  15402. // window.scrollTo(0, a.offsetTop);
  15403. // }
  15404. // }, 0);
  15405. this.selectPz();
  15406. this.getHomeWork();
  15407. this.getCourseDetail(2);
  15408. },
  15409. get(i) {
  15410. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  15411. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15412. return;
  15413. }
  15414. this.navList[i].isOpen = !this.navList[i].isOpen;
  15415. },
  15416. addQuestion() {
  15417. this.answerList.push({
  15418. answerTitle: this.answerQ,
  15419. answer: this.questionAnswer,
  15420. });
  15421. let params = [
  15422. {
  15423. uid: this.userid,
  15424. cid: this.id,
  15425. stage: this.courseType,
  15426. task: this.taskCount,
  15427. tool: this.toolindex,
  15428. content: JSON.stringify(this.answerList),
  15429. type: 3,
  15430. },
  15431. ];
  15432. this.ajax
  15433. .post(this.$store.state.api + "addCourseWorks", params)
  15434. .then((res) => {
  15435. this.$message({
  15436. message: "提交成功",
  15437. type: "success",
  15438. });
  15439. this.answerList = [];
  15440. this.questionAnswer = "";
  15441. this.answerDialogVisible = false;
  15442. this.selectStudent();
  15443. this.selectSWorks();
  15444. this.selectSLook();
  15445. })
  15446. .catch((err) => {
  15447. this.$message.error("提交失败");
  15448. console.error(err);
  15449. });
  15450. },
  15451. addQuestionTeacher() {
  15452. this.answerList.push({
  15453. answerTitle: this.answerQ,
  15454. answer: this.questionAnswer,
  15455. });
  15456. let params = [
  15457. {
  15458. uid: this.sStudent.userid,
  15459. cid: this.id,
  15460. stage: this.courseType,
  15461. task: this.taskCount,
  15462. tool: this.toolindex,
  15463. content: JSON.stringify(this.answerList),
  15464. type: 3,
  15465. ateacher: this.userid,
  15466. },
  15467. ];
  15468. this.ajax
  15469. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15470. .then((res) => {
  15471. this.$message({
  15472. message: "提交成功",
  15473. type: "success",
  15474. });
  15475. this.answerList = [];
  15476. this.questionAnswer = "";
  15477. this.answerDialogVisibleTeacher = false;
  15478. this.selectStudent();
  15479. this.selectSWorks();
  15480. this.selectSLook();
  15481. })
  15482. .catch((err) => {
  15483. this.$message.error("提交失败");
  15484. console.error(err);
  15485. });
  15486. },
  15487. refreshCourse() {
  15488. this.navList = [];
  15489. this.getCourseDetail(1);
  15490. },
  15491. setPz() {
  15492. if (this.ispzType == 4) {
  15493. this.ispzType = 0;
  15494. this.pzDialog = false;
  15495. return;
  15496. }
  15497. this.ispzType = 4;
  15498. this.pzDialog = true;
  15499. this.selectPz();
  15500. },
  15501. getCourseDetail(type, gindex) {
  15502. let loading;
  15503. if (type != 2) {
  15504. loading = this.$loading.service({
  15505. background: "rgba(255, 255, 255, 0.7)",
  15506. target: document.querySelector(".student_table"),
  15507. });
  15508. }
  15509. let params = {
  15510. courseId: this.id,
  15511. };
  15512. this.ajax
  15513. .get(this.$store.state.api + "selectCourseDetail3", params)
  15514. .then((res) => {
  15515. if (type != 2) {
  15516. loading.close();
  15517. if (
  15518. this.courseType >
  15519. JSON.parse(res.data[0][0].chapters).length - 1
  15520. ) {
  15521. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15522. }
  15523. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15524. .chapterInfo[0].taskJson;
  15525. var b = [
  15526. "AVI",
  15527. "NAVI",
  15528. "MPEG",
  15529. "ASF",
  15530. "MOV",
  15531. "WMV",
  15532. "3GP",
  15533. "RM",
  15534. "RMVB",
  15535. "FLV",
  15536. "F4V",
  15537. "H.264",
  15538. "H.265",
  15539. "REAL VIDEO",
  15540. "MKV",
  15541. "WebM",
  15542. "HDDVD",
  15543. "MP4",
  15544. "MPG",
  15545. "M4V",
  15546. "MGV",
  15547. "OGV",
  15548. "QTM",
  15549. "STR",
  15550. "AMC",
  15551. "DVX",
  15552. "EVO",
  15553. "DAT",
  15554. "OGG",
  15555. "OGM",
  15556. "MP3",
  15557. ];
  15558. let _chapterData = [];
  15559. for (var i = 0; i < a.length; i++) {
  15560. var c = a[i].chapterData;
  15561. this.vedio[i] = [];
  15562. this.textList[i] = [];
  15563. this.lineList[i] = [];
  15564. this.chapToolList[i] = [];
  15565. this.file[i] = [];
  15566. this.fileC[i] = [];
  15567. _chapterData[i] = c.filter((el) => {
  15568. return el.type != 12;
  15569. });
  15570. this.fileC[i] = c.filter((el) => {
  15571. return el.type == 12;
  15572. });
  15573. for (var j = 0; j < c.length; j++) {
  15574. if (c[j].type == 7) {
  15575. this.chapToolList[i].push(c[j]);
  15576. } else if (c[j].type == 8 || c[j].type == 14) {
  15577. this.lineList[i].push(c[j]);
  15578. } else if (c[j].type == 6) {
  15579. this.textList[i].push(c[j]);
  15580. } else {
  15581. if (
  15582. b.indexOf(
  15583. c[j].url
  15584. .split(".")
  15585. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15586. ) != -1
  15587. ) {
  15588. this.vedio[i].push(c[j]);
  15589. } else {
  15590. this.file[i].push(c[j]);
  15591. }
  15592. }
  15593. }
  15594. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15595. d.sources[0].src =
  15596. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15597. this.playerO[i] = d;
  15598. }
  15599. this.courseDetail = res.data[0][0];
  15600. this.tcid = this.arrayToArray(
  15601. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15602. this.tcid2 ? this.tcid2.split(",") : []
  15603. ).join(",");
  15604. console.log(this.tcid);
  15605. this.evalua = res.data[0][0].evaId;
  15606. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15607. this.courseType
  15608. ];
  15609. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15610. if (this.tcid && res.data[1].length) {
  15611. let _inviteA = [];
  15612. for (var ik = 0; ik < res.data[1].length; ik++) {
  15613. _inviteA.push({
  15614. cid: res.data[1][ik].classid,
  15615. ic: res.data[1][ik].code,
  15616. });
  15617. }
  15618. for (var ik = 0; ik < _inviteA.length; ik++) {
  15619. if (
  15620. this.arrayToArray(
  15621. _inviteA[ik].cid.split(","),
  15622. this.tcid.split(",")
  15623. ).length
  15624. ) {
  15625. this.inviteCode = _inviteA[ik].ic;
  15626. break;
  15627. }
  15628. }
  15629. }
  15630. for (var l = 0; l < this.chapInfoList.length; l++) {
  15631. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15632. for (var m = 0; m < w.length; m++) {
  15633. w[m].id = l + "-" + m;
  15634. }
  15635. }
  15636. let taskCount = 0;
  15637. if (
  15638. _chapterData[taskCount].length &&
  15639. _chapterData[taskCount][0].type == 2
  15640. ) {
  15641. this.showType = 0;
  15642. } else {
  15643. if (_chapterData[taskCount].length > 0) {
  15644. let _url = _chapterData[taskCount][0].url;
  15645. if (
  15646. _chapterData[taskCount][0].type == 8 ||
  15647. _chapterData[taskCount][0].type == 14
  15648. ) {
  15649. this.showType = 2;
  15650. if (
  15651. _url.indexOf("https://") == -1 &&
  15652. _url.indexOf("http://") == -1
  15653. ) {
  15654. _url = "https://" + _url;
  15655. }
  15656. this.pptImgUrl1 = _url;
  15657. } else if (_chapterData[taskCount][0].type == 3) {
  15658. if (
  15659. _url
  15660. .split(".")
  15661. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15662. ) {
  15663. this.showType = 3;
  15664. this.pptImgUrl1 = _url;
  15665. } else if (
  15666. this.isAssetTypeAnImage(
  15667. _url
  15668. .split(".")
  15669. [_url.split(".").length - 1].toLocaleLowerCase()
  15670. )
  15671. ) {
  15672. this.showType = 4;
  15673. this.pptImgUrl1 = _url;
  15674. } else {
  15675. this.showType = 2;
  15676. this.pptImgUrl1 =
  15677. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15678. _url;
  15679. }
  15680. } else if (_chapterData[this.taskCount][0].type == 13) {
  15681. this.showType = 4;
  15682. this.pptImgUrl1 = _url;
  15683. } else if (_chapterData[taskCount][0].type == 6) {
  15684. this.showType = 1;
  15685. this.text = this.textList[taskCount][0];
  15686. }
  15687. }
  15688. }
  15689. this.isClickNav = 0;
  15690. if (
  15691. !_chapterData[taskCount].length ||
  15692. _chapterData[taskCount][0].type == 12
  15693. ) {
  15694. this.isClickNav = "";
  15695. this.showType = "";
  15696. }
  15697. this.vChapterData = _chapterData;
  15698. if (
  15699. this.toolIndex == null &&
  15700. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15701. this.taskCount
  15702. ].toolChoose.length
  15703. ) {
  15704. this.toolIndex = 0;
  15705. this.tool =
  15706. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15707. this.taskCount
  15708. ].toolChoose[this.toolIndex];
  15709. }
  15710. } else {
  15711. if (
  15712. this.toolIndex == null &&
  15713. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15714. this.taskCount
  15715. ].toolChoose.length
  15716. ) {
  15717. this.toolIndex = 0;
  15718. this.tool =
  15719. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15720. this.taskCount
  15721. ].toolChoose[this.toolIndex];
  15722. }
  15723. }
  15724. this.isUpdateToolDetail = false;
  15725. this.$nextTick(() => {
  15726. setTimeout(() => {
  15727. this.checkEva();
  15728. }, 1000);
  15729. });
  15730. let _this = this;
  15731. if (_this.timer) {
  15732. clearInterval(_this.timer);
  15733. _this.timer = null;
  15734. }
  15735. _this.selectSWorks(gindex);
  15736. _this.selectStudent();
  15737. _this.selectSLook();
  15738. _this.getPick();
  15739. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15740. _this.setCTask();
  15741. }
  15742. if (_this.dialogVisibleGroup) {
  15743. _this.groupJson =
  15744. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15745. _this.taskCount
  15746. ].toolChoose[_this.toolindex].groupJson;
  15747. }
  15748. _this.timer = setInterval(function () {
  15749. if (_this.tcid) {
  15750. _this.getCourseGroup(gindex);
  15751. } else {
  15752. _this.selectSWorks(gindex);
  15753. }
  15754. _this.selectStudent();
  15755. _this.selectSLook();
  15756. _this.getPick();
  15757. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15758. _this.setCTask();
  15759. }
  15760. if (_this.dialogVisibleGroup) {
  15761. _this.groupJson =
  15762. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15763. _this.taskCount
  15764. ].toolChoose[_this.toolindex].groupJson;
  15765. }
  15766. if (_this.tType == 4 || _this.ispzType == 4) {
  15767. _this.selectPz();
  15768. }
  15769. }, 5000);
  15770. })
  15771. .catch((err) => {
  15772. loading.close();
  15773. console.error(err);
  15774. });
  15775. },
  15776. getCourseGroup(gindex) {
  15777. let params = {
  15778. cid: this.id,
  15779. classid: this.tcid ? this.tcid : "1",
  15780. };
  15781. this.ajax
  15782. .get(this.$store.state.api + "getCourseGroup", params)
  15783. .then((res) => {
  15784. if (res.data && res.data[0].length) {
  15785. if (!this.isGroup) {
  15786. let courseGroup = JSON.parse(res.data[0][0].group);
  15787. courseGroup.group = courseGroup.group.filter((el) => {
  15788. el.works = [];
  15789. return el;
  15790. });
  15791. this.courseGroup = courseGroup;
  15792. let groupPerson = res.data[1];
  15793. let group = JSON.parse(res.data[0][0].group).group;
  15794. let courseGroupStudent = {};
  15795. let courseGroupStudentUid = {};
  15796. for (var i = 0; i < group.length; i++) {
  15797. courseGroupStudent[group[i].id] = [];
  15798. courseGroupStudentUid[group[i].id] = [];
  15799. for (var j = 0; j < groupPerson.length; j++) {
  15800. if (groupPerson[j].groupCid == group[i].id) {
  15801. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15802. courseGroupStudentUid[group[i].id].push(
  15803. groupPerson[j].userid
  15804. );
  15805. }
  15806. }
  15807. }
  15808. this.courseGroupStudent = courseGroupStudent;
  15809. this.courseGroupStudentUid = courseGroupStudentUid;
  15810. }
  15811. this.isGroup = true;
  15812. this.selectSWorks(gindex);
  15813. } else {
  15814. this.selectSWorks(gindex);
  15815. this.isGroup = false;
  15816. }
  15817. })
  15818. .catch((err) => {
  15819. // this.$message.error("网络不佳");
  15820. console.error(err);
  15821. });
  15822. },
  15823. setOperationTime() {
  15824. let _this = this;
  15825. if (_this.opertimer) {
  15826. clearInterval(_this.opertimer);
  15827. _this.opertimer = null;
  15828. }
  15829. _this.opertimer = setInterval(() => {
  15830. _this.setoTime("600");
  15831. }, 600000);
  15832. },
  15833. setoTime(time) {
  15834. let params = [
  15835. {
  15836. uid: this.userid,
  15837. cid: this.id,
  15838. type: "2",
  15839. time: time,
  15840. },
  15841. ];
  15842. this.ajax
  15843. .post(this.$store.state.api + "addOperationTimeT2", params)
  15844. .then((res) => {})
  15845. .catch((err) => {
  15846. console.error(err);
  15847. });
  15848. },
  15849. addPz(type, content) {
  15850. if (type == "1" && this.pzConText == "") {
  15851. this.$message.error("批注不能为空!");
  15852. return;
  15853. }
  15854. let params = [
  15855. {
  15856. cid: this.id,
  15857. uid: this.userid,
  15858. s: this.courseType,
  15859. t: this.taskCount,
  15860. c: type == "1" ? this.pzConText : content,
  15861. type: type,
  15862. },
  15863. ];
  15864. this.ajax
  15865. .post(this.$store.state.api + "addPz2", params)
  15866. .then((res) => {
  15867. this.$message({
  15868. message: "添加成功",
  15869. type: "success",
  15870. });
  15871. this.pzConText = "";
  15872. this.addPzDialog = false;
  15873. this.selectPz();
  15874. })
  15875. .catch((err) => {
  15876. this.$message.error("添加失败");
  15877. console.error(err);
  15878. });
  15879. },
  15880. setReplyIndex(id, i) {
  15881. this.replyIndex = i;
  15882. this.replyPid = id;
  15883. this.replyDialogVisible = true;
  15884. },
  15885. addHf() {
  15886. if (this.reply == "") {
  15887. this.$message.error("回复不能为空!");
  15888. return;
  15889. }
  15890. let params = [
  15891. {
  15892. cid: this.id,
  15893. uid: this.userid,
  15894. s: this.courseType,
  15895. t: this.taskCount,
  15896. type: "1",
  15897. ct: 2,
  15898. pid: this.replyPid,
  15899. c: this.reply,
  15900. },
  15901. ];
  15902. this.ajax
  15903. .post(this.$store.state.api + "addHf", params)
  15904. .then((res) => {
  15905. this.reply = "";
  15906. this.$message({
  15907. message: "回复成功",
  15908. type: "success",
  15909. });
  15910. this.replyDialogVisible = false;
  15911. this.selectPz();
  15912. })
  15913. .catch((err) => {
  15914. this.$message.error("回复失败");
  15915. console.error(err);
  15916. });
  15917. },
  15918. deletePz(id) {
  15919. this.$confirm("确定删除此批注吗?", "提示", {
  15920. confirmButtonText: "确定",
  15921. cancelButtonText: "取消",
  15922. type: "warning",
  15923. })
  15924. .then(() => {
  15925. let params = [
  15926. {
  15927. id: id,
  15928. },
  15929. ];
  15930. this.ajax
  15931. .post(this.$store.state.api + "deletePz", params)
  15932. .then((res) => {
  15933. this.$message({
  15934. message: "删除成功",
  15935. type: "success",
  15936. });
  15937. this.selectPz();
  15938. })
  15939. .catch((err) => {
  15940. this.$message.error("网络异常");
  15941. console.error(err);
  15942. });
  15943. })
  15944. .catch(() => {});
  15945. },
  15946. deleteReply(id) {
  15947. this.$confirm("确定删除此回复吗?", "提示", {
  15948. confirmButtonText: "确定",
  15949. cancelButtonText: "取消",
  15950. type: "warning",
  15951. })
  15952. .then(() => {
  15953. let params = [
  15954. {
  15955. id: id,
  15956. },
  15957. ];
  15958. this.ajax
  15959. .post(this.$store.state.api + "deleteReply", params)
  15960. .then((res) => {
  15961. this.$message({
  15962. message: "删除成功",
  15963. type: "success",
  15964. });
  15965. this.selectPz();
  15966. })
  15967. .catch((err) => {
  15968. this.$message.error("网络异常");
  15969. console.error(err);
  15970. });
  15971. })
  15972. .catch(() => {});
  15973. },
  15974. selectPz() {
  15975. let params = {
  15976. cid: this.id,
  15977. s: this.courseType,
  15978. t: this.taskCount,
  15979. type: this.pzStype,
  15980. uid: this.userid,
  15981. };
  15982. this.ajax
  15983. .get(this.$store.state.api + "selectPzListType", params)
  15984. .then((res) => {
  15985. this.pzList = res.data[0];
  15986. var a = res.data[1];
  15987. for (var i = 0; i < a.length; i++) {
  15988. for (var j = 0; j < this.pzList.length; j++) {
  15989. if (!this.pzList[j].hfList) {
  15990. this.pzList[j].hfList = [];
  15991. }
  15992. if (a[i].pid == this.pzList[j].id) {
  15993. this.pzList[j].hfList.push(a[i]);
  15994. }
  15995. }
  15996. }
  15997. })
  15998. .catch((err) => {
  15999. console.error(err);
  16000. });
  16001. },
  16002. updateSLook() {
  16003. let params = {
  16004. sopen: this.sIsOpen == false ? 1 : 2,
  16005. cid: this.id,
  16006. };
  16007. this.ajax
  16008. .get(this.$store.state.api + "updateCourseSLook", params)
  16009. .then((res) => {
  16010. if (this.sIsOpen == true) {
  16011. this.$message({
  16012. message: "权限设置成功",
  16013. type: "success",
  16014. });
  16015. } else {
  16016. this.$message({
  16017. message: "权限关闭成功",
  16018. type: "success",
  16019. });
  16020. }
  16021. })
  16022. .catch((err) => {
  16023. console.error(err);
  16024. });
  16025. },
  16026. updateFollow() {
  16027. let params = [
  16028. {
  16029. sopen: this.IsFollow == false ? 1 : 2,
  16030. cid: this.id,
  16031. },
  16032. ];
  16033. this.ajax
  16034. .post(this.$store.state.api + "updateCourseFollow", params)
  16035. .then((res) => {
  16036. if (this.IsFollow == true) {
  16037. this.$message({
  16038. message: "开启成功",
  16039. type: "success",
  16040. });
  16041. } else {
  16042. this.$message({
  16043. message: "关闭成功",
  16044. type: "success",
  16045. });
  16046. }
  16047. this.setCTask();
  16048. })
  16049. .catch((err) => {
  16050. console.error(err);
  16051. });
  16052. },
  16053. setCTask() {
  16054. let params = [
  16055. {
  16056. sopen: this.courseType + "-" + this.taskCount,
  16057. cid: this.id,
  16058. },
  16059. ];
  16060. this.ajax
  16061. .post(this.$store.state.api + "updateCourseFollowC", params)
  16062. .then((res) => {})
  16063. .catch((err) => {
  16064. console.error(err);
  16065. });
  16066. },
  16067. updateLookOpen() {
  16068. let params = [
  16069. {
  16070. sopen: this.IsLookOpen == false ? 1 : 2,
  16071. cid: this.id,
  16072. },
  16073. ];
  16074. this.ajax
  16075. .post(this.$store.state.api + "updateCourseLookOpen", params)
  16076. .then((res) => {
  16077. if (this.IsLookOpen == true) {
  16078. // if (this.courseType != 0 && this.taskCount != 0) {
  16079. // this.openTask(0, 0, "0-0");
  16080. // }
  16081. this.$message({
  16082. message: "权限设置成功",
  16083. type: "success",
  16084. });
  16085. } else {
  16086. this.$message({
  16087. message: "权限关闭成功",
  16088. type: "success",
  16089. });
  16090. }
  16091. this.getCourseState(2);
  16092. })
  16093. .catch((err) => {
  16094. console.error(err);
  16095. });
  16096. },
  16097. selectSLook() {
  16098. let params = {
  16099. cid: this.id,
  16100. };
  16101. this.ajax
  16102. .get(this.$store.state.api + "selectCourseSLook", params)
  16103. .then((res) => {
  16104. // this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16105. this.sIsOpen = true;
  16106. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16107. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16108. if (!this.IsLookOpen) {
  16109. this.setNavList();
  16110. } else {
  16111. this.getCourseState(1);
  16112. }
  16113. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  16114. let _followC = res.data[0][0].followC.split("-");
  16115. if (
  16116. this.courseType != _followC[0] ||
  16117. this.taskCount != _followC[1]
  16118. ) {
  16119. this.navList[this.courseType].isOpen = false;
  16120. this.courseType = _followC[0];
  16121. this.navList[this.courseType].isOpen = true;
  16122. this.taskCount = parseInt(_followC[1]);
  16123. this.navId = res.data[0][0].followC;
  16124. this.getCourseDetail();
  16125. }
  16126. }
  16127. })
  16128. .catch((err) => {
  16129. console.error(err);
  16130. });
  16131. },
  16132. setNavList() {
  16133. if (this.navList.length == 0) {
  16134. this.navList = [];
  16135. var copyList = [];
  16136. for (var l = 0; l < this.chapInfoList.length; l++) {
  16137. var q = this.chapInfoList[l].dyName;
  16138. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16139. var e;
  16140. copyList.push({
  16141. dyName: q,
  16142. isOpen: l === 0 ? true : false,
  16143. task: [],
  16144. });
  16145. for (var r = 0; r < w.length; r++) {
  16146. e = w[r].task;
  16147. if (this.chapInfoList[l].easy == 1) {
  16148. copyList[l].task.push({
  16149. taskName: q,
  16150. id: l + "-" + r,
  16151. isLook: r === 0 ? true : false,
  16152. isOpen: r === 0 ? true : false,
  16153. tool: [],
  16154. });
  16155. } else {
  16156. copyList[l].task.push({
  16157. taskName: e,
  16158. id: l + "-" + r,
  16159. isLook: r === 0 ? true : false,
  16160. isOpen: r === 0 ? true : false,
  16161. tool: [],
  16162. });
  16163. }
  16164. var t = w[r].toolChoose;
  16165. for (var k = 0; k < t.length; k++) {
  16166. var tool = t[k].tool[0];
  16167. copyList[l].task[r].tool.push({
  16168. tool: tool,
  16169. isTool: false,
  16170. });
  16171. }
  16172. // this.navId = this.navId ? this.navId : l + "-" + r;
  16173. // this.navId = l + "-" + r;
  16174. }
  16175. }
  16176. this.navList = copyList;
  16177. this.navList[0].isOpen = false;
  16178. this.navList[this.courseType].isOpen = true;
  16179. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16180. } else {
  16181. this.setNavList2();
  16182. }
  16183. },
  16184. setNavList2() {
  16185. for (var l = 0; l < this.chapInfoList.length; l++) {
  16186. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16187. for (var r = 0; r < w.length; r++) {
  16188. this.navList[l].task[r].isLook = w[r].isLook;
  16189. }
  16190. }
  16191. if (
  16192. this.IsLookOpen &&
  16193. !this.navList[this.courseType].task[this.taskCount].isLook
  16194. ) {
  16195. this.openTask(0, 0, "0-0");
  16196. }
  16197. this.$forceUpdate();
  16198. },
  16199. getCourseState(type) {
  16200. let params = {
  16201. cid: this.id,
  16202. };
  16203. this.ajax
  16204. .get(this.$store.state.api + "getCourseState", params)
  16205. .then((res) => {
  16206. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  16207. this.chapInfoList = JSON.parse(res.data[0][0].state);
  16208. this.setNavList();
  16209. this.$forceUpdate();
  16210. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  16211. this.addCourseState(2);
  16212. } else {
  16213. this.addCourseState(1);
  16214. }
  16215. })
  16216. .catch((err) => {
  16217. console.error(err);
  16218. });
  16219. },
  16220. addCourseState(type) {
  16221. let _state = this.chapInfoList;
  16222. // this.courseType this.taskCount
  16223. if (type == 1 || type == 2) {
  16224. for (var i = 0; i < _state.length; i++) {
  16225. let el = _state[i].chapterInfo[0].taskJson;
  16226. for (var j = 0; j < el.length; j++) {
  16227. // if (i == 0 && j == 0) {
  16228. // el[j].isLook = true;
  16229. // } else {
  16230. // el[j].isLook = false;
  16231. // }
  16232. if (
  16233. this.courseType > i ||
  16234. (this.courseType == i && this.taskCount + 1 > j)
  16235. ) {
  16236. el[j].isLook = true;
  16237. } else {
  16238. el[j].isLook = false;
  16239. }
  16240. }
  16241. }
  16242. }
  16243. let params = [
  16244. {
  16245. cid: this.id,
  16246. state: JSON.stringify(_state),
  16247. },
  16248. ];
  16249. this.ajax
  16250. .post(
  16251. this.$store.state.api +
  16252. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16253. params
  16254. )
  16255. .then((res) => {
  16256. if (this.IsLookOpen) {
  16257. this.setNavList();
  16258. }
  16259. if (type == 3 && type == 2) {
  16260. this.getCourseState(1);
  16261. }
  16262. })
  16263. .catch((err) => {
  16264. console.error(err);
  16265. });
  16266. },
  16267. getHomeWork() {
  16268. let params = {
  16269. cid: this.id,
  16270. stage: this.courseType,
  16271. task: this.taskCount,
  16272. uid: this.userid,
  16273. };
  16274. this.ajax
  16275. .get(this.$store.state.api + "selectWork", params)
  16276. .then((res) => {
  16277. if (res.data[0].length > 0) {
  16278. this.studyJuri = JSON.parse(res.data[0][0].content);
  16279. this.isNoHomeWork = true;
  16280. }
  16281. })
  16282. .catch((err) => {
  16283. console.error(err);
  16284. });
  16285. },
  16286. isAssetTypeAnImage(ext) {
  16287. return (
  16288. [
  16289. "png",
  16290. "jpg",
  16291. "jpeg",
  16292. "bmp",
  16293. "gif",
  16294. "webp",
  16295. "psd",
  16296. "svg",
  16297. "tiff",
  16298. ].indexOf(ext) !== -1
  16299. );
  16300. },
  16301. switchVideo(media) {
  16302. this.playerO = {};
  16303. this.playerOptions.poster = "";
  16304. this.playerOptions.sources[0].src = media;
  16305. this.playerO = this.playerOptions;
  16306. },
  16307. onPlayerPlay() {},
  16308. lookVedio(u, i) {
  16309. this.isClickNav = "";
  16310. // this.playerOptions.sources[0].src = u;
  16311. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16312. d.sources[0].src = u;
  16313. this.playerO[0] = d;
  16314. this.showType = 0;
  16315. // this.isClickNav = "video" + i;
  16316. this.isClickNav = i;
  16317. this.$forceUpdate();
  16318. },
  16319. lookText(i, t) {
  16320. this.isClickNav = "";
  16321. // this.text = this.textList[i][t];
  16322. this.text = this.vChapterData[i][t];
  16323. // this.dialogVisible1 = true;
  16324. this.showType = 1;
  16325. // this.isClickNav = "text" + t;
  16326. this.isClickNav = t;
  16327. },
  16328. lookTools(i, t) {
  16329. this.chapTools = this.chapToolList[i][t];
  16330. this.dialogVisible2 = true;
  16331. },
  16332. openFile(f) {
  16333. this.pptImgUrl = "";
  16334. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16335. if (
  16336. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16337. -1
  16338. ) {
  16339. this.pptImgUrl =
  16340. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  16341. this.showPDF = false;
  16342. this.dialogVisible3 = true;
  16343. } else if (
  16344. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16345. ) {
  16346. this.pptImgUrl = f;
  16347. this.showPDF = true;
  16348. this.dialogVisible3 = true;
  16349. }
  16350. },
  16351. openTable(f) {
  16352. this.tableJson = JSON.parse(f.works);
  16353. this.$forceUpdate();
  16354. this.dialogVisibleTable2 = true;
  16355. },
  16356. openWord(f) {
  16357. this.tableJson = JSON.parse(f.works);
  16358. this.$forceUpdate();
  16359. this.dialogVisibleTable3 = true;
  16360. },
  16361. doUrl(url, i) {
  16362. this.isClickNav = "";
  16363. this.pptImgUrl1 = "";
  16364. this.showType = 2;
  16365. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16366. url = "https://" + url;
  16367. }
  16368. this.pptImgUrl1 = url;
  16369. // this.isClickNav = "line" + i;
  16370. this.isClickNav = i;
  16371. },
  16372. checkPhoto(f, i) {
  16373. this.showType = 4;
  16374. this.pptImgUrl1 = f.url;
  16375. this.isClickNav = i;
  16376. this.$forceUpdate();
  16377. },
  16378. downFile(f, i) {
  16379. this.isClickNav = "";
  16380. this.pptImgUrl1 = "";
  16381. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16382. if (
  16383. a.indexOf(
  16384. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16385. ) != -1
  16386. ) {
  16387. this.pptImgUrl1 =
  16388. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  16389. // this.dialogVisible3 = true;
  16390. this.showType = 2;
  16391. } else if (
  16392. this.isAssetTypeAnImage(
  16393. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16394. )
  16395. ) {
  16396. this.showType = 4;
  16397. this.pptImgUrl1 = f.url;
  16398. } else if (
  16399. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16400. "PDF"
  16401. ) {
  16402. this.pptImgUrl1 = f.url;
  16403. // this.dialogVisible3 = true;
  16404. this.showType = 3;
  16405. } else {
  16406. window.open(this.file[i].url);
  16407. }
  16408. this.isClickNav = i;
  16409. // this.isClickNav = "word" + i;
  16410. },
  16411. downFileList(i) {
  16412. window.open(this.noImgList[i].url);
  16413. },
  16414. openAddWork() {
  16415. this.dialogVisible = true;
  16416. },
  16417. addBzWorks() {
  16418. let params = [
  16419. {
  16420. uid: this.userid,
  16421. cid: this.id,
  16422. stage: this.courseType,
  16423. task: this.taskCount,
  16424. tool: this.toolindex,
  16425. content: JSON.stringify(this.eScore),
  16426. type: 6,
  16427. },
  16428. ];
  16429. this.ajax
  16430. .post(this.$store.state.api + "addCourseWorks", params)
  16431. .then((res) => {
  16432. this.$message({
  16433. message: "提交成功",
  16434. type: "success",
  16435. });
  16436. this.eScore = { eBzText: "", eStar: [] };
  16437. this.studentEvalDialogVisible = false;
  16438. this.selectSWorks();
  16439. })
  16440. .catch((err) => {
  16441. this.$message.error("提交失败");
  16442. console.error(err);
  16443. });
  16444. },
  16445. addBzWorksTeacher() {
  16446. let params = [
  16447. {
  16448. uid: this.sStudent.userid,
  16449. cid: this.id,
  16450. stage: this.courseType,
  16451. task: this.taskCount,
  16452. tool: this.toolindex,
  16453. content: JSON.stringify(this.eScore),
  16454. type: 6,
  16455. },
  16456. ];
  16457. this.ajax
  16458. .post(this.$store.state.api + "addCourseWorks", params)
  16459. .then((res) => {
  16460. this.$message({
  16461. message: "提交成功",
  16462. type: "success",
  16463. });
  16464. this.eScore = { eBzText: "", eStar: [] };
  16465. this.studentEvalDialogVisibleTeacher = false;
  16466. this.selectSWorks();
  16467. })
  16468. .catch((err) => {
  16469. this.$message.error("提交失败");
  16470. console.error(err);
  16471. });
  16472. },
  16473. addStudentAsk() {
  16474. if (!this.radio.length) {
  16475. this.$message.error("请选择选项");
  16476. return;
  16477. }
  16478. for (var i = 0; i < this.askJson.askCount; i++) {
  16479. if (
  16480. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16481. (this.radio[i] !== 0 && !this.radio[i])
  16482. ) {
  16483. this.$message.error("请选择选项");
  16484. return;
  16485. }
  16486. }
  16487. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16488. let params = [
  16489. {
  16490. uid: this.userid,
  16491. cid: this.id,
  16492. stage: this.courseType,
  16493. task: this.taskCount,
  16494. tool: this.toolindex,
  16495. content: JSON.stringify(this.askList),
  16496. type: 2,
  16497. },
  16498. ];
  16499. this.ajax
  16500. .post(this.$store.state.api + "addCourseWorks", params)
  16501. .then((res) => {
  16502. this.$message({
  16503. message: "提交成功",
  16504. type: "success",
  16505. });
  16506. this.askList = [];
  16507. this.dialogVisible5 = false;
  16508. this.selectStudent();
  16509. this.selectSWorks();
  16510. this.selectSLook();
  16511. })
  16512. .catch((err) => {
  16513. this.$message.error("提交失败");
  16514. console.error(err);
  16515. });
  16516. },
  16517. addStudentAskTeacher() {
  16518. if (!this.radio.length) {
  16519. this.$message.error("请选择选项");
  16520. return;
  16521. }
  16522. for (var i = 0; i < this.askJson.askCount; i++) {
  16523. if (
  16524. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16525. (this.radio[i] !== 0 && !this.radio[i])
  16526. ) {
  16527. this.$message.error("请选择选项");
  16528. return;
  16529. }
  16530. }
  16531. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16532. let params = [
  16533. {
  16534. uid: this.sStudent.userid,
  16535. cid: this.id,
  16536. stage: this.courseType,
  16537. task: this.taskCount,
  16538. tool: this.toolindex,
  16539. content: JSON.stringify(this.askList),
  16540. type: 2,
  16541. },
  16542. ];
  16543. this.ajax
  16544. .post(this.$store.state.api + "addCourseWorks", params)
  16545. .then((res) => {
  16546. this.$message({
  16547. message: "提交成功",
  16548. type: "success",
  16549. });
  16550. this.askList = [];
  16551. this.dialogVisible5Teacher = false;
  16552. this.selectStudent();
  16553. this.selectSWorks();
  16554. this.selectSLook();
  16555. })
  16556. .catch((err) => {
  16557. this.$message.error("提交失败");
  16558. console.error(err);
  16559. });
  16560. },
  16561. addStudentTest() {
  16562. if (!this.radio.length) {
  16563. this.$message.error("请选择选项");
  16564. return;
  16565. }
  16566. for (var i = 0; i < this.testJson.testCount; i++) {
  16567. if (
  16568. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16569. (this.radio[i] !== 0 && !this.radio[i])
  16570. ) {
  16571. this.$message.error("请选择选项");
  16572. return;
  16573. }
  16574. }
  16575. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16576. let params = [
  16577. {
  16578. uid: this.userid,
  16579. cid: this.id,
  16580. stage: this.courseType,
  16581. task: this.taskCount,
  16582. tool: this.toolindex,
  16583. content: JSON.stringify(this.askList),
  16584. type: 8,
  16585. },
  16586. ];
  16587. this.ajax
  16588. .post(this.$store.state.api + "addCourseWorks", params)
  16589. .then((res) => {
  16590. this.$message({
  16591. message: "提交成功",
  16592. type: "success",
  16593. });
  16594. this.askList = [];
  16595. this.dialogVisibleChoice = false;
  16596. this.selectStudent();
  16597. this.selectSWorks();
  16598. this.selectSLook();
  16599. })
  16600. .catch((err) => {
  16601. this.$message.error("提交失败");
  16602. console.error(err);
  16603. });
  16604. },
  16605. addStudentTestTeacher() {
  16606. if (!this.radio.length) {
  16607. this.$message.error("请选择选项");
  16608. return;
  16609. }
  16610. for (var i = 0; i < this.testJson.testCount; i++) {
  16611. if (
  16612. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16613. (this.radio[i] !== 0 && !this.radio[i])
  16614. ) {
  16615. this.$message.error("请选择选项");
  16616. return;
  16617. }
  16618. }
  16619. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16620. let params = [
  16621. {
  16622. uid: this.sStudent.userid,
  16623. cid: this.id,
  16624. stage: this.courseType,
  16625. task: this.taskCount,
  16626. tool: this.toolindex,
  16627. content: JSON.stringify(this.askList),
  16628. type: 8,
  16629. },
  16630. ];
  16631. this.ajax
  16632. .post(this.$store.state.api + "addCourseWorks", params)
  16633. .then((res) => {
  16634. this.$message({
  16635. message: "提交成功",
  16636. type: "success",
  16637. });
  16638. this.askList = [];
  16639. this.dialogVisibleChoiceTeacher = false;
  16640. this.selectStudent();
  16641. this.selectSWorks();
  16642. this.selectSLook();
  16643. })
  16644. .catch((err) => {
  16645. this.$message.error("提交失败");
  16646. console.error(err);
  16647. });
  16648. },
  16649. addWork() {
  16650. if (this.studyJuri[0].content == "") {
  16651. this.$message.error("请将信息填写完整");
  16652. return;
  16653. } else if (this.studyJuri[0].cover.length == 0) {
  16654. this.$message.error("请将信息填写完整");
  16655. return;
  16656. } else if (this.studyJuri[0].upVedio.length == 0) {
  16657. this.$message.error("请将信息填写完整");
  16658. return;
  16659. }
  16660. if (this.isNoHomeWork) {
  16661. this.$confirm(
  16662. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16663. "提示",
  16664. {
  16665. confirmButtonText: "确定",
  16666. cancelButtonText: "取消",
  16667. type: "warning",
  16668. }
  16669. )
  16670. .then(() => {
  16671. let params = [
  16672. {
  16673. uid: this.userid,
  16674. cid: this.id,
  16675. stage: this.courseType,
  16676. task: this.taskCount,
  16677. content: JSON.stringify(this.studyJuri),
  16678. },
  16679. ];
  16680. this.ajax
  16681. .post(this.$store.state.api + "addWorks", params)
  16682. .then((res) => {
  16683. this.$message({
  16684. message: "提交成功",
  16685. type: "success",
  16686. });
  16687. this.isNoHomeWork = true;
  16688. this.dialogVisible = false;
  16689. })
  16690. .catch((err) => {
  16691. this.$message.error("提交失败");
  16692. console.error(err);
  16693. });
  16694. })
  16695. .catch(() => {});
  16696. } else {
  16697. let params = [
  16698. {
  16699. uid: this.userid,
  16700. cid: this.id,
  16701. stage: this.courseType,
  16702. task: this.taskCount,
  16703. content: JSON.stringify(this.studyJuri),
  16704. },
  16705. ];
  16706. this.ajax
  16707. .post(this.$store.state.api + "addWorks", params)
  16708. .then((res) => {
  16709. this.$message({
  16710. message: "提交成功",
  16711. type: "success",
  16712. });
  16713. this.isNoHomeWork = true;
  16714. this.dialogVisible = false;
  16715. })
  16716. .catch((err) => {
  16717. this.$message.error("提交失败");
  16718. console.error(err);
  16719. });
  16720. }
  16721. },
  16722. selectCount() {
  16723. let params = {
  16724. cid: this.id,
  16725. chid: this.courseType,
  16726. uid: this.userid,
  16727. };
  16728. this.ajax
  16729. .get(this.$store.state.api + "selectToolsCount", params)
  16730. .then((res) => {
  16731. for (var i = 0; i < res.data[0].length; i++) {
  16732. if (res.data[0][i].tools == 1) {
  16733. this.wbCount = res.data[0][i].count;
  16734. } else if (res.data[0][i].tools == 2) {
  16735. this.wordCount = res.data[0][i].count;
  16736. } else if (res.data[0][i].tools == 3) {
  16737. this.mindCount = res.data[0][i].count;
  16738. } else if (res.data[0][i].tools == 4) {
  16739. this.askCount = res.data[0][i].count;
  16740. } else if (res.data[0][i].tools == 6) {
  16741. this.noteCount = res.data[0][i].count;
  16742. } else if (res.data[0][i].tools == 7) {
  16743. this.mindNetWorkCount = res.data[0][i].count;
  16744. } else if (res.data[0][i].tools == 8) {
  16745. this.libraryCount = res.data[0][i].count;
  16746. } else if (res.data[0][i].tools == 16) {
  16747. this.workCount = res.data[0][i].count;
  16748. } else if (res.data[0][i].tools == 10) {
  16749. this.timeCount = res.data[0][i].count;
  16750. } else if (res.data[0][i].tools == 15) {
  16751. this.answerCount = res.data[0][i].count;
  16752. } else if (res.data[0][i].tools == 18) {
  16753. this.trainCount = res.data[0][i].count;
  16754. }
  16755. }
  16756. })
  16757. .catch((err) => {
  16758. console.error(err);
  16759. });
  16760. },
  16761. openTools(t, i, index, c, sName) {
  16762. var z = JSON.parse(c);
  16763. this.noteName = sName;
  16764. if (t == 4) {
  16765. this.radio = [];
  16766. this.isAnswer = false;
  16767. let b = z[0].anwer;
  16768. this.radio = b;
  16769. this.askJson = z[0].askJson;
  16770. this.isAnswer = true;
  16771. this.dialogVisible5 = true;
  16772. } else if (t == 45) {
  16773. this.radio = [];
  16774. this.isAnswer = false;
  16775. let b = z[0].anwer;
  16776. this.radio = b;
  16777. this.testJson = z[0].testJson;
  16778. this.isAnswer = true;
  16779. this.dialogVisibleChoice = true;
  16780. }
  16781. // else if (t == 15) {
  16782. // this.answerQ = "";
  16783. // this.questionAnswer = "";
  16784. // this.answerQ = z[0].answerTitle;
  16785. // this.questionAnswer = z[0].answer;
  16786. // this.answerDialogVisible = true;
  16787. // }
  16788. },
  16789. fastText(p, t) {
  16790. if (t == 1) {
  16791. this.commentText += p;
  16792. } else {
  16793. this.eScore.eBzText += p;
  16794. }
  16795. },
  16796. addTools(t, i, index) {
  16797. var a = 0;
  16798. // this.taskCount = index;
  16799. this.toolindex = i;
  16800. if (t == 1) {
  16801. if (this.wbCount > 0) {
  16802. this.updateCount(this.wbCount, t);
  16803. } else {
  16804. this.wbCount++;
  16805. a = this.wbCount;
  16806. this.toolsCount(a, t);
  16807. }
  16808. window.topU.postMessage(
  16809. {
  16810. tools: "1",
  16811. cid: this.id,
  16812. stage: this.courseType,
  16813. task: this.taskCount,
  16814. tool: i,
  16815. },
  16816. "*"
  16817. );
  16818. } else if (t == 2) {
  16819. if (this.wordCount > 0) {
  16820. this.updateCount(this.wordCount, t);
  16821. } else {
  16822. this.wordCount++;
  16823. a = this.wordCount;
  16824. this.toolsCount(a, t);
  16825. }
  16826. window.topU.postMessage({ tools: "2" }, "*");
  16827. } else if (t == 3) {
  16828. if (this.mindCount > 0) {
  16829. this.updateCount(this.mindCount, t);
  16830. } else {
  16831. this.mindCount++;
  16832. a = this.mindCount;
  16833. this.toolsCount(a, t);
  16834. }
  16835. window.topU.postMessage(
  16836. {
  16837. tools: "3",
  16838. cid: this.id,
  16839. stage: this.courseType,
  16840. task: this.taskCount,
  16841. tool: i,
  16842. },
  16843. "*"
  16844. );
  16845. } else if (t == 4) {
  16846. this.radio = [];
  16847. this.noteName = "";
  16848. this.isAnswer = false;
  16849. if (this.askCount > 0) {
  16850. this.updateCount(this.askCount, t);
  16851. } else {
  16852. this.askCount++;
  16853. a = this.askCount;
  16854. this.toolsCount(a, t);
  16855. }
  16856. this.askJson.askJson =
  16857. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16858. index
  16859. ].toolChoose[i].askJson;
  16860. this.askJson.askTitle =
  16861. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16862. index
  16863. ].toolChoose[i].askTitle;
  16864. this.askJson.askCount =
  16865. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16866. index
  16867. ].toolChoose[i].askCount;
  16868. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16869. if (this.askJson.askJson[k].type == "2") {
  16870. this.radio.push([]);
  16871. } else {
  16872. this.radio.push("");
  16873. }
  16874. }
  16875. this.dialogVisible5 = true;
  16876. // window.topU.postMessage({ tools: "4" }, "*");
  16877. } else if (t == 45) {
  16878. this.noteName = "";
  16879. this.radio = [];
  16880. this.isAnswer = false;
  16881. if (this.askCount > 0) {
  16882. this.updateCount(this.askCount, t);
  16883. } else {
  16884. this.askCount++;
  16885. a = this.askCount;
  16886. this.toolsCount(a, t);
  16887. }
  16888. this.testJson =
  16889. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16890. index
  16891. ].toolChoose[i].testJson;
  16892. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16893. if (this.testJson.testJson[k].type == "2") {
  16894. this.radio.push([]);
  16895. } else {
  16896. this.radio.push("");
  16897. }
  16898. }
  16899. this.dialogVisibleChoice = true;
  16900. // window.topU.postMessage({ tools: "4" }, "*");
  16901. } else if (t == 5) {
  16902. if (this.scoreCount > 0) {
  16903. this.updateCount(this.scoreCount, t);
  16904. } else {
  16905. this.scoreCount++;
  16906. a = this.scoreCount;
  16907. this.toolsCount(a, t);
  16908. }
  16909. this.dialogVisible4 = true;
  16910. // window.topU.postMessage({ tools: "5" }, "*");
  16911. } else if (t == 6) {
  16912. if (this.noteCount > 0) {
  16913. this.updateCount(this.noteCount, t);
  16914. } else {
  16915. this.noteCount++;
  16916. a = this.noteCount;
  16917. this.toolsCount(a, t);
  16918. }
  16919. window.topU.postMessage(
  16920. {
  16921. tools: "6",
  16922. cid: this.id,
  16923. stage: this.courseType,
  16924. task: this.taskCount,
  16925. tool: i,
  16926. },
  16927. "*"
  16928. );
  16929. } else if (t == 7) {
  16930. if (this.mindNetWorkCount > 0) {
  16931. this.updateCount(this.mindNetWorkCount, t);
  16932. } else {
  16933. this.mindNetWorkCount++;
  16934. a = this.mindNetWorkCount;
  16935. this.toolsCount(a, t);
  16936. }
  16937. window.topU.postMessage(
  16938. {
  16939. tools: "7",
  16940. cid: this.id,
  16941. stage: this.courseType,
  16942. task: this.taskCount,
  16943. tool: i,
  16944. },
  16945. "*"
  16946. );
  16947. } else if (t == 16) {
  16948. if (this.workCount > 0) {
  16949. this.updateCount(this.workCount, t);
  16950. } else {
  16951. this.workCount++;
  16952. a = this.workCount;
  16953. this.toolsCount(a, t);
  16954. }
  16955. this.dialogVisible = true;
  16956. } else if (t == 50) {
  16957. if (this.tType == 2) {
  16958. this.$message.error("不支持学生使用");
  16959. return;
  16960. }
  16961. this.plworkFile = [];
  16962. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16963. if (!this.uploadCid) {
  16964. this.$message.error(
  16965. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16966. );
  16967. return;
  16968. }
  16969. this.selectUploadStudent(2);
  16970. } else if (t == 8) {
  16971. if (this.libraryCount > 0) {
  16972. this.updateCount(this.libraryCount, t);
  16973. } else {
  16974. this.libraryCount++;
  16975. a = this.libraryCount;
  16976. this.toolsCount(a, t);
  16977. }
  16978. window.topU.postMessage({ tools: "8" }, "*");
  16979. } else if (t == 17) {
  16980. if (this.libraryCount > 0) {
  16981. this.updateCount(this.libraryCount, t);
  16982. } else {
  16983. this.libraryCount++;
  16984. a = this.libraryCount;
  16985. this.toolsCount(a, t);
  16986. }
  16987. window.topU.postMessage({ tools: "17" }, "*");
  16988. } else if (t == 18) {
  16989. if (this.trainCount > 0) {
  16990. this.updateCount(this.trainCount, t);
  16991. } else {
  16992. this.trainCount++;
  16993. a = this.trainCount;
  16994. this.toolsCount(a, t);
  16995. }
  16996. window.topU.postMessage({ tools: "18" }, "*");
  16997. } else if (t == 10) {
  16998. if (this.timeCount > 0) {
  16999. this.updateCount(this.timeCount, t);
  17000. } else {
  17001. this.timeCount++;
  17002. a = this.timeCount;
  17003. this.toolsCount(a, t);
  17004. }
  17005. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17006. .taskJson[index].toolChoose[i].preTime
  17007. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17008. .toolChoose[i].preTime
  17009. : "";
  17010. this.timeDialogVisible = true;
  17011. } else if (t == 15) {
  17012. this.answerQ = "";
  17013. this.questionAnswer = "";
  17014. if (this.answerCount > 0) {
  17015. this.updateCount(this.answerCount, t);
  17016. } else {
  17017. this.answerCount++;
  17018. a = this.answerCount;
  17019. this.toolsCount(a, t);
  17020. }
  17021. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17022. .taskJson[index].toolChoose[i].answerQ
  17023. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17024. .toolChoose[i].answerQ
  17025. : "";
  17026. this.answerDialogVisible = true;
  17027. } else if (t == 21) {
  17028. window.topU.postMessage({ tools: "21" }, "*");
  17029. } else if (t == 22) {
  17030. window.topU.postMessage({ tools: "22" }, "*");
  17031. } else if (t == 23) {
  17032. window.topU.postMessage({ tools: "23" }, "*");
  17033. } else if (t == 24) {
  17034. window.topU.postMessage({ tools: "24" }, "*");
  17035. } else if (t == 25) {
  17036. window.topU.postMessage({ tools: "25" }, "*");
  17037. } else if (t == 31) {
  17038. window.topU.postMessage({ tools: "31" }, "*");
  17039. } else if (t == 28) {
  17040. window.topU.postMessage({ tools: "28" }, "*");
  17041. } else if (t == 37) {
  17042. window.topU.postMessage({ tools: "37" }, "*");
  17043. } else if (t == 38) {
  17044. window.topU.postMessage({ tools: "38" }, "*");
  17045. } else if (t == 39) {
  17046. window.topU.postMessage({ tools: "39" }, "*");
  17047. } else if (t == 32) {
  17048. window.topU.postMessage({ tools: "32" }, "*");
  17049. } else if (t == 66) {
  17050. window.topU.postMessage({ tools: "66" }, "*");
  17051. } else if (t == 67) {
  17052. window.topU.postMessage({ tools: "67" }, "*");
  17053. } else if (t == 68) {
  17054. window.topU.postMessage({ tools: "68" }, "*");
  17055. } else if (t == 57) {
  17056. // window.topU.postMessage({ tools: "57" }, "*");
  17057. window.topU.postMessage(
  17058. {
  17059. tools: "57u",
  17060. cid: this.id,
  17061. stage: this.courseType,
  17062. task: this.taskCount,
  17063. tool: i,
  17064. },
  17065. "*"
  17066. );
  17067. } else if (t == 58) {
  17068. window.topU.postMessage({ tools: "58" }, "*");
  17069. } else if (t == 59) {
  17070. window.topU.postMessage({ tools: "59" }, "*");
  17071. } else if (t == 60) {
  17072. window.topU.postMessage({ tools: "60" }, "*");
  17073. } else if (t == 61) {
  17074. window.topU.postMessage({ tools: "61" }, "*");
  17075. } else if (t == 63) {
  17076. window.topU.postMessage({ tools: "63" }, "*");
  17077. } else if (t == 65) {
  17078. if (this.tType == 2) {
  17079. this.$message.error("不支持学生使用");
  17080. return;
  17081. }
  17082. this.uploadCid = this.tcid;
  17083. if (!this.uploadCid) {
  17084. this.$message.error(
  17085. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  17086. );
  17087. return;
  17088. }
  17089. this.selectPickStudent();
  17090. } else if (t == 26) {
  17091. window.topU.postMessage(
  17092. {
  17093. tools: "26",
  17094. cid: this.id,
  17095. stage: this.courseType,
  17096. task: this.taskCount,
  17097. tool: i,
  17098. },
  17099. "*"
  17100. );
  17101. } else if (t == 40) {
  17102. if (this.evalCount > 0) {
  17103. this.updateCount(this.evalCount, t);
  17104. } else {
  17105. this.evalCount++;
  17106. a = this.evalCount;
  17107. this.toolsCount(a, t);
  17108. }
  17109. this.eScore = { eBzText: "", eStar: [] };
  17110. if (this.worksStudent[i].length) {
  17111. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17112. if (this.userid == this.worksStudent[i][k].userid) {
  17113. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17114. this.rateJson =
  17115. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17116. index
  17117. ].toolChoose[i].rateJson;
  17118. break;
  17119. } else {
  17120. this.rateJson =
  17121. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17122. index
  17123. ].toolChoose[i].rateJson;
  17124. }
  17125. }
  17126. } else {
  17127. this.rateJson =
  17128. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17129. index
  17130. ].toolChoose[i].rateJson;
  17131. }
  17132. this.isStar = false;
  17133. this.studentEvalDialogVisible = true;
  17134. } else if (t == 41) {
  17135. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17136. .taskJson[index].toolChoose[i].selectJson
  17137. ? JSON.parse(
  17138. JSON.stringify(
  17139. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17140. index
  17141. ].toolChoose[i].selectJson
  17142. )
  17143. )
  17144. : { url: "", select: [], answer: [] };
  17145. if (this.worksStudent[i].length) {
  17146. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17147. if (this.userid == this.worksStudent[i][k].userid) {
  17148. var a = this.worksStudent[i][k].works.split(",");
  17149. for (var ki = 0; ki < a.length; ki++) {
  17150. a[ki] = parseInt(a[ki]);
  17151. }
  17152. this.selectAnswer = {
  17153. answer: a,
  17154. stu: this.worksStudent[i][k].sName,
  17155. };
  17156. break;
  17157. } else {
  17158. this.selectAnswer = { answer: [], stu: "" };
  17159. }
  17160. }
  17161. } else {
  17162. this.selectAnswer = { answer: [], stu: "" };
  17163. }
  17164. this.isSelect = false;
  17165. this.dialogVisibleSelect = true;
  17166. } else if (t == 44) {
  17167. window.topU.postMessage({ tools: "44" }, "*");
  17168. } else if (t == 47) {
  17169. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17170. .taskJson[index].toolChoose[i].sentenceList
  17171. ? JSON.parse(
  17172. JSON.stringify(
  17173. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17174. index
  17175. ].toolChoose[i].sentenceList
  17176. )
  17177. )
  17178. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17179. for (var q = 0; q < this.sentenceList.length; q++) {
  17180. this.sentenceList[q].chooseSenList = [];
  17181. this.sentenceList[q].addChangeSen = [];
  17182. this.sentenceList[q].addChangeSen = JSON.parse(
  17183. JSON.stringify(this.sentenceList[q].addSentence)
  17184. );
  17185. this.sentenceList[q].chooseSenList.length =
  17186. this.sentenceList[q].rightAnswer.length;
  17187. }
  17188. this.dialogVisibleSentence = true;
  17189. } else if (t == 48) {
  17190. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17191. .taskJson[index].toolChoose[i].tableJson
  17192. ? JSON.parse(
  17193. JSON.stringify(
  17194. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17195. index
  17196. ].toolChoose[i].tableJson
  17197. )
  17198. )
  17199. : { text: "" };
  17200. if (this.worksStudent[i].length) {
  17201. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17202. if (this.userid == this.worksStudent[i][k].userid) {
  17203. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17204. break;
  17205. }
  17206. }
  17207. }
  17208. this.dialogVisibleTable = true;
  17209. } else if (t == 52) {
  17210. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17211. .taskJson[index].toolChoose[i].wordJson
  17212. ? JSON.parse(
  17213. JSON.stringify(
  17214. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17215. index
  17216. ].toolChoose[i].wordJson
  17217. )
  17218. )
  17219. : { text: "" };
  17220. if (this.worksStudent[i].length) {
  17221. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17222. if (this.userid == this.worksStudent[i][k].userid) {
  17223. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17224. break;
  17225. }
  17226. }
  17227. }
  17228. this.dialogVisibleWord = true;
  17229. } else if (t == 49) {
  17230. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  17231. return
  17232. }
  17233. this.groupJson =
  17234. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17235. index
  17236. ].toolChoose[i].groupJson;
  17237. this.dialogVisibleGroup = true;
  17238. } else if (t == 62) {
  17239. this.videoJson =
  17240. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17241. index
  17242. ].toolChoose[i].videoJson;
  17243. this.dialogVisibleVideo = true;
  17244. }
  17245. },
  17246. teacherWorkSubmit(t, i, index, s) {
  17247. this.sStudent = s;
  17248. this.sTool = t;
  17249. this.toolindex = i;
  17250. if (this.tType !== "1" && this.tType !== "4") {
  17251. return;
  17252. }
  17253. if (t == 16 || t == 32 || t == 50) {
  17254. this.dialogVisibleWorks = true; //作业提交
  17255. } else if (t == 15) {
  17256. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17257. .taskJson[index].toolChoose[i].answerQ
  17258. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17259. .toolChoose[i].answerQ
  17260. : "";
  17261. this.questionAnswer = "";
  17262. this.answerDialogVisibleTeacher = true; //问答
  17263. } else if (t == 52) {
  17264. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17265. .taskJson[index].toolChoose[i].wordJson
  17266. ? JSON.parse(
  17267. JSON.stringify(
  17268. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17269. index
  17270. ].toolChoose[i].wordJson
  17271. )
  17272. )
  17273. : { text: "" };
  17274. if (this.worksStudent[i].length) {
  17275. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17276. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17277. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17278. break;
  17279. }
  17280. }
  17281. }
  17282. this.dialogVisibleWordTeacher = true; //文档
  17283. } else if (t == 4) {
  17284. this.radio = [];
  17285. this.noteName = "";
  17286. this.isAnswer = false;
  17287. if (this.askCount > 0) {
  17288. this.updateCount(this.askCount, t);
  17289. } else {
  17290. this.askCount++;
  17291. a = this.askCount;
  17292. this.toolsCount(a, t);
  17293. }
  17294. if (!this.dialogVisible2) {
  17295. this.askJson.askJson =
  17296. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17297. index
  17298. ].toolChoose[i].askJson;
  17299. this.askJson.askTitle =
  17300. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17301. index
  17302. ].toolChoose[i].askTitle;
  17303. this.askJson.askCount =
  17304. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17305. index
  17306. ].toolChoose[i].askCount;
  17307. } else {
  17308. this.askJson.askJson = this.chapTools.askJson.askJson;
  17309. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17310. this.askJson.askCount = this.chapTools.askJson.askCount;
  17311. }
  17312. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17313. if (this.askJson.askJson[k].type == "2") {
  17314. this.radio.push([]);
  17315. } else {
  17316. this.radio.push("");
  17317. }
  17318. }
  17319. this.dialogVisible5Teacher = true;
  17320. } else if (t == 45) {
  17321. this.noteName = "";
  17322. this.radio = [];
  17323. this.isAnswer = false;
  17324. if (this.askCount > 0) {
  17325. this.updateCount(this.askCount, t);
  17326. } else {
  17327. this.askCount++;
  17328. a = this.askCount;
  17329. this.toolsCount(a, t);
  17330. }
  17331. this.testJson =
  17332. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17333. index
  17334. ].toolChoose[i].testJson;
  17335. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17336. if (this.testJson.testJson[k].type == "2") {
  17337. this.radio.push([]);
  17338. } else {
  17339. this.radio.push("");
  17340. }
  17341. }
  17342. this.dialogVisibleChoiceTeacher = true;
  17343. } else if (t == 41) {
  17344. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17345. .taskJson[index].toolChoose[i].selectJson
  17346. ? JSON.parse(
  17347. JSON.stringify(
  17348. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17349. index
  17350. ].toolChoose[i].selectJson
  17351. )
  17352. )
  17353. : { url: "", select: [], answer: [] };
  17354. if (this.worksStudent[i].length) {
  17355. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17356. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17357. var a = this.worksStudent[i][k].works.split(",");
  17358. for (var ki = 0; ki < a.length; ki++) {
  17359. a[ki] = parseInt(a[ki]);
  17360. }
  17361. this.selectAnswer = {
  17362. answer: a,
  17363. stu: this.worksStudent[i][k].sName,
  17364. };
  17365. break;
  17366. } else {
  17367. this.selectAnswer = { answer: [], stu: "" };
  17368. }
  17369. }
  17370. } else {
  17371. this.selectAnswer = { answer: [], stu: "" };
  17372. }
  17373. this.isSelect = false;
  17374. this.dialogVisibleSelectTeacher = true;
  17375. } else if (t == 47) {
  17376. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17377. .taskJson[index].toolChoose[i].sentenceList
  17378. ? JSON.parse(
  17379. JSON.stringify(
  17380. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17381. index
  17382. ].toolChoose[i].sentenceList
  17383. )
  17384. )
  17385. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17386. for (var q = 0; q < this.sentenceList.length; q++) {
  17387. this.sentenceList[q].chooseSenList = [];
  17388. this.sentenceList[q].addChangeSen = [];
  17389. this.sentenceList[q].addChangeSen = JSON.parse(
  17390. JSON.stringify(this.sentenceList[q].addSentence)
  17391. );
  17392. this.sentenceList[q].chooseSenList.length =
  17393. this.sentenceList[q].rightAnswer.length;
  17394. }
  17395. this.dialogVisibleSentenceTeacher = true;
  17396. } else if (t == 48) {
  17397. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17398. .taskJson[index].toolChoose[i].tableJson
  17399. ? JSON.parse(
  17400. JSON.stringify(
  17401. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17402. index
  17403. ].toolChoose[i].tableJson
  17404. )
  17405. )
  17406. : { text: "" };
  17407. if (this.worksStudent[i].length) {
  17408. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17409. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17410. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17411. break;
  17412. }
  17413. }
  17414. }
  17415. this.dialogVisibleTableTeacher = true;
  17416. } else if (t == 40) {
  17417. if (this.evalCount > 0) {
  17418. this.updateCount(this.evalCount, t);
  17419. } else {
  17420. this.evalCount++;
  17421. a = this.evalCount;
  17422. this.toolsCount(a, t);
  17423. }
  17424. this.eScore = { eBzText: "", eStar: [] };
  17425. if (this.worksStudent[i].length) {
  17426. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17427. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17428. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17429. this.rateJson =
  17430. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17431. index
  17432. ].toolChoose[i].rateJson;
  17433. break;
  17434. } else {
  17435. this.rateJson =
  17436. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17437. index
  17438. ].toolChoose[i].rateJson;
  17439. }
  17440. }
  17441. } else {
  17442. this.rateJson =
  17443. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17444. index
  17445. ].toolChoose[i].rateJson;
  17446. }
  17447. this.isStar = false;
  17448. this.studentEvalDialogVisibleTeacher = true;
  17449. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17450. window.topU.postMessage(
  17451. {
  17452. tools: t + "teacher",
  17453. cid: this.id,
  17454. stage: this.courseType,
  17455. task: this.taskCount,
  17456. tool: i,
  17457. student: this.sStudent,
  17458. },
  17459. "*"
  17460. );
  17461. }
  17462. },
  17463. openCocoPi(tool, i, uid, uname) {
  17464. let student = {
  17465. userid: uid,
  17466. student: uname,
  17467. };
  17468. if (tool == 57) {
  17469. window.topU.postMessage(
  17470. {
  17471. tools: tool + "teacher",
  17472. cid: this.id,
  17473. stage: this.courseType,
  17474. task: this.taskCount,
  17475. tool: i,
  17476. student: student,
  17477. },
  17478. "*"
  17479. );
  17480. }
  17481. },
  17482. setRightAnswer(s, i, j) {
  17483. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17484. if (
  17485. this.sentenceList[i].chooseSenList[q] == undefined ||
  17486. this.sentenceList[i].chooseSenList[q] == ""
  17487. ) {
  17488. this.sentenceList[i].chooseSenList[q] = s;
  17489. this.sentenceList[i].addChangeSen[j] = "";
  17490. break;
  17491. }
  17492. }
  17493. this.$forceUpdate();
  17494. },
  17495. returnCard(r, i, j) {
  17496. var a = this.sentenceList[i].addSentence.indexOf(r);
  17497. this.sentenceList[i].chooseSenList[j] = "";
  17498. this.sentenceList[i].addChangeSen[a] = r;
  17499. this.$forceUpdate();
  17500. },
  17501. // addSentenceTool() {
  17502. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17503. // this.taskCount
  17504. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17505. // this.sentenceList = [
  17506. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17507. // ];
  17508. // this.dialogVisibleSentence = false;
  17509. // },
  17510. toolsCount(a, t) {
  17511. let params = {
  17512. cid: this.id,
  17513. chid: this.courseType,
  17514. uid: this.userid,
  17515. tid: t,
  17516. count: a,
  17517. };
  17518. this.ajax
  17519. .get(this.$store.state.api + "insertToolsCount", params)
  17520. .then((res) => {
  17521. this.selectCount();
  17522. })
  17523. .catch((err) => {
  17524. console.error(err);
  17525. });
  17526. },
  17527. updateCount(c, t) {
  17528. c++;
  17529. let params = {
  17530. cid: this.id,
  17531. chid: this.courseType,
  17532. uid: this.userid,
  17533. tid: t,
  17534. count: c,
  17535. };
  17536. this.ajax
  17537. .get(this.$store.state.api + "updateToolsCount", params)
  17538. .then((res) => {
  17539. this.selectCount();
  17540. })
  17541. .catch((err) => {
  17542. console.error(err);
  17543. });
  17544. },
  17545. checkEva() {
  17546. if (this.evalua != "") {
  17547. for (var i = 0; i < this.evaJuri.length; i++) {
  17548. if (this.evalua == this.evaJuri[i].id) {
  17549. this.eTitle = this.evaJuri[i].title;
  17550. this.eJson = JSON.parse(this.evaJuri[i].content);
  17551. }
  17552. }
  17553. this.$forceUpdate();
  17554. setTimeout(() => {
  17555. this.setMindData();
  17556. }, 0);
  17557. }
  17558. },
  17559. selectEva() {
  17560. let params = {
  17561. oid: this.oid,
  17562. };
  17563. this.ajax
  17564. .get(this.$store.state.api + "selectAllEvaluation", params)
  17565. .then((res) => {
  17566. this.evaJuri = res.data[0];
  17567. })
  17568. .catch((err) => {
  17569. console.error(err);
  17570. });
  17571. },
  17572. setMindData() {
  17573. this.data.data = [];
  17574. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17575. let _eJson = Object.keys(this.eJson);
  17576. let _e = this.eJson;
  17577. for (let i = 0; i < _eJson.length; i++) {
  17578. let element = _e[_eJson[i]];
  17579. this.data.data.push({
  17580. id: element.id,
  17581. parentid: "root",
  17582. topic: element.name,
  17583. });
  17584. let _eJsonc = Object.keys(element.child);
  17585. let _e2 = element.child;
  17586. for (let j = 0; j < _eJsonc.length; j++) {
  17587. let _ec = _e2[_eJsonc[j]];
  17588. this.data.data.push({
  17589. id: _ec.id,
  17590. parentid: element.id,
  17591. topic: _ec.name,
  17592. });
  17593. let _eJsonz = Object.keys(_ec.child);
  17594. let _e3 = _ec.child;
  17595. for (let z = 0; z < _eJsonz.length; z++) {
  17596. let _ez = _e3[_eJsonz[z]];
  17597. this.data.data.push({
  17598. id: _ez.id,
  17599. parentid: _ec.id,
  17600. topic: _ez.name,
  17601. });
  17602. }
  17603. }
  17604. }
  17605. this.$forceUpdate();
  17606. },
  17607. checkFileFull(type, url) {
  17608. this.fullDialogVisible = true;
  17609. this.fulltype = type;
  17610. this.fullUrl = url;
  17611. },
  17612. checkFileFull1(t, f) {
  17613. this.fullDialogVisible = true;
  17614. if (t == 6) {
  17615. this.fulltype = 1;
  17616. this.fullUrl = JSON.parse(JSON.stringify(f));
  17617. } else if (t == 8) {
  17618. this.fulltype = 2;
  17619. this.fullUrl = f.url;
  17620. } else if (
  17621. t == 3 &&
  17622. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17623. "PDF"
  17624. ) {
  17625. this.fulltype = 3;
  17626. this.fullUrl = f.url;
  17627. } else if (t == 3) {
  17628. this.fulltype = 2;
  17629. this.fullUrl =
  17630. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  17631. }
  17632. },
  17633. openSname(n, id, i, uid) {
  17634. this.snameWid = id;
  17635. this.worksSName = n;
  17636. this.worksSid = uid == n ? "" : uid;
  17637. this.toolindex = i;
  17638. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17639. if (!this.uploadCid) {
  17640. this.$message.error(
  17641. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17642. );
  17643. return;
  17644. }
  17645. this.selectUploadStudent(1);
  17646. },
  17647. updateName() {
  17648. let params = {
  17649. n: this.worksSName,
  17650. cid: this.snameWid,
  17651. };
  17652. this.ajax
  17653. .get(this.$store.state.api + "updateCourseWorksName", params)
  17654. .then((res) => {
  17655. this.$message({
  17656. message: "修改成功",
  17657. type: "success",
  17658. });
  17659. this.dialogVisibleSname = false;
  17660. this.getCourseDetail();
  17661. this.snameWid = "";
  17662. this.worksSName = "";
  17663. })
  17664. .catch((err) => {
  17665. console.error(err);
  17666. });
  17667. },
  17668. downloadFile2(f) {
  17669. // const loading = this.$loading.service({
  17670. // background: "rgba(255, 255, 255, 0.7)",
  17671. // target: document.body,
  17672. // text: "文件加载中...",
  17673. // });
  17674. // let url2 = f.url;
  17675. // let _url2 = "";
  17676. // if (
  17677. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17678. // ) {
  17679. // _url2 = url2.split(
  17680. // "https://view.officeapps.live.com/op/view.aspx?src="
  17681. // )[1];
  17682. // } else {
  17683. // _url2 = url2;
  17684. // }
  17685. // let params = {
  17686. // url: _url2,
  17687. // name: f.name,
  17688. // };
  17689. // this.ajax
  17690. // .get(this.$store.state.api + "download", params)
  17691. // .then((res) => {
  17692. // console.log(res);
  17693. // loading.close();
  17694. // let content = res.data.data.data;
  17695. // let ab = new ArrayBuffer(content.length);
  17696. // let view = new Uint8Array(ab);
  17697. // for (var i = 0; i < content.length; ++i) {
  17698. // view[i] = content[i];
  17699. // }
  17700. // let elink = document.createElement("a");
  17701. // elink.download = f.name;
  17702. // elink.style.display = "none";
  17703. // let blob = new Blob([ab], {
  17704. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  17705. // });
  17706. // elink.href = URL.createObjectURL(blob);
  17707. // document.body.appendChild(elink);
  17708. // elink.click();
  17709. // document.body.removeChild(elink);
  17710. // })
  17711. // .catch((err) => {
  17712. // loading.close();
  17713. // console.error(err);
  17714. // });
  17715. let url = f.url;
  17716. let _this = this;
  17717. let _url = "";
  17718. if (
  17719. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17720. ) {
  17721. _url = url.split(
  17722. "https://view.officeapps.live.com/op/view.aspx?src="
  17723. )[1];
  17724. } else {
  17725. _url = url;
  17726. }
  17727. const loading = _this.$loading.service({
  17728. background: "rgba(255, 255, 255, 0.7)",
  17729. target: document.body,
  17730. text: "文件加载中...",
  17731. });
  17732. let x = new XMLHttpRequest();
  17733. x.open("GET", _url, true);
  17734. x.responseType = "blob";
  17735. x.onload = function () {
  17736. loading.close();
  17737. let url = window.URL.createObjectURL(new Blob([x.response]));
  17738. let a = document.createElement("a");
  17739. a.name = f.name;
  17740. a.href = url;
  17741. a.download = f.name;
  17742. a.click();
  17743. };
  17744. x.send();
  17745. },
  17746. downloadFile(url) {
  17747. let _this = this;
  17748. let _url = "";
  17749. if (
  17750. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17751. ) {
  17752. _url = url.split(
  17753. "https://view.officeapps.live.com/op/view.aspx?src="
  17754. )[1];
  17755. } else {
  17756. _url = url;
  17757. }
  17758. const x = new XMLHttpRequest();
  17759. x.open("GET", _url, true);
  17760. x.responseType = "blob";
  17761. const loading = _this.$loading.service({
  17762. background: "rgba(255, 255, 255, 0.7)",
  17763. target: document.body,
  17764. text: "文件加载中...",
  17765. });
  17766. // _this.$message.success("文件下载中...");
  17767. x.onload = function (e) {
  17768. loading.close();
  17769. // const url = window.URL.createObjectURL(x.response);
  17770. // const a = document.createElement("a");
  17771. // a.href = url;
  17772. // a.target = "_blank";
  17773. // a.download = url;
  17774. // a.click();
  17775. // a.remove();
  17776. let content = x.response;
  17777. let elink = document.createElement("a");
  17778. elink.download = decodeURI(
  17779. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17780. );
  17781. elink.style.display = "none";
  17782. let blob = new Blob([content]);
  17783. elink.href = URL.createObjectURL(blob);
  17784. document.body.appendChild(elink);
  17785. elink.click();
  17786. document.body.removeChild(elink);
  17787. };
  17788. x.send();
  17789. },
  17790. openLine(url) {
  17791. window.open(url);
  17792. },
  17793. resize() {
  17794. if (document.getElementsByClassName("box_course").length) {
  17795. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17796. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17797. if (this.showType == 2 || this.showType == 3) {
  17798. document.getElementsByClassName("navBox")[0].style.height =
  17799. a - 40 + 0+ "px";
  17800. } else {
  17801. document.getElementsByClassName("navBox")[0].style.height =
  17802. a - 40 + "px";
  17803. }
  17804. }
  17805. this.Stbodywidth =
  17806. document.getElementsByClassName("student_body").length &&
  17807. document.getElementsByClassName("student_body")[0].offsetWidth;
  17808. },
  17809. closeDraw() {
  17810. this.bg = null;
  17811. this.drawShow = false;
  17812. },
  17813. showPicturePaint(url) {
  17814. let params = {
  17815. img: url,
  17816. };
  17817. this.ajax
  17818. .get(this.$store.state.api + "imgToBase64", params)
  17819. .then((res) => {
  17820. console.log(res);
  17821. this.drawShow = true;
  17822. this.bg = res.data[0].img;
  17823. })
  17824. .catch((err) => {
  17825. console.error(err);
  17826. });
  17827. },
  17828. addImgDraw(base64) {
  17829. let file = { name: "批注图.png" };
  17830. let img = this.dataUrlToFile(base64, file);
  17831. this.beforeUpload1(img, 5);
  17832. },
  17833. addImgDrawImG(url) {
  17834. // console.log(url);
  17835. let params = [
  17836. {
  17837. wid: this.commentDetail.wid,
  17838. img: url,
  17839. },
  17840. ];
  17841. this.ajax
  17842. .post(this.$store.state.api + "updateCourseWorks", params)
  17843. .then((res) => {
  17844. this.$message({
  17845. message: "提交成功",
  17846. type: "success",
  17847. });
  17848. this.drawShow = false;
  17849. this.bg = "";
  17850. this.selectSWorks();
  17851. this.selectStudent();
  17852. })
  17853. .catch((err) => {
  17854. this.$message.error("提交失败");
  17855. console.error(err);
  17856. });
  17857. },
  17858. deletePicturePaint() {
  17859. this.$confirm("确定删除此批注吗?", "提示", {
  17860. confirmButtonText: "确定",
  17861. cancelButtonText: "取消",
  17862. type: "warning",
  17863. })
  17864. .then(() => {
  17865. let params = [
  17866. {
  17867. wid: this.commentDetail.wid,
  17868. img: "",
  17869. },
  17870. ];
  17871. this.ajax
  17872. .post(this.$store.state.api + "updateCourseWorks", params)
  17873. .then((res) => {
  17874. this.$message({
  17875. message: "删除成功",
  17876. type: "success",
  17877. });
  17878. this.selectSWorks();
  17879. this.selectStudent();
  17880. })
  17881. .catch((err) => {
  17882. this.$message.error("删除失败");
  17883. console.error(err);
  17884. });
  17885. })
  17886. .catch(() => {});
  17887. },
  17888. getAudioVideo(constraintsData) {
  17889. if (navigator.mediaDevices === undefined) {
  17890. navigator.mediaDevices = {};
  17891. }
  17892. if (navigator.mediaDevices.getUserMedia === undefined) {
  17893. navigator.mediaDevices.getUserMedia = function (constraints) {
  17894. // 首先,如果有getUserMedia的话,就获得它
  17895. var getUserMedia =
  17896. navigator.getUserMedia ||
  17897. navigator.webkitGetUserMedia ||
  17898. navigator.mozGetUserMedia ||
  17899. navigator.msGetUserMedia;
  17900. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  17901. if (!getUserMedia) {
  17902. return Promise.reject({ code: 404 });
  17903. }
  17904. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  17905. return new Promise(function (resolve, reject) {
  17906. getUserMedia.call(navigator, constraints, resolve, reject);
  17907. });
  17908. };
  17909. }
  17910. return navigator.mediaDevices.getUserMedia(constraintsData);
  17911. },
  17912. /**
  17913. * 开始录制
  17914. */
  17915. startRecording(callback) {
  17916. let _function = (screenStream) => {
  17917. this.addStreamStopListener(screenStream, () => {
  17918. console.log("流停止监听");
  17919. this.stopRecording();
  17920. this.$emit("streamStop", {});
  17921. // this.stopRecording();
  17922. });
  17923. var options = {
  17924. type: "video",
  17925. mimeType: "video/webm",
  17926. disableLogs: false,
  17927. getNativeBlob: false, // enable it for longer recordings
  17928. ignoreMutedMedia: false,
  17929. };
  17930. // this.video.srcObject = screenStream;
  17931. this.recorder = RecordRTC(screenStream, options);
  17932. this.recorder.startRecording();
  17933. this.recorder.screen = screenStream;
  17934. this.videoStart = true;
  17935. // callback(true);
  17936. };
  17937. this.getAudioVideo({ audio: true })
  17938. .then((res) => {
  17939. this.captureScreen(_function, true);
  17940. console.log("已点击允许,开启成功");
  17941. })
  17942. .catch((err) => {
  17943. // console.log('浏览器不支持,请更换浏览器')
  17944. // } else {
  17945. this.captureScreen(_function, false);
  17946. console.log("请检查是否存在麦克风");
  17947. });
  17948. },
  17949. /**
  17950. * 停止录制
  17951. */
  17952. stopRecording(callback) {
  17953. this.recorder.stopRecording(() => {
  17954. // this.video.src = this.video.srcObject = null;
  17955. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  17956. const url = URL.createObjectURL(this.recorder.getBlob());
  17957. const a = document.createElement("a"); //this.fileName+
  17958. let videoFile = new File(
  17959. [this.recorder.getBlob()],
  17960. this.courseDetail.title + "录屏.mp4",
  17961. {
  17962. type: "video/mp4",
  17963. }
  17964. );
  17965. let downloadUrl = URL.createObjectURL(videoFile);
  17966. document.body.appendChild(a);
  17967. a.style.display = "none";
  17968. a.href = url;
  17969. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  17970. a.click();
  17971. this.recorder.screen.stop();
  17972. this.recorder.destroy();
  17973. this.recorder = null;
  17974. this.videoStart = false;
  17975. // callback(false);
  17976. });
  17977. },
  17978. //初始化
  17979. captureScreen(callback, type) {
  17980. if (navigator.getDisplayMedia) {
  17981. //录制结束,文件下载
  17982. navigator
  17983. .getDisplayMedia({
  17984. video: true,
  17985. })
  17986. .then((screenStream) => {
  17987. if (type) {
  17988. navigator.mediaDevices
  17989. .getUserMedia({ audio: true })
  17990. .then((mic) => {
  17991. screenStream.addTrack(mic.getTracks()[0]);
  17992. callback(screenStream);
  17993. });
  17994. } else {
  17995. callback(screenStream);
  17996. }
  17997. })
  17998. .catch(function (error) {
  17999. console.log("error", error);
  18000. });
  18001. } else if (navigator.mediaDevices.getDisplayMedia) {
  18002. navigator.mediaDevices
  18003. .getDisplayMedia({
  18004. video: true,
  18005. })
  18006. .then((screenStream) => {
  18007. if (type) {
  18008. navigator.mediaDevices
  18009. .getUserMedia({ audio: true })
  18010. .then((mic) => {
  18011. screenStream.addTrack(mic.getTracks()[0]);
  18012. callback(screenStream);
  18013. });
  18014. } else {
  18015. callback(screenStream);
  18016. }
  18017. })
  18018. .catch(function (error) {
  18019. console.log("error", error);
  18020. });
  18021. } else {
  18022. var error = "getDisplayMedia API are not supported in this browser.";
  18023. console.log("error", error);
  18024. alert(error);
  18025. }
  18026. },
  18027. //流监听
  18028. addStreamStopListener(stream, callback) {
  18029. stream.addEventListener(
  18030. "ended",
  18031. function () {
  18032. callback();
  18033. callback = function () {};
  18034. },
  18035. false
  18036. );
  18037. stream.addEventListener(
  18038. "inactive",
  18039. function () {
  18040. callback();
  18041. callback = function () {};
  18042. },
  18043. false
  18044. );
  18045. stream.getTracks().forEach(function (track) {
  18046. track.addEventListener(
  18047. "ended",
  18048. function () {
  18049. callback();
  18050. callback = function () {};
  18051. },
  18052. false
  18053. );
  18054. track.addEventListener(
  18055. "inactive",
  18056. function () {
  18057. callback();
  18058. callback = function () {};
  18059. },
  18060. false
  18061. );
  18062. });
  18063. },
  18064. updateGroup() {
  18065. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18066. this.dialogVisibleGroup2 = true;
  18067. },
  18068. numberPan() {
  18069. if (
  18070. /[^\d]/.test(this.groupJson.number) ||
  18071. this.groupJson.number < 2 ||
  18072. this.groupJson.number > 10
  18073. ) {
  18074. this.$message.error("请输入2-10的数字");
  18075. this.groupJson.number = "";
  18076. }
  18077. },
  18078. updateGroupJson() {
  18079. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  18080. if (
  18081. this.groupStudentUid[this.toolindex][i].length >
  18082. this.groupJson2.number
  18083. ) {
  18084. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  18085. return;
  18086. }
  18087. }
  18088. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  18089. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18090. this.taskCount
  18091. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  18092. let params = [
  18093. {
  18094. cid: this.id,
  18095. chapters: JSON.stringify(this.chapInfoList),
  18096. uid: this.userid,
  18097. unitIndex: this.courseType,
  18098. },
  18099. ];
  18100. this.ajax
  18101. .post(this.$store.state.api + "updateWorkNew4", params)
  18102. .then((res) => {
  18103. this.$message.success("设置成功");
  18104. this.getCourseDetail(2);
  18105. this.dialogVisibleGroup2 = false;
  18106. this.groupJson2 = {};
  18107. this.$forceUpdate();
  18108. })
  18109. .catch((err) => {
  18110. this.$message.error("网络不佳");
  18111. console.error(err);
  18112. });
  18113. },
  18114. lockChair() {
  18115. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18116. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  18117. this.updateGroupJson();
  18118. },
  18119. selectGroup(index) {
  18120. this.getCourseDetail(2, index);
  18121. },
  18122. joinGroup(index) {
  18123. if (this.groupJson.islock == 2) {
  18124. this.$message.error("位置已被锁定,无法加入");
  18125. return;
  18126. }
  18127. if (
  18128. this.groupStudent[this.toolindex][index].length >
  18129. this.groupJson.number ||
  18130. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  18131. ) {
  18132. this.$message.error("位置已满,无法加入");
  18133. return;
  18134. }
  18135. let params = [
  18136. {
  18137. cid: this.id,
  18138. stage: this.courseType,
  18139. task: this.taskCount,
  18140. tool: this.toolindex,
  18141. g: index,
  18142. uid: this.userid,
  18143. },
  18144. ];
  18145. this.ajax
  18146. .post(this.$store.state.api + "joinGroup", params)
  18147. .then((res) => {
  18148. this.$message.success("加入成功");
  18149. this.getCourseDetail();
  18150. })
  18151. .catch((err) => {
  18152. this.$message.error("网络不佳");
  18153. console.error(err);
  18154. });
  18155. },
  18156. exitGroup(id) {
  18157. if (this.groupJson.islock == 2) {
  18158. this.$message.error("位置已被锁定,无法退出");
  18159. return;
  18160. }
  18161. let params = [
  18162. {
  18163. gid: id,
  18164. },
  18165. ];
  18166. this.ajax
  18167. .post(this.$store.state.api + "exitGroup", params)
  18168. .then((res) => {
  18169. this.$message.success("退出成功");
  18170. this.getCourseDetail();
  18171. })
  18172. .catch((err) => {
  18173. this.$message.error("网络不佳");
  18174. console.error(err);
  18175. });
  18176. },
  18177. groupUpload(index, task, gindex) {
  18178. this.taskCount = task;
  18179. this.toolindex = index;
  18180. this.groupIndex = gindex;
  18181. this.dialogVisibleGroupWork = true;
  18182. },
  18183. updateGroupChair(user) {
  18184. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  18185. el.label = index;
  18186. return index != user.group;
  18187. });
  18188. this.updateGroupUser = user;
  18189. this.dialogVisibleUpdateGroup = true;
  18190. },
  18191. updateChair() {
  18192. if (
  18193. this.groupStudent[this.toolindex][this.checkChair].length >
  18194. this.groupJson.number ||
  18195. this.groupStudent[this.toolindex][this.checkChair].length ==
  18196. this.groupJson.number
  18197. ) {
  18198. this.$message.error("位置已满,无法加入");
  18199. return;
  18200. }
  18201. let params = [
  18202. {
  18203. cid: this.id,
  18204. stage: this.courseType,
  18205. task: this.taskCount,
  18206. tool: this.toolindex,
  18207. g: this.checkChair,
  18208. uid: this.updateGroupUser.userid,
  18209. },
  18210. ];
  18211. this.ajax
  18212. .post(this.$store.state.api + "joinGroup", params)
  18213. .then((res) => {
  18214. this.$message.success("修改成功");
  18215. this.updateGroupUser = {};
  18216. this.checkChair = "";
  18217. this.updateGroupArray = {};
  18218. this.dialogVisibleUpdateGroup = false;
  18219. this.getCourseDetail();
  18220. })
  18221. .catch((err) => {
  18222. this.$message.error("网络不佳");
  18223. console.error(err);
  18224. });
  18225. },
  18226. deleteGroupChair(gindex) {
  18227. this.checkDeleteGroup = [];
  18228. this.deleteGroupUser = JSON.parse(
  18229. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  18230. );
  18231. this.deleteGroupArray = this.groupJson.group[gindex];
  18232. this.groupIndex = gindex;
  18233. this.dialogVisibleDeleteGroup = true;
  18234. },
  18235. async deleteChair() {
  18236. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  18237. const gid =
  18238. this.groupStudent[this.toolindex][this.groupIndex][
  18239. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  18240. this.checkDeleteGroup[i]
  18241. )
  18242. ];
  18243. let params = [
  18244. {
  18245. gid: gid.id,
  18246. },
  18247. ];
  18248. var a = await this.deleteChairA(params);
  18249. if (i == this.checkDeleteGroup.length - 1) {
  18250. this.$message.success("退出成功");
  18251. this.dialogVisibleDeleteGroup = false;
  18252. this.deleteGroupUser = [];
  18253. this.deleteGroupArray = {};
  18254. this.groupIndex = "";
  18255. this.checkDeleteGroup = [];
  18256. this.getCourseDetail();
  18257. }
  18258. }
  18259. },
  18260. deleteChairA(params) {
  18261. return new Promise((resolve, reject) => {
  18262. this.ajax
  18263. .post(this.$store.state.api + "exitGroup", params)
  18264. .then((res) => {
  18265. resolve(1);
  18266. })
  18267. .catch((err) => {
  18268. this.$message.error("网络不佳");
  18269. console.error(err);
  18270. });
  18271. });
  18272. },
  18273. contract(i) {
  18274. if (this.isCloseList[i].isClose == 0) {
  18275. this.isCloseList[i].isClose = 1;
  18276. } else {
  18277. this.isCloseList[i].isClose = 0;
  18278. }
  18279. this.$forceUpdate();
  18280. },
  18281. openTools2(i) {
  18282. this.$message.error("暂未开放");
  18283. return;
  18284. },
  18285. addTools2(i) {
  18286. if (i == 4) {
  18287. // this.openTools2(4);
  18288. this.$message.error("暂未开放");
  18289. return;
  18290. }
  18291. if (i == 45) {
  18292. // this.openTools2(45);
  18293. this.$message.error("暂未开放");
  18294. return;
  18295. }
  18296. if (i == 47) {
  18297. // this.openTools2(47);
  18298. this.$message.error("暂未开放");
  18299. return;
  18300. }
  18301. if (i == 49) {
  18302. // this.openTools2(49);
  18303. this.$message.error("暂未开放");
  18304. return;
  18305. }
  18306. if (i == 62) {
  18307. // this.openTools(itemTaskIndex, 62, toolIndex);
  18308. this.$message.error("暂未开放");
  18309. return;
  18310. }
  18311. if (i == 15) {
  18312. // this.openTools(itemTaskIndex, 15, toolIndex);
  18313. this.$message.error("暂未开放");
  18314. return;
  18315. }
  18316. if (i == 40) {
  18317. // this.openTools(itemTaskIndex, 40, toolIndex);
  18318. this.$message.error("暂未开放");
  18319. return;
  18320. }
  18321. if (i == 41) {
  18322. // this.openTools(itemTaskIndex, 41, toolIndex);
  18323. this.$message.error("暂未开放");
  18324. return;
  18325. }
  18326. if (i == 42) {
  18327. // this.openTools(itemTaskIndex, 42, toolIndex);
  18328. this.$message.error("暂未开放");
  18329. return;
  18330. }
  18331. if (this.checktoolArray.length > 0) {
  18332. if (this.checktoolArray.indexOf(i) != -1) {
  18333. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  18334. } else {
  18335. this.checktoolArray = [];
  18336. this.checktoolArray.push(i);
  18337. }
  18338. } else {
  18339. this.checktoolArray.push(i);
  18340. }
  18341. this.$forceUpdate();
  18342. },
  18343. addToolChoose() {
  18344. if (!this.checktoolArray.length) {
  18345. this.$message.error("请选择要添加的任务");
  18346. return;
  18347. }
  18348. if (
  18349. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18350. this.taskCount
  18351. ].toolChoose[0].tool.length
  18352. ) {
  18353. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18354. this.taskCount
  18355. ].toolChoose[0].tool = this.checktoolArray;
  18356. } else {
  18357. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18358. this.taskCount
  18359. ].toolChoose.push({
  18360. tool: this.checktoolArray,
  18361. toolDetail: "",
  18362. toolType: 0,
  18363. askCount: 1,
  18364. askTitle: "",
  18365. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  18366. });
  18367. }
  18368. let params = [
  18369. {
  18370. cid: this.id,
  18371. chapters: JSON.stringify(this.chapInfoList),
  18372. uid: this.userid,
  18373. unitIndex: this.courseType,
  18374. },
  18375. ];
  18376. this.ajax
  18377. .post(this.$store.state.api + "updateWorkNew4", params)
  18378. .then((res) => {
  18379. this.$message({
  18380. message: "添加成功",
  18381. type: "success",
  18382. });
  18383. this.checktoolArray = [];
  18384. this.getCourseDetail(2);
  18385. this.checkBz(
  18386. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18387. this.taskCount
  18388. ].toolChoose.length - 1
  18389. );
  18390. this.toolDialogVisible = false;
  18391. this.refreshCourse();
  18392. this.$forceUpdate();
  18393. })
  18394. .catch((err) => {
  18395. console.error(err);
  18396. });
  18397. },
  18398. updateToolDetail() {
  18399. if (!this.isUpdateToolDetail) {
  18400. this.isUpdateToolDetail = true;
  18401. this.updateToolDetailInner = JSON.parse(
  18402. JSON.stringify(this.tool.toolDetail)
  18403. );
  18404. } else {
  18405. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18406. this.taskCount
  18407. ].toolChoose[this.toolIndex].toolDetail = JSON.parse(
  18408. JSON.stringify(this.updateToolDetailInner)
  18409. );
  18410. let params = [
  18411. {
  18412. cid: this.id,
  18413. chapters: JSON.stringify(this.chapInfoList),
  18414. uid: this.userid,
  18415. unitIndex: this.courseType,
  18416. },
  18417. ];
  18418. this.ajax
  18419. .post(this.$store.state.api + "updateWorkNew4", params)
  18420. .then((res) => {
  18421. this.isUpdateToolDetail = false;
  18422. this.$message({
  18423. message: "修改成功",
  18424. type: "success",
  18425. });
  18426. this.updateToolDetailInner = "";
  18427. this.getCourseDetail(2);
  18428. this.$forceUpdate();
  18429. this.checkBz(this.toolIndex);
  18430. })
  18431. .catch((err) => {
  18432. console.error(err);
  18433. });
  18434. }
  18435. },
  18436. openWordCloud(toolindex) {
  18437. let array = [];
  18438. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18439. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18440. array.push({ name: works });
  18441. }
  18442. if (this.isGroup) {
  18443. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18444. let works = this.courseGroup.group[i].works[toolindex];
  18445. for (var j = 0; j < works.length; j++) {
  18446. let answer = JSON.parse(works[j].works)[0].answer;
  18447. array.push({ name: answer });
  18448. }
  18449. }
  18450. }
  18451. this.wordCloudData = array;
  18452. this.dialogVisibleWordCloud = true;
  18453. },
  18454. uploadWorks(i) {
  18455. const loading = this.$loading.service({
  18456. background: "rgba(255, 255, 255, 0.7)",
  18457. target: document.body,
  18458. text: "文件加载中...",
  18459. });
  18460. const _worksStudent = this.worksStudent;
  18461. let url = [];
  18462. var counts = {};
  18463. for (var l = 0; l < _worksStudent[i].length; l++) {
  18464. var item = _worksStudent[i][l];
  18465. var name = item.sName;
  18466. if (!counts.hasOwnProperty(name)) {
  18467. counts[name] = 0;
  18468. } else {
  18469. counts[name]++;
  18470. }
  18471. if (counts[name] > 0) {
  18472. item.sName += " (" + counts[name] + ")";
  18473. }
  18474. }
  18475. for (var l = 0; l < _worksStudent[i].length; l++) {
  18476. var item = _worksStudent[i][l];
  18477. if (
  18478. item.works.indexOf(
  18479. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18480. ) !== -1 &&
  18481. item.works.indexOf("img") === -1
  18482. ) {
  18483. url.push({ name: item.sName, url: item.works });
  18484. }
  18485. }
  18486. // var toolList = [
  18487. // { name: "电子白板", tool: 1 },
  18488. // { name: "思维导图", tool: 3 },
  18489. // { name: "协同文档", tool: 6 },
  18490. // { name: "思维网格", tool: 7 },
  18491. // { name: "素材库", tool: 8 },
  18492. // { name: "学习资料", tool: 17 },
  18493. // { name: "便签", tool: 2 },
  18494. // { name: "问卷调查", tool: 4 },
  18495. // { name: "选择题", tool: 45 },
  18496. // { name: "倒计时", tool: 10 },
  18497. // { name: "问答", tool: 15 },
  18498. // { name: "课程设计", tool: 26 },
  18499. // { name: "训练服务器", tool: 18 },
  18500. // { name: "作业提交", tool: 16 },
  18501. // { name: "批量上传", tool: 50 },
  18502. // { name: "AIoT Blockly", tool: 21 },
  18503. // { name: "AI Python", tool: 23 },
  18504. // { name: "AI Blockly", tool: 24 },
  18505. // { name: "目标管理", tool: 25 },
  18506. // { name: "数学画板", tool: 31 },
  18507. // { name: "翻译", tool: 28 },
  18508. // { name: "魔盒识字", tool: 37 },
  18509. // { name: "数学画板", tool: 31 },
  18510. // { name: "24点", tool: 38 },
  18511. // { name: "GeoGebra", tool: 39 },
  18512. // { name: "源码编辑", tool: 32 },
  18513. // { name: "个人评价", tool: 40 },
  18514. // { name: "选择匹配", tool: 41 },
  18515. // { name: "汉字宫", tool: 44 },
  18516. // { name: "排序", tool: 47 },
  18517. // { name: "表格", tool: 48 },
  18518. // { name: "文档", tool: 52 },
  18519. // { name: "学生分组", tool: 49 },
  18520. // { name: "CocoPi", tool: 57 },
  18521. // { name: "模拟驾驶", tool: 58 },
  18522. // { name: "路径搜索", tool: 59 },
  18523. // { name: "深度学习", tool: 60 },
  18524. // { name: "全历史", tool: 61 },
  18525. // { name: "交互视频", tool: 62 },
  18526. // { name: "海龟编程", tool: 63 },
  18527. // { name: "挑人", tool: 65 },
  18528. // { name: "公式编辑", tool: 66 },
  18529. // { name: "分子结构", tool: 67 },
  18530. // { name: "时间轴", tool: 68 },
  18531. // ];
  18532. // var toolName = "";
  18533. // for(var w = 0;w<toolList.length;w++){
  18534. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18535. // toolName = toolList[w].name;
  18536. // }
  18537. // }
  18538. console.log(url);
  18539. this.downLoadAll(url, loading);
  18540. },
  18541. downLoadAll(url, loading) {
  18542. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18543. const zip = new JSZip();
  18544. const cache = {};
  18545. const promises = [];
  18546. data.forEach((item) => {
  18547. const promise = getFile(item.url).then((data) => {
  18548. if (data.data != 1) {
  18549. // 下载文件, 并存成ArrayBuffer对象
  18550. const file_name = item.name + "." + item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18551. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18552. cache[file_name] = data.data;
  18553. }
  18554. });
  18555. promises.push(promise);
  18556. });
  18557. Promise.all(promises).then(() => {
  18558. zip.generateAsync({ type: "blob" }).then((content) => {
  18559. // 生成二进制流
  18560. FileSaver.saveAs(content, this.courseDetail.title + "-" + "作业提交工具.zip"); // 利用file-saver保存文件 自定义文件名
  18561. setTimeout(() => {
  18562. loading.close();
  18563. }, 2000);
  18564. });
  18565. });
  18566. },
  18567. pickStudent(stu) {
  18568. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18569. return;
  18570. }
  18571. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18572. confirmButtonText: "确定",
  18573. cancelButtonText: "取消",
  18574. type: "warning",
  18575. })
  18576. .then(() => {
  18577. let params = [
  18578. {
  18579. uid: stu.userid,
  18580. cid: this.id,
  18581. stage: this.courseType,
  18582. task: this.taskCount,
  18583. tool: this.toolindex,
  18584. },
  18585. ];
  18586. this.ajax
  18587. .post(this.$store.state.api + "updateCoursePick", params)
  18588. .then((res) => {
  18589. this.$message.success("操作成功");
  18590. this.getPick();
  18591. })
  18592. .catch((err) => {
  18593. this.$message.error("网络不佳");
  18594. console.error(err);
  18595. });
  18596. })
  18597. .catch(() => {});
  18598. },
  18599. getPick() {
  18600. let params = {
  18601. cid: this.id,
  18602. };
  18603. this.ajax
  18604. .get(this.$store.state.api + "getPick", params)
  18605. .then((res) => {
  18606. let array = [];
  18607. for (var i = 0; i < res.data[0].length; i++) {
  18608. array.push(res.data[0][i].userid);
  18609. }
  18610. this.isPickStudent = array;
  18611. if (array.indexOf(this.userid) !== -1) {
  18612. this.$confirm("你被老师选到啦!", "提示", {
  18613. confirmButtonText: "确定",
  18614. showCancelButton: false,
  18615. closeOnClickModal: false,
  18616. type: "warning",
  18617. })
  18618. .then(() => {
  18619. let pa = [
  18620. {
  18621. uid: this.userid,
  18622. cid: this.id,
  18623. },
  18624. ];
  18625. this.ajax
  18626. .post(this.$store.state.api + "deletePick", pa)
  18627. .then((res) => {
  18628. this.getPick();
  18629. })
  18630. .catch((err) => {
  18631. this.$message.error("网络不佳");
  18632. console.error(err);
  18633. });
  18634. })
  18635. .catch(() => {});
  18636. }
  18637. })
  18638. .catch((err) => {
  18639. this.$message.error("网络不佳");
  18640. console.error(err);
  18641. });
  18642. },
  18643. },
  18644. directives: {
  18645. // 使用局部注册指令的方式
  18646. resize: {
  18647. // 指令的名称
  18648. bind(el, binding) {
  18649. // el为绑定的元素,binding为绑定给指令的对象
  18650. let width = "",
  18651. height = "";
  18652. function isReize() {
  18653. const style = document.defaultView.getComputedStyle(el);
  18654. if (width !== style.width || height !== style.height) {
  18655. binding.value(); // 关键
  18656. }
  18657. width = style.width;
  18658. height = style.height;
  18659. }
  18660. el.__vueSetInterval__ = setInterval(isReize, 300);
  18661. },
  18662. unbind(el) {
  18663. clearInterval(el.__vueSetInterval__);
  18664. },
  18665. },
  18666. },
  18667. beforeDestroy() {
  18668. window.onresize = null;
  18669. clearInterval(this.timer);
  18670. this.timer = null;
  18671. clearInterval(this.opertimer);
  18672. this.opertimer = null;
  18673. },
  18674. computed: {
  18675. contentConvent() {
  18676. return function (c) {
  18677. return c
  18678. ? c
  18679. .replaceAll(/\r\n/g, "<br/>")
  18680. .replaceAll(/\n/g, "<br/>")
  18681. .replaceAll(/\s/g, " &nbsp")
  18682. : "";
  18683. };
  18684. },
  18685. checkUpload() {
  18686. return function () {
  18687. var studentK = [];
  18688. if (this.plworkFile.length > 0) {
  18689. for (var z = 0; z < this.plworkFile.length; z++) {
  18690. studentK.push(this.plworkFile[z].username);
  18691. }
  18692. studentK = studentK.join(",");
  18693. }
  18694. var a = this.uploadStudentJuri.filter((el) => {
  18695. return studentK.indexOf(el.userid) == -1;
  18696. });
  18697. return a;
  18698. };
  18699. },
  18700. getSName() {
  18701. return function (name) {
  18702. var check = name;
  18703. this.uploadStudentJuri.forEach((el) => {
  18704. if (el.userid == check) {
  18705. check = el.name ? el.name : el.username;
  18706. }
  18707. });
  18708. return check;
  18709. };
  18710. },
  18711. getImgList() {
  18712. return function (val) {
  18713. let srcList = []; // 定义一个数组用来接收后面的img地址
  18714. val.replace(
  18715. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  18716. function (match, capture) {
  18717. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  18718. srcList.push(capture);
  18719. }
  18720. );
  18721. return srcList;
  18722. };
  18723. },
  18724. },
  18725. mounted() {
  18726. document.body.addEventListener("click", (e) => {
  18727. if (this.isUpdateToolDetail) {
  18728. this.updateToolDetail();
  18729. }
  18730. });
  18731. if (this.screenType == 2) {
  18732. window.topU.postMessage({ allScreen: 4 }, "*");
  18733. } else if (this.screenType == 3) {
  18734. window.topU.postMessage({ allScreen: 5 }, "*");
  18735. } else if (this.screenType == 1) {
  18736. window.topU.postMessage({ allScreen: 6 }, "*");
  18737. }
  18738. this.setOperationTime();
  18739. this.selectEva();
  18740. this.getCourseDetail();
  18741. this.selectCount();
  18742. this.getHomeWork();
  18743. this.toolIndex = null;
  18744. this.contentDialog = true;
  18745. this.setContent2(true);
  18746. if (this.tType == 4) {
  18747. this.pzDialog = true;
  18748. this.selectPz();
  18749. }
  18750. document.scrollingElement.scrollTop = 0;
  18751. window.addEventListener("resize", () => {
  18752. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18753. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18754. if (this.showType == 2 || this.showType == 3) {
  18755. document.getElementsByClassName("navBox")[0].style.height =
  18756. a - 40 + 0+ "px";
  18757. } else {
  18758. document.getElementsByClassName("navBox")[0].style.height =
  18759. a - 40 + "px";
  18760. }
  18761. });
  18762. let _this = this;
  18763. setTimeout(() => {
  18764. // _this.vedioTime = [];
  18765. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18766. // _this.vedioTime[i] = document.getElementsByClassName(
  18767. // "vjs-duration-display"
  18768. // )[i].textContent;
  18769. // }
  18770. }, 1000);
  18771. },
  18772. };
  18773. </script>
  18774. <style scoped>
  18775. @media screen and (max-width: 1280px) {
  18776. /* .courseIndex > div:first-child(2) {
  18777. width: 15% !important;
  18778. } */
  18779. /* .navText {
  18780. width: 120px !important;
  18781. } */
  18782. .evaCss {
  18783. flex-direction: column !important;
  18784. align-items: center !important;
  18785. }
  18786. .dialog_diy1 >>> .el-dialog {
  18787. width: 100% !important;
  18788. }
  18789. .rightWidthCss {
  18790. width: 100% !important;
  18791. }
  18792. .dialog_diy3 >>> .el-dialog {
  18793. width: 100% !important;
  18794. }
  18795. .addToolCss{
  18796. right: 0 !important;
  18797. width: 100% !important;
  18798. }
  18799. /* .textTitle >>> .el-form-item__label {
  18800. width: 150px !important;
  18801. } */
  18802. }
  18803. .evaCssMax {
  18804. flex-direction: column !important;
  18805. align-items: center !important;
  18806. }
  18807. .dialog_diy >>> .el-dialog {
  18808. margin-top: 10vh !important;
  18809. }
  18810. .body_student {
  18811. width: 77%;
  18812. height: 100%;
  18813. position: absolute;
  18814. left: 22%;
  18815. top: 0;
  18816. }
  18817. .student_head {
  18818. width: 100%;
  18819. margin: 20px auto 0;
  18820. padding-bottom: 20px;
  18821. display: flex;
  18822. flex-direction: column;
  18823. flex-wrap: nowrap;
  18824. align-items: flex-start;
  18825. justify-content: flex-start;
  18826. }
  18827. .pb_left {
  18828. width: 20%;
  18829. margin-right: 10px;
  18830. background: rgb(255, 255, 255);
  18831. position: fixed;
  18832. height: calc(100% - 40px);
  18833. border-radius: 20px;
  18834. padding-bottom: 15px;
  18835. box-sizing: border-box;
  18836. }
  18837. .wheel > img,
  18838. .project > img,
  18839. .star > img,
  18840. .evaluate > img,
  18841. .up_photo > img,
  18842. .chapter_add > img,
  18843. .deleteWord > img,
  18844. .question > img,
  18845. .homework > img {
  18846. width: 100%;
  18847. height: 100%;
  18848. }
  18849. .upCover > img {
  18850. width: 131px;
  18851. height: 69px;
  18852. object-fit: cover;
  18853. }
  18854. .upCover {
  18855. width: calc(100% / 3.5);
  18856. position: relative;
  18857. margin: 0 15px 10px 0;
  18858. display: flex;
  18859. flex-direction: column;
  18860. flex-wrap: nowrap;
  18861. justify-content: center;
  18862. align-content: center;
  18863. align-items: center;
  18864. height: fit-content;
  18865. }
  18866. .upCover2 {
  18867. width: 100%;
  18868. position: relative;
  18869. margin: 0 15px 10px 0;
  18870. display: flex;
  18871. flex-direction: column;
  18872. flex-wrap: nowrap;
  18873. justify-content: center;
  18874. align-content: center;
  18875. align-items: center;
  18876. }
  18877. .upCover2 > img {
  18878. width: 100%;
  18879. height: 90px;
  18880. object-fit: contain;
  18881. }
  18882. .chapter_add {
  18883. width: 120px;
  18884. position: relative;
  18885. text-align: center;
  18886. }
  18887. .isAddThings {
  18888. margin-top: 20px;
  18889. position: relative;
  18890. text-align: center;
  18891. background: #f7f8fa;
  18892. height: 90px;
  18893. width: 90px;
  18894. display: flex;
  18895. flex-direction: column;
  18896. justify-content: center;
  18897. }
  18898. .deleteWord {
  18899. width: 22px;
  18900. height: 22px;
  18901. position: absolute;
  18902. right: -5px;
  18903. top: -5px;
  18904. cursor: pointer;
  18905. }
  18906. .box_course {
  18907. /* width: 60%; */
  18908. width: calc(100% - 300px);
  18909. }
  18910. .wheel {
  18911. width: 100%;
  18912. /* height: 100%; */
  18913. height: 650px;
  18914. }
  18915. .right_box {
  18916. display: flex;
  18917. flex-direction: column;
  18918. margin-left: 30px;
  18919. justify-content: space-around;
  18920. }
  18921. .right_box_title {
  18922. font-size: 23px;
  18923. }
  18924. .people {
  18925. display: flex;
  18926. }
  18927. .student_body {
  18928. width: 100%;
  18929. margin: 0 auto;
  18930. margin-top: 10px;
  18931. padding: 0 0 20px;
  18932. background: #fff;
  18933. border-radius: 20px;
  18934. }
  18935. .study_top {
  18936. margin-top: 100px;
  18937. width: 100%;
  18938. /* overflow: auto; */
  18939. height: auto;
  18940. padding-bottom: 20px;
  18941. }
  18942. .study_top .checkbox {
  18943. display: flex;
  18944. align-items: center;
  18945. padding: 15px 0 15px 30px;
  18946. flex: 0 0 auto;
  18947. font-weight: bold;
  18948. border-bottom: 1px solid #eee;
  18949. }
  18950. .study_top .check {
  18951. padding-bottom: 5px;
  18952. text-align: center;
  18953. cursor: pointer;
  18954. height: 30px;
  18955. box-sizing: border-box;
  18956. display: flex;
  18957. }
  18958. .study_top .checked {
  18959. border-bottom: 4px solid #3fc6a0;
  18960. padding-bottom: 5px;
  18961. color: #3fc6a0;
  18962. display: flex;
  18963. height: 35px;
  18964. }
  18965. .study_top .checked > div,
  18966. .study_top .check > div {
  18967. margin-right: 5px;
  18968. }
  18969. .videoTop {
  18970. display: flex;
  18971. flex-direction: row;
  18972. justify-content: space-between;
  18973. background: #fff;
  18974. align-items: center;
  18975. width: 95%;
  18976. padding: 20px;
  18977. }
  18978. .upbtn {
  18979. margin: 25px;
  18980. background: #70afdb;
  18981. color: #fff;
  18982. width: 120px;
  18983. text-align: center;
  18984. height: 30px;
  18985. line-height: 30px;
  18986. font-size: 13px;
  18987. border-radius: 5px;
  18988. cursor: pointer;
  18989. }
  18990. .filebox {
  18991. display: flex;
  18992. flex-wrap: wrap;
  18993. flex-direction: column;
  18994. padding: 0 0 5px;
  18995. }
  18996. .filebox .tooldetail {
  18997. width: 100%;
  18998. margin: 0px 12px;
  18999. background: rgb(247, 247, 247);
  19000. padding: 20px;
  19001. line-height: 30px;
  19002. word-break: break-word;
  19003. }
  19004. .file {
  19005. display: flex;
  19006. flex-direction: column;
  19007. align-items: center;
  19008. justify-content: center;
  19009. cursor: pointer;
  19010. width: 200px;
  19011. }
  19012. .file div {
  19013. margin-top: 10px;
  19014. width: 150px;
  19015. text-align: center;
  19016. overflow: hidden;
  19017. white-space: nowrap;
  19018. text-overflow: ellipsis;
  19019. }
  19020. .media {
  19021. display: flex;
  19022. flex-direction: column;
  19023. align-items: center;
  19024. justify-content: center;
  19025. margin: 0 20px 20px 0;
  19026. cursor: pointer;
  19027. margin: 12px 0 5px 15px;
  19028. overflow: hidden;
  19029. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  19030. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  19031. box-sizing: border-box;
  19032. }
  19033. .media img {
  19034. height: 90px;
  19035. width: 160px;
  19036. object-fit: cover;
  19037. }
  19038. .media .title {
  19039. padding: 5px;
  19040. text-align: left;
  19041. width: 100%;
  19042. box-sizing: border-box;
  19043. }
  19044. .media .btn {
  19045. width: 100%;
  19046. height: 35px;
  19047. line-height: 35px;
  19048. color: #fff;
  19049. background: #606060;
  19050. text-align: center;
  19051. overflow: hidden;
  19052. white-space: nowrap;
  19053. text-overflow: ellipsis;
  19054. }
  19055. .detail_content_top {
  19056. width: 100%;
  19057. padding: 25px 0 25px 0;
  19058. }
  19059. .detail_title {
  19060. text-align: center;
  19061. font-size: 24px;
  19062. }
  19063. .detail_time {
  19064. font-size: 13px;
  19065. padding: 15px 0 0 40px;
  19066. }
  19067. .detail_content {
  19068. line-height: 2pc;
  19069. width: 90%;
  19070. margin: 0 auto;
  19071. padding-top: 30px;
  19072. text-indent: 30px;
  19073. overflow: auto;
  19074. height: 200px;
  19075. }
  19076. .score_box >>> .el-rate {
  19077. margin-left: 10px;
  19078. }
  19079. .dialog_change >>> .el-dialog {
  19080. border-radius: 5px;
  19081. }
  19082. .dialog_change >>> .el-dialog__header {
  19083. background: #f2f2f2;
  19084. text-align: center;
  19085. }
  19086. .dialog_change >>> .el-dialog__title {
  19087. line-height: 5px;
  19088. }
  19089. .dialog_change >>> .el-dialog__body {
  19090. background: #fff;
  19091. padding: 10px 20px;
  19092. }
  19093. .score_box {
  19094. display: flex;
  19095. align-items: center;
  19096. margin-bottom: 18px;
  19097. margin-top: 20px;
  19098. }
  19099. .up_photo {
  19100. width: 120px;
  19101. cursor: pointer;
  19102. margin-top: 10px;
  19103. }
  19104. .up_photo2 {
  19105. width: 180px;
  19106. box-sizing: border-box;
  19107. min-width: 180px;
  19108. height: 180px;
  19109. max-height: 180px;
  19110. min-height: 180px;
  19111. cursor: pointer;
  19112. display: flex;
  19113. flex-direction: column;
  19114. align-items: center;
  19115. justify-content: center;
  19116. background: rgb(242, 246, 255);
  19117. /* padding: 25px; */
  19118. margin-bottom: 10px;
  19119. }
  19120. .up_photo2 img {
  19121. width: 50%;
  19122. height: auto;
  19123. }
  19124. .up_photo2 span {
  19125. color: #898989;
  19126. }
  19127. .plworkBox {
  19128. display: flex;
  19129. align-items: center;
  19130. margin-top: 10px;
  19131. flex-wrap: wrap;
  19132. }
  19133. .upload_send {
  19134. margin: 30px auto 30px;
  19135. width: 60%;
  19136. background: #169bd6;
  19137. text-align: center;
  19138. height: 35px;
  19139. line-height: 35px;
  19140. color: #fff;
  19141. border-radius: 5px;
  19142. cursor: pointer;
  19143. }
  19144. .marginT {
  19145. margin-top: 20px;
  19146. }
  19147. .cd_content_steps {
  19148. display: flex;
  19149. width: 90%;
  19150. justify-content: space-around;
  19151. border-top: 1px solid #eeeeee;
  19152. }
  19153. .cd_steps_box {
  19154. display: flex;
  19155. justify-content: center;
  19156. align-items: center;
  19157. flex-direction: column;
  19158. cursor: pointer;
  19159. }
  19160. .first {
  19161. display: flex;
  19162. align-items: center;
  19163. margin: 15px 0 20px 0;
  19164. font-size: 20px;
  19165. }
  19166. .first > div:nth-child(2) {
  19167. font-size: 16px !important;
  19168. padding-left: 10px;
  19169. line-height: 26px;
  19170. box-sizing: border-box;
  19171. }
  19172. .blue_box_one {
  19173. text-align: center;
  19174. color: #fff;
  19175. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  19176. border-radius: 7px;
  19177. margin: 10px;
  19178. cursor: pointer;
  19179. width: 95%;
  19180. height: 45px;
  19181. display: flex;
  19182. flex-direction: row;
  19183. justify-content: flex-start;
  19184. align-items: center;
  19185. }
  19186. .blue_box_one > div:nth-child(1) {
  19187. line-height: 30px;
  19188. margin: 0 5px 0 10px;
  19189. width: 30%;
  19190. min-width: 70px;
  19191. border-radius: 4px;
  19192. }
  19193. .blue_box_one > div:nth-child(2) {
  19194. white-space: nowrap;
  19195. text-overflow: ellipsis;
  19196. overflow: hidden;
  19197. word-break: break-all;
  19198. width: 70%;
  19199. text-align: left;
  19200. margin-right: 10px;
  19201. max-width: calc(100% - 85px);
  19202. }
  19203. .blue_box_one > div:nth-child(2):hover {
  19204. overflow: hidden;
  19205. text-overflow: ellipsis;
  19206. white-space: nowrap;
  19207. cursor: pointer;
  19208. }
  19209. .upFile {
  19210. margin: 0 auto;
  19211. width: 120px;
  19212. background: #70afdb;
  19213. color: #fff;
  19214. height: 30px;
  19215. text-align: center;
  19216. line-height: 30px;
  19217. border-radius: 5px;
  19218. font-size: 14px;
  19219. cursor: pointer;
  19220. }
  19221. .courseTitle {
  19222. width: 85%;
  19223. margin: 10px auto;
  19224. display: flex;
  19225. flex-direction: row;
  19226. align-items: center;
  19227. justify-content: space-between;
  19228. text-align: center;
  19229. }
  19230. .courseTitle .ctitle {
  19231. font-size: 20px;
  19232. font-weight: bold;
  19233. color: #0e1e33;
  19234. white-space: nowrap;
  19235. overflow: hidden;
  19236. text-overflow: ellipsis;
  19237. }
  19238. .courseTitle .inviteBox {
  19239. font-size: 14px;
  19240. margin-top: 5px;
  19241. color: #a6cbff;
  19242. }
  19243. .courseTitle >>> .el-tooltip {
  19244. width: 100%;
  19245. white-space: nowrap;
  19246. overflow: hidden;
  19247. text-overflow: ellipsis;
  19248. word-break: break-word;
  19249. }
  19250. .ml {
  19251. margin-left: 20px;
  19252. color: #5b7dba;
  19253. border-left: 3px solid #5b7dba;
  19254. padding-left: 5px;
  19255. font-weight: bold;
  19256. }
  19257. .return {
  19258. width: 2rem;
  19259. height: 2rem;
  19260. cursor: pointer;
  19261. }
  19262. .return > img {
  19263. width: 100%;
  19264. height: 100%;
  19265. }
  19266. .returnBtn {
  19267. width: 86px;
  19268. height: 36px;
  19269. background: #3681fc;
  19270. border-radius: 4px;
  19271. color: #fff;
  19272. text-align: center;
  19273. line-height: 36px;
  19274. margin-right: 20px;
  19275. cursor: pointer;
  19276. font-size: 14px;
  19277. font-weight: 400;
  19278. display: flex;
  19279. flex-direction: row;
  19280. flex-wrap: nowrap;
  19281. align-items: center;
  19282. justify-content: center;
  19283. }
  19284. .tool {
  19285. display: flex;
  19286. flex-direction: column;
  19287. flex-wrap: nowrap;
  19288. width: 13%;
  19289. margin: 0 30px;
  19290. align-items: center;
  19291. position: relative;
  19292. padding: 10px 25px;
  19293. cursor: pointer;
  19294. }
  19295. .whiteBIcon {
  19296. width: 150px;
  19297. }
  19298. .whiteBIcon > img {
  19299. width: 100%;
  19300. height: 100%;
  19301. }
  19302. .mask {
  19303. background-color: rgba(0, 0, 0, 0);
  19304. position: fixed;
  19305. top: 0;
  19306. left: 0;
  19307. width: 100%;
  19308. height: 100%;
  19309. z-index: 20000;
  19310. display: flex;
  19311. align-items: center;
  19312. justify-content: center;
  19313. }
  19314. .progressBox {
  19315. width: 500px;
  19316. height: 180px;
  19317. background: #fff;
  19318. border-radius: 10px;
  19319. box-shadow: 0 0 6px 1px #bfbfbf;
  19320. display: flex;
  19321. align-items: center;
  19322. justify-content: center;
  19323. flex-direction: column;
  19324. position: relative;
  19325. color: #6c6c6c;
  19326. }
  19327. .progressBox >>> .el-progress-bar__outer {
  19328. background-color: #d1dfff !important;
  19329. }
  19330. .progressBox .lbox {
  19331. height: 50px;
  19332. font-size: 19px;
  19333. display: flex;
  19334. align-items: center;
  19335. color: #747474;
  19336. }
  19337. .progressBox .lbox img {
  19338. width: 40px;
  19339. margin-right: 20px;
  19340. }
  19341. .closeCss {
  19342. position: absolute;
  19343. top: 8px;
  19344. right: 8px;
  19345. cursor: pointer;
  19346. width: 20px;
  19347. height: 20px;
  19348. }
  19349. .closeCss > img {
  19350. width: 100%;
  19351. height: 100%;
  19352. }
  19353. .uploadVedio {
  19354. display: flex;
  19355. flex-direction: column;
  19356. flex-wrap: nowrap;
  19357. justify-content: center;
  19358. align-items: center;
  19359. margin: 0 15px 10px 0;
  19360. }
  19361. .uploadVedio > img {
  19362. width: 30px;
  19363. height: 30px;
  19364. }
  19365. .uploadVedio > span {
  19366. white-space: nowrap;
  19367. overflow: hidden;
  19368. text-overflow: ellipsis;
  19369. width: 75px;
  19370. margin-top: 7px;
  19371. }
  19372. .picName {
  19373. white-space: nowrap;
  19374. overflow: hidden;
  19375. text-overflow: ellipsis;
  19376. width: 75px;
  19377. margin-top: 7px;
  19378. }
  19379. .new_top {
  19380. display: flex;
  19381. background: #fff;
  19382. flex-direction: row;
  19383. justify-content: flex-start;
  19384. align-items: center;
  19385. height: 60px;
  19386. position: fixed;
  19387. top: 20px;
  19388. left: 22%;
  19389. width: 77%;
  19390. z-index: 999;
  19391. border-radius: 12px 12px 0 0;
  19392. border-bottom: 1px solid #cad1dc;
  19393. padding: 10px 0;
  19394. }
  19395. .new_topFixed {
  19396. width: 100%;
  19397. height: 40px;
  19398. position: fixed;
  19399. top: 0px;
  19400. display: block;
  19401. background: #f2f2f2;
  19402. z-index: 998;
  19403. }
  19404. .before {
  19405. position: absolute;
  19406. background: #c3dad4;
  19407. width: 6px;
  19408. height: 100%;
  19409. }
  19410. .courseIndex {
  19411. display: flex;
  19412. flex-direction: row;
  19413. align-items: center;
  19414. width: calc(100% - 745px);
  19415. }
  19416. .courseIndex > div:nth-child(1) {
  19417. margin: 0 0 0 10px;
  19418. font-size: 20px;
  19419. min-width: 100px;
  19420. font-weight: bold;
  19421. border-left: 4px solid #3363b9;
  19422. height: 32px;
  19423. text-align: center;
  19424. line-height: 35px;
  19425. }
  19426. .courseIndex > div:nth-child(2) {
  19427. font-size: 20px;
  19428. /* width: 300px; */
  19429. max-width: calc(100% - 105px);
  19430. white-space: nowrap;
  19431. overflow: hidden;
  19432. text-overflow: ellipsis;
  19433. }
  19434. .courseIndex > div:nth-child(3) {
  19435. border-bottom: 1px solid #d7d7d7;
  19436. padding-bottom: 5px;
  19437. background: #49a0f0;
  19438. width: 55px;
  19439. min-width: 55px;
  19440. border-radius: 5px;
  19441. color: #fff;
  19442. text-align: center;
  19443. height: 20px;
  19444. line-height: 26px;
  19445. font-size: 14px;
  19446. margin: 0 0 0 10px;
  19447. }
  19448. .course_text {
  19449. padding: 20px 0 0 15px;
  19450. text-indent: 30px;
  19451. width: 80%;
  19452. min-height: 20px;
  19453. }
  19454. .vedioList {
  19455. background: #f2f2f2;
  19456. border: 1px solid #ececec;
  19457. /* width: 38.8%; */
  19458. width: 300px;
  19459. height: 445px;
  19460. border-radius: 10px;
  19461. overflow: hidden;
  19462. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  19463. }
  19464. .vedioNav {
  19465. margin: 10px 0 0 15px;
  19466. border-bottom: 1px solid #d7d7d7;
  19467. padding-bottom: 5px;
  19468. background: #96d1ff;
  19469. width: 55px;
  19470. min-width: 55px;
  19471. border-radius: 5px;
  19472. color: #fff;
  19473. text-align: center;
  19474. height: 20px;
  19475. line-height: 26px;
  19476. font-size: 14px;
  19477. }
  19478. .queTop {
  19479. display: flex;
  19480. padding: 20px 0 20px 30px;
  19481. width: 100%;
  19482. flex-direction: row;
  19483. justify-content: flex-start;
  19484. align-items: center;
  19485. box-sizing: border-box;
  19486. }
  19487. .queTopTitle {
  19488. display: flex;
  19489. flex-direction: row;
  19490. flex-wrap: nowrap;
  19491. align-items: center;
  19492. font-weight: bold;
  19493. font-size: 20px;
  19494. color: rgb(14, 30, 51);
  19495. }
  19496. .queTopTitle::before {
  19497. content: "";
  19498. width: 2px;
  19499. height: 22px;
  19500. background: #3681fc;
  19501. border-radius: 3px;
  19502. display: block;
  19503. margin: 2px 6px 0 0;
  19504. }
  19505. .queTopRight {
  19506. display: flex;
  19507. flex-direction: row;
  19508. flex-wrap: nowrap;
  19509. align-items: center;
  19510. }
  19511. .queTopClose {
  19512. margin-right: 20px;
  19513. cursor: pointer;
  19514. position: relative;
  19515. display: flex;
  19516. }
  19517. .closeImg,
  19518. .openImg {
  19519. width: 25px;
  19520. height: 25px;
  19521. position: absolute;
  19522. left: -20px;
  19523. top: -1px;
  19524. }
  19525. .closeImg > img,
  19526. .openImg > img {
  19527. width: 100%;
  19528. height: 100%;
  19529. }
  19530. .question {
  19531. width: 40px;
  19532. margin-right: 10px;
  19533. margin-top: 7px;
  19534. }
  19535. .queTitle {
  19536. margin-left: 5px;
  19537. font-size: 25px;
  19538. display: flex;
  19539. align-items: center;
  19540. }
  19541. .addEditor {
  19542. width: 100px;
  19543. height: 30px;
  19544. background: #42cda6;
  19545. color: #fff;
  19546. border-radius: 5px;
  19547. text-align: center;
  19548. line-height: 30px;
  19549. box-shadow: 1px 3px 6px 1px #bfbfbf;
  19550. cursor: pointer;
  19551. }
  19552. .vedioName {
  19553. /* text-overflow: ellipsis;
  19554. top: 8px;
  19555. font-size: 14px;
  19556. overflow: hidden;
  19557. width: 100%;
  19558. word-break: break-all;
  19559. white-space: nowrap; */
  19560. cursor: pointer;
  19561. margin: 0px 0px 10px 5px;
  19562. white-space: nowrap;
  19563. overflow: hidden;
  19564. text-overflow: ellipsis;
  19565. width: 100%;
  19566. }
  19567. .vedioTime {
  19568. width: 35px;
  19569. position: absolute;
  19570. color: #fff;
  19571. bottom: 0px;
  19572. right: 0px;
  19573. text-align: center;
  19574. background: #46411f;
  19575. height: 20px;
  19576. font-size: 14px;
  19577. line-height: 20px;
  19578. }
  19579. .homework {
  19580. width: 200px;
  19581. display: flex;
  19582. flex-direction: column;
  19583. flex-wrap: nowrap;
  19584. align-items: center;
  19585. cursor: pointer;
  19586. }
  19587. .homebox {
  19588. display: flex;
  19589. flex-wrap: wrap;
  19590. flex-direction: row;
  19591. justify-content: flex-start;
  19592. align-items: center;
  19593. padding: 15px 0;
  19594. }
  19595. .chooseWho {
  19596. display: flex;
  19597. width: 100%;
  19598. flex-direction: row;
  19599. flex-wrap: nowrap;
  19600. justify-content: flex-start;
  19601. padding: 0 0 10px 0;
  19602. }
  19603. .chooseWho > div {
  19604. cursor: pointer;
  19605. padding-bottom: 10px;
  19606. margin: 0 30px 0 0;
  19607. font-weight: 400;
  19608. color: #0e1e33;
  19609. }
  19610. .addPoint > div > img {
  19611. cursor: pointer;
  19612. margin: 0 10px;
  19613. width: 85px;
  19614. border-radius: 15px;
  19615. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  19616. }
  19617. .addPoint > div {
  19618. display: flex;
  19619. flex-direction: column;
  19620. flex-wrap: nowrap;
  19621. align-items: center;
  19622. }
  19623. .isBorder > div {
  19624. margin: 0 0 10px 0;
  19625. align-items: flex-start !important;
  19626. }
  19627. .noiframeBox {
  19628. display: flex;
  19629. flex-wrap: wrap;
  19630. }
  19631. .iframeBox iframe {
  19632. width: 100%;
  19633. height: 800px;
  19634. border: none;
  19635. margin-bottom: 20px;
  19636. border: 1px solid #ccc;
  19637. }
  19638. .upload_toolBtn {
  19639. background: #6b92c9;
  19640. color: #fff;
  19641. width: 110px;
  19642. text-align: center;
  19643. height: 35px;
  19644. line-height: 35px;
  19645. font-size: 14px;
  19646. border-radius: 5px;
  19647. cursor: pointer;
  19648. position: absolute;
  19649. right: 10px;
  19650. bottom: 0;
  19651. }
  19652. .binfo_input,
  19653. .pj {
  19654. font: inherit;
  19655. color: currentColor;
  19656. width: 100%;
  19657. margin: 0;
  19658. padding: 15px 14px;
  19659. display: block;
  19660. min-width: 0;
  19661. outline: none;
  19662. box-sizing: content-box;
  19663. background: none;
  19664. -webkit-tap-highlight-color: transparent;
  19665. border: 1px solid rgba(0, 0, 0, 0.23);
  19666. border-radius: 4px;
  19667. box-sizing: border-box;
  19668. resize: none;
  19669. }
  19670. .binfo_input:focus-visible {
  19671. border: 1px solid rgba(61, 103, 188);
  19672. }
  19673. .dialog_diy >>> .el-dialog__header,
  19674. .dialog_diy1 >>> .el-dialog__header {
  19675. background: #454545 !important;
  19676. padding: 15px 20px;
  19677. }
  19678. .dialog_diy >>> .el-dialog__title,
  19679. .dialog_diy1 >>> .el-dialog__title {
  19680. color: #fff;
  19681. }
  19682. .dialog_diy >>> .el-dialog__headerbtn,
  19683. .dialog_diy1 >>> .el-dialog__headerbtn {
  19684. top: 19px;
  19685. }
  19686. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  19687. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  19688. color: #fff;
  19689. }
  19690. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  19691. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  19692. color: #fff;
  19693. }
  19694. .dialog_diy1 >>> .el-dialog__body {
  19695. padding: 0;
  19696. }
  19697. .dialog_diy >>> .el-dialog__body,
  19698. .dialog_diy >>> .el-dialog__footer,
  19699. .dialog_diy1 >>> .el-dialog__footer {
  19700. background: #fafafa;
  19701. }
  19702. .a_addBox {
  19703. padding: 0 0 0 15px;
  19704. }
  19705. .a_add_box {
  19706. padding: 10px;
  19707. background: #fff;
  19708. margin-bottom: 10px;
  19709. border-radius: 5px;
  19710. box-shadow: 0 0 5px 0 #d5d5d5;
  19711. }
  19712. .askIndex {
  19713. background: #3681fc;
  19714. border-radius: 50%;
  19715. color: #fff;
  19716. width: 25px;
  19717. height: 25px;
  19718. min-width: 25px;
  19719. min-height: 25px;
  19720. text-align: center;
  19721. line-height: 25px;
  19722. margin-right: 5px;
  19723. }
  19724. .a_add_head {
  19725. display: flex;
  19726. align-items: flex-start;
  19727. /* justify-content: space-between; */
  19728. flex-direction: column;
  19729. /* flex-direction: row; */
  19730. margin: 10px 0 20px 0;
  19731. font-size: 18px;
  19732. width: 100%;
  19733. }
  19734. .a_add_head .a_add_head_input {
  19735. width: 300px;
  19736. }
  19737. .a_add_head .a_add_head_div {
  19738. display: flex;
  19739. align-items: center;
  19740. justify-content: space-between;
  19741. }
  19742. .a_add_body {
  19743. display: flex;
  19744. align-items: center;
  19745. }
  19746. .a_add_input {
  19747. display: flex;
  19748. align-items: center;
  19749. flex-wrap: wrap;
  19750. width: 100%;
  19751. }
  19752. .a_add_input >>> .el-radio-group,
  19753. .a_add_input >>> .el-checkbox-group {
  19754. width: 100%;
  19755. }
  19756. .a_add_input >>> .el-radio,
  19757. .a_add_input >>> .el-checkbox {
  19758. display: flex;
  19759. flex-direction: row;
  19760. flex-wrap: nowrap;
  19761. align-items: center;
  19762. padding: 15px 0;
  19763. }
  19764. .a_add_input >>> .el-radio:not(:last-child),
  19765. .a_add_input >>> .el-checkbox:not(:last-child) {
  19766. width: 100%;
  19767. border-bottom: 1px solid #efefef;
  19768. }
  19769. .redioStyle >>> .el-radio__label {
  19770. font-size: 18px;
  19771. }
  19772. .redioStyle >>> .el-radio__label > span,
  19773. .redioStyle >>> .el-checkbox__label > span {
  19774. word-break: break-all;
  19775. white-space: normal;
  19776. }
  19777. .redioStyle >>> .el-checkbox__label {
  19778. font-size: 18px;
  19779. }
  19780. .toolHeng2 {
  19781. width: 100%;
  19782. box-sizing: border-box;
  19783. }
  19784. .toolHeng {
  19785. display: flex;
  19786. flex-direction: row;
  19787. flex-wrap: wrap;
  19788. justify-content: flex-start;
  19789. align-items: center;
  19790. width: 100%;
  19791. }
  19792. .toolHeng > div {
  19793. padding-left: 20px;
  19794. }
  19795. .isWidth {
  19796. width: 20%;
  19797. }
  19798. .textTitle {
  19799. display: flex;
  19800. flex-direction: row;
  19801. flex-wrap: nowrap;
  19802. align-items: center;
  19803. width: 95%;
  19804. }
  19805. .textTitle >>> .el-form-item__label {
  19806. font-size: 22px;
  19807. color: #918f8f;
  19808. width: 100px;
  19809. }
  19810. .textTitle >>> .el-form-item__content {
  19811. width: calc(100% - 100px);
  19812. }
  19813. .textCss >>> .el-dialog {
  19814. width: 800px !important;
  19815. height: 400px;
  19816. background: #fafafa;
  19817. }
  19818. .textCss >>> .el-dialog__body {
  19819. margin: 55px 8% 0 8%;
  19820. padding: 0 !important;
  19821. }
  19822. .textCss >>> .el-dialog__footer {
  19823. padding-top: 38px;
  19824. }
  19825. .toolsCss >>> .el-dialog__body {
  19826. padding: 20px;
  19827. }
  19828. .lineCss >>> .el-dialog__body {
  19829. display: flex;
  19830. flex-direction: row;
  19831. align-items: center;
  19832. justify-content: center;
  19833. }
  19834. .newNav {
  19835. display: flex;
  19836. flex-direction: row;
  19837. align-items: baseline;
  19838. justify-content: flex-start;
  19839. }
  19840. .navText {
  19841. cursor: pointer;
  19842. white-space: nowrap;
  19843. overflow: hidden;
  19844. text-overflow: ellipsis;
  19845. width: 220px;
  19846. padding: 0 10px;
  19847. font-weight: 400;
  19848. color: #0e1e33;
  19849. }
  19850. .noVedio {
  19851. display: flex;
  19852. flex-direction: row;
  19853. justify-content: center;
  19854. align-content: center;
  19855. }
  19856. .noNavText {
  19857. cursor: pointer;
  19858. margin: 0px 0px 10px 5px;
  19859. width: 112px;
  19860. }
  19861. .listNoVedio {
  19862. margin: 0 0 0 30px;
  19863. width: 97%;
  19864. }
  19865. .video-player >>> .video-js {
  19866. height: 100%;
  19867. }
  19868. .hangVedioList {
  19869. width: 90% !important;
  19870. height: 150px !important;
  19871. margin: 20px 0 0 30px;
  19872. }
  19873. .hangVedio {
  19874. width: 100%;
  19875. height: 170px !important;
  19876. align-items: flex-start !important;
  19877. }
  19878. .hangHand {
  19879. height: 150px !important;
  19880. }
  19881. .twoChild {
  19882. width: 95%;
  19883. margin: 10px;
  19884. border-radius: 5px;
  19885. background: #f2f2f2;
  19886. display: flex;
  19887. flex-direction: column;
  19888. flex-wrap: nowrap;
  19889. justify-content: flex-start;
  19890. align-items: flex-start;
  19891. transition: all 0.5s;
  19892. overflow: hidden;
  19893. height: 0;
  19894. background: #e7f3ff;
  19895. }
  19896. .twoChild > div:nth-child(1) {
  19897. margin-top: 5px;
  19898. }
  19899. .navChild {
  19900. width: 100%;
  19901. cursor: pointer;
  19902. margin-bottom: 10px;
  19903. position: relative;
  19904. }
  19905. .navChild img {
  19906. position: absolute;
  19907. right: 11px;
  19908. width: 15px;
  19909. top: 50%;
  19910. transform: translateY(-50%);
  19911. }
  19912. .navActive,
  19913. .toolActive {
  19914. height: auto !important;
  19915. overflow: auto !important;
  19916. padding-bottom: 16px;
  19917. }
  19918. .toolActive {
  19919. padding: 0;
  19920. }
  19921. .navTask {
  19922. display: flex;
  19923. flex-direction: row;
  19924. flex-wrap: nowrap;
  19925. align-items: center;
  19926. align-content: flex-start;
  19927. height: 40px;
  19928. justify-content: flex-start;
  19929. padding: 0 10px;
  19930. width: 100%;
  19931. box-sizing: border-box;
  19932. }
  19933. .navTaskname {
  19934. white-space: nowrap;
  19935. text-overflow: ellipsis;
  19936. overflow: hidden;
  19937. word-break: break-all;
  19938. padding-left: 5px;
  19939. }
  19940. .openTaskActive {
  19941. background-color: #e0eafb !important;
  19942. color: #0061ff;
  19943. }
  19944. .iframeName {
  19945. margin: 5px 0;
  19946. border-left: 4px solid #41c4a4;
  19947. padding-left: 4px;
  19948. }
  19949. .toolTitle {
  19950. margin: 0px 0px 20px;
  19951. font-size: 20px;
  19952. font-weight: 500;
  19953. border-left: 4px solid #41c4a4;
  19954. padding-left: 4px;
  19955. }
  19956. .cru_selectBox {
  19957. overflow: auto;
  19958. width: 95%;
  19959. margin: 17px auto 0;
  19960. height: calc(100% - 40px - 21px - 20px - 17px);
  19961. }
  19962. .cru_selectBox::-webkit-scrollbar,
  19963. .study_top::-webkit-scrollbar,
  19964. .textContent::-webkit-scrollbar {
  19965. /*滚动条整体样式*/
  19966. width: 6px;
  19967. /*高宽分别对应横竖滚动条的尺寸*/
  19968. height: 6px;
  19969. }
  19970. /*定义滚动条轨道 内阴影+圆角*/
  19971. .cru_selectBox::-webkit-scrollbar-track,
  19972. .study_top::-webkit-scrollbar-track,
  19973. .textContent::-webkit-scrollbar {
  19974. border-radius: 10px;
  19975. background-color: #b8bdc9;
  19976. }
  19977. /*定义滑块 内阴影+圆角*/
  19978. .cru_selectBox::-webkit-scrollbar-thumb,
  19979. .study_top::-webkit-scrollbar-thumb,
  19980. .textContent::-webkit-scrollbar-thumb {
  19981. border-radius: 10px;
  19982. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  19983. background-color: #2c5ab3;
  19984. }
  19985. .vedioBox {
  19986. border-radius: 0 0 20px 20px;
  19987. background: #fff;
  19988. overflow: auto;
  19989. }
  19990. .taskBox {
  19991. width: 98%;
  19992. /* background: #F0F4FA; */
  19993. margin: 10px auto;
  19994. padding: 0 10px;
  19995. border-radius: 4px;
  19996. box-sizing: border-box;
  19997. }
  19998. .vedioTaskBox {
  19999. width: 100%;
  20000. display: flex;
  20001. flex-direction: row;
  20002. flex-wrap: nowrap;
  20003. align-items: flex-start;
  20004. position: relative;
  20005. }
  20006. .toolBox {
  20007. padding: 0 60px 0;
  20008. display: flex;
  20009. position: relative;
  20010. }
  20011. .btnAll {
  20012. position: absolute;
  20013. right: 0;
  20014. display: flex;
  20015. flex-direction: row;
  20016. flex-wrap: nowrap;
  20017. align-items: center;
  20018. }
  20019. .btnLeft,
  20020. .btnRight {
  20021. display: flex;
  20022. flex-direction: row;
  20023. flex-wrap: nowrap;
  20024. align-items: center;
  20025. padding: 5px 0;
  20026. }
  20027. .btnLeft {
  20028. border-right: 1px solid #cad1dc;
  20029. }
  20030. .btnLeft > .custom-tooltip {
  20031. background: #3681fc;
  20032. color: #fff;
  20033. }
  20034. .last:hover {
  20035. background: #3383fa !important;
  20036. color: #fff;
  20037. border: 1px solid #3383fa !important;
  20038. }
  20039. .last,
  20040. .returnBtn1 {
  20041. width: 90px;
  20042. height: 36px;
  20043. background: #ffffff;
  20044. border-radius: 4px;
  20045. border: 1px solid #0061ff;
  20046. color: #0061ff;
  20047. cursor: pointer;
  20048. display: flex;
  20049. flex-direction: row;
  20050. flex-wrap: nowrap;
  20051. align-items: center;
  20052. justify-content: center;
  20053. margin-left: 12px;
  20054. }
  20055. .returnBtn1 {
  20056. background: #f0f4fa;
  20057. border-radius: 4px;
  20058. border: 1px solid #cad1dc;
  20059. margin: 0 12px;
  20060. }
  20061. .lastImg {
  20062. min-width: 15px;
  20063. width: 15px;
  20064. height: 15px;
  20065. }
  20066. .lastText {
  20067. padding: 0 5px 2px 5px;
  20068. box-sizing: border-box;
  20069. font-size: 14px;
  20070. }
  20071. .lastImg > img {
  20072. width: 100%;
  20073. height: 100%;
  20074. }
  20075. .reBtnIcon,
  20076. .commentIcon,
  20077. .vedioIcon,
  20078. .vedioIcon1 {
  20079. width: 36px;
  20080. height: 36px;
  20081. border-radius: 4px;
  20082. position: relative;
  20083. background: #e0eafb;
  20084. cursor: pointer;
  20085. margin-right: 12px;
  20086. }
  20087. .reBtnIcon::before,
  20088. .commentIcon::before,
  20089. .vedioIcon::before,
  20090. .vedioIcon::before {
  20091. content: "";
  20092. display: block;
  20093. background-size: 100% 100%;
  20094. background-repeat: no-repeat;
  20095. width: 20px;
  20096. height: 20px;
  20097. position: absolute;
  20098. top: 8px;
  20099. left: 8px;
  20100. }
  20101. .reBtnIcon::before {
  20102. background-image: url("../../assets/icon/newIcons/refresh.png");
  20103. }
  20104. .commentIcon::before {
  20105. background-image: url("../../assets/icon/newIcons/comment.png");
  20106. }
  20107. .vedioIcon::before {
  20108. background-image: url("../../assets/icon/newIcons/transcribe.png");
  20109. }
  20110. .vedioIcon1::before {
  20111. background-image: url("../../assets/icon/newIcons/istranscribe.png");
  20112. }
  20113. .btnAllNT {
  20114. position: fixed;
  20115. bottom: 100px;
  20116. right: 40px;
  20117. z-index: 999;
  20118. display: flex;
  20119. flex-direction: row;
  20120. }
  20121. .btnAllNT > img {
  20122. cursor: pointer;
  20123. width: 80px;
  20124. }
  20125. /* .vedioTimeBox {
  20126. display: flex;
  20127. flex-direction: row;
  20128. align-items: center;
  20129. flex-wrap: nowrap;
  20130. position: relative;
  20131. } */
  20132. .navBox {
  20133. background: #fff;
  20134. height: calc(100% - 40px);
  20135. overflow-y: auto;
  20136. overflow-x: hidden;
  20137. }
  20138. .tool_work_box {
  20139. width: 100%;
  20140. padding: 0 37px 0;
  20141. box-sizing: border-box;
  20142. }
  20143. .worksBox {
  20144. padding: 5px 0;
  20145. border-bottom: 1px solid #eeeeee;
  20146. }
  20147. .worksBTitle {
  20148. font-size: 20px;
  20149. padding-bottom: 15px;
  20150. border-bottom: 1px solid #eeeeee;
  20151. display: flex;
  20152. align-items: center;
  20153. }
  20154. .greenBox {
  20155. width: 5px;
  20156. height: 30px;
  20157. background: #63b6fa;
  20158. margin-right: 5px;
  20159. }
  20160. .worksDetailBox {
  20161. display: flex;
  20162. width: 100%;
  20163. flex-direction: row;
  20164. flex-wrap: wrap;
  20165. align-items: flex-end;
  20166. justify-content: flex-start;
  20167. padding: 15px 0;
  20168. }
  20169. .works {
  20170. display: flex;
  20171. flex-direction: column;
  20172. flex-wrap: nowrap;
  20173. align-items: flex-start;
  20174. justify-content: flex-start;
  20175. align-content: center;
  20176. max-width: 240px;
  20177. width: calc(100% / 3 - 10px);
  20178. height: auto;
  20179. margin-right: 10px;
  20180. margin-bottom: 10px;
  20181. overflow: hidden;
  20182. height: 140px;
  20183. box-shadow: 0 0 6px 1px #dfdada;
  20184. border-radius: 15px;
  20185. }
  20186. .workImg {
  20187. width: 100%;
  20188. /* height: calc(100% - 40px); */
  20189. height: 105px;
  20190. position: relative;
  20191. }
  20192. .workImg > img {
  20193. width: 100%;
  20194. height: 100%;
  20195. object-fit: contain;
  20196. cursor: pointer;
  20197. }
  20198. .worksName {
  20199. height: 40px;
  20200. line-height: 40px;
  20201. display: flex;
  20202. width: 100%;
  20203. flex-direction: row;
  20204. flex-wrap: nowrap;
  20205. justify-content: space-between;
  20206. align-items: center;
  20207. margin: 0 0 0 10px;
  20208. }
  20209. .worksName > div:nth-child(1) {
  20210. width: 110px;
  20211. white-space: nowrap;
  20212. overflow: hidden;
  20213. text-overflow: ellipsis;
  20214. }
  20215. .worksName > div:nth-child(2) {
  20216. color: #b7b4b5;
  20217. }
  20218. .noWorksS {
  20219. padding: 15px 0 0;
  20220. display: flex;
  20221. flex-direction: row;
  20222. flex-wrap: wrap;
  20223. align-items: center;
  20224. justify-content: flex-start;
  20225. }
  20226. .noWorksS > div {
  20227. cursor: pointer;
  20228. }
  20229. .noWorksName,
  20230. .isWorksName,
  20231. .isWorksName2 {
  20232. background: #ddebf8;
  20233. color: #000;
  20234. width: 90px;
  20235. height: 25px;
  20236. text-align: center;
  20237. line-height: 25px;
  20238. border-radius: 4px;
  20239. margin: 10px 15px 10px 0;
  20240. white-space: nowrap;
  20241. overflow: hidden;
  20242. padding: 5px;
  20243. text-overflow: ellipsis;
  20244. cursor: pointer;
  20245. border: 1px solid #ddebf8;
  20246. }
  20247. .noWorksName {
  20248. background: #fff;
  20249. color: #0061ff;
  20250. border: 1px solid #0061ff;
  20251. }
  20252. .isWorksName2 {
  20253. width: 100px;
  20254. height: 40px;
  20255. line-height: 40px;
  20256. position: relative;
  20257. background: #dae6f9;
  20258. }
  20259. .noWorksName.isWork {
  20260. background: #e7ebf1 !important;
  20261. border: 1px solid #cad1dc !important;
  20262. color: #acb4bf !important;
  20263. }
  20264. .isWorksName {
  20265. cursor: pointer;
  20266. background: #46a1eb !important;
  20267. width: 100px;
  20268. height: 40px;
  20269. line-height: 40px;
  20270. position: relative;
  20271. }
  20272. .isSelectName,
  20273. .noWorksName:hover {
  20274. background: #3383fa;
  20275. color: #fff;
  20276. border: 1px solid #3383fa;
  20277. }
  20278. .title {
  20279. background: #1e5cc9;
  20280. /* width: 98%; */
  20281. height: 45px;
  20282. color: #fff;
  20283. line-height: 45px;
  20284. padding-left: 20px;
  20285. box-sizing: border-box;
  20286. }
  20287. .textBox {
  20288. font-size: 20px;
  20289. width: 90%;
  20290. display: flex;
  20291. flex-direction: column;
  20292. align-items: center;
  20293. margin: 20px auto 0;
  20294. max-height: calc(100% - 75px);
  20295. overflow: auto;
  20296. }
  20297. .textContent {
  20298. font-size: 18px;
  20299. width: 95%;
  20300. max-width: 95%;
  20301. }
  20302. .answerBg {
  20303. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  20304. background-size: 100% 100%;
  20305. width: 100%;
  20306. height: 100%;
  20307. color: #fff;
  20308. text-align: center;
  20309. display: flex;
  20310. flex-direction: column;
  20311. flex-wrap: nowrap;
  20312. align-items: center;
  20313. position: relative;
  20314. justify-content: center;
  20315. }
  20316. .answerBg > div:nth-child(1) {
  20317. /* font-size: 22px;
  20318. padding: 25px 0 10px; */
  20319. }
  20320. .answerContent {
  20321. width: 215px;
  20322. max-height: 60px;
  20323. word-break: break-all;
  20324. text-align: center;
  20325. /* white-space: nowrap; */
  20326. overflow: hidden;
  20327. text-overflow: ellipsis;
  20328. /* padding: 23px 0 0; */
  20329. -webkit-line-clamp: 3;
  20330. -webkit-box-orient: vertical;
  20331. display: -webkit-box;
  20332. font-size: 15px;
  20333. cursor: pointer;
  20334. }
  20335. .elist_input_box {
  20336. display: flex;
  20337. align-items: flex-start;
  20338. flex-wrap: nowrap;
  20339. padding: 10px 0 15px 30px;
  20340. flex-direction: column;
  20341. }
  20342. .elist_input {
  20343. /* width: 40%; */
  20344. width: 100%;
  20345. margin: 20px;
  20346. }
  20347. .elist_input .elist_input_box input {
  20348. font: inherit;
  20349. color: currentColor;
  20350. width: 200px;
  20351. padding: 8px 14px;
  20352. display: block;
  20353. min-width: 0;
  20354. outline: none;
  20355. border: 1px solid rgba(0, 0, 0, 0.23);
  20356. border-radius: 4px;
  20357. box-sizing: border-box;
  20358. background: #fff;
  20359. margin: 0 20px 0 0;
  20360. }
  20361. .elist_input .elist_input_box span {
  20362. height: 36px;
  20363. line-height: 36px;
  20364. color: rgb(82, 82, 82);
  20365. }
  20366. .elist_input .elist_input_box .remove {
  20367. height: 20px;
  20368. width: 20px;
  20369. background-size: 100% 100%;
  20370. background-position: unset;
  20371. margin-left: 5px;
  20372. }
  20373. .elist_input_box >>> .el-rate {
  20374. display: flex;
  20375. height: 36px;
  20376. align-items: center;
  20377. }
  20378. .elist_input_box .elist_inptu_text {
  20379. min-height: 50px;
  20380. /* width: 500px;
  20381. max-height: 150px; */
  20382. width: 100%;
  20383. line-height: 50px;
  20384. color: rgb(82, 82, 82);
  20385. overflow: auto;
  20386. text-indent: 5px;
  20387. background: #f7f6f9;
  20388. border-radius: 10px;
  20389. }
  20390. .elist_input_box .elist_inptu_text input {
  20391. width: 500px;
  20392. }
  20393. .elist_input_box >>> .el-rate__icon {
  20394. font-size: 24px;
  20395. }
  20396. .isClick {
  20397. background: #4d9def;
  20398. }
  20399. /*定义滚动条轨道 内阴影+圆角*/
  20400. .bzTypeBox::-webkit-scrollbar {
  20401. /*滚动条整体样式*/
  20402. width: 6px;
  20403. /*高宽分别对应横竖滚动条的尺寸*/
  20404. height: 6px;
  20405. }
  20406. /*定义滚动条轨道 内阴影+圆角*/
  20407. .bzTypeBox::-webkit-scrollbar-track {
  20408. border-radius: 10px;
  20409. background-color: rgba(0, 0, 0, 0.1);
  20410. }
  20411. /*定义滑块 内阴影+圆角*/
  20412. .bzTypeBox::-webkit-scrollbar-thumb {
  20413. border-radius: 10px;
  20414. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  20415. background-color: rgba(0, 0, 0, 0.1);
  20416. }
  20417. .choiceBox {
  20418. display: flex;
  20419. margin: 20px 0;
  20420. width: 100%;
  20421. }
  20422. .bzTypeBox {
  20423. display: flex;
  20424. width: 100%;
  20425. overflow: auto;
  20426. white-space: nowrap;
  20427. }
  20428. .bzChild {
  20429. cursor: pointer;
  20430. box-sizing: border-box;
  20431. padding-bottom: 10px;
  20432. font-weight: bold;
  20433. min-width: fit-content;
  20434. }
  20435. .bzChild.active {
  20436. color: #3e88f4;
  20437. border-bottom: 2px solid #2f80f3;
  20438. }
  20439. .bzChild + .bzChild {
  20440. margin-left: 25px;
  20441. }
  20442. .bzBox {
  20443. display: flex;
  20444. flex-direction: row;
  20445. align-items: center;
  20446. }
  20447. .bzBox .yCss {
  20448. width: 14px;
  20449. height: 14px;
  20450. background: #3681fc;
  20451. margin: 0 16px 0 7px;
  20452. border-radius: 50%;
  20453. }
  20454. .bzBox > div:nth-child(2) {
  20455. font-size: 18px;
  20456. font-weight: bold;
  20457. color: #0e1e33;
  20458. }
  20459. .navTitile {
  20460. padding: 0 0px 0 15px;
  20461. font-size: 16px;
  20462. font-weight: bold;
  20463. color: #0e1e33;
  20464. height: 40px;
  20465. line-height: 40px;
  20466. }
  20467. .isTypeOne {
  20468. width: 240px;
  20469. height: 170px;
  20470. /* border: 1px solid #f8f8f8; */
  20471. border-radius: 10px;
  20472. box-shadow: 0 0 6px 1px #dfdada;
  20473. }
  20474. .e_add_top {
  20475. display: flex;
  20476. justify-content: space-between;
  20477. padding: 20px 20px 0 20px;
  20478. border-radius: 3px;
  20479. background: #fff;
  20480. }
  20481. .e_add_title2 {
  20482. display: flex;
  20483. align-items: center;
  20484. }
  20485. .e_add_title2 span {
  20486. width: 40px;
  20487. }
  20488. .e_add_title {
  20489. display: flex;
  20490. align-items: center;
  20491. color: #b8b8b8;
  20492. font-size: 18px;
  20493. position: relative;
  20494. height: 40px;
  20495. }
  20496. .e_add_title span {
  20497. margin-right: 10px;
  20498. }
  20499. .e_add_title .el_input {
  20500. width: 300px;
  20501. }
  20502. .e_add_title >>> .el-input__inner {
  20503. width: 400px;
  20504. }
  20505. .e_add_btn {
  20506. }
  20507. .e_add_content {
  20508. display: flex;
  20509. width: 100%;
  20510. max-width: 650px;
  20511. height: 550px;
  20512. }
  20513. .e_add_list {
  20514. background: #fff;
  20515. height: 500px;
  20516. width: 210px;
  20517. position: relative;
  20518. margin: 15px 5px 0 0;
  20519. flex-shrink: 0;
  20520. display: flex;
  20521. flex-direction: column;
  20522. }
  20523. .e_add_list_title {
  20524. font-size: 20px;
  20525. width: 100%;
  20526. box-sizing: border-box;
  20527. padding: 15px 40px;
  20528. text-align: center;
  20529. border-bottom: 1px solid #eaeaea;
  20530. position: relative;
  20531. display: flex;
  20532. align-items: center;
  20533. justify-content: center;
  20534. height: 57px;
  20535. background: #f6f6f6;
  20536. }
  20537. .e_add_list_title span {
  20538. overflow: hidden;
  20539. white-space: nowrap;
  20540. text-overflow: ellipsis;
  20541. }
  20542. .e_add_list_title img {
  20543. position: absolute;
  20544. right: 15px;
  20545. width: 25px;
  20546. cursor: pointer;
  20547. top: 50%;
  20548. transform: translateY(-50%);
  20549. }
  20550. .e_add_list_body {
  20551. height: calc(100% - 187px);
  20552. overflow: auto;
  20553. }
  20554. .e_add_list_child {
  20555. width: 100%;
  20556. display: flex;
  20557. align-items: center;
  20558. justify-content: center;
  20559. position: relative;
  20560. box-sizing: border-box;
  20561. padding: 15px 40px;
  20562. text-align: center;
  20563. }
  20564. .e_add_list_child span {
  20565. overflow: hidden;
  20566. white-space: nowrap;
  20567. text-overflow: ellipsis;
  20568. cursor: pointer;
  20569. }
  20570. .e_add_list_child img {
  20571. position: absolute;
  20572. right: 10px;
  20573. width: 21px;
  20574. cursor: pointer;
  20575. top: 50%;
  20576. transform: translateY(-50%);
  20577. }
  20578. .e_add_list_child + .e_add_list_child {
  20579. border-top: 1px solid #eaeaea;
  20580. }
  20581. .e_add_list_child .active {
  20582. color: #409eff;
  20583. }
  20584. .e_add_list_btn {
  20585. position: absolute;
  20586. bottom: 0;
  20587. height: 50px;
  20588. background: rgb(120, 120, 254);
  20589. width: 100%;
  20590. color: #fff;
  20591. font-size: 16px;
  20592. text-align: center;
  20593. line-height: 50px;
  20594. cursor: pointer;
  20595. }
  20596. .e_add_list_detail {
  20597. position: absolute;
  20598. bottom: 0;
  20599. height: 130px;
  20600. background: rgb(120, 120, 254);
  20601. width: 100%;
  20602. color: #fff;
  20603. font-size: 16px;
  20604. display: flex;
  20605. align-items: center;
  20606. justify-content: center;
  20607. }
  20608. .e_add_list_detail textarea {
  20609. height: 90%;
  20610. width: 95%;
  20611. border: none;
  20612. resize: none;
  20613. outline: none;
  20614. padding: 5px;
  20615. box-sizing: border-box;
  20616. }
  20617. .e_add_list_pbox {
  20618. width: 100%;
  20619. max-width: 650px;
  20620. /* height: 600px; */
  20621. }
  20622. .e_add_list_pbox_title {
  20623. height: 50px;
  20624. background: #fff;
  20625. display: flex;
  20626. align-items: center;
  20627. width: 100%;
  20628. box-sizing: border-box;
  20629. padding: 0 20px;
  20630. }
  20631. .type_title {
  20632. font-size: 18px;
  20633. font-weight: 700;
  20634. }
  20635. .type_content {
  20636. font-size: 16px;
  20637. margin-left: 30px;
  20638. }
  20639. .type_content span + span {
  20640. margin-left: 20px;
  20641. }
  20642. .type_content span {
  20643. cursor: pointer;
  20644. padding-bottom: 5px;
  20645. box-sizing: border-box;
  20646. }
  20647. .type_content .active {
  20648. color: #409eff;
  20649. border-bottom: 2px solid #409eff;
  20650. }
  20651. .e_add_list_pbox_content {
  20652. height: calc(100% - 50px);
  20653. display: flex;
  20654. align-items: center;
  20655. width: 100%;
  20656. background: #fff;
  20657. }
  20658. .evaCss {
  20659. display: flex;
  20660. flex-direction: row;
  20661. flex-wrap: nowrap;
  20662. align-items: flex-start;
  20663. }
  20664. .cru_line {
  20665. position: absolute;
  20666. bottom: 0px;
  20667. transition: all 0.5s;
  20668. left: 0px;
  20669. width: 125px;
  20670. margin-left: -25px;
  20671. }
  20672. .isNoMessage {
  20673. width: 20%;
  20674. margin: 25% auto 0;
  20675. }
  20676. .isNoMessage > img {
  20677. width: 100%;
  20678. height: 100%;
  20679. }
  20680. .fullStyle >>> .el-dialog__body {
  20681. height: 100% !important;
  20682. }
  20683. .fullStyle >>> .el-dialog,
  20684. .fullStyle {
  20685. width: 100% !important;
  20686. max-width: 100% !important;
  20687. height: 100% !important;
  20688. margin: 0 !important;
  20689. }
  20690. .full_diy >>> .el-dialog {
  20691. margin: 0 !important;
  20692. height: 100%;
  20693. padding: 4px;
  20694. }
  20695. .full_diy >>> .el-dialog__body {
  20696. height: calc(100% - 100px);
  20697. }
  20698. .full_diy2 >>> .el-dialog__body {
  20699. height: calc(100% - 50px);
  20700. padding: 0;
  20701. }
  20702. .switchCss {
  20703. /* width: 100%; */
  20704. display: flex;
  20705. flex-direction: row;
  20706. flex-wrap: nowrap;
  20707. align-items: center;
  20708. /* justify-content: center; */
  20709. }
  20710. .isClickNav {
  20711. /* color: #499eef; */
  20712. color: #000;
  20713. }
  20714. .commentImg {
  20715. width: 25px;
  20716. height: 25px;
  20717. cursor: pointer;
  20718. }
  20719. .commentImg > img {
  20720. width: 100%;
  20721. height: 100%;
  20722. }
  20723. .comment {
  20724. background: #f9f9f9;
  20725. border-radius: 0 0 15px 15px;
  20726. display: flex;
  20727. flex-direction: row;
  20728. flex-wrap: nowrap;
  20729. align-items: center;
  20730. justify-content: flex-end;
  20731. height: 35px;
  20732. }
  20733. .commentList {
  20734. display: flex;
  20735. flex-direction: row;
  20736. flex-wrap: nowrap;
  20737. align-items: center;
  20738. justify-content: center;
  20739. align-content: center;
  20740. /* margin-left: 15px; */
  20741. /* margin-left: 8px; */
  20742. }
  20743. .scoreImg {
  20744. width: 17px;
  20745. height: 17px;
  20746. }
  20747. .studentDetail {
  20748. display: flex;
  20749. flex-direction: row;
  20750. flex-wrap: nowrap;
  20751. /* align-items: center; */
  20752. align-items: flex-start;
  20753. }
  20754. .tx {
  20755. width: 50px;
  20756. }
  20757. .tx > img {
  20758. width: 100%;
  20759. height: 100%;
  20760. }
  20761. .nameAndTime {
  20762. display: flex;
  20763. flex-direction: column;
  20764. flex-wrap: nowrap;
  20765. align-items: flex-start;
  20766. margin-left: 10px;
  20767. }
  20768. .worksAnswer {
  20769. color: #4078dd;
  20770. margin: 10px 0;
  20771. font-size: 16px;
  20772. position: relative;
  20773. }
  20774. .worksAnswer > img {
  20775. width: 500px;
  20776. height: 300px;
  20777. object-fit: contain;
  20778. margin: 0 auto;
  20779. display: block;
  20780. }
  20781. .commentTop {
  20782. border-bottom: 1px solid #eaeaea;
  20783. padding-bottom: 10px;
  20784. }
  20785. .commentBox {
  20786. padding-top: 15px;
  20787. }
  20788. .pl {
  20789. font-size: 18px;
  20790. }
  20791. .plPerson {
  20792. width: 100%;
  20793. }
  20794. .plName {
  20795. display: flex;
  20796. flex-direction: row;
  20797. flex-wrap: nowrap;
  20798. align-items: baseline;
  20799. color: #78787a;
  20800. width: 100%;
  20801. }
  20802. .deleteComment {
  20803. cursor: pointer;
  20804. margin-left: auto;
  20805. color: #237ade;
  20806. }
  20807. .plContent {
  20808. margin-top: 5px;
  20809. }
  20810. .evalCss {
  20811. background: #fff;
  20812. font-size: 18px;
  20813. }
  20814. .nav {
  20815. color: #9d9d9d;
  20816. padding: 5px 0 15px 20px;
  20817. }
  20818. .middleBox {
  20819. padding: 5px 0 15px 20px;
  20820. }
  20821. .pfBox {
  20822. padding-bottom: 30px;
  20823. }
  20824. .nameAndrate {
  20825. display: flex;
  20826. flex-direction: row;
  20827. flex-wrap: nowrap;
  20828. align-items: center;
  20829. padding-bottom: 10px;
  20830. height: 30px;
  20831. line-height: 30px;
  20832. }
  20833. .nameAndrate > div {
  20834. margin-left: 10px;
  20835. color: #000;
  20836. height: 30px;
  20837. }
  20838. .nameAndrate >>> .el-rate__icon {
  20839. font-size: 28px !important;
  20840. }
  20841. .pfBox > div:nth-child(2) {
  20842. background: #f7f6f9;
  20843. width: 400px;
  20844. min-height: 45px;
  20845. border-radius: 10px;
  20846. font-size: 16px;
  20847. display: flex;
  20848. flex-wrap: wrap;
  20849. align-items: center;
  20850. padding: 10px 20px;
  20851. box-sizing: border-box;
  20852. color: #000;
  20853. }
  20854. .bz {
  20855. display: flex;
  20856. flex-direction: row;
  20857. flex-wrap: nowrap;
  20858. align-items: flex-start;
  20859. }
  20860. .bz > div {
  20861. padding: 0 10px;
  20862. }
  20863. .select_box2_title {
  20864. background: #fff;
  20865. border-radius: 5px;
  20866. padding: 15px 10px;
  20867. box-sizing: border-box;
  20868. margin-bottom: 10px;
  20869. display: flex;
  20870. flex-direction: row;
  20871. flex-wrap: nowrap;
  20872. align-items: center;
  20873. }
  20874. .select_box2_title > div:nth-child(2) {
  20875. margin-left: 10px;
  20876. color: #c4c4c4;
  20877. }
  20878. .select_box2_box {
  20879. display: flex;
  20880. height: 500px;
  20881. }
  20882. .select_box2_img {
  20883. width: calc(100% - 310px);
  20884. height: 100%;
  20885. overflow: auto;
  20886. background: #fff;
  20887. border-radius: 5px;
  20888. }
  20889. .select_box2_img img {
  20890. width: 100%;
  20891. }
  20892. .select_box2_answer {
  20893. background: #fff;
  20894. margin-left: 10px;
  20895. border-radius: 5px;
  20896. width: 300px;
  20897. overflow: auto;
  20898. height: 90%;
  20899. display: flex;
  20900. flex-direction: column;
  20901. align-items: flex-start;
  20902. padding-top: 10px;
  20903. box-sizing: border-box;
  20904. position: relative;
  20905. }
  20906. .select_answer_title {
  20907. padding: 0 0 15px 20px;
  20908. color: #c4c4c4;
  20909. }
  20910. .select_box2_answer_box {
  20911. margin: 0 0 10px 20px;
  20912. width: 85%;
  20913. display: flex;
  20914. flex-direction: row;
  20915. flex-wrap: nowrap;
  20916. align-items: center;
  20917. }
  20918. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  20919. color: #000;
  20920. }
  20921. .upAnswerCss {
  20922. position: absolute;
  20923. bottom: 15px;
  20924. right: 15px;
  20925. }
  20926. .upAnswerCss >>> .el-button {
  20927. width: 95px;
  20928. height: 35px;
  20929. line-height: 35px;
  20930. padding: 0;
  20931. }
  20932. .rightWidthCss {
  20933. width: 60%;
  20934. display: flex;
  20935. flex-direction: row;
  20936. align-items: flex-start;
  20937. }
  20938. .rightAnswer {
  20939. display: flex;
  20940. flex-direction: row;
  20941. flex-wrap: nowrap;
  20942. align-items: center;
  20943. color: red;
  20944. margin-bottom: 31px;
  20945. }
  20946. .rightAnswerCss {
  20947. display: flex;
  20948. flex-direction: column;
  20949. flex-wrap: nowrap;
  20950. padding-top: 60px;
  20951. }
  20952. .blueCss {
  20953. color: #767de1;
  20954. margin-left: 10px;
  20955. }
  20956. .redCss {
  20957. color: red;
  20958. }
  20959. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  20960. color: rgb(0 123 255) !important;
  20961. }
  20962. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  20963. color: rgb(0 123 255) !important;
  20964. }
  20965. .zuoyeYulan {
  20966. padding-top: 0;
  20967. font-size: 18px;
  20968. display: flex;
  20969. align-items: flex-end;
  20970. }
  20971. .buttonA {
  20972. margin-left: 10px;
  20973. padding: 0;
  20974. }
  20975. .displayBox {
  20976. margin-bottom: 10px;
  20977. display: block;
  20978. border-bottom: 3px solid #eee;
  20979. display: flex;
  20980. align-items: center;
  20981. }
  20982. .easy_comment {
  20983. width: calc(100% - 90px);
  20984. margin-left: 10px;
  20985. display: flex;
  20986. flex-wrap: wrap;
  20987. }
  20988. .easy_comment > div {
  20989. border: 1px solid #4a4a4a;
  20990. color: #666;
  20991. border-radius: 15px;
  20992. padding: 5px 10px;
  20993. font-size: 16px;
  20994. margin-bottom: 10px;
  20995. margin-right: 5px;
  20996. cursor: pointer;
  20997. }
  20998. .easy_comment div:hover {
  20999. border: 1px solid #f7ba2a;
  21000. color: #c69217;
  21001. }
  21002. .xuan_right_box {
  21003. padding: 10px 0;
  21004. background: #f0f4fa;
  21005. margin: 0 15px 0 25px;
  21006. border-bottom-left-radius: 5px;
  21007. border-bottom-right-radius: 5px;
  21008. width: 91.5%;
  21009. }
  21010. .tool_right_box {
  21011. display: flex;
  21012. align-items: center;
  21013. }
  21014. .tool_right_box + .tool_right_box {
  21015. margin-top: 10px;
  21016. }
  21017. .right_box_xuan {
  21018. background: rgb(0 123 255);
  21019. color: #fff;
  21020. border-radius: 5px;
  21021. padding: 5px;
  21022. margin-left: 10px;
  21023. min-width: 95px;
  21024. }
  21025. .pButton:hover {
  21026. opacity: 1 !important;
  21027. }
  21028. .pButton {
  21029. position: fixed;
  21030. text-align: center;
  21031. cursor: pointer;
  21032. z-index: 999;
  21033. right: 20px;
  21034. top: 110px;
  21035. width: 50px;
  21036. height: 50px;
  21037. display: flex;
  21038. align-items: center;
  21039. justify-content: center;
  21040. border-radius: 5px;
  21041. }
  21042. .pzClass {
  21043. width: calc(100% - 340px);
  21044. }
  21045. .newDialogCss {
  21046. /* position: fixed;
  21047. right: 5%;
  21048. top: 50%;
  21049. width: 340px;
  21050. transform: translateY(-50%);
  21051. height: 60%;
  21052. box-shadow: 0px 0 8px 0px #555555;
  21053. border-radius: 15px;
  21054. z-index: 999; */
  21055. position: fixed;
  21056. right: 20px;
  21057. top: 101px;
  21058. width: 330px;
  21059. height: calc(100% - 80px);
  21060. z-index: 999;
  21061. background: #fff;
  21062. border-top-right-radius: 0px;
  21063. border-bottom-right-radius: 0px;
  21064. overflow: hidden;
  21065. }
  21066. .pzTop {
  21067. color: #fff;
  21068. background: #000;
  21069. display: flex;
  21070. flex-direction: row;
  21071. flex-wrap: nowrap;
  21072. align-items: center;
  21073. justify-content: space-between;
  21074. height: 40px;
  21075. border-radius: 15px 15px 0 0;
  21076. user-select: none;
  21077. }
  21078. .pzTop2 .checkbox {
  21079. display: flex;
  21080. align-items: center;
  21081. padding: 5px 30px;
  21082. flex: 0 0 auto;
  21083. font-weight: bold;
  21084. border-bottom: 1px solid #eee;
  21085. justify-content: space-between;
  21086. }
  21087. .pzTop2 .check {
  21088. text-align: center;
  21089. cursor: pointer;
  21090. box-sizing: border-box;
  21091. display: flex;
  21092. }
  21093. .pzTop2 img {
  21094. width: 25px;
  21095. cursor: pointer;
  21096. }
  21097. .pzTop > div:nth-child(1) {
  21098. padding-left: 10px;
  21099. }
  21100. .pzTop > div:nth-child(2) {
  21101. width: 15px;
  21102. height: 15px;
  21103. padding-right: 10px;
  21104. cursor: pointer;
  21105. }
  21106. .pzTop > div:nth-child(2) > img {
  21107. width: 100%;
  21108. height: 100%;
  21109. }
  21110. .pzBox,
  21111. .noPzBox {
  21112. height: calc(100% - 60px);
  21113. /* background: #ededed; */
  21114. background: #fff;
  21115. /* border-radius: 0 0 15px 15px; */
  21116. }
  21117. .noPzBox {
  21118. display: flex;
  21119. flex-direction: column;
  21120. flex-wrap: nowrap;
  21121. justify-content: center;
  21122. align-items: center;
  21123. }
  21124. .pzList {
  21125. background: #f7f7f7;
  21126. width: 90%;
  21127. margin: 0 auto 15px;
  21128. border-radius: 5px;
  21129. }
  21130. .pzNavTop {
  21131. display: flex;
  21132. flex-direction: row;
  21133. flex-wrap: nowrap;
  21134. padding: 10px 10px 0 10px;
  21135. align-items: center;
  21136. }
  21137. .pzDelete {
  21138. cursor: pointer;
  21139. margin-left: auto;
  21140. font-size: 14px;
  21141. color: #afafaf;
  21142. }
  21143. .pzNavTop > div:nth-child(1) {
  21144. background: #3760af;
  21145. width: 35px;
  21146. height: 35px;
  21147. color: #fff;
  21148. text-align: center;
  21149. line-height: 35px;
  21150. border-radius: 50%;
  21151. font-size: 14px;
  21152. }
  21153. .pzNavTop > div:nth-child(2) {
  21154. font-size: 18px;
  21155. color: #959595;
  21156. margin-left: 5px;
  21157. }
  21158. .pzContent {
  21159. padding: 10px;
  21160. word-break: break-word;
  21161. }
  21162. .pzContent audio {
  21163. width: 100%;
  21164. }
  21165. .pzContent audio::-webkit-media-controls-panel {
  21166. background: #fff;
  21167. }
  21168. .pzContent >>> img {
  21169. max-width: 100%;
  21170. }
  21171. .pzListBox {
  21172. padding-top: 15px;
  21173. height: calc(100% - 100px);
  21174. overflow: auto;
  21175. }
  21176. .addPzButton {
  21177. position: relative;
  21178. margin-top: 3px;
  21179. width: 100%;
  21180. }
  21181. .addPzButton .img1 {
  21182. position: absolute;
  21183. top: 50%;
  21184. right: 25px;
  21185. transform: translateY(-50%);
  21186. height: 100%;
  21187. display: flex;
  21188. align-items: center;
  21189. }
  21190. .addPzButton .img1 div {
  21191. display: flex;
  21192. }
  21193. .addPzButton .img1 div img {
  21194. width: 28px;
  21195. margin-left: 10px;
  21196. cursor: pointer;
  21197. }
  21198. .addPzButton .img1 div span {
  21199. font-size: 14px;
  21200. margin: 4px 0 0 3px;
  21201. color: #afafaf;
  21202. }
  21203. .addPz {
  21204. background: #4b79ce;
  21205. width: 100px;
  21206. color: #fff;
  21207. font-size: 12px;
  21208. height: 30px;
  21209. margin: 0 auto;
  21210. text-align: center;
  21211. line-height: 30px;
  21212. border-radius: 10px;
  21213. cursor: pointer;
  21214. }
  21215. .addDialogCss {
  21216. position: fixed;
  21217. width: 600px;
  21218. height: 70%;
  21219. min-height: 450px;
  21220. box-shadow: 0px 0 8px 0px #555555;
  21221. border-radius: 15px;
  21222. z-index: 999;
  21223. left: 50%;
  21224. top: 50%;
  21225. margin: -18% 0 0 -300px;
  21226. }
  21227. .teacherPz {
  21228. display: flex;
  21229. flex-direction: row;
  21230. align-items: center;
  21231. flex-wrap: nowrap;
  21232. }
  21233. .teacherPzImg {
  21234. width: 30px;
  21235. height: 30px;
  21236. }
  21237. .teacherPzImg > img {
  21238. width: 100%;
  21239. height: 100%;
  21240. }
  21241. .addPzBox {
  21242. height: calc(100% - 40px);
  21243. background: #ededed;
  21244. border-bottom-left-radius: 15px;
  21245. border-bottom-right-radius: 15px;
  21246. }
  21247. .pzAudioClass {
  21248. margin: 15px 14px;
  21249. background: #fff;
  21250. height: 100%;
  21251. display: flex;
  21252. justify-content: center;
  21253. align-items: center;
  21254. }
  21255. .pzConText {
  21256. width: 95%;
  21257. height: 100%;
  21258. margin: 10px auto 0;
  21259. border: none;
  21260. background: #fff;
  21261. border-radius: 0px;
  21262. }
  21263. .pzConText >>> .text {
  21264. height: calc(100% - 82px);
  21265. }
  21266. .addTextCss {
  21267. background: #4b79ce;
  21268. width: 80px;
  21269. height: 30px;
  21270. text-align: center;
  21271. color: #fff;
  21272. line-height: 30px;
  21273. border-radius: 10px;
  21274. margin: 10px auto 0;
  21275. cursor: pointer;
  21276. }
  21277. .pzConText:focus-visible {
  21278. border: none !important;
  21279. }
  21280. .maxWidth {
  21281. width: 1000px;
  21282. }
  21283. .noPz {
  21284. width: 150px;
  21285. margin: 0 auto 20%;
  21286. }
  21287. .noPz > img {
  21288. width: 100%;
  21289. height: 100%;
  21290. }
  21291. .pzList .time {
  21292. text-align: right;
  21293. box-sizing: border-box;
  21294. padding: 0 10px 10px 0px;
  21295. color: #949494;
  21296. font-size: 14px;
  21297. }
  21298. /* table 样式 */
  21299. .addPzCheck {
  21300. display: flex;
  21301. flex-direction: row;
  21302. flex-wrap: nowrap;
  21303. padding: 10px 15px 0;
  21304. }
  21305. .addPzCheck span {
  21306. cursor: pointer;
  21307. padding-bottom: 5px;
  21308. font-weight: bold;
  21309. }
  21310. .addPzCheck span + span {
  21311. margin-left: 10px;
  21312. }
  21313. .addPzCheck .isChooseActive {
  21314. color: #3e88f4;
  21315. border-bottom: 2px solid #2f80f3;
  21316. border-bottom: 2px solid #3e87ff;
  21317. }
  21318. /* code 样式 */
  21319. .scoreBox,
  21320. .scoreDetailBox {
  21321. display: flex;
  21322. align-items: center;
  21323. justify-content: flex-start;
  21324. margin-top: 20px;
  21325. font-size: 18px;
  21326. width: 100%;
  21327. }
  21328. .scoreBox .t,
  21329. .scoreDetailBox .t {
  21330. margin-right: 10px;
  21331. width: 100px;
  21332. text-align: right;
  21333. }
  21334. .scoreDetailBox {
  21335. align-items: flex-start;
  21336. }
  21337. .scoreDetailBox >>> .el-textarea {
  21338. width: calc(100% - 200px);
  21339. }
  21340. .scoreBox >>> .el-input {
  21341. width: 130px;
  21342. font-size: 38px;
  21343. }
  21344. .scoreBox >>> .el-input__inner {
  21345. height: 60px;
  21346. }
  21347. .answerScore {
  21348. position: absolute;
  21349. top: 10px;
  21350. right: 10px;
  21351. background: #0000008f;
  21352. border-radius: 5px;
  21353. padding: 3px 5px;
  21354. font-size: 14px;
  21355. color: #fff;
  21356. cursor: pointer;
  21357. }
  21358. .open_box .switch_box {
  21359. width: 100%;
  21360. margin: 0 auto;
  21361. display: flex;
  21362. justify-content: space-between;
  21363. }
  21364. .open_box .switch_box + .switch_box {
  21365. margin-top: 10px;
  21366. }
  21367. .deleteImg {
  21368. width: 25px !important;
  21369. height: 25px !important;
  21370. cursor: pointer;
  21371. position: absolute;
  21372. top: 10px;
  21373. right: 10px;
  21374. }
  21375. .deleteImg2 {
  21376. width: 15px !important;
  21377. height: 15px !important;
  21378. top: 5px;
  21379. right: 5px;
  21380. }
  21381. .rightW {
  21382. right: 40px;
  21383. }
  21384. .drawPBox {
  21385. display: flex;
  21386. flex-direction: column;
  21387. position: relative;
  21388. }
  21389. .drawPBox span {
  21390. font-size: 18px;
  21391. color: #606266;
  21392. padding-bottom: 10px;
  21393. margin: 10px 0;
  21394. border-bottom: 1px solid #eaeaea;
  21395. }
  21396. .drawPBox img {
  21397. width: 500px;
  21398. height: 300px;
  21399. object-fit: contain;
  21400. cursor: pointer;
  21401. margin: 0 auto;
  21402. }
  21403. .sentenBox {
  21404. background: #fff;
  21405. height: 450px;
  21406. overflow: auto;
  21407. background-image: url("../../assets/icon/conSentences/stuBg.png");
  21408. background-position: 102%;
  21409. background-repeat: no-repeat;
  21410. background-size: 60%;
  21411. }
  21412. .addSen {
  21413. background: #409efe;
  21414. width: 90px;
  21415. color: #fff;
  21416. height: 35px;
  21417. text-align: center;
  21418. line-height: 35px;
  21419. border-radius: 5px;
  21420. float: right;
  21421. margin: 10px 20px 0 0;
  21422. cursor: pointer;
  21423. }
  21424. .sentenTop {
  21425. display: flex;
  21426. flex-direction: row;
  21427. flex-wrap: nowrap;
  21428. align-items: center;
  21429. padding: 55px 0 0 20px;
  21430. box-sizing: border-box;
  21431. }
  21432. .sentenTop > div:nth-child(2) {
  21433. width: 300px;
  21434. margin: 0 15px;
  21435. }
  21436. .sentenTop > div:nth-child(3) {
  21437. background: #409efe;
  21438. color: #fff;
  21439. width: 65px;
  21440. height: 35px;
  21441. text-align: center;
  21442. line-height: 35px;
  21443. border-radius: 5px;
  21444. cursor: pointer;
  21445. }
  21446. .cardList,
  21447. .cardList1 {
  21448. padding: 10px 0 10px 0;
  21449. display: flex;
  21450. flex-direction: row;
  21451. flex-wrap: wrap;
  21452. align-items: center;
  21453. box-sizing: border-box;
  21454. border-bottom: 1px solid #f4f4f4;
  21455. width: 98%;
  21456. margin: 0 auto;
  21457. min-width: 60%;
  21458. max-width: 85%;
  21459. }
  21460. .cardList1 {
  21461. padding: 10px 0 10px 10px !important;
  21462. margin: 0 !important;
  21463. }
  21464. .cardBox {
  21465. display: flex;
  21466. flex-direction: row;
  21467. flex-wrap: wrap;
  21468. align-items: center;
  21469. align-content: center;
  21470. }
  21471. .cardBox > div {
  21472. margin-bottom: 10px;
  21473. }
  21474. .isCard,
  21475. .isChooseCard,
  21476. .noCard,
  21477. .isCard1 {
  21478. width: 130px;
  21479. height: 60px;
  21480. text-align: center;
  21481. line-height: 60px;
  21482. font-size: 20px;
  21483. cursor: pointer;
  21484. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  21485. background-size: cover;
  21486. transition: all 2s;
  21487. margin-right: 20px;
  21488. }
  21489. .isCard > div,
  21490. .noCard > div,
  21491. .isCard1 > div {
  21492. white-space: nowrap;
  21493. overflow: hidden;
  21494. text-overflow: ellipsis;
  21495. width: 75%;
  21496. margin: 0 auto;
  21497. }
  21498. .noCard {
  21499. background-image: none;
  21500. }
  21501. .isCard1 {
  21502. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  21503. }
  21504. .isChooseCard {
  21505. background-image: none;
  21506. border: 1px dashed #b9b9b9;
  21507. border-radius: 10px;
  21508. }
  21509. .card {
  21510. width: 130px;
  21511. height: 60px;
  21512. }
  21513. .card > img {
  21514. width: 100%;
  21515. height: 100%;
  21516. }
  21517. .rightCardBox {
  21518. margin: 10px 0 0 10px;
  21519. }
  21520. .rightCardBox > div:nth-child(1) {
  21521. margin-bottom: 10px;
  21522. }
  21523. .cardCss {
  21524. display: flex;
  21525. flex-direction: column;
  21526. flex-wrap: nowrap;
  21527. align-items: center;
  21528. border-bottom: 3px solid #b4c3d3;
  21529. padding: 0 0 5px 0;
  21530. margin-right: 10px;
  21531. }
  21532. .cardCss > div:nth-child(2) {
  21533. background: #5b7b9d;
  21534. color: #fff;
  21535. width: 20px;
  21536. height: 20px;
  21537. border-radius: 50%;
  21538. text-align: center;
  21539. line-height: 20px;
  21540. }
  21541. .isWrong {
  21542. display: flex;
  21543. flex-direction: row;
  21544. flex-wrap: nowrap;
  21545. align-content: center;
  21546. align-items: center;
  21547. }
  21548. .answerRight {
  21549. width: 25%;
  21550. }
  21551. .isTj {
  21552. display: flex;
  21553. flex-direction: row;
  21554. flex-wrap: nowrap;
  21555. align-items: center;
  21556. }
  21557. .isTj > div:nth-child(2) {
  21558. color: #727070;
  21559. margin-left: 10px;
  21560. }
  21561. .isTjImg {
  21562. width: 30px;
  21563. height: 30px;
  21564. }
  21565. .isTjImg > img {
  21566. width: 100%;
  21567. height: 100%;
  21568. }
  21569. .cardAnswerBox {
  21570. font-size: 18px;
  21571. width: 97%;
  21572. border: 5px;
  21573. padding: 0;
  21574. border-radius: 5px;
  21575. margin: 10px auto;
  21576. word-break: break-word;
  21577. }
  21578. .w_name {
  21579. margin-bottom: 10px;
  21580. }
  21581. .w_name span {
  21582. font-size: 16px;
  21583. }
  21584. .w_teachert {
  21585. width: 50px !important;
  21586. position: absolute;
  21587. height: auto !important;
  21588. z-index: 10;
  21589. right: 25px;
  21590. top: -25px;
  21591. }
  21592. .group_workBox {
  21593. }
  21594. .group_workBox + .group_workBox {
  21595. margin-top: 20px;
  21596. }
  21597. .group_box {
  21598. padding-bottom: 20px;
  21599. border-bottom: 2px solid #f0f0f0;
  21600. }
  21601. .group_title {
  21602. display: flex;
  21603. align-items: center;
  21604. justify-content: space-between;
  21605. }
  21606. .group_name {
  21607. background-image: url(../../assets/icon/groupN.png);
  21608. width: 220px;
  21609. background-size: 100% 100%;
  21610. height: 67px;
  21611. padding: 0 20px 0 43px;
  21612. box-sizing: border-box;
  21613. line-height: 63px;
  21614. color: #fff;
  21615. overflow: hidden;
  21616. white-space: nowrap;
  21617. text-overflow: ellipsis;
  21618. }
  21619. .group_work {
  21620. width: 100%;
  21621. padding: 0 10px;
  21622. box-sizing: border-box;
  21623. display: flex;
  21624. flex-wrap: wrap;
  21625. }
  21626. .g_d_box {
  21627. display: flex;
  21628. flex-flow: wrap;
  21629. justify-content: space-around;
  21630. }
  21631. .g_d_box .isChair {
  21632. background-image: url(../../assets/avatar.png) !important;
  21633. }
  21634. .g_d_group {
  21635. width: 500px;
  21636. margin-bottom: 80px;
  21637. }
  21638. .g_d_group_chair {
  21639. display: flex;
  21640. align-items: center;
  21641. justify-content: center;
  21642. }
  21643. .g_d_group_chair > div + div {
  21644. margin-left: 30px;
  21645. }
  21646. .g_d_group_chair > div,
  21647. .g_d_group_chair2 > div {
  21648. display: flex;
  21649. flex-direction: column;
  21650. align-items: center;
  21651. }
  21652. .g_d_group_chair > div > span:nth-child(1),
  21653. .g_d_group_chair2 > div > span:nth-child(1) {
  21654. background-image: url(../../assets/icon/chair.png);
  21655. width: 50px;
  21656. height: 50px;
  21657. display: block;
  21658. background-size: 100% 100%;
  21659. }
  21660. .g_d_group_tableBox {
  21661. display: flex;
  21662. align-items: center;
  21663. justify-content: center;
  21664. }
  21665. .g_d_group_chair2 {
  21666. display: flex;
  21667. flex-direction: column;
  21668. align-items: center;
  21669. justify-content: center;
  21670. }
  21671. .g_d_group_chair2 > div + div {
  21672. margin-top: 10px;
  21673. }
  21674. .g_d_group_table {
  21675. background-image: url(../../assets/icon/groupBg.png);
  21676. width: 354px;
  21677. height: 196px;
  21678. background-size: 100% 100%;
  21679. display: flex;
  21680. align-items: center;
  21681. justify-content: center;
  21682. flex-direction: column;
  21683. color: #fff;
  21684. }
  21685. .g_d_group_table > div:nth-child(1) {
  21686. font-size: 24px;
  21687. margin-bottom: 5px;
  21688. }
  21689. .g_d_group_table > div:nth-child(2) div {
  21690. cursor: pointer;
  21691. background: #2e77bf;
  21692. padding: 4px 10px;
  21693. border-radius: 5px;
  21694. }
  21695. .groupBox {
  21696. }
  21697. .groupContent + .groupContent {
  21698. margin-top: 30px;
  21699. }
  21700. .groupTitle {
  21701. font-size: 24px;
  21702. color: rgb(80, 80, 80);
  21703. margin-bottom: 20px;
  21704. }
  21705. .groupName {
  21706. display: flex;
  21707. align-items: center;
  21708. }
  21709. .groupn {
  21710. font-size: 15px;
  21711. margin-right: 10px;
  21712. }
  21713. .groupName + .groupName {
  21714. margin-top: 15px;
  21715. }
  21716. .groupBtn {
  21717. margin-left: 10px;
  21718. }
  21719. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  21720. text-align: left;
  21721. }
  21722. .g_d_btnBox {
  21723. display: flex;
  21724. justify-content: flex-end;
  21725. align-items: flex-end;
  21726. margin-bottom: 20px;
  21727. }
  21728. .updateChair {
  21729. position: relative;
  21730. }
  21731. .updateChairBtn {
  21732. position: absolute;
  21733. width: 50px;
  21734. height: 50px;
  21735. overflow: hidden;
  21736. /* display: flex; */
  21737. align-items: center;
  21738. justify-content: center;
  21739. background: #00000087;
  21740. color: #fff;
  21741. border-radius: 50px;
  21742. display: none;
  21743. cursor: pointer;
  21744. }
  21745. .updateChair:hover .updateChairBtn {
  21746. display: flex;
  21747. }
  21748. .group_staic_box {
  21749. display: flex;
  21750. padding: 30px 40px 10px;
  21751. flex-wrap: wrap;
  21752. }
  21753. .group_staic {
  21754. /* width: 50%; */
  21755. margin-bottom: 20px;
  21756. display: flex;
  21757. align-items: center;
  21758. }
  21759. .group_staic span:nth-child(1) {
  21760. width: 150px;
  21761. text-align: right;
  21762. margin-right: 15px;
  21763. }
  21764. .group_staic span:nth-child(2) {
  21765. background: rgb(0 123 255);
  21766. color: #fff;
  21767. border-radius: 5px;
  21768. padding: 5px;
  21769. }
  21770. .codeFileBox {
  21771. height: 300px;
  21772. background: #fff;
  21773. display: flex;
  21774. align-items: center;
  21775. justify-content: center;
  21776. }
  21777. .codeFileBox img {
  21778. width: 200px;
  21779. margin: 0;
  21780. height: auto;
  21781. }
  21782. .codeFileBox div {
  21783. background: rgb(80, 142, 226);
  21784. color: #fff;
  21785. padding: 10px 20px;
  21786. border-radius: 25px;
  21787. cursor: pointer;
  21788. margin-left: 15px;
  21789. }
  21790. .radioBox {
  21791. display: flex;
  21792. flex-direction: column;
  21793. flex-wrap: nowrap;
  21794. align-items: flex-start;
  21795. }
  21796. .radioBox > div {
  21797. margin: 10px 0 0 10px;
  21798. }
  21799. /* .radioBox >>> .el-radio__input,
  21800. .radioBox >>> .el-checkbox__inner {
  21801. margin-left: 10px;
  21802. } */
  21803. .radioBox >>> .el-radio__label,
  21804. .radioBox >>> .el-checkbox__label {
  21805. display: flex;
  21806. align-items: center;
  21807. }
  21808. .radioBox >>> .el-radio__label > span {
  21809. width: 100%;
  21810. display: -webkit-box;
  21811. overflow: hidden;
  21812. white-space: normal !important;
  21813. text-overflow: ellipsis;
  21814. word-wrap: break-word;
  21815. }
  21816. .inImg {
  21817. width: 100px;
  21818. cursor: pointer;
  21819. }
  21820. .inImg > img {
  21821. width: 100%;
  21822. height: 100%;
  21823. object-fit: cover;
  21824. }
  21825. .timuImgBox {
  21826. margin: 10px 0;
  21827. display: flex;
  21828. flex-direction: column;
  21829. flex-wrap: wrap;
  21830. align-items: flex-start;
  21831. }
  21832. .timuImg {
  21833. width: 150px;
  21834. margin: 5px 0;
  21835. cursor: pointer;
  21836. }
  21837. .timuImg > img {
  21838. width: 100%;
  21839. height: 100%;
  21840. object-fit: cover;
  21841. }
  21842. .worksTop {
  21843. display: flex;
  21844. flex-direction: row;
  21845. align-items: flex-end;
  21846. }
  21847. .corOpen {
  21848. margin: 0 0 0 10px;
  21849. font-size: 14px;
  21850. cursor: pointer;
  21851. color: #505050;
  21852. }
  21853. .corOpen:hover {
  21854. color: #499eef;
  21855. }
  21856. .navCorOpenBox {
  21857. display: flex;
  21858. flex-direction: row;
  21859. align-items: center;
  21860. justify-content: space-between;
  21861. height: 55px;
  21862. background: #ffffff;
  21863. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  21864. border-radius: 8px 8px 0px 0px;
  21865. z-index: 9;
  21866. position: relative;
  21867. }
  21868. .navCorOpen {
  21869. padding-right: 15px;
  21870. cursor: pointer;
  21871. width: 45px;
  21872. display: flex;
  21873. }
  21874. .navCorOpen > img {
  21875. width: 100%;
  21876. height: 100%;
  21877. }
  21878. .mlImg {
  21879. width: 45px !important;
  21880. min-width: 45px;
  21881. cursor: pointer;
  21882. margin-top: 5px;
  21883. }
  21884. .mlImg > img {
  21885. width: 100%;
  21886. height: 100%;
  21887. }
  21888. .navLeftCss {
  21889. width: 100% !important;
  21890. left: 0 !important;
  21891. }
  21892. .isContentCss {
  21893. width: 100% !important;
  21894. }
  21895. .isAllWidth {
  21896. width: 100% !important;
  21897. }
  21898. .toolBoxSteps {
  21899. position: absolute;
  21900. top: 50%;
  21901. transform: translateY(-50%);
  21902. cursor: pointer;
  21903. width: 60px;
  21904. display: flex;
  21905. align-items: center;
  21906. justify-content: center;
  21907. }
  21908. .toolBoxSteps:nth-child(1) > img,
  21909. .toolBoxSteps:nth-child(2) > img {
  21910. width: 24px;
  21911. }
  21912. .toolBoxSteps:nth-child(1) {
  21913. left: 0;
  21914. }
  21915. .toolBoxSteps:nth-child(2) {
  21916. right: 0;
  21917. }
  21918. .isChooseActive {
  21919. color: #3681fc !important;
  21920. font-weight: bold !important;
  21921. }
  21922. .tool_box {
  21923. width: 100%;
  21924. padding: 0 0 0 20px;
  21925. }
  21926. .tool_type_box {
  21927. display: flex;
  21928. flex-direction: row;
  21929. align-items: baseline;
  21930. flex-wrap: nowrap;
  21931. justify-content: flex-start;
  21932. position: relative;
  21933. }
  21934. .toolSort {
  21935. display: flex;
  21936. flex-direction: row;
  21937. flex-wrap: wrap;
  21938. justify-content: flex-start;
  21939. align-items: flex-start;
  21940. padding: 0 0 15px 0;
  21941. }
  21942. .toolSort > div {
  21943. margin: 0 10px 0 0;
  21944. width: 135px;
  21945. box-sizing: border-box;
  21946. border: 2px solid transparent;
  21947. }
  21948. .tools {
  21949. width: 100%;
  21950. display: flex;
  21951. flex-direction: column;
  21952. flex-wrap: nowrap;
  21953. align-items: flex-start;
  21954. }
  21955. .whiteBIcon {
  21956. width: fit-content;
  21957. cursor: pointer;
  21958. display: flex;
  21959. flex-direction: column;
  21960. flex-wrap: nowrap;
  21961. align-items: center;
  21962. font-size: 14px;
  21963. }
  21964. .tool:hover{
  21965. border: 2px solid #a5c7ff;
  21966. border-radius: 5px;
  21967. }
  21968. .whiteBIcon > img {
  21969. width: 65px;
  21970. height: 100%;
  21971. }
  21972. .whiteBIcon > img {
  21973. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  21974. border-radius: 15px;
  21975. }
  21976. .dia_tool_box {
  21977. display: flex;
  21978. flex-wrap: wrap;
  21979. width: 100%;
  21980. }
  21981. .dia_tool_box > div {
  21982. margin-right: 40px;
  21983. }
  21984. .check {
  21985. /* width: 20px;
  21986. height: 20px; */
  21987. cursor: pointer;
  21988. margin: 10px 0;
  21989. position: absolute;
  21990. right: 2px;
  21991. top: -5px;
  21992. }
  21993. .noChoose,.isChoose{
  21994. width: 15px;
  21995. height: 15px;
  21996. border-radius: 50%;
  21997. border: 1px solid #dfe2e7;
  21998. }
  21999. .isChoose{
  22000. border: 4px solid #0363ff !important;
  22001. width: 10px;
  22002. height: 10px
  22003. }
  22004. .isToolChoose{
  22005. border: 2px solid #5394ff !important;
  22006. border-radius: 5px;
  22007. box-shadow: 0 0 6px 0px #5394ff;
  22008. }
  22009. .checkDiv {
  22010. display: flex;
  22011. align-items: center;
  22012. }
  22013. .checkDiv span {
  22014. margin-left: 5px;
  22015. color: #858585;
  22016. }
  22017. .check img {
  22018. width: 20px;
  22019. height: 20px;
  22020. }
  22021. /* code 样式 */
  22022. .cont {
  22023. /* -webkit-user-modify: read-write; */
  22024. overflow-wrap: break-word;
  22025. -webkit-line-break: after-white-space;
  22026. }
  22027. /* table 样式 */
  22028. .cont >>> table {
  22029. border-top: 1px solid #ccc;
  22030. border-left: 1px solid #ccc;
  22031. }
  22032. .cont >>> table td,
  22033. .cont >>> table th {
  22034. border-bottom: 1px solid #ccc;
  22035. border-right: 1px solid #ccc;
  22036. /* padding: 20px 5px; */
  22037. padding: 5px 10px;
  22038. max-width: 0px;
  22039. height: 30px;
  22040. vertical-align: baseline;
  22041. box-sizing: border-box;
  22042. }
  22043. .cont >>> table th {
  22044. border-bottom: 2px solid #ccc;
  22045. text-align: center;
  22046. }
  22047. /* blockquote 样式 */
  22048. .cont >>> blockquote {
  22049. display: block;
  22050. border-left: 8px solid #d0e5f2;
  22051. padding: 5px 10px;
  22052. margin: 10px 0;
  22053. line-height: 1.4;
  22054. font-size: 100%;
  22055. background-color: #f1f1f1;
  22056. }
  22057. /* code 样式 */
  22058. .cont >>> code {
  22059. display: inline-block;
  22060. /* *display: inline; */
  22061. zoom: 1;
  22062. background-color: #f1f1f1;
  22063. border-radius: 3px;
  22064. padding: 3px 5px;
  22065. margin: 0 3px;
  22066. }
  22067. .cont >>> pre code {
  22068. display: block;
  22069. }
  22070. /* ul ol 样式 */
  22071. .cont >>> ul,
  22072. ol {
  22073. margin: 10px 0 10px 20px;
  22074. }
  22075. .fileC_box > .fileC_title {
  22076. padding: 10px 5px;
  22077. border-top: 1px solid #cdcdcd;
  22078. font-size: 14px;
  22079. color: #868686;
  22080. width: 88%;
  22081. margin: 0 auto;
  22082. }
  22083. .pl_select_box {
  22084. height: 40px;
  22085. line-height: 40px;
  22086. width: 100%;
  22087. cursor: pointer;
  22088. padding: 0 20px;
  22089. box-sizing: border-box;
  22090. border-radius: 5px;
  22091. border: 1px solid #d6d6d6;
  22092. white-space: nowrap;
  22093. overflow: hidden;
  22094. text-overflow: ellipsis;
  22095. background: #fff;
  22096. text-align: left;
  22097. }
  22098. .stageBoxCss {
  22099. display: flex;
  22100. flex-direction: row;
  22101. flex-wrap: nowrap;
  22102. align-items: center;
  22103. height: 50px;
  22104. border-bottom: 1px solid #e2f5fc;
  22105. cursor: pointer;
  22106. }
  22107. .stageChild,
  22108. .toolChild {
  22109. height: 0;
  22110. overflow: hidden;
  22111. transition: all 0.5s;
  22112. }
  22113. .toolChild {
  22114. margin: 0 0 0 17px;
  22115. padding: 0 0 0 20px;
  22116. border-left: 1px solid #d7d7d7;
  22117. }
  22118. .gjCss {
  22119. display: flex;
  22120. flex-direction: row;
  22121. flex-wrap: nowrap;
  22122. align-items: center;
  22123. padding: 15px 0;
  22124. box-sizing: border-box;
  22125. font-size: 14px;
  22126. cursor: pointer;
  22127. }
  22128. .toolChild > div {
  22129. position: relative;
  22130. }
  22131. .toolChild > div::before {
  22132. content: "";
  22133. width: 15px;
  22134. height: 1px;
  22135. background: #cad1dc;
  22136. position: absolute;
  22137. top: 24px;
  22138. left: -20px;
  22139. display: block;
  22140. }
  22141. .isGjCss {
  22142. color: #0061ff;
  22143. }
  22144. .navItem {
  22145. background: #ffffff;
  22146. border-radius: 4px;
  22147. width: 100%;
  22148. margin: 10px auto 0;
  22149. position: relative;
  22150. height: 48px;
  22151. display: flex;
  22152. flex-direction: row;
  22153. flex-wrap: nowrap;
  22154. align-items: center;
  22155. }
  22156. .navItemList {
  22157. display: flex;
  22158. flex-direction: row;
  22159. flex-wrap: nowrap;
  22160. align-items: center;
  22161. padding: 18px 13px;
  22162. cursor: pointer;
  22163. font-size: 16px;
  22164. font-weight: 400;
  22165. color: #0e1e33;
  22166. justify-content: flex-start;
  22167. width: 100%;
  22168. border-radius: 8px;
  22169. }
  22170. .navItemList > div {
  22171. font-size: 16px;
  22172. font-weight: 400;
  22173. }
  22174. .navItemList > div:first-child {
  22175. min-width: 60px;
  22176. }
  22177. .navItemList > div:last-child {
  22178. display: -webkit-box;
  22179. overflow: hidden;
  22180. white-space: normal !important;
  22181. text-overflow: ellipsis;
  22182. word-wrap: break-word;
  22183. -webkit-line-clamp: 2;
  22184. -webkit-box-orient: vertical;
  22185. }
  22186. /* .isItemList {
  22187. background: #3681fc;
  22188. }
  22189. .isItemList > div {
  22190. color: #fff;
  22191. } */
  22192. .isItemList {
  22193. color: #0061ff !important;
  22194. }
  22195. .navListItem {
  22196. width: 280px;
  22197. height: 50px;
  22198. margin: 0px auto 10px;
  22199. display: flex;
  22200. flex-direction: row;
  22201. flex-wrap: nowrap;
  22202. align-items: center;
  22203. justify-content: space-between;
  22204. background: #f0f4fa;
  22205. border-radius: 6px 6px 6px 6px;
  22206. }
  22207. .downIcon {
  22208. width: 20px;
  22209. min-width: 20px;
  22210. height: 20px;
  22211. margin-right: 15px;
  22212. cursor: pointer;
  22213. }
  22214. .downIcon > img {
  22215. width: 100%;
  22216. height: 100%;
  22217. }
  22218. .newButton {
  22219. width: 102px;
  22220. height: 36px;
  22221. background: #e7ebf1;
  22222. border-radius: 4px;
  22223. color: #0e1e33;
  22224. font-weight: 400;
  22225. font-size: 14px;
  22226. border: none;
  22227. float: right;
  22228. margin-left: 10px;
  22229. }
  22230. .pick_box {
  22231. display: flex;
  22232. align-items: flex-start;
  22233. flex-wrap: wrap;
  22234. }
  22235. .selectBox {
  22236. width: 110px;
  22237. margin-left: 10px;
  22238. margin: 0 10px 0 auto;
  22239. }
  22240. .selectBox >>> .el-input__inner {
  22241. height: 30px;
  22242. line-height: 30px;
  22243. }
  22244. .selectBox >>> .el-input__icon {
  22245. line-height: 30px;
  22246. }
  22247. .sentenceTitle {
  22248. display: flex;
  22249. flex-direction: row;
  22250. flex-wrap: nowrap;
  22251. align-items: center;
  22252. }
  22253. .sentenceTitle::before {
  22254. content: attr(index);
  22255. background: #3681fc;
  22256. border-radius: 50%;
  22257. color: #fff;
  22258. width: 25px;
  22259. height: 25px;
  22260. min-width: 25px;
  22261. min-height: 25px;
  22262. text-align: center;
  22263. line-height: 25px;
  22264. margin-right: 5px;
  22265. }
  22266. .closeTri1 {
  22267. min-width: 15px;
  22268. width: 15px;
  22269. height: 15px;
  22270. }
  22271. .closeTri1 {
  22272. padding-left: 10px;
  22273. cursor: pointer;
  22274. }
  22275. .closeTri1 > img {
  22276. width: 100%;
  22277. height: 100%;
  22278. }
  22279. .noToolBlue {
  22280. min-width: 10px;
  22281. width: 10px;
  22282. height: 10px;
  22283. background: #0061ff;
  22284. border-radius: 50%;
  22285. margin-left: 13px;
  22286. }
  22287. .timeAndReply {
  22288. display: flex;
  22289. flex-direction: row;
  22290. flex-wrap: nowrap;
  22291. justify-content: space-between;
  22292. align-items: center;
  22293. font-size: 14px;
  22294. box-sizing: border-box;
  22295. padding: 0 10px 10px 0px;
  22296. }
  22297. .timeAndReply .time {
  22298. color: #bfbfbf;
  22299. padding: 0 0 0 10px;
  22300. box-sizing: border-box;
  22301. }
  22302. .timeAndReply > div:last-child {
  22303. cursor: pointer;
  22304. color: #777;
  22305. }
  22306. .hfBox {
  22307. padding: 10px;
  22308. box-sizing: border-box;
  22309. }
  22310. .whoReplyWho {
  22311. display: flex;
  22312. flex-direction: row;
  22313. flex-wrap: nowrap;
  22314. align-items: baseline;
  22315. justify-content: flex-start;
  22316. }
  22317. .hfBottom {
  22318. display: flex;
  22319. flex-direction: row;
  22320. flex-wrap: nowrap;
  22321. align-items: center;
  22322. justify-content: space-between;
  22323. font-size: 14px;
  22324. }
  22325. .deleteHfItem {
  22326. cursor: pointer;
  22327. width: 20px;
  22328. height: 20px;
  22329. }
  22330. .deleteHfItem > img {
  22331. width: 100%;
  22332. height: 100%;
  22333. }
  22334. .whoReplyWho > .hfImg {
  22335. width: 12px;
  22336. height: 12px;
  22337. margin: 0 5px;
  22338. }
  22339. .whoReplyWho > .hfImg > img {
  22340. width: 100%;
  22341. height: 100%;
  22342. }
  22343. .hfContent {
  22344. padding-top: 10px;
  22345. box-sizing: border-box;
  22346. display: -webkit-box;
  22347. overflow: hidden;
  22348. white-space: normal !important;
  22349. text-overflow: ellipsis;
  22350. word-wrap: break-word;
  22351. -webkit-box-orient: vertical;
  22352. }
  22353. .hfTime {
  22354. text-align: left;
  22355. box-sizing: border-box;
  22356. padding: 10px 0 10px 0px;
  22357. color: #bfbfbf;
  22358. font-size: 14px;
  22359. }
  22360. .toolMask{
  22361. position: fixed;
  22362. width: 100%;
  22363. height: 100%;
  22364. background: #3f3c3c;
  22365. opacity: 0.5;
  22366. top: 0;
  22367. left: 0;
  22368. z-index: 999;
  22369. }
  22370. .addToolCss {
  22371. position: fixed;
  22372. z-index: 999;
  22373. background: #fff;
  22374. right: 15%;
  22375. bottom: 20%;
  22376. min-width: 600px;
  22377. min-height: 300px;
  22378. border-radius: 10px;
  22379. box-shadow: 0 0 8px 1px #b2b2b2;
  22380. }
  22381. .toolTop {
  22382. display: flex;
  22383. flex-direction: row;
  22384. flex-wrap: nowrap;
  22385. justify-content: space-between;
  22386. align-items: center;
  22387. padding: 20px;
  22388. }
  22389. .toolTop > div:nth-child(2) {
  22390. width: 15px;
  22391. height: 15px;
  22392. padding-right: 10px;
  22393. cursor: pointer;
  22394. }
  22395. .toolTop > div:nth-child(2) > img {
  22396. width: 100%;
  22397. height: 100%;
  22398. }
  22399. </style>