studyStudent.vue 736 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635
  1. <template>
  2. <!-- 极简模式 -->
  3. <div class="pb_content" style="overflow: unset">
  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 && !(IsFollow && tType == 2)"
  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-if="!(IsFollow && tType == 2)">
  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. class="inviteBox"
  97. v-if="tcid && inviteCode"
  98. style="padding: 0 0 15px 0"
  99. >
  100. <div>
  101. <span>随机码:{{ inviteCode }}</span>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="cru_selectBox">
  106. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  107. <div class="stageChild" :class="{ navActive: item.isOpen }">
  108. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  109. <div
  110. class="navItem"
  111. :class="{
  112. openTaskActive:
  113. navIndex == taskCount &&
  114. nav.id == navId &&
  115. stageIndex == courseType,
  116. }"
  117. >
  118. <div v-if="nav.tool[0].tool != undefined">
  119. <div
  120. class="closeTri1"
  121. v-if="nav.isOpen"
  122. @click="openTask(stageIndex, navIndex, nav.id)"
  123. >
  124. <img src="../../assets/icon/newIcons/bDown.png" alt />
  125. </div>
  126. <div
  127. class="closeTri1"
  128. v-else
  129. @click="openTask(stageIndex, navIndex, nav.id)"
  130. >
  131. <img src="../../assets/icon/newIcons/right.png" alt />
  132. </div>
  133. </div>
  134. <div v-else class="noToolBlue"></div>
  135. <div
  136. @click="openTask(stageIndex, navIndex, nav.id)"
  137. class="navItemList"
  138. :class="{
  139. isItemList:
  140. navIndex == taskCount &&
  141. nav.id == navId &&
  142. stageIndex == courseType,
  143. }"
  144. >
  145. <div>任务{{ navIndex + 1 }}:</div>
  146. <el-tooltip
  147. effect="light"
  148. :content="nav.taskName"
  149. placement="top"
  150. >
  151. <div
  152. :style="{
  153. width:
  154. IsLookOpen && !nav.isLook
  155. ? 'calc(100% - 75px)'
  156. : 'auto',
  157. }"
  158. >
  159. {{ nav.taskName }}
  160. </div>
  161. </el-tooltip>
  162. </div>
  163. </div>
  164. <div
  165. v-if="nav.tool[0].tool != undefined"
  166. class="toolChild"
  167. :class="{ toolActive: nav.isOpen }"
  168. >
  169. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  170. <div
  171. class="gjCss"
  172. :class="{
  173. isGjCss: t.isTool,
  174. }"
  175. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  176. >
  177. <div>工具{{ toolIndex2 + 1 }}:</div>
  178. <div v-if="t.tool == 58">模拟驾驶</div>
  179. <div v-if="t.tool == 59">路径搜索</div>
  180. <div v-if="t.tool == 60">深度学习</div>
  181. <div v-if="t.tool == 10">倒计时</div>
  182. <div v-if="t.tool == 65">挑人</div>
  183. <div v-if="t.tool == 7">思维网格</div>
  184. <div v-if="t.tool == 1">电子白板</div>
  185. <div v-if="t.tool == 52">文档</div>
  186. <div v-if="t.tool == 3">思维导图</div>
  187. <div v-if="t.tool == 48">表格</div>
  188. <div v-if="t.tool == 49">学生分组</div>
  189. <div v-if="t.tool == 4">问卷调查</div>
  190. <div v-if="t.tool == 45">选择题</div>
  191. <div v-if="t.tool == 15">问答</div>
  192. <div v-if="t.tool == 16">作业提交</div>
  193. <div v-if="t.tool == 50">批量上传</div>
  194. <div v-if="t.tool == 41">选择匹配</div>
  195. <div v-if="t.tool == 47">排序</div>
  196. <div v-if="t.tool == 40">个人评价</div>
  197. <div v-if="t.tool == 18">训练平台</div>
  198. <div v-if="t.tool == 21">AIoT Blockly</div>
  199. <div v-if="t.tool == 23">AI Python</div>
  200. <div v-if="t.tool == 24">AI Blockly</div>
  201. <div v-if="t.tool == 32">源码编辑</div>
  202. <div v-if="t.tool == 57">CocoPi</div>
  203. <div v-if="t.tool == 63">海龟编程</div>
  204. <div v-if="t.tool == 28">翻译</div>
  205. <div v-if="t.tool == 31">数字画板</div>
  206. <div v-if="t.tool == 39">GeoGebra</div>
  207. <div v-if="t.tool == 66">公式编辑</div>
  208. <div v-if="t.tool == 67">分子结构</div>
  209. <div v-if="t.tool == 68">时间轴</div>
  210. <div v-if="t.tool == 69">英语写作</div>
  211. <div v-if="t.tool == 25">目标管理</div>
  212. <div v-if="t.tool == 26">课程设计</div>
  213. <div v-if="t.tool == 62">交互视频</div>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  223. <div class="new_topFixed"></div>
  224. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  225. <div class="courseIndex">
  226. <div>任务{{ taskCount + 1 }}</div>
  227. <el-tooltip
  228. effect="light"
  229. :content="
  230. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  231. "
  232. placement="top"
  233. >
  234. <div>
  235. {{
  236. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  237. .task
  238. }}
  239. </div>
  240. </el-tooltip>
  241. </div>
  242. <div class="btnAll">
  243. <div class="btnLeft">
  244. <el-tooltip effect="light" content="刷新" placement="top">
  245. <div class="reBtnIcon" @click="refreshCourse">
  246. <span>刷新</span>
  247. </div>
  248. </el-tooltip>
  249. <el-tooltip effect="light" content="评论" placement="top">
  250. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  251. <span>评论</span>
  252. </div>
  253. </el-tooltip>
  254. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  255. <el-tooltip effect="light" content="录制" placement="top">
  256. <div class="vedioIcon" @click="startRecording">
  257. <span>录制</span>
  258. </div>
  259. </el-tooltip>
  260. </div>
  261. <div v-else-if="tType == 1 || tType == 4">
  262. <el-tooltip effect="light" content="下载" placement="top">
  263. <div class="vedioIcon1" @click="stopRecording">
  264. <span>下载</span>
  265. </div>
  266. </el-tooltip>
  267. </div>
  268. </div>
  269. <div class="btnRight">
  270. <div
  271. class="last"
  272. @click="nextOrpreSteps(0)"
  273. v-if="!(IsFollow && tType == 2)"
  274. @mouseover="isHovered = true"
  275. @mouseout="isHovered = false"
  276. >
  277. <div class="lastImg">
  278. <img
  279. :src="
  280. isHovered
  281. ? require('../../assets/icon/newIcons/whiteLast.png')
  282. : require('../../assets/icon/newIcons/last.png')
  283. "
  284. alt=""
  285. />
  286. </div>
  287. <div class="lastText">上一步</div>
  288. </div>
  289. <div
  290. class="last"
  291. @click="nextOrpreSteps(1)"
  292. v-if="!(IsFollow && tType == 2)"
  293. @mouseover="isHovered1 = true"
  294. @mouseout="isHovered1 = false"
  295. >
  296. <div class="lastText">下一步</div>
  297. <div class="lastImg">
  298. <img
  299. :src="
  300. isHovered1
  301. ? require('../../assets/icon/newIcons/whiteNext.png')
  302. : require('../../assets/icon/newIcons/next.png')
  303. "
  304. alt=""
  305. />
  306. </div>
  307. </div>
  308. <!-- <div
  309. class="last"
  310. @click="juriVisible = true"
  311. v-if="tType == 1"
  312. @mouseover="isHovered2 = true"
  313. @mouseout="isHovered2 = false"
  314. >
  315. <div class="lastImg">
  316. <img
  317. :src="
  318. isHovered2
  319. ? require('../../assets/icon/newIcons/whiteLock.png')
  320. : require('../../assets/icon/newIcons/lock.png')
  321. "
  322. alt=""
  323. />
  324. </div>
  325. <div class="lastText">权限</div>
  326. </div> -->
  327. <div
  328. class="returnBtn1 returnIcon"
  329. @click.stop="
  330. goTo(
  331. '/courseDetail?userid=' +
  332. userid +
  333. '&oid=' +
  334. oid +
  335. '&org=' +
  336. org +
  337. '&cid=' +
  338. classId +
  339. '&courseId=' +
  340. id +
  341. '&tType=' +
  342. tType +
  343. '&screenType=' +
  344. screenType
  345. )
  346. "
  347. >
  348. <div class="lastImg">
  349. <img src="../../assets/icon/newIcon/return.png" alt="" />
  350. </div>
  351. <div class="lastText" style="color: #000">返回</div>
  352. </div>
  353. </div>
  354. <!-- <div
  355. class="returnBtn lockIcon"
  356. @click="juriVisible = true"
  357. v-if="tType == 1"
  358. >
  359. 权限
  360. </div>
  361. <div
  362. class="returnBtn vedioIcon"
  363. @click="startRecording"
  364. v-if="!videoStart && (tType == 1 || tType == 4)"
  365. >
  366. 录制
  367. </div>
  368. <div
  369. class="returnBtn"
  370. @click="stopRecording"
  371. v-else-if="tType == 1 || tType == 4"
  372. style="background: #ee5255"
  373. >
  374. 下载
  375. </div>
  376. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  377. 评论
  378. </div>
  379. <div
  380. class="returnBtn"
  381. @click="nextOrpreSteps(0)"
  382. v-if="!(IsFollow && tType == 2)"
  383. >
  384. 上一步
  385. </div>
  386. <div
  387. class="returnBtn"
  388. @click="nextOrpreSteps(1)"
  389. v-if="!(IsFollow && tType == 2)"
  390. >
  391. 下一步
  392. </div>
  393. <div class="returnBtn" @click="refreshCourse">刷新</div>
  394. <div
  395. class="returnBtn returnIcon"
  396. @click.stop="
  397. goTo(
  398. '/courseDetail?userid=' +
  399. userid +
  400. '&oid=' +
  401. oid +
  402. '&org=' +
  403. org +
  404. '&cid=' +
  405. classId +
  406. '&courseId=' +
  407. id +
  408. '&tType=' +
  409. tType +
  410. '&screenType=' +
  411. screenType
  412. )
  413. "
  414. >
  415. 返回
  416. </div> -->
  417. </div>
  418. </div>
  419. <div
  420. class="isNoMessage"
  421. v-if="
  422. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  423. .chapterData.length == 0 &&
  424. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  425. .toolChoose[0].tool.length == 0 &&
  426. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  427. .taskDetail == '' &&
  428. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  429. .eList &&
  430. !(
  431. courseDetail.userid == userid ||
  432. (courseDetail.course_teacher &&
  433. courseDetail.course_teacher.indexOf(userid) != -1)
  434. )
  435. "
  436. >
  437. <img src="../../assets/icon/isNoMessage.png" alt />
  438. </div>
  439. <div class="study_top" :class="{ pzClass: pzDialog }">
  440. <div
  441. class="vedioBox"
  442. v-if="
  443. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  444. .taskDetail != '' ||
  445. vChapterData[0].length > 0 ||
  446. fileC[0].length > 0
  447. "
  448. style="border-radius: 0 0 20px 20px"
  449. >
  450. <div
  451. class="taskBox"
  452. v-if="
  453. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  454. .taskDetail != ''
  455. "
  456. >
  457. <div
  458. style="
  459. display: flex;
  460. flex-wrap: nowrap;
  461. flex-direction: column;
  462. position: relative;
  463. "
  464. >
  465. <div
  466. style="
  467. padding: 15px 0;
  468. line-height: 29px;
  469. font-size: 18px;
  470. color: #0e1e33;
  471. "
  472. class="cont"
  473. v-if="
  474. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  475. .taskDetail != ''
  476. "
  477. v-html="
  478. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  479. .taskDetail
  480. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  481. taskCount
  482. ].taskDetail
  483. : '暂无描述'
  484. "
  485. ></div>
  486. </div>
  487. </div>
  488. <div
  489. class="student_head"
  490. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  491. >
  492. <div class="vedioTaskBox">
  493. <div
  494. :class="
  495. contentDialog == false
  496. ? 'box_course isContentCss'
  497. : 'box_course'
  498. "
  499. v-if="
  500. vChapterData.length > 0 &&
  501. vChapterData[0] &&
  502. showType !== ''
  503. "
  504. >
  505. <div class="wheel" style="height: auto" v-if="showType === 0">
  506. <div
  507. class="workd_media"
  508. style="height: 650px; width: calc(100% - 50px)"
  509. >
  510. <video-player
  511. class="video-player vjs-custom-skin"
  512. :class="contentDialog == false ? 'isAllWidth' : ''"
  513. :playsinline="true"
  514. :options="playerO[0]"
  515. @play="onPlayerPlay($event)"
  516. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  517. ></video-player>
  518. </div>
  519. </div>
  520. <div
  521. class="wheel"
  522. v-if="showType == 1"
  523. style="
  524. box-shadow: 0 0 6px 1px #f2f2f2;
  525. width: 95%;
  526. margin: 0 auto;
  527. background: #f1f1f1;
  528. "
  529. >
  530. <div class="title">查看文档</div>
  531. <el-form class="textBox">
  532. <el-form-item class="textTitle">
  533. <div style="font-size: 22px">
  534. {{ text.name }}
  535. </div>
  536. </el-form-item>
  537. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  538. <div v-html="text.url" class="textContent cont"></div>
  539. </el-form>
  540. </div>
  541. <div
  542. class="wheel"
  543. v-if="
  544. pptImgUrl1.indexOf(
  545. 'https://view.officeapps.live.com/op/view.aspx?src='
  546. ) != -1 && showType == 2
  547. "
  548. style="width: 95%; margin: 0 auto"
  549. >
  550. <iframe
  551. style="width: 100%; height: 100%; border: none"
  552. :src="pptImgUrl1"
  553. ></iframe>
  554. </div>
  555. <div
  556. class="wheel"
  557. v-else-if="showType == 2"
  558. style="width: 95%; margin: 0 auto"
  559. >
  560. <iframe
  561. style="width: 100%; height: 100%; border: none"
  562. security="restricted"
  563. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  564. :src="pptImgUrl1"
  565. ></iframe>
  566. </div>
  567. <div
  568. class="wheel"
  569. v-if="showType == 3"
  570. style="width: 95%; margin: 0 auto"
  571. >
  572. <pdf
  573. :pdfUrl="pptImgUrl1"
  574. style="width: 100%; height: 100%; overflow: auto"
  575. ></pdf>
  576. </div>
  577. <div
  578. class="wheel"
  579. v-if="showType == 4"
  580. style="width: 95%; margin: 0 auto"
  581. >
  582. <el-image
  583. :src="pptImgUrl1"
  584. fit="contain"
  585. style="width: 100%; height: 100%; cursor: pointer"
  586. @click="previewImg(pptImgUrl1)"
  587. ></el-image>
  588. </div>
  589. </div>
  590. <div
  591. class="pButton"
  592. style="position: absolute; right: 20px; top: 0; z-index: 998"
  593. v-if="!contentDialog"
  594. @click="setContent(true)"
  595. >
  596. <!-- 批 -->
  597. <img
  598. src="../../assets/icon/newIcons/isLeft.png"
  599. style="width: 45px"
  600. alt=""
  601. />
  602. </div>
  603. <div
  604. v-if="contentDialog == true"
  605. :style="{
  606. width:
  607. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  608. showType === ''
  609. ? 'calc(100%)'
  610. : '300px',
  611. margin:
  612. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  613. showType === ''
  614. ? '0 15px'
  615. : '0 15px 0 0',
  616. }"
  617. >
  618. <div
  619. class="vedioList"
  620. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  621. style="height: 650px"
  622. >
  623. <div class="navCorOpenBox">
  624. <div class="navTitile">内容列表:</div>
  625. <div class="navCorOpen" @click="setContent(false)">
  626. <img
  627. src="../../assets/icon/newIcons/isRight.png"
  628. alt=""
  629. />
  630. </div>
  631. </div>
  632. <div class="navBox">
  633. <div
  634. v-show="
  635. vChapterData[0].length > 0 || fileC[0].length > 0
  636. "
  637. style="padding: 10px 0 25px 0"
  638. >
  639. <div
  640. class="vedioTimeBox"
  641. v-for="(vitem, vindex) in vChapterData[0]"
  642. :key="vindex + '1'"
  643. >
  644. <div class="navListItem" v-if="vitem.type == 2">
  645. <div
  646. @click="lookVedio(vitem.url, vindex)"
  647. class="navText"
  648. :class="isClickNav == vindex ? 'isClickNav' : ''"
  649. >
  650. <span v-if="vitem.text">{{ vitem.text }}-</span
  651. >{{ vitem.name }}
  652. </div>
  653. <div class="downIcon" @click="downloadFile2(vitem)">
  654. <img
  655. src="../../assets/icon/newIcon/down.png"
  656. alt
  657. />
  658. </div>
  659. </div>
  660. <div class="navListItem" v-if="vitem.type == 6">
  661. <div
  662. @click="lookText(0, vindex)"
  663. class="navText"
  664. :class="isClickNav == vindex ? 'isClickNav' : ''"
  665. >
  666. {{ vitem.name }}.doc
  667. </div>
  668. <div
  669. class="downIcon"
  670. @click="checkFileFull1(vitem.type, vitem)"
  671. >
  672. <img
  673. src="../../assets/icon/newIcon/allScreen.png"
  674. alt
  675. />
  676. </div>
  677. </div>
  678. <div
  679. class="navListItem"
  680. v-if="vitem.type == 8 || vitem.type == 14"
  681. >
  682. <div
  683. @click="doUrl(vitem.url, vindex)"
  684. class="navText"
  685. :class="isClickNav == vindex ? 'isClickNav' : ''"
  686. >
  687. {{ vitem.title ? vitem.title : vitem.url }}
  688. </div>
  689. <div
  690. class="downIcon"
  691. @click="checkFileFull1(vitem.type, vitem)"
  692. >
  693. <img
  694. src="../../assets/icon/newIcon/allScreen.png"
  695. alt
  696. />
  697. </div>
  698. </div>
  699. <div class="navListItem" v-if="vitem.type == 3">
  700. <div
  701. @click="downFile(vitem, vindex)"
  702. class="navText"
  703. :class="isClickNav == vindex ? 'isClickNav' : ''"
  704. >
  705. <span v-if="vitem.text">{{ vitem.text }}-</span
  706. >{{ vitem.name }}
  707. </div>
  708. <div class="downIcon" @click="downloadFile2(vitem)">
  709. <img
  710. src="../../assets/icon/newIcon/down.png"
  711. alt
  712. />
  713. </div>
  714. <div
  715. class="downIcon"
  716. @click="checkFileFull1(vitem.type, vitem)"
  717. >
  718. <img
  719. src="../../assets/icon/newIcon/allScreen.png"
  720. alt
  721. />
  722. </div>
  723. </div>
  724. <div class="navListItem" v-if="vitem.type == 12">
  725. <div class="navText" @click="downloadFile2(vitem)">
  726. <span v-if="vitem.text">{{ vitem.text }}-</span
  727. >{{ vitem.name }}
  728. </div>
  729. <div class="downIcon" @click="downloadFile2(vitem)">
  730. <img
  731. src="../../assets/icon/newIcon/down.png"
  732. alt
  733. />
  734. </div>
  735. <div
  736. class="downIcon"
  737. @click="checkFileFull1(vitem.type, vitem)"
  738. >
  739. <img
  740. src="../../assets/icon/newIcon/allScreen.png"
  741. alt
  742. />
  743. </div>
  744. </div>
  745. <div class="navListItem" v-if="vitem.type == 13">
  746. <div
  747. class="navText"
  748. @click="checkPhoto(vitem, vindex)"
  749. :class="isClickNav == vindex ? 'isClickNav' : ''"
  750. >
  751. {{ vitem.name }}
  752. </div>
  753. <div class="downIcon" @click="downloadFile2(vitem)">
  754. <img
  755. src="../../assets/icon/newIcon/down.png"
  756. alt
  757. />
  758. </div>
  759. </div>
  760. </div>
  761. <div class="fileC_box" v-if="fileC[0].length > 0">
  762. <div class="fileC_title">以下文件不支持预览</div>
  763. <div
  764. class="vedioTimeBox"
  765. v-for="(vitem, vindex) in fileC[0]"
  766. :key="vindex + '1'"
  767. >
  768. <div class="navListItem" v-if="vitem.type == 12">
  769. <div class="navText" style="color: #acb4bf">
  770. <span v-if="vitem.text">{{ vitem.text }}-</span
  771. >{{ vitem.name }}
  772. </div>
  773. <div
  774. class="downIcon"
  775. @click="downloadFile2(vitem)"
  776. >
  777. <img
  778. src="../../assets/icon/newIcon/down.png"
  779. alt
  780. />
  781. </div>
  782. </div>
  783. </div>
  784. </div>
  785. </div>
  786. </div>
  787. </div>
  788. </div>
  789. </div>
  790. <div style="width: calc(100% - 315px)">
  791. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  792. <!-- <el-button
  793. type="primary"
  794. class="newButton"
  795. @click="checkFileFull(showType, pptImgUrl1)"
  796. >全屏查看</el-button
  797. >
  798. <el-button
  799. type="primary"
  800. class="newButton"
  801. @click="downloadFile(pptImgUrl1)"
  802. v-if="showType != 2"
  803. >文件下载</el-button
  804. > -->
  805. <el-button
  806. v-if="
  807. showType == 2 &&
  808. pptImgUrl1.indexOf(
  809. 'https://view.officeapps.live.com/op/view.aspx?src='
  810. ) == -1
  811. "
  812. type="primary"
  813. class="newButton"
  814. @click="openLine(pptImgUrl1)"
  815. >打开链接
  816. </el-button>
  817. </div>
  818. <!-- <div
  819. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  820. v-if="showType == 1"
  821. >
  822. <el-button
  823. type="primary"
  824. class="newButton"
  825. @click="checkFileFull(showType, text)"
  826. >全屏查看</el-button
  827. >
  828. </div> -->
  829. </div>
  830. </div>
  831. </div>
  832. <div class="student_body" v-resize="resize">
  833. <div
  834. class="vedioBox"
  835. :style="{
  836. borderRadius:
  837. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  838. .taskDetail == '' &&
  839. vChapterData[taskCount].length == 0 &&
  840. fileC[taskCount].length == 0
  841. ? '0 0 20px 20px'
  842. : '20px',
  843. }"
  844. v-if="
  845. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  846. .toolChoose[0].tool &&
  847. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  848. .toolChoose[0].tool.length > 0
  849. "
  850. >
  851. <div
  852. class="toolHeng2"
  853. style="position: relative"
  854. v-if="
  855. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  856. .toolChoose[0].tool &&
  857. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  858. .toolChoose[0].tool.length &&
  859. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  860. .toolChoose[0].tool.length > 0
  861. "
  862. >
  863. <div class="workNav">工作区</div>
  864. <div
  865. class="filebox"
  866. style="flex-wrap: nowrap"
  867. v-for="(tool, toolIndex) in chapInfoList[courseType]
  868. .chapterInfo[0].taskJson[taskCount].toolChoose"
  869. :key="toolIndex"
  870. >
  871. <div class="bzBox">
  872. <div class="yCss"></div>
  873. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  874. 步骤{{ toolIndex + 1 }}
  875. </div>
  876. <div
  877. v-if="timeWorkList[toolIndex].length > 0"
  878. style="margin: 0 0 0 10px"
  879. >
  880. {{
  881. timeWorkList[toolIndex][0].time
  882. ? "时间:" + timeWorkList[toolIndex][0].time
  883. : ""
  884. }}
  885. </div>
  886. </div>
  887. <div class="toolBox">
  888. <div>
  889. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  890. :key="indexTool"-->
  891. <!-- <div class="iframeBox">
  892. <div
  893. class="addPoint isBorder"
  894. v-for="(tooC, toolCIndex) in tool.tool"
  895. :key="toolCIndex"
  896. >
  897. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  898. <div
  899. class="iframeName"
  900. >
  901. 电子白板
  902. </div>
  903. <iframe
  904. src="https://iwb.cocorobo.cn/"
  905. ref="whiteBoard"
  906. ></iframe>
  907. </div>
  908. </div>
  909. </div>-->
  910. <div class="noiframeBox">
  911. <div
  912. class="addPoint"
  913. v-for="(tooC, toolCIndex) in tool.tool"
  914. :key="toolCIndex"
  915. >
  916. <div v-if="tooC == 1">
  917. <img
  918. src="../../assets/icon/secondToolList/whiteBoard.png"
  919. alt
  920. @click="addTools(tooC, toolIndex, taskCount)"
  921. />
  922. <div style="margin: 5px 0">电子白板</div>
  923. </div>
  924. <div v-if="tooC == 3">
  925. <img
  926. src="../../assets/icon/secondToolList/mindMapping.png"
  927. alt
  928. @click="addTools(tooC, toolIndex, taskCount)"
  929. />
  930. <div style="margin: 5px 0">思维导图</div>
  931. </div>
  932. <div v-if="tooC == 6">
  933. <img
  934. src="../../assets/icon/secondToolList/doc.png"
  935. alt
  936. @click="addTools(tooC, toolIndex, taskCount)"
  937. />
  938. <div style="margin: 5px 0">协同文档</div>
  939. </div>
  940. <div v-if="tooC == 7">
  941. <img
  942. src="../../assets/icon/secondToolList/mindNetwork.png"
  943. alt
  944. @click="addTools(tooC, toolIndex, taskCount)"
  945. />
  946. <div style="margin: 5px 0">思维网格</div>
  947. </div>
  948. <div v-if="tooC == 8">
  949. <img
  950. src="../../assets/icon/secondToolList/library.png"
  951. alt
  952. @click="addTools(tooC, toolIndex, taskCount)"
  953. />
  954. <div style="margin: 5px 0">素材库</div>
  955. </div>
  956. <div v-if="tooC == 17">
  957. <img
  958. src="../../assets/icon/secondToolList/library.png"
  959. alt
  960. @click="addTools(tooC, toolIndex, taskCount)"
  961. />
  962. <div style="margin: 5px 0">学习资料</div>
  963. </div>
  964. <div v-if="tooC == 2">
  965. <img
  966. @click="addTools(tooC, toolIndex, taskCount)"
  967. src="../../assets/icon/secondToolList/note.png"
  968. alt
  969. />
  970. <div style="margin: 5px 0">便签</div>
  971. </div>
  972. <div v-if="tooC == 4">
  973. <img
  974. @click="addTools(tooC, toolIndex, taskCount)"
  975. src="../../assets/icon/thirdToolList/ask.png"
  976. alt
  977. />
  978. <div style="margin: 5px 0">问卷调查</div>
  979. </div>
  980. <div v-if="tooC == 45">
  981. <img
  982. @click="addTools(tooC, toolIndex, taskCount)"
  983. src="../../assets/icon/thirdToolList/choose.png"
  984. alt
  985. />
  986. <div style="margin: 5px 0">选择题</div>
  987. </div>
  988. <!-- <div v-if="tooC == 5">
  989. <img
  990. @click="addTools(tooC, toolIndex, taskCount)"
  991. src="../../assets/icon/thirdToolList/score.png"
  992. alt
  993. />
  994. <div style="margin: 5px 0">量规评分</div>
  995. </div> -->
  996. <div v-if="tooC == 10">
  997. <img
  998. @click="addTools(tooC, toolIndex, taskCount)"
  999. src="../../assets/icon/thirdToolList/time.png"
  1000. alt
  1001. />
  1002. <div style="margin: 5px 0">倒计时</div>
  1003. </div>
  1004. <div v-if="tooC == 15">
  1005. <img
  1006. @click="addTools(tooC, toolIndex, taskCount)"
  1007. src="../../assets/icon/thirdToolList/answer.png"
  1008. alt
  1009. />
  1010. <div style="margin: 5px 0">问答</div>
  1011. </div>
  1012. <div v-if="tooC == 26">
  1013. <img
  1014. @click="addTools(tooC, toolIndex, taskCount)"
  1015. src="../../assets/icon/thirdToolList/courseDesign.png"
  1016. alt
  1017. />
  1018. <div style="margin: 5px 0">课程设计</div>
  1019. </div>
  1020. <div v-if="tooC == 18">
  1021. <img
  1022. @click="addTools(tooC, toolIndex, taskCount)"
  1023. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1024. alt
  1025. />
  1026. <div style="margin: 5px 0">训练服务器</div>
  1027. </div>
  1028. <div v-if="tooC == 16">
  1029. <img
  1030. @click="addTools(tooC, toolIndex, taskCount)"
  1031. src="../../assets/icon/thirdToolList/work.png"
  1032. alt
  1033. />
  1034. <div style="margin: 5px 0">作业提交</div>
  1035. </div>
  1036. <div v-if="tooC == 50">
  1037. <img
  1038. @click="addTools(tooC, toolIndex, taskCount)"
  1039. src="../../assets/icon/thirdToolList/plwork.png"
  1040. alt
  1041. />
  1042. <div style="margin: 5px 0">批量上传</div>
  1043. </div>
  1044. <div v-if="tooC == 21">
  1045. <img
  1046. @click="addTools(tooC, toolIndex, taskCount)"
  1047. src="../../assets/icon/fourthToolList/program.png"
  1048. alt
  1049. />
  1050. <div style="margin: 5px 0">AIoT Blockly</div>
  1051. </div>
  1052. <!-- <div v-if="tooC == 22">
  1053. <img
  1054. @click="addTools(tooC, toolIndex, taskCount)"
  1055. src="../../assets/icon/fourthToolList/program.png"
  1056. alt
  1057. />
  1058. <div style="margin: 5px 0">AI体验</div>
  1059. </div> -->
  1060. <div v-if="tooC == 23">
  1061. <img
  1062. @click="addTools(tooC, toolIndex, taskCount)"
  1063. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1064. alt
  1065. />
  1066. <div style="margin: 5px 0">AI Python</div>
  1067. </div>
  1068. <div v-if="tooC == 24">
  1069. <img
  1070. @click="addTools(tooC, toolIndex, taskCount)"
  1071. src="../../assets/icon/fourthToolList/AIprogram.png"
  1072. alt
  1073. />
  1074. <div style="margin: 5px 0">AI Blockly</div>
  1075. </div>
  1076. <div v-if="tooC == 25">
  1077. <img
  1078. @click="addTools(tooC, toolIndex, taskCount)"
  1079. src="../../assets/icon/thirdToolList/evalua.png"
  1080. alt
  1081. />
  1082. <div style="margin: 5px 0">目标管理</div>
  1083. </div>
  1084. <div v-if="tooC == 31">
  1085. <img
  1086. @click="addTools(tooC, toolIndex, taskCount)"
  1087. src="../../assets/icon/secondToolList/networkPanel.png"
  1088. alt
  1089. />
  1090. <div style="margin: 5px 0">数学画板</div>
  1091. </div>
  1092. <div v-if="tooC == 28">
  1093. <img
  1094. @click="addTools(tooC, toolIndex, taskCount)"
  1095. src="../../assets/icon/secondToolList/translation.png"
  1096. alt
  1097. />
  1098. <div style="margin: 5px 0">翻译</div>
  1099. </div>
  1100. <div v-if="tooC == 37">
  1101. <img
  1102. @click="addTools(tooC, toolIndex, taskCount)"
  1103. src="../../assets/icon/secondToolList/mohe.png"
  1104. alt
  1105. />
  1106. <div style="margin: 5px 0">魔盒识字</div>
  1107. </div>
  1108. <div v-if="tooC == 38">
  1109. <img
  1110. @click="addTools(tooC, toolIndex, taskCount)"
  1111. src="../../assets/icon/secondToolList/24game.png"
  1112. alt
  1113. />
  1114. <div style="margin: 5px 0">24点</div>
  1115. </div>
  1116. <div v-if="tooC == 39">
  1117. <img
  1118. @click="addTools(tooC, toolIndex, taskCount)"
  1119. src="../../assets/icon/secondToolList/GeoGebra.png"
  1120. alt
  1121. />
  1122. <div style="margin: 5px 0">GeoGebra</div>
  1123. </div>
  1124. <div v-if="tooC == 32">
  1125. <img
  1126. @click="addTools(tooC, toolIndex, taskCount)"
  1127. src="../../assets/icon/thirdToolList/code.png"
  1128. alt
  1129. />
  1130. <div style="margin: 5px 0">源码编辑</div>
  1131. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1132. style="position: absolute;left: 110px;bottom: 30px;">
  1133. 上传文件
  1134. <input type="file" accept="*" style="display: none"
  1135. @change="beforeUpload1($event, 7, toolIndex)" />
  1136. </div> -->
  1137. </div>
  1138. <div v-if="tooC == 40">
  1139. <img
  1140. @click="addTools(tooC, toolIndex, taskCount)"
  1141. src="../../assets/icon/secondToolList/eval.png"
  1142. alt
  1143. />
  1144. <div style="margin: 5px 0">个人评价</div>
  1145. </div>
  1146. <div v-if="tooC == 41">
  1147. <img
  1148. @click="addTools(tooC, toolIndex, taskCount)"
  1149. src="../../assets/icon/thirdToolList/select.png"
  1150. alt
  1151. />
  1152. <div style="margin: 5px 0">选择匹配</div>
  1153. </div>
  1154. <div v-if="tooC == 44">
  1155. <img
  1156. @click="addTools(tooC, toolIndex, taskCount)"
  1157. src="../../assets/icon/thirdToolList/hanClass.png"
  1158. alt
  1159. />
  1160. <div style="margin: 5px 0">汉字宫</div>
  1161. </div>
  1162. <div v-if="tooC == 47">
  1163. <img
  1164. @click="addTools(tooC, toolIndex, taskCount)"
  1165. src="../../assets/icon/fourthToolList/conSentences.png"
  1166. alt
  1167. />
  1168. <div style="margin: 5px 0">排序</div>
  1169. </div>
  1170. <div v-if="tooC == 48">
  1171. <img
  1172. @click="addTools(tooC, toolIndex, taskCount)"
  1173. src="../../assets/icon/fourthToolList/table.png"
  1174. alt
  1175. />
  1176. <div style="margin: 5px 0">表格</div>
  1177. </div>
  1178. <div v-if="tooC == 52">
  1179. <img
  1180. @click="addTools(tooC, toolIndex, taskCount)"
  1181. src="../../assets/icon/fourthToolList/text.png"
  1182. alt
  1183. />
  1184. <div style="margin: 5px 0">文档</div>
  1185. </div>
  1186. <div v-if="tooC == 49">
  1187. <img
  1188. @click="addTools(tooC, toolIndex, taskCount)"
  1189. src="../../assets/icon/fourthToolList/group.png"
  1190. alt
  1191. />
  1192. <div style="margin: 5px 0">学生分组</div>
  1193. </div>
  1194. <div v-if="tooC == 57">
  1195. <img
  1196. @click="addTools(tooC, toolIndex, taskCount)"
  1197. src="../../assets/icon/fourthToolList/cocopi.png"
  1198. alt
  1199. />
  1200. <div style="margin: 5px 0">CocoPi</div>
  1201. </div>
  1202. <div v-if="tooC == 58">
  1203. <img
  1204. @click="addTools(tooC, toolIndex, taskCount)"
  1205. src="../../assets/icon/fourthToolList/car.png"
  1206. alt
  1207. />
  1208. <div style="margin: 5px 0">模拟驾驶</div>
  1209. </div>
  1210. <div v-if="tooC == 59">
  1211. <img
  1212. @click="addTools(tooC, toolIndex, taskCount)"
  1213. src="../../assets/icon/fourthToolList/lineSearch.png"
  1214. alt
  1215. />
  1216. <div style="margin: 5px 0">路径搜索</div>
  1217. </div>
  1218. <div v-if="tooC == 60">
  1219. <img
  1220. @click="addTools(tooC, toolIndex, taskCount)"
  1221. src="../../assets/icon/fourthToolList/deepLearning.png"
  1222. alt
  1223. />
  1224. <div style="margin: 5px 0">深度学习</div>
  1225. </div>
  1226. <div v-if="tooC == 61">
  1227. <img
  1228. @click="addTools(tooC, toolIndex, taskCount)"
  1229. src="../../assets/icon/fourthToolList/allHistory.png"
  1230. alt
  1231. />
  1232. <div style="margin: 5px 0">全历史</div>
  1233. </div>
  1234. <div v-if="tooC == 62">
  1235. <img
  1236. @click="addTools(tooC, toolIndex, taskCount)"
  1237. src="../../assets/icon/fourthToolList/interVideo.png"
  1238. alt
  1239. />
  1240. <div style="margin: 5px 0">交互视频</div>
  1241. </div>
  1242. <div v-if="tooC == 63">
  1243. <img
  1244. @click="addTools(tooC, toolIndex, taskCount)"
  1245. src="../../assets/icon/fourthToolList/Wood.png"
  1246. alt
  1247. />
  1248. <div style="margin: 5px 0">海龟编程</div>
  1249. </div>
  1250. <div v-if="tooC == 65">
  1251. <img
  1252. @click="addTools(tooC, toolIndex, taskCount)"
  1253. src="../../assets/icon/firstToolList/pickPeople.png"
  1254. alt
  1255. />
  1256. <div style="margin: 5px 0">挑人</div>
  1257. </div>
  1258. <div v-if="tooC == 66">
  1259. <img
  1260. @click="addTools(tooC, toolIndex, taskCount)"
  1261. src="../../assets/icon/secondToolList/formulaEdi.png"
  1262. alt
  1263. />
  1264. <div style="margin: 5px 0">公式编辑</div>
  1265. </div>
  1266. <div v-if="tooC == 67">
  1267. <img
  1268. @click="addTools(tooC, toolIndex, taskCount)"
  1269. src="../../assets/icon/secondToolList/molStr.png"
  1270. alt
  1271. />
  1272. <div style="margin: 5px 0">分子结构</div>
  1273. </div>
  1274. <div v-if="tooC == 68">
  1275. <img
  1276. @click="addTools(tooC, toolIndex, taskCount)"
  1277. src="../../assets/icon/secondToolList/timeAxis.png"
  1278. alt
  1279. />
  1280. <div style="margin: 5px 0">时间轴</div>
  1281. </div>
  1282. <div v-if="tooC == 69">
  1283. <img
  1284. @click="addTools(tooC, toolIndex, taskCount)"
  1285. src="../../assets/icon/secondToolList/timeAxis.png"
  1286. alt
  1287. />
  1288. <div style="margin: 5px 0">英语写作</div>
  1289. </div>
  1290. </div>
  1291. </div>
  1292. </div>
  1293. <div class="tooldetail" v-if="tool.toolDetail != ''">
  1294. <!-- <div class="toolTitle">工具描述</div> -->
  1295. <div
  1296. v-html="contentConvent(tool.toolDetail)"
  1297. v-if="toolDetailIndex != toolIndex"
  1298. @click.stop="updateToolDetail(toolIndex)"
  1299. ></div>
  1300. <div v-else @click.stop="">
  1301. <el-input
  1302. type="textarea"
  1303. :rows="3"
  1304. resize="none"
  1305. v-model="updateToolDetailInner"
  1306. placeholder="请输入任务描述"
  1307. ></el-input>
  1308. </div>
  1309. </div>
  1310. <el-button
  1311. type="primary"
  1312. v-if="tool.tool[0] == 32"
  1313. style="position: absolute; right: 30px; top: 30px"
  1314. @click="addImg($event)"
  1315. >上传作业<input
  1316. type="file"
  1317. accept="*"
  1318. style="display: none"
  1319. @change="beforeUpload1($event, 7, toolIndex)"
  1320. /></el-button>
  1321. <el-button
  1322. type="primary"
  1323. v-if="tool.tool[0] == 15"
  1324. style="position: absolute; right: 30px; top: 30px"
  1325. @click="openWordCloud(toolIndex)"
  1326. >生成词云</el-button
  1327. >
  1328. <el-button
  1329. type="primary"
  1330. v-if="
  1331. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1332. "
  1333. style="position: absolute; right: 30px; top: 30px"
  1334. @click="uploadWorks(toolIndex)"
  1335. >导出作业</el-button
  1336. >
  1337. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1338. position: absolute;
  1339. right: 30px;
  1340. transform: translateY(-130%);
  1341. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1342. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1343. </div>
  1344. <div
  1345. v-if="
  1346. tType &&
  1347. tType == 2 &&
  1348. !sIsOpen &&
  1349. tool.tool.indexOf(16) != -1
  1350. "
  1351. class="worksBox"
  1352. >
  1353. <div
  1354. class="zuoyeYulan"
  1355. v-if="workStudent[toolIndex].length > 0"
  1356. >
  1357. <span class="worksTitle">作业预览</span>
  1358. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1359. </div>
  1360. <div
  1361. class="worksDetailBox"
  1362. v-if="workStudent[toolIndex].length > 0"
  1363. >
  1364. <div
  1365. class="works"
  1366. style="
  1367. width: 200px;
  1368. height: 140px;
  1369. margin: 10px 10px 10px 0;
  1370. box-shadow: 0 0 6px 1px #dfdada;
  1371. "
  1372. v-for="(w, wIndex) in workStudent[toolIndex]"
  1373. :key="wIndex"
  1374. >
  1375. <div class="workImg" v-if="w.type == 0">
  1376. <img
  1377. :src="w.works"
  1378. @click="previewImg(w.works)"
  1379. alt
  1380. />
  1381. <div
  1382. class="answerScore"
  1383. v-if="w.score"
  1384. @click.stop="openScore(w)"
  1385. :class="{
  1386. rightW:
  1387. w.userid == userid || tType == 1 || tType == 4,
  1388. }"
  1389. >
  1390. {{ JSON.parse(w.score).wScore }}分
  1391. </div>
  1392. <div
  1393. class="answerScore"
  1394. @click.stop="openScore(w)"
  1395. v-else-if="courseDetail.userid == userid"
  1396. :class="{
  1397. rightW:
  1398. w.userid == userid || tType == 1 || tType == 4,
  1399. }"
  1400. >
  1401. 评分
  1402. </div>
  1403. <img
  1404. class="deleteImg"
  1405. src="../../assets/deleteworks.png"
  1406. v-if="
  1407. w.userid == userid || tType == 1 || tType == 4
  1408. "
  1409. @click.stop="deleteWorks(w.wid)"
  1410. alt
  1411. />
  1412. </div>
  1413. <div class="workImg" v-if="w.type == 1">
  1414. <img :src="word" @click="openFile(w.works)" alt />
  1415. <div
  1416. class="answerScore"
  1417. v-if="w.score"
  1418. @click.stop="openScore(w)"
  1419. :class="{
  1420. rightW:
  1421. w.userid == userid || tType == 1 || tType == 4,
  1422. }"
  1423. >
  1424. {{ JSON.parse(w.score).wScore }}分
  1425. </div>
  1426. <div
  1427. class="answerScore"
  1428. @click.stop="openScore(w)"
  1429. v-else-if="courseDetail.userid == userid"
  1430. :class="{
  1431. rightW:
  1432. w.userid == userid || tType == 1 || tType == 4,
  1433. }"
  1434. >
  1435. 评分
  1436. </div>
  1437. <img
  1438. class="deleteImg"
  1439. src="../../assets/deleteworks.png"
  1440. v-if="
  1441. w.userid == userid || tType == 1 || tType == 4
  1442. "
  1443. @click.stop="deleteWorks(w.wid)"
  1444. alt
  1445. />
  1446. </div>
  1447. <div class="workImg" v-if="w.type == 3">
  1448. <img
  1449. style="cursor: pointer"
  1450. :src="video"
  1451. @click="openVideo(w)"
  1452. alt
  1453. />
  1454. <div
  1455. class="answerScore"
  1456. v-if="w.score"
  1457. @click.stop="openScore(w)"
  1458. :class="{
  1459. rightW:
  1460. w.userid == userid || tType == 1 || tType == 4,
  1461. }"
  1462. >
  1463. {{ JSON.parse(w.score).wScore }}分
  1464. </div>
  1465. <div
  1466. class="answerScore"
  1467. @click.stop="openScore(w)"
  1468. v-else-if="courseDetail.userid == userid"
  1469. :class="{
  1470. rightW:
  1471. w.userid == userid || tType == 1 || tType == 4,
  1472. }"
  1473. >
  1474. 评分
  1475. </div>
  1476. <img
  1477. class="deleteImg"
  1478. src="../../assets/deleteworks.png"
  1479. v-if="
  1480. w.userid == userid || tType == 1 || tType == 4
  1481. "
  1482. @click.stop="deleteWorks(w.wid)"
  1483. alt
  1484. />
  1485. </div>
  1486. <div class="workImg" v-if="w.type == 12">
  1487. <img
  1488. style="cursor: pointer"
  1489. :src="word2"
  1490. @click="downloadFile(w.works)"
  1491. alt
  1492. />
  1493. <div
  1494. class="answerScore"
  1495. v-if="w.score"
  1496. @click.stop="openScore(w)"
  1497. :class="{
  1498. rightW:
  1499. w.userid == userid || tType == 1 || tType == 4,
  1500. }"
  1501. >
  1502. {{ JSON.parse(w.score).wScore }}分
  1503. </div>
  1504. <div
  1505. class="answerScore"
  1506. @click.stop="openScore(w)"
  1507. v-else-if="courseDetail.userid == userid"
  1508. :class="{
  1509. rightW:
  1510. w.userid == userid || tType == 1 || tType == 4,
  1511. }"
  1512. >
  1513. 评分
  1514. </div>
  1515. <img
  1516. class="deleteImg"
  1517. src="../../assets/deleteworks.png"
  1518. v-if="
  1519. w.userid == userid || tType == 1 || tType == 4
  1520. "
  1521. @click.stop="deleteWorks(w.wid)"
  1522. alt
  1523. />
  1524. </div>
  1525. <div class="worksName">
  1526. <div>{{ w.sName }}</div>
  1527. </div>
  1528. </div>
  1529. </div>
  1530. </div>
  1531. <div
  1532. v-if="
  1533. tType &&
  1534. tType == 2 &&
  1535. !sIsOpen &&
  1536. tool.tool.indexOf(32) != -1
  1537. "
  1538. class="worksBox"
  1539. >
  1540. <div
  1541. class="zuoyeYulan"
  1542. v-if="workStudent[toolIndex].length > 0"
  1543. >
  1544. <span class="worksTitle">作业预览</span>
  1545. </div>
  1546. <div
  1547. class="worksDetailBox"
  1548. v-if="workStudent[toolIndex].length > 0"
  1549. >
  1550. <div
  1551. class="works"
  1552. style="
  1553. width: 200px;
  1554. height: 140px;
  1555. margin: 10px 10px 10px 0;
  1556. box-shadow: 0 0 6px 1px #dfdada;
  1557. "
  1558. v-for="(w, wIndex) in workStudent[toolIndex]"
  1559. :key="wIndex"
  1560. >
  1561. <div class="workImg">
  1562. <img
  1563. :src="word2"
  1564. @click="downloadFile(w.works)"
  1565. alt
  1566. />
  1567. <div
  1568. class="answerScore"
  1569. v-if="w.score"
  1570. @click.stop="openScore(w)"
  1571. :class="{
  1572. rightW:
  1573. w.userid == userid || tType == 1 || tType == 4,
  1574. }"
  1575. >
  1576. {{ JSON.parse(w.score).wScore }}分
  1577. </div>
  1578. <div
  1579. class="answerScore"
  1580. @click.stop="openScore(w)"
  1581. v-else-if="courseDetail.userid == userid"
  1582. :class="{
  1583. rightW:
  1584. w.userid == userid || tType == 1 || tType == 4,
  1585. }"
  1586. >
  1587. 评分
  1588. </div>
  1589. <img
  1590. class="deleteImg"
  1591. src="../../assets/deleteworks.png"
  1592. v-if="
  1593. w.userid == userid || tType == 1 || tType == 4
  1594. "
  1595. @click.stop="deleteWorks(w.wid)"
  1596. alt
  1597. />
  1598. </div>
  1599. <div class="worksName">
  1600. <div>{{ w.sName }}</div>
  1601. </div>
  1602. </div>
  1603. </div>
  1604. </div>
  1605. <div
  1606. v-if="
  1607. tType &&
  1608. tType == 2 &&
  1609. !sIsOpen &&
  1610. tool.tool.indexOf(57) != -1
  1611. "
  1612. class="worksBox"
  1613. >
  1614. <div
  1615. class="zuoyeYulan"
  1616. v-if="workStudent[toolIndex].length > 0"
  1617. >
  1618. <span class="worksTitle">作业预览</span>
  1619. </div>
  1620. <div
  1621. class="worksDetailBox"
  1622. v-if="workStudent[toolIndex].length > 0"
  1623. >
  1624. <div
  1625. class="works"
  1626. style="
  1627. width: 200px;
  1628. height: 140px;
  1629. margin: 10px 10px 10px 0;
  1630. box-shadow: 0 0 6px 1px #dfdada;
  1631. "
  1632. v-for="(w, wIndex) in workStudent[toolIndex]"
  1633. :key="wIndex"
  1634. >
  1635. <div class="workImg">
  1636. <img
  1637. :src="word2"
  1638. @click="downloadFile(w.works)"
  1639. v-if="w.type == 12"
  1640. alt
  1641. />
  1642. <img
  1643. :src="word2"
  1644. @click="
  1645. openCocoPi(57, toolIndex, w.userid, w.sName)
  1646. "
  1647. v-else-if="w.type == 15"
  1648. alt
  1649. />
  1650. <div
  1651. class="answerScore"
  1652. v-if="w.score"
  1653. @click.stop="openScore(w)"
  1654. :class="{
  1655. rightW:
  1656. w.userid == userid || tType == 1 || tType == 4,
  1657. }"
  1658. >
  1659. {{ JSON.parse(w.score).wScore }}分
  1660. </div>
  1661. <div
  1662. class="answerScore"
  1663. @click.stop="openScore(w)"
  1664. v-else-if="courseDetail.userid == userid"
  1665. :class="{
  1666. rightW:
  1667. w.userid == userid || tType == 1 || tType == 4,
  1668. }"
  1669. >
  1670. 评分
  1671. </div>
  1672. <img
  1673. class="deleteImg"
  1674. src="../../assets/deleteworks.png"
  1675. v-if="
  1676. w.userid == userid || tType == 1 || tType == 4
  1677. "
  1678. @click.stop="deleteWorks(w.wid)"
  1679. alt
  1680. />
  1681. </div>
  1682. <div class="worksName">
  1683. <div>{{ w.sName }}</div>
  1684. </div>
  1685. </div>
  1686. </div>
  1687. </div>
  1688. <div
  1689. v-if="
  1690. tType &&
  1691. tType == 2 &&
  1692. !sIsOpen &&
  1693. tool.tool.indexOf(4) != -1
  1694. "
  1695. class="worksBox"
  1696. >
  1697. <div
  1698. class="zuoyeYulan"
  1699. v-if="workStudent[toolIndex].length > 0"
  1700. >
  1701. <span class="worksTitle">作业预览</span>
  1702. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1703. </div>
  1704. <div
  1705. class="worksDetailBox"
  1706. v-if="workStudent[toolIndex].length > 0"
  1707. >
  1708. <div
  1709. class="isWorksName2"
  1710. v-for="(w, wIndex) in workStudent[toolIndex]"
  1711. :key="wIndex"
  1712. @click="
  1713. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1714. "
  1715. >
  1716. {{ w.sName }}
  1717. <img
  1718. class="deleteImg deleteImg2"
  1719. src="../../assets/deleteworks.png"
  1720. v-if="w.userid == userid || tType == 1 || tType == 4"
  1721. @click.stop="deleteWorks(w.wid)"
  1722. alt
  1723. />
  1724. </div>
  1725. <!-- <div
  1726. class="works"
  1727. style="
  1728. width: 200px;
  1729. height: 140px;
  1730. border-radius: 10px;
  1731. box-shadow: 0 0 6px 1px #dfdada;
  1732. overflow: hidden;
  1733. "
  1734. v-for="(w, wIndex) in workStudent[toolIndex]"
  1735. :key="wIndex"
  1736. >
  1737. <div class="workImg">
  1738. <img
  1739. src="../../assets/icon/works/noImg.png"
  1740. @click="
  1741. openTools(
  1742. 4,
  1743. toolIndex,
  1744. taskCount,
  1745. w.works,
  1746. w.sName
  1747. )
  1748. "
  1749. alt
  1750. />
  1751. </div>
  1752. <div class="worksName">
  1753. <div>{{ w.sName }}</div>
  1754. <div>{{ w.time }}</div>
  1755. </div>
  1756. </div> -->
  1757. </div>
  1758. </div>
  1759. <div
  1760. v-if="
  1761. tType &&
  1762. tType == 2 &&
  1763. !sIsOpen &&
  1764. tool.tool.indexOf(45) != -1
  1765. "
  1766. class="worksBox"
  1767. >
  1768. <div
  1769. class="zuoyeYulan"
  1770. v-if="workStudent[toolIndex].length > 0"
  1771. >
  1772. <span class="worksTitle">作业预览</span>
  1773. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1774. </div>
  1775. <div
  1776. class="worksDetailBox"
  1777. v-if="workStudent[toolIndex].length > 0"
  1778. >
  1779. <div
  1780. class="isWorksName2"
  1781. v-for="(w, wIndex) in workStudent[toolIndex]"
  1782. :key="wIndex"
  1783. @click="
  1784. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1785. "
  1786. >
  1787. {{ w.sName }}
  1788. <img
  1789. class="deleteImg deleteImg2"
  1790. src="../../assets/deleteworks.png"
  1791. v-if="w.userid == userid || tType == 1 || tType == 4"
  1792. @click.stop="deleteWorks(w.wid)"
  1793. alt
  1794. />
  1795. </div>
  1796. </div>
  1797. </div>
  1798. <div
  1799. v-if="
  1800. tType &&
  1801. tType == 2 &&
  1802. !sIsOpen &&
  1803. tool.tool.indexOf(15) != -1
  1804. "
  1805. class="worksBox"
  1806. >
  1807. <div
  1808. class="zuoyeYulan"
  1809. v-if="workStudent[toolIndex].length > 0"
  1810. >
  1811. <span class="worksTitle">作业预览</span>
  1812. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1813. </div>
  1814. <div
  1815. class="worksDetailBox"
  1816. v-if="workStudent[toolIndex].length > 0"
  1817. >
  1818. <div
  1819. class="works"
  1820. v-for="(w, wIndex) in workStudent[toolIndex]"
  1821. :key="wIndex"
  1822. >
  1823. <div class="workImg">
  1824. <!-- <img
  1825. src="../../assets/icon/works/noImg.png"
  1826. @click="openTools(15, toolIndex, taskCount, w.works)"
  1827. alt=""
  1828. />-->
  1829. <div class="answerBg">
  1830. <!-- <div>{{ w.sName }}</div> -->
  1831. <el-tooltip
  1832. class="item"
  1833. effect="light"
  1834. :content="JSON.parse(w.works)[0].answer"
  1835. placement="top"
  1836. >
  1837. <div class="answerContent">
  1838. {{ JSON.parse(w.works)[0].answer }}
  1839. </div>
  1840. </el-tooltip>
  1841. <div
  1842. class="answerScore"
  1843. v-if="w.score"
  1844. @click.stop="openScore(w)"
  1845. :class="{
  1846. rightW:
  1847. w.userid == userid ||
  1848. tType == 1 ||
  1849. tType == 4,
  1850. }"
  1851. >
  1852. {{ JSON.parse(w.score).wScore }}分
  1853. </div>
  1854. <div
  1855. class="answerScore"
  1856. @click.stop="openScore(w)"
  1857. v-else-if="courseDetail.userid == userid"
  1858. :class="{
  1859. rightW:
  1860. w.userid == userid ||
  1861. tType == 1 ||
  1862. tType == 4,
  1863. }"
  1864. >
  1865. 评分
  1866. </div>
  1867. <img
  1868. class="deleteImg"
  1869. src="../../assets/deleteworks.png"
  1870. v-if="
  1871. w.userid == userid || tType == 1 || tType == 4
  1872. "
  1873. @click.stop="deleteWorks(w.wid)"
  1874. alt
  1875. />
  1876. </div>
  1877. <div class="comment">
  1878. <div class="worksName">
  1879. <div>{{ w.sName }}</div>
  1880. </div>
  1881. </div>
  1882. </div>
  1883. </div>
  1884. </div>
  1885. </div>
  1886. <div
  1887. v-if="
  1888. tType &&
  1889. tType == 2 &&
  1890. !sIsOpen &&
  1891. tool.tool.indexOf(1) != -1
  1892. "
  1893. class="worksBox"
  1894. >
  1895. <div
  1896. class="zuoyeYulan"
  1897. v-if="workStudent[toolIndex].length > 0"
  1898. >
  1899. <span class="worksTitle">作业预览</span>
  1900. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1901. </div>
  1902. <div
  1903. class="worksDetailBox"
  1904. v-if="workStudent[toolIndex].length > 0"
  1905. >
  1906. <div
  1907. class="works"
  1908. style="
  1909. width: 200px;
  1910. height: 140px;
  1911. margin: 10px 10px 10px 0;
  1912. box-shadow: 0 0 6px 1px #dfdada;
  1913. "
  1914. v-for="(w, wIndex) in workStudent[toolIndex]"
  1915. :key="wIndex"
  1916. >
  1917. <div class="workImg">
  1918. <img
  1919. :src="w.works"
  1920. @click="previewImg(w.works)"
  1921. alt
  1922. />
  1923. <div
  1924. class="answerScore"
  1925. v-if="w.score"
  1926. @click.stop="openScore(w)"
  1927. :class="{
  1928. rightW:
  1929. w.userid == userid || tType == 1 || tType == 4,
  1930. }"
  1931. >
  1932. {{ JSON.parse(w.score).wScore }}分
  1933. </div>
  1934. <div
  1935. class="answerScore"
  1936. @click.stop="openScore(w)"
  1937. v-else-if="courseDetail.userid == userid"
  1938. :class="{
  1939. rightW:
  1940. w.userid == userid || tType == 1 || tType == 4,
  1941. }"
  1942. >
  1943. 评分
  1944. </div>
  1945. <img
  1946. class="deleteImg"
  1947. src="../../assets/deleteworks.png"
  1948. v-if="
  1949. w.userid == userid || tType == 1 || tType == 4
  1950. "
  1951. @click.stop="deleteWorks(w.wid)"
  1952. alt
  1953. />
  1954. </div>
  1955. <div class="worksName">
  1956. <div>{{ w.sName }}</div>
  1957. </div>
  1958. </div>
  1959. </div>
  1960. </div>
  1961. <div
  1962. v-if="
  1963. tType &&
  1964. tType == 2 &&
  1965. !sIsOpen &&
  1966. tool.tool.indexOf(3) != -1
  1967. "
  1968. class="worksBox"
  1969. >
  1970. <div
  1971. class="zuoyeYulan"
  1972. v-if="workStudent[toolIndex].length > 0"
  1973. >
  1974. <span class="worksTitle">作业预览</span>
  1975. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1976. </div>
  1977. <div
  1978. class="worksDetailBox"
  1979. v-if="workStudent[toolIndex].length > 0"
  1980. >
  1981. <div
  1982. class="works"
  1983. style="
  1984. width: 200px;
  1985. height: 140px;
  1986. margin: 10px 10px 10px 0;
  1987. box-shadow: 0 0 6px 1px #dfdada;
  1988. "
  1989. v-for="(w, wIndex) in workStudent[toolIndex]"
  1990. :key="wIndex"
  1991. >
  1992. <div class="workImg">
  1993. <img
  1994. :src="w.works"
  1995. @click="previewImg(w.works)"
  1996. alt
  1997. />
  1998. <div
  1999. class="answerScore"
  2000. v-if="w.score"
  2001. @click.stop="openScore(w)"
  2002. :class="{
  2003. rightW:
  2004. w.userid == userid || tType == 1 || tType == 4,
  2005. }"
  2006. >
  2007. {{ JSON.parse(w.score).wScore }}分
  2008. </div>
  2009. <div
  2010. class="answerScore"
  2011. @click.stop="openScore(w)"
  2012. v-else-if="courseDetail.userid == userid"
  2013. :class="{
  2014. rightW:
  2015. w.userid == userid || tType == 1 || tType == 4,
  2016. }"
  2017. >
  2018. 评分
  2019. </div>
  2020. <img
  2021. class="deleteImg"
  2022. src="../../assets/deleteworks.png"
  2023. v-if="
  2024. w.userid == userid || tType == 1 || tType == 4
  2025. "
  2026. @click.stop="deleteWorks(w.wid)"
  2027. alt
  2028. />
  2029. </div>
  2030. <div class="worksName">
  2031. <div>{{ w.sName }}</div>
  2032. </div>
  2033. </div>
  2034. </div>
  2035. </div>
  2036. <div
  2037. v-if="
  2038. tType &&
  2039. tType == 2 &&
  2040. !sIsOpen &&
  2041. tool.tool.indexOf(6) != -1
  2042. "
  2043. class="worksBox"
  2044. >
  2045. <div
  2046. class="zuoyeYulan"
  2047. v-if="workStudent[toolIndex].length > 0"
  2048. >
  2049. <span class="worksTitle">作业预览</span>
  2050. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2051. </div>
  2052. <div
  2053. class="worksDetailBox"
  2054. v-if="workStudent[toolIndex].length > 0"
  2055. >
  2056. <div
  2057. class="works"
  2058. style="
  2059. width: 200px;
  2060. height: 140px;
  2061. margin: 10px 10px 10px 0;
  2062. box-shadow: 0 0 6px 1px #dfdada;
  2063. "
  2064. v-for="(w, wIndex) in workStudent[toolIndex]"
  2065. :key="wIndex"
  2066. >
  2067. <div class="workImg">
  2068. <img
  2069. :src="w.works"
  2070. @click="previewImg(w.works)"
  2071. alt
  2072. />
  2073. <div
  2074. class="answerScore"
  2075. v-if="w.score"
  2076. @click.stop="openScore(w)"
  2077. :class="{
  2078. rightW:
  2079. w.userid == userid || tType == 1 || tType == 4,
  2080. }"
  2081. >
  2082. {{ JSON.parse(w.score).wScore }}分
  2083. </div>
  2084. <div
  2085. class="answerScore"
  2086. @click.stop="openScore(w)"
  2087. v-else-if="courseDetail.userid == userid"
  2088. :class="{
  2089. rightW:
  2090. w.userid == userid || tType == 1 || tType == 4,
  2091. }"
  2092. >
  2093. 评分
  2094. </div>
  2095. <img
  2096. class="deleteImg"
  2097. src="../../assets/deleteworks.png"
  2098. v-if="
  2099. w.userid == userid || tType == 1 || tType == 4
  2100. "
  2101. @click.stop="deleteWorks(w.wid)"
  2102. alt
  2103. />
  2104. </div>
  2105. <div class="worksName">
  2106. <div>{{ w.sName }}</div>
  2107. </div>
  2108. </div>
  2109. </div>
  2110. </div>
  2111. <div
  2112. v-if="
  2113. tType &&
  2114. tType == 2 &&
  2115. !sIsOpen &&
  2116. tool.tool.indexOf(7) != -1
  2117. "
  2118. class="worksBox"
  2119. >
  2120. <div
  2121. class="zuoyeYulan"
  2122. v-if="workStudent[toolIndex].length > 0"
  2123. >
  2124. <span class="worksTitle">作业预览</span>
  2125. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2126. </div>
  2127. <div
  2128. class="worksDetailBox"
  2129. v-if="workStudent[toolIndex].length > 0"
  2130. >
  2131. <div
  2132. class="works"
  2133. style="
  2134. width: 200px;
  2135. height: 140px;
  2136. margin: 10px 10px 10px 0;
  2137. box-shadow: 0 0 6px 1px #dfdada;
  2138. "
  2139. v-for="(w, wIndex) in workStudent[toolIndex]"
  2140. :key="wIndex"
  2141. >
  2142. <div class="workImg">
  2143. <img
  2144. :src="w.works"
  2145. @click="previewImg(w.works)"
  2146. alt
  2147. />
  2148. <div
  2149. class="answerScore"
  2150. v-if="w.score"
  2151. @click.stop="openScore(w)"
  2152. :class="{
  2153. rightW:
  2154. w.userid == userid || tType == 1 || tType == 4,
  2155. }"
  2156. >
  2157. {{ JSON.parse(w.score).wScore }}分
  2158. </div>
  2159. <div
  2160. class="answerScore"
  2161. @click.stop="openScore(w)"
  2162. v-else-if="courseDetail.userid == userid"
  2163. :class="{
  2164. rightW:
  2165. w.userid == userid || tType == 1 || tType == 4,
  2166. }"
  2167. >
  2168. 评分
  2169. </div>
  2170. <img
  2171. class="deleteImg"
  2172. src="../../assets/deleteworks.png"
  2173. v-if="
  2174. w.userid == userid || tType == 1 || tType == 4
  2175. "
  2176. @click.stop="deleteWorks(w.wid)"
  2177. alt
  2178. />
  2179. </div>
  2180. <div class="worksName">
  2181. <div>{{ w.sName }}</div>
  2182. </div>
  2183. </div>
  2184. </div>
  2185. </div>
  2186. <div
  2187. v-if="
  2188. tType &&
  2189. tType == 2 &&
  2190. !sIsOpen &&
  2191. tool.tool.indexOf(26) != -1
  2192. "
  2193. class="worksBox"
  2194. >
  2195. <div
  2196. class="zuoyeYulan"
  2197. v-if="workStudent[toolIndex].length > 0"
  2198. >
  2199. <span class="worksTitle">作业预览</span>
  2200. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2201. </div>
  2202. <div
  2203. class="worksDetailBox"
  2204. v-if="workStudent[toolIndex].length > 0"
  2205. >
  2206. <div
  2207. class="works"
  2208. style="
  2209. width: 200px;
  2210. height: 140px;
  2211. margin: 10px 10px 10px 0;
  2212. box-shadow: 0 0 6px 1px #dfdada;
  2213. "
  2214. v-for="(w, wIndex) in workStudent[toolIndex]"
  2215. :key="wIndex"
  2216. >
  2217. <div class="workImg">
  2218. <img
  2219. :src="w.works"
  2220. @click="previewImg(w.works)"
  2221. alt
  2222. />
  2223. <img
  2224. class="deleteImg"
  2225. src="../../assets/deleteworks.png"
  2226. v-if="
  2227. w.userid == userid || tType == 1 || tType == 4
  2228. "
  2229. @click.stop="deleteWorks(w.wid)"
  2230. alt
  2231. />
  2232. </div>
  2233. <div class="worksName">
  2234. <div>{{ w.sName }}</div>
  2235. </div>
  2236. </div>
  2237. </div>
  2238. </div>
  2239. <div
  2240. v-if="
  2241. tType &&
  2242. ((tType == 2 && sIsOpen == true) ||
  2243. tType == 1 ||
  2244. tType == 4) &&
  2245. tool.tool.indexOf(16) != -1
  2246. "
  2247. class="worksBox"
  2248. >
  2249. <div
  2250. class="zuoyeYulan"
  2251. v-if="
  2252. worksStudent.length &&
  2253. worksStudent[toolIndex].length > 0
  2254. "
  2255. >
  2256. <div class="worksTop">
  2257. <div>作业预览</div>
  2258. <div
  2259. class="corOpen"
  2260. @click="contract(toolIndex)"
  2261. v-if="
  2262. worksStudent[toolIndex].length > 6 &&
  2263. isCloseList[toolIndex].isClose == 0
  2264. "
  2265. >
  2266. 收缩
  2267. </div>
  2268. <div
  2269. class="corOpen"
  2270. @click="contract(toolIndex)"
  2271. v-if="isCloseList[toolIndex].isClose == 1"
  2272. >
  2273. 展开
  2274. </div>
  2275. </div>
  2276. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2277. </div>
  2278. <div
  2279. class="group_workBox"
  2280. v-for="(g, gindex) in courseGroup.group"
  2281. :key="gindex"
  2282. >
  2283. <div class="group_box">
  2284. <div class="group_title">
  2285. <el-tooltip
  2286. class="item"
  2287. effect="light"
  2288. :content="g.name"
  2289. placement="top"
  2290. >
  2291. <div class="group_name">{{ g.name }}</div>
  2292. </el-tooltip>
  2293. </div>
  2294. <div
  2295. class="group_work"
  2296. v-if="
  2297. g.works &&
  2298. g.works.length &&
  2299. g.works[toolIndex].length
  2300. "
  2301. >
  2302. <div
  2303. class="works"
  2304. style="
  2305. width: 200px;
  2306. height: 140px;
  2307. margin: 10px 10px 10px 0;
  2308. border-radius: 15px;
  2309. box-shadow: 0 0 6px 1px #dfdada;
  2310. "
  2311. v-for="(w, wIndex) in g.works[toolIndex]"
  2312. :key="wIndex"
  2313. :class="w.type == 1 ? 'isTypeOne' : ''"
  2314. >
  2315. <div class="workImg" v-if="w.type == 0">
  2316. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2317. <img
  2318. :src="w.works"
  2319. @click="previewImg(w.works)"
  2320. alt
  2321. />
  2322. <div
  2323. class="answerScore"
  2324. v-if="w.score"
  2325. @click.stop="openScore(w)"
  2326. :class="{
  2327. rightW:
  2328. w.userid == userid ||
  2329. tType == 1 ||
  2330. tType == 4 ||
  2331. w.ateacher == userid,
  2332. }"
  2333. >
  2334. {{ JSON.parse(w.score).wScore }}分
  2335. </div>
  2336. <div
  2337. class="answerScore"
  2338. @click.stop="openScore(w)"
  2339. v-else-if="courseDetail.userid == userid"
  2340. :class="{
  2341. rightW:
  2342. w.userid == userid ||
  2343. tType == 1 ||
  2344. tType == 4 ||
  2345. w.ateacher == userid,
  2346. }"
  2347. >
  2348. 评分
  2349. </div>
  2350. <img
  2351. class="deleteImg"
  2352. src="../../assets/deleteworks.png"
  2353. v-if="
  2354. w.userid == userid || tType == 1 || tType == 4
  2355. "
  2356. @click.stop="deleteWorks(w.wid)"
  2357. alt
  2358. />
  2359. </div>
  2360. <div class="workImg" v-if="w.type == 1">
  2361. <img :src="word" @click="openFile(w.works)" alt />
  2362. <!-- @click="openFile(w.works)" -->
  2363. <div
  2364. class="answerScore"
  2365. v-if="w.score"
  2366. @click.stop="openScore(w)"
  2367. :class="{
  2368. rightW:
  2369. w.userid == userid ||
  2370. tType == 1 ||
  2371. tType == 4 ||
  2372. w.ateacher == userid,
  2373. }"
  2374. >
  2375. {{ JSON.parse(w.score).wScore }}分
  2376. </div>
  2377. <div
  2378. class="answerScore"
  2379. @click.stop="openScore(w)"
  2380. v-else-if="courseDetail.userid == userid"
  2381. :class="{
  2382. rightW:
  2383. w.userid == userid ||
  2384. tType == 1 ||
  2385. tType == 4 ||
  2386. w.ateacher == userid,
  2387. }"
  2388. >
  2389. 评分
  2390. </div>
  2391. <img
  2392. class="deleteImg"
  2393. src="../../assets/deleteworks.png"
  2394. v-if="
  2395. w.userid == userid || tType == 1 || tType == 4
  2396. "
  2397. @click.stop="deleteWorks(w.wid)"
  2398. alt
  2399. />
  2400. </div>
  2401. <div class="workImg" v-if="w.type == 3">
  2402. <img
  2403. style="cursor: pointer"
  2404. :src="video"
  2405. @click="openVideo(w)"
  2406. alt
  2407. />
  2408. <!-- @click="openVideo(w.works)" -->
  2409. <div
  2410. class="answerScore"
  2411. v-if="w.score"
  2412. @click.stop="openScore(w)"
  2413. :class="{
  2414. rightW:
  2415. w.userid == userid ||
  2416. tType == 1 ||
  2417. tType == 4 ||
  2418. w.ateacher == userid,
  2419. }"
  2420. >
  2421. {{ JSON.parse(w.score).wScore }}分
  2422. </div>
  2423. <div
  2424. class="answerScore"
  2425. @click.stop="openScore(w)"
  2426. v-else-if="courseDetail.userid == userid"
  2427. :class="{
  2428. rightW:
  2429. w.userid == userid ||
  2430. tType == 1 ||
  2431. tType == 4 ||
  2432. w.ateacher == userid,
  2433. }"
  2434. >
  2435. 评分
  2436. </div>
  2437. <img
  2438. class="deleteImg"
  2439. src="../../assets/deleteworks.png"
  2440. v-if="
  2441. w.userid == userid || tType == 1 || tType == 4
  2442. "
  2443. @click.stop="deleteWorks(w.wid)"
  2444. alt
  2445. />
  2446. </div>
  2447. <div class="workImg" v-if="w.type == 12">
  2448. <img
  2449. style="cursor: pointer"
  2450. :src="word2"
  2451. @click="downloadFile(w.works)"
  2452. alt
  2453. />
  2454. <!-- @click="openVideo(w.works)" -->
  2455. <div
  2456. class="answerScore"
  2457. v-if="w.score"
  2458. @click.stop="openScore(w)"
  2459. :class="{
  2460. rightW:
  2461. w.userid == userid ||
  2462. tType == 1 ||
  2463. tType == 4 ||
  2464. w.ateacher == userid,
  2465. }"
  2466. >
  2467. {{ JSON.parse(w.score).wScore }}分
  2468. </div>
  2469. <div
  2470. class="answerScore"
  2471. @click.stop="openScore(w)"
  2472. v-else-if="courseDetail.userid == userid"
  2473. :class="{
  2474. rightW:
  2475. w.userid == userid ||
  2476. tType == 1 ||
  2477. tType == 4 ||
  2478. w.ateacher == userid,
  2479. }"
  2480. >
  2481. 评分
  2482. </div>
  2483. <img
  2484. class="deleteImg"
  2485. src="../../assets/deleteworks.png"
  2486. v-if="
  2487. w.userid == userid || tType == 1 || tType == 4
  2488. "
  2489. @click.stop="deleteWorks(w.wid)"
  2490. alt
  2491. />
  2492. </div>
  2493. <div class="comment" style="min-width: 200px">
  2494. <div class="worksName">
  2495. <div>{{ w.sName }}</div>
  2496. </div>
  2497. <div class="commentList">
  2498. <div class="commentList">
  2499. <div
  2500. class="commentImg"
  2501. @click="
  2502. isLikes(w.wid, userid, 1, null, w.isLikes)
  2503. "
  2504. >
  2505. <img
  2506. :src="w.isLikes == true ? likes : noLikes"
  2507. alt=""
  2508. />
  2509. </div>
  2510. <div>{{ w.likesCount }}</div>
  2511. </div>
  2512. <div
  2513. class="commentList"
  2514. style="margin-right: 15px"
  2515. >
  2516. <div
  2517. class="commentImg"
  2518. @click="
  2519. commentOther(
  2520. w,
  2521. toolIndex,
  2522. wIndex,
  2523. null,
  2524. g.id
  2525. )
  2526. "
  2527. >
  2528. <img
  2529. src="../../assets/icon/comment/comment.png"
  2530. alt=""
  2531. />
  2532. </div>
  2533. <div>{{ w.commentCount }}</div>
  2534. </div>
  2535. </div>
  2536. </div>
  2537. </div>
  2538. </div>
  2539. <div class="group_work" v-else>暂无提交作业</div>
  2540. </div>
  2541. </div>
  2542. <div
  2543. class="worksDetailBox"
  2544. v-if="
  2545. worksStudent.length &&
  2546. worksStudent[toolIndex].length > 0
  2547. "
  2548. >
  2549. <div
  2550. class="works"
  2551. style="
  2552. width: 200px;
  2553. height: 140px;
  2554. margin: 10px 10px 10px 0;
  2555. border-radius: 15px;
  2556. box-shadow: 0 0 6px 1px #dfdada;
  2557. "
  2558. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2559. 0
  2560. ? worksStudent[toolIndex]
  2561. : worksStudent[toolIndex].slice(0, 6)"
  2562. :key="wIndex"
  2563. :class="w.type == 1 ? 'isTypeOne' : ''"
  2564. >
  2565. <div class="workImg" v-if="w.type == 0">
  2566. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2567. <img
  2568. :src="w.works"
  2569. @click="previewImg(w.works)"
  2570. alt
  2571. />
  2572. <div
  2573. class="answerScore"
  2574. v-if="w.score"
  2575. @click.stop="openScore(w)"
  2576. :class="{
  2577. rightW:
  2578. w.userid == userid ||
  2579. tType == 1 ||
  2580. tType == 4 ||
  2581. w.ateacher == userid,
  2582. }"
  2583. >
  2584. {{ JSON.parse(w.score).wScore }}分
  2585. </div>
  2586. <div
  2587. class="answerScore"
  2588. @click.stop="openScore(w)"
  2589. v-else-if="courseDetail.userid == userid"
  2590. :class="{
  2591. rightW:
  2592. w.userid == userid ||
  2593. tType == 1 ||
  2594. tType == 4 ||
  2595. w.ateacher == userid,
  2596. }"
  2597. >
  2598. 评分
  2599. </div>
  2600. <img
  2601. class="deleteImg"
  2602. src="../../assets/deleteworks.png"
  2603. v-if="
  2604. w.userid == userid || tType == 1 || tType == 4
  2605. "
  2606. @click.stop="deleteWorks(w.wid)"
  2607. alt
  2608. />
  2609. </div>
  2610. <div class="workImg" v-if="w.type == 1">
  2611. <img :src="word" @click="openFile(w.works)" alt />
  2612. <!-- @click="openFile(w.works)" -->
  2613. <div
  2614. class="answerScore"
  2615. v-if="w.score"
  2616. @click.stop="openScore(w)"
  2617. :class="{
  2618. rightW:
  2619. w.userid == userid ||
  2620. tType == 1 ||
  2621. tType == 4 ||
  2622. w.ateacher == userid,
  2623. }"
  2624. >
  2625. {{ JSON.parse(w.score).wScore }}分
  2626. </div>
  2627. <div
  2628. class="answerScore"
  2629. @click.stop="openScore(w)"
  2630. v-else-if="courseDetail.userid == userid"
  2631. :class="{
  2632. rightW:
  2633. w.userid == userid ||
  2634. tType == 1 ||
  2635. tType == 4 ||
  2636. w.ateacher == userid,
  2637. }"
  2638. >
  2639. 评分
  2640. </div>
  2641. <img
  2642. class="deleteImg"
  2643. src="../../assets/deleteworks.png"
  2644. v-if="
  2645. w.userid == userid || tType == 1 || tType == 4
  2646. "
  2647. @click.stop="deleteWorks(w.wid)"
  2648. alt
  2649. />
  2650. </div>
  2651. <div class="workImg" v-if="w.type == 3">
  2652. <img
  2653. style="cursor: pointer"
  2654. :src="video"
  2655. @click="openVideo(w)"
  2656. alt
  2657. />
  2658. <!-- @click="openVideo(w.works)" -->
  2659. <div
  2660. class="answerScore"
  2661. v-if="w.score"
  2662. @click.stop="openScore(w)"
  2663. :class="{
  2664. rightW:
  2665. w.userid == userid ||
  2666. tType == 1 ||
  2667. tType == 4 ||
  2668. w.ateacher == userid,
  2669. }"
  2670. >
  2671. {{ JSON.parse(w.score).wScore }}分
  2672. </div>
  2673. <div
  2674. class="answerScore"
  2675. @click.stop="openScore(w)"
  2676. v-else-if="courseDetail.userid == userid"
  2677. :class="{
  2678. rightW:
  2679. w.userid == userid ||
  2680. tType == 1 ||
  2681. tType == 4 ||
  2682. w.ateacher == userid,
  2683. }"
  2684. >
  2685. 评分
  2686. </div>
  2687. <img
  2688. class="deleteImg"
  2689. src="../../assets/deleteworks.png"
  2690. v-if="
  2691. w.userid == userid || tType == 1 || tType == 4
  2692. "
  2693. @click.stop="deleteWorks(w.wid)"
  2694. alt
  2695. />
  2696. </div>
  2697. <div class="workImg" v-if="w.type == 12">
  2698. <img
  2699. style="cursor: pointer"
  2700. :src="word2"
  2701. @click="downloadFile(w.works)"
  2702. alt
  2703. />
  2704. <!-- @click="openVideo(w.works)" -->
  2705. <div
  2706. class="answerScore"
  2707. v-if="w.score"
  2708. @click.stop="openScore(w)"
  2709. :class="{
  2710. rightW:
  2711. w.userid == userid ||
  2712. tType == 1 ||
  2713. tType == 4 ||
  2714. w.ateacher == userid,
  2715. }"
  2716. >
  2717. {{ JSON.parse(w.score).wScore }}分
  2718. </div>
  2719. <div
  2720. class="answerScore"
  2721. @click.stop="openScore(w)"
  2722. v-else-if="courseDetail.userid == userid"
  2723. :class="{
  2724. rightW:
  2725. w.userid == userid ||
  2726. tType == 1 ||
  2727. tType == 4 ||
  2728. w.ateacher == userid,
  2729. }"
  2730. >
  2731. 评分
  2732. </div>
  2733. <img
  2734. class="deleteImg"
  2735. src="../../assets/deleteworks.png"
  2736. v-if="
  2737. w.userid == userid || tType == 1 || tType == 4
  2738. "
  2739. @click.stop="deleteWorks(w.wid)"
  2740. alt
  2741. />
  2742. </div>
  2743. <div class="comment" style="min-width: 200px">
  2744. <div class="worksName">
  2745. <div>{{ w.sName }}</div>
  2746. </div>
  2747. <div class="commentList">
  2748. <div class="commentList">
  2749. <div
  2750. class="commentImg"
  2751. @click="
  2752. isLikes(w.wid, userid, 1, null, w.isLikes)
  2753. "
  2754. >
  2755. <img
  2756. :src="w.isLikes == true ? likes : noLikes"
  2757. alt=""
  2758. />
  2759. </div>
  2760. <div>{{ w.likesCount }}</div>
  2761. </div>
  2762. <div class="commentList" style="margin-right: 15px">
  2763. <div
  2764. class="commentImg"
  2765. @click="commentOther(w, toolIndex, wIndex)"
  2766. >
  2767. <img
  2768. src="../../assets/icon/comment/comment.png"
  2769. alt=""
  2770. />
  2771. </div>
  2772. <div>{{ w.commentCount }}</div>
  2773. </div>
  2774. </div>
  2775. </div>
  2776. </div>
  2777. </div>
  2778. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2779. 未提交
  2780. </div>
  2781. <div
  2782. class="noWorksS"
  2783. v-if="noWorksS && noWorksS[toolIndex].length"
  2784. >
  2785. <div
  2786. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2787. :key="sIndex"
  2788. class="noWorksName"
  2789. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2790. >
  2791. {{ s.student }}
  2792. </div>
  2793. </div>
  2794. </div>
  2795. <div
  2796. v-if="
  2797. tType &&
  2798. ((tType == 2 && sIsOpen == true) ||
  2799. tType == 1 ||
  2800. tType == 4) &&
  2801. tool.tool.indexOf(32) != -1
  2802. "
  2803. class="worksBox"
  2804. >
  2805. <div
  2806. class="zuoyeYulan"
  2807. v-if="
  2808. worksStudent.length &&
  2809. worksStudent[toolIndex].length > 0
  2810. "
  2811. >
  2812. <div class="worksTop">
  2813. <div>作业预览</div>
  2814. <div
  2815. class="corOpen"
  2816. @click="contract(toolIndex)"
  2817. v-if="
  2818. worksStudent[toolIndex].length > 6 &&
  2819. isCloseList[toolIndex].isClose == 0
  2820. "
  2821. >
  2822. 收缩
  2823. </div>
  2824. <div
  2825. class="corOpen"
  2826. @click="contract(toolIndex)"
  2827. v-if="isCloseList[toolIndex].isClose == 1"
  2828. >
  2829. 展开
  2830. </div>
  2831. </div>
  2832. </div>
  2833. <div
  2834. class="worksDetailBox"
  2835. v-if="
  2836. worksStudent.length &&
  2837. worksStudent[toolIndex].length > 0
  2838. "
  2839. >
  2840. <div
  2841. class="works"
  2842. style="
  2843. width: 200px;
  2844. height: 140px;
  2845. margin: 10px 10px 10px 0;
  2846. border-radius: 15px;
  2847. box-shadow: 0 0 6px 1px #dfdada;
  2848. "
  2849. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2850. 0
  2851. ? worksStudent[toolIndex]
  2852. : worksStudent[toolIndex].slice(0, 6)"
  2853. :key="wIndex"
  2854. :class="w.type == 1 ? 'isTypeOne' : ''"
  2855. >
  2856. <div class="workImg">
  2857. <img
  2858. :src="word2"
  2859. @click="downloadFile(w.works)"
  2860. alt
  2861. />
  2862. <div
  2863. class="answerScore"
  2864. v-if="w.score"
  2865. @click.stop="openScore(w)"
  2866. :class="{
  2867. rightW:
  2868. w.userid == userid ||
  2869. tType == 1 ||
  2870. tType == 4 ||
  2871. w.ateacher == userid,
  2872. }"
  2873. >
  2874. {{ JSON.parse(w.score).wScore }}分
  2875. </div>
  2876. <div
  2877. class="answerScore"
  2878. @click.stop="openScore(w)"
  2879. v-else-if="courseDetail.userid == userid"
  2880. :class="{
  2881. rightW:
  2882. w.userid == userid ||
  2883. tType == 1 ||
  2884. tType == 4 ||
  2885. w.ateacher == userid,
  2886. }"
  2887. >
  2888. 评分
  2889. </div>
  2890. <img
  2891. class="deleteImg"
  2892. src="../../assets/deleteworks.png"
  2893. v-if="
  2894. w.userid == userid || tType == 1 || tType == 4
  2895. "
  2896. @click.stop="deleteWorks(w.wid)"
  2897. alt
  2898. />
  2899. </div>
  2900. <div class="comment" style="min-width: 200px">
  2901. <div class="worksName">
  2902. <div>{{ w.sName }}</div>
  2903. </div>
  2904. <div class="commentList">
  2905. <div class="commentList">
  2906. <div
  2907. class="commentImg"
  2908. @click="
  2909. isLikes(w.wid, userid, 1, null, w.isLikes)
  2910. "
  2911. >
  2912. <img
  2913. :src="w.isLikes == true ? likes : noLikes"
  2914. alt=""
  2915. />
  2916. </div>
  2917. <div>{{ w.likesCount }}</div>
  2918. </div>
  2919. <div class="commentList" style="margin-right: 15px">
  2920. <div
  2921. class="commentImg"
  2922. @click="commentOther(w, toolIndex, wIndex)"
  2923. >
  2924. <img
  2925. src="../../assets/icon/comment/comment.png"
  2926. alt=""
  2927. />
  2928. </div>
  2929. <div>{{ w.commentCount }}</div>
  2930. </div>
  2931. </div>
  2932. </div>
  2933. </div>
  2934. </div>
  2935. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2936. 未提交
  2937. </div>
  2938. <div
  2939. class="noWorksS"
  2940. v-if="noWorksS && noWorksS[toolIndex].length"
  2941. >
  2942. <div
  2943. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2944. :key="sIndex"
  2945. class="noWorksName"
  2946. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  2947. >
  2948. {{ s.student }}
  2949. </div>
  2950. </div>
  2951. </div>
  2952. <div
  2953. v-if="
  2954. tType &&
  2955. ((tType == 2 && sIsOpen == true) ||
  2956. tType == 1 ||
  2957. tType == 4) &&
  2958. tool.tool.indexOf(57) != -1
  2959. "
  2960. class="worksBox"
  2961. >
  2962. <div
  2963. class="zuoyeYulan"
  2964. v-if="
  2965. worksStudent.length &&
  2966. worksStudent[toolIndex].length > 0
  2967. "
  2968. >
  2969. <div class="worksTop">
  2970. <div>作业预览</div>
  2971. <div
  2972. class="corOpen"
  2973. @click="contract(toolIndex)"
  2974. v-if="
  2975. worksStudent[toolIndex].length > 6 &&
  2976. isCloseList[toolIndex].isClose == 0
  2977. "
  2978. >
  2979. 收缩
  2980. </div>
  2981. <div
  2982. class="corOpen"
  2983. @click="contract(toolIndex)"
  2984. v-if="isCloseList[toolIndex].isClose == 1"
  2985. >
  2986. 展开
  2987. </div>
  2988. </div>
  2989. </div>
  2990. <div
  2991. class="worksDetailBox"
  2992. v-if="
  2993. worksStudent.length &&
  2994. worksStudent[toolIndex].length > 0
  2995. "
  2996. >
  2997. <div
  2998. class="works"
  2999. style="
  3000. width: 200px;
  3001. height: 140px;
  3002. margin: 10px 10px 10px 0;
  3003. border-radius: 15px;
  3004. box-shadow: 0 0 6px 1px #dfdada;
  3005. "
  3006. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3007. 0
  3008. ? worksStudent[toolIndex]
  3009. : worksStudent[toolIndex].slice(0, 6)"
  3010. :key="wIndex"
  3011. :class="w.type == 1 ? 'isTypeOne' : ''"
  3012. >
  3013. <div class="workImg">
  3014. <img
  3015. :src="word2"
  3016. @click="downloadFile(w.works)"
  3017. v-if="w.type == 12"
  3018. alt
  3019. />
  3020. <img
  3021. :src="word2"
  3022. @click="
  3023. openCocoPi(57, toolIndex, w.userid, w.sName)
  3024. "
  3025. v-else-if="w.type == 15"
  3026. alt
  3027. />
  3028. <div
  3029. class="answerScore"
  3030. v-if="w.score"
  3031. @click.stop="openScore(w)"
  3032. :class="{
  3033. rightW:
  3034. w.userid == userid ||
  3035. tType == 1 ||
  3036. tType == 4 ||
  3037. w.ateacher == userid,
  3038. }"
  3039. >
  3040. {{ JSON.parse(w.score).wScore }}分
  3041. </div>
  3042. <div
  3043. class="answerScore"
  3044. @click.stop="openScore(w)"
  3045. v-else-if="courseDetail.userid == userid"
  3046. :class="{
  3047. rightW:
  3048. w.userid == userid ||
  3049. tType == 1 ||
  3050. tType == 4 ||
  3051. w.ateacher == userid,
  3052. }"
  3053. >
  3054. 评分
  3055. </div>
  3056. <img
  3057. class="deleteImg"
  3058. src="../../assets/deleteworks.png"
  3059. v-if="
  3060. w.userid == userid || tType == 1 || tType == 4
  3061. "
  3062. @click.stop="deleteWorks(w.wid)"
  3063. alt
  3064. />
  3065. </div>
  3066. <div class="comment" style="min-width: 200px">
  3067. <div class="worksName">
  3068. <div>{{ w.sName }}</div>
  3069. </div>
  3070. <div class="commentList">
  3071. <div class="commentList">
  3072. <div
  3073. class="commentImg"
  3074. @click="
  3075. isLikes(w.wid, userid, 1, null, w.isLikes)
  3076. "
  3077. >
  3078. <img
  3079. :src="w.isLikes == true ? likes : noLikes"
  3080. alt=""
  3081. />
  3082. </div>
  3083. <div>{{ w.likesCount }}</div>
  3084. </div>
  3085. <div class="commentList" style="margin-right: 15px">
  3086. <div
  3087. class="commentImg"
  3088. @click="commentOther(w, toolIndex, wIndex)"
  3089. >
  3090. <img
  3091. src="../../assets/icon/comment/comment.png"
  3092. alt=""
  3093. />
  3094. </div>
  3095. <div>{{ w.commentCount }}</div>
  3096. </div>
  3097. </div>
  3098. </div>
  3099. </div>
  3100. </div>
  3101. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3102. 未提交
  3103. </div>
  3104. <div
  3105. class="noWorksS"
  3106. v-if="noWorksS && noWorksS[toolIndex].length"
  3107. >
  3108. <div
  3109. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3110. :key="sIndex"
  3111. class="noWorksName"
  3112. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3113. >
  3114. {{ s.student }}
  3115. </div>
  3116. </div>
  3117. </div>
  3118. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3119. <div
  3120. class="zuoyeYulan"
  3121. v-if="
  3122. worksStudent.length &&
  3123. worksStudent[toolIndex].length > 0
  3124. "
  3125. >
  3126. <span class="worksTitle">作业预览</span>
  3127. <div
  3128. class="corOpen"
  3129. @click="contract(toolIndex)"
  3130. v-if="
  3131. worksStudent[toolIndex].length > 6 &&
  3132. isCloseList[toolIndex].isClose == 0
  3133. "
  3134. >
  3135. 收缩
  3136. </div>
  3137. <div
  3138. class="corOpen"
  3139. @click="contract(toolIndex)"
  3140. v-if="isCloseList[toolIndex].isClose == 1"
  3141. >
  3142. 展开
  3143. </div>
  3144. </div>
  3145. <div
  3146. class="worksDetailBox"
  3147. v-if="
  3148. worksStudent.length &&
  3149. worksStudent[toolIndex].length > 0
  3150. "
  3151. >
  3152. <div
  3153. class="works"
  3154. style="
  3155. width: 200px;
  3156. height: 140px;
  3157. margin: 10px 10px 10px 0;
  3158. border-radius: 15px;
  3159. box-shadow: 0 0 6px 1px #dfdada;
  3160. "
  3161. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3162. 0
  3163. ? worksStudent[toolIndex]
  3164. : worksStudent[toolIndex].slice(0, 6)"
  3165. :key="wIndex"
  3166. :class="w.type == 1 ? 'isTypeOne' : ''"
  3167. >
  3168. <div class="workImg" v-if="w.type == 0">
  3169. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3170. <img
  3171. :src="w.works"
  3172. @click="previewImg(w.works)"
  3173. alt
  3174. />
  3175. <div
  3176. class="answerScore"
  3177. v-if="w.score"
  3178. @click.stop="openScore(w)"
  3179. :class="{
  3180. rightW:
  3181. w.userid == userid ||
  3182. tType == 1 ||
  3183. tType == 4 ||
  3184. w.ateacher == userid,
  3185. }"
  3186. >
  3187. {{ JSON.parse(w.score).wScore }}分
  3188. </div>
  3189. <div
  3190. class="answerScore"
  3191. @click.stop="openScore(w)"
  3192. v-else-if="courseDetail.userid == userid"
  3193. :class="{
  3194. rightW:
  3195. w.userid == userid ||
  3196. tType == 1 ||
  3197. tType == 4 ||
  3198. w.ateacher == userid,
  3199. }"
  3200. >
  3201. 评分
  3202. </div>
  3203. <img
  3204. class="deleteImg"
  3205. src="../../assets/deleteworks.png"
  3206. v-if="
  3207. w.userid == userid || tType == 1 || tType == 4
  3208. "
  3209. @click.stop="deleteWorks(w.wid)"
  3210. alt
  3211. />
  3212. </div>
  3213. <div
  3214. class="workImg"
  3215. style="cursor: pointer"
  3216. v-if="w.type == 1"
  3217. >
  3218. <img :src="word" @click="openFile(w.works)" alt />
  3219. <!-- @click="openFile(w.works)" -->
  3220. <div
  3221. class="answerScore"
  3222. v-if="w.score"
  3223. @click.stop="openScore(w)"
  3224. :class="{
  3225. rightW:
  3226. w.userid == userid ||
  3227. tType == 1 ||
  3228. tType == 4 ||
  3229. w.ateacher == userid,
  3230. }"
  3231. >
  3232. {{ JSON.parse(w.score).wScore }}分
  3233. </div>
  3234. <div
  3235. class="answerScore"
  3236. @click.stop="openScore(w)"
  3237. v-else-if="courseDetail.userid == userid"
  3238. :class="{
  3239. rightW:
  3240. w.userid == userid ||
  3241. tType == 1 ||
  3242. tType == 4 ||
  3243. w.ateacher == userid,
  3244. }"
  3245. >
  3246. 评分
  3247. </div>
  3248. <img
  3249. class="deleteImg"
  3250. src="../../assets/deleteworks.png"
  3251. v-if="
  3252. w.userid == userid || tType == 1 || tType == 4
  3253. "
  3254. @click.stop="deleteWorks(w.wid)"
  3255. alt
  3256. />
  3257. </div>
  3258. <div class="workImg" v-if="w.type == 3">
  3259. <img
  3260. style="cursor: pointer"
  3261. :src="video"
  3262. @click="openVideo(w)"
  3263. alt
  3264. />
  3265. <!-- @click="openVideo(w.works)" -->
  3266. <div
  3267. class="answerScore"
  3268. v-if="w.score"
  3269. @click.stop="openScore(w)"
  3270. :class="{
  3271. rightW:
  3272. w.userid == userid ||
  3273. tType == 1 ||
  3274. tType == 4 ||
  3275. w.ateacher == userid,
  3276. }"
  3277. >
  3278. {{ JSON.parse(w.score).wScore }}分
  3279. </div>
  3280. <div
  3281. class="answerScore"
  3282. @click.stop="openScore(w)"
  3283. v-else-if="courseDetail.userid == userid"
  3284. :class="{
  3285. rightW:
  3286. w.userid == userid ||
  3287. tType == 1 ||
  3288. tType == 4 ||
  3289. w.ateacher == userid,
  3290. }"
  3291. >
  3292. 评分
  3293. </div>
  3294. <img
  3295. class="deleteImg"
  3296. src="../../assets/deleteworks.png"
  3297. v-if="
  3298. w.userid == userid || tType == 1 || tType == 4
  3299. "
  3300. @click.stop="deleteWorks(w.wid)"
  3301. alt
  3302. />
  3303. </div>
  3304. <div class="comment" style="min-width: 200px">
  3305. <div class="worksName">
  3306. <div
  3307. style="cursor: pointer"
  3308. @click="
  3309. openSname(w.sName, w.wid, toolIndex, w.userid)
  3310. "
  3311. >
  3312. {{ w.sName }}
  3313. </div>
  3314. </div>
  3315. <div class="commentList">
  3316. <div class="commentList">
  3317. <div
  3318. class="commentImg"
  3319. @click="
  3320. isLikes(w.wid, userid, 1, null, w.isLikes)
  3321. "
  3322. >
  3323. <img
  3324. :src="w.isLikes == true ? likes : noLikes"
  3325. alt=""
  3326. />
  3327. </div>
  3328. <div>{{ w.likesCount }}</div>
  3329. </div>
  3330. <div class="commentList" style="margin-right: 15px">
  3331. <div
  3332. class="commentImg"
  3333. @click="commentOther(w, toolIndex, wIndex)"
  3334. >
  3335. <img
  3336. src="../../assets/icon/comment/comment.png"
  3337. alt=""
  3338. />
  3339. </div>
  3340. <div>{{ w.commentCount }}</div>
  3341. </div>
  3342. </div>
  3343. </div>
  3344. </div>
  3345. </div>
  3346. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3347. 未提交
  3348. </div>
  3349. <div
  3350. class="noWorksS"
  3351. v-if="noWorksS && noWorksS[toolIndex].length"
  3352. >
  3353. <div
  3354. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3355. :key="sIndex"
  3356. class="noWorksName"
  3357. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3358. >
  3359. {{ s.student }}
  3360. </div>
  3361. </div>
  3362. </div>
  3363. <div
  3364. v-if="
  3365. tType &&
  3366. ((tType == 2 && sIsOpen == true) ||
  3367. tType == 1 ||
  3368. tType == 4) &&
  3369. tool.tool.indexOf(4) != -1 &&
  3370. (tool.askJson[0].answer ||
  3371. tool.askJson[0].answer === 0) &&
  3372. checkJson[toolIndex].length
  3373. "
  3374. class="xuan_right_box"
  3375. >
  3376. <div
  3377. class="tool_right_box"
  3378. v-for="(item, index) in tool.askJson"
  3379. :key="index"
  3380. >
  3381. <div>
  3382. <span
  3383. style="word-break: break-all; white-space: normal"
  3384. >{{ index + 1 + "、" + item.askstitle }}</span
  3385. >
  3386. </div>
  3387. <div class="right_box_xuan">
  3388. <span>正确率</span>
  3389. <span>{{
  3390. (checkJson[toolIndex][index].right
  3391. ? checkJson[toolIndex][index].right
  3392. : 0) + "%"
  3393. }}</span>
  3394. </div>
  3395. </div>
  3396. </div>
  3397. <div
  3398. class="xuan_right_box"
  3399. style="background: unset; padding: 0 10px"
  3400. v-if="
  3401. tType &&
  3402. ((tType == 2 && sIsOpen == true) ||
  3403. tType == 1 ||
  3404. tType == 4) &&
  3405. tool.tool.indexOf(4) != -1
  3406. "
  3407. >
  3408. <AskStatic
  3409. v-if="
  3410. worksStudent.length &&
  3411. worksStudent[toolIndex].length > 0
  3412. "
  3413. :askJSON="tool"
  3414. :checkJson="checkJson[toolIndex]"
  3415. ></AskStatic>
  3416. </div>
  3417. <div
  3418. v-if="
  3419. tType &&
  3420. ((tType == 2 && sIsOpen == true) ||
  3421. tType == 1 ||
  3422. tType == 4) &&
  3423. tool.tool.indexOf(4) != -1
  3424. "
  3425. class="worksBox"
  3426. >
  3427. <div
  3428. class="zuoyeYulan"
  3429. v-if="
  3430. worksStudent.length &&
  3431. worksStudent[toolIndex].length > 0
  3432. "
  3433. >
  3434. <div class="worksTop">
  3435. <div>作业预览</div>
  3436. <div
  3437. class="corOpen"
  3438. @click="contract(toolIndex)"
  3439. v-if="
  3440. worksStudent[toolIndex].length > 6 &&
  3441. isCloseList[toolIndex].isClose == 0
  3442. "
  3443. >
  3444. 收缩
  3445. </div>
  3446. <div
  3447. class="corOpen"
  3448. @click="contract(toolIndex)"
  3449. v-if="isCloseList[toolIndex].isClose == 1"
  3450. >
  3451. 展开
  3452. </div>
  3453. </div>
  3454. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3455. </div>
  3456. <div>
  3457. <div
  3458. class="worksDetailBox"
  3459. v-if="
  3460. worksStudent.length &&
  3461. worksStudent[toolIndex].length > 0
  3462. "
  3463. >
  3464. <div
  3465. v-for="(w, wIndex) in isCloseList[toolIndex]
  3466. .isClose == 0
  3467. ? worksStudent[toolIndex]
  3468. : worksStudent[toolIndex].slice(0, 6)"
  3469. :key="wIndex"
  3470. class="isWorksName2"
  3471. @click="
  3472. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3473. "
  3474. >
  3475. {{ w.sName }}
  3476. <img
  3477. class="deleteImg deleteImg2"
  3478. src="../../assets/deleteworks.png"
  3479. v-if="
  3480. w.userid == userid || tType == 1 || tType == 4
  3481. "
  3482. @click.stop="deleteWorks(w.wid)"
  3483. alt
  3484. />
  3485. </div>
  3486. <!-- <div class="works" style="
  3487. width: 200px;
  3488. height: 140px;
  3489. border-radius: 10px;
  3490. box-shadow: 0 0 6px 1px #dfdada;
  3491. overflow: hidden;
  3492. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3493. <div class="workImg">
  3494. <img src="../../assets/icon/works/noImg.png" @click="
  3495. openTools(
  3496. 4,
  3497. toolIndex,
  3498. taskCount,
  3499. w.works,
  3500. w.sName
  3501. )
  3502. " alt />
  3503. </div>
  3504. <div class="worksName">
  3505. <div>{{ w.sName }}</div>
  3506. <div>{{ w.time }}</div>
  3507. </div>
  3508. </div> -->
  3509. </div>
  3510. </div>
  3511. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3512. 未提交
  3513. </div>
  3514. <div
  3515. class="noWorksS"
  3516. v-if="noWorksS && noWorksS[toolIndex].length"
  3517. >
  3518. <div
  3519. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3520. :key="sIndex"
  3521. class="noWorksName"
  3522. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3523. >
  3524. {{ s.student }}
  3525. </div>
  3526. </div>
  3527. </div>
  3528. <div
  3529. v-if="
  3530. tType &&
  3531. ((tType == 2 && sIsOpen == true) ||
  3532. tType == 1 ||
  3533. tType == 4) &&
  3534. tool.tool.indexOf(45) != -1 &&
  3535. (tool.testJson.testJson[0].answer ||
  3536. tool.testJson.testJson[0].answer === 0) &&
  3537. checkJson[toolIndex].length
  3538. "
  3539. class="xuan_right_box"
  3540. >
  3541. <div
  3542. class="tool_right_box"
  3543. v-for="(item, index) in tool.testJson.testJson"
  3544. :key="index"
  3545. >
  3546. <div class="right_box_xuan" style="margin-right: 10px">
  3547. <span>正确率</span>
  3548. <span>{{
  3549. (checkJson[toolIndex][index].right
  3550. ? checkJson[toolIndex][index].right
  3551. : 0) + "%"
  3552. }}</span>
  3553. </div>
  3554. <div>
  3555. <span
  3556. style="word-break: break-all; white-space: normal"
  3557. >{{ index + 1 + "、" + item.teststitle }}</span
  3558. >
  3559. </div>
  3560. </div>
  3561. </div>
  3562. <div
  3563. class="xuan_right_box"
  3564. style="background: unset; padding: 0 10px; width: 91.5%"
  3565. v-if="
  3566. tType &&
  3567. ((tType == 2 && sIsOpen == true) ||
  3568. tType == 1 ||
  3569. tType == 4) &&
  3570. tool.tool.indexOf(45) != -1
  3571. "
  3572. >
  3573. <AskStatic2
  3574. v-if="
  3575. worksStudent.length &&
  3576. worksStudent[toolIndex].length > 0
  3577. "
  3578. :askJSON="tool"
  3579. :checkJson="checkJson[toolIndex]"
  3580. ></AskStatic2>
  3581. </div>
  3582. <div
  3583. v-if="
  3584. tType &&
  3585. ((tType == 2 && sIsOpen == true) ||
  3586. tType == 1 ||
  3587. tType == 4) &&
  3588. tool.tool.indexOf(45) != -1
  3589. "
  3590. class="worksBox"
  3591. >
  3592. <div
  3593. class="zuoyeYulan"
  3594. v-if="
  3595. worksStudent.length &&
  3596. worksStudent[toolIndex].length > 0
  3597. "
  3598. >
  3599. <div class="worksTop">
  3600. <div>作业预览</div>
  3601. <div
  3602. class="corOpen"
  3603. @click="contract(toolIndex)"
  3604. v-if="
  3605. worksStudent[toolIndex].length > 6 &&
  3606. isCloseList[toolIndex].isClose == 0
  3607. "
  3608. >
  3609. 收缩
  3610. </div>
  3611. <div
  3612. class="corOpen"
  3613. @click="contract(toolIndex)"
  3614. v-if="isCloseList[toolIndex].isClose == 1"
  3615. >
  3616. 展开
  3617. </div>
  3618. </div>
  3619. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3620. </div>
  3621. <div>
  3622. <div
  3623. class="worksDetailBox"
  3624. v-if="
  3625. worksStudent.length &&
  3626. worksStudent[toolIndex].length > 0
  3627. "
  3628. >
  3629. <div
  3630. v-for="(w, wIndex) in isCloseList[toolIndex]
  3631. .isClose == 0
  3632. ? worksStudent[toolIndex]
  3633. : worksStudent[toolIndex].slice(0, 6)"
  3634. :key="wIndex"
  3635. class="isWorksName2"
  3636. @click="
  3637. openTools(
  3638. 45,
  3639. toolIndex,
  3640. taskCount,
  3641. w.works,
  3642. w.sName
  3643. )
  3644. "
  3645. >
  3646. {{ w.sName }}
  3647. <img
  3648. class="deleteImg deleteImg2"
  3649. src="../../assets/deleteworks.png"
  3650. v-if="
  3651. w.userid == userid || tType == 1 || tType == 4
  3652. "
  3653. @click.stop="deleteWorks(w.wid)"
  3654. alt
  3655. />
  3656. </div>
  3657. </div>
  3658. </div>
  3659. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3660. 未提交
  3661. </div>
  3662. <div
  3663. class="noWorksS"
  3664. v-if="noWorksS && noWorksS[toolIndex].length"
  3665. >
  3666. <div
  3667. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3668. :key="sIndex"
  3669. class="noWorksName"
  3670. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3671. >
  3672. {{ s.student }}
  3673. </div>
  3674. </div>
  3675. </div>
  3676. <div
  3677. v-if="
  3678. tType &&
  3679. ((tType == 2 && sIsOpen == true) ||
  3680. tType == 1 ||
  3681. tType == 4) &&
  3682. tool.tool.indexOf(15) != -1
  3683. "
  3684. class="worksBox"
  3685. >
  3686. <div
  3687. class="zuoyeYulan"
  3688. v-if="
  3689. worksStudent.length &&
  3690. worksStudent[toolIndex].length > 0
  3691. "
  3692. >
  3693. <div class="worksTop">
  3694. <div>作业预览</div>
  3695. <div
  3696. class="corOpen"
  3697. @click="contract(toolIndex)"
  3698. v-if="
  3699. worksStudent[toolIndex].length > 6 &&
  3700. isCloseList[toolIndex].isClose == 0
  3701. "
  3702. >
  3703. 收缩
  3704. </div>
  3705. <div
  3706. class="corOpen"
  3707. @click="contract(toolIndex)"
  3708. v-if="isCloseList[toolIndex].isClose == 1"
  3709. >
  3710. 展开
  3711. </div>
  3712. </div>
  3713. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3714. </div>
  3715. <div
  3716. class="group_workBox"
  3717. v-for="(g, gindex) in courseGroup.group"
  3718. :key="gindex"
  3719. >
  3720. <div class="group_box">
  3721. <div class="group_title">
  3722. <el-tooltip
  3723. class="item"
  3724. effect="light"
  3725. :content="g.name"
  3726. placement="top"
  3727. >
  3728. <div class="group_name">{{ g.name }}</div>
  3729. </el-tooltip>
  3730. </div>
  3731. <div
  3732. class="group_work"
  3733. v-if="
  3734. g.works &&
  3735. g.works.length &&
  3736. g.works[toolIndex].length
  3737. "
  3738. >
  3739. <div
  3740. class="works"
  3741. v-for="(w, wIndex) in g.works[toolIndex]"
  3742. :key="wIndex"
  3743. >
  3744. <div
  3745. class="workImg"
  3746. style="
  3747. border-radius: 15px;
  3748. box-shadow: #eee 0px 0px 5px 5px;
  3749. "
  3750. >
  3751. <div
  3752. class="answerBg"
  3753. style="border-radius: 15px 15px 0 0"
  3754. @click="
  3755. commentOther(w, toolIndex, wIndex, null, g.id)
  3756. "
  3757. >
  3758. <div class="answerContent">
  3759. {{ JSON.parse(w.works)[0].answer }}
  3760. </div>
  3761. <div
  3762. class="answerScore"
  3763. v-if="w.score"
  3764. @click.stop="openScore(w)"
  3765. :class="{
  3766. rightW:
  3767. w.userid == userid ||
  3768. tType == 1 ||
  3769. tType == 4,
  3770. }"
  3771. >
  3772. {{ JSON.parse(w.score).wScore }}分
  3773. </div>
  3774. <div
  3775. class="answerScore"
  3776. @click.stop="openScore(w)"
  3777. v-else-if="courseDetail.userid == userid"
  3778. :class="{
  3779. rightW:
  3780. w.userid == userid ||
  3781. tType == 1 ||
  3782. tType == 4,
  3783. }"
  3784. >
  3785. 评分
  3786. </div>
  3787. <img
  3788. class="deleteImg"
  3789. src="../../assets/deleteworks.png"
  3790. v-if="
  3791. w.userid == userid ||
  3792. tType == 1 ||
  3793. tType == 4
  3794. "
  3795. @click.stop="deleteWorks(w.wid)"
  3796. alt
  3797. />
  3798. </div>
  3799. <div class="comment">
  3800. <div class="worksName">
  3801. <div>{{ w.sName }}</div>
  3802. </div>
  3803. <div class="commentList">
  3804. <div
  3805. class="commentImg"
  3806. @click="
  3807. isLikes(w.wid, userid, 1, null, w.isLikes)
  3808. "
  3809. >
  3810. <img
  3811. :src="w.isLikes == true ? likes : noLikes"
  3812. alt=""
  3813. />
  3814. </div>
  3815. <div>{{ w.likesCount }}</div>
  3816. </div>
  3817. <div
  3818. class="commentList"
  3819. style="margin-right: 15px"
  3820. >
  3821. <div
  3822. class="commentImg"
  3823. @click="
  3824. commentOther(
  3825. w,
  3826. toolIndex,
  3827. wIndex,
  3828. null,
  3829. g.id
  3830. )
  3831. "
  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="group_work" v-else>暂无提交作业</div>
  3845. </div>
  3846. </div>
  3847. <div
  3848. class="worksDetailBox"
  3849. v-if="
  3850. worksStudent.length &&
  3851. worksStudent[toolIndex].length > 0
  3852. "
  3853. >
  3854. <div
  3855. class="works"
  3856. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3857. 0
  3858. ? worksStudent[toolIndex]
  3859. : worksStudent[toolIndex].slice(0, 6)"
  3860. :key="wIndex"
  3861. >
  3862. <div
  3863. class="workImg"
  3864. style="
  3865. border-radius: 15px;
  3866. box-shadow: #eee 0px 0px 5px 5px;
  3867. "
  3868. >
  3869. <!-- <img
  3870. src="../../assets/icon/works/noImg.png"
  3871. @click="openTools(15, toolIndex, taskCount, w.works)"
  3872. alt=""
  3873. />-->
  3874. <div
  3875. class="answerBg"
  3876. style="border-radius: 15px 15px 0 0"
  3877. @click="commentOther(w, toolIndex, wIndex)"
  3878. >
  3879. <!-- <div>{{ w.sName }}</div> -->
  3880. <div class="answerContent">
  3881. {{ JSON.parse(w.works)[0].answer }}
  3882. </div>
  3883. <div
  3884. class="answerScore"
  3885. v-if="w.score"
  3886. @click.stop="openScore(w)"
  3887. :class="{
  3888. rightW:
  3889. w.userid == userid ||
  3890. tType == 1 ||
  3891. tType == 4,
  3892. }"
  3893. >
  3894. {{ JSON.parse(w.score).wScore }}分
  3895. </div>
  3896. <div
  3897. class="answerScore"
  3898. @click.stop="openScore(w)"
  3899. v-else-if="courseDetail.userid == userid"
  3900. :class="{
  3901. rightW:
  3902. w.userid == userid ||
  3903. tType == 1 ||
  3904. tType == 4,
  3905. }"
  3906. >
  3907. 评分
  3908. </div>
  3909. <img
  3910. class="deleteImg"
  3911. src="../../assets/deleteworks.png"
  3912. v-if="
  3913. w.userid == userid || tType == 1 || tType == 4
  3914. "
  3915. @click.stop="deleteWorks(w.wid)"
  3916. alt
  3917. />
  3918. </div>
  3919. <div class="comment">
  3920. <div class="worksName">
  3921. <div>{{ w.sName }}</div>
  3922. </div>
  3923. <div class="commentList">
  3924. <div
  3925. class="commentImg"
  3926. @click="
  3927. isLikes(w.wid, userid, 1, null, w.isLikes)
  3928. "
  3929. >
  3930. <img
  3931. :src="w.isLikes == true ? likes : noLikes"
  3932. alt=""
  3933. />
  3934. </div>
  3935. <div>{{ w.likesCount }}</div>
  3936. </div>
  3937. <div class="commentList" style="margin-right: 15px">
  3938. <div
  3939. class="commentImg"
  3940. @click="commentOther(w, toolIndex, wIndex)"
  3941. >
  3942. <img
  3943. src="../../assets/icon/comment/comment.png"
  3944. alt=""
  3945. />
  3946. </div>
  3947. <div>{{ w.commentCount }}</div>
  3948. </div>
  3949. </div>
  3950. </div>
  3951. </div>
  3952. </div>
  3953. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3954. 未提交
  3955. </div>
  3956. <div
  3957. class="noWorksS"
  3958. v-if="noWorksS && noWorksS[toolIndex].length"
  3959. >
  3960. <div
  3961. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3962. :key="sIndex"
  3963. class="noWorksName"
  3964. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  3965. >
  3966. {{ s.student }}
  3967. </div>
  3968. </div>
  3969. </div>
  3970. <div
  3971. v-if="
  3972. tType &&
  3973. ((tType == 2 && sIsOpen == true) ||
  3974. tType == 1 ||
  3975. tType == 4) &&
  3976. tool.tool.indexOf(1) != -1
  3977. "
  3978. class="worksBox"
  3979. >
  3980. <div
  3981. class="zuoyeYulan"
  3982. v-if="
  3983. worksStudent.length &&
  3984. worksStudent[toolIndex].length > 0
  3985. "
  3986. >
  3987. <div class="worksTop">
  3988. <div>作业预览</div>
  3989. <div
  3990. class="corOpen"
  3991. @click="contract(toolIndex)"
  3992. v-if="
  3993. worksStudent[toolIndex].length > 6 &&
  3994. isCloseList[toolIndex].isClose == 0
  3995. "
  3996. >
  3997. 收缩
  3998. </div>
  3999. <div
  4000. class="corOpen"
  4001. @click="contract(toolIndex)"
  4002. v-if="isCloseList[toolIndex].isClose == 1"
  4003. >
  4004. 展开
  4005. </div>
  4006. </div>
  4007. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4008. </div>
  4009. <div
  4010. class="group_workBox"
  4011. v-for="(g, gindex) in courseGroup.group"
  4012. :key="gindex"
  4013. >
  4014. <div class="group_box">
  4015. <div class="group_title">
  4016. <el-tooltip
  4017. class="item"
  4018. effect="light"
  4019. :content="g.name"
  4020. placement="top"
  4021. >
  4022. <div class="group_name">{{ g.name }}</div>
  4023. </el-tooltip>
  4024. </div>
  4025. <div
  4026. class="group_work"
  4027. v-if="
  4028. g.works &&
  4029. g.works.length &&
  4030. g.works[toolIndex].length
  4031. "
  4032. >
  4033. <div
  4034. class="works"
  4035. style="
  4036. width: 200px;
  4037. height: 140px;
  4038. margin: 10px 10px 10px 0;
  4039. border-radius: 15px;
  4040. box-shadow: 0 0 6px 1px #dfdada;
  4041. "
  4042. v-for="(w, wIndex) in g.works[toolIndex]"
  4043. :key="wIndex"
  4044. :class="w.type == 1 ? 'isTypeOne' : ''"
  4045. >
  4046. <div class="workImg">
  4047. <img
  4048. :src="w.works"
  4049. @click="previewImg(w.works)"
  4050. alt
  4051. />
  4052. <div
  4053. class="answerScore"
  4054. v-if="w.score"
  4055. @click.stop="openScore(w)"
  4056. :class="{
  4057. rightW:
  4058. w.userid == userid ||
  4059. tType == 1 ||
  4060. tType == 4,
  4061. }"
  4062. >
  4063. {{ JSON.parse(w.score).wScore }}分
  4064. </div>
  4065. <div
  4066. class="answerScore"
  4067. @click.stop="openScore(w)"
  4068. v-else-if="courseDetail.userid == userid"
  4069. :class="{
  4070. rightW:
  4071. w.userid == userid ||
  4072. tType == 1 ||
  4073. tType == 4,
  4074. }"
  4075. >
  4076. 评分
  4077. </div>
  4078. <img
  4079. class="deleteImg"
  4080. src="../../assets/deleteworks.png"
  4081. v-if="
  4082. w.userid == userid || tType == 1 || tType == 4
  4083. "
  4084. @click.stop="deleteWorks(w.wid)"
  4085. alt
  4086. />
  4087. </div>
  4088. <div class="comment" style="min-width: 200px">
  4089. <div class="worksName">
  4090. <div>{{ w.sName }}</div>
  4091. </div>
  4092. <div class="commentList">
  4093. <div class="commentList">
  4094. <div
  4095. class="commentImg"
  4096. @click="
  4097. isLikes(w.wid, userid, 1, null, w.isLikes)
  4098. "
  4099. >
  4100. <img
  4101. :src="w.isLikes == true ? likes : noLikes"
  4102. alt=""
  4103. />
  4104. </div>
  4105. <div>{{ w.likesCount }}</div>
  4106. </div>
  4107. <div
  4108. class="commentList"
  4109. style="margin-right: 15px"
  4110. >
  4111. <div
  4112. class="commentImg"
  4113. @click="
  4114. commentOther(
  4115. w,
  4116. toolIndex,
  4117. wIndex,
  4118. null,
  4119. g.id
  4120. )
  4121. "
  4122. >
  4123. <img
  4124. src="../../assets/icon/comment/comment.png"
  4125. alt=""
  4126. />
  4127. </div>
  4128. <div>{{ w.commentCount }}</div>
  4129. </div>
  4130. </div>
  4131. </div>
  4132. </div>
  4133. </div>
  4134. <div class="group_work" v-else>暂无提交作业</div>
  4135. </div>
  4136. </div>
  4137. <div
  4138. class="worksDetailBox"
  4139. v-if="
  4140. worksStudent.length &&
  4141. worksStudent[toolIndex].length > 0
  4142. "
  4143. >
  4144. <div
  4145. class="works"
  4146. style="
  4147. width: 200px;
  4148. height: 140px;
  4149. margin: 10px 10px 10px 0;
  4150. border-radius: 15px;
  4151. box-shadow: 0 0 6px 1px #dfdada;
  4152. "
  4153. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4154. 0
  4155. ? worksStudent[toolIndex]
  4156. : worksStudent[toolIndex].slice(0, 6)"
  4157. :key="wIndex"
  4158. >
  4159. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4160. <div class="workImg">
  4161. <img
  4162. :src="w.works"
  4163. @click="previewImg(w.works)"
  4164. alt
  4165. />
  4166. <div
  4167. class="answerScore"
  4168. v-if="w.score"
  4169. @click.stop="openScore(w)"
  4170. :class="{
  4171. rightW:
  4172. w.userid == userid || tType == 1 || tType == 4,
  4173. }"
  4174. >
  4175. {{ JSON.parse(w.score).wScore }}分
  4176. </div>
  4177. <div
  4178. class="answerScore"
  4179. @click.stop="openScore(w)"
  4180. v-else-if="courseDetail.userid == userid"
  4181. :class="{
  4182. rightW:
  4183. w.userid == userid || tType == 1 || tType == 4,
  4184. }"
  4185. >
  4186. 评分
  4187. </div>
  4188. <img
  4189. class="deleteImg"
  4190. src="../../assets/deleteworks.png"
  4191. v-if="
  4192. w.userid == userid || tType == 1 || tType == 4
  4193. "
  4194. @click.stop="deleteWorks(w.wid)"
  4195. alt
  4196. />
  4197. </div>
  4198. <div class="comment" style="min-width: 200px">
  4199. <div class="worksName">
  4200. <div>{{ w.sName }}</div>
  4201. </div>
  4202. <div class="commentList">
  4203. <div class="commentList">
  4204. <div
  4205. class="commentImg"
  4206. @click="
  4207. isLikes(w.wid, userid, 1, null, w.isLikes)
  4208. "
  4209. >
  4210. <img
  4211. :src="w.isLikes == true ? likes : noLikes"
  4212. alt=""
  4213. />
  4214. </div>
  4215. <div>{{ w.likesCount }}</div>
  4216. </div>
  4217. <div class="commentList" style="margin-right: 15px">
  4218. <div
  4219. class="commentImg"
  4220. @click="commentOther(w, toolIndex, wIndex)"
  4221. >
  4222. <img
  4223. src="../../assets/icon/comment/comment.png"
  4224. alt=""
  4225. />
  4226. </div>
  4227. <div>{{ w.commentCount }}</div>
  4228. </div>
  4229. </div>
  4230. </div>
  4231. </div>
  4232. </div>
  4233. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4234. 未提交
  4235. </div>
  4236. <div
  4237. class="noWorksS"
  4238. v-if="noWorksS && noWorksS[toolIndex].length"
  4239. >
  4240. <div
  4241. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4242. :key="sIndex"
  4243. class="noWorksName"
  4244. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4245. >
  4246. {{ s.student }}
  4247. </div>
  4248. </div>
  4249. </div>
  4250. <div
  4251. v-if="
  4252. tType &&
  4253. ((tType == 2 && sIsOpen == true) ||
  4254. tType == 1 ||
  4255. tType == 4) &&
  4256. tool.tool.indexOf(3) != -1
  4257. "
  4258. class="worksBox"
  4259. >
  4260. <div
  4261. class="zuoyeYulan"
  4262. v-if="
  4263. worksStudent.length &&
  4264. worksStudent[toolIndex].length > 0
  4265. "
  4266. >
  4267. <div class="worksTop">
  4268. <div>作业预览</div>
  4269. <div
  4270. class="corOpen"
  4271. @click="contract(toolIndex)"
  4272. v-if="
  4273. worksStudent[toolIndex].length > 6 &&
  4274. isCloseList[toolIndex].isClose == 0
  4275. "
  4276. >
  4277. 收缩
  4278. </div>
  4279. <div
  4280. class="corOpen"
  4281. @click="contract(toolIndex)"
  4282. v-if="isCloseList[toolIndex].isClose == 1"
  4283. >
  4284. 展开
  4285. </div>
  4286. </div>
  4287. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4288. </div>
  4289. <div
  4290. class="group_workBox"
  4291. v-for="(g, gindex) in courseGroup.group"
  4292. :key="gindex"
  4293. >
  4294. <div class="group_box">
  4295. <div class="group_title">
  4296. <el-tooltip
  4297. class="item"
  4298. effect="light"
  4299. :content="g.name"
  4300. placement="top"
  4301. >
  4302. <div class="group_name">{{ g.name }}</div>
  4303. </el-tooltip>
  4304. </div>
  4305. <div
  4306. class="group_work"
  4307. v-if="
  4308. g.works &&
  4309. g.works.length &&
  4310. g.works[toolIndex].length
  4311. "
  4312. >
  4313. <div
  4314. class="works"
  4315. style="
  4316. width: 200px;
  4317. height: 140px;
  4318. margin: 10px 10px 10px 0;
  4319. border-radius: 15px;
  4320. box-shadow: 0 0 6px 1px #dfdada;
  4321. "
  4322. v-for="(w, wIndex) in g.works[toolIndex]"
  4323. :key="wIndex"
  4324. :class="w.type == 1 ? 'isTypeOne' : ''"
  4325. >
  4326. <div class="workImg">
  4327. <img
  4328. :src="w.works"
  4329. @click="previewImg(w.works)"
  4330. alt
  4331. />
  4332. <div
  4333. class="answerScore"
  4334. v-if="w.score"
  4335. @click.stop="openScore(w)"
  4336. :class="{
  4337. rightW:
  4338. w.userid == userid ||
  4339. tType == 1 ||
  4340. tType == 4,
  4341. }"
  4342. >
  4343. {{ JSON.parse(w.score).wScore }}分
  4344. </div>
  4345. <div
  4346. class="answerScore"
  4347. @click.stop="openScore(w)"
  4348. v-else-if="courseDetail.userid == userid"
  4349. :class="{
  4350. rightW:
  4351. w.userid == userid ||
  4352. tType == 1 ||
  4353. tType == 4,
  4354. }"
  4355. >
  4356. 评分
  4357. </div>
  4358. <img
  4359. class="deleteImg"
  4360. src="../../assets/deleteworks.png"
  4361. v-if="
  4362. w.userid == userid || tType == 1 || tType == 4
  4363. "
  4364. @click.stop="deleteWorks(w.wid)"
  4365. alt
  4366. />
  4367. </div>
  4368. <div class="comment" style="min-width: 200px">
  4369. <div class="worksName">
  4370. <div>{{ w.sName }}</div>
  4371. </div>
  4372. <div class="commentList">
  4373. <div class="commentList">
  4374. <div
  4375. class="commentImg"
  4376. @click="
  4377. isLikes(w.wid, userid, 1, null, w.isLikes)
  4378. "
  4379. >
  4380. <img
  4381. :src="w.isLikes == true ? likes : noLikes"
  4382. alt=""
  4383. />
  4384. </div>
  4385. <div>{{ w.likesCount }}</div>
  4386. </div>
  4387. <div
  4388. class="commentList"
  4389. style="margin-right: 15px"
  4390. >
  4391. <div
  4392. class="commentImg"
  4393. @click="
  4394. commentOther(
  4395. w,
  4396. toolIndex,
  4397. wIndex,
  4398. null,
  4399. g.id
  4400. )
  4401. "
  4402. >
  4403. <img
  4404. src="../../assets/icon/comment/comment.png"
  4405. alt=""
  4406. />
  4407. </div>
  4408. <div>{{ w.commentCount }}</div>
  4409. </div>
  4410. </div>
  4411. </div>
  4412. </div>
  4413. </div>
  4414. <div class="group_work" v-else>暂无提交作业</div>
  4415. </div>
  4416. </div>
  4417. <div
  4418. class="worksDetailBox"
  4419. v-if="
  4420. worksStudent.length &&
  4421. worksStudent[toolIndex].length > 0
  4422. "
  4423. >
  4424. <div
  4425. class="works"
  4426. style="
  4427. width: 200px;
  4428. height: 140px;
  4429. margin: 10px 10px 10px 0;
  4430. border-radius: 15px;
  4431. box-shadow: 0 0 6px 1px #dfdada;
  4432. "
  4433. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4434. 0
  4435. ? worksStudent[toolIndex]
  4436. : worksStudent[toolIndex].slice(0, 6)"
  4437. :key="wIndex"
  4438. >
  4439. <!-- @click="previewImg(w.works)" -->
  4440. <div class="workImg">
  4441. <img
  4442. :src="w.works"
  4443. @click="previewImg(w.works)"
  4444. alt
  4445. />
  4446. <div
  4447. class="answerScore"
  4448. v-if="w.score"
  4449. @click.stop="openScore(w)"
  4450. :class="{
  4451. rightW:
  4452. w.userid == userid || tType == 1 || tType == 4,
  4453. }"
  4454. >
  4455. {{ JSON.parse(w.score).wScore }}分
  4456. </div>
  4457. <div
  4458. class="answerScore"
  4459. @click.stop="openScore(w)"
  4460. v-else-if="courseDetail.userid == userid"
  4461. :class="{
  4462. rightW:
  4463. w.userid == userid || tType == 1 || tType == 4,
  4464. }"
  4465. >
  4466. 评分
  4467. </div>
  4468. <img
  4469. class="deleteImg"
  4470. src="../../assets/deleteworks.png"
  4471. v-if="
  4472. w.userid == userid || tType == 1 || tType == 4
  4473. "
  4474. @click.stop="deleteWorks(w.wid)"
  4475. alt
  4476. />
  4477. </div>
  4478. <div class="comment" style="min-width: 200px">
  4479. <div class="worksName">
  4480. <div>{{ w.sName }}</div>
  4481. </div>
  4482. <div class="commentList">
  4483. <div class="commentList">
  4484. <div
  4485. class="commentImg"
  4486. @click="
  4487. isLikes(w.wid, userid, 1, null, w.isLikes)
  4488. "
  4489. >
  4490. <img
  4491. :src="w.isLikes == true ? likes : noLikes"
  4492. alt=""
  4493. />
  4494. </div>
  4495. <div>{{ w.likesCount }}</div>
  4496. </div>
  4497. <div class="commentList" style="margin-right: 15px">
  4498. <div
  4499. class="commentImg"
  4500. @click="commentOther(w, toolIndex, wIndex)"
  4501. >
  4502. <img
  4503. src="../../assets/icon/comment/comment.png"
  4504. alt=""
  4505. />
  4506. </div>
  4507. <div>{{ w.commentCount }}</div>
  4508. </div>
  4509. </div>
  4510. </div>
  4511. </div>
  4512. </div>
  4513. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4514. 未提交
  4515. </div>
  4516. <div
  4517. class="noWorksS"
  4518. v-if="noWorksS && noWorksS[toolIndex].length"
  4519. >
  4520. <div
  4521. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4522. :key="sIndex"
  4523. class="noWorksName"
  4524. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4525. >
  4526. {{ s.student }}
  4527. </div>
  4528. </div>
  4529. </div>
  4530. <div
  4531. v-if="
  4532. tType &&
  4533. ((tType == 2 && sIsOpen == true) ||
  4534. tType == 1 ||
  4535. tType == 4) &&
  4536. tool.tool.indexOf(6) != -1
  4537. "
  4538. class="worksBox"
  4539. >
  4540. <div
  4541. class="zuoyeYulan"
  4542. v-if="
  4543. worksStudent.length &&
  4544. worksStudent[toolIndex].length > 0
  4545. "
  4546. >
  4547. <div class="worksTop">
  4548. <div>作业预览</div>
  4549. <div
  4550. class="corOpen"
  4551. @click="contract(toolIndex)"
  4552. v-if="
  4553. worksStudent[toolIndex].length > 6 &&
  4554. isCloseList[toolIndex].isClose == 0
  4555. "
  4556. >
  4557. 收缩
  4558. </div>
  4559. <div
  4560. class="corOpen"
  4561. @click="contract(toolIndex)"
  4562. v-if="isCloseList[toolIndex].isClose == 1"
  4563. >
  4564. 展开
  4565. </div>
  4566. </div>
  4567. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4568. </div>
  4569. <div
  4570. class="group_workBox"
  4571. v-for="(g, gindex) in courseGroup.group"
  4572. :key="gindex"
  4573. >
  4574. <div class="group_box">
  4575. <div class="group_title">
  4576. <el-tooltip
  4577. class="item"
  4578. effect="light"
  4579. :content="g.name"
  4580. placement="top"
  4581. >
  4582. <div class="group_name">{{ g.name }}</div>
  4583. </el-tooltip>
  4584. </div>
  4585. <div
  4586. class="group_work"
  4587. v-if="
  4588. g.works &&
  4589. g.works.length &&
  4590. g.works[toolIndex].length
  4591. "
  4592. >
  4593. <div
  4594. class="works"
  4595. style="
  4596. width: 200px;
  4597. height: 140px;
  4598. margin: 10px 10px 10px 0;
  4599. border-radius: 15px;
  4600. box-shadow: 0 0 6px 1px #dfdada;
  4601. "
  4602. v-for="(w, wIndex) in g.works[toolIndex]"
  4603. :key="wIndex"
  4604. :class="w.type == 1 ? 'isTypeOne' : ''"
  4605. >
  4606. <div class="workImg">
  4607. <img
  4608. :src="w.works"
  4609. @click="previewImg(w.works)"
  4610. alt
  4611. />
  4612. <div
  4613. class="answerScore"
  4614. v-if="w.score"
  4615. @click.stop="openScore(w)"
  4616. :class="{
  4617. rightW:
  4618. w.userid == userid ||
  4619. tType == 1 ||
  4620. tType == 4,
  4621. }"
  4622. >
  4623. {{ JSON.parse(w.score).wScore }}分
  4624. </div>
  4625. <div
  4626. class="answerScore"
  4627. @click.stop="openScore(w)"
  4628. v-else-if="courseDetail.userid == userid"
  4629. :class="{
  4630. rightW:
  4631. w.userid == userid ||
  4632. tType == 1 ||
  4633. tType == 4,
  4634. }"
  4635. >
  4636. 评分
  4637. </div>
  4638. <img
  4639. class="deleteImg"
  4640. src="../../assets/deleteworks.png"
  4641. v-if="
  4642. w.userid == userid || tType == 1 || tType == 4
  4643. "
  4644. @click.stop="deleteWorks(w.wid)"
  4645. alt
  4646. />
  4647. </div>
  4648. <div class="comment" style="min-width: 200px">
  4649. <div class="worksName">
  4650. <div>{{ w.sName }}</div>
  4651. </div>
  4652. <div class="commentList">
  4653. <div class="commentList">
  4654. <div
  4655. class="commentImg"
  4656. @click="
  4657. isLikes(w.wid, userid, 1, null, w.isLikes)
  4658. "
  4659. >
  4660. <img
  4661. :src="w.isLikes == true ? likes : noLikes"
  4662. alt=""
  4663. />
  4664. </div>
  4665. <div>{{ w.likesCount }}</div>
  4666. </div>
  4667. <div
  4668. class="commentList"
  4669. style="margin-right: 15px"
  4670. >
  4671. <div
  4672. class="commentImg"
  4673. @click="
  4674. commentOther(
  4675. w,
  4676. toolIndex,
  4677. wIndex,
  4678. null,
  4679. g.id
  4680. )
  4681. "
  4682. >
  4683. <img
  4684. src="../../assets/icon/comment/comment.png"
  4685. alt=""
  4686. />
  4687. </div>
  4688. <div>{{ w.commentCount }}</div>
  4689. </div>
  4690. </div>
  4691. </div>
  4692. </div>
  4693. </div>
  4694. <div class="group_work" v-else>暂无提交作业</div>
  4695. </div>
  4696. </div>
  4697. <div
  4698. class="worksDetailBox"
  4699. v-if="
  4700. worksStudent.length &&
  4701. worksStudent[toolIndex].length > 0
  4702. "
  4703. >
  4704. <div
  4705. class="works"
  4706. style="
  4707. width: 200px;
  4708. height: 140px;
  4709. margin: 10px 10px 10px 0;
  4710. border-radius: 15px;
  4711. box-shadow: 0 0 6px 1px #dfdada;
  4712. "
  4713. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4714. 0
  4715. ? worksStudent[toolIndex]
  4716. : worksStudent[toolIndex].slice(0, 6)"
  4717. :key="wIndex"
  4718. >
  4719. <!-- @click="previewImg(w.works)" -->
  4720. <div class="workImg">
  4721. <img
  4722. :src="w.works"
  4723. @click="previewImg(w.works)"
  4724. alt
  4725. />
  4726. <div
  4727. class="answerScore"
  4728. v-if="w.score"
  4729. @click.stop="openScore(w)"
  4730. :class="{
  4731. rightW:
  4732. w.userid == userid || tType == 1 || tType == 4,
  4733. }"
  4734. >
  4735. {{ JSON.parse(w.score).wScore }}分
  4736. </div>
  4737. <div
  4738. class="answerScore"
  4739. @click.stop="openScore(w)"
  4740. v-else-if="courseDetail.userid == userid"
  4741. :class="{
  4742. rightW:
  4743. w.userid == userid || tType == 1 || tType == 4,
  4744. }"
  4745. >
  4746. 评分
  4747. </div>
  4748. <img
  4749. class="deleteImg"
  4750. src="../../assets/deleteworks.png"
  4751. v-if="
  4752. w.userid == userid || tType == 1 || tType == 4
  4753. "
  4754. @click.stop="deleteWorks(w.wid)"
  4755. alt
  4756. />
  4757. </div>
  4758. <div class="comment" style="min-width: 200px">
  4759. <div class="worksName">
  4760. <div>{{ w.sName }}</div>
  4761. </div>
  4762. <div class="commentList">
  4763. <div class="commentList">
  4764. <div
  4765. class="commentImg"
  4766. @click="
  4767. isLikes(w.wid, userid, 1, null, w.isLikes)
  4768. "
  4769. >
  4770. <img
  4771. :src="w.isLikes == true ? likes : noLikes"
  4772. alt=""
  4773. />
  4774. </div>
  4775. <div>{{ w.likesCount }}</div>
  4776. </div>
  4777. <div class="commentList" style="margin-right: 15px">
  4778. <div
  4779. class="commentImg"
  4780. @click="commentOther(w, toolIndex, wIndex)"
  4781. >
  4782. <img
  4783. src="../../assets/icon/comment/comment.png"
  4784. alt=""
  4785. />
  4786. </div>
  4787. <div>{{ w.commentCount }}</div>
  4788. </div>
  4789. </div>
  4790. </div>
  4791. </div>
  4792. </div>
  4793. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4794. 未提交
  4795. </div>
  4796. <div
  4797. class="noWorksS"
  4798. v-if="noWorksS && noWorksS[toolIndex].length"
  4799. >
  4800. <div
  4801. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4802. :key="sIndex"
  4803. class="noWorksName"
  4804. >
  4805. {{ s.student }}
  4806. </div>
  4807. </div>
  4808. </div>
  4809. <div
  4810. v-if="
  4811. tType &&
  4812. ((tType == 2 && sIsOpen == true) ||
  4813. tType == 1 ||
  4814. tType == 4) &&
  4815. tool.tool.indexOf(7) != -1
  4816. "
  4817. class="worksBox"
  4818. >
  4819. <div
  4820. class="zuoyeYulan"
  4821. v-if="
  4822. worksStudent.length &&
  4823. worksStudent[toolIndex].length > 0
  4824. "
  4825. >
  4826. <div class="worksTop">
  4827. <div>作业预览</div>
  4828. <div
  4829. class="corOpen"
  4830. @click="contract(toolIndex)"
  4831. v-if="
  4832. worksStudent[toolIndex].length > 6 &&
  4833. isCloseList[toolIndex].isClose == 0
  4834. "
  4835. >
  4836. 收缩
  4837. </div>
  4838. <div
  4839. class="corOpen"
  4840. @click="contract(toolIndex)"
  4841. v-if="isCloseList[toolIndex].isClose == 1"
  4842. >
  4843. 展开
  4844. </div>
  4845. </div>
  4846. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4847. </div>
  4848. <div
  4849. class="group_workBox"
  4850. v-for="(g, gindex) in courseGroup.group"
  4851. :key="gindex"
  4852. >
  4853. <div class="group_box">
  4854. <div class="group_title">
  4855. <el-tooltip
  4856. class="item"
  4857. effect="light"
  4858. :content="g.name"
  4859. placement="top"
  4860. >
  4861. <div class="group_name">{{ g.name }}</div>
  4862. </el-tooltip>
  4863. </div>
  4864. <div
  4865. class="group_work"
  4866. v-if="
  4867. g.works &&
  4868. g.works.length &&
  4869. g.works[toolIndex].length
  4870. "
  4871. >
  4872. <div
  4873. class="works"
  4874. style="
  4875. width: 200px;
  4876. height: 140px;
  4877. margin: 10px 10px 10px 0;
  4878. border-radius: 15px;
  4879. box-shadow: 0 0 6px 1px #dfdada;
  4880. "
  4881. v-for="(w, wIndex) in g.works[toolIndex]"
  4882. :key="wIndex"
  4883. :class="w.type == 1 ? 'isTypeOne' : ''"
  4884. >
  4885. <div class="workImg">
  4886. <img
  4887. :src="w.works"
  4888. @click="previewImg(w.works)"
  4889. alt
  4890. />
  4891. <div
  4892. class="answerScore"
  4893. v-if="w.score"
  4894. @click.stop="openScore(w)"
  4895. :class="{
  4896. rightW:
  4897. w.userid == userid ||
  4898. tType == 1 ||
  4899. tType == 4,
  4900. }"
  4901. >
  4902. {{ JSON.parse(w.score).wScore }}分
  4903. </div>
  4904. <div
  4905. class="answerScore"
  4906. @click.stop="openScore(w)"
  4907. v-else-if="courseDetail.userid == userid"
  4908. :class="{
  4909. rightW:
  4910. w.userid == userid ||
  4911. tType == 1 ||
  4912. tType == 4,
  4913. }"
  4914. >
  4915. 评分
  4916. </div>
  4917. <img
  4918. class="deleteImg"
  4919. src="../../assets/deleteworks.png"
  4920. v-if="
  4921. w.userid == userid || tType == 1 || tType == 4
  4922. "
  4923. @click.stop="deleteWorks(w.wid)"
  4924. alt
  4925. />
  4926. </div>
  4927. <div class="comment" style="min-width: 200px">
  4928. <div class="worksName">
  4929. <div>{{ w.sName }}</div>
  4930. </div>
  4931. <div class="commentList">
  4932. <div class="commentList">
  4933. <div
  4934. class="commentImg"
  4935. @click="
  4936. isLikes(w.wid, userid, 1, null, w.isLikes)
  4937. "
  4938. >
  4939. <img
  4940. :src="w.isLikes == true ? likes : noLikes"
  4941. alt=""
  4942. />
  4943. </div>
  4944. <div>{{ w.likesCount }}</div>
  4945. </div>
  4946. <div
  4947. class="commentList"
  4948. style="margin-right: 15px"
  4949. >
  4950. <div
  4951. class="commentImg"
  4952. @click="
  4953. commentOther(
  4954. w,
  4955. toolIndex,
  4956. wIndex,
  4957. null,
  4958. g.id
  4959. )
  4960. "
  4961. >
  4962. <img
  4963. src="../../assets/icon/comment/comment.png"
  4964. alt=""
  4965. />
  4966. </div>
  4967. <div>{{ w.commentCount }}</div>
  4968. </div>
  4969. </div>
  4970. </div>
  4971. </div>
  4972. </div>
  4973. <div class="group_work" v-else>暂无提交作业</div>
  4974. </div>
  4975. </div>
  4976. <div
  4977. class="worksDetailBox"
  4978. v-if="
  4979. worksStudent.length &&
  4980. worksStudent[toolIndex].length > 0
  4981. "
  4982. >
  4983. <div
  4984. class="works"
  4985. style="
  4986. width: 200px;
  4987. height: 140px;
  4988. margin: 10px 10px 10px 0;
  4989. border-radius: 15px;
  4990. box-shadow: 0 0 6px 1px #dfdada;
  4991. "
  4992. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  4993. 0
  4994. ? worksStudent[toolIndex]
  4995. : worksStudent[toolIndex].slice(0, 6)"
  4996. :key="wIndex"
  4997. >
  4998. <!-- @click="previewImg(w.works)" -->
  4999. <div class="workImg">
  5000. <img
  5001. :src="w.works"
  5002. @click="previewImg(w.works)"
  5003. alt
  5004. />
  5005. <div
  5006. class="answerScore"
  5007. v-if="w.score"
  5008. @click.stop="openScore(w)"
  5009. :class="{
  5010. rightW:
  5011. w.userid == userid || tType == 1 || tType == 4,
  5012. }"
  5013. >
  5014. {{ JSON.parse(w.score).wScore }}分
  5015. </div>
  5016. <div
  5017. class="answerScore"
  5018. @click.stop="openScore(w)"
  5019. v-else-if="courseDetail.userid == userid"
  5020. :class="{
  5021. rightW:
  5022. w.userid == userid || tType == 1 || tType == 4,
  5023. }"
  5024. >
  5025. 评分
  5026. </div>
  5027. <img
  5028. class="deleteImg"
  5029. src="../../assets/deleteworks.png"
  5030. v-if="
  5031. w.userid == userid || tType == 1 || tType == 4
  5032. "
  5033. @click.stop="deleteWorks(w.wid)"
  5034. alt
  5035. />
  5036. </div>
  5037. <div class="comment" style="min-width: 200px">
  5038. <div class="worksName">
  5039. <div>{{ w.sName }}</div>
  5040. </div>
  5041. <div class="commentList">
  5042. <div class="commentList">
  5043. <div
  5044. class="commentImg"
  5045. @click="
  5046. isLikes(w.wid, userid, 1, null, w.isLikes)
  5047. "
  5048. >
  5049. <img
  5050. :src="w.isLikes == true ? likes : noLikes"
  5051. alt=""
  5052. />
  5053. </div>
  5054. <div>{{ w.likesCount }}</div>
  5055. </div>
  5056. <div class="commentList" style="margin-right: 15px">
  5057. <div
  5058. class="commentImg"
  5059. @click="commentOther(w, toolIndex, wIndex)"
  5060. >
  5061. <img
  5062. src="../../assets/icon/comment/comment.png"
  5063. alt=""
  5064. />
  5065. </div>
  5066. <div>{{ w.commentCount }}</div>
  5067. </div>
  5068. </div>
  5069. </div>
  5070. </div>
  5071. </div>
  5072. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5073. 未提交
  5074. </div>
  5075. <div
  5076. class="noWorksS"
  5077. v-if="noWorksS && noWorksS[toolIndex].length"
  5078. >
  5079. <div
  5080. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5081. :key="sIndex"
  5082. class="noWorksName"
  5083. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5084. >
  5085. {{ s.student }}
  5086. </div>
  5087. </div>
  5088. </div>
  5089. <div
  5090. v-if="
  5091. tType &&
  5092. ((tType == 2 && sIsOpen == true) ||
  5093. tType == 1 ||
  5094. tType == 4) &&
  5095. tool.tool.indexOf(26) != -1
  5096. "
  5097. class="worksBox"
  5098. >
  5099. <div
  5100. class="zuoyeYulan"
  5101. v-if="
  5102. worksStudent.length &&
  5103. worksStudent[toolIndex].length > 0
  5104. "
  5105. >
  5106. <div class="worksTop">
  5107. <div>作业预览</div>
  5108. <div
  5109. class="corOpen"
  5110. @click="contract(toolIndex)"
  5111. v-if="
  5112. worksStudent[toolIndex].length > 6 &&
  5113. isCloseList[toolIndex].isClose == 0
  5114. "
  5115. >
  5116. 收缩
  5117. </div>
  5118. <div
  5119. class="corOpen"
  5120. @click="contract(toolIndex)"
  5121. v-if="isCloseList[toolIndex].isClose == 1"
  5122. >
  5123. 展开
  5124. </div>
  5125. </div>
  5126. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5127. </div>
  5128. <div
  5129. class="worksDetailBox"
  5130. v-if="
  5131. worksStudent.length &&
  5132. worksStudent[toolIndex].length > 0
  5133. "
  5134. >
  5135. <div
  5136. class="works"
  5137. style="width: 240px; height: 140px; overflow: hidden"
  5138. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5139. 0
  5140. ? worksStudent[toolIndex]
  5141. : worksStudent[toolIndex].slice(0, 6)"
  5142. :key="wIndex"
  5143. :class="w.type == 1 ? 'isTypeOne' : ''"
  5144. >
  5145. <div class="workImg" v-if="w.type == 0">
  5146. <img
  5147. :src="w.works"
  5148. @click="previewImg(w.works)"
  5149. alt
  5150. />
  5151. <img
  5152. class="deleteImg"
  5153. src="../../assets/deleteworks.png"
  5154. v-if="
  5155. w.userid == userid || tType == 1 || tType == 4
  5156. "
  5157. @click.stop="deleteWorks(w.wid)"
  5158. alt
  5159. />
  5160. </div>
  5161. <div class="workImg" v-if="w.type == 1">
  5162. <img :src="word" @click="openFile(w.works)" alt />
  5163. <img
  5164. class="deleteImg"
  5165. src="../../assets/deleteworks.png"
  5166. v-if="
  5167. w.userid == userid || tType == 1 || tType == 4
  5168. "
  5169. @click.stop="deleteWorks(w.wid)"
  5170. alt
  5171. />
  5172. </div>
  5173. <div class="worksName">
  5174. <div>{{ w.sName }}</div>
  5175. </div>
  5176. </div>
  5177. </div>
  5178. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5179. 未提交
  5180. </div>
  5181. <div
  5182. class="noWorksS"
  5183. v-if="noWorksS && noWorksS[toolIndex].length"
  5184. >
  5185. <div
  5186. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5187. :key="sIndex"
  5188. class="noWorksName"
  5189. >
  5190. {{ s.student }}
  5191. </div>
  5192. </div>
  5193. </div>
  5194. <div
  5195. v-if="
  5196. tType &&
  5197. ((tType == 2 && sIsOpen == true) ||
  5198. tType == 1 ||
  5199. tType == 4) &&
  5200. tool.tool.indexOf(40) != -1
  5201. "
  5202. class="worksBox"
  5203. >
  5204. <div
  5205. class="zuoyeYulan"
  5206. v-if="
  5207. worksStudent.length &&
  5208. worksStudent[toolIndex].length > 0
  5209. "
  5210. >
  5211. <div class="worksTop">
  5212. <div>作业预览</div>
  5213. <div
  5214. class="corOpen"
  5215. @click="contract(toolIndex)"
  5216. v-if="
  5217. worksStudent[toolIndex].length > 6 &&
  5218. isCloseList[toolIndex].isClose == 0
  5219. "
  5220. >
  5221. 收缩
  5222. </div>
  5223. <div
  5224. class="corOpen"
  5225. @click="contract(toolIndex)"
  5226. v-if="isCloseList[toolIndex].isClose == 1"
  5227. >
  5228. 展开
  5229. </div>
  5230. </div>
  5231. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5232. </div>
  5233. <div
  5234. class="worksDetailBox"
  5235. v-if="
  5236. worksStudent.length &&
  5237. worksStudent[toolIndex].length > 0
  5238. "
  5239. >
  5240. <div
  5241. class="works"
  5242. style="
  5243. width: 200px;
  5244. height: 140px;
  5245. margin: 10px 10px 10px 0;
  5246. border-radius: 15px;
  5247. box-shadow: 0 0 6px 1px #dfdada;
  5248. "
  5249. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5250. 0
  5251. ? worksStudent[toolIndex]
  5252. : worksStudent[toolIndex].slice(0, 6)"
  5253. :key="wIndex"
  5254. :class="w.type == 1 ? 'isTypeOne' : ''"
  5255. >
  5256. <div class="workImg">
  5257. <img
  5258. src="../../assets/icon/works/noImg.png"
  5259. @click="openPj(w.works, toolIndex)"
  5260. alt
  5261. />
  5262. <img
  5263. class="deleteImg"
  5264. src="../../assets/deleteworks.png"
  5265. v-if="
  5266. w.userid == userid || tType == 1 || tType == 4
  5267. "
  5268. @click.stop="deleteWorks(w.wid)"
  5269. alt
  5270. />
  5271. </div>
  5272. <div class="comment" style="min-width: 200px">
  5273. <div class="worksName">
  5274. <div>{{ w.sName }}</div>
  5275. </div>
  5276. <div class="commentList">
  5277. <div class="commentList">
  5278. <div
  5279. class="commentImg"
  5280. @click="
  5281. isLikes(w.wid, userid, 1, null, w.isLikes)
  5282. "
  5283. >
  5284. <img
  5285. :src="w.isLikes == true ? likes : noLikes"
  5286. alt=""
  5287. />
  5288. </div>
  5289. <div>{{ w.likesCount }}</div>
  5290. </div>
  5291. <div class="commentList" style="margin-right: 15px">
  5292. <div
  5293. class="commentImg"
  5294. @click="commentOther(w, toolIndex, wIndex)"
  5295. >
  5296. <img
  5297. src="../../assets/icon/comment/comment.png"
  5298. alt=""
  5299. />
  5300. </div>
  5301. <div>{{ w.commentCount }}</div>
  5302. </div>
  5303. </div>
  5304. </div>
  5305. </div>
  5306. </div>
  5307. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5308. 未提交
  5309. </div>
  5310. <div
  5311. class="noWorksS"
  5312. v-if="noWorksS && noWorksS[toolIndex].length"
  5313. >
  5314. <div
  5315. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5316. :key="sIndex"
  5317. class="noWorksName"
  5318. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5319. >
  5320. {{ s.student }}
  5321. </div>
  5322. </div>
  5323. </div>
  5324. <div
  5325. v-if="
  5326. tType &&
  5327. tType == 2 &&
  5328. !sIsOpen &&
  5329. tool.tool.indexOf(40) != -1
  5330. "
  5331. class="worksBox"
  5332. >
  5333. <div
  5334. class="zuoyeYulan"
  5335. v-if="workStudent[toolIndex].length > 0"
  5336. >
  5337. <span class="worksTitle">作业预览</span>
  5338. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5339. </div>
  5340. <div
  5341. class="worksDetailBox"
  5342. v-if="workStudent[toolIndex].length > 0"
  5343. >
  5344. <div
  5345. class="works"
  5346. style="
  5347. width: 200px;
  5348. height: 140px;
  5349. margin: 10px 10px 10px 0;
  5350. "
  5351. v-for="(w, wIndex) in workStudent[toolIndex]"
  5352. :key="wIndex"
  5353. >
  5354. <div class="workImg">
  5355. <img
  5356. src="../../assets/icon/works/noImg.png"
  5357. @click="openPj(w.works, toolIndex)"
  5358. alt
  5359. />
  5360. <img
  5361. class="deleteImg"
  5362. src="../../assets/deleteworks.png"
  5363. v-if="
  5364. w.userid == userid || tType == 1 || tType == 4
  5365. "
  5366. @click.stop="deleteWorks(w.wid)"
  5367. alt
  5368. />
  5369. </div>
  5370. <div class="worksName">
  5371. <div>{{ w.sName }}</div>
  5372. </div>
  5373. </div>
  5374. </div>
  5375. </div>
  5376. <div
  5377. v-if="
  5378. tType &&
  5379. ((tType == 2 && sIsOpen == true) ||
  5380. tType == 1 ||
  5381. tType == 4) &&
  5382. tool.tool.indexOf(41) != -1
  5383. "
  5384. >
  5385. <AnswerData2
  5386. v-if="
  5387. worksStudent.length &&
  5388. worksStudent[toolIndex].length > 0
  5389. "
  5390. :problemJson="tool.selectJson.answer"
  5391. :people="worksStudent[toolIndex]"
  5392. ></AnswerData2>
  5393. </div>
  5394. <div
  5395. v-if="
  5396. tType &&
  5397. ((tType == 2 && sIsOpen == true) ||
  5398. tType == 1 ||
  5399. tType == 4) &&
  5400. tool.tool.indexOf(41) != -1
  5401. "
  5402. class="worksBox"
  5403. >
  5404. <div
  5405. class="zuoyeYulan"
  5406. v-if="
  5407. worksStudent.length &&
  5408. worksStudent[toolIndex].length > 0
  5409. "
  5410. >
  5411. <div class="worksTop">
  5412. <div>作业预览</div>
  5413. <div
  5414. class="corOpen"
  5415. @click="contract(toolIndex)"
  5416. v-if="
  5417. worksStudent[toolIndex].length > 6 &&
  5418. isCloseList[toolIndex].isClose == 0
  5419. "
  5420. >
  5421. 收缩
  5422. </div>
  5423. <div
  5424. class="corOpen"
  5425. @click="contract(toolIndex)"
  5426. v-if="isCloseList[toolIndex].isClose == 1"
  5427. >
  5428. 展开
  5429. </div>
  5430. </div>
  5431. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5432. </div>
  5433. <div
  5434. class="worksDetailBox"
  5435. v-if="
  5436. worksStudent.length &&
  5437. worksStudent[toolIndex].length > 0
  5438. "
  5439. >
  5440. <div
  5441. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5442. 0
  5443. ? worksStudent[toolIndex]
  5444. : worksStudent[toolIndex].slice(0, 6)"
  5445. :key="wIndex"
  5446. class="isWorksName2"
  5447. @click="openXz(w, toolIndex)"
  5448. >
  5449. {{ w.sName }}
  5450. <img
  5451. class="deleteImg deleteImg2"
  5452. src="../../assets/deleteworks.png"
  5453. v-if="w.userid == userid || tType == 1 || tType == 4"
  5454. @click.stop="deleteWorks(w.wid)"
  5455. alt
  5456. />
  5457. </div>
  5458. <!-- <div
  5459. class="works"
  5460. style="
  5461. width: 200px;
  5462. height: 140px;
  5463. margin: 10px 10px 10px 0;
  5464. border-radius: 15px;
  5465. box-shadow: 0 0 6px 1px #dfdada;
  5466. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5467. :class="w.type == 5 ? 'isTypeOne' : ''">
  5468. <div class="workImg">
  5469. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5470. </div>
  5471. <div class="worksName">
  5472. <div>{{ w.sName }}</div>
  5473. </div>
  5474. </div> -->
  5475. </div>
  5476. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5477. 未提交
  5478. </div>
  5479. <div
  5480. class="noWorksS"
  5481. v-if="noWorksS && noWorksS[toolIndex].length"
  5482. >
  5483. <div
  5484. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5485. :key="sIndex"
  5486. class="noWorksName"
  5487. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5488. >
  5489. {{ s.student }}
  5490. </div>
  5491. </div>
  5492. </div>
  5493. <div
  5494. v-if="
  5495. tType &&
  5496. tType == 2 &&
  5497. !sIsOpen &&
  5498. tool.tool.indexOf(41) != -1
  5499. "
  5500. class="worksBox"
  5501. >
  5502. <div
  5503. class="zuoyeYulan"
  5504. v-if="workStudent[toolIndex].length > 0"
  5505. >
  5506. <span class="worksTitle">作业预览</span>
  5507. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5508. </div>
  5509. <div
  5510. class="worksDetailBox"
  5511. v-if="workStudent[toolIndex].length > 0"
  5512. >
  5513. <div
  5514. class="works"
  5515. style="
  5516. width: 200px;
  5517. height: 140px;
  5518. margin: 10px 10px 10px 0;
  5519. "
  5520. v-for="(w, wIndex) in workStudent[toolIndex]"
  5521. :key="wIndex"
  5522. >
  5523. <div class="workImg">
  5524. <img
  5525. src="../../assets/icon/works/noImg.png"
  5526. @click="openXz(w, toolIndex)"
  5527. alt
  5528. />
  5529. <img
  5530. class="deleteImg"
  5531. src="../../assets/deleteworks.png"
  5532. v-if="
  5533. w.userid == userid || tType == 1 || tType == 4
  5534. "
  5535. @click.stop="deleteWorks(w.wid)"
  5536. alt
  5537. />
  5538. </div>
  5539. <div class="worksName">
  5540. <div>{{ w.sName }}</div>
  5541. </div>
  5542. </div>
  5543. </div>
  5544. </div>
  5545. <div v-if="false" class="xuan_right_box">
  5546. <div
  5547. class="tool_right_box"
  5548. v-for="(item, index) in tool.sentenceList"
  5549. :key="index"
  5550. >
  5551. <div>
  5552. <span
  5553. style="word-break: break-all; white-space: normal"
  5554. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  5555. >
  5556. </div>
  5557. <div class="right_box_xuan">
  5558. <span>正确率</span>
  5559. <span>{{
  5560. (checkJson[toolIndex][index].right
  5561. ? checkJson[toolIndex][index].right
  5562. : 0) + "%"
  5563. }}</span>
  5564. </div>
  5565. <div class="right_box_xuan">
  5566. <span>答对人数</span>
  5567. <span>{{
  5568. checkJson[toolIndex][index].rightPerson.length
  5569. }}</span>
  5570. </div>
  5571. </div>
  5572. </div>
  5573. <div
  5574. v-if="
  5575. tType &&
  5576. ((tType == 2 && sIsOpen == true) ||
  5577. tType == 1 ||
  5578. tType == 4) &&
  5579. tool.tool.indexOf(47) != -1
  5580. "
  5581. >
  5582. <AnswerData
  5583. v-if="
  5584. checkJson[toolIndex].length &&
  5585. (tool.sentenceList || tool.sentenceList.length > 0)
  5586. "
  5587. :people="checkJson[toolIndex]"
  5588. ></AnswerData>
  5589. </div>
  5590. <div
  5591. v-if="
  5592. tType &&
  5593. tType == 2 &&
  5594. !sIsOpen &&
  5595. tool.tool.indexOf(47) != -1
  5596. "
  5597. class="worksBox"
  5598. >
  5599. <div
  5600. class="zuoyeYulan"
  5601. v-if="workStudent[toolIndex].length > 0"
  5602. >
  5603. <span class="worksTitle">作业预览</span>
  5604. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5605. </div>
  5606. <div
  5607. class="worksDetailBox"
  5608. v-if="workStudent[toolIndex].length > 0"
  5609. >
  5610. <div
  5611. class="works"
  5612. style="
  5613. width: 200px;
  5614. height: 140px;
  5615. margin: 10px 10px 10px 0;
  5616. "
  5617. v-for="(w, wIndex) in workStudent[toolIndex]"
  5618. :key="wIndex"
  5619. >
  5620. <!-- @click="openXz(w, toolIndex)" -->
  5621. <div class="workImg" @click="openSen(w, toolIndex)">
  5622. <img src="../../assets/icon/works/noImg.png" alt />
  5623. <img
  5624. class="deleteImg"
  5625. src="../../assets/deleteworks.png"
  5626. v-if="
  5627. w.userid == userid || tType == 1 || tType == 4
  5628. "
  5629. @click.stop="deleteWorks(w.wid)"
  5630. alt
  5631. />
  5632. </div>
  5633. <div class="worksName">
  5634. <div>
  5635. {{ w.sName }}
  5636. </div>
  5637. </div>
  5638. </div>
  5639. </div>
  5640. </div>
  5641. <div
  5642. v-if="
  5643. tType &&
  5644. ((tType == 2 && sIsOpen == true) ||
  5645. tType == 1 ||
  5646. tType == 4) &&
  5647. tool.tool.indexOf(47) != -1
  5648. "
  5649. class="worksBox"
  5650. >
  5651. <div
  5652. class="zuoyeYulan"
  5653. v-if="
  5654. worksStudent.length &&
  5655. worksStudent[toolIndex].length > 0
  5656. "
  5657. >
  5658. <div class="worksTop">
  5659. <div>作业预览</div>
  5660. <div
  5661. class="corOpen"
  5662. @click="contract(toolIndex)"
  5663. v-if="
  5664. worksStudent[toolIndex].length > 6 &&
  5665. isCloseList[toolIndex].isClose == 0
  5666. "
  5667. >
  5668. 收缩
  5669. </div>
  5670. <div
  5671. class="corOpen"
  5672. @click="contract(toolIndex)"
  5673. v-if="isCloseList[toolIndex].isClose == 1"
  5674. >
  5675. 展开
  5676. </div>
  5677. </div>
  5678. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5679. </div>
  5680. <div
  5681. class="worksDetailBox"
  5682. v-if="
  5683. worksStudent.length &&
  5684. worksStudent[toolIndex].length > 0
  5685. "
  5686. >
  5687. <!-- @click="openXz(w, toolIndex)" -->
  5688. <div
  5689. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5690. 0
  5691. ? worksStudent[toolIndex]
  5692. : worksStudent[toolIndex].slice(0, 6)"
  5693. :key="wIndex"
  5694. class="isWorksName2"
  5695. @click="openSen(w, toolIndex)"
  5696. >
  5697. {{ w.sName }}
  5698. <img
  5699. class="deleteImg deleteImg2"
  5700. src="../../assets/deleteworks.png"
  5701. v-if="w.userid == userid || tType == 1 || tType == 4"
  5702. @click.stop="deleteWorks(w.wid)"
  5703. alt
  5704. />
  5705. </div>
  5706. </div>
  5707. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5708. 未提交
  5709. </div>
  5710. <div
  5711. class="noWorksS"
  5712. v-if="noWorksS && noWorksS[toolIndex].length"
  5713. >
  5714. <div
  5715. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5716. :key="sIndex"
  5717. class="noWorksName"
  5718. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5719. >
  5720. {{ s.student }}
  5721. </div>
  5722. </div>
  5723. </div>
  5724. <div
  5725. v-if="
  5726. tType &&
  5727. ((tType == 2 && sIsOpen == true) ||
  5728. tType == 1 ||
  5729. tType == 4) &&
  5730. tool.tool.indexOf(48) != -1
  5731. "
  5732. class="worksBox"
  5733. >
  5734. <div
  5735. class="zuoyeYulan"
  5736. v-if="
  5737. worksStudent.length &&
  5738. worksStudent[toolIndex].length > 0
  5739. "
  5740. >
  5741. <div class="worksTop">
  5742. <div>作业预览</div>
  5743. <div
  5744. class="corOpen"
  5745. @click="contract(toolIndex)"
  5746. v-if="
  5747. worksStudent[toolIndex].length > 6 &&
  5748. isCloseList[toolIndex].isClose == 0
  5749. "
  5750. >
  5751. 收缩
  5752. </div>
  5753. <div
  5754. class="corOpen"
  5755. @click="contract(toolIndex)"
  5756. v-if="isCloseList[toolIndex].isClose == 1"
  5757. >
  5758. 展开
  5759. </div>
  5760. </div>
  5761. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5762. </div>
  5763. <div
  5764. class="worksDetailBox"
  5765. v-if="
  5766. worksStudent.length &&
  5767. worksStudent[toolIndex].length > 0
  5768. "
  5769. >
  5770. <div
  5771. class="works"
  5772. style="
  5773. width: 200px;
  5774. height: 140px;
  5775. margin: 10px 10px 10px 0;
  5776. border-radius: 15px;
  5777. box-shadow: 0 0 6px 1px #dfdada;
  5778. "
  5779. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  5780. 0
  5781. ? worksStudent[toolIndex]
  5782. : worksStudent[toolIndex].slice(0, 6)"
  5783. :key="wIndex"
  5784. :class="w.type == 1 ? 'isTypeOne' : ''"
  5785. >
  5786. <div class="workImg">
  5787. <img :src="word" @click="openTable(w)" alt />
  5788. <!-- @click="openFile(w.works)" -->
  5789. <div
  5790. class="answerScore"
  5791. v-if="w.score"
  5792. @click.stop="openScore(w)"
  5793. :class="{
  5794. rightW:
  5795. w.userid == userid ||
  5796. tType == 1 ||
  5797. tType == 4 ||
  5798. w.ateacher == userid,
  5799. }"
  5800. >
  5801. {{ JSON.parse(w.score).wScore }}分
  5802. </div>
  5803. <div
  5804. class="answerScore"
  5805. @click.stop="openScore(w)"
  5806. v-else-if="courseDetail.userid == userid"
  5807. :class="{
  5808. rightW:
  5809. w.userid == userid ||
  5810. tType == 1 ||
  5811. tType == 4 ||
  5812. w.ateacher == userid,
  5813. }"
  5814. >
  5815. 评分
  5816. </div>
  5817. <img
  5818. class="deleteImg"
  5819. src="../../assets/deleteworks.png"
  5820. v-if="
  5821. w.userid == userid || tType == 1 || tType == 4
  5822. "
  5823. @click.stop="deleteWorks(w.wid)"
  5824. alt
  5825. />
  5826. </div>
  5827. <div class="comment" style="min-width: 200px">
  5828. <div class="worksName">
  5829. <div>{{ w.sName }}</div>
  5830. </div>
  5831. <div class="commentList">
  5832. <div class="commentList">
  5833. <div
  5834. class="commentImg"
  5835. @click="
  5836. isLikes(w.wid, userid, 1, null, w.isLikes)
  5837. "
  5838. >
  5839. <img
  5840. :src="w.isLikes == true ? likes : noLikes"
  5841. alt=""
  5842. />
  5843. </div>
  5844. <div>{{ w.likesCount }}</div>
  5845. </div>
  5846. <div class="commentList" style="margin-right: 15px">
  5847. <div
  5848. class="commentImg"
  5849. @click="commentOther(w, toolIndex, wIndex)"
  5850. >
  5851. <img
  5852. src="../../assets/icon/comment/comment.png"
  5853. alt=""
  5854. />
  5855. </div>
  5856. <div>{{ w.commentCount }}</div>
  5857. </div>
  5858. </div>
  5859. </div>
  5860. </div>
  5861. </div>
  5862. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5863. 未提交
  5864. </div>
  5865. <div
  5866. class="noWorksS"
  5867. v-if="noWorksS && noWorksS[toolIndex].length"
  5868. >
  5869. <div
  5870. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5871. :key="sIndex"
  5872. class="noWorksName"
  5873. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  5874. >
  5875. {{ s.student }}
  5876. </div>
  5877. </div>
  5878. </div>
  5879. <div
  5880. v-if="
  5881. tType &&
  5882. tType == 2 &&
  5883. !sIsOpen &&
  5884. tool.tool.indexOf(48) != -1
  5885. "
  5886. class="worksBox"
  5887. >
  5888. <div
  5889. class="zuoyeYulan"
  5890. v-if="workStudent[toolIndex].length > 0"
  5891. >
  5892. <span class="worksTitle">作业预览</span>
  5893. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5894. </div>
  5895. <div
  5896. class="worksDetailBox"
  5897. v-if="workStudent[toolIndex].length > 0"
  5898. >
  5899. <div
  5900. class="works"
  5901. style="
  5902. width: 200px;
  5903. height: 140px;
  5904. margin: 10px 10px 10px 0;
  5905. box-shadow: 0 0 6px 1px #dfdada;
  5906. "
  5907. v-for="(w, wIndex) in workStudent[toolIndex]"
  5908. :key="wIndex"
  5909. >
  5910. <div class="workImg">
  5911. <img :src="word" @click="openTable(w)" alt />
  5912. <div
  5913. class="answerScore"
  5914. v-if="w.score"
  5915. @click.stop="openScore(w)"
  5916. :class="{
  5917. rightW:
  5918. w.userid == userid || tType == 1 || tType == 4,
  5919. }"
  5920. >
  5921. {{ JSON.parse(w.score).wScore }}分
  5922. </div>
  5923. <div
  5924. class="answerScore"
  5925. @click.stop="openScore(w)"
  5926. v-else-if="courseDetail.userid == userid"
  5927. :class="{
  5928. rightW:
  5929. w.userid == userid || tType == 1 || tType == 4,
  5930. }"
  5931. >
  5932. 评分
  5933. </div>
  5934. <img
  5935. class="deleteImg"
  5936. src="../../assets/deleteworks.png"
  5937. v-if="
  5938. w.userid == userid || tType == 1 || tType == 4
  5939. "
  5940. @click.stop="deleteWorks(w.wid)"
  5941. alt
  5942. />
  5943. </div>
  5944. <div class="worksName">
  5945. <div>{{ w.sName }}</div>
  5946. </div>
  5947. </div>
  5948. </div>
  5949. </div>
  5950. <div
  5951. v-if="
  5952. tType &&
  5953. ((tType == 2 && sIsOpen == true) ||
  5954. tType == 1 ||
  5955. tType == 4) &&
  5956. tool.tool.indexOf(52) != -1
  5957. "
  5958. class="worksBox"
  5959. >
  5960. <div
  5961. class="zuoyeYulan"
  5962. v-if="
  5963. worksStudent.length &&
  5964. worksStudent[toolIndex].length > 0
  5965. "
  5966. >
  5967. <div class="worksTop">
  5968. <div>作业预览</div>
  5969. <div
  5970. class="corOpen"
  5971. @click="contract(toolIndex)"
  5972. v-if="
  5973. worksStudent[toolIndex].length > 6 &&
  5974. isCloseList[toolIndex].isClose == 0
  5975. "
  5976. >
  5977. 收缩
  5978. </div>
  5979. <div
  5980. class="corOpen"
  5981. @click="contract(toolIndex)"
  5982. v-if="isCloseList[toolIndex].isClose == 1"
  5983. >
  5984. 展开
  5985. </div>
  5986. </div>
  5987. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5988. </div>
  5989. <div
  5990. class="worksDetailBox"
  5991. v-if="
  5992. worksStudent.length &&
  5993. worksStudent[toolIndex].length > 0
  5994. "
  5995. >
  5996. <div
  5997. class="works"
  5998. style="
  5999. width: 200px;
  6000. height: 140px;
  6001. margin: 10px 10px 10px 0;
  6002. border-radius: 15px;
  6003. box-shadow: 0 0 6px 1px #dfdada;
  6004. "
  6005. v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  6006. 0
  6007. ? worksStudent[toolIndex]
  6008. : worksStudent[toolIndex].slice(0, 6)"
  6009. :key="wIndex"
  6010. :class="w.type == 1 ? 'isTypeOne' : ''"
  6011. >
  6012. <div class="workImg">
  6013. <img :src="word" @click="openWord(w)" alt />
  6014. <!-- @click="openFile(w.works)" -->
  6015. <div
  6016. class="answerScore"
  6017. v-if="w.score"
  6018. @click.stop="openScore(w)"
  6019. :class="{
  6020. rightW:
  6021. w.userid == userid ||
  6022. tType == 1 ||
  6023. tType == 4 ||
  6024. w.ateacher == userid,
  6025. }"
  6026. >
  6027. {{ JSON.parse(w.score).wScore }}分
  6028. </div>
  6029. <div
  6030. class="answerScore"
  6031. @click.stop="openScore(w)"
  6032. v-else-if="courseDetail.userid == userid"
  6033. :class="{
  6034. rightW:
  6035. w.userid == userid ||
  6036. tType == 1 ||
  6037. tType == 4 ||
  6038. w.ateacher == userid,
  6039. }"
  6040. >
  6041. 评分
  6042. </div>
  6043. <img
  6044. class="deleteImg"
  6045. src="../../assets/deleteworks.png"
  6046. v-if="
  6047. w.userid == userid || tType == 1 || tType == 4
  6048. "
  6049. @click.stop="deleteWorks(w.wid)"
  6050. alt
  6051. />
  6052. </div>
  6053. <div class="comment" style="min-width: 200px">
  6054. <div class="worksName">
  6055. <div>{{ w.sName }}</div>
  6056. </div>
  6057. <div class="commentList">
  6058. <div class="commentList">
  6059. <div
  6060. class="commentImg"
  6061. @click="
  6062. isLikes(w.wid, userid, 1, null, w.isLikes)
  6063. "
  6064. >
  6065. <img
  6066. :src="w.isLikes == true ? likes : noLikes"
  6067. alt=""
  6068. />
  6069. </div>
  6070. <div>{{ w.likesCount }}</div>
  6071. </div>
  6072. <div class="commentList" style="margin-right: 15px">
  6073. <div
  6074. class="commentImg"
  6075. @click="commentOther(w, toolIndex, wIndex)"
  6076. >
  6077. <img
  6078. src="../../assets/icon/comment/comment.png"
  6079. alt=""
  6080. />
  6081. </div>
  6082. <div>{{ w.commentCount }}</div>
  6083. </div>
  6084. </div>
  6085. </div>
  6086. </div>
  6087. </div>
  6088. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6089. 未提交
  6090. </div>
  6091. <div
  6092. class="noWorksS"
  6093. v-if="noWorksS && noWorksS[toolIndex].length"
  6094. >
  6095. <div
  6096. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6097. :key="sIndex"
  6098. class="noWorksName"
  6099. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6100. >
  6101. {{ s.student }}
  6102. </div>
  6103. </div>
  6104. </div>
  6105. <div
  6106. v-if="
  6107. tType &&
  6108. tType == 2 &&
  6109. !sIsOpen &&
  6110. tool.tool.indexOf(52) != -1
  6111. "
  6112. class="worksBox"
  6113. >
  6114. <div
  6115. class="zuoyeYulan"
  6116. v-if="workStudent[toolIndex].length > 0"
  6117. >
  6118. <span class="worksTitle">作业预览</span>
  6119. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6120. </div>
  6121. <div
  6122. class="worksDetailBox"
  6123. v-if="workStudent[toolIndex].length > 0"
  6124. >
  6125. <div
  6126. class="works"
  6127. style="
  6128. width: 200px;
  6129. height: 140px;
  6130. margin: 10px 10px 10px 0;
  6131. box-shadow: 0 0 6px 1px #dfdada;
  6132. "
  6133. v-for="(w, wIndex) in workStudent[toolIndex]"
  6134. :key="wIndex"
  6135. >
  6136. <div class="workImg">
  6137. <img :src="word" @click="openWord(w)" alt />
  6138. <div
  6139. class="answerScore"
  6140. v-if="w.score"
  6141. @click.stop="openScore(w)"
  6142. :class="{
  6143. rightW:
  6144. w.userid == userid || tType == 1 || tType == 4,
  6145. }"
  6146. >
  6147. {{ JSON.parse(w.score).wScore }}分
  6148. </div>
  6149. <div
  6150. class="answerScore"
  6151. @click.stop="openScore(w)"
  6152. v-else-if="courseDetail.userid == userid"
  6153. :class="{
  6154. rightW:
  6155. w.userid == userid || tType == 1 || tType == 4,
  6156. }"
  6157. >
  6158. 评分
  6159. </div>
  6160. <img
  6161. class="deleteImg"
  6162. src="../../assets/deleteworks.png"
  6163. v-if="
  6164. w.userid == userid || tType == 1 || tType == 4
  6165. "
  6166. @click.stop="deleteWorks(w.wid)"
  6167. alt
  6168. />
  6169. </div>
  6170. <div class="worksName">
  6171. <div>{{ w.sName }}</div>
  6172. </div>
  6173. </div>
  6174. </div>
  6175. </div>
  6176. <div
  6177. v-if="tool.tool.indexOf(49) != -1"
  6178. class="xuan_right_box"
  6179. style="margin: 0 15px 0 25px; width: 93%"
  6180. >
  6181. <div
  6182. v-if="courseDetail.userid == userid"
  6183. style="
  6184. display: flex;
  6185. justify-content: flex-end;
  6186. margin-right: 10px;
  6187. "
  6188. >
  6189. <el-button
  6190. type="primary"
  6191. size="small"
  6192. @click="addTools(49, toolIndex, taskCount)"
  6193. >分组设置</el-button
  6194. >
  6195. </div>
  6196. <div
  6197. v-if="groupStudentUid[toolIndex]"
  6198. class="group_staic_box"
  6199. >
  6200. <div
  6201. v-for="(gp, gd) in tool.groupJson.group"
  6202. :key="gd"
  6203. class="group_staic"
  6204. >
  6205. <span> {{ gp.name }}</span>
  6206. <span>
  6207. 目前人数{{
  6208. groupStudentUid[toolIndex][gd].length
  6209. }}人</span
  6210. >
  6211. </div>
  6212. </div>
  6213. </div>
  6214. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6215. <div
  6216. class="zuoyeYulan"
  6217. v-if="
  6218. worksStudent.length &&
  6219. worksStudent[toolIndex].length > 0
  6220. "
  6221. >
  6222. <span class="worksTitle">作业预览</span>
  6223. </div>
  6224. <div>
  6225. <div
  6226. class="group_workBox"
  6227. v-for="(g, gindex) in tool.groupJson.group"
  6228. :key="gindex"
  6229. >
  6230. <div
  6231. class="group_box"
  6232. v-if="
  6233. groupStudentUid[toolIndex] &&
  6234. worksStudent[toolIndex] &&
  6235. (worksStudent[toolIndex][gindex].length ||
  6236. groupStudentUid[toolIndex][gindex].indexOf(
  6237. userid
  6238. ) != -1)
  6239. "
  6240. >
  6241. <div class="group_title">
  6242. <el-tooltip
  6243. class="item"
  6244. effect="light"
  6245. :content="g.name"
  6246. placement="top"
  6247. >
  6248. <div class="group_name">{{ g.name }}</div>
  6249. </el-tooltip>
  6250. <el-button
  6251. type="primary"
  6252. v-if="
  6253. groupStudentUid[toolIndex][gindex].indexOf(
  6254. userid
  6255. ) != -1
  6256. "
  6257. @click="groupUpload(toolIndex, taskCount, gindex)"
  6258. >上传作业</el-button
  6259. >
  6260. </div>
  6261. <div class="group_work">
  6262. <div
  6263. class="works"
  6264. style="
  6265. width: 200px;
  6266. height: 140px;
  6267. margin: 10px 10px 10px 0;
  6268. border-radius: 15px;
  6269. box-shadow: 0 0 6px 1px #dfdada;
  6270. "
  6271. v-for="(w, wIndex) in worksStudent[toolIndex][
  6272. gindex
  6273. ]"
  6274. :key="wIndex"
  6275. :class="w.type == 1 ? 'isTypeOne' : ''"
  6276. >
  6277. <div class="workImg" v-if="w.type == 0">
  6278. <img
  6279. :src="w.works"
  6280. @click="previewImg(w.works)"
  6281. alt
  6282. />
  6283. <div
  6284. class="answerScore"
  6285. v-if="w.score"
  6286. @click.stop="openScore(w)"
  6287. :class="{
  6288. rightW:
  6289. w.userid == userid ||
  6290. tType == 1 ||
  6291. tType == 4 ||
  6292. w.ateacher == userid,
  6293. }"
  6294. >
  6295. {{ JSON.parse(w.score).wScore }}分
  6296. </div>
  6297. <div
  6298. class="answerScore"
  6299. @click.stop="openScore(w)"
  6300. v-else-if="courseDetail.userid == userid"
  6301. :class="{
  6302. rightW:
  6303. w.userid == userid ||
  6304. tType == 1 ||
  6305. tType == 4 ||
  6306. w.ateacher == userid,
  6307. }"
  6308. >
  6309. 评分
  6310. </div>
  6311. <img
  6312. class="deleteImg"
  6313. src="../../assets/deleteworks.png"
  6314. v-if="
  6315. w.userid == userid ||
  6316. tType == 1 ||
  6317. tType == 4
  6318. "
  6319. @click.stop="deleteWorks(w.wid)"
  6320. alt
  6321. />
  6322. </div>
  6323. <div class="workImg" v-if="w.type == 1">
  6324. <img
  6325. :src="word"
  6326. @click="openFile(w.works)"
  6327. alt
  6328. />
  6329. <!-- @click="openFile(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="
  6362. w.userid == userid ||
  6363. tType == 1 ||
  6364. tType == 4
  6365. "
  6366. @click.stop="deleteWorks(w.wid)"
  6367. alt
  6368. />
  6369. </div>
  6370. <div class="workImg" v-if="w.type == 3">
  6371. <img
  6372. style="cursor: pointer"
  6373. :src="video"
  6374. @click="openVideo(w)"
  6375. alt
  6376. />
  6377. <!-- @click="openVideo(w.works)" -->
  6378. <div
  6379. class="answerScore"
  6380. v-if="w.score"
  6381. @click.stop="openScore(w)"
  6382. :class="{
  6383. rightW:
  6384. w.userid == userid ||
  6385. tType == 1 ||
  6386. tType == 4 ||
  6387. w.ateacher == userid,
  6388. }"
  6389. >
  6390. {{ JSON.parse(w.score).wScore }}分
  6391. </div>
  6392. <div
  6393. class="answerScore"
  6394. @click.stop="openScore(w)"
  6395. v-else-if="courseDetail.userid == userid"
  6396. :class="{
  6397. rightW:
  6398. w.userid == userid ||
  6399. tType == 1 ||
  6400. tType == 4 ||
  6401. w.ateacher == userid,
  6402. }"
  6403. >
  6404. 评分
  6405. </div>
  6406. <img
  6407. class="deleteImg"
  6408. src="../../assets/deleteworks.png"
  6409. v-if="
  6410. w.userid == userid ||
  6411. tType == 1 ||
  6412. tType == 4
  6413. "
  6414. @click.stop="deleteWorks(w.wid)"
  6415. alt
  6416. />
  6417. </div>
  6418. <div class="workImg" v-if="w.type == 12">
  6419. <img
  6420. style="cursor: pointer"
  6421. :src="word2"
  6422. @click="downloadFile(w.works)"
  6423. alt
  6424. />
  6425. <!-- @click="openVideo(w.works)" -->
  6426. <div
  6427. class="answerScore"
  6428. v-if="w.score"
  6429. @click.stop="openScore(w)"
  6430. :class="{
  6431. rightW:
  6432. w.userid == userid ||
  6433. tType == 1 ||
  6434. tType == 4 ||
  6435. w.ateacher == userid,
  6436. }"
  6437. >
  6438. {{ JSON.parse(w.score).wScore }}分
  6439. </div>
  6440. <div
  6441. class="answerScore"
  6442. @click.stop="openScore(w)"
  6443. v-else-if="courseDetail.userid == userid"
  6444. :class="{
  6445. rightW:
  6446. w.userid == userid ||
  6447. tType == 1 ||
  6448. tType == 4 ||
  6449. w.ateacher == userid,
  6450. }"
  6451. >
  6452. 评分
  6453. </div>
  6454. <img
  6455. class="deleteImg"
  6456. src="../../assets/deleteworks.png"
  6457. v-if="
  6458. w.userid == userid ||
  6459. tType == 1 ||
  6460. tType == 4
  6461. "
  6462. @click.stop="deleteWorks(w.wid)"
  6463. alt
  6464. />
  6465. </div>
  6466. <div class="comment" style="min-width: 200px">
  6467. <div class="worksName">
  6468. <div>{{ w.sName }}</div>
  6469. </div>
  6470. <div class="commentList">
  6471. <div class="commentList">
  6472. <div
  6473. class="commentImg"
  6474. @click="
  6475. isLikes(
  6476. w.wid,
  6477. userid,
  6478. 1,
  6479. null,
  6480. w.isLikes
  6481. )
  6482. "
  6483. >
  6484. <img
  6485. :src="
  6486. w.isLikes == true ? likes : noLikes
  6487. "
  6488. alt=""
  6489. />
  6490. </div>
  6491. <div>{{ w.likesCount }}</div>
  6492. </div>
  6493. <div
  6494. class="commentList"
  6495. style="margin-right: 15px"
  6496. >
  6497. <div
  6498. class="commentImg"
  6499. @click="
  6500. commentOther(
  6501. w,
  6502. toolIndex,
  6503. wIndex,
  6504. gindex
  6505. )
  6506. "
  6507. >
  6508. <img
  6509. src="../../assets/icon/comment/comment.png"
  6510. alt=""
  6511. />
  6512. </div>
  6513. <div>{{ w.commentCount }}</div>
  6514. </div>
  6515. </div>
  6516. </div>
  6517. </div>
  6518. </div>
  6519. </div>
  6520. </div>
  6521. </div>
  6522. </div>
  6523. </div>
  6524. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6525. 上传文件
  6526. <input
  6527. type="file"
  6528. accept="image/png, image/gif, image/jpeg"
  6529. style="display: none"
  6530. @change="beforeUpload1($event, 2, index)"
  6531. />
  6532. </div>-->
  6533. </div>
  6534. </div>
  6535. <!-- <div
  6536. class="vedioBox"
  6537. style="margin-top: 10px"
  6538. v-if="
  6539. courseDetail.userid == userid ||
  6540. (courseDetail.course_teacher &&
  6541. courseDetail.course_teacher.indexOf(userid) != -1)
  6542. "
  6543. :style="{
  6544. borderRadius:
  6545. !(
  6546. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6547. .toolChoose[0].tool &&
  6548. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6549. .toolChoose[0].tool.length > 0
  6550. ) &&
  6551. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6552. .taskDetail == '' &&
  6553. vChapterData[taskCount].length == 0 &&
  6554. fileC[taskCount].length == 0
  6555. ? '0 0 20px 20px'
  6556. : '20px',
  6557. }"
  6558. >
  6559. <div
  6560. class="queTop"
  6561. @click="isClose = !isClose"
  6562. style="
  6563. padding: 15px 0 15px 37px;
  6564. justify-content: space-between;
  6565. "
  6566. >
  6567. <div class="queTopTitle">新增工具</div>
  6568. <div class="queTopRight">
  6569. <div class="queTopClose" v-if="isClose == 0">
  6570. 展开
  6571. <div class="closeImg">
  6572. <img src="../../assets/icon/newIcon/close.png" alt="" />
  6573. </div>
  6574. </div>
  6575. <div class="queTopClose" v-if="isClose == 1">
  6576. 收缩
  6577. <div class="openImg">
  6578. <img src="../../assets/icon/newIcon/open.png" alt="" />
  6579. </div>
  6580. </div>
  6581. <el-button
  6582. style="margin: 0 30px 0 auto"
  6583. type="primary"
  6584. size="small"
  6585. v-if="isClose == 1 && checktoolArray.length > 0"
  6586. @click.stop="addToolChoose"
  6587. >确定</el-button
  6588. >
  6589. </div>
  6590. </div>
  6591. <div
  6592. class="tool_work_box"
  6593. :style="isClose == 0 ? 'display:none' : 'display:block'"
  6594. >
  6595. <div class="tool_box">
  6596. <div class="tool_type_box">
  6597. <div class="chooseWho">
  6598. <div
  6599. :class="toolType == 0 ? 'isChooseActive' : ''"
  6600. @click="(toolType = 0), $forceUpdate()"
  6601. >
  6602. 互动类
  6603. </div>
  6604. <div
  6605. :class="toolType == 1 ? 'isChooseActive' : ''"
  6606. @click="(toolType = 1), $forceUpdate()"
  6607. >
  6608. 思维类
  6609. </div>
  6610. <div
  6611. :class="toolType == 2 ? 'isChooseActive' : ''"
  6612. @click="(toolType = 2), $forceUpdate()"
  6613. >
  6614. 测评类
  6615. </div>
  6616. <div
  6617. :class="toolType == 3 ? 'isChooseActive' : ''"
  6618. @click="(toolType = 3), $forceUpdate()"
  6619. >
  6620. 编程类
  6621. </div>
  6622. <div
  6623. :class="toolType == 5 ? 'isChooseActive' : ''"
  6624. @click="(toolType = 5), $forceUpdate()"
  6625. >
  6626. 学科类
  6627. </div>
  6628. </div>
  6629. </div>
  6630. <div>
  6631. <div class="toolSort" v-if="toolType == 0">
  6632. <div class="tool">
  6633. <div class="whiteBIcon" @click="addTools2(10)">
  6634. <img
  6635. src="../../assets/icon/thirdToolList/time.png"
  6636. alt
  6637. />
  6638. <div style="margin: 5px 0">倒计时</div>
  6639. </div>
  6640. <div class="check" @click="addTools2(10)">
  6641. <img
  6642. src="../../assets/icon/checkNo.png"
  6643. alt
  6644. v-if="checktoolArray.indexOf(10) == -1"
  6645. />
  6646. <div class="checkDiv" v-else>
  6647. <img src="../../assets/icon/checkedIs.png" alt /><span
  6648. >已选择</span
  6649. >
  6650. </div>
  6651. </div>
  6652. </div>
  6653. <div class="tool">
  6654. <div class="whiteBIcon" @click="addTools2(65)">
  6655. <img
  6656. src="../../assets/icon/firstToolList/pickPeople.png"
  6657. alt
  6658. />
  6659. <div style="margin: 5px 0">挑人</div>
  6660. </div>
  6661. <div class="check" @click="addTools2(65)">
  6662. <img
  6663. src="../../assets/icon/checkNo.png"
  6664. alt
  6665. v-if="checktoolArray.indexOf(65) == -1"
  6666. />
  6667. <div class="checkDiv" v-else>
  6668. <img src="../../assets/icon/checkedIs.png" alt /><span
  6669. >已选择</span
  6670. >
  6671. </div>
  6672. </div>
  6673. </div>
  6674. </div>
  6675. <div class="toolSort" v-if="toolType == 1">
  6676. <div class="tool">
  6677. <div class="whiteBIcon" @click="addTools2(7)">
  6678. <img
  6679. src="../../assets/icon/secondToolList/mindNetwork.png"
  6680. alt
  6681. />
  6682. <div style="margin: 5px 0">思维网格</div>
  6683. </div>
  6684. <div class="check" @click="addTools2(7)">
  6685. <img
  6686. src="../../assets/icon/checkNo.png"
  6687. alt
  6688. v-if="checktoolArray.indexOf(7) == -1"
  6689. />
  6690. <div class="checkDiv" v-else>
  6691. <img src="../../assets/icon/checkedIs.png" alt /><span
  6692. >已选择</span
  6693. >
  6694. </div>
  6695. </div>
  6696. </div>
  6697. <div class="tool">
  6698. <div class="whiteBIcon" @click="addTools2(1)">
  6699. <img
  6700. src="../../assets/icon/secondToolList/whiteBoard.png"
  6701. alt
  6702. />
  6703. <div style="margin: 5px 0">电子白板</div>
  6704. </div>
  6705. <div class="check" @click="addTools2(1)">
  6706. <img
  6707. src="../../assets/icon/checkNo.png"
  6708. alt
  6709. v-if="checktoolArray.indexOf(1) == -1"
  6710. />
  6711. <div class="checkDiv" v-else>
  6712. <img src="../../assets/icon/checkedIs.png" alt /><span
  6713. >已选择</span
  6714. >
  6715. </div>
  6716. </div>
  6717. </div>
  6718. <div class="tool">
  6719. <div class="whiteBIcon" @click="addTools2(52)">
  6720. <img
  6721. src="../../assets/icon/fourthToolList/text.png"
  6722. alt
  6723. />
  6724. <div style="margin: 5px 0">文档</div>
  6725. </div>
  6726. <div class="check" @click="addTools2(52)">
  6727. <img
  6728. src="../../assets/icon/checkNo.png"
  6729. alt
  6730. v-if="checktoolArray.indexOf(52) == -1"
  6731. />
  6732. <div class="checkDiv" v-else>
  6733. <img src="../../assets/icon/checkedIs.png" alt /><span
  6734. >已选择</span
  6735. >
  6736. </div>
  6737. </div>
  6738. </div>
  6739. <div class="tool">
  6740. <div class="whiteBIcon" @click="addTools2(3)">
  6741. <img
  6742. src="../../assets/icon/secondToolList/mindMapping.png"
  6743. alt
  6744. />
  6745. <div style="margin: 5px 0">思维导图</div>
  6746. </div>
  6747. <div class="check" @click="addTools2(3)">
  6748. <img
  6749. src="../../assets/icon/checkNo.png"
  6750. alt
  6751. v-if="checktoolArray.indexOf(3) == -1"
  6752. />
  6753. <div class="checkDiv" v-else>
  6754. <img src="../../assets/icon/checkedIs.png" alt /><span
  6755. >已选择</span
  6756. >
  6757. </div>
  6758. </div>
  6759. </div>
  6760. <div class="tool">
  6761. <div class="whiteBIcon" @click="addTools2(48)">
  6762. <img
  6763. src="../../assets/icon/fourthToolList/table.png"
  6764. alt
  6765. />
  6766. <div style="margin: 5px 0">表格</div>
  6767. </div>
  6768. <div class="check" @click="addTools2(48)">
  6769. <img
  6770. src="../../assets/icon/checkNo.png"
  6771. alt
  6772. v-if="checktoolArray.indexOf(48) == -1"
  6773. />
  6774. <div class="checkDiv" v-else>
  6775. <img src="../../assets/icon/checkedIs.png" alt /><span
  6776. >已选择</span
  6777. >
  6778. </div>
  6779. </div>
  6780. </div>
  6781. </div>
  6782. <div class="toolSort" v-if="toolType == 6">
  6783. <div v-show="tooC == 49">
  6784. <img
  6785. @click="addTools(tooC, toolIndex, taskCount)"
  6786. src="../../assets/icon/fourthToolList/group.png"
  6787. alt
  6788. />
  6789. <div style="margin: 5px 0">学生分组</div>
  6790. </div>
  6791. </div>
  6792. <div class="toolSort" v-if="toolType == 2">
  6793. <div class="tool">
  6794. <div class="whiteBIcon" @click="addTools2(16)">
  6795. <img
  6796. src="../../assets/icon/thirdToolList/work.png"
  6797. alt
  6798. />
  6799. <div style="margin: 5px 0">作业提交</div>
  6800. </div>
  6801. <div class="check" @click="addTools2(16)">
  6802. <img
  6803. src="../../assets/icon/checkNo.png"
  6804. alt
  6805. v-if="checktoolArray.indexOf(16) == -1"
  6806. />
  6807. <div class="checkDiv" v-else>
  6808. <img src="../../assets/icon/checkedIs.png" alt /><span
  6809. >已选择</span
  6810. >
  6811. </div>
  6812. </div>
  6813. </div>
  6814. <div class="tool">
  6815. <div class="whiteBIcon" @click="addTools2(50)">
  6816. <img
  6817. src="../../assets/icon/thirdToolList/plwork.png"
  6818. alt
  6819. />
  6820. <div style="margin: 5px 0">批量上传</div>
  6821. </div>
  6822. <div class="check" @click="addTools2(50)">
  6823. <img
  6824. src="../../assets/icon/checkNo.png"
  6825. alt
  6826. v-if="checktoolArray.indexOf(50) == -1"
  6827. />
  6828. <div class="checkDiv" v-else>
  6829. <img src="../../assets/icon/checkedIs.png" alt /><span
  6830. >已选择</span
  6831. >
  6832. </div>
  6833. </div>
  6834. </div>
  6835. </div>
  6836. <div class="toolSort" v-if="toolType == 3">
  6837. <div class="tool">
  6838. <div class="whiteBIcon" @click="addTools2(18)">
  6839. <img
  6840. src="../../assets/icon/thirdToolList/trainPlatform.png"
  6841. alt
  6842. />
  6843. <div style="margin: 5px 0">训练平台</div>
  6844. </div>
  6845. <div class="check" @click="addTools2(18)">
  6846. <img
  6847. src="../../assets/icon/checkNo.png"
  6848. alt
  6849. v-if="checktoolArray.indexOf(18) == -1"
  6850. />
  6851. <div class="checkDiv" v-else>
  6852. <img src="../../assets/icon/checkedIs.png" alt /><span
  6853. >已选择</span
  6854. >
  6855. </div>
  6856. </div>
  6857. </div>
  6858. <div class="tool">
  6859. <div class="whiteBIcon" @click="addTools2(21)">
  6860. <img
  6861. src="../../assets/icon/fourthToolList/program.png"
  6862. alt
  6863. />
  6864. <div style="margin: 5px 0">AIoT Blockly</div>
  6865. </div>
  6866. <div class="check" @click="addTools2(21)">
  6867. <img
  6868. src="../../assets/icon/checkNo.png"
  6869. alt
  6870. v-if="checktoolArray.indexOf(21) == -1"
  6871. />
  6872. <div class="checkDiv" v-else>
  6873. <img src="../../assets/icon/checkedIs.png" alt /><span
  6874. >已选择</span
  6875. >
  6876. </div>
  6877. </div>
  6878. </div>
  6879. <div class="tool">
  6880. <div class="whiteBIcon" @click="addTools2(23)">
  6881. <img
  6882. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  6883. alt
  6884. />
  6885. <div style="margin: 5px 0">AI Python</div>
  6886. </div>
  6887. <div class="check" @click="addTools2(23)">
  6888. <img
  6889. src="../../assets/icon/checkNo.png"
  6890. alt
  6891. v-if="checktoolArray.indexOf(23) == -1"
  6892. />
  6893. <div class="checkDiv" v-else>
  6894. <img src="../../assets/icon/checkedIs.png" alt /><span
  6895. >已选择</span
  6896. >
  6897. </div>
  6898. </div>
  6899. </div>
  6900. <div class="tool">
  6901. <div class="whiteBIcon" @click="addTools2(24)">
  6902. <img
  6903. src="../../assets/icon/fourthToolList/AIprogram.png"
  6904. alt
  6905. />
  6906. <div style="margin: 5px 0">AI Blockly</div>
  6907. </div>
  6908. <div class="check" @click="addTools2(24)">
  6909. <img
  6910. src="../../assets/icon/checkNo.png"
  6911. alt
  6912. v-if="checktoolArray.indexOf(24) == -1"
  6913. />
  6914. <div class="checkDiv" v-else>
  6915. <img src="../../assets/icon/checkedIs.png" alt /><span
  6916. >已选择</span
  6917. >
  6918. </div>
  6919. </div>
  6920. </div>
  6921. <div class="tool">
  6922. <div class="whiteBIcon" @click="addTools2(32)">
  6923. <img
  6924. src="../../assets/icon/thirdToolList/code.png"
  6925. alt
  6926. />
  6927. <div style="margin: 5px 0">源码编辑</div>
  6928. </div>
  6929. <div class="check" @click="addTools2(32)">
  6930. <img
  6931. src="../../assets/icon/checkNo.png"
  6932. alt
  6933. v-if="checktoolArray.indexOf(32) == -1"
  6934. />
  6935. <div class="checkDiv" v-else>
  6936. <img src="../../assets/icon/checkedIs.png" alt /><span
  6937. >已选择</span
  6938. >
  6939. </div>
  6940. </div>
  6941. </div>
  6942. <div class="tool">
  6943. <div class="whiteBIcon" @click="addTools2(57)">
  6944. <img
  6945. src="../../assets/icon/fourthToolList/cocopi.png"
  6946. alt
  6947. />
  6948. <div style="margin: 5px 0">CocoPi</div>
  6949. </div>
  6950. <div class="check" @click="addTools2(57)">
  6951. <img
  6952. src="../../assets/icon/checkNo.png"
  6953. alt
  6954. v-if="checktoolArray.indexOf(57) == -1"
  6955. />
  6956. <div class="checkDiv" v-else>
  6957. <img src="../../assets/icon/checkedIs.png" alt /><span
  6958. >已选择</span
  6959. >
  6960. </div>
  6961. </div>
  6962. </div>
  6963. <div class="tool">
  6964. <div class="whiteBIcon" @click="addTools2(63)">
  6965. <img
  6966. src="../../assets/icon/fourthToolList/Wood.png"
  6967. alt
  6968. />
  6969. <div style="margin: 5px 0">海龟编程</div>
  6970. </div>
  6971. <div class="check" @click="addTools2(63)">
  6972. <img
  6973. src="../../assets/icon/checkNo.png"
  6974. alt
  6975. v-if="checktoolArray.indexOf(63) == -1"
  6976. />
  6977. <div class="checkDiv" v-else>
  6978. <img src="../../assets/icon/checkedIs.png" alt /><span
  6979. >已选择</span
  6980. >
  6981. </div>
  6982. </div>
  6983. </div>
  6984. </div>
  6985. <div class="toolSort" v-if="toolType == 5">
  6986. <div class="tool">
  6987. <div class="whiteBIcon" @click="addTools2(28)">
  6988. <img
  6989. src="../../assets/icon/secondToolList/translation.png"
  6990. alt
  6991. />
  6992. <div style="margin: 5px 0">翻译</div>
  6993. </div>
  6994. <div class="check" @click="addTools2(28)">
  6995. <img
  6996. src="../../assets/icon/checkNo.png"
  6997. alt
  6998. v-if="checktoolArray.indexOf(28) == -1"
  6999. />
  7000. <div class="checkDiv" v-else>
  7001. <img src="../../assets/icon/checkedIs.png" alt /><span
  7002. >已选择</span
  7003. >
  7004. </div>
  7005. </div>
  7006. </div>
  7007. <div class="tool">
  7008. <div class="whiteBIcon" @click="addTools2(31)">
  7009. <img
  7010. src="../../assets/icon/secondToolList/networkPanel.png"
  7011. alt
  7012. />
  7013. <div style="margin: 5px 0">数字画板</div>
  7014. </div>
  7015. <div class="check" @click="addTools2(31)">
  7016. <img
  7017. src="../../assets/icon/checkNo.png"
  7018. alt
  7019. v-if="checktoolArray.indexOf(31) == -1"
  7020. />
  7021. <div class="checkDiv" v-else>
  7022. <img src="../../assets/icon/checkedIs.png" alt /><span
  7023. >已选择</span
  7024. >
  7025. </div>
  7026. </div>
  7027. </div>
  7028. <div class="tool">
  7029. <div class="whiteBIcon" @click="addTools2(39)">
  7030. <img
  7031. src="../../assets/icon/secondToolList/GeoGebra.png"
  7032. alt
  7033. />
  7034. <div style="margin: 5px 0">GeoGebra</div>
  7035. </div>
  7036. <div class="check" @click="addTools2(39)">
  7037. <img
  7038. src="../../assets/icon/checkNo.png"
  7039. alt
  7040. v-if="checktoolArray.indexOf(39) == -1"
  7041. />
  7042. <div class="checkDiv" v-else>
  7043. <img src="../../assets/icon/checkedIs.png" alt /><span
  7044. >已选择</span
  7045. >
  7046. </div>
  7047. </div>
  7048. </div>
  7049. <div class="tool">
  7050. <div class="whiteBIcon" @click="addTools2(66)">
  7051. <img
  7052. src="../../assets/icon/secondToolList/formulaEdi.png"
  7053. alt
  7054. />
  7055. <div style="margin: 5px 0">公式编辑</div>
  7056. </div>
  7057. <div class="check" @click="addTools2(66)">
  7058. <img
  7059. src="../../assets/icon/checkNo.png"
  7060. alt
  7061. v-if="checktoolArray.indexOf(66) == -1"
  7062. />
  7063. <div class="checkDiv" v-else>
  7064. <img src="../../assets/icon/checkedIs.png" alt /><span
  7065. >已选择</span
  7066. >
  7067. </div>
  7068. </div>
  7069. </div>
  7070. <div class="tool">
  7071. <div class="whiteBIcon" @click="addTools2(67)">
  7072. <img
  7073. src="../../assets/icon/secondToolList/molStr.png"
  7074. alt
  7075. />
  7076. <div style="margin: 5px 0">分子结构</div>
  7077. </div>
  7078. <div class="check" @click="addTools2(67)">
  7079. <img
  7080. src="../../assets/icon/checkNo.png"
  7081. alt
  7082. v-if="checktoolArray.indexOf(67) == -1"
  7083. />
  7084. <div class="checkDiv" v-else>
  7085. <img src="../../assets/icon/checkedIs.png" alt /><span
  7086. >已选择</span
  7087. >
  7088. </div>
  7089. </div>
  7090. </div>
  7091. <div class="tool">
  7092. <div class="whiteBIcon" @click="addTools2(68)">
  7093. <img
  7094. src="../../assets/icon/secondToolList/timeAxis.png"
  7095. alt
  7096. />
  7097. <div style="margin: 5px 0">时间轴</div>
  7098. </div>
  7099. <div class="check" @click="addTools2(68)">
  7100. <img
  7101. src="../../assets/icon/checkNo.png"
  7102. alt
  7103. v-if="checktoolArray.indexOf(68) == -1"
  7104. />
  7105. <div class="checkDiv" v-else>
  7106. <img src="../../assets/icon/checkedIs.png" alt /><span
  7107. >已选择</span
  7108. >
  7109. </div>
  7110. </div>
  7111. </div>
  7112. </div>
  7113. <div class="toolSort" v-if="toolType == 7">
  7114. <div class="tool">
  7115. <div class="whiteBIcon" @click="addTools2(40)">
  7116. <img
  7117. src="../../assets/icon/secondToolList/eval.png"
  7118. alt
  7119. />
  7120. <div style="margin: 5px 0">个人评价</div>
  7121. </div>
  7122. <div class="check" @click="addTools2(40)">
  7123. <img
  7124. src="../../assets/icon/checkNo.png"
  7125. alt
  7126. v-if="checktoolArray.indexOf(40) == -1"
  7127. />
  7128. <div class="checkDiv" v-else>
  7129. <img src="../../assets/icon/checkedIs.png" alt /><span
  7130. >已选择</span
  7131. >
  7132. </div>
  7133. </div>
  7134. </div>
  7135. </div>
  7136. <div class="toolSort" v-if="toolType == 4">
  7137. <div class="tool">
  7138. <div class="whiteBIcon" @click="addTools2(26)">
  7139. <img
  7140. src="../../assets/icon/thirdToolList/courseDesign.png"
  7141. alt
  7142. />
  7143. <div style="margin: 5px 0">课程设计</div>
  7144. </div>
  7145. <div class="check" @click="addTools2(26)">
  7146. <img
  7147. src="../../assets/icon/checkNo.png"
  7148. alt
  7149. v-if="checktoolArray.indexOf(26) == -1"
  7150. />
  7151. <div class="checkDiv" v-else>
  7152. <img src="../../assets/icon/checkedIs.png" alt /><span
  7153. >已选择</span
  7154. >
  7155. </div>
  7156. </div>
  7157. </div>
  7158. <div class="tool">
  7159. <div class="whiteBIcon" @click="addTools2(25)">
  7160. <img
  7161. src="../../assets/icon/thirdToolList/evalua.png"
  7162. alt
  7163. />
  7164. <div style="margin: 5px 0">目标管理</div>
  7165. </div>
  7166. <div class="check" @click="addTools2(25)">
  7167. <img
  7168. src="../../assets/icon/checkNo.png"
  7169. alt
  7170. v-if="checktoolArray.indexOf(25) == -1"
  7171. />
  7172. <div class="checkDiv" v-else>
  7173. <img src="../../assets/icon/checkedIs.png" alt /><span
  7174. >已选择</span
  7175. >
  7176. </div>
  7177. </div>
  7178. </div>
  7179. </div>
  7180. </div>
  7181. </div>
  7182. </div>
  7183. </div> -->
  7184. <div
  7185. class="vedioBox"
  7186. style="margin-top: 10px; border-radius: 20px"
  7187. v-if="
  7188. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7189. .eList &&
  7190. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7191. .eList.length &&
  7192. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7193. .eList.length > 0 &&
  7194. tType != 2
  7195. "
  7196. >
  7197. <div
  7198. class="queTop"
  7199. style="
  7200. font-size: 20px;
  7201. padding: 15px 0 15px 37px;
  7202. font-weight: bold;
  7203. "
  7204. >
  7205. <!-- <div class="question" style="width: 30px">
  7206. <img src="../../assets/icon/toolIcon.png" alt />
  7207. </div>
  7208. <div class="queTitle">
  7209. <div>工具</div>
  7210. </div>-->
  7211. 评一评
  7212. </div>
  7213. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7214. <div class="elist_input">
  7215. <el-table
  7216. :data="
  7217. chapInfoList[courseType].chapterInfo[0].taskJson[
  7218. taskCount
  7219. ].eList
  7220. "
  7221. :header-cell-style="{ background: '#F0F4FA' }"
  7222. :row-class-name="tableRowClassName"
  7223. border
  7224. stripe
  7225. style="width: 100%"
  7226. >
  7227. <el-table-column
  7228. label="评价名称"
  7229. width="180"
  7230. align="center"
  7231. >
  7232. <template slot-scope="scope"
  7233. ><div>{{ scope.row.value }}</div></template
  7234. >
  7235. </el-table-column>
  7236. <el-table-column
  7237. label="评价描述"
  7238. width="180"
  7239. align="center"
  7240. >
  7241. <template slot-scope="scope"
  7242. ><div>
  7243. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7244. </div></template
  7245. >
  7246. </el-table-column>
  7247. <el-table-column label="目标" align="center">
  7248. <template slot-scope="scope"
  7249. ><div>
  7250. {{
  7251. scope.row.target
  7252. ? scope.row.target[scope.row.target.length - 1]
  7253. : "-"
  7254. }}
  7255. </div></template
  7256. ></el-table-column
  7257. >
  7258. </el-table>
  7259. <!-- <div
  7260. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7261. .chapterInfo[0].taskJson[taskCount].eList"
  7262. :key="eIndex"
  7263. class="elist_input_box"
  7264. >
  7265. <div style="width: 95%">
  7266. <div
  7267. style="
  7268. display: flex;
  7269. flex-direction: row;
  7270. flex-wrap: nowrap;
  7271. align-items: center;
  7272. "
  7273. >
  7274. <div style="max-width: calc(100% - 285px)">
  7275. <span>{{ eItem.value }}</span>
  7276. </div>
  7277. <div
  7278. style="
  7279. padding-left: 25px;
  7280. display: flex;
  7281. flex-direction: row;
  7282. align-items: center;
  7283. "
  7284. >
  7285. <el-rate
  7286. v-model="eItem.score"
  7287. :colors="colors"
  7288. disabled
  7289. ></el-rate>
  7290. </div>
  7291. </div>
  7292. <div class="elist_inptu_text" style="padding-left: 10px">
  7293. <span v-if="eItem.detail != ''">{{
  7294. eItem.detail
  7295. }}</span>
  7296. <span v-else style="color: #b2b1b3; font-size: 14px"
  7297. >暂无描述...</span
  7298. >
  7299. </div>
  7300. </div>
  7301. </div> -->
  7302. </div>
  7303. <div
  7304. v-if="evalua"
  7305. style="
  7306. border: 1px solid #e5e5e5;
  7307. max-width: 650px;
  7308. width: 100%;
  7309. margin-top: 20px;
  7310. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7311. "
  7312. >
  7313. <div class="e_add_top">
  7314. <div class="e_add_title">
  7315. <span>目标管理名称</span>
  7316. <span>{{ eTitle }}</span>
  7317. <img
  7318. src="../../assets/line.png"
  7319. class="cru_line"
  7320. style="
  7321. width: 125px;
  7322. height: 20px;
  7323. bottom: -10px;
  7324. left: 120px;
  7325. "
  7326. />
  7327. <!-- <el-input
  7328. v-model="eTitle"
  7329. placeholder="请输入名称"
  7330. @change="setMindData"
  7331. ></el-input>-->
  7332. </div>
  7333. </div>
  7334. <div class="e_add_content">
  7335. <div class="e_add_list_pbox">
  7336. <div class="e_add_list_pbox_title">
  7337. <span class="type_title">切换模式</span>
  7338. <div class="type_content">
  7339. <span
  7340. :class="{ active: typeMode == 1 }"
  7341. @click="typeMode = 1"
  7342. >目标树</span
  7343. >
  7344. <span
  7345. :class="{ active: typeMode == 2 }"
  7346. @click="typeMode = 2"
  7347. >目标罗盘</span
  7348. >
  7349. <span
  7350. :class="{ active: typeMode == 3 }"
  7351. @click="typeMode = 3"
  7352. >目标看板</span
  7353. >
  7354. </div>
  7355. </div>
  7356. <div class="e_add_list_pbox_content">
  7357. <Mind
  7358. :showBar="false"
  7359. :mindData="data"
  7360. style="width: 100%"
  7361. v-show="typeMode == 1"
  7362. ></Mind>
  7363. <Sunburst
  7364. :Josn="eJson"
  7365. :num="eJSONNum"
  7366. style="width: 100%"
  7367. v-if="typeMode == 2"
  7368. ></Sunburst>
  7369. <SeeBoard
  7370. :Josn="eJson"
  7371. :num="eJSONNum"
  7372. :ename="eTitle"
  7373. style="width: 100%"
  7374. v-if="typeMode == 3"
  7375. >
  7376. </SeeBoard>
  7377. </div>
  7378. </div>
  7379. </div>
  7380. </div>
  7381. </div>
  7382. </div>
  7383. <!-- <div
  7384. class="project_box"
  7385. style="margin-top: 15px; padding-bottom: 30px"
  7386. >
  7387. <div
  7388. style="
  7389. display: flex;
  7390. flex-wrap: nowrap;
  7391. flex-direction: column;
  7392. position: relative;
  7393. "
  7394. >
  7395. <div class="queTop">
  7396. <div class="question">
  7397. <img src="../../assets/icon/homeWork.png" alt="" />
  7398. </div>
  7399. <div class="queTitle">
  7400. <div>作业提交<span>(提交图文视频等)</span></div>
  7401. <div>:任务:{{ task.task }}</div>
  7402. </div>
  7403. </div>
  7404. <div class="ediBottom">
  7405. <div
  7406. class="addEditor"
  7407. style="margin-top: 23px"
  7408. @click="openAddWork"
  7409. v-if="!isNoHomeWork"
  7410. >
  7411. 选择文件
  7412. </div>
  7413. <div
  7414. class="addEditor"
  7415. style="margin-top: 23px"
  7416. @click="openAddWork"
  7417. v-else
  7418. >
  7419. 已提交
  7420. </div>
  7421. </div>
  7422. </div>
  7423. </div>-->
  7424. </div>
  7425. </div>
  7426. <el-dialog
  7427. title="作业提交"
  7428. :visible.sync="dialogVisible"
  7429. :append-to-body="true"
  7430. width="500px"
  7431. :before-close="handleClose"
  7432. class="dialog_change"
  7433. >
  7434. <div class="marginT">
  7435. <div>上传文件</div>
  7436. <div
  7437. class="chapter_add"
  7438. @click="addImg($event)"
  7439. v-if="studyJuri[0].cover.length == 0"
  7440. >
  7441. <div class="up_photo">
  7442. <img src="../../assets/icon/uploadImg.png" alt />
  7443. </div>
  7444. <!-- <input
  7445. type="file"
  7446. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7447. style="display: none"
  7448. @change="beforeUpload1($event, 1)"
  7449. /> -->
  7450. <input
  7451. type="file"
  7452. accept="*"
  7453. style="display: none"
  7454. @change="beforeUpload1($event, 1)"
  7455. />
  7456. <!-- <input
  7457. type="file"
  7458. accept="image/*"
  7459. capture="camera"
  7460. style="display: none"
  7461. @change="beforeUpload1($event, 1)"
  7462. /> -->
  7463. </div>
  7464. <div
  7465. class="chapter_add"
  7466. style="
  7467. display: flex;
  7468. width: 100%;
  7469. flex-direction: row;
  7470. flex-wrap: wrap;
  7471. justify-content: flex-start;
  7472. padding: 15px 0;
  7473. "
  7474. v-if="studyJuri[0].cover.length > 0"
  7475. >
  7476. <div class="upCover">
  7477. <img
  7478. :src="studyJuri[0].cover[0].url"
  7479. alt
  7480. v-if="fileType == 0"
  7481. />
  7482. <img :src="word" alt v-else-if="fileType == 1" />
  7483. <img :src="video" alt v-else-if="fileType == 2" />
  7484. <img :src="word2" alt v-else-if="fileType == 3" />
  7485. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7486. <div class="deleteWord" @click="clean(1)">
  7487. <img src="../../assets/icon/deleteWorks.png" alt />
  7488. </div>
  7489. </div>
  7490. </div>
  7491. </div>
  7492. <div
  7493. class="upload_send"
  7494. @click="addCourseWorks(taskCount)"
  7495. v-if="!proVisible"
  7496. >
  7497. 提交
  7498. </div>
  7499. </el-dialog>
  7500. </div>
  7501. </div>
  7502. <div
  7503. class="pButton"
  7504. @click="(pzDialog = true), selectPz()"
  7505. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7506. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7507. >
  7508. <!-- 批 -->
  7509. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  7510. </div>
  7511. <div v-if="pzDialog == true" class="newDialogCss">
  7512. <div class="pzTop2">
  7513. <!-- <div>批注</div>
  7514. <div @click="pzDialog = false">
  7515. <img src="../../assets/close1.png" alt="" />
  7516. </div> -->
  7517. <div class="checkbox">
  7518. <div class="check" style="font-size: 25px; position: unset">
  7519. 评课笔记
  7520. </div>
  7521. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  7522. <el-option label="时间降序" :value="1"></el-option>
  7523. <el-option label="时间升序" :value="2"></el-option>
  7524. <el-option label="我的评课" :value="3"></el-option>
  7525. </el-select>
  7526. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7527. </div>
  7528. </div>
  7529. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7530. <div class="pzListBox" v-if="pzList && pzList.length">
  7531. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7532. <div class="pzNavTop">
  7533. <div>批</div>
  7534. <div>
  7535. {{
  7536. pz.username && pz.username.length > 5
  7537. ? pz.username.substring(0, 5) + "..."
  7538. : pz.username
  7539. }}的批注
  7540. </div>
  7541. <div
  7542. class="pzDelete"
  7543. v-if="pz.userid == userid"
  7544. @click="deletePz(pz.id)"
  7545. >
  7546. 删除
  7547. </div>
  7548. </div>
  7549. <div
  7550. @click="checkImg(getImgList(pz.content))"
  7551. class="pzContent cont"
  7552. v-html="pz.content"
  7553. v-if="pz.type == '1'"
  7554. ></div>
  7555. <div class="pzContent" v-if="pz.type == '2'">
  7556. <audio :src="pz.content" controls="controls" ref="audio">
  7557. Your browser does not support the audio element.
  7558. </audio>
  7559. </div>
  7560. <div class="pzContent" v-if="pz.type == '3'">
  7561. <img
  7562. :src="pz.content"
  7563. style="width: 90%; margin: 0 auto; display: block"
  7564. @click="previewImg(pz.content)"
  7565. />
  7566. </div>
  7567. <div class="timeAndReply">
  7568. <div class="time">
  7569. {{ pz.time }}
  7570. </div>
  7571. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  7572. </div>
  7573. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  7574. <div
  7575. v-for="(h, hIndex) in pz.hfList"
  7576. :key="hIndex"
  7577. class="hfItem"
  7578. >
  7579. <div class="whoReplyWho">
  7580. <div class="hfName">{{ h.username }}</div>
  7581. <div class="hfImg">
  7582. <img src="../../assets/icon/newIcons/right.png" alt="" />
  7583. </div>
  7584. <div class="hfName">{{ pz.username }}</div>
  7585. </div>
  7586. <div class="hfContent" v-html="h.content"></div>
  7587. <div class="hfBottom">
  7588. <div class="hfTime">{{ h.time }}</div>
  7589. <div
  7590. class="deleteHfItem"
  7591. @click="deleteReply(h.id)"
  7592. v-if="userid == h.userid"
  7593. >
  7594. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  7595. </div>
  7596. </div>
  7597. </div>
  7598. </div>
  7599. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  7600. <div class="replyInput">
  7601. <el-input v-model="reply[pzIndex]"></el-input>
  7602. </div>
  7603. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  7604. </div> -->
  7605. </div>
  7606. </div>
  7607. <div class="noPz" v-else>
  7608. <img src="../../assets/icon/noPz.png" alt="" />
  7609. </div>
  7610. <div class="addPzButton">
  7611. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7612. 添加批注
  7613. </div>
  7614. <!-- <div class="img1">
  7615. <div @click="(addPzDialog = true), (pzType = 2)">
  7616. <img src="../../assets/audio.png" /><span>音频</span>
  7617. </div>
  7618. </div> -->
  7619. </div>
  7620. </div>
  7621. </div>
  7622. <div
  7623. v-if="toolDialogVisible == true"
  7624. class="toolMask"
  7625. @click="toolDialogVisible = false"
  7626. ></div>
  7627. <div v-if="toolDialogVisible == true" class="addToolCss">
  7628. <div class="toolTop">
  7629. <div style="font-weight: bold">新增工具</div>
  7630. <div @click="toolDialogVisible = false">
  7631. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  7632. </div>
  7633. </div>
  7634. <div class="tool_box">
  7635. <div class="tool_type_box">
  7636. <div class="chooseWho">
  7637. <div
  7638. :class="toolType == 0 ? 'isChooseActive' : ''"
  7639. @click="(toolType = 0), $forceUpdate()"
  7640. >
  7641. 互动类
  7642. </div>
  7643. <div
  7644. :class="toolType == 1 ? 'isChooseActive' : ''"
  7645. @click="(toolType = 1), $forceUpdate()"
  7646. >
  7647. 思维类
  7648. </div>
  7649. <div
  7650. :class="toolType == 2 ? 'isChooseActive' : ''"
  7651. @click="(toolType = 2), $forceUpdate()"
  7652. >
  7653. 测评类
  7654. </div>
  7655. <div
  7656. :class="toolType == 3 ? 'isChooseActive' : ''"
  7657. @click="(toolType = 3), $forceUpdate()"
  7658. >
  7659. 编程类
  7660. </div>
  7661. <div
  7662. :class="toolType == 5 ? 'isChooseActive' : ''"
  7663. @click="(toolType = 5), $forceUpdate()"
  7664. >
  7665. 学科类
  7666. </div>
  7667. </div>
  7668. </div>
  7669. <div>
  7670. <div class="toolSort" v-if="toolType == 0">
  7671. <div
  7672. class="tool"
  7673. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  7674. @click="addTools2(10)"
  7675. >
  7676. <div class="whiteBIcon">
  7677. <img src="../../assets/icon/thirdToolList/time.png" alt />
  7678. <div style="margin: 5px 0">倒计时</div>
  7679. </div>
  7680. <div class="check">
  7681. <div
  7682. v-if="checktoolArray.indexOf(10) == -1"
  7683. class="noChoose"
  7684. ></div>
  7685. <div v-else class="isChoose"></div>
  7686. </div>
  7687. </div>
  7688. <div
  7689. class="tool"
  7690. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  7691. @click="addTools2(65)"
  7692. >
  7693. <div class="whiteBIcon">
  7694. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  7695. <div style="margin: 5px 0">挑人</div>
  7696. </div>
  7697. <div class="check">
  7698. <div
  7699. v-if="checktoolArray.indexOf(65) == -1"
  7700. class="noChoose"
  7701. ></div>
  7702. <div v-else class="isChoose"></div>
  7703. </div>
  7704. </div>
  7705. </div>
  7706. <div class="toolSort" v-if="toolType == 1">
  7707. <div
  7708. class="tool"
  7709. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  7710. @click="addTools2(7)"
  7711. >
  7712. <div class="whiteBIcon">
  7713. <img
  7714. src="../../assets/icon/secondToolList/mindNetwork.png"
  7715. alt
  7716. />
  7717. <div style="margin: 5px 0">思维网格</div>
  7718. </div>
  7719. <div class="check">
  7720. <div
  7721. v-if="checktoolArray.indexOf(7) == -1"
  7722. class="noChoose"
  7723. ></div>
  7724. <div v-else class="isChoose"></div>
  7725. </div>
  7726. </div>
  7727. <div
  7728. class="tool"
  7729. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  7730. @click="addTools2(1)"
  7731. >
  7732. <div class="whiteBIcon">
  7733. <img
  7734. src="../../assets/icon/secondToolList/whiteBoard.png"
  7735. alt
  7736. />
  7737. <div style="margin: 5px 0">电子白板</div>
  7738. </div>
  7739. <div class="check">
  7740. <div
  7741. v-if="checktoolArray.indexOf(1) == -1"
  7742. class="noChoose"
  7743. ></div>
  7744. <div v-else class="isChoose"></div>
  7745. </div>
  7746. </div>
  7747. <div
  7748. class="tool"
  7749. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  7750. @click="addTools2(52)"
  7751. >
  7752. <div class="whiteBIcon">
  7753. <img src="../../assets/icon/fourthToolList/text.png" alt />
  7754. <div style="margin: 5px 0">文档</div>
  7755. </div>
  7756. <div class="check">
  7757. <div
  7758. v-if="checktoolArray.indexOf(52) == -1"
  7759. class="noChoose"
  7760. ></div>
  7761. <div v-else class="isChoose"></div>
  7762. </div>
  7763. </div>
  7764. <div
  7765. class="tool"
  7766. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  7767. @click="addTools2(3)"
  7768. >
  7769. <div class="whiteBIcon">
  7770. <img
  7771. src="../../assets/icon/secondToolList/mindMapping.png"
  7772. alt
  7773. />
  7774. <div style="margin: 5px 0">思维导图</div>
  7775. </div>
  7776. <div class="check">
  7777. <div
  7778. v-if="checktoolArray.indexOf(3) == -1"
  7779. class="noChoose"
  7780. ></div>
  7781. <div v-else class="isChoose"></div>
  7782. </div>
  7783. </div>
  7784. <div
  7785. class="tool"
  7786. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  7787. @click="addTools2(48)"
  7788. >
  7789. <div class="whiteBIcon">
  7790. <img src="../../assets/icon/fourthToolList/table.png" alt />
  7791. <div style="margin: 5px 0">表格</div>
  7792. </div>
  7793. <div class="check">
  7794. <div
  7795. v-if="checktoolArray.indexOf(48) == -1"
  7796. class="noChoose"
  7797. ></div>
  7798. <div v-else class="isChoose"></div>
  7799. </div>
  7800. </div>
  7801. </div>
  7802. <div class="toolSort" v-if="toolType == 6">
  7803. <div v-show="tooC == 49">
  7804. <img
  7805. @click="addTools(tooC, toolIndex, taskCount)"
  7806. src="../../assets/icon/fourthToolList/group.png"
  7807. alt
  7808. />
  7809. <div style="margin: 5px 0">学生分组</div>
  7810. </div>
  7811. </div>
  7812. <div class="toolSort" v-if="toolType == 2">
  7813. <div
  7814. class="tool"
  7815. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  7816. @click="addTools2(16)"
  7817. >
  7818. <div class="whiteBIcon">
  7819. <img src="../../assets/icon/thirdToolList/work.png" alt />
  7820. <div style="margin: 5px 0">作业提交</div>
  7821. </div>
  7822. <div class="check">
  7823. <div
  7824. v-if="checktoolArray.indexOf(16) == -1"
  7825. class="noChoose"
  7826. ></div>
  7827. <div v-else class="isChoose"></div>
  7828. </div>
  7829. </div>
  7830. <div
  7831. class="tool"
  7832. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  7833. @click="addTools2(50)"
  7834. >
  7835. <div class="whiteBIcon">
  7836. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  7837. <div style="margin: 5px 0">批量上传</div>
  7838. </div>
  7839. <div class="check">
  7840. <div
  7841. v-if="checktoolArray.indexOf(50) == -1"
  7842. class="noChoose"
  7843. ></div>
  7844. <div v-else class="isChoose"></div>
  7845. </div>
  7846. </div>
  7847. </div>
  7848. <div class="toolSort" v-if="toolType == 3">
  7849. <div
  7850. class="tool"
  7851. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  7852. @click="addTools2(18)"
  7853. >
  7854. <div class="whiteBIcon">
  7855. <img
  7856. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7857. alt
  7858. />
  7859. <div style="margin: 5px 0">训练平台</div>
  7860. </div>
  7861. <div class="check">
  7862. <div
  7863. v-if="checktoolArray.indexOf(18) == -1"
  7864. class="noChoose"
  7865. ></div>
  7866. <div v-else class="isChoose"></div>
  7867. </div>
  7868. </div>
  7869. <div
  7870. class="tool"
  7871. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  7872. @click="addTools2(21)"
  7873. >
  7874. <div class="whiteBIcon">
  7875. <img src="../../assets/icon/fourthToolList/program.png" alt />
  7876. <div style="margin: 5px 0">AIoT Blockly</div>
  7877. </div>
  7878. <div class="check">
  7879. <div
  7880. v-if="checktoolArray.indexOf(21) == -1"
  7881. class="noChoose"
  7882. ></div>
  7883. <div v-else class="isChoose"></div>
  7884. </div>
  7885. </div>
  7886. <div
  7887. class="tool"
  7888. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  7889. @click="addTools2(23)"
  7890. >
  7891. <div class="whiteBIcon">
  7892. <img
  7893. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7894. alt
  7895. />
  7896. <div style="margin: 5px 0">AI Python</div>
  7897. </div>
  7898. <div class="check">
  7899. <div
  7900. v-if="checktoolArray.indexOf(23) == -1"
  7901. class="noChoose"
  7902. ></div>
  7903. <div v-else class="isChoose"></div>
  7904. </div>
  7905. </div>
  7906. <div
  7907. class="tool"
  7908. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  7909. @click="addTools2(24)"
  7910. >
  7911. <div class="whiteBIcon">
  7912. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  7913. <div style="margin: 5px 0">AI Blockly</div>
  7914. </div>
  7915. <div class="check">
  7916. <div
  7917. v-if="checktoolArray.indexOf(24) == -1"
  7918. class="noChoose"
  7919. ></div>
  7920. <div v-else class="isChoose"></div>
  7921. </div>
  7922. </div>
  7923. <div
  7924. class="tool"
  7925. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  7926. @click="addTools2(32)"
  7927. >
  7928. <div class="whiteBIcon">
  7929. <img src="../../assets/icon/thirdToolList/code.png" alt />
  7930. <div style="margin: 5px 0">源码编辑</div>
  7931. </div>
  7932. <div class="check">
  7933. <div
  7934. v-if="checktoolArray.indexOf(32) == -1"
  7935. class="noChoose"
  7936. ></div>
  7937. <div v-else class="isChoose"></div>
  7938. </div>
  7939. </div>
  7940. <div
  7941. class="tool"
  7942. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  7943. @click="addTools2(57)"
  7944. >
  7945. <div class="whiteBIcon">
  7946. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  7947. <div style="margin: 5px 0">CocoPi</div>
  7948. </div>
  7949. <div class="check">
  7950. <div
  7951. v-if="checktoolArray.indexOf(57) == -1"
  7952. class="noChoose"
  7953. ></div>
  7954. <div v-else class="isChoose"></div>
  7955. </div>
  7956. </div>
  7957. <div
  7958. class="tool"
  7959. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  7960. @click="addTools2(63)"
  7961. >
  7962. <div class="whiteBIcon">
  7963. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  7964. <div style="margin: 5px 0">海龟编程</div>
  7965. </div>
  7966. <div class="check">
  7967. <div
  7968. v-if="checktoolArray.indexOf(63) == -1"
  7969. class="noChoose"
  7970. ></div>
  7971. <div v-else class="isChoose"></div>
  7972. </div>
  7973. </div>
  7974. </div>
  7975. <div class="toolSort" v-if="toolType == 7">
  7976. <div
  7977. class="tool"
  7978. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  7979. @click="addTools2(40)"
  7980. >
  7981. <div class="whiteBIcon">
  7982. <img src="../../assets/icon/secondToolList/eval.png" alt />
  7983. <div style="margin: 5px 0">个人评价</div>
  7984. </div>
  7985. <div class="check">
  7986. <div
  7987. v-if="checktoolArray.indexOf(40) == -1"
  7988. class="noChoose"
  7989. ></div>
  7990. <div v-else class="isChoose"></div>
  7991. </div>
  7992. </div>
  7993. </div>
  7994. <div class="toolSort" v-if="toolType == 5">
  7995. <div
  7996. class="tool"
  7997. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  7998. @click="addTools2(28)"
  7999. >
  8000. <div class="whiteBIcon">
  8001. <img
  8002. src="../../assets/icon/secondToolList/translation.png"
  8003. alt
  8004. />
  8005. <div style="margin: 5px 0">翻译</div>
  8006. </div>
  8007. <div class="check">
  8008. <div
  8009. v-if="checktoolArray.indexOf(28) == -1"
  8010. class="noChoose"
  8011. ></div>
  8012. <div v-else class="isChoose"></div>
  8013. </div>
  8014. </div>
  8015. <div
  8016. class="tool"
  8017. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8018. @click="addTools2(31)"
  8019. >
  8020. <div class="whiteBIcon">
  8021. <img
  8022. src="../../assets/icon/secondToolList/networkPanel.png"
  8023. alt
  8024. />
  8025. <div style="margin: 5px 0">数字画板</div>
  8026. </div>
  8027. <div class="check">
  8028. <div
  8029. v-if="checktoolArray.indexOf(31) == -1"
  8030. class="noChoose"
  8031. ></div>
  8032. <div v-else class="isChoose"></div>
  8033. </div>
  8034. </div>
  8035. <div
  8036. class="tool"
  8037. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8038. @click="addTools2(39)"
  8039. >
  8040. <div class="whiteBIcon">
  8041. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8042. <div style="margin: 5px 0">GeoGebra</div>
  8043. </div>
  8044. <div class="check">
  8045. <div
  8046. v-if="checktoolArray.indexOf(39) == -1"
  8047. class="noChoose"
  8048. ></div>
  8049. <div v-else class="isChoose"></div>
  8050. </div>
  8051. </div>
  8052. <div
  8053. class="tool"
  8054. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8055. @click="addTools2(66)"
  8056. >
  8057. <div class="whiteBIcon">
  8058. <img
  8059. src="../../assets/icon/secondToolList/formulaEdi.png"
  8060. alt
  8061. />
  8062. <div style="margin: 5px 0">公式编辑</div>
  8063. </div>
  8064. <div class="check">
  8065. <div
  8066. v-if="checktoolArray.indexOf(66) == -1"
  8067. class="noChoose"
  8068. ></div>
  8069. <div v-else class="isChoose"></div>
  8070. </div>
  8071. </div>
  8072. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8073. <div class="whiteBIcon" @click="addTools2(67)">
  8074. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8075. <div style="margin: 5px 0">分子结构</div>
  8076. </div>
  8077. <div class="check" @click="addTools2(67)">
  8078. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8079. <div v-else class="isChoose"></div>
  8080. </div>
  8081. </div> -->
  8082. <div
  8083. class="tool"
  8084. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8085. @click="addTools2(68)"
  8086. >
  8087. <div class="whiteBIcon">
  8088. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8089. <div style="margin: 5px 0">时间轴</div>
  8090. </div>
  8091. <div class="check">
  8092. <div
  8093. v-if="checktoolArray.indexOf(68) == -1"
  8094. class="noChoose"
  8095. ></div>
  8096. <div v-else class="isChoose"></div>
  8097. </div>
  8098. </div>
  8099. <div
  8100. class="tool"
  8101. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8102. @click="addTools2(69)"
  8103. >
  8104. <div class="whiteBIcon">
  8105. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8106. <div style="margin: 5px 0">英语写作</div>
  8107. </div>
  8108. <div class="check">
  8109. <div
  8110. v-if="checktoolArray.indexOf(69) == -1"
  8111. class="noChoose"
  8112. ></div>
  8113. <div v-else class="isChoose"></div>
  8114. </div>
  8115. </div>
  8116. </div>
  8117. <div class="toolSort" v-if="toolType == 4">
  8118. <div
  8119. class="tool"
  8120. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8121. @click="addTools2(26)"
  8122. >
  8123. <div class="whiteBIcon">
  8124. <img
  8125. src="../../assets/icon/thirdToolList/courseDesign.png"
  8126. alt
  8127. />
  8128. <div style="margin: 5px 0">课程设计</div>
  8129. </div>
  8130. <div class="check">
  8131. <div
  8132. v-if="checktoolArray.indexOf(26) == -1"
  8133. class="noChoose"
  8134. ></div>
  8135. <div v-else class="isChoose"></div>
  8136. </div>
  8137. </div>
  8138. <div
  8139. class="tool"
  8140. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8141. @click="addTools2(25)"
  8142. >
  8143. <div class="whiteBIcon">
  8144. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8145. <div style="margin: 5px 0">目标管理</div>
  8146. </div>
  8147. <div class="check">
  8148. <div
  8149. v-if="checktoolArray.indexOf(25) == -1"
  8150. class="noChoose"
  8151. ></div>
  8152. <div v-else class="isChoose"></div>
  8153. </div>
  8154. </div>
  8155. </div>
  8156. </div>
  8157. </div>
  8158. <span
  8159. slot="footer"
  8160. class="dialog-footer"
  8161. style="display: block; text-align: center; padding: 0 0 10px 0"
  8162. >
  8163. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8164. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8165. </span>
  8166. </div>
  8167. <div
  8168. v-if="replyDialogVisible == true"
  8169. class="addDialogCss"
  8170. v-el-drag-dialog
  8171. >
  8172. <div class="pzTop">
  8173. <div class="teacherPz">
  8174. <div class="teacherPzImg">
  8175. <img src="../../assets/icon/teacherPz.png" alt="" />
  8176. </div>
  8177. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8178. </div>
  8179. <div @click="replyDialogVisible = false">
  8180. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8181. </div>
  8182. </div>
  8183. <div class="addPzBox">
  8184. <!-- <div class="addPzCheck">
  8185. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8186. >文本</span
  8187. >
  8188. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8189. >音频</span
  8190. >
  8191. </div> -->
  8192. <div style="height: calc(100% - 50px)">
  8193. <editor-bar
  8194. class="binfo_input pzConText"
  8195. style="width: 100% !important; margin: 0 auto"
  8196. placeholder="请输入回复描述"
  8197. v-model="reply"
  8198. @change="change"
  8199. ></editor-bar>
  8200. </div>
  8201. <div class="addTextCss" @click="addHf">确定</div>
  8202. </div>
  8203. </div>
  8204. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8205. <div class="pzTop">
  8206. <div class="teacherPz">
  8207. <div class="teacherPzImg">
  8208. <img src="../../assets/icon/teacherPz.png" alt="" />
  8209. </div>
  8210. <div style="margin-left: 10px; height: 25px">教师批注</div>
  8211. </div>
  8212. <div @click="addPzDialog = false">
  8213. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8214. </div>
  8215. </div>
  8216. <div class="addPzBox">
  8217. <div class="addPzCheck">
  8218. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8219. >文本</span
  8220. >
  8221. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8222. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8223. >音频</span
  8224. >
  8225. </div>
  8226. <div style="height: calc(100% - 95px)">
  8227. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8228. v-if="pzType == 1"></textarea> -->
  8229. <editor-bar
  8230. class="binfo_input pzConText"
  8231. style="width: 100% !important"
  8232. placeholder="请输入任务描述"
  8233. v-model="pzConText"
  8234. @change="change"
  8235. v-if="pzType == 1"
  8236. ></editor-bar>
  8237. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8238. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8239. <div @click="addImg($event)">
  8240. <el-button type="primary">上传图片</el-button>
  8241. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8242. @change="beforeUpload1($event, 4)" />
  8243. </div>
  8244. </div> -->
  8245. </div>
  8246. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8247. 确定
  8248. </div>
  8249. </div>
  8250. </div>
  8251. <div v-if="proVisible" class="mask">
  8252. <div class="progressBox">
  8253. <!-- <div id="closePro" class="closeCss">
  8254. <img src="../../assets/icon/close.png" alt />
  8255. </div> -->
  8256. <div class="lbox">
  8257. <img src="../../assets/loading.gif" />上传中,请稍后
  8258. </div>
  8259. <div style="margin-bottom: 10px">
  8260. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8261. </div>
  8262. <el-progress
  8263. :text-inside="true"
  8264. :stroke-width="20"
  8265. :percentage="progress"
  8266. style="width: 80%"
  8267. ></el-progress>
  8268. </div>
  8269. </div>
  8270. <div v-if="proVisible2" class="mask">
  8271. <div class="progressBox">
  8272. <div class="lbox">
  8273. <img src="../../assets/loading.gif" />上传中,请稍后
  8274. </div>
  8275. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8276. </div>
  8277. </div>
  8278. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8279. <img width="100%" :src="dialogImageUrl" alt />
  8280. </el-dialog>
  8281. <el-dialog
  8282. :title="noteName != '' ? noteName : '查看问卷'"
  8283. :visible.sync="dialogVisible5"
  8284. :append-to-body="true"
  8285. width="1000px"
  8286. :before-close="handleClose"
  8287. class="dialog_diy dialog_diy3"
  8288. >
  8289. <div>
  8290. <div
  8291. class="a_add_title"
  8292. style="
  8293. display: flex;
  8294. flex-direction: row;
  8295. align-items: center;
  8296. justify-content: center;
  8297. "
  8298. >
  8299. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8300. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8301. </div>
  8302. <div class="a_addBox">
  8303. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8304. 题目内容
  8305. </div>
  8306. <div
  8307. class="a_add_box"
  8308. v-for="(item1, index1) in askJson.askCount"
  8309. :key="index1"
  8310. >
  8311. <div class="a_add_head">
  8312. <div style="display: flex">
  8313. <span class="askIndex"> {{ index1 + 1 }}</span>
  8314. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8315. </div>
  8316. <img
  8317. v-if="askJson.askJson[index1].img"
  8318. :src="askJson.askJson[index1].img"
  8319. style="height: 300px; margin-top: 10px; max-width: 100%"
  8320. />
  8321. </div>
  8322. <div class="a_add_body">
  8323. <div class="a_add_input">
  8324. <el-radio-group
  8325. v-model="radio[index1]"
  8326. v-if="
  8327. askJson.askJson[index1].type == '1' ||
  8328. !askJson.askJson[index1].type
  8329. "
  8330. >
  8331. <el-radio
  8332. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8333. .checkList"
  8334. :key="checkIndex"
  8335. :label="checkIndex"
  8336. :disabled="isAnswer"
  8337. class="redioStyle"
  8338. ><span v-html="item2"></span
  8339. ></el-radio>
  8340. </el-radio-group>
  8341. <el-checkbox-group
  8342. v-model="radio[index1]"
  8343. v-if="askJson.askJson[index1].type == '2'"
  8344. >
  8345. <el-checkbox
  8346. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8347. .checkList"
  8348. :key="checkIndex1"
  8349. :label="checkIndex1"
  8350. :disabled="isAnswer"
  8351. class="redioStyle"
  8352. ><span v-html="item2"></span>
  8353. </el-checkbox>
  8354. </el-checkbox-group>
  8355. </div>
  8356. </div>
  8357. </div>
  8358. </div>
  8359. </div>
  8360. <span slot="footer" class="dialog-footer">
  8361. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8362. >取 消</el-button
  8363. >
  8364. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8365. >确 定</el-button
  8366. >
  8367. </span>
  8368. </el-dialog>
  8369. <el-dialog
  8370. :title="noteName != '' ? noteName : '查看问卷'"
  8371. :visible.sync="dialogVisible5Teacher"
  8372. :append-to-body="true"
  8373. width="1000px"
  8374. :before-close="handleClose"
  8375. class="dialog_diy dialog_diy3"
  8376. >
  8377. <div>
  8378. <div class="w_name">
  8379. 学生姓名:<span>{{ sStudent.student }}</span>
  8380. </div>
  8381. <div
  8382. class="a_add_title"
  8383. style="
  8384. display: flex;
  8385. flex-direction: row;
  8386. align-items: center;
  8387. justify-content: center;
  8388. "
  8389. >
  8390. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8391. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8392. </div>
  8393. <div class="a_addBox">
  8394. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8395. 题目内容
  8396. </div>
  8397. <div
  8398. class="a_add_box"
  8399. v-for="(item1, index1) in askJson.askCount"
  8400. :key="index1"
  8401. >
  8402. <div class="a_add_head">
  8403. <div style="display: flex">
  8404. <span class="askIndex">{{ index1 + 1 }}</span>
  8405. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8406. </div>
  8407. <img
  8408. v-if="askJson.askJson[index1].img"
  8409. :src="askJson.askJson[index1].img"
  8410. style="height: 300px; margin-top: 10px; max-width: 100%"
  8411. />
  8412. </div>
  8413. <div class="a_add_body">
  8414. <div class="a_add_input">
  8415. <el-radio-group
  8416. v-model="radio[index1]"
  8417. v-if="
  8418. askJson.askJson[index1].type == '1' ||
  8419. !askJson.askJson[index1].type
  8420. "
  8421. >
  8422. <el-radio
  8423. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8424. .checkList"
  8425. :key="checkIndex"
  8426. :label="checkIndex"
  8427. :disabled="isAnswer"
  8428. class="redioStyle"
  8429. ><span v-html="item2"></span
  8430. ></el-radio>
  8431. </el-radio-group>
  8432. <el-checkbox-group
  8433. v-model="radio[index1]"
  8434. v-if="askJson.askJson[index1].type == '2'"
  8435. >
  8436. <el-checkbox
  8437. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8438. .checkList"
  8439. :key="checkIndex1"
  8440. :label="checkIndex1"
  8441. :disabled="isAnswer"
  8442. class="redioStyle"
  8443. ><span v-html="item2"></span>
  8444. </el-checkbox>
  8445. </el-checkbox-group>
  8446. </div>
  8447. </div>
  8448. </div>
  8449. </div>
  8450. </div>
  8451. <span slot="footer" class="dialog-footer">
  8452. <el-button
  8453. @click="dialogVisible5Teacher = false"
  8454. v-show="noteName == ''"
  8455. >取 消</el-button
  8456. >
  8457. <el-button
  8458. type="primary"
  8459. @click="addStudentAskTeacher"
  8460. v-show="noteName == ''"
  8461. >确 定</el-button
  8462. >
  8463. </span>
  8464. </el-dialog>
  8465. <el-dialog
  8466. :title="noteName != '' ? noteName : '查看选择题'"
  8467. :visible.sync="dialogVisibleChoice"
  8468. :append-to-body="true"
  8469. width="1000px"
  8470. :before-close="handleClose"
  8471. class="dialog_diy dialog_diy3"
  8472. >
  8473. <div>
  8474. <!-- <div class="a_add_title" style="
  8475. display: flex;
  8476. flex-direction: row;
  8477. align-items: center;
  8478. justify-content: center;
  8479. ">
  8480. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8481. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8482. </div> -->
  8483. <div class="a_addBox">
  8484. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8485. 题目内容
  8486. </div>
  8487. <div
  8488. class="a_add_box"
  8489. v-for="(item1, index1) in testJson.testCount"
  8490. :key="index1"
  8491. >
  8492. <div class="a_add_head">
  8493. <div style="display: flex">
  8494. <span class="askIndex">{{ index1 + 1 }}</span>
  8495. <div
  8496. v-if="testJson.testJson[index1].type == '1'"
  8497. style="margin-right: 5px; min-width: 70px"
  8498. >
  8499. (单选题)
  8500. </div>
  8501. <div
  8502. v-if="testJson.testJson[index1].type == '2'"
  8503. style="margin-right: 5px; min-width: 70px"
  8504. >
  8505. (多选题)
  8506. </div>
  8507. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8508. </div>
  8509. <img
  8510. v-if="testJson.testJson[index1].img"
  8511. :src="testJson.testJson[index1].img"
  8512. style="height: 300px; margin-top: 10px; max-width: 100%"
  8513. />
  8514. </div>
  8515. <div
  8516. class="timuImgBox"
  8517. v-if="
  8518. testJson.testJson[index1].timuList &&
  8519. testJson.testJson[index1].timuList.length
  8520. "
  8521. >
  8522. <div
  8523. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8524. :key="tIndex"
  8525. class="timuImg"
  8526. @click.stop="previewImg(timg.src)"
  8527. >
  8528. <img :src="timg.src" alt="" />
  8529. </div>
  8530. </div>
  8531. <div class="a_add_body">
  8532. <div class="a_add_input">
  8533. <el-radio-group
  8534. v-model="radio[index1]"
  8535. v-if="testJson.testJson[index1].type == '1'"
  8536. >
  8537. <div class="radioBox">
  8538. <el-radio
  8539. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8540. .checkList"
  8541. :key="checkIndex"
  8542. :label="checkIndex"
  8543. :disabled="isAnswer"
  8544. class="redioStyle"
  8545. >
  8546. <div
  8547. style="margin-right: 10px"
  8548. v-if="item2 && item2.imgType && item2.imgType == 1"
  8549. >
  8550. <div class="inImg" @click.stop="previewImg(item2.src)">
  8551. <img :src="item2.src" alt="" />
  8552. </div>
  8553. </div>
  8554. <span v-else v-html="item2"></span>
  8555. </el-radio>
  8556. </div>
  8557. </el-radio-group>
  8558. <el-checkbox-group
  8559. v-model="radio[index1]"
  8560. v-if="testJson.testJson[index1].type == '2'"
  8561. >
  8562. <div class="radioBox">
  8563. <el-checkbox
  8564. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8565. .checkList"
  8566. :key="checkIndex"
  8567. :label="checkIndex"
  8568. :disabled="isAnswer"
  8569. class="redioStyle"
  8570. >
  8571. <div
  8572. style="margin-right: 10px"
  8573. v-if="item2 && item2.imgType && item2.imgType == 1"
  8574. >
  8575. <div class="inImg" @click.stop="previewImg(item2.src)">
  8576. <img :src="item2.src" alt="" />
  8577. </div>
  8578. </div>
  8579. <span v-else v-html="item2"></span>
  8580. </el-checkbox>
  8581. </div>
  8582. </el-checkbox-group>
  8583. </div>
  8584. </div>
  8585. </div>
  8586. </div>
  8587. </div>
  8588. <span slot="footer" class="dialog-footer">
  8589. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  8590. >取 消</el-button
  8591. >
  8592. <el-button
  8593. type="primary"
  8594. @click="addStudentTest"
  8595. v-show="noteName == ''"
  8596. >确 定</el-button
  8597. >
  8598. </span>
  8599. </el-dialog>
  8600. <el-dialog
  8601. :title="noteName != '' ? noteName : '查看选择题'"
  8602. :visible.sync="dialogVisibleChoiceTeacher"
  8603. :append-to-body="true"
  8604. width="1000px"
  8605. :before-close="handleClose"
  8606. class="dialog_diy dialog_diy3"
  8607. >
  8608. <div>
  8609. <div class="w_name">
  8610. 学生姓名:<span>{{ sStudent.student }}</span>
  8611. </div>
  8612. <div class="a_addBox">
  8613. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8614. 题目内容
  8615. </div>
  8616. <div
  8617. class="a_add_box"
  8618. v-for="(item1, index1) in testJson.testCount"
  8619. :key="index1"
  8620. >
  8621. <div class="a_add_head">
  8622. <div style="display: flex">
  8623. <span class="askIndex">{{ index1 + 1 }}</span>
  8624. <div
  8625. v-if="testJson.testJson[index1].type == '1'"
  8626. style="margin-right: 5px; min-width: 70px"
  8627. >
  8628. (单选题)
  8629. </div>
  8630. <div
  8631. v-if="testJson.testJson[index1].type == '2'"
  8632. style="margin-right: 5px; min-width: 70px"
  8633. >
  8634. (多选题)
  8635. </div>
  8636. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8637. </div>
  8638. <img
  8639. v-if="testJson.testJson[index1].img"
  8640. :src="testJson.testJson[index1].img"
  8641. style="height: 300px; margin-top: 10px; max-width: 100%"
  8642. />
  8643. </div>
  8644. <div
  8645. class="timuImgBox"
  8646. v-if="
  8647. testJson.testJson[index1].timuList &&
  8648. testJson.testJson[index1].timuList.length
  8649. "
  8650. >
  8651. <div
  8652. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8653. :key="tIndex"
  8654. class="timuImg"
  8655. @click.stop="previewImg(timg.src)"
  8656. >
  8657. <img :src="timg.src" alt="" />
  8658. </div>
  8659. </div>
  8660. <div class="a_add_body">
  8661. <div class="a_add_input">
  8662. <el-radio-group
  8663. v-model="radio[index1]"
  8664. v-if="testJson.testJson[index1].type == '1'"
  8665. >
  8666. <div class="radioBox">
  8667. <el-radio
  8668. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8669. .checkList"
  8670. :key="checkIndex"
  8671. :label="checkIndex"
  8672. :disabled="isAnswer"
  8673. class="redioStyle"
  8674. >
  8675. <div
  8676. style="margin-right: 10px"
  8677. v-if="item2 && item2.imgType && item2.imgType == 1"
  8678. >
  8679. <div class="inImg" @click.stop="previewImg(item2.src)">
  8680. <img :src="item2.src" alt="" />
  8681. </div>
  8682. </div>
  8683. <span v-else v-html="item2"></span>
  8684. </el-radio>
  8685. </div>
  8686. </el-radio-group>
  8687. <el-checkbox-group
  8688. v-model="radio[index1]"
  8689. v-if="testJson.testJson[index1].type == '2'"
  8690. >
  8691. <div class="radioBox">
  8692. <el-checkbox
  8693. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8694. .checkList"
  8695. :key="checkIndex"
  8696. :label="checkIndex"
  8697. :disabled="isAnswer"
  8698. class="redioStyle"
  8699. >
  8700. <div
  8701. style="margin-right: 10px"
  8702. v-if="item2 && item2.imgType && item2.imgType == 1"
  8703. >
  8704. <div class="inImg" @click.stop="previewImg(item2.src)">
  8705. <img :src="item2.src" alt="" />
  8706. </div>
  8707. </div>
  8708. <span v-else v-html="item2"></span>
  8709. </el-checkbox>
  8710. </div>
  8711. </el-checkbox-group>
  8712. </div>
  8713. </div>
  8714. </div>
  8715. </div>
  8716. </div>
  8717. <span slot="footer" class="dialog-footer">
  8718. <el-button
  8719. @click="dialogVisibleChoiceTeacher = false"
  8720. v-show="noteName == ''"
  8721. >取 消</el-button
  8722. >
  8723. <el-button
  8724. type="primary"
  8725. @click="addStudentTestTeacher"
  8726. v-show="noteName == ''"
  8727. >确 定</el-button
  8728. >
  8729. </span>
  8730. </el-dialog>
  8731. <el-dialog
  8732. title="查看富文本"
  8733. :visible.sync="dialogVisible1"
  8734. :append-to-body="true"
  8735. width="500px"
  8736. :before-close="handleClose"
  8737. class="dialog_diy textCss"
  8738. >
  8739. <el-form style="font-size: 20px">
  8740. <el-form-item label="文本标题" class="textTitle">
  8741. <div style="font-size: 20px">{{ text.name }}</div>
  8742. </el-form-item>
  8743. <div>富文本内容</div>
  8744. <div
  8745. v-html="text.url"
  8746. style="font-size: 18px; padding: 40px 0 0 0"
  8747. ></div>
  8748. </el-form>
  8749. <span slot="footer" class="dialog-footer">
  8750. <el-button type="primary" @click="dialogVisible1 = false"
  8751. >确定</el-button
  8752. >
  8753. </span>
  8754. </el-dialog>
  8755. <el-dialog
  8756. title="文件预览"
  8757. :visible.sync="dialogVisible3"
  8758. width="50%"
  8759. :before-close="handleClose"
  8760. class="dialog_diy"
  8761. :class="{ fullStyle: full }"
  8762. >
  8763. <div slot="title" class="header-title">
  8764. <div style="color: #fff">文件预览</div>
  8765. <div style="position: absolute; top: 19px; right: 50px">
  8766. <img
  8767. src="../../assets/full.png"
  8768. style="height: 16px; cursor: pointer"
  8769. alt=""
  8770. @click="fullTools"
  8771. />
  8772. </div>
  8773. </div>
  8774. <pdf
  8775. v-if="showPDF"
  8776. :pdfUrl="pptImgUrl"
  8777. style="width: 100%; height: 520px; overflow: auto"
  8778. :class="{ fullStyle: full }"
  8779. ></pdf>
  8780. <iframe
  8781. v-else
  8782. :src="pptImgUrl"
  8783. frameborder="0"
  8784. width="100%"
  8785. height="600"
  8786. :class="{ fullStyle: full }"
  8787. ></iframe>
  8788. </el-dialog>
  8789. <el-dialog
  8790. title="文件预览"
  8791. :visible.sync="dialogVisible6"
  8792. width="50%"
  8793. :before-close="handleClose"
  8794. class="dialog_diy"
  8795. >
  8796. <iframe
  8797. :src="pptImgUrl1"
  8798. frameborder="0"
  8799. width="100%"
  8800. height="600"
  8801. ></iframe>
  8802. </el-dialog>
  8803. <el-dialog
  8804. title="提示"
  8805. :visible.sync="dialogVisible4"
  8806. :append-to-body="true"
  8807. width="800px"
  8808. :before-close="handleClose"
  8809. class="dialog_diy notice"
  8810. >
  8811. <div>此功能暂未开放!</div>
  8812. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  8813. </el-dialog>
  8814. <el-dialog
  8815. title="问答"
  8816. :visible.sync="answerDialogVisible"
  8817. :append-to-body="true"
  8818. width="800px"
  8819. :before-close="handleClose"
  8820. class="dialog_diy"
  8821. >
  8822. <div>
  8823. <div
  8824. style="
  8825. display: flex;
  8826. flex-wrap: nowrap;
  8827. flex-direction: column;
  8828. position: relative;
  8829. "
  8830. >
  8831. <div class="queTop" style="padding: 20px 0 20px 0">
  8832. <div class="question">
  8833. <img src="../../assets/icon/question.png" alt />
  8834. </div>
  8835. <div class="queTitle">
  8836. <div style="width: 90px; min-width: 90px">提问:</div>
  8837. <div>{{ answerQ }}</div>
  8838. </div>
  8839. </div>
  8840. <div class="ediBottom">
  8841. <textarea
  8842. rows="6"
  8843. class="binfo_input"
  8844. cols
  8845. style="width: 95%; height: 120px"
  8846. v-model="questionAnswer"
  8847. ></textarea>
  8848. </div>
  8849. </div>
  8850. </div>
  8851. <div slot="footer">
  8852. <el-button @click="answerDialogVisible = false">取 消</el-button>
  8853. <el-button type="primary" @click="addQuestion">提 交</el-button>
  8854. </div>
  8855. </el-dialog>
  8856. <el-dialog
  8857. title="问答"
  8858. :visible.sync="answerDialogVisibleTeacher"
  8859. :append-to-body="true"
  8860. width="800px"
  8861. :before-close="handleClose"
  8862. class="dialog_diy"
  8863. >
  8864. <div>
  8865. <div class="w_name">
  8866. 学生姓名:<span>{{ sStudent.student }}</span>
  8867. </div>
  8868. <div
  8869. style="
  8870. display: flex;
  8871. flex-wrap: nowrap;
  8872. flex-direction: column;
  8873. position: relative;
  8874. "
  8875. >
  8876. <div class="queTop" style="padding: 20px 0 20px 0">
  8877. <div class="question">
  8878. <img src="../../assets/icon/question.png" alt />
  8879. </div>
  8880. <div class="queTitle">
  8881. <div style="width: 90px; min-width: 90px">提问:</div>
  8882. <div>{{ answerQ }}</div>
  8883. </div>
  8884. </div>
  8885. <div class="ediBottom">
  8886. <textarea
  8887. rows="6"
  8888. class="binfo_input"
  8889. cols
  8890. style="width: 95%; height: 120px"
  8891. v-model="questionAnswer"
  8892. ></textarea>
  8893. </div>
  8894. </div>
  8895. </div>
  8896. <div slot="footer">
  8897. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  8898. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  8899. </div>
  8900. </el-dialog>
  8901. <el-dialog
  8902. title="倒计时"
  8903. :visible.sync="timeDialogVisible"
  8904. :append-to-body="true"
  8905. width="800px"
  8906. :before-close="handleClose"
  8907. class="dialog_diy"
  8908. >
  8909. <div>
  8910. <div style="margin-bottom: 20px; color: #999">
  8911. 提示:点击“+”或“-”修改倒计时时长。
  8912. </div>
  8913. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  8914. </div>
  8915. <div slot="footer">
  8916. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  8917. </div>
  8918. </el-dialog>
  8919. <el-dialog
  8920. title="权限设置"
  8921. :visible.sync="juriVisible"
  8922. :append-to-body="true"
  8923. width="400px"
  8924. :before-close="handleClose"
  8925. class="dialog_diy"
  8926. >
  8927. <div>
  8928. <div class="open_box">
  8929. <div class="switch_box">
  8930. <span>允许学生查看所有作业</span>
  8931. <el-switch
  8932. v-model="sIsOpen"
  8933. active-text=""
  8934. class="switchCss"
  8935. @change="updateSLook"
  8936. ></el-switch>
  8937. </div>
  8938. <div
  8939. class="switch_box"
  8940. v-if="
  8941. courseDetail.userid == userid ||
  8942. (courseDetail.course_teacher &&
  8943. courseDetail.course_teacher.indexOf(userid) != -1)
  8944. "
  8945. >
  8946. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  8947. <span>禁止学生查看所有阶段</span>
  8948. <el-switch
  8949. v-model="IsLookOpen"
  8950. active-text=""
  8951. class="switchCss"
  8952. @change="updateLookOpen"
  8953. ></el-switch>
  8954. </div>
  8955. <div class="switch_box" v-if="courseDetail.userid == userid">
  8956. <span>开启跟随模式</span>
  8957. <el-switch
  8958. v-model="IsFollow"
  8959. active-text=""
  8960. class="switchCss"
  8961. @change="updateFollow"
  8962. ></el-switch>
  8963. </div>
  8964. </div>
  8965. </div>
  8966. <div slot="footer">
  8967. <el-button
  8968. style="background: #409efe; color: #fff"
  8969. @click="juriVisible = false"
  8970. >关 闭</el-button
  8971. >
  8972. </div>
  8973. </el-dialog>
  8974. <el-dialog
  8975. title="查看视频"
  8976. :visible.sync="videoVisible"
  8977. :append-to-body="true"
  8978. width="1000px"
  8979. :before-close="handleClose"
  8980. class="dialog_diy1"
  8981. >
  8982. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  8983. <video-player
  8984. class="video-player vjs-custom-skin"
  8985. :playsinline="true"
  8986. :options="videoDetail"
  8987. @play="onPlayerPlay($event)"
  8988. style="width: 100%; height: 100%"
  8989. ></video-player>
  8990. </div>
  8991. <div slot="footer">
  8992. <el-button
  8993. style="background: #409efe; color: #fff"
  8994. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  8995. >
  8996. 关 闭</el-button
  8997. >
  8998. </div>
  8999. </el-dialog>
  9000. <el-dialog
  9001. title="查看详情"
  9002. :visible.sync="commentDialogVisible"
  9003. :append-to-body="true"
  9004. width="800px"
  9005. :before-close="handleClose"
  9006. class="dialog_diy"
  9007. >
  9008. <div class="commentTop">
  9009. <div class="studentDetail">
  9010. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9011. <div class="nameAndTime">
  9012. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9013. <div>{{ commentDetail.time }}</div>
  9014. </div>
  9015. <div
  9016. class="returnBtn"
  9017. style="margin-left: auto; width: 80px"
  9018. v-if="
  9019. commentDetail.works &&
  9020. commentDetail.type == 0 &&
  9021. (tType == 1 || tType == 4)
  9022. "
  9023. @click="
  9024. showPicturePaint(
  9025. commentDetail.img ? commentDetail.img : commentDetail.works
  9026. )
  9027. "
  9028. >
  9029. 教师批注
  9030. </div>
  9031. </div>
  9032. <div
  9033. class="worksAnswer"
  9034. v-if="commentDetail.works && commentDetail.type == 2"
  9035. >
  9036. {{ JSON.parse(commentDetail.works)[0].answer }}
  9037. </div>
  9038. <div
  9039. class="worksAnswer"
  9040. v-if="commentDetail.works && commentDetail.type == 1"
  9041. >
  9042. <img
  9043. src="../../assets/teacherWork.png"
  9044. v-if="commentDetail.ateacher"
  9045. class="w_teachert"
  9046. />
  9047. <pdf
  9048. v-if="showPDF"
  9049. :pdfUrl="pptImgUrl"
  9050. style="width: 100%; height: 520px; overflow: auto"
  9051. :class="{ fullStyle: full }"
  9052. ></pdf>
  9053. <iframe
  9054. v-else
  9055. :src="pptImgUrl"
  9056. frameborder="0"
  9057. width="100%"
  9058. height="600"
  9059. :class="{ fullStyle: full }"
  9060. ></iframe>
  9061. </div>
  9062. <div
  9063. class="worksAnswer"
  9064. v-if="commentDetail.works && commentDetail.type == 0"
  9065. >
  9066. <img
  9067. src="../../assets/teacherWork.png"
  9068. v-if="commentDetail.ateacher"
  9069. class="w_teachert"
  9070. style="right: 105px"
  9071. />
  9072. <img
  9073. :src="commentDetail.works"
  9074. alt=""
  9075. @click="previewImg(commentDetail.works)"
  9076. />
  9077. </div>
  9078. <div
  9079. class="worksAnswer"
  9080. v-if="commentDetail.works && commentDetail.type == 3"
  9081. >
  9082. <img
  9083. src="../../assets/teacherWork.png"
  9084. v-if="commentDetail.ateacher"
  9085. class="w_teachert"
  9086. />
  9087. <video-player
  9088. class="video-player vjs-custom-skin"
  9089. :playsinline="true"
  9090. :options="videoDetail"
  9091. @play="onPlayerPlay($event)"
  9092. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9093. ></video-player>
  9094. </div>
  9095. <div
  9096. class="worksAnswer"
  9097. v-if="commentDetail.works && commentDetail.type == 10"
  9098. >
  9099. <div class="cont" v-html="commentDetail.works.text"></div>
  9100. </div>
  9101. <div
  9102. class="worksAnswer codeFileBox"
  9103. v-if="commentDetail.works && commentDetail.type == 12"
  9104. @click="downloadFile(commentDetail.works)"
  9105. >
  9106. <img src="../../assets/icon/codeFile.png" />
  9107. <div>点击下载文件</div>
  9108. </div>
  9109. <div
  9110. class="worksAnswer codeFileBox"
  9111. v-if="commentDetail.works && commentDetail.type == 15"
  9112. @click="
  9113. openCocoPi(
  9114. 57,
  9115. commentIndexJson.toolIndex,
  9116. commentDetail.userid,
  9117. commentDetail.sName
  9118. )
  9119. "
  9120. >
  9121. <img src="../../assets/icon/codeFile.png" />
  9122. <div>点击打开CocoPi</div>
  9123. </div>
  9124. <div
  9125. class="worksAnswer"
  9126. v-if="commentDetail.works && commentDetail.type == 13"
  9127. >
  9128. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9129. </div>
  9130. <div
  9131. class="worksAnswer"
  9132. v-if="commentDetail.works && commentDetail.type == 4"
  9133. >
  9134. <div class="evalCss">
  9135. <div class="nav">请选择星星进行评分</div>
  9136. <div class="middleBox" v-if="eScore.eStar">
  9137. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9138. <div class="nameAndrate">
  9139. <div>{{ e.value }}</div>
  9140. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9141. </div>
  9142. <div v-if="e.detail">{{ e.detail }}</div>
  9143. </div>
  9144. <div class="bz">
  9145. <textarea
  9146. disabled
  9147. rows="4"
  9148. class="pj"
  9149. style="
  9150. padding: 10px 5px;
  9151. width: 70%;
  9152. background: #f7f6f9;
  9153. font-size: 14px;
  9154. text-indent: 10px;
  9155. color: #000;
  9156. "
  9157. cols
  9158. v-model="eScore.eBzText"
  9159. placeholder="请输入评价内容..."
  9160. ></textarea>
  9161. </div>
  9162. </div>
  9163. </div>
  9164. </div>
  9165. <div class="comment">
  9166. <div class="commentList">
  9167. <div class="commentImg">
  9168. <img
  9169. @click="
  9170. isLikes(
  9171. commentDetail.wid,
  9172. userid,
  9173. 1,
  9174. null,
  9175. commentDetail.isLikes
  9176. )
  9177. "
  9178. :src="commentDetail.isLikes == true ? likes : noLikes"
  9179. alt=""
  9180. />
  9181. </div>
  9182. <div>{{ commentDetail.likesCount }}</div>
  9183. </div>
  9184. <div class="commentList">
  9185. <div class="commentImg">
  9186. <img src="../../assets/icon/comment/comment.png" alt="" />
  9187. </div>
  9188. <div>{{ commentDetail.commentCount }}</div>
  9189. </div>
  9190. </div>
  9191. <div class="drawPBox" v-if="commentDetail.img">
  9192. <span>教师批注</span>
  9193. <img
  9194. :src="commentDetail.img"
  9195. alt=""
  9196. @click="previewImg(commentDetail.img)"
  9197. />
  9198. <span
  9199. class="deleteImg"
  9200. v-if="tType == 1 || tType == 4"
  9201. @click.stop="deletePicturePaint(commentDetail.wid)"
  9202. style="
  9203. font-size: 14px;
  9204. width: auto !important;
  9205. color: #b4b4b4;
  9206. top: unset;
  9207. bottom: 0;
  9208. border: none;
  9209. padding: 0;
  9210. height: auto !important;
  9211. margin: 0;
  9212. "
  9213. >删除</span
  9214. >
  9215. </div>
  9216. </div>
  9217. <div class="commentBox">
  9218. <div class="pl">评论:</div>
  9219. <div style="max-height: 200px; overflow: auto">
  9220. <div
  9221. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9222. style="padding: 10px 0 0 0"
  9223. >
  9224. <div
  9225. class="studentDetail"
  9226. style="padding-top: 10px"
  9227. v-for="(co, coIndex) in commentDetail.commentJson"
  9228. :key="coIndex"
  9229. >
  9230. <div class="tx" style="min-width: 50px">
  9231. <img src="../../assets/avatar.png" alt="" />
  9232. </div>
  9233. <div class="plPerson">
  9234. <div class="plName">
  9235. <div>{{ co.commentPeople }}</div>
  9236. <div style="margin-left: 5px">
  9237. {{ co.commentTime }}
  9238. </div>
  9239. <div
  9240. class="deleteComment"
  9241. v-if="userid == co.userid"
  9242. @click="deleteComment(co.wid)"
  9243. >
  9244. 删除
  9245. </div>
  9246. </div>
  9247. <div class="plContent">{{ co.commentText }}</div>
  9248. </div>
  9249. </div>
  9250. </div>
  9251. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9252. </div>
  9253. </div>
  9254. <div style="margin-top: 10px">
  9255. <div class="displayBox">
  9256. <div
  9257. style="
  9258. color: #556db4;
  9259. font-size: 14px;
  9260. font-weight: bold;
  9261. padding-bottom: 10px;
  9262. "
  9263. >
  9264. 评价
  9265. </div>
  9266. <div class="easy_comment" v-if="false">
  9267. <div
  9268. v-for="(p, pIndex) in PlTextList"
  9269. :key="pIndex"
  9270. @click="fastText(p, 1)"
  9271. >
  9272. {{ p }}
  9273. </div>
  9274. </div>
  9275. </div>
  9276. <div>
  9277. <textarea
  9278. rows="3"
  9279. class="pj"
  9280. style="padding: 10px 5px"
  9281. cols
  9282. v-model="commentText"
  9283. placeholder="请输入评论"
  9284. ></textarea>
  9285. </div>
  9286. </div>
  9287. <div slot="footer">
  9288. <el-button
  9289. @click="
  9290. (commentDialogVisible = false),
  9291. (commentIndexJson = {}),
  9292. videoDetail.sources && videoDetail.sources[0]
  9293. ? (videoDetail.sources[0].src = '')
  9294. : ''
  9295. "
  9296. >取 消</el-button
  9297. >
  9298. <el-button
  9299. type="primary"
  9300. @click="addComment(commentDetail.wid, userid, 2)"
  9301. >确 定</el-button
  9302. >
  9303. </div>
  9304. </el-dialog>
  9305. <el-dialog
  9306. title="查看文档"
  9307. :visible.sync="fullDialogVisible"
  9308. :append-to-body="true"
  9309. width="100%"
  9310. :before-close="handleClose"
  9311. :show-close="false"
  9312. class="dialog_diy full_diy"
  9313. :class="{ full_diy2: fulltype == 3 }"
  9314. >
  9315. <div slot="title" class="header-title">
  9316. <div style="color: #fff">查看文档</div>
  9317. <div
  9318. @click="fullDialogVisible = false"
  9319. style="
  9320. cursor: pointer;
  9321. position: absolute;
  9322. top: 20px;
  9323. right: 20px;
  9324. color: #fff;
  9325. "
  9326. >
  9327. 退出全屏
  9328. </div>
  9329. </div>
  9330. <div style="height: 100%">
  9331. <div
  9332. class="wheel"
  9333. v-if="
  9334. fulltype == 2 &&
  9335. fullUrl.indexOf(
  9336. 'https://view.officeapps.live.com/op/view.aspx?src='
  9337. ) != -1
  9338. "
  9339. style="width: 95%; margin: 0 auto"
  9340. >
  9341. <iframe
  9342. style="width: 100%; height: 100%; border: none"
  9343. :src="fullUrl"
  9344. ></iframe>
  9345. </div>
  9346. <iframe
  9347. v-else-if="fulltype == 2"
  9348. style="width: 100%; height: 100%; border: none"
  9349. :src="fullUrl"
  9350. security="restricted"
  9351. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9352. ></iframe>
  9353. <pdf
  9354. v-else-if="fulltype == 3"
  9355. :pdfUrl="fullUrl"
  9356. style="width: 100%; height: 100%; overflow: auto"
  9357. ></pdf>
  9358. <div
  9359. class="wheel"
  9360. v-if="fulltype == 1"
  9361. style="
  9362. box-shadow: 0 0 6px 1px #f2f2f2;
  9363. width: 100%;
  9364. background: #f1f1f1;
  9365. "
  9366. >
  9367. <div class="title" style="width: 100%; box-sizing: border-box">
  9368. 查看文档
  9369. </div>
  9370. <el-form class="textBox" style="height: 90%">
  9371. <el-form-item class="textTitle">
  9372. <div style="font-size: 22px">
  9373. {{ fullUrl.name }}
  9374. </div>
  9375. </el-form-item>
  9376. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9377. <div
  9378. v-html="fullUrl.url"
  9379. class="textContent"
  9380. style="height: auto"
  9381. ></div>
  9382. </el-form>
  9383. </div>
  9384. </div>
  9385. <!-- <div slot="footer">
  9386. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9387. </div> -->
  9388. </el-dialog>
  9389. <el-dialog
  9390. title="个人评价"
  9391. :visible.sync="studentEvalDialogVisible"
  9392. :append-to-body="true"
  9393. width="800px"
  9394. :before-close="handleClose"
  9395. class="dialog_diy"
  9396. >
  9397. <div class="evalCss">
  9398. <div class="nav">请选择星星进行评分</div>
  9399. <div class="middleBox" v-if="eScore.eStar">
  9400. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9401. <div class="nameAndrate">
  9402. <div>{{ e.value }}</div>
  9403. <el-rate
  9404. v-model="eScore.eStar[eIndex]"
  9405. :disabled="isStar"
  9406. ></el-rate>
  9407. </div>
  9408. <div v-if="e.detail">{{ e.detail }}</div>
  9409. </div>
  9410. <div class="easy_comment" v-if="false">
  9411. <div
  9412. v-for="(p, pIndex) in PlTextList"
  9413. :key="pIndex"
  9414. @click="fastText(p, 2)"
  9415. >
  9416. {{ p }}
  9417. </div>
  9418. </div>
  9419. <div class="bz">
  9420. <textarea
  9421. :disabled="isStar"
  9422. rows="4"
  9423. class="pj"
  9424. style="
  9425. padding: 10px 5px;
  9426. width: 70%;
  9427. background: #f7f6f9;
  9428. font-size: 14px;
  9429. text-indent: 10px;
  9430. "
  9431. cols
  9432. v-model="eScore.eBzText"
  9433. placeholder="请输入评价内容..."
  9434. ></textarea>
  9435. </div>
  9436. </div>
  9437. </div>
  9438. <div slot="footer">
  9439. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9440. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9441. >确 定</el-button
  9442. >
  9443. </div>
  9444. </el-dialog>
  9445. <el-dialog
  9446. title="个人评价"
  9447. :visible.sync="studentEvalDialogVisibleTeacher"
  9448. :append-to-body="true"
  9449. width="800px"
  9450. :before-close="handleClose"
  9451. class="dialog_diy"
  9452. >
  9453. <div class="w_name">
  9454. 学生姓名:<span>{{ sStudent.student }}</span>
  9455. </div>
  9456. <div class="evalCss">
  9457. <div class="nav">请选择星星进行评分</div>
  9458. <div class="middleBox" v-if="eScore.eStar">
  9459. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9460. <div class="nameAndrate">
  9461. <div>{{ e.value }}</div>
  9462. <el-rate
  9463. v-model="eScore.eStar[eIndex]"
  9464. :disabled="isStar"
  9465. ></el-rate>
  9466. </div>
  9467. <div v-if="e.detail">{{ e.detail }}</div>
  9468. </div>
  9469. <div class="easy_comment" v-if="false">
  9470. <div
  9471. v-for="(p, pIndex) in PlTextList"
  9472. :key="pIndex"
  9473. @click="fastText(p, 2)"
  9474. >
  9475. {{ p }}
  9476. </div>
  9477. </div>
  9478. <div class="bz">
  9479. <textarea
  9480. :disabled="isStar"
  9481. rows="4"
  9482. class="pj"
  9483. style="
  9484. padding: 10px 5px;
  9485. width: 70%;
  9486. background: #f7f6f9;
  9487. font-size: 14px;
  9488. text-indent: 10px;
  9489. "
  9490. cols
  9491. v-model="eScore.eBzText"
  9492. placeholder="请输入评价内容..."
  9493. ></textarea>
  9494. </div>
  9495. </div>
  9496. </div>
  9497. <div slot="footer">
  9498. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9499. >取 消</el-button
  9500. >
  9501. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9502. >确 定</el-button
  9503. >
  9504. </div>
  9505. </el-dialog>
  9506. <el-dialog
  9507. title="选择匹配"
  9508. :visible.sync="dialogVisibleSelect"
  9509. :append-to-body="true"
  9510. width="90%"
  9511. :before-close="handleClose"
  9512. class="dialog_diy dialog_diy3"
  9513. >
  9514. <div v-if="selectJson">
  9515. <div class="select_box2">
  9516. <div class="select_box2_title">
  9517. <div>选择匹配</div>
  9518. <div>请选择对应的答案进行答题!</div>
  9519. </div>
  9520. <div class="select_box2_box">
  9521. <div class="select_box2_img">
  9522. <img
  9523. :src="selectJson.url"
  9524. @click="previewImg(selectJson.url)"
  9525. alt=""
  9526. />
  9527. </div>
  9528. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9529. <div style="padding-top: 15px">
  9530. <div class="select_answer_title" v-if="isSelect">
  9531. {{ selectAnswer.stu }}
  9532. </div>
  9533. <div class="select_answer_title" v-else>
  9534. 根据题目选择对应答案
  9535. </div>
  9536. <div
  9537. class="select_box2_answer_box"
  9538. v-for="(item2, checkIndex) in selectJson.select"
  9539. :key="checkIndex"
  9540. >
  9541. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9542. <el-select
  9543. :disabled="isSelect"
  9544. v-model="selectAnswer.answer[checkIndex]"
  9545. placeholder="请选择正确答案"
  9546. >
  9547. <el-option
  9548. v-for="(e, eIndex) in selectJson.select"
  9549. :key="eIndex"
  9550. :label="e"
  9551. :value="eIndex"
  9552. >
  9553. </el-option>
  9554. </el-select>
  9555. </div>
  9556. </div>
  9557. <div
  9558. class="rightAnswerCss"
  9559. v-if="isSelect && (tType == 1 || tType == 4)"
  9560. >
  9561. <div
  9562. v-for="(a, aIndex) in selectJson.answer"
  9563. :key="aIndex"
  9564. class="rightAnswer"
  9565. >
  9566. <div
  9567. v-if="selectAnswer.answer[aIndex] === a"
  9568. style="color: #767de1"
  9569. >
  9570. 回答正确
  9571. </div>
  9572. <div v-else>回答错误</div>
  9573. <div
  9574. style="margin-left: 10px"
  9575. v-if="selectAnswer.answer[aIndex] !== a"
  9576. >
  9577. 正确答案:
  9578. </div>
  9579. <div
  9580. :class="
  9581. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9582. "
  9583. >
  9584. {{ selectJson.select[a] }}
  9585. </div>
  9586. </div>
  9587. </div>
  9588. </div>
  9589. <div class="upAnswerCss">
  9590. <el-button
  9591. type="primary"
  9592. @click="addSelectAnswer"
  9593. v-if="!isSelect"
  9594. >提交答案</el-button
  9595. >
  9596. </div>
  9597. </div>
  9598. </div>
  9599. </div>
  9600. </el-dialog>
  9601. <el-dialog
  9602. title="选择匹配"
  9603. :visible.sync="dialogVisibleSelectTeacher"
  9604. :append-to-body="true"
  9605. width="90%"
  9606. :before-close="handleClose"
  9607. class="dialog_diy dialog_diy3"
  9608. >
  9609. <div v-if="selectJson">
  9610. <div class="w_name">
  9611. 学生姓名:<span>{{ sStudent.student }}</span>
  9612. </div>
  9613. <div class="select_box2">
  9614. <div class="select_box2_title">
  9615. <div>选择匹配</div>
  9616. <div>请选择对应的答案进行答题!</div>
  9617. </div>
  9618. <div class="select_box2_box">
  9619. <div class="select_box2_img">
  9620. <img
  9621. :src="selectJson.url"
  9622. @click="previewImg(selectJson.url)"
  9623. alt=""
  9624. />
  9625. </div>
  9626. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9627. <div style="padding-top: 15px">
  9628. <div class="select_answer_title" v-if="isSelect">
  9629. {{ selectAnswer.stu }}
  9630. </div>
  9631. <div class="select_answer_title" v-else>
  9632. 根据题目选择对应答案
  9633. </div>
  9634. <div
  9635. class="select_box2_answer_box"
  9636. v-for="(item2, checkIndex) in selectJson.select"
  9637. :key="checkIndex"
  9638. >
  9639. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9640. <el-select
  9641. :disabled="isSelect"
  9642. v-model="selectAnswer.answer[checkIndex]"
  9643. placeholder="请选择正确答案"
  9644. >
  9645. <el-option
  9646. v-for="(e, eIndex) in selectJson.select"
  9647. :key="eIndex"
  9648. :label="e"
  9649. :value="eIndex"
  9650. >
  9651. </el-option>
  9652. </el-select>
  9653. </div>
  9654. </div>
  9655. <div
  9656. class="rightAnswerCss"
  9657. v-if="isSelect && (tType == 1 || tType == 4)"
  9658. >
  9659. <div
  9660. v-for="(a, aIndex) in selectJson.answer"
  9661. :key="aIndex"
  9662. class="rightAnswer"
  9663. >
  9664. <div
  9665. v-if="selectAnswer.answer[aIndex] === a"
  9666. style="color: #767de1"
  9667. >
  9668. 回答正确
  9669. </div>
  9670. <div v-else>回答错误</div>
  9671. <div
  9672. style="margin-left: 10px"
  9673. v-if="selectAnswer.answer[aIndex] !== a"
  9674. >
  9675. 正确答案:
  9676. </div>
  9677. <div
  9678. :class="
  9679. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9680. "
  9681. >
  9682. {{ selectJson.select[a] }}
  9683. </div>
  9684. </div>
  9685. </div>
  9686. </div>
  9687. <div class="upAnswerCss">
  9688. <el-button
  9689. type="primary"
  9690. @click="addSelectAnswerTeacher"
  9691. v-if="!isSelect"
  9692. >提交答案</el-button
  9693. >
  9694. </div>
  9695. </div>
  9696. </div>
  9697. </div>
  9698. </el-dialog>
  9699. <el-dialog
  9700. title="教师评分"
  9701. :visible.sync="dialogVisibleScore"
  9702. :append-to-body="true"
  9703. width="800px"
  9704. :before-close="handleClose"
  9705. class="dialog_diy"
  9706. >
  9707. <div>
  9708. <div class="studentDetail">
  9709. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9710. <div class="nameAndTime">
  9711. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9712. <div>{{ commentDetail.time }}</div>
  9713. </div>
  9714. </div>
  9715. <div
  9716. class="worksAnswer"
  9717. v-if="commentDetail.works && commentDetail.type == 2"
  9718. >
  9719. {{ JSON.parse(commentDetail.works)[0].answer }}
  9720. </div>
  9721. <div
  9722. class="worksAnswer"
  9723. v-if="commentDetail.works && commentDetail.type == 1"
  9724. >
  9725. <pdf
  9726. v-if="showPDF"
  9727. :pdfUrl="pptImgUrl"
  9728. style="width: 100%; height: 520px; overflow: auto"
  9729. :class="{ fullStyle: full }"
  9730. ></pdf>
  9731. <iframe
  9732. v-else
  9733. :src="pptImgUrl"
  9734. frameborder="0"
  9735. width="100%"
  9736. height="600"
  9737. :class="{ fullStyle: full }"
  9738. ></iframe>
  9739. </div>
  9740. <div
  9741. class="worksAnswer"
  9742. v-if="commentDetail.works && commentDetail.type == 0"
  9743. >
  9744. <img
  9745. :src="commentDetail.works"
  9746. alt=""
  9747. @click="previewImg(commentDetail.works)"
  9748. />
  9749. </div>
  9750. <div
  9751. class="worksAnswer"
  9752. v-if="commentDetail.works && commentDetail.type == 3"
  9753. >
  9754. <video-player
  9755. class="video-player vjs-custom-skin"
  9756. :playsinline="true"
  9757. :options="videoDetail"
  9758. @play="onPlayerPlay($event)"
  9759. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9760. ></video-player>
  9761. </div>
  9762. <div
  9763. class="worksAnswer codeFileBox"
  9764. v-if="commentDetail.works && commentDetail.type == 12"
  9765. @click="downloadFile(commentDetail.works)"
  9766. >
  9767. <img src="../../assets/icon/codeFile.png" />
  9768. <div>点击下载文件</div>
  9769. </div>
  9770. <div
  9771. class="worksAnswer codeFileBox"
  9772. v-if="commentDetail.works && commentDetail.type == 15"
  9773. @click="
  9774. openCocoPi(
  9775. 57,
  9776. commentIndexJson.toolIndex,
  9777. commentDetail.userid,
  9778. commentDetail.sName
  9779. )
  9780. "
  9781. >
  9782. <img src="../../assets/icon/codeFile.png" />
  9783. <div>点击打开CocoPi</div>
  9784. </div>
  9785. <div
  9786. class="worksAnswer"
  9787. v-if="commentDetail.works && commentDetail.type == 13"
  9788. >
  9789. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9790. </div>
  9791. <div class="scoreBox">
  9792. <span class="t">请输入分数</span>
  9793. <el-input-number
  9794. :disabled="courseDetail.userid != userid"
  9795. v-model="wScore"
  9796. :controls="false"
  9797. :min="0"
  9798. :max="100"
  9799. ></el-input-number>
  9800. </div>
  9801. <div class="scoreDetailBox">
  9802. <span class="t">评分评论</span>
  9803. <el-input
  9804. type="textarea"
  9805. :rows="5"
  9806. :disabled="courseDetail.userid != userid"
  9807. resize="none"
  9808. v-model="scoreDetail"
  9809. placeholder="请输入对学生的评价"
  9810. >
  9811. </el-input>
  9812. </div>
  9813. </div>
  9814. <span slot="footer" class="dialog-footer">
  9815. <el-button
  9816. @click="
  9817. (dialogVisibleScore = false),
  9818. (commentIndexJson = {}),
  9819. videoDetail.sources && videoDetail.sources[0]
  9820. ? (videoDetail.sources[0].src = '')
  9821. : ''
  9822. "
  9823. >取 消</el-button
  9824. >
  9825. <el-button
  9826. type="primary"
  9827. v-if="courseDetail.userid == userid"
  9828. @click="scoreWork(commentDetail.wid)"
  9829. >确 定
  9830. </el-button>
  9831. </span>
  9832. </el-dialog>
  9833. <el-dialog
  9834. title="排序"
  9835. :visible.sync="dialogVisibleSentence"
  9836. :append-to-body="true"
  9837. width="1000px"
  9838. :before-close="handleClose"
  9839. class="dialog_diy dialog_diy3"
  9840. >
  9841. <div>
  9842. <div class="sentenBox">
  9843. <div
  9844. v-for="(st, stIndex) in sentenceList"
  9845. :key="stIndex"
  9846. style="padding-bottom: 20px"
  9847. >
  9848. <div
  9849. style="padding: 15px 0 10px 20px"
  9850. class="sentenceTitle"
  9851. :index="stIndex + 1"
  9852. >
  9853. 题目{{ stIndex + 1 }}:请选择正确顺序
  9854. </div>
  9855. <div class="cardList" v-if="st.chooseSenList">
  9856. <div class="cardBox">
  9857. <div
  9858. v-for="(r, rIndex) in st.chooseSenList"
  9859. :key="rIndex"
  9860. @click="returnCard(r, stIndex, rIndex)"
  9861. >
  9862. <el-tooltip
  9863. class="item"
  9864. effect="light"
  9865. :content="r"
  9866. placement="top"
  9867. v-if="r != '' && r != undefined"
  9868. >
  9869. <div
  9870. :class="{
  9871. isCard: r,
  9872. isChooseCard: r == '' || r == undefined,
  9873. }"
  9874. >
  9875. <div>{{ r }}</div>
  9876. </div>
  9877. </el-tooltip>
  9878. <div
  9879. :class="{
  9880. isCard: r,
  9881. isChooseCard: r == '' || r == undefined,
  9882. }"
  9883. v-else
  9884. >
  9885. <div>{{ r }}</div>
  9886. </div>
  9887. </div>
  9888. </div>
  9889. </div>
  9890. <div class="cardList" v-if="st.addChangeSen">
  9891. <div class="cardBox">
  9892. <div
  9893. v-for="(s, sIndex) in st.addChangeSen"
  9894. :key="sIndex"
  9895. @click="setRightAnswer(s, stIndex, sIndex)"
  9896. >
  9897. <el-tooltip
  9898. class="item"
  9899. effect="light"
  9900. :content="s"
  9901. placement="top"
  9902. v-if="s != '' && s != undefined"
  9903. >
  9904. <div
  9905. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9906. >
  9907. <div>{{ s }}</div>
  9908. </div>
  9909. </el-tooltip>
  9910. <div
  9911. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  9912. v-else
  9913. >
  9914. <div>{{ s }}</div>
  9915. </div>
  9916. </div>
  9917. </div>
  9918. </div>
  9919. </div>
  9920. </div>
  9921. </div>
  9922. <span slot="footer" class="dialog-footer">
  9923. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  9924. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  9925. </span>
  9926. </el-dialog>
  9927. <el-dialog
  9928. title="排序"
  9929. :visible.sync="dialogVisibleSentenceTeacher"
  9930. :append-to-body="true"
  9931. width="1000px"
  9932. :before-close="handleClose"
  9933. class="dialog_diy dialog_diy3"
  9934. >
  9935. <div>
  9936. <div class="w_name">
  9937. 学生姓名:<span>{{ sStudent.student }}</span>
  9938. </div>
  9939. <div class="sentenBox">
  9940. <div
  9941. v-for="(st, stIndex) in sentenceList"
  9942. :key="stIndex"
  9943. style="padding-bottom: 20px"
  9944. >
  9945. <div
  9946. style="padding: 15px 0 10px 20px"
  9947. class="sentenceTitle"
  9948. :index="stIndex + 1"
  9949. >
  9950. 题目{{ stIndex + 1 }}:请选择正确顺序
  9951. </div>
  9952. <div class="cardList" v-if="st.chooseSenList">
  9953. <div class="cardBox">
  9954. <div
  9955. v-for="(r, rIndex) in st.chooseSenList"
  9956. :key="rIndex"
  9957. @click="returnCard(r, stIndex, rIndex)"
  9958. >
  9959. <el-tooltip
  9960. class="item"
  9961. effect="light"
  9962. :content="r"
  9963. placement="top"
  9964. v-if="r != '' && r != undefined"
  9965. >
  9966. <div
  9967. :class="{
  9968. isCard: r,
  9969. isChooseCard: r == '' || r == undefined,
  9970. }"
  9971. >
  9972. <div>{{ r }}</div>
  9973. </div>
  9974. </el-tooltip>
  9975. <div
  9976. :class="{
  9977. isCard: r,
  9978. isChooseCard: r == '' || r == undefined,
  9979. }"
  9980. v-else
  9981. >
  9982. <div>{{ r }}</div>
  9983. </div>
  9984. </div>
  9985. </div>
  9986. </div>
  9987. <div class="cardList" v-if="st.addChangeSen">
  9988. <div class="cardBox">
  9989. <div
  9990. v-for="(s, sIndex) in st.addChangeSen"
  9991. :key="sIndex"
  9992. @click="setRightAnswer(s, stIndex, sIndex)"
  9993. >
  9994. <el-tooltip
  9995. class="item"
  9996. effect="light"
  9997. :content="s"
  9998. placement="top"
  9999. v-if="s != '' && s != undefined"
  10000. >
  10001. <div
  10002. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10003. >
  10004. <div>{{ s }}</div>
  10005. </div>
  10006. </el-tooltip>
  10007. <div
  10008. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10009. v-else
  10010. >
  10011. <div>{{ s }}</div>
  10012. </div>
  10013. </div>
  10014. </div>
  10015. </div>
  10016. </div>
  10017. </div>
  10018. </div>
  10019. <span slot="footer" class="dialog-footer">
  10020. <el-button @click="dialogVisibleSentenceTeacher = false"
  10021. >取 消</el-button
  10022. >
  10023. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10024. </span>
  10025. </el-dialog>
  10026. <el-dialog
  10027. title="排序"
  10028. :visible.sync="dialogVisibleSentence1"
  10029. :append-to-body="true"
  10030. width="1000px"
  10031. :before-close="handleClose"
  10032. class="dialog_diy dialog_diy3"
  10033. >
  10034. <div>
  10035. <div class="sentenBox">
  10036. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10037. {{ sentenceList1.stuName }}的作业
  10038. </div>
  10039. <div
  10040. v-for="(st, stIndex) in sentenceList1"
  10041. :key="stIndex"
  10042. style="padding-bottom: 20px"
  10043. >
  10044. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10045. 第{{ stIndex + 1 }}题
  10046. </div>
  10047. <div class="isWrong">
  10048. <div class="cardList1" v-if="st.chooseSenList">
  10049. <div class="cardBox">
  10050. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10051. <el-tooltip
  10052. class="item"
  10053. effect="light"
  10054. :content="s"
  10055. placement="top"
  10056. >
  10057. <div class="isCard">
  10058. <div>{{ s }}</div>
  10059. </div>
  10060. </el-tooltip>
  10061. </div>
  10062. </div>
  10063. <div class="cardAnswerBox">
  10064. 组成句子:{{ st.chooseSenList.join(" ") }}
  10065. </div>
  10066. </div>
  10067. <div v-if="tType == 2" class="isTj">
  10068. <div class="isTjImg">
  10069. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10070. </div>
  10071. <div>已提交</div>
  10072. </div>
  10073. <div
  10074. class="answerRight isTj"
  10075. v-if="
  10076. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10077. (tType == 1 || tType == 4)
  10078. "
  10079. >
  10080. <div class="isTjImg">
  10081. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10082. </div>
  10083. <div>回答正确</div>
  10084. </div>
  10085. <div
  10086. class="answerRight isTj"
  10087. v-if="
  10088. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10089. (tType == 1 || tType == 4)
  10090. "
  10091. >
  10092. <div class="isTjImg">
  10093. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10094. </div>
  10095. <div>回答错误</div>
  10096. </div>
  10097. </div>
  10098. <div
  10099. v-if="
  10100. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10101. (tType == 1 || tType == 4)
  10102. "
  10103. >
  10104. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10105. <div
  10106. class="cardList"
  10107. v-if="st.rightAnswer"
  10108. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10109. >
  10110. <div class="cardBox">
  10111. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10112. <el-tooltip
  10113. class="item"
  10114. effect="light"
  10115. :content="r"
  10116. placement="top"
  10117. >
  10118. <div class="isCard1">
  10119. <div>{{ r }}</div>
  10120. </div>
  10121. </el-tooltip>
  10122. </div>
  10123. </div>
  10124. <div class="cardAnswerBox">
  10125. 组成句子:{{ st.rightAnswer.join(" ") }}
  10126. </div>
  10127. </div>
  10128. </div>
  10129. </div>
  10130. </div>
  10131. </div>
  10132. <span slot="footer" class="dialog-footer">
  10133. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10134. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10135. >确 定</el-button
  10136. >
  10137. </span>
  10138. </el-dialog>
  10139. <el-dialog
  10140. title="教师提交作业"
  10141. :visible.sync="dialogVisibleWorks"
  10142. :append-to-body="true"
  10143. width="500px"
  10144. :before-close="handleClose"
  10145. class="dialog_change"
  10146. >
  10147. <div class="marginT">
  10148. <div class="w_name">
  10149. 学生姓名:<span>{{ sStudent.student }}</span>
  10150. </div>
  10151. <div>上传文件</div>
  10152. <div
  10153. class="chapter_add"
  10154. @click="addImg($event)"
  10155. v-if="studyJuri[0].cover.length == 0"
  10156. >
  10157. <div class="up_photo">
  10158. <img src="../../assets/uploadImg2.png" alt />
  10159. </div>
  10160. <!-- <input
  10161. type="file"
  10162. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10163. style="display: none"
  10164. @change="beforeUpload1($event, 1)"
  10165. /> -->
  10166. <input
  10167. type="file"
  10168. accept="*"
  10169. style="display: none"
  10170. @change="beforeUpload1($event, 1)"
  10171. />
  10172. </div>
  10173. <!-- capture="camera" -->
  10174. <div
  10175. class="chapter_add"
  10176. style="
  10177. display: flex;
  10178. width: 100%;
  10179. flex-direction: row;
  10180. flex-wrap: wrap;
  10181. justify-content: flex-start;
  10182. padding: 15px 0;
  10183. "
  10184. v-if="studyJuri[0].cover.length > 0"
  10185. >
  10186. <div class="upCover">
  10187. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10188. <img :src="word" alt v-else-if="fileType == 1" />
  10189. <img :src="video" alt v-else-if="fileType == 2" />
  10190. <img :src="word2" alt v-else-if="fileType == 3" />
  10191. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10192. <div class="deleteWord" @click="clean(1)">
  10193. <img src="../../assets/icon/deleteWorks.png" alt />
  10194. </div>
  10195. </div>
  10196. </div>
  10197. </div>
  10198. <div
  10199. class="upload_send"
  10200. @click="addCourseWorksTeacher(taskCount)"
  10201. v-if="!proVisible"
  10202. >
  10203. 提交
  10204. </div>
  10205. </el-dialog>
  10206. <ImgDraw
  10207. :drawShow="drawShow"
  10208. @closeDraw="closeDraw"
  10209. @addImgDraw="addImgDraw"
  10210. :bg="bg"
  10211. ></ImgDraw>
  10212. <el-dialog
  10213. title="表格"
  10214. :visible.sync="dialogVisibleTable"
  10215. :append-to-body="true"
  10216. width="95%"
  10217. :before-close="handleClose"
  10218. class="dialog_diy"
  10219. >
  10220. <el-form>
  10221. <div
  10222. style="
  10223. display: flex;
  10224. align-items: center;
  10225. justify-content: space-between;
  10226. "
  10227. >
  10228. <span>表格内容</span>
  10229. <el-button type="primary" size="small" @click="returnTableText"
  10230. >还原模板</el-button
  10231. >
  10232. </div>
  10233. <Table
  10234. v-model="tableJson.text"
  10235. @change="change"
  10236. v-if="dialogVisibleTable"
  10237. ></Table>
  10238. </el-form>
  10239. <span slot="footer" class="dialog-footer">
  10240. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10241. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10242. </span>
  10243. </el-dialog>
  10244. <el-dialog
  10245. title="表格"
  10246. :visible.sync="dialogVisibleTableTeacher"
  10247. :append-to-body="true"
  10248. width="95%"
  10249. :before-close="handleClose"
  10250. class="dialog_diy"
  10251. >
  10252. <el-form>
  10253. <div class="w_name">
  10254. 学生姓名:<span>{{ sStudent.student }}</span>
  10255. </div>
  10256. <div>表格内容</div>
  10257. <Table
  10258. v-model="tableJson.text"
  10259. @change="change"
  10260. v-if="dialogVisibleTableTeacher"
  10261. ></Table>
  10262. </el-form>
  10263. <span slot="footer" class="dialog-footer">
  10264. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10265. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10266. </span>
  10267. </el-dialog>
  10268. <el-dialog
  10269. title="文档"
  10270. :visible.sync="dialogVisibleWord"
  10271. :append-to-body="true"
  10272. width="95%"
  10273. :before-close="handleClose"
  10274. class="dialog_diy"
  10275. >
  10276. <el-form>
  10277. <div
  10278. style="
  10279. display: flex;
  10280. align-items: center;
  10281. justify-content: space-between;
  10282. "
  10283. >
  10284. <span>文档内容</span>
  10285. <el-button type="primary" size="small" @click="returnWordText"
  10286. >还原模板</el-button
  10287. >
  10288. </div>
  10289. <editor-bar
  10290. v-model="wordJson.text"
  10291. v-if="dialogVisibleWord"
  10292. ></editor-bar>
  10293. </el-form>
  10294. <span slot="footer" class="dialog-footer">
  10295. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10296. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10297. </span>
  10298. </el-dialog>
  10299. <el-dialog
  10300. title="文档"
  10301. :visible.sync="dialogVisibleWordTeacher"
  10302. :append-to-body="true"
  10303. width="95%"
  10304. :before-close="handleClose"
  10305. class="dialog_diy"
  10306. >
  10307. <el-form>
  10308. <div class="w_name">
  10309. 学生姓名:<span>{{ sStudent.student }}</span>
  10310. </div>
  10311. <div>文档内容</div>
  10312. <editor-bar
  10313. v-model="wordJson.text"
  10314. v-if="dialogVisibleWordTeacher"
  10315. ></editor-bar>
  10316. </el-form>
  10317. <span slot="footer" class="dialog-footer">
  10318. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10319. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10320. </span>
  10321. </el-dialog>
  10322. <el-dialog
  10323. title="表格"
  10324. :visible.sync="dialogVisibleTable2"
  10325. :append-to-body="true"
  10326. width="95%"
  10327. :before-close="handleClose"
  10328. class="dialog_diy"
  10329. >
  10330. <el-form>
  10331. <div class="cont" v-html="tableJson.text"></div>
  10332. </el-form>
  10333. <span slot="footer" class="dialog-footer">
  10334. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10335. </span>
  10336. </el-dialog>
  10337. <el-dialog
  10338. title="文档"
  10339. :visible.sync="dialogVisibleTable3"
  10340. :append-to-body="true"
  10341. width="95%"
  10342. :before-close="handleClose"
  10343. class="dialog_diy"
  10344. >
  10345. <el-form>
  10346. <div class="cont" v-html="tableJson.text"></div>
  10347. </el-form>
  10348. <span slot="footer" class="dialog-footer">
  10349. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10350. </span>
  10351. </el-dialog>
  10352. <el-dialog
  10353. title="分组设置"
  10354. :visible.sync="dialogVisibleGroup"
  10355. :append-to-body="true"
  10356. width="95%"
  10357. :before-close="handleClose"
  10358. class="dialog_diy"
  10359. >
  10360. <div v-if="dialogVisibleGroup">
  10361. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10362. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10363. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10364. </div>
  10365. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10366. @click="lockChair">
  10367. 锁定位置
  10368. </div>
  10369. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10370. 解锁位置
  10371. </div> -->
  10372. <div class="group_switch">
  10373. <span>开放选座</span>
  10374. <el-switch
  10375. v-model="islock"
  10376. active-text=""
  10377. class="switchCss"
  10378. @change="lockChair"
  10379. ></el-switch>
  10380. </div>
  10381. <div
  10382. type="primary"
  10383. @click="updateGroup"
  10384. class="returnBtn"
  10385. style="background-color: #225bc7"
  10386. >
  10387. 分组设置
  10388. </div>
  10389. </div>
  10390. <div>
  10391. <div
  10392. class="g_d_box"
  10393. v-if="groupJson.group && groupStudent[toolindex]"
  10394. >
  10395. <div
  10396. class="g_d_group"
  10397. v-for="(g, gindex) in groupJson.group"
  10398. :key="gindex"
  10399. >
  10400. <div class="g_d_group_chair">
  10401. <div v-if="groupJson.number > 1">
  10402. <span
  10403. :class="{
  10404. isChair:
  10405. groupStudent[toolindex][gindex] &&
  10406. groupStudent[toolindex][gindex][0],
  10407. updateChair:
  10408. courseDetail.userid == userid &&
  10409. groupStudent[toolindex][gindex] &&
  10410. groupStudent[toolindex][gindex][0] &&
  10411. groupJson.islock == 2,
  10412. }"
  10413. ><span
  10414. class="updateChairBtn"
  10415. @click="
  10416. updateGroupChair(
  10417. groupStudent[toolindex][gindex] &&
  10418. groupStudent[toolindex][gindex][0]
  10419. )
  10420. "
  10421. >修改</span
  10422. ></span
  10423. ><span>{{
  10424. groupStudent[toolindex][gindex] &&
  10425. groupStudent[toolindex][gindex][0]
  10426. ? groupStudent[toolindex][gindex] &&
  10427. groupStudent[toolindex][gindex][0].name
  10428. : "空位置"
  10429. }}</span>
  10430. </div>
  10431. <div v-if="groupJson.number > 4">
  10432. <span
  10433. :class="{
  10434. isChair:
  10435. groupStudent[toolindex][gindex] &&
  10436. groupStudent[toolindex][gindex][4],
  10437. updateChair:
  10438. courseDetail.userid == userid &&
  10439. groupStudent[toolindex][gindex] &&
  10440. groupStudent[toolindex][gindex][4] &&
  10441. groupJson.islock == 2,
  10442. }"
  10443. ><span
  10444. class="updateChairBtn"
  10445. @click="
  10446. updateGroupChair(
  10447. groupStudent[toolindex][gindex] &&
  10448. groupStudent[toolindex][gindex][4]
  10449. )
  10450. "
  10451. >修改</span
  10452. ></span
  10453. ><span>{{
  10454. groupStudent[toolindex][gindex] &&
  10455. groupStudent[toolindex][gindex][4]
  10456. ? groupStudent[toolindex][gindex] &&
  10457. groupStudent[toolindex][gindex][4].name
  10458. : "空位置"
  10459. }}</span>
  10460. </div>
  10461. <div v-if="groupJson.number > 8">
  10462. <span
  10463. :class="{
  10464. isChair:
  10465. groupStudent[toolindex][gindex] &&
  10466. groupStudent[toolindex][gindex][8],
  10467. updateChair:
  10468. courseDetail.userid == userid &&
  10469. groupStudent[toolindex][gindex] &&
  10470. groupStudent[toolindex][gindex][8] &&
  10471. groupJson.islock == 2,
  10472. }"
  10473. ><span
  10474. class="updateChairBtn"
  10475. @click="
  10476. updateGroupChair(
  10477. groupStudent[toolindex][gindex] &&
  10478. groupStudent[toolindex][gindex][8]
  10479. )
  10480. "
  10481. >修改</span
  10482. ></span
  10483. ><span>{{
  10484. groupStudent[toolindex][gindex] &&
  10485. groupStudent[toolindex][gindex][8]
  10486. ? groupStudent[toolindex][gindex] &&
  10487. groupStudent[toolindex][gindex][8].name
  10488. : "空位置"
  10489. }}</span>
  10490. </div>
  10491. </div>
  10492. <div class="g_d_group_tableBox">
  10493. <div class="g_d_group_chair2">
  10494. <div v-if="groupJson.number > 2">
  10495. <span
  10496. :class="{
  10497. isChair:
  10498. groupStudent[toolindex][gindex] &&
  10499. groupStudent[toolindex][gindex][2],
  10500. updateChair:
  10501. courseDetail.userid == userid &&
  10502. groupStudent[toolindex][gindex] &&
  10503. groupStudent[toolindex][gindex][2] &&
  10504. groupJson.islock == 2,
  10505. }"
  10506. ><span
  10507. class="updateChairBtn"
  10508. @click="
  10509. updateGroupChair(
  10510. groupStudent[toolindex][gindex] &&
  10511. groupStudent[toolindex][gindex][2]
  10512. )
  10513. "
  10514. >修改</span
  10515. ></span
  10516. ><span>{{
  10517. groupStudent[toolindex][gindex] &&
  10518. groupStudent[toolindex][gindex][2]
  10519. ? groupStudent[toolindex][gindex] &&
  10520. groupStudent[toolindex][gindex][2].name
  10521. : "空位置"
  10522. }}</span>
  10523. </div>
  10524. <div v-if="groupJson.number > 6">
  10525. <span
  10526. :class="{
  10527. isChair:
  10528. groupStudent[toolindex][gindex] &&
  10529. groupStudent[toolindex][gindex][6],
  10530. updateChair:
  10531. courseDetail.userid == userid &&
  10532. groupStudent[toolindex][gindex] &&
  10533. groupStudent[toolindex][gindex][6] &&
  10534. groupJson.islock == 2,
  10535. }"
  10536. ><span
  10537. class="updateChairBtn"
  10538. @click="
  10539. updateGroupChair(
  10540. groupStudent[toolindex][gindex] &&
  10541. groupStudent[toolindex][gindex][6]
  10542. )
  10543. "
  10544. >修改</span
  10545. ></span
  10546. ><span>{{
  10547. groupStudent[toolindex][gindex] &&
  10548. groupStudent[toolindex][gindex][6]
  10549. ? groupStudent[toolindex][gindex] &&
  10550. groupStudent[toolindex][gindex][6].name
  10551. : "空位置"
  10552. }}</span>
  10553. </div>
  10554. </div>
  10555. <div class="g_d_group_table">
  10556. <div>
  10557. {{ g.name }}
  10558. </div>
  10559. <div>
  10560. <div
  10561. v-if="
  10562. courseDetail.userid == userid && groupJson.islock == 2
  10563. "
  10564. @click="deleteGroupChair(gindex)"
  10565. >
  10566. 移除组员
  10567. </div>
  10568. <div
  10569. @click="selectGroup(gindex)"
  10570. v-else-if="
  10571. groupStudentUid[toolindex] &&
  10572. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10573. "
  10574. >
  10575. 加入分组
  10576. </div>
  10577. <div
  10578. @click="
  10579. exitGroup(
  10580. groupStudent[toolindex][gindex] &&
  10581. groupStudent[toolindex][gindex][
  10582. groupStudentUid[toolindex][gindex].indexOf(userid)
  10583. ].id
  10584. )
  10585. "
  10586. v-else-if="
  10587. groupStudentUid[toolindex] &&
  10588. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10589. "
  10590. >
  10591. 退出分组
  10592. </div>
  10593. </div>
  10594. </div>
  10595. <div class="g_d_group_chair2">
  10596. <div v-if="groupJson.number > 3">
  10597. <span
  10598. :class="{
  10599. isChair:
  10600. groupStudent[toolindex][gindex] &&
  10601. groupStudent[toolindex][gindex][3],
  10602. updateChair:
  10603. courseDetail.userid == userid &&
  10604. groupStudent[toolindex][gindex] &&
  10605. groupStudent[toolindex][gindex][3] &&
  10606. groupJson.islock == 2,
  10607. }"
  10608. ><span
  10609. class="updateChairBtn"
  10610. @click="
  10611. updateGroupChair(
  10612. groupStudent[toolindex][gindex] &&
  10613. groupStudent[toolindex][gindex][3]
  10614. )
  10615. "
  10616. >修改</span
  10617. ></span
  10618. ><span>{{
  10619. groupStudent[toolindex][gindex] &&
  10620. groupStudent[toolindex][gindex][3]
  10621. ? groupStudent[toolindex][gindex] &&
  10622. groupStudent[toolindex][gindex][3].name
  10623. : "空位置"
  10624. }}</span>
  10625. </div>
  10626. <div v-if="groupJson.number > 7">
  10627. <span
  10628. :class="{
  10629. isChair:
  10630. groupStudent[toolindex][gindex] &&
  10631. groupStudent[toolindex][gindex][7],
  10632. updateChair:
  10633. courseDetail.userid == userid &&
  10634. groupStudent[toolindex][gindex] &&
  10635. groupStudent[toolindex][gindex][7] &&
  10636. groupJson.islock == 2,
  10637. }"
  10638. ><span
  10639. class="updateChairBtn"
  10640. @click="
  10641. updateGroupChair(
  10642. groupStudent[toolindex][gindex] &&
  10643. groupStudent[toolindex][gindex][7]
  10644. )
  10645. "
  10646. >修改</span
  10647. ></span
  10648. ><span>{{
  10649. groupStudent[toolindex][gindex] &&
  10650. groupStudent[toolindex][gindex][7]
  10651. ? groupStudent[toolindex][gindex] &&
  10652. groupStudent[toolindex][gindex][7].name
  10653. : "空位置"
  10654. }}</span>
  10655. </div>
  10656. </div>
  10657. </div>
  10658. <div class="g_d_group_chair">
  10659. <div v-if="groupJson.number > 1">
  10660. <span
  10661. :class="{
  10662. isChair:
  10663. groupStudent[toolindex][gindex] &&
  10664. groupStudent[toolindex][gindex][1],
  10665. updateChair:
  10666. courseDetail.userid == userid &&
  10667. groupStudent[toolindex][gindex] &&
  10668. groupStudent[toolindex][gindex][1] &&
  10669. groupJson.islock == 2,
  10670. }"
  10671. ><span
  10672. class="updateChairBtn"
  10673. @click="
  10674. updateGroupChair(
  10675. groupStudent[toolindex][gindex] &&
  10676. groupStudent[toolindex][gindex][1]
  10677. )
  10678. "
  10679. >修改</span
  10680. ></span
  10681. ><span>{{
  10682. groupStudent[toolindex][gindex] &&
  10683. groupStudent[toolindex][gindex][1]
  10684. ? groupStudent[toolindex][gindex] &&
  10685. groupStudent[toolindex][gindex][1].name
  10686. : "空位置"
  10687. }}</span>
  10688. </div>
  10689. <div v-if="groupJson.number > 5">
  10690. <span
  10691. :class="{
  10692. isChair:
  10693. groupStudent[toolindex][gindex] &&
  10694. groupStudent[toolindex][gindex][5],
  10695. updateChair:
  10696. courseDetail.userid == userid &&
  10697. groupStudent[toolindex][gindex] &&
  10698. groupStudent[toolindex][gindex][5] &&
  10699. groupJson.islock == 2,
  10700. }"
  10701. ><span
  10702. class="updateChairBtn"
  10703. @click="
  10704. updateGroupChair(
  10705. groupStudent[toolindex][gindex] &&
  10706. groupStudent[toolindex][gindex][5]
  10707. )
  10708. "
  10709. >修改</span
  10710. ></span
  10711. ><span>{{
  10712. groupStudent[toolindex][gindex] &&
  10713. groupStudent[toolindex][gindex][5]
  10714. ? groupStudent[toolindex][gindex] &&
  10715. groupStudent[toolindex][gindex][5].name
  10716. : "空位置"
  10717. }}</span>
  10718. </div>
  10719. <div v-if="groupJson.number > 9">
  10720. <span
  10721. :class="{
  10722. isChair:
  10723. groupStudent[toolindex][gindex] &&
  10724. groupStudent[toolindex][gindex][9],
  10725. updateChair:
  10726. courseDetail.userid == userid &&
  10727. groupStudent[toolindex][gindex] &&
  10728. groupStudent[toolindex][gindex][9] &&
  10729. groupJson.islock == 2,
  10730. }"
  10731. ><span
  10732. class="updateChairBtn"
  10733. @click="
  10734. updateGroupChair(
  10735. groupStudent[toolindex][gindex] &&
  10736. groupStudent[toolindex][gindex][9]
  10737. )
  10738. "
  10739. >修改</span
  10740. ></span
  10741. ><span>{{
  10742. groupStudent[toolindex][gindex] &&
  10743. groupStudent[toolindex][gindex][9]
  10744. ? groupStudent[toolindex][gindex] &&
  10745. groupStudent[toolindex][gindex][9].name
  10746. : "空位置"
  10747. }}</span>
  10748. </div>
  10749. </div>
  10750. </div>
  10751. </div>
  10752. </div>
  10753. </div>
  10754. <span slot="footer" class="dialog-footer">
  10755. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  10756. </span>
  10757. </el-dialog>
  10758. <el-dialog
  10759. title="分组设置"
  10760. :visible.sync="dialogVisibleGroup2"
  10761. :append-to-body="true"
  10762. width="650px"
  10763. :before-close="handleClose"
  10764. class="dialog_diy"
  10765. >
  10766. <div class="groupBox">
  10767. <div v-if="groupJson2.group" class="groupContent">
  10768. <div class="groupTitle">请设置小组数量及名称</div>
  10769. <div
  10770. v-for="(item, index) in groupJson2.group"
  10771. :key="index"
  10772. class="groupName"
  10773. >
  10774. <span class="groupn">第{{ index + 1 }}组名称:</span>
  10775. <el-input
  10776. v-model="item.name"
  10777. placeholder="请输入名称..."
  10778. style="width: 250px"
  10779. ></el-input>
  10780. <!-- <div class="groupBtn">
  10781. <el-button type="primary" size="small" @click="addGroup(index)">
  10782. 添加</el-button>
  10783. <el-button type="primary" size="small" @click="deleteGroup(index)"
  10784. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  10785. </div> -->
  10786. </div>
  10787. </div>
  10788. <div class="groupContent">
  10789. <div class="groupTitle">请设置每组人数</div>
  10790. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  10791. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  10792. <el-input
  10793. v-model="groupJson.number"
  10794. style="width: 150px"
  10795. placeholder="请输入2-10的数字"
  10796. @change="numberPan"
  10797. ></el-input>
  10798. </div>
  10799. </div>
  10800. <span slot="footer" class="dialog-footer">
  10801. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  10802. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  10803. </span>
  10804. </el-dialog>
  10805. <el-dialog
  10806. title="作业提交"
  10807. :visible.sync="dialogVisibleGroupWork"
  10808. :append-to-body="true"
  10809. width="500px"
  10810. :before-close="handleClose"
  10811. class="dialog_change"
  10812. >
  10813. <div class="marginT">
  10814. <div>上传文件</div>
  10815. <div
  10816. class="chapter_add"
  10817. @click="addImg($event)"
  10818. v-if="studyJuri[0].cover.length == 0"
  10819. >
  10820. <div class="up_photo">
  10821. <img src="../../assets/icon/uploadImg.png" alt />
  10822. </div>
  10823. <!-- <input
  10824. type="file"
  10825. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10826. style="display: none"
  10827. @change="beforeUpload1($event, 1)"
  10828. /> -->
  10829. <input
  10830. type="file"
  10831. accept="*"
  10832. style="display: none"
  10833. @change="beforeUpload1($event, 1)"
  10834. />
  10835. </div>
  10836. <!-- capture="camera" -->
  10837. <div
  10838. class="chapter_add"
  10839. style="
  10840. display: flex;
  10841. width: 100%;
  10842. flex-direction: row;
  10843. flex-wrap: wrap;
  10844. justify-content: flex-start;
  10845. padding: 15px 0;
  10846. "
  10847. v-if="studyJuri[0].cover.length > 0"
  10848. >
  10849. <div class="upCover">
  10850. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10851. <img :src="word" alt v-else-if="fileType == 1" />
  10852. <img :src="video" alt v-else-if="fileType == 2" />
  10853. <img :src="word2" alt v-else-if="fileType == 3" />
  10854. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10855. <div class="deleteWord" @click="clean(1)">
  10856. <img src="../../assets/icon/deleteWorks.png" alt />
  10857. </div>
  10858. </div>
  10859. </div>
  10860. </div>
  10861. <div
  10862. class="upload_send"
  10863. @click="addCourseWorks2(taskCount)"
  10864. v-if="!proVisible"
  10865. >
  10866. 提交
  10867. </div>
  10868. </el-dialog>
  10869. <el-dialog
  10870. title="修改分组"
  10871. :visible.sync="dialogVisibleUpdateGroup"
  10872. :append-to-body="true"
  10873. width="350px"
  10874. :before-close="handleClose"
  10875. class="dialog_diy"
  10876. >
  10877. <div>
  10878. <h2>
  10879. {{ this.updateGroupUser.name }}
  10880. </h2>
  10881. <div style="color: rgb(171 171 171); margin-top: 10px">
  10882. 请选择要进入的分组
  10883. </div>
  10884. <el-radio-group v-model="checkChair">
  10885. <el-radio
  10886. style="display: block; margin-top: 20px"
  10887. v-for="(item, index) in updateGroupArray"
  10888. :label="item.label"
  10889. :key="index"
  10890. >{{ item.name }}</el-radio
  10891. >
  10892. </el-radio-group>
  10893. </div>
  10894. <span slot="footer" class="dialog-footer">
  10895. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  10896. <el-button type="primary" @click="updateChair">确定</el-button>
  10897. </span>
  10898. </el-dialog>
  10899. <el-dialog
  10900. title="移除组员"
  10901. :visible.sync="dialogVisibleDeleteGroup"
  10902. :append-to-body="true"
  10903. width="350px"
  10904. :before-close="handleClose"
  10905. class="dialog_diy"
  10906. >
  10907. <div>
  10908. <h2>
  10909. {{ this.deleteGroupArray.name }}
  10910. </h2>
  10911. <div style="color: rgb(171 171 171); margin-top: 10px">
  10912. 请选择要删除的组员
  10913. </div>
  10914. <el-checkbox-group v-model="checkDeleteGroup">
  10915. <el-checkbox
  10916. style="display: flex; margin-top: 20px"
  10917. v-for="(item, index) in deleteGroupUser"
  10918. :label="item.userid"
  10919. :key="index"
  10920. >{{ item.name }}</el-checkbox
  10921. >
  10922. </el-checkbox-group>
  10923. </div>
  10924. <span slot="footer" class="dialog-footer">
  10925. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  10926. <el-button type="primary" @click="deleteChair">确定</el-button>
  10927. </span>
  10928. </el-dialog>
  10929. <el-dialog
  10930. title="批量上传"
  10931. :visible.sync="dialogVisiblePl"
  10932. :append-to-body="true"
  10933. width="700px"
  10934. :before-close="handleClose"
  10935. class="dialog_change"
  10936. >
  10937. <div class="marginT">
  10938. <div class="plworkBox">
  10939. <div
  10940. class="chapter_add"
  10941. style="
  10942. display: flex;
  10943. width: 150px;
  10944. flex-direction: row;
  10945. flex-wrap: wrap;
  10946. justify-content: flex-start;
  10947. margin: 0 10px 10px 0;
  10948. "
  10949. v-for="(item, index) in plworkFile"
  10950. :key="index"
  10951. >
  10952. <div class="upCover2">
  10953. <img
  10954. :src="item.url"
  10955. alt
  10956. v-if="item.fileType == 1"
  10957. @click="previewImg(item.url)"
  10958. />
  10959. <img :src="word" alt v-else-if="item.fileType == 4" />
  10960. <img :src="video" alt v-else />
  10961. <!-- <span class="picName">{{ item.name }}</span> -->
  10962. <!-- <el-input
  10963. v-model="item.username"
  10964. placeholder="请输入学生名字"
  10965. style="margin-top: 10px"
  10966. ></el-input> -->
  10967. <div
  10968. class="pl_select_box"
  10969. @click="
  10970. getUpdateMore(true, checkUpload(), item.username, index)
  10971. "
  10972. >
  10973. {{ getSName(item.username) }}
  10974. </div>
  10975. <!-- <el-select
  10976. style="margin-top: 10px"
  10977. v-model="item.username"
  10978. filterable
  10979. allow-create
  10980. placeholder="请选择学生"
  10981. >
  10982. <el-option
  10983. v-for="item1 in checkUpload()"
  10984. :key="item1.userid"
  10985. :label="item1.name ? item1.name : item1.username"
  10986. :value="item1.userid"
  10987. >
  10988. </el-option>
  10989. </el-select> -->
  10990. <div class="deleteWord" @click="clean2(index)">
  10991. <img src="../../assets/icon/deleteWorks.png" alt />
  10992. </div>
  10993. </div>
  10994. </div>
  10995. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  10996. <div class="up_photo2">
  10997. <img src="../../assets/icon/plwork.png" alt />
  10998. <span>点击上传文件</span>
  10999. </div>
  11000. <input
  11001. type="file"
  11002. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11003. multiple="multiple"
  11004. style="display: none"
  11005. @change="beforeUpload3($event, 6)"
  11006. />
  11007. </div>
  11008. </div>
  11009. </div>
  11010. <!-- capture="camera" -->
  11011. <div
  11012. class="upload_send"
  11013. @click="addCourseWorksPl(taskCount)"
  11014. v-if="!proVisible2"
  11015. >
  11016. 提交
  11017. </div>
  11018. </el-dialog>
  11019. <el-dialog
  11020. title="修改名称"
  11021. :visible.sync="dialogVisibleSname"
  11022. width="500px"
  11023. :before-close="handleClose"
  11024. class="dialog_diy"
  11025. center
  11026. >
  11027. <div
  11028. style="
  11029. text-align: center;
  11030. display: flex;
  11031. align-items: center;
  11032. justify-content: center;
  11033. "
  11034. >
  11035. <span class="tian1">名称</span>
  11036. <div
  11037. class="pl_select_box"
  11038. style="margin-left: 10px; width: 200px"
  11039. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11040. >
  11041. {{ getSName(worksSName) }}
  11042. </div>
  11043. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11044. placeholder="请选择学生">
  11045. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11046. :value="item.userid">
  11047. </el-option>
  11048. </el-select> -->
  11049. <!-- <el-input
  11050. v-model="worksSName"
  11051. style="width: 250px; margin: 15px 0px"
  11052. ></el-input> -->
  11053. </div>
  11054. <span slot="footer" class="dialog-footer">
  11055. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11056. <el-button type="primary" @click="updateName">确 定</el-button>
  11057. </span>
  11058. </el-dialog>
  11059. <el-dialog
  11060. title="英语写作"
  11061. :visible.sync="engDialogVisible"
  11062. :append-to-body="true"
  11063. width="800px"
  11064. :before-close="handleClose"
  11065. class="dialog_diy"
  11066. >
  11067. <div>
  11068. 111
  11069. </div>
  11070. <span slot="footer" class="dialog-footer">
  11071. <el-button @click="engDialogVisible = false">取 消</el-button>
  11072. <el-button type="primary" @click="addEngLish">确 定</el-button>
  11073. </span>
  11074. </el-dialog>
  11075. <interVideo
  11076. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11077. :videoJson="videoJson"
  11078. :userid="userid"
  11079. :id="id"
  11080. :courseType="courseType"
  11081. :taskCount="taskCount"
  11082. :toolindex="toolindex"
  11083. ></interVideo>
  11084. <UpdateMore
  11085. :dialogVisibleMember.sync="dialogVisibleMember"
  11086. :cList="uploadStudentJuri"
  11087. :userid="userid"
  11088. :searchTN="worksSName2"
  11089. @setPlname="setPlname"
  11090. ></UpdateMore>
  11091. <wordCloud
  11092. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11093. :data="wordCloudData"
  11094. ></wordCloud>
  11095. <el-dialog
  11096. title="挑人"
  11097. :visible.sync="dialogVisiblePickPeople"
  11098. width="650px"
  11099. :before-close="handleClose"
  11100. class="dialog_diy"
  11101. center
  11102. >
  11103. <div class="pick_box">
  11104. <div
  11105. class="noWorksName"
  11106. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11107. v-for="(item, index) in uploadStudentJuri"
  11108. :key="index"
  11109. @click="pickStudent(item)"
  11110. >
  11111. {{ item.name }}
  11112. </div>
  11113. </div>
  11114. </el-dialog>
  11115. </div>
  11116. </template>
  11117. <script>
  11118. import "../../common/aws-sdk-2.235.1.min.js";
  11119. // import pdf from "../components/pdf3";
  11120. import pdf from "../components/vpdf";
  11121. import AskStatic from "../components/askStatic";
  11122. import AskStatic2 from "../components/askStatic2";
  11123. import AnswerData2 from "../components/answerData2";
  11124. import AnswerData from "../components/answerData";
  11125. import EditorBar from "../tools/wangEnduit.vue";
  11126. import Table from "../tools/table.vue";
  11127. import Time from "../tools/time.vue";
  11128. import Mind from "../tools/jsmind.vue";
  11129. import Sunburst from "../tools/sunburst";
  11130. import SeeBoard from "../tools/seeBoard";
  11131. import * as imageConversion from "image-conversion";
  11132. import Audio from "../components/audio.vue";
  11133. import ImgDraw from "../tools/imgDraw/imgDraw";
  11134. import { Empty } from "element-ui";
  11135. import RecordRTC from "recordrtc";
  11136. import interVideo from "../interVideo/index.vue";
  11137. import UpdateMore from "../updateMore/updateMore.vue";
  11138. import wordCloud from "../wordCloud/index.vue";
  11139. import axios from "axios";
  11140. import JSZip from "jszip";
  11141. import FileSaver from "file-saver";
  11142. const getFile = (url) => {
  11143. return new Promise((resolve, reject) => {
  11144. axios({
  11145. method: "get",
  11146. url,
  11147. responseType: "blob",
  11148. })
  11149. .then((data) => {
  11150. resolve({ data: data.data });
  11151. })
  11152. .catch((error) => {
  11153. resolve({ data: 1 });
  11154. // reject(error.toString());
  11155. });
  11156. });
  11157. };
  11158. export default {
  11159. components: {
  11160. EditorBar,
  11161. Time,
  11162. pdf,
  11163. AskStatic,
  11164. AskStatic2,
  11165. Mind,
  11166. Sunburst,
  11167. SeeBoard,
  11168. AnswerData2,
  11169. AnswerData,
  11170. Audio,
  11171. ImgDraw,
  11172. Table,
  11173. interVideo,
  11174. UpdateMore,
  11175. wordCloud,
  11176. },
  11177. data() {
  11178. return {
  11179. bg: null,
  11180. drawShow: false,
  11181. dialogVisible: false,
  11182. dialogVisiblePl: false,
  11183. commentDialogVisible: false,
  11184. dialogVisibleMember: false,
  11185. dialogVisibleWordCloud: false,
  11186. videoVisible: false,
  11187. isStar: false,
  11188. studentEvalDialogVisible: false,
  11189. studentEvalDialogVisibleTeacher: false,
  11190. dialogVisibleSelect: false,
  11191. dialogVisibleSelectTeacher: false,
  11192. dialogVisibleScore: false,
  11193. dialogVisibleSentence: false,
  11194. dialogVisibleSentenceTeacher: false,
  11195. dialogVisibleSentence1: false,
  11196. dialogVisibleWorks: false,
  11197. dialogVisibleTable: false,
  11198. dialogVisibleTableTeacher: false,
  11199. dialogVisibleWord: false,
  11200. dialogVisibleWordTeacher: false,
  11201. dialogVisibleTable2: false,
  11202. dialogVisibleTable3: false,
  11203. dialogVisibleGroupWork: false,
  11204. dialogVisibleUpdateGroup: false,
  11205. dialogVisibleDeleteGroup: false,
  11206. dialogVisibleSname: false,
  11207. dialogVisibleVideo: false,
  11208. dialogVisiblePickPeople: false,
  11209. worksSName: "",
  11210. classJuri: [],
  11211. uploadStudentJuri: [],
  11212. uploadCid: "",
  11213. snameWid: "",
  11214. sStudent: {},
  11215. sTool: "",
  11216. bzText: "",
  11217. commentDetail: [],
  11218. selectAnswer: [],
  11219. videoDetail: {},
  11220. selectJson: {},
  11221. eScore: { eBzText: "", eStar: [] },
  11222. id: this.$route.query.courseId,
  11223. userid: this.$route.query.userid,
  11224. classId: this.$route.query.cid,
  11225. // courseTypeLine: this.$route.query.type,
  11226. oid: this.$route.query.oid,
  11227. org: this.$route.query.org,
  11228. tType: this.$route.query.tType,
  11229. courseType: this.$route.query.type,
  11230. screenType: this.$route.query.screenType,
  11231. tcid2: this.$route.query.tcid,
  11232. tcid: "",
  11233. pptImgUrl: "",
  11234. pptImgUrl1: "",
  11235. commentText: "",
  11236. full: false,
  11237. sIsOpen: false,
  11238. IsLookOpen: false,
  11239. IsFollow: false,
  11240. pzDialog: false,
  11241. contentDialog: false,
  11242. mlDialog: false,
  11243. type: 1,
  11244. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11245. sentenceList1: [],
  11246. tableJson: [],
  11247. tableJsonO: [],
  11248. wordJson: [],
  11249. wordJsonO: [],
  11250. vedio: [],
  11251. text: [],
  11252. textList: [],
  11253. line: [],
  11254. lineList: [],
  11255. chapTools: [],
  11256. chapToolList: [],
  11257. file: [],
  11258. fileC: [],
  11259. vedioTime: [],
  11260. upToolImg: "",
  11261. preTime: 0,
  11262. rateList: {
  11263. ca: 0,
  11264. },
  11265. rateParams: [],
  11266. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11267. studyJuri: [
  11268. {
  11269. content: "",
  11270. cover: [],
  11271. upVedio: [],
  11272. upFile: [],
  11273. },
  11274. ],
  11275. isClose: 0,
  11276. plworkFile: [],
  11277. mr: require("../../assets/vedioPic.png"),
  11278. word: require("../../assets/icon/isWord.png"),
  11279. word2: require("../../assets/icon/word2.png"),
  11280. video: require("../../assets/icon/isVideo.png"),
  11281. noLikes: require("../../assets/icon/comment/noLikes.png"),
  11282. likes: require("../../assets/icon/comment/likes.png"),
  11283. scoreImg: require("../../assets/score.png"),
  11284. courseDetail: {},
  11285. reply: "",
  11286. isSelect: false,
  11287. chapInfo: [],
  11288. chapInfoList: [],
  11289. taskCount: 0,
  11290. imgList: [],
  11291. noImgList: [],
  11292. pzList: [],
  11293. timeWorkList: [],
  11294. PlTextList: [
  11295. "Excellent!",
  11296. "nice!",
  11297. "很有创意!",
  11298. "还不错哦~",
  11299. "继续努力哦~",
  11300. ],
  11301. isClickNav: "",
  11302. navId: "",
  11303. playerOptions: {
  11304. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11305. autoplay: false, //如果true,浏览器准备好时开始回放。
  11306. muted: false, // 默认情况下将会消除任何音频。
  11307. loop: false, // 导致视频一结束就重新开始。
  11308. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11309. language: "zh-CN",
  11310. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11311. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11312. sources: [
  11313. {
  11314. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11315. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11316. },
  11317. ],
  11318. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11319. // poster: dataRes.imgUrl, //你的封面地址
  11320. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11321. controlBar: {
  11322. timeDivider: true, //当前时间和持续时间的分隔符
  11323. durationDisplay: true, //显示持续时间
  11324. remainingTimeDisplay: false, //是否显示剩余时间功能
  11325. fullscreenToggle: true, //全屏按钮
  11326. },
  11327. },
  11328. playerOptions1: {
  11329. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11330. autoplay: false, //如果true,浏览器准备好时开始回放。
  11331. muted: false, // 默认情况下将会消除任何音频。
  11332. loop: false, // 导致视频一结束就重新开始。
  11333. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11334. language: "zh-CN",
  11335. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11336. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11337. sources: [
  11338. {
  11339. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11340. src: "", //url地址require("../../../assets/media/aaa.mp4")
  11341. },
  11342. ],
  11343. // poster: require("../../../assets/tu31.png"), //你的封面地址
  11344. // poster: dataRes.imgUrl, //你的封面地址
  11345. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11346. controlBar: {
  11347. timeDivider: true, //当前时间和持续时间的分隔符
  11348. durationDisplay: true, //显示持续时间
  11349. remainingTimeDisplay: false, //是否显示剩余时间功能
  11350. fullscreenToggle: true, //全屏按钮
  11351. },
  11352. },
  11353. playerO: {},
  11354. noneBtnImg: false,
  11355. proVisible: false,
  11356. proVisible2: false,
  11357. progress: 0,
  11358. isFinishSize: 0,
  11359. isAllSize: 0,
  11360. questionAnswer: "",
  11361. answerQ: "", //问答标题
  11362. rateJson: [],
  11363. wbCount: 0,
  11364. wordCount: 0,
  11365. mindCount: 0,
  11366. askCount: 0,
  11367. noteCount: 0,
  11368. mindNetWorkCount: 0,
  11369. libraryCount: 0,
  11370. workCount: 0,
  11371. timeCount: 0,
  11372. answerCount: 0,
  11373. trainCount: 0,
  11374. evalCount: 0,
  11375. dialogImageUrl: "",
  11376. pictureDialog: false,
  11377. toolTypeList: [],
  11378. dialogVisible1: false,
  11379. dialogVisible2: false,
  11380. dialogVisible3: false,
  11381. dialogVisible6: false,
  11382. dialogVisible4: false,
  11383. isNoHomeWork: false,
  11384. dialogVisible5: false,
  11385. dialogVisible5Teacher: false,
  11386. dialogVisibleChoice: false,
  11387. dialogVisibleChoiceTeacher: false,
  11388. answerDialogVisible: false,
  11389. answerDialogVisibleTeacher: false,
  11390. juriVisible: false,
  11391. timeDialogVisible: false,
  11392. replyDialogVisible: false,
  11393. toolDialogVisible: false,
  11394. engDialogVisible: false,
  11395. replyIndex: 0,
  11396. replyPid: "",
  11397. radio: [],
  11398. isAsk: false,
  11399. askJson: {
  11400. askCount: 1,
  11401. askTitle: "",
  11402. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11403. },
  11404. testJson: {},
  11405. englishList: {},
  11406. checkJson: [],
  11407. askList: [],
  11408. answerList: [],
  11409. navList: [],
  11410. addPzDialog: false,
  11411. pzConText: "",
  11412. worksStudent: [],
  11413. isCloseList: [],
  11414. workStudent: [],
  11415. groupStudent: [],
  11416. groupStudentUid: [],
  11417. noWorksS: [],
  11418. isWorksS: [],
  11419. noWorksStudent: [],
  11420. toolindex: 0,
  11421. toolDetailIndex: null,
  11422. groupIndex: 0,
  11423. workTypeB: false,
  11424. workTypeC: false,
  11425. isAnswer: false,
  11426. isHovered: false,
  11427. isHovered1: false,
  11428. isHovered2: false,
  11429. timer: null,
  11430. opertimer: null,
  11431. showType: 0,
  11432. fileType: 0,
  11433. showPDF: false,
  11434. noteName: "",
  11435. evaJuri: [],
  11436. evalua: "",
  11437. eTitle: "",
  11438. eName: "",
  11439. eJson: {},
  11440. fid: "", //一级
  11441. sid: "", //二级
  11442. tid: "", //二级
  11443. typeMode: 1,
  11444. eJSONNum: 0,
  11445. Etype: 1,
  11446. data: {
  11447. meta: {
  11448. name: "example",
  11449. author: "dd@163.com",
  11450. version: "0.2",
  11451. },
  11452. format: "node_array",
  11453. data: [{ id: "root", isroot: true, topic: "" }],
  11454. },
  11455. fullDialogVisible: false,
  11456. fulltype: "",
  11457. fullUrl: "",
  11458. commentIndexJson: {},
  11459. Stbodywidth: 0,
  11460. ispzType: 0,
  11461. pzType: 1,
  11462. wScore: 0,
  11463. scoreDetail: "",
  11464. videoStart: false,
  11465. recorder: null,
  11466. groupJson: {},
  11467. islock: false,
  11468. groupJson2: {},
  11469. dialogVisibleGroup: false,
  11470. dialogVisibleGroup2: false,
  11471. updateGroupArray: [],
  11472. updateGroupUser: {},
  11473. deleteGroupUser: [],
  11474. deleteGroupArray: {},
  11475. checkChair: "",
  11476. checkDeleteGroup: [],
  11477. inviteCode: "",
  11478. courseGroupStudent: [],
  11479. courseGroupStudentUid: [],
  11480. courseGroup: {},
  11481. isGroup: false,
  11482. toolIndex: null,
  11483. tool: {},
  11484. isWorkTool: [
  11485. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11486. ], //, 40
  11487. videoJson: {},
  11488. toolType: 0,
  11489. checktoolArray: [],
  11490. vChapterData: [],
  11491. isUpdateToolDetail: false,
  11492. isUpdateToolDetail1: false,
  11493. updateToolDetailInner: "",
  11494. checkboxList: [],
  11495. plIndex: "",
  11496. worksSName2: "",
  11497. worksSid: "",
  11498. wordCloudData: [],
  11499. isPickStudent: [],
  11500. pzStype: 1,
  11501. };
  11502. },
  11503. methods: {
  11504. addToolChoose() {
  11505. if (!this.checktoolArray.length) {
  11506. this.$message.error("请选择要添加的任务");
  11507. return;
  11508. }
  11509. if (
  11510. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11511. this.taskCount
  11512. ].toolChoose[0].tool.length
  11513. ) {
  11514. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11515. this.taskCount
  11516. ].toolChoose[0].tool = this.checktoolArray;
  11517. } else {
  11518. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11519. this.taskCount
  11520. ].toolChoose.push({
  11521. tool: this.checktoolArray,
  11522. toolDetail: "",
  11523. toolType: 0,
  11524. askCount: 1,
  11525. askTitle: "",
  11526. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11527. });
  11528. }
  11529. let params = [
  11530. {
  11531. cid: this.id,
  11532. chapters: JSON.stringify(this.chapInfoList),
  11533. uid: this.userid,
  11534. unitIndex: this.courseType,
  11535. },
  11536. ];
  11537. this.ajax
  11538. .post(this.$store.state.api + "updateWorkNew4", params)
  11539. .then((res) => {
  11540. this.$message({
  11541. message: "添加成功",
  11542. type: "success",
  11543. });
  11544. this.checktoolArray = [];
  11545. this.getCourseDetail(2);
  11546. this.checkBz(
  11547. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11548. this.taskCount
  11549. ].toolChoose.length - 1
  11550. );
  11551. this.toolDialogVisible = false;
  11552. this.refreshCourse();
  11553. this.$forceUpdate();
  11554. })
  11555. .catch((err) => {
  11556. console.error(err);
  11557. });
  11558. },
  11559. checkBz(index) {
  11560. this.isUpdateToolDetail = false;
  11561. this.$forceUpdate();
  11562. setTimeout(() => {
  11563. document.scrollingElement.scrollTop =
  11564. document.querySelectorAll(".filebox")[index].offsetTop +
  11565. document.querySelector(".student_body").offsetTop;
  11566. }, 500);
  11567. },
  11568. updateToolDetail(i) {
  11569. this.toolDetailIndex = i;
  11570. if (!this.isUpdateToolDetail1) {
  11571. this.isUpdateToolDetail1 = true;
  11572. this.updateToolDetailInner = JSON.parse(
  11573. JSON.stringify(
  11574. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11575. this.taskCount
  11576. ].toolChoose[i].toolDetail
  11577. )
  11578. );
  11579. } else {
  11580. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  11581. this.taskCount
  11582. ].toolChoose[i].toolDetail = JSON.parse(
  11583. JSON.stringify(this.updateToolDetailInner)
  11584. );
  11585. let params = [
  11586. {
  11587. cid: this.id,
  11588. chapters: JSON.stringify(this.chapInfoList),
  11589. uid: this.userid,
  11590. unitIndex: this.courseType,
  11591. },
  11592. ];
  11593. this.ajax
  11594. .post(this.$store.state.api + "updateWorkNew4", params)
  11595. .then((res) => {
  11596. this.isUpdateToolDetail1 = false;
  11597. this.$message({
  11598. message: "修改成功",
  11599. type: "success",
  11600. });
  11601. this.toolDetailIndex = null;
  11602. this.updateToolDetailInner = "";
  11603. this.getCourseDetail(2);
  11604. this.$forceUpdate();
  11605. })
  11606. .catch((err) => {
  11607. console.error(err);
  11608. });
  11609. }
  11610. },
  11611. jumpGj(i, j, k, l) {
  11612. for (var z = 0; z < this.navList.length; z++) {
  11613. for (var q = 0; q < this.navList[z].task.length; q++) {
  11614. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  11615. this.navList[z].task[q].tool[w].isTool = false;
  11616. }
  11617. }
  11618. }
  11619. console.log(this.navList);
  11620. this.navList[i].task[j].tool[k].isTool =
  11621. !this.navList[i].task[j].tool[k].isTool;
  11622. var a = document.scrollingElement;
  11623. let target = document.querySelector(`#gj${k}`);
  11624. if (target) {
  11625. target.scrollIntoView(true);
  11626. setTimeout(() => {
  11627. a.scrollTop = a.scrollTop - 150;
  11628. }, 0);
  11629. }
  11630. if (l) {
  11631. this.courseType = i;
  11632. this.navId = l;
  11633. this.taskCount = j;
  11634. this.selectPz();
  11635. this.getHomeWork();
  11636. this.getCourseDetail(2);
  11637. }
  11638. // var b = this.$refs["bz" + k][0];
  11639. // a.scrollTop = b.offsetTop;
  11640. },
  11641. addTools2(i) {
  11642. if (i == 4) {
  11643. // this.openTools2(4);
  11644. this.$message.error("暂未开放");
  11645. return;
  11646. }
  11647. if (i == 45) {
  11648. // this.openTools2(45);
  11649. this.$message.error("暂未开放");
  11650. return;
  11651. }
  11652. if (i == 47) {
  11653. // this.openTools2(47);
  11654. this.$message.error("暂未开放");
  11655. return;
  11656. }
  11657. if (i == 49) {
  11658. // this.openTools2(49);
  11659. this.$message.error("暂未开放");
  11660. return;
  11661. }
  11662. if (i == 62) {
  11663. // this.openTools(itemTaskIndex, 62, toolIndex);
  11664. this.$message.error("暂未开放");
  11665. return;
  11666. }
  11667. if (i == 15) {
  11668. // this.openTools(itemTaskIndex, 15, toolIndex);
  11669. this.$message.error("暂未开放");
  11670. return;
  11671. }
  11672. if (i == 40) {
  11673. // this.openTools(itemTaskIndex, 40, toolIndex);
  11674. this.$message.error("暂未开放");
  11675. return;
  11676. }
  11677. if (i == 41) {
  11678. // this.openTools(itemTaskIndex, 41, toolIndex);
  11679. this.$message.error("暂未开放");
  11680. return;
  11681. }
  11682. if (i == 42) {
  11683. // this.openTools(itemTaskIndex, 42, toolIndex);
  11684. this.$message.error("暂未开放");
  11685. return;
  11686. }
  11687. if (this.checktoolArray.length > 0) {
  11688. if (this.checktoolArray.indexOf(i) != -1) {
  11689. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  11690. } else {
  11691. this.checktoolArray = [];
  11692. this.checktoolArray.push(i);
  11693. }
  11694. } else {
  11695. this.checktoolArray.push(i);
  11696. }
  11697. this.$forceUpdate();
  11698. },
  11699. jump() {
  11700. window.parent.postMessage({ tools: "43" }, "*");
  11701. },
  11702. getUpdateMore(f, checkboxList, searchTN, index) {
  11703. this.dialogVisibleMember = f;
  11704. this.checkboxList = checkboxList;
  11705. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  11706. this.plIndex = index;
  11707. },
  11708. setPlname(a) {
  11709. if (this.plworkFile.length) {
  11710. this.plworkFile[this.plIndex].username = a;
  11711. } else {
  11712. this.worksSName = a;
  11713. }
  11714. this.dialogVisibleMember = false;
  11715. },
  11716. previewImg(url) {
  11717. this.$hevueImgPreview(url);
  11718. },
  11719. checkImg(list) {
  11720. if (!list.length) {
  11721. return;
  11722. }
  11723. this.$hevueImgPreview({
  11724. multiple: true, // 开启多图预览模式
  11725. imgList: list, // 需要预览的多图数组
  11726. });
  11727. },
  11728. change(val) {
  11729. console.log(val);
  11730. },
  11731. goTo(path) {
  11732. this.$router.push(path);
  11733. },
  11734. handlePictureCardPreview(url) {
  11735. this.dialogImageUrl = url;
  11736. this.pictureDialog = true;
  11737. },
  11738. clean(type) {
  11739. if (type == 1) {
  11740. this.studyJuri[0].cover.splice(0, 1);
  11741. } else if (type == 2) {
  11742. this.studyJuri[0].upVedio.splice(0, 1);
  11743. } else {
  11744. this.studyJuri[0].upFile.splice(0, 1);
  11745. }
  11746. },
  11747. clean2(index) {
  11748. this.plworkFile.splice(index, 1);
  11749. },
  11750. handleClose(done) {
  11751. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  11752. this.videoDetail.sources[0].src = "";
  11753. }
  11754. this.commentIndexJson = {};
  11755. done();
  11756. },
  11757. fullTools() {
  11758. this.full = !this.full;
  11759. },
  11760. imgChange(file, fileList, type) {
  11761. if (type == 1) {
  11762. var _tmp = this.studyJuri[0].cover;
  11763. } else if (type == 2) {
  11764. var _tmp = this.studyJuri[0].upVedio;
  11765. } else {
  11766. var _tmp = this.studyJuri[0].upFile;
  11767. }
  11768. this.noneBtnImg = _tmp.length >= 1;
  11769. },
  11770. setContent(bool) {
  11771. this.contentDialog = bool;
  11772. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  11773. document.querySelector(".workd_media").style.height = "650px";
  11774. } else if (document.querySelector(".workd_media")) {
  11775. document.querySelector(".workd_media").style.height = "auto";
  11776. }
  11777. },
  11778. setContent2(bool) {
  11779. this.mlDialog = bool;
  11780. if (
  11781. bool &&
  11782. this.contentDialog &&
  11783. document.querySelector(".workd_media")
  11784. ) {
  11785. document.querySelector(".workd_media").style.height = "650px";
  11786. } else if (document.querySelector(".workd_media")) {
  11787. document.querySelector(".workd_media").style.height = "auto";
  11788. }
  11789. },
  11790. openToolAll() {
  11791. this.toolDialogVisible = true;
  11792. },
  11793. addImg(e) {
  11794. var el = e.currentTarget;
  11795. // this.$message.success('触发上传')
  11796. el.getElementsByTagName("input")[0].click();
  11797. e.target.value = "";
  11798. },
  11799. addSelectAnswer() {
  11800. let params = [
  11801. {
  11802. uid: this.userid,
  11803. cid: this.id,
  11804. stage: this.courseType,
  11805. task: this.taskCount,
  11806. tool: this.toolindex,
  11807. content: this.selectAnswer.answer,
  11808. type: 7,
  11809. },
  11810. ];
  11811. this.ajax
  11812. .post(this.$store.state.api + "addCourseWorks", params)
  11813. .then((res) => {
  11814. this.$message({
  11815. message: "提交成功",
  11816. type: "success",
  11817. });
  11818. this.dialogVisibleSelect = false;
  11819. // this.selectAnswer = {};
  11820. this.selectSWorks();
  11821. this.selectStudent();
  11822. })
  11823. .catch((err) => {
  11824. this.$message.error("提交失败");
  11825. console.error(err);
  11826. });
  11827. },
  11828. addSelectAnswerTeacher() {
  11829. let params = [
  11830. {
  11831. uid: this.sStudent.userid,
  11832. cid: this.id,
  11833. stage: this.courseType,
  11834. task: this.taskCount,
  11835. tool: this.toolindex,
  11836. content: this.selectAnswer.answer,
  11837. type: 7,
  11838. },
  11839. ];
  11840. this.ajax
  11841. .post(this.$store.state.api + "addCourseWorks", params)
  11842. .then((res) => {
  11843. this.$message({
  11844. message: "提交成功",
  11845. type: "success",
  11846. });
  11847. this.dialogVisibleSelectTeacher = false;
  11848. // this.selectAnswer = {};
  11849. this.selectSWorks();
  11850. this.selectStudent();
  11851. })
  11852. .catch((err) => {
  11853. this.$message.error("提交失败");
  11854. console.error(err);
  11855. });
  11856. },
  11857. addSenWorks() {
  11858. for (var i = 0; i < this.sentenceList.length; i++) {
  11859. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  11860. if (
  11861. this.sentenceList[i].chooseSenList[j] == undefined ||
  11862. this.sentenceList[i].chooseSenList[j] == ""
  11863. ) {
  11864. this.$message.error("请将答案填写完整!");
  11865. return;
  11866. }
  11867. }
  11868. }
  11869. let params = [
  11870. {
  11871. uid: this.userid,
  11872. cid: this.id,
  11873. stage: this.courseType,
  11874. task: this.taskCount,
  11875. tool: this.toolindex,
  11876. content: JSON.stringify(this.sentenceList),
  11877. type: 9,
  11878. },
  11879. ];
  11880. this.ajax
  11881. .post(this.$store.state.api + "addCourseWorks", params)
  11882. .then((res) => {
  11883. this.$message({
  11884. message: "提交成功",
  11885. type: "success",
  11886. });
  11887. this.dialogVisibleSentence = false;
  11888. // this.selectAnswer = {};
  11889. this.selectSWorks();
  11890. this.selectStudent();
  11891. })
  11892. .catch((err) => {
  11893. this.$message.error("提交失败");
  11894. console.error(err);
  11895. });
  11896. },
  11897. addSenWorksTeacher() {
  11898. for (var i = 0; i < this.sentenceList.length; i++) {
  11899. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  11900. if (
  11901. this.sentenceList[i].chooseSenList[j] == undefined ||
  11902. this.sentenceList[i].chooseSenList[j] == ""
  11903. ) {
  11904. this.$message.error("请将答案填写完整!");
  11905. return;
  11906. }
  11907. }
  11908. }
  11909. let params = [
  11910. {
  11911. uid: this.sStudent.userid,
  11912. cid: this.id,
  11913. stage: this.courseType,
  11914. task: this.taskCount,
  11915. tool: this.toolindex,
  11916. content: JSON.stringify(this.sentenceList),
  11917. type: 9,
  11918. },
  11919. ];
  11920. this.ajax
  11921. .post(this.$store.state.api + "addCourseWorks", params)
  11922. .then((res) => {
  11923. this.$message({
  11924. message: "提交成功",
  11925. type: "success",
  11926. });
  11927. this.dialogVisibleSentenceTeacher = false;
  11928. // this.selectAnswer = {};
  11929. this.selectSWorks();
  11930. this.selectStudent();
  11931. })
  11932. .catch((err) => {
  11933. this.$message.error("提交失败");
  11934. console.error(err);
  11935. });
  11936. },
  11937. returnTableText() {
  11938. this.$confirm("确定还原此模板吗?", "提示", {
  11939. confirmButtonText: "确定",
  11940. cancelButtonText: "取消",
  11941. type: "warning",
  11942. })
  11943. .then(() => {
  11944. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  11945. })
  11946. .catch(() => {});
  11947. },
  11948. addTableWorks() {
  11949. let params = [
  11950. {
  11951. uid: this.userid,
  11952. cid: this.id,
  11953. stage: this.courseType,
  11954. task: this.taskCount,
  11955. tool: this.toolindex,
  11956. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  11957. type: 10,
  11958. },
  11959. ];
  11960. this.ajax
  11961. .post(this.$store.state.api + "addCourseWorks", params)
  11962. .then((res) => {
  11963. this.$message({
  11964. message: "提交成功",
  11965. type: "success",
  11966. });
  11967. this.dialogVisibleTable = false;
  11968. // this.selectAnswer = {};
  11969. this.selectSWorks();
  11970. this.selectStudent();
  11971. })
  11972. .catch((err) => {
  11973. this.$message.error("提交失败");
  11974. console.error(err);
  11975. });
  11976. },
  11977. tableRowClassName({ row, rowIndex }) {
  11978. if ((rowIndex + 1) % 2 === 0) {
  11979. return "even_row";
  11980. } else {
  11981. return "";
  11982. }
  11983. },
  11984. addTableWorksTeacher() {
  11985. let params = [
  11986. {
  11987. uid: this.sStudent.userid,
  11988. cid: this.id,
  11989. stage: this.courseType,
  11990. task: this.taskCount,
  11991. tool: this.toolindex,
  11992. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  11993. type: 10,
  11994. },
  11995. ];
  11996. this.ajax
  11997. .post(this.$store.state.api + "addCourseWorks", params)
  11998. .then((res) => {
  11999. this.$message({
  12000. message: "提交成功",
  12001. type: "success",
  12002. });
  12003. this.dialogVisibleTableTeacher = false;
  12004. // this.selectAnswer = {};
  12005. this.selectSWorks();
  12006. this.selectStudent();
  12007. })
  12008. .catch((err) => {
  12009. this.$message.error("提交失败");
  12010. console.error(err);
  12011. });
  12012. },
  12013. returnWordText() {
  12014. this.$confirm("确定还原此模板吗?", "提示", {
  12015. confirmButtonText: "确定",
  12016. cancelButtonText: "取消",
  12017. type: "warning",
  12018. })
  12019. .then(() => {
  12020. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12021. })
  12022. .catch(() => {});
  12023. },
  12024. addWordWorks() {
  12025. let params = [
  12026. {
  12027. uid: this.userid,
  12028. cid: this.id,
  12029. stage: this.courseType,
  12030. task: this.taskCount,
  12031. tool: this.toolindex,
  12032. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12033. type: 13,
  12034. atool: 52,
  12035. },
  12036. ];
  12037. this.ajax
  12038. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12039. .then((res) => {
  12040. this.$message({
  12041. message: "提交成功",
  12042. type: "success",
  12043. });
  12044. this.dialogVisibleWord = false;
  12045. // this.selectAnswer = {};
  12046. this.selectSWorks();
  12047. this.selectStudent();
  12048. })
  12049. .catch((err) => {
  12050. this.$message.error("提交失败");
  12051. console.error(err);
  12052. });
  12053. },
  12054. addWordWorksTeacher() {
  12055. let params = [
  12056. {
  12057. uid: this.sStudent.userid,
  12058. cid: this.id,
  12059. stage: this.courseType,
  12060. task: this.taskCount,
  12061. tool: this.toolindex,
  12062. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  12063. type: 13,
  12064. atool: 52,
  12065. },
  12066. ];
  12067. this.ajax
  12068. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12069. .then((res) => {
  12070. this.$message({
  12071. message: "提交成功",
  12072. type: "success",
  12073. });
  12074. this.dialogVisibleWordTeacher = false;
  12075. // this.selectAnswer = {};
  12076. this.selectSWorks();
  12077. this.selectStudent();
  12078. })
  12079. .catch((err) => {
  12080. this.$message.error("提交失败");
  12081. console.error(err);
  12082. });
  12083. },
  12084. addCourseWorks(i) {
  12085. var typesql;
  12086. if (this.fileType === 0) {
  12087. typesql = 1;
  12088. } else if (this.fileType === 1) {
  12089. typesql = 4;
  12090. } else if (this.fileType === 2) {
  12091. typesql = 5;
  12092. } else if (this.fileType === 3) {
  12093. typesql = 12;
  12094. }
  12095. if (!this.studyJuri[0].cover[0].url) {
  12096. this.$message.error("请上传文件");
  12097. return;
  12098. }
  12099. let params = [
  12100. {
  12101. uid: this.userid,
  12102. cid: this.id,
  12103. stage: this.courseType,
  12104. task: i,
  12105. tool: this.toolindex,
  12106. content: this.studyJuri[0].cover[0].url,
  12107. type: typesql,
  12108. },
  12109. ];
  12110. this.ajax
  12111. .post(this.$store.state.api + "addCourseWorksR", params)
  12112. .then((res) => {
  12113. this.$message({
  12114. message: "提交成功",
  12115. type: "success",
  12116. });
  12117. this.studyJuri[0].cover = [];
  12118. this.dialogVisible = false;
  12119. this.getCourseDetail(2);
  12120. })
  12121. .catch((err) => {
  12122. this.$message.error("提交失败");
  12123. console.error(err);
  12124. });
  12125. },
  12126. addCourseWorksPl(i) {
  12127. let _files = this.plworkFile;
  12128. var c = 1;
  12129. for (var k = 0; k < _files.length; k++) {
  12130. if (!_files[k].username) {
  12131. c = 2;
  12132. }
  12133. }
  12134. if (c == 2) {
  12135. this.$message.error("请填写学生姓名");
  12136. return;
  12137. }
  12138. let params = [
  12139. {
  12140. ateacher: this.userid,
  12141. cid: this.id,
  12142. stage: this.courseType,
  12143. task: i,
  12144. tool: this.toolindex,
  12145. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  12146. },
  12147. ];
  12148. this.ajax
  12149. .post(this.$store.state.api + "addCourseWorksPl", params)
  12150. .then((res) => {
  12151. this.$message({
  12152. message: "提交成功",
  12153. type: "success",
  12154. });
  12155. this.plworkFile = [];
  12156. this.dialogVisiblePl = false;
  12157. this.getCourseDetail(2);
  12158. })
  12159. .catch((err) => {
  12160. this.$message.error("提交失败");
  12161. console.error(err);
  12162. });
  12163. },
  12164. addCourseWorks2(i) {
  12165. var typesql;
  12166. if (this.fileType === 0) {
  12167. typesql = 0;
  12168. } else if (this.fileType === 1) {
  12169. typesql = 1;
  12170. } else if (this.fileType === 2) {
  12171. typesql = 3;
  12172. } else if (this.fileType === 3) {
  12173. typesql = 12;
  12174. }
  12175. if (!this.studyJuri[0].cover[0].url) {
  12176. this.$message.error("请上传文件");
  12177. return;
  12178. }
  12179. let params = [
  12180. {
  12181. uid: this.userid,
  12182. cid: this.id,
  12183. stage: this.courseType,
  12184. task: i,
  12185. tool: this.toolindex,
  12186. content: JSON.stringify({
  12187. type: typesql,
  12188. groupIndex: this.groupIndex,
  12189. url: this.studyJuri[0].cover[0].url,
  12190. }).replaceAll(/%/g, "%25"),
  12191. type: 11,
  12192. atool: 49,
  12193. text: "",
  12194. },
  12195. ];
  12196. this.ajax
  12197. .post(this.$store.state.api + "addCourseWorks5", params)
  12198. .then((res) => {
  12199. this.$message({
  12200. message: "提交成功",
  12201. type: "success",
  12202. });
  12203. this.studyJuri[0].cover = [];
  12204. this.dialogVisibleGroupWork = false;
  12205. this.getCourseDetail(2);
  12206. })
  12207. .catch((err) => {
  12208. this.$message.error("提交失败");
  12209. console.error(err);
  12210. });
  12211. },
  12212. addCourseWorksGong(i, data, tool) {
  12213. let params = [
  12214. {
  12215. uid: this.userid,
  12216. cid: this.id,
  12217. stage: this.courseType,
  12218. task: this.taskCount,
  12219. tool: i,
  12220. content: data,
  12221. type: 12,
  12222. atool: tool,
  12223. text: "",
  12224. },
  12225. ];
  12226. this.ajax
  12227. .post(this.$store.state.api + "addCourseWorks5", params)
  12228. .then((res) => {
  12229. this.$message({
  12230. message: "提交成功",
  12231. type: "success",
  12232. });
  12233. this.studyJuri[0].cover = [];
  12234. this.selectSWorks();
  12235. this.selectStudent();
  12236. })
  12237. .catch((err) => {
  12238. this.$message.error("提交失败");
  12239. console.error(err);
  12240. });
  12241. },
  12242. addCourseWorksGongTeacher(i, data, tool) {
  12243. let params = [
  12244. {
  12245. uid: this.sStudent.userid,
  12246. cid: this.id,
  12247. stage: this.courseType,
  12248. task: this.taskCount,
  12249. tool: i,
  12250. content: data,
  12251. type: 12,
  12252. atool: tool,
  12253. text: "",
  12254. },
  12255. ];
  12256. this.ajax
  12257. .post(this.$store.state.api + "addCourseWorks5", params)
  12258. .then((res) => {
  12259. this.$message({
  12260. message: "提交成功",
  12261. type: "success",
  12262. });
  12263. this.studyJuri[0].cover = [];
  12264. this.dialogVisibleWorks = false;
  12265. this.selectSWorks();
  12266. this.selectStudent();
  12267. })
  12268. .catch((err) => {
  12269. this.$message.error("提交失败");
  12270. console.error(err);
  12271. });
  12272. },
  12273. addCourseWorksGongPl(i, data, tool, type) {
  12274. let params = [
  12275. {
  12276. uid: this.sStudent.userid,
  12277. cid: this.id,
  12278. stage: this.courseType,
  12279. task: this.taskCount,
  12280. tool: i,
  12281. content: data,
  12282. type: type,
  12283. atool: tool,
  12284. text: "",
  12285. },
  12286. ];
  12287. this.ajax
  12288. .post(this.$store.state.api + "addCourseWorks5", params)
  12289. .then((res) => {
  12290. this.$message({
  12291. message: "提交成功",
  12292. type: "success",
  12293. });
  12294. this.studyJuri[0].cover = [];
  12295. this.dialogVisibleWorks = false;
  12296. this.selectSWorks();
  12297. this.selectStudent();
  12298. })
  12299. .catch((err) => {
  12300. this.$message.error("提交失败");
  12301. console.error(err);
  12302. });
  12303. },
  12304. addCourseWorksTeacher(i) {
  12305. var typesql;
  12306. if (this.sTool == 32) {
  12307. this.addCourseWorksGongTeacher(
  12308. this.toolindex,
  12309. this.studyJuri[0].cover[0].url,
  12310. this.sTool
  12311. );
  12312. return;
  12313. }
  12314. if (this.fileType === 0) {
  12315. typesql = 1;
  12316. } else if (this.fileType === 1) {
  12317. typesql = 4;
  12318. } else if (this.fileType === 2) {
  12319. typesql = 5;
  12320. } else if (this.fileType === 3) {
  12321. typesql = 12;
  12322. }
  12323. if (this.sTool == 50) {
  12324. this.addCourseWorksGongPl(
  12325. this.toolindex,
  12326. this.studyJuri[0].cover[0].url,
  12327. this.sTool,
  12328. typesql
  12329. );
  12330. return;
  12331. }
  12332. if (!this.studyJuri[0].cover[0].url) {
  12333. this.$message.error("请上传文件");
  12334. return;
  12335. }
  12336. let params = [
  12337. {
  12338. uid: this.sStudent.userid,
  12339. cid: this.id,
  12340. stage: this.courseType,
  12341. task: i,
  12342. tool: this.toolindex,
  12343. content: this.studyJuri[0].cover[0].url,
  12344. type: typesql,
  12345. ateacher: this.userid,
  12346. },
  12347. ];
  12348. this.ajax
  12349. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12350. .then((res) => {
  12351. this.$message({
  12352. message: "提交成功",
  12353. type: "success",
  12354. });
  12355. this.studyJuri[0].cover = [];
  12356. this.dialogVisibleWorks = false;
  12357. this.getCourseDetail(2);
  12358. })
  12359. .catch((err) => {
  12360. this.$message.error("提交失败");
  12361. console.error(err);
  12362. });
  12363. },
  12364. selectUploadStudent(type) {
  12365. const loading = this.$loading.service({
  12366. background: "rgba(255, 255, 255, 0.7)",
  12367. target: document.body,
  12368. });
  12369. let params = {
  12370. cid: this.uploadCid,
  12371. oid: this.oid,
  12372. cn: "",
  12373. };
  12374. this.ajax
  12375. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12376. .then((res) => {
  12377. loading.close();
  12378. var studentK = [];
  12379. if (this.isWorksS[this.toolindex].length > 0) {
  12380. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12381. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12382. }
  12383. studentK = studentK.join(",");
  12384. }
  12385. this.uploadStudentJuri = res.data[0].filter((el) => {
  12386. return studentK.indexOf(el.userid) == -1;
  12387. });
  12388. if (this.worksSName && this.worksSid) {
  12389. this.uploadStudentJuri.push({
  12390. userid: this.worksSid,
  12391. name: this.worksSName,
  12392. });
  12393. }
  12394. if (type == 1) {
  12395. this.plworkFile = [];
  12396. this.dialogVisibleSname = true;
  12397. } else if (type == 2) {
  12398. this.dialogVisiblePl = true;
  12399. }
  12400. })
  12401. .catch((err) => {
  12402. loading.close();
  12403. console.error(err);
  12404. });
  12405. },
  12406. selectPickStudent() {
  12407. const loading = this.$loading.service({
  12408. background: "rgba(255, 255, 255, 0.7)",
  12409. target: document.body,
  12410. });
  12411. let params = {
  12412. cid: this.uploadCid,
  12413. oid: this.oid,
  12414. cn: "",
  12415. };
  12416. this.ajax
  12417. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12418. .then((res) => {
  12419. loading.close();
  12420. this.uploadStudentJuri = res.data[0];
  12421. this.dialogVisiblePickPeople = true;
  12422. })
  12423. .catch((err) => {
  12424. loading.close();
  12425. console.error(err);
  12426. });
  12427. },
  12428. arrayToArray(arrayo, arrayt) {
  12429. let array1 = arrayo;
  12430. let array2 = arrayt;
  12431. let commonElements = [];
  12432. for (let i = 0; i < array1.length; i++) {
  12433. for (let j = 0; j < array2.length; j++) {
  12434. if (array1[i] === array2[j]) {
  12435. commonElements.push(array1[i]);
  12436. }
  12437. }
  12438. }
  12439. return commonElements;
  12440. },
  12441. selectWorksStudent() {
  12442. let params = {
  12443. oid: this.oid,
  12444. cid: this.courseDetail.juri,
  12445. };
  12446. this.ajax
  12447. .get(this.$store.state.api + "selectWorksStudent", params)
  12448. .then((res) => {
  12449. var a = res.data[0];
  12450. for (var i = 0; i < this.isWorksS.length; i++) {
  12451. this.noWorksS[i] = [];
  12452. var studentK = [];
  12453. if (this.isWorksS[i].length > 0) {
  12454. for (var z = 0; z < this.isWorksS[i].length; z++) {
  12455. studentK.push(this.isWorksS[i][z].uid);
  12456. }
  12457. studentK = studentK.join(",");
  12458. for (var j = 0; j < a.length; j++) {
  12459. if (studentK.indexOf(a[j].userid) == -1) {
  12460. if (this.tcid) {
  12461. // a[j].classid.indexOf(this.tcid) != -1
  12462. if (
  12463. this.arrayToArray(
  12464. a[j].classid.split(","),
  12465. this.tcid.split(",")
  12466. ).length
  12467. ) {
  12468. this.noWorksS[i].push({
  12469. student: a[j].name,
  12470. userid: a[j].userid,
  12471. });
  12472. }
  12473. } else {
  12474. this.noWorksS[i].push({
  12475. student: a[j].name,
  12476. userid: a[j].userid,
  12477. });
  12478. }
  12479. }
  12480. }
  12481. } else {
  12482. for (var k = 0; k < a.length; k++) {
  12483. if (this.tcid) {
  12484. if (
  12485. this.arrayToArray(
  12486. a[k].classid.split(","),
  12487. this.tcid.split(",")
  12488. ).length
  12489. ) {
  12490. this.noWorksS[i].push({
  12491. student: a[k].name,
  12492. userid: a[k].userid,
  12493. });
  12494. }
  12495. } else {
  12496. this.noWorksS[i].push({
  12497. student: a[k].name,
  12498. userid: a[k].userid,
  12499. });
  12500. }
  12501. }
  12502. }
  12503. }
  12504. this.$forceUpdate();
  12505. if (
  12506. Object.keys(this.commentDetail).length &&
  12507. Object.keys(this.commentIndexJson).length &&
  12508. !this.dialogVisibleScore
  12509. ) {
  12510. let a = 1;
  12511. let c = this.commentIndexJson;
  12512. if (
  12513. this.commentIndexJson.gindex ||
  12514. this.commentIndexJson.gindex === 0
  12515. ) {
  12516. for (
  12517. var i = 0;
  12518. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12519. i++
  12520. ) {
  12521. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  12522. groupA: for (var k = 0; k < _el.length; k++) {
  12523. let el = _el[k];
  12524. if (el.wid == this.commentDetail.wid) {
  12525. a = 2;
  12526. this.commentOther(
  12527. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  12528. this.commentIndexJson.toolIndex,
  12529. k,
  12530. this.commentIndexJson.gindex
  12531. );
  12532. break groupA;
  12533. }
  12534. }
  12535. }
  12536. if (a === 1) {
  12537. this.commentDetail = [];
  12538. this.commentIndexJson = {};
  12539. this.commentDialogVisible = false;
  12540. this.$message("此作业已被删除");
  12541. }
  12542. } else {
  12543. if (this.isGroup && this.commentIndexJson.gid) {
  12544. groupA: for (
  12545. var i = 0;
  12546. i < this.courseGroup.group.length;
  12547. i++
  12548. ) {
  12549. let _group = this.courseGroup.group[i];
  12550. if (_group.id == this.commentIndexJson.gid) {
  12551. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  12552. for (var k = 0; k < _el2.length; k++) {
  12553. let el2 = _el2[k];
  12554. if (el2.wid == this.commentDetail.wid) {
  12555. a = 2;
  12556. this.commentOther(
  12557. _el2[k],
  12558. this.commentIndexJson.toolIndex,
  12559. k,
  12560. null,
  12561. this.commentIndexJson.gid
  12562. );
  12563. break groupA;
  12564. }
  12565. }
  12566. }
  12567. }
  12568. }
  12569. if (a == 1) {
  12570. for (
  12571. var i = 0;
  12572. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  12573. i++
  12574. ) {
  12575. let el =
  12576. this.worksStudent[this.commentIndexJson.toolIndex][i];
  12577. if (el.wid == this.commentDetail.wid) {
  12578. a = 2;
  12579. this.commentOther(
  12580. this.worksStudent[this.commentIndexJson.toolIndex][i],
  12581. this.commentIndexJson.toolIndex,
  12582. i
  12583. );
  12584. break;
  12585. }
  12586. }
  12587. }
  12588. if (a === 1) {
  12589. this.commentDetail = [];
  12590. this.commentIndexJson = {};
  12591. this.commentDialogVisible = false;
  12592. this.$message("此作业已被删除");
  12593. }
  12594. }
  12595. }
  12596. })
  12597. .catch((err) => {
  12598. console.error(err);
  12599. });
  12600. },
  12601. selectStudent() {
  12602. //学生查看自己作业
  12603. let params = {
  12604. uid: this.userid,
  12605. cid: this.id,
  12606. s: this.courseType,
  12607. t: this.taskCount,
  12608. };
  12609. this.ajax
  12610. .get(this.$store.state.api + "selectStudentWorks", params)
  12611. .then((res) => {
  12612. var a =
  12613. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12614. this.taskCount
  12615. ].toolChoose;
  12616. var b = res.data[0];
  12617. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  12618. var y = [
  12619. "AVI",
  12620. "NAVI",
  12621. "MPEG",
  12622. "ASF",
  12623. "MOV",
  12624. "WMV",
  12625. "3GP",
  12626. "RM",
  12627. "RMVB",
  12628. "FLV",
  12629. "F4V",
  12630. "H.264",
  12631. "H.265",
  12632. "REAL VIDEO",
  12633. "MKV",
  12634. "WebM",
  12635. "HDDVD",
  12636. "MP4",
  12637. "MPG",
  12638. "M4V",
  12639. "MGV",
  12640. "OGV",
  12641. "QTM",
  12642. "STR",
  12643. "AMC",
  12644. "DVX",
  12645. "EVO",
  12646. "DAT",
  12647. "OGG",
  12648. "OGM",
  12649. ];
  12650. for (var i = 0; i < a.length; i++) {
  12651. this.workStudent[i] = [];
  12652. for (var j = 0; j < b.length; j++) {
  12653. if (i == b[j].tool) {
  12654. if (
  12655. (b[j].type == 1 ||
  12656. b[j].type == 4 ||
  12657. b[j].type == 5 ||
  12658. b[j].type == 6 ||
  12659. b[j].type == 12 ||
  12660. b[j].type == 7) &&
  12661. a[i].tool[0] != 15 &&
  12662. a[i].tool[0] != 4 &&
  12663. a[i].tool[0] != 45 &&
  12664. a[i].tool[0] != 50 &&
  12665. a[i].tool[0] != 32 &&
  12666. a[i].tool[0] != 57 &&
  12667. a[i].tool[0] != 52
  12668. ) {
  12669. if (
  12670. c.indexOf(
  12671. b[j].content
  12672. .split(".")
  12673. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  12674. ) != -1 &&
  12675. a[i].tool[0] == 16 &&
  12676. b[j].atool != 50
  12677. ) {
  12678. this.workStudent[i].push({
  12679. works: b[j].content,
  12680. sName: b[j].name,
  12681. score: b[j].score,
  12682. img: b[j].img,
  12683. type: 1,
  12684. time: b[j].time,
  12685. userid: b[j].userid,
  12686. wid: b[j].id,
  12687. });
  12688. } else if (
  12689. y.indexOf(
  12690. b[j].content
  12691. .split(".")
  12692. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  12693. ) != -1 &&
  12694. a[i].tool[0] == 16 &&
  12695. b[j].atool != 50
  12696. ) {
  12697. this.workStudent[i].push({
  12698. userid: b[j].userid,
  12699. wid: b[j].id,
  12700. works: b[j].content,
  12701. sName: b[j].name,
  12702. score: b[j].score,
  12703. img: b[j].img,
  12704. type: 3,
  12705. time: b[j].time,
  12706. });
  12707. } else if (b[j].type == 6 && b[j].atool != 50) {
  12708. this.workStudent[i].push({
  12709. userid: b[j].userid,
  12710. wid: b[j].id,
  12711. works: b[j].content,
  12712. sName: b[j].name,
  12713. score: b[j].score,
  12714. img: b[j].img,
  12715. type: 4,
  12716. time: b[j].time,
  12717. });
  12718. } else if (b[j].type == 7 && b[j].atool != 50) {
  12719. this.workStudent[i].push({
  12720. userid: b[j].userid,
  12721. wid: b[j].id,
  12722. works: b[j].content,
  12723. sName: b[j].name,
  12724. score: b[j].score,
  12725. img: b[j].img,
  12726. type: 5,
  12727. time: b[j].time,
  12728. });
  12729. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  12730. this.workStudent[i].push({
  12731. works: b[j].content,
  12732. sName: b[j].name,
  12733. score: b[j].score,
  12734. img: b[j].img,
  12735. type: 12,
  12736. time: b[j].time,
  12737. userid: b[j].userid,
  12738. wid: b[j].id,
  12739. });
  12740. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  12741. this.workStudent[i].push({
  12742. works: b[j].content,
  12743. sName: b[j].name,
  12744. score: b[j].score,
  12745. img: b[j].img,
  12746. type: 0,
  12747. time: b[j].time,
  12748. userid: b[j].userid,
  12749. wid: b[j].id,
  12750. });
  12751. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  12752. this.workStudent[i].push({
  12753. works: b[j].content,
  12754. sName: b[j].name,
  12755. score: b[j].score,
  12756. img: b[j].img,
  12757. type: 0,
  12758. time: b[j].time,
  12759. userid: b[j].userid,
  12760. wid: b[j].id,
  12761. });
  12762. }
  12763. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  12764. this.workStudent[i].push({
  12765. works: b[j].content,
  12766. sName: b[j].name,
  12767. score: b[j].score,
  12768. img: b[j].img,
  12769. type: 2,
  12770. time: b[j].time,
  12771. userid: b[j].userid,
  12772. wid: b[j].id,
  12773. });
  12774. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  12775. //问卷
  12776. this.workStudent[i].push({
  12777. works: b[j].content,
  12778. sName: b[j].name,
  12779. score: b[j].score,
  12780. img: b[j].img,
  12781. type: 2,
  12782. time: b[j].time,
  12783. userid: b[j].userid,
  12784. wid: b[j].id,
  12785. });
  12786. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  12787. //选择题
  12788. this.workStudent[i].push({
  12789. works: b[j].content,
  12790. sName: b[j].name,
  12791. score: b[j].score,
  12792. img: b[j].img,
  12793. type: 8,
  12794. time: b[j].time,
  12795. userid: b[j].userid,
  12796. wid: b[j].id,
  12797. });
  12798. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  12799. //选择题
  12800. this.workStudent[i].push({
  12801. works: b[j].content,
  12802. sName: b[j].name,
  12803. score: b[j].score,
  12804. img: b[j].img,
  12805. type: 9,
  12806. time: b[j].time,
  12807. userid: b[j].userid,
  12808. wid: b[j].id,
  12809. });
  12810. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  12811. //选择题
  12812. this.workStudent[i].push({
  12813. works: b[j].content,
  12814. sName: b[j].name,
  12815. score: b[j].score,
  12816. img: b[j].img,
  12817. type: 10,
  12818. time: b[j].time,
  12819. userid: b[j].userid,
  12820. wid: b[j].id,
  12821. });
  12822. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  12823. //选择题
  12824. this.workStudent[i].push({
  12825. works: b[j].content,
  12826. sName: b[j].name,
  12827. score: b[j].score,
  12828. img: b[j].img,
  12829. type: 13,
  12830. time: b[j].time,
  12831. userid: b[j].userid,
  12832. wid: b[j].id,
  12833. });
  12834. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  12835. //选择题
  12836. this.workStudent[i].push({
  12837. works: b[j].content,
  12838. sName: b[j].name,
  12839. score: b[j].score,
  12840. img: b[j].img,
  12841. type: 12,
  12842. time: b[j].time,
  12843. userid: b[j].userid,
  12844. wid: b[j].id,
  12845. });
  12846. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  12847. //选择题
  12848. this.workStudent[i].push({
  12849. works: b[j].content,
  12850. sName: b[j].name,
  12851. score: b[j].score,
  12852. img: b[j].img,
  12853. type: 12,
  12854. time: b[j].time,
  12855. userid: b[j].userid,
  12856. wid: b[j].id,
  12857. });
  12858. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  12859. //选择题
  12860. this.workStudent[i].push({
  12861. works: b[j].content,
  12862. sName: b[j].name,
  12863. score: b[j].score,
  12864. img: b[j].img,
  12865. type: 15,
  12866. time: b[j].time,
  12867. userid: b[j].userid,
  12868. wid: b[j].id,
  12869. });
  12870. }
  12871. }
  12872. }
  12873. }
  12874. })
  12875. .catch((err) => {
  12876. console.error(err);
  12877. });
  12878. },
  12879. openVideo(w) {
  12880. this.videoDetail = {};
  12881. this.playerOptions1.sources[0].src = w.works;
  12882. this.videoDetail = this.playerOptions1;
  12883. this.videoVisible = true;
  12884. },
  12885. isLikes(wid, uid, t, c, isLikes) {
  12886. if (isLikes == false) {
  12887. let params = [
  12888. {
  12889. wid: wid,
  12890. lid: uid,
  12891. t: t,
  12892. c: c,
  12893. },
  12894. ];
  12895. this.ajax
  12896. .post(this.$store.state.api + "insertComment", params)
  12897. .then((res) => {
  12898. this.$message({
  12899. message: "点赞成功",
  12900. type: "success",
  12901. });
  12902. this.selectSWorks();
  12903. this.selectStudent();
  12904. })
  12905. .catch((err) => {
  12906. this.$message.error("点赞失败");
  12907. console.error(err);
  12908. });
  12909. } else {
  12910. let params = {
  12911. wid: wid,
  12912. lid: uid,
  12913. type: t,
  12914. };
  12915. this.ajax
  12916. .get(this.$store.state.api + "deleteComment", params)
  12917. .then((res) => {
  12918. this.$message({
  12919. message: "取消点赞成功",
  12920. type: "success",
  12921. });
  12922. this.selectSWorks();
  12923. this.selectStudent();
  12924. })
  12925. .catch((err) => {
  12926. console.error(err);
  12927. });
  12928. }
  12929. },
  12930. deleteComment(wid) {
  12931. this.$confirm("确定删除此评论吗?", "提示", {
  12932. confirmButtonText: "确定",
  12933. cancelButtonText: "取消",
  12934. type: "warning",
  12935. })
  12936. .then(() => {
  12937. let params = {
  12938. id: wid,
  12939. };
  12940. this.ajax
  12941. .get(this.$store.state.api + "deleteComment2", params)
  12942. .then((res) => {
  12943. this.$message({
  12944. message: "删除评论成功",
  12945. type: "success",
  12946. });
  12947. this.selectSWorks();
  12948. this.selectStudent();
  12949. })
  12950. .catch((err) => {
  12951. console.error(err);
  12952. });
  12953. })
  12954. .catch(() => {});
  12955. },
  12956. commentOther(w, toolIndex, wIndex, gindex, gid) {
  12957. this.commentIndexJson = {
  12958. toolIndex: toolIndex,
  12959. wIndex: wIndex,
  12960. gindex: gindex,
  12961. gid: gid,
  12962. };
  12963. this.commentDetail = [];
  12964. this.commentDialogVisible = true;
  12965. this.commentDetail = w;
  12966. if (w.works && w.type == 1) {
  12967. this.pptImgUrl = "";
  12968. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  12969. if (
  12970. a.indexOf(
  12971. w.works
  12972. .split(".")
  12973. [w.works.split(".").length - 1].toLocaleUpperCase()
  12974. ) != -1
  12975. ) {
  12976. this.pptImgUrl =
  12977. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  12978. this.showPDF = false;
  12979. } else if (
  12980. w.works
  12981. .split(".")
  12982. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  12983. ) {
  12984. this.pptImgUrl = w.works;
  12985. this.showPDF = true;
  12986. }
  12987. } else if (w.works && w.type == 3) {
  12988. this.videoDetail = {};
  12989. this.playerOptions1.sources[0].src = w.works;
  12990. this.videoDetail = this.playerOptions1;
  12991. // this.videoVisible = true;
  12992. } else if (w.works && w.type == 4) {
  12993. this.eScore = JSON.parse(w.works);
  12994. this.rateJson =
  12995. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12996. this.taskCount
  12997. ].toolChoose[toolIndex].rateJson;
  12998. } else if (w.works && w.type == 10) {
  12999. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13000. } else if (w.works && w.type == 13) {
  13001. this.wordJson =
  13002. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13003. this.taskCount
  13004. ].toolChoose[toolIndex].wordJson;
  13005. }
  13006. },
  13007. openScore(w) {
  13008. this.wScore = 0;
  13009. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13010. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13011. this.commentDetail = [];
  13012. this.dialogVisibleScore = true;
  13013. this.commentDetail = w;
  13014. if (w.works && w.type == 1) {
  13015. this.pptImgUrl = "";
  13016. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13017. if (
  13018. a.indexOf(
  13019. w.works
  13020. .split(".")
  13021. [w.works.split(".").length - 1].toLocaleUpperCase()
  13022. ) != -1
  13023. ) {
  13024. this.pptImgUrl =
  13025. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  13026. this.showPDF = false;
  13027. } else if (
  13028. w.works
  13029. .split(".")
  13030. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13031. ) {
  13032. this.pptImgUrl = w.works;
  13033. this.showPDF = true;
  13034. }
  13035. } else if (w.works && w.type == 3) {
  13036. this.videoDetail = {};
  13037. this.playerOptions1.sources[0].src = w.works;
  13038. this.videoDetail = this.playerOptions1;
  13039. }
  13040. },
  13041. addComment(wid, uid, t) {
  13042. if (this.commentText == "") {
  13043. this.$message.error("请输入评论");
  13044. return;
  13045. }
  13046. let params2 = [
  13047. {
  13048. wid: wid,
  13049. lid: uid,
  13050. t: t,
  13051. },
  13052. ];
  13053. this.ajax
  13054. .post(this.$store.state.api + "getComment", params2)
  13055. .then((res) => {
  13056. if (res.data[0].length > 0) {
  13057. this.$message.error("一个作业只能评论一条");
  13058. } else {
  13059. let params = [
  13060. {
  13061. wid: wid,
  13062. lid: uid,
  13063. t: t,
  13064. c: this.commentText,
  13065. },
  13066. ];
  13067. this.ajax
  13068. .post(this.$store.state.api + "insertComment", params)
  13069. .then((res) => {
  13070. this.$message({
  13071. message: "评论成功",
  13072. type: "success",
  13073. });
  13074. this.commentText = "";
  13075. this.selectSWorks();
  13076. this.selectStudent();
  13077. })
  13078. .catch((err) => {
  13079. this.$message.error("评论失败");
  13080. console.error(err);
  13081. });
  13082. }
  13083. })
  13084. .catch((err) => {
  13085. // this.$message.error("评论失败");
  13086. console.error(err);
  13087. });
  13088. },
  13089. scoreWork(wid) {
  13090. if (this.wScore == 0) {
  13091. this.$message.error("请评分");
  13092. return;
  13093. }
  13094. let params = [
  13095. {
  13096. wid: wid,
  13097. score: JSON.stringify({
  13098. wScore: this.wScore,
  13099. detail: this.scoreDetail,
  13100. }),
  13101. },
  13102. ];
  13103. this.ajax
  13104. .post(this.$store.state.api + "scoreWork", params)
  13105. .then((res) => {
  13106. this.$message({
  13107. message: "评分成功",
  13108. type: "success",
  13109. });
  13110. this.wScore = 0;
  13111. this.scoreDetail = "";
  13112. this.dialogVisibleScore = false;
  13113. this.selectSWorks();
  13114. this.selectStudent();
  13115. })
  13116. .catch((err) => {
  13117. this.$message.error("评分失败");
  13118. console.error(err);
  13119. });
  13120. },
  13121. openXz(w, i) {
  13122. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13123. .taskJson[this.taskCount].toolChoose[i].selectJson
  13124. ? JSON.parse(
  13125. JSON.stringify(
  13126. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13127. this.taskCount
  13128. ].toolChoose[i].selectJson
  13129. )
  13130. )
  13131. : { url: "", select: [], answer: [] };
  13132. var a = w.works.split(",");
  13133. for (var k = 0; k < a.length; k++) {
  13134. a[k] = parseInt(a[k]);
  13135. }
  13136. this.selectAnswer = { answer: a, stu: w.sName };
  13137. this.isSelect = true;
  13138. this.dialogVisibleSelect = true;
  13139. },
  13140. openSen(w, i) {
  13141. this.sentenceList1 = JSON.parse(w.works);
  13142. this.sentenceList1.stuName = w.sName;
  13143. this.dialogVisibleSentence1 = true;
  13144. },
  13145. openPj(w, toolindex) {
  13146. this.isStar = true;
  13147. this.eScore = JSON.parse(w);
  13148. this.rateJson =
  13149. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13150. this.taskCount
  13151. ].toolChoose[toolindex].rateJson;
  13152. this.studentEvalDialogVisible = true;
  13153. },
  13154. deleteWorks(id) {
  13155. this.$confirm("确定删除此作业吗?", "提示", {
  13156. confirmButtonText: "确定",
  13157. cancelButtonText: "取消",
  13158. type: "warning",
  13159. })
  13160. .then(() => {
  13161. let params = [
  13162. {
  13163. id: id,
  13164. },
  13165. ];
  13166. this.ajax
  13167. .post(this.$store.state.api + "deleteCourseWork", params)
  13168. .then((res) => {
  13169. this.$message({
  13170. message: "删除成功",
  13171. type: "success",
  13172. });
  13173. this.selectStudent();
  13174. this.selectSWorks();
  13175. this.selectSLook();
  13176. })
  13177. .catch((err) => {
  13178. this.$message.error("网络异常");
  13179. console.error(err);
  13180. });
  13181. })
  13182. .catch(() => {});
  13183. },
  13184. selectSWorks(gindex) {
  13185. //教师查看全部作业
  13186. let params = {
  13187. cid: this.id,
  13188. s: this.courseType,
  13189. t: this.taskCount,
  13190. };
  13191. this.ajax
  13192. .get(this.$store.state.api + "selectSWorks", params)
  13193. .then((res) => {
  13194. var a =
  13195. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13196. this.taskCount
  13197. ].toolChoose;
  13198. var b = res.data[0];
  13199. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13200. var y = [
  13201. "AVI",
  13202. "NAVI",
  13203. "MPEG",
  13204. "ASF",
  13205. "MOV",
  13206. "WMV",
  13207. "3GP",
  13208. "RM",
  13209. "RMVB",
  13210. "FLV",
  13211. "F4V",
  13212. "H.264",
  13213. "H.265",
  13214. "REAL VIDEO",
  13215. "MKV",
  13216. "WebM",
  13217. "HDDVD",
  13218. "MP4",
  13219. "MPG",
  13220. "M4V",
  13221. "MGV",
  13222. "OGV",
  13223. "QTM",
  13224. "STR",
  13225. "AMC",
  13226. "DVX",
  13227. "EVO",
  13228. "DAT",
  13229. "OGG",
  13230. "OGM",
  13231. ];
  13232. var d = res.data[1];
  13233. var e = res.data[2];
  13234. var f = res.data[3];
  13235. let _worksStudent = [];
  13236. var _worksStudent2 = [];
  13237. for (var i = 0; i < a.length; i++) {
  13238. _worksStudent[i] = [];
  13239. _worksStudent2[i] = [];
  13240. if (
  13241. !this.isCloseList[i] ||
  13242. this.isCloseList[i].isClose == undefined
  13243. ) {
  13244. this.isCloseList[i] = { isClose: 0 };
  13245. }
  13246. this.groupStudent[i] = [];
  13247. this.groupStudentUid[i] = [];
  13248. if (this.isGroup) {
  13249. for (
  13250. var groupI = 0;
  13251. groupI < this.courseGroup.group.length;
  13252. groupI++
  13253. ) {
  13254. this.courseGroup.group[groupI].works[i] = [];
  13255. }
  13256. }
  13257. this.isWorksS[i] = [];
  13258. this.checkJson[i] = [];
  13259. if (a[i].tool[0] == 49) {
  13260. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13261. this.groupStudent[i][gA] = [];
  13262. this.groupStudentUid[i][gA] = [];
  13263. _worksStudent[i][gA] = [];
  13264. _worksStudent2[i][gA] = [];
  13265. this.isCloseList[i][gA] = [];
  13266. for (var g = 0; g < f.length; g++) {
  13267. if (
  13268. f[g].ttype == 2 &&
  13269. this.tcid &&
  13270. this.arrayToArray(
  13271. f[g].classid.split(","),
  13272. this.tcid.split(",")
  13273. ).length == 0
  13274. ) {
  13275. continue;
  13276. }
  13277. if (gA == f[g].group && f[g].tool == i) {
  13278. this.groupStudent[i][gA].push(f[g]);
  13279. this.groupStudentUid[i][gA].push(f[g].userid);
  13280. }
  13281. }
  13282. }
  13283. this.$forceUpdate();
  13284. }
  13285. for (var j = 0; j < b.length; j++) {
  13286. if (
  13287. b[j].ttype == 2 &&
  13288. this.tcid &&
  13289. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13290. .length == 0
  13291. ) {
  13292. continue;
  13293. }
  13294. var likesCount = 0;
  13295. var commentCount = 0;
  13296. var isLikes = false;
  13297. var commentJson = [];
  13298. var data = b[j];
  13299. if (i == b[j].tool) {
  13300. if (data.type == 2 && a[i].tool[0] == 4) {
  13301. // if(JSON.parse(data.content)[0].anwer){
  13302. var checkL =
  13303. JSON.parse(data.content)[0].anwer instanceof Array
  13304. ? JSON.parse(data.content)[0].anwer
  13305. : JSON.parse(data.content)[0].anwer.split(",");
  13306. for (var z = 0; z < checkL.length; z++) {
  13307. if (!this.checkJson[i][z]) {
  13308. this.checkJson[i].push({
  13309. checkCount: [],
  13310. checkPerson: [],
  13311. rightPerson: [],
  13312. });
  13313. }
  13314. if (!this.checkJson[i][z].checkCount.length) {
  13315. this.checkJson[i][z].checkCount = [];
  13316. let _askItemCount = JSON.parse(data.content)[0].askJson
  13317. .askJson[z].askItem;
  13318. for (var aic = 0; aic < _askItemCount; aic++) {
  13319. this.checkJson[i][z].checkCount.push(0);
  13320. }
  13321. }
  13322. if (checkL[z] instanceof Array) {
  13323. if (
  13324. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13325. checkL[z].sort().join(",")
  13326. ) {
  13327. this.checkJson[i][z].rightPerson.push(data.name);
  13328. }
  13329. for (var q = 0; q < checkL[z].length; q++) {
  13330. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13331. ? this.checkJson[i][z].checkPerson[
  13332. parseInt(checkL[z][q])
  13333. ].push(data.name)
  13334. : (this.checkJson[i][z].checkPerson[
  13335. parseInt(checkL[z][q])
  13336. ] = [data.name]);
  13337. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13338. ? this.checkJson[i][z].checkCount[
  13339. parseInt(checkL[z][q])
  13340. ]++
  13341. : (this.checkJson[i][z].checkCount[
  13342. parseInt(checkL[z][q])
  13343. ] = 1);
  13344. }
  13345. } else {
  13346. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13347. this.checkJson[i][z].rightPerson.push(data.name);
  13348. }
  13349. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13350. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13351. ? this.checkJson[i][z].checkPerson[
  13352. parseInt(checkL[z])
  13353. ].push(data.name)
  13354. : (this.checkJson[i][z].checkPerson[
  13355. parseInt(checkL[z])
  13356. ] = [data.name]);
  13357. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13358. ? this.checkJson[i][z].checkCount[
  13359. parseInt(checkL[z])
  13360. ]++
  13361. : (this.checkJson[i][z].checkCount[
  13362. parseInt(checkL[z])
  13363. ] = 1);
  13364. }
  13365. }
  13366. }
  13367. } else if (data.type == 8 && a[i].tool[0] == 45) {
  13368. var checkL = JSON.parse(data.content)[0].anwer;
  13369. for (var z = 0; z < checkL.length; z++) {
  13370. if (!this.checkJson[i][z]) {
  13371. this.checkJson[i].push({
  13372. checkCount: [],
  13373. checkPerson: [],
  13374. rightPerson: [],
  13375. });
  13376. }
  13377. if (!this.checkJson[i][z].checkCount.length) {
  13378. this.checkJson[i][z].checkCount = [];
  13379. let _askItemCount = JSON.parse(data.content)[0].testJson
  13380. .testJson[z].testItem;
  13381. for (var aic = 0; aic < _askItemCount; aic++) {
  13382. this.checkJson[i][z].checkCount.push(0);
  13383. }
  13384. }
  13385. if (checkL[z] instanceof Array) {
  13386. if (
  13387. JSON.parse(data.content)[0]
  13388. .testJson.testJson[z].answer.sort()
  13389. .join(",") == checkL[z].sort().join(",")
  13390. ) {
  13391. this.checkJson[i][z].rightPerson.push(data.name);
  13392. }
  13393. for (var q = 0; q < checkL[z].length; q++) {
  13394. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13395. ? this.checkJson[i][z].checkPerson[
  13396. parseInt(checkL[z][q])
  13397. ].push(data.name)
  13398. : (this.checkJson[i][z].checkPerson[
  13399. parseInt(checkL[z][q])
  13400. ] = [data.name]);
  13401. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13402. ? this.checkJson[i][z].checkCount[
  13403. parseInt(checkL[z][q])
  13404. ]++
  13405. : (this.checkJson[i][z].checkCount[
  13406. parseInt(checkL[z][q])
  13407. ] = 1);
  13408. }
  13409. } else {
  13410. if (
  13411. JSON.parse(data.content)[0].testJson.testJson[z]
  13412. .answer == checkL[z]
  13413. ) {
  13414. this.checkJson[i][z].rightPerson.push(data.name);
  13415. }
  13416. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13417. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13418. ? this.checkJson[i][z].checkPerson[
  13419. parseInt(checkL[z])
  13420. ].push(data.name)
  13421. : (this.checkJson[i][z].checkPerson[
  13422. parseInt(checkL[z])
  13423. ] = [data.name]);
  13424. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  13425. ? this.checkJson[i][z].checkCount[
  13426. parseInt(checkL[z])
  13427. ]++
  13428. : (this.checkJson[i][z].checkCount[
  13429. parseInt(checkL[z])
  13430. ] = 1);
  13431. }
  13432. }
  13433. }
  13434. } else if (data.type == 9 && a[i].tool[0] == 47) {
  13435. var checkL = JSON.parse(data.content);
  13436. for (var z = 0; z < checkL.length; z++) {
  13437. if (!this.checkJson[i][z]) {
  13438. this.checkJson[i].push({
  13439. checkCount: [],
  13440. checkPerson: [],
  13441. rightPerson: [],
  13442. });
  13443. }
  13444. this.checkJson[i][z].checkPerson.push(data.name);
  13445. if (
  13446. checkL[z].chooseSenList.toString() ==
  13447. checkL[z].rightAnswer.toString()
  13448. ) {
  13449. this.checkJson[i][z].rightPerson.push(data.name);
  13450. }
  13451. }
  13452. }
  13453. for (var k = 0; k < d.length; k++) {
  13454. //点赞
  13455. if (d[k].workId == b[j].id) {
  13456. likesCount++;
  13457. if (d[k].likesId == this.userid) {
  13458. isLikes = true;
  13459. }
  13460. }
  13461. }
  13462. for (var l = 0; l < e.length; l++) {
  13463. //评论
  13464. if (e[l].workId == b[j].id) {
  13465. if (e[l].comment != "") {
  13466. commentCount++;
  13467. commentJson.push({
  13468. commentText: e[l].comment,
  13469. commentTime: e[l].commentTime,
  13470. commentPeople: e[l].commentPeople,
  13471. userid: e[l].userid,
  13472. wid: e[l].id,
  13473. });
  13474. }
  13475. }
  13476. }
  13477. if (
  13478. (b[j].type == 1 ||
  13479. b[j].type == 4 ||
  13480. b[j].type == 5 ||
  13481. b[j].type == 6 ||
  13482. b[j].type == 12 ||
  13483. b[j].type == 7) &&
  13484. a[i].tool[0] != 15 &&
  13485. a[i].tool[0] != 4 &&
  13486. a[i].tool[0] != 45 &&
  13487. a[i].tool[0] != 50 &&
  13488. a[i].tool[0] != 32 &&
  13489. a[i].tool[0] != 57 &&
  13490. a[i].tool[0] != 52
  13491. ) {
  13492. if (
  13493. c.indexOf(
  13494. b[j].content
  13495. .split(".")
  13496. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13497. ) != -1 &&
  13498. a[i].tool[0] == 16 &&
  13499. b[j].atool != 50
  13500. ) {
  13501. let _works = {
  13502. userid: b[j].userid,
  13503. ateacher: b[j].ateacher,
  13504. wid: b[j].id,
  13505. works: b[j].content,
  13506. sName: b[j].name,
  13507. type: 1,
  13508. time: b[j].time,
  13509. score: b[j].score,
  13510. img: b[j].img,
  13511. likesCount: likesCount,
  13512. commentCount: commentCount,
  13513. isLikes: isLikes,
  13514. commentJson: commentJson,
  13515. };
  13516. if (this.isGroup) {
  13517. let isGw = 1;
  13518. for (
  13519. var groupI = 0;
  13520. groupI < this.courseGroup.group.length;
  13521. groupI++
  13522. ) {
  13523. let gid = this.courseGroup.group[groupI].id;
  13524. if (
  13525. this.courseGroupStudentUid[gid].indexOf(
  13526. b[j].userid
  13527. ) != -1
  13528. ) {
  13529. isGw = 2;
  13530. this.courseGroup.group[groupI].works[i].push(_works);
  13531. break;
  13532. }
  13533. }
  13534. if (isGw == 1) {
  13535. _worksStudent[i].push(_works);
  13536. }
  13537. } else {
  13538. _worksStudent[i].push(_works);
  13539. }
  13540. _worksStudent2[i].push(_works);
  13541. this.isWorksS[i].push({
  13542. uid: b[j].userid,
  13543. sName: b[j].name,
  13544. });
  13545. } else if (
  13546. y.indexOf(
  13547. b[j].content
  13548. .split(".")
  13549. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13550. ) != -1 &&
  13551. a[i].tool[0] == 16 &&
  13552. b[j].atool != 50
  13553. ) {
  13554. let _works = {
  13555. userid: b[j].userid,
  13556. ateacher: b[j].ateacher,
  13557. wid: b[j].id,
  13558. works: b[j].content,
  13559. sName: b[j].name,
  13560. type: 3,
  13561. time: b[j].time,
  13562. score: b[j].score,
  13563. img: b[j].img,
  13564. likesCount: likesCount,
  13565. commentCount: commentCount,
  13566. isLikes: isLikes,
  13567. commentJson: commentJson,
  13568. };
  13569. if (this.isGroup) {
  13570. let isGw = 1;
  13571. for (
  13572. var groupI = 0;
  13573. groupI < this.courseGroup.group.length;
  13574. groupI++
  13575. ) {
  13576. let gid = this.courseGroup.group[groupI].id;
  13577. if (
  13578. this.courseGroupStudentUid[gid].indexOf(
  13579. b[j].userid
  13580. ) != -1
  13581. ) {
  13582. isGw = 2;
  13583. this.courseGroup.group[groupI].works[i].push(_works);
  13584. break;
  13585. }
  13586. }
  13587. if (isGw == 1) {
  13588. _worksStudent[i].push(_works);
  13589. }
  13590. } else {
  13591. _worksStudent[i].push(_works);
  13592. }
  13593. _worksStudent2[i].push(_works);
  13594. this.isWorksS[i].push({
  13595. uid: b[j].userid,
  13596. sName: b[j].name,
  13597. });
  13598. } else if (b[j].type == 6 && b[j].atool != 50) {
  13599. let _works = {
  13600. userid: b[j].userid,
  13601. ateacher: b[j].ateacher,
  13602. wid: b[j].id,
  13603. works: b[j].content,
  13604. sName: b[j].name,
  13605. type: 4,
  13606. time: b[j].time,
  13607. score: b[j].score,
  13608. img: b[j].img,
  13609. likesCount: likesCount,
  13610. commentCount: commentCount,
  13611. isLikes: isLikes,
  13612. commentJson: commentJson,
  13613. };
  13614. _worksStudent[i].push(_works);
  13615. _worksStudent2[i].push(_works);
  13616. this.isWorksS[i].push({
  13617. uid: b[j].userid,
  13618. sName: b[j].name,
  13619. });
  13620. } else if (b[j].type == 7 && b[j].atool != 50) {
  13621. let _work = {
  13622. userid: b[j].userid,
  13623. ateacher: b[j].ateacher,
  13624. wid: b[j].id,
  13625. works: b[j].content,
  13626. sName: b[j].name,
  13627. type: 5,
  13628. time: b[j].time,
  13629. score: b[j].score,
  13630. img: b[j].img,
  13631. likesCount: likesCount,
  13632. commentCount: commentCount,
  13633. isLikes: isLikes,
  13634. commentJson: commentJson,
  13635. };
  13636. _worksStudent[i].push(_work);
  13637. _worksStudent2[i].push(_work);
  13638. this.isWorksS[i].push({
  13639. uid: b[j].userid,
  13640. sName: b[j].name,
  13641. });
  13642. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13643. let _works = {
  13644. userid: b[j].userid,
  13645. ateacher: b[j].ateacher,
  13646. wid: b[j].id,
  13647. works: b[j].content,
  13648. sName: b[j].name,
  13649. type: 12,
  13650. time: b[j].time,
  13651. score: b[j].score,
  13652. img: b[j].img,
  13653. likesCount: likesCount,
  13654. commentCount: commentCount,
  13655. isLikes: isLikes,
  13656. commentJson: commentJson,
  13657. };
  13658. if (this.isGroup) {
  13659. let isGw = 1;
  13660. for (
  13661. var groupI = 0;
  13662. groupI < this.courseGroup.group.length;
  13663. groupI++
  13664. ) {
  13665. let gid = this.courseGroup.group[groupI].id;
  13666. if (
  13667. this.courseGroupStudentUid[gid].indexOf(
  13668. b[j].userid
  13669. ) != -1
  13670. ) {
  13671. isGw = 2;
  13672. this.courseGroup.group[groupI].works[i].push(_works);
  13673. break;
  13674. }
  13675. }
  13676. if (isGw == 1) {
  13677. _worksStudent[i].push(_works);
  13678. }
  13679. } else {
  13680. _worksStudent[i].push(_works);
  13681. }
  13682. _worksStudent2[i].push(_works);
  13683. this.isWorksS[i].push({
  13684. uid: b[j].userid,
  13685. sName: b[j].name,
  13686. });
  13687. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13688. let _works = {
  13689. userid: b[j].userid,
  13690. ateacher: b[j].ateacher,
  13691. wid: b[j].id,
  13692. works: b[j].content,
  13693. sName: b[j].name,
  13694. type: 0,
  13695. time: b[j].time,
  13696. score: b[j].score,
  13697. img: b[j].img,
  13698. likesCount: likesCount,
  13699. commentCount: commentCount,
  13700. isLikes: isLikes,
  13701. commentJson: commentJson,
  13702. };
  13703. if (this.isGroup) {
  13704. let isGw = 1;
  13705. for (
  13706. var groupI = 0;
  13707. groupI < this.courseGroup.group.length;
  13708. groupI++
  13709. ) {
  13710. let gid = this.courseGroup.group[groupI].id;
  13711. if (
  13712. this.courseGroupStudentUid[gid].indexOf(
  13713. b[j].userid
  13714. ) != -1
  13715. ) {
  13716. isGw = 2;
  13717. this.courseGroup.group[groupI].works[i].push(_works);
  13718. break;
  13719. }
  13720. }
  13721. if (isGw == 1) {
  13722. _worksStudent[i].push(_works);
  13723. }
  13724. } else {
  13725. _worksStudent[i].push(_works);
  13726. }
  13727. _worksStudent2[i].push(_works);
  13728. this.isWorksS[i].push({
  13729. uid: b[j].userid,
  13730. sName: b[j].name,
  13731. });
  13732. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13733. let _works = {
  13734. userid: b[j].userid,
  13735. ateacher: b[j].ateacher,
  13736. wid: b[j].id,
  13737. works: b[j].content,
  13738. sName: b[j].name,
  13739. type: 0,
  13740. time: b[j].time,
  13741. score: b[j].score,
  13742. img: b[j].img,
  13743. likesCount: likesCount,
  13744. commentCount: commentCount,
  13745. isLikes: isLikes,
  13746. commentJson: commentJson,
  13747. };
  13748. if (this.isGroup) {
  13749. let isGw = 1;
  13750. for (
  13751. var groupI = 0;
  13752. groupI < this.courseGroup.group.length;
  13753. groupI++
  13754. ) {
  13755. let gid = this.courseGroup.group[groupI].id;
  13756. if (
  13757. this.courseGroupStudentUid[gid].indexOf(
  13758. b[j].userid
  13759. ) != -1
  13760. ) {
  13761. isGw = 2;
  13762. this.courseGroup.group[groupI].works[i].push(_works);
  13763. break;
  13764. }
  13765. }
  13766. if (isGw == 1) {
  13767. _worksStudent[i].push(_works);
  13768. }
  13769. } else {
  13770. _worksStudent[i].push(_works);
  13771. }
  13772. _worksStudent2[i].push(_works);
  13773. this.isWorksS[i].push({
  13774. uid: b[j].userid,
  13775. sName: b[j].name,
  13776. });
  13777. }
  13778. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13779. let _works = {
  13780. userid: b[j].userid,
  13781. ateacher: b[j].ateacher,
  13782. wid: b[j].id,
  13783. works: b[j].content,
  13784. sName: b[j].name,
  13785. type: 2,
  13786. time: b[j].time,
  13787. score: b[j].score,
  13788. img: b[j].img,
  13789. likesCount: likesCount,
  13790. commentCount: commentCount,
  13791. isLikes: isLikes,
  13792. commentJson: commentJson,
  13793. };
  13794. if (this.isGroup) {
  13795. let isGw = 1;
  13796. for (
  13797. var groupI = 0;
  13798. groupI < this.courseGroup.group.length;
  13799. groupI++
  13800. ) {
  13801. let gid = this.courseGroup.group[groupI].id;
  13802. if (
  13803. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  13804. -1
  13805. ) {
  13806. isGw = 2;
  13807. this.courseGroup.group[groupI].works[i].push(_works);
  13808. break;
  13809. }
  13810. }
  13811. if (isGw == 1) {
  13812. _worksStudent[i].push(_works);
  13813. }
  13814. } else {
  13815. _worksStudent[i].push(_works);
  13816. }
  13817. _worksStudent2[i].push(_works);
  13818. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13819. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13820. //问卷
  13821. let _work = {
  13822. userid: b[j].userid,
  13823. ateacher: b[j].ateacher,
  13824. wid: b[j].id,
  13825. works: b[j].content,
  13826. sName: b[j].name,
  13827. type: 2,
  13828. time: b[j].time,
  13829. score: b[j].score,
  13830. img: b[j].img,
  13831. likesCount: likesCount,
  13832. commentCount: commentCount,
  13833. isLikes: isLikes,
  13834. commentJson: commentJson,
  13835. };
  13836. _worksStudent[i].push(_work);
  13837. _worksStudent2[i].push(_work);
  13838. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13839. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13840. //选择题
  13841. let _work = {
  13842. userid: b[j].userid,
  13843. ateacher: b[j].ateacher,
  13844. wid: b[j].id,
  13845. works: b[j].content,
  13846. sName: b[j].name,
  13847. type: 8,
  13848. time: b[j].time,
  13849. score: b[j].score,
  13850. img: b[j].img,
  13851. likesCount: likesCount,
  13852. commentCount: commentCount,
  13853. isLikes: isLikes,
  13854. commentJson: commentJson,
  13855. };
  13856. _worksStudent[i].push(_work);
  13857. _worksStudent2[i].push(_work);
  13858. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13859. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13860. //选择题
  13861. let _work = {
  13862. userid: b[j].userid,
  13863. ateacher: b[j].ateacher,
  13864. wid: b[j].id,
  13865. works: b[j].content,
  13866. sName: b[j].name,
  13867. type: 9,
  13868. time: b[j].time,
  13869. score: b[j].score,
  13870. img: b[j].img,
  13871. likesCount: likesCount,
  13872. commentCount: commentCount,
  13873. isLikes: isLikes,
  13874. commentJson: commentJson,
  13875. };
  13876. _worksStudent[i].push(_work);
  13877. _worksStudent2[i].push(_work);
  13878. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13879. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13880. //选择题
  13881. let _work = {
  13882. userid: b[j].userid,
  13883. ateacher: b[j].ateacher,
  13884. wid: b[j].id,
  13885. works: b[j].content,
  13886. sName: b[j].name,
  13887. type: 10,
  13888. time: b[j].time,
  13889. score: b[j].score,
  13890. img: b[j].img,
  13891. likesCount: likesCount,
  13892. commentCount: commentCount,
  13893. isLikes: isLikes,
  13894. commentJson: commentJson,
  13895. };
  13896. _worksStudent[i].push(_work);
  13897. _worksStudent2[i].push(_work);
  13898. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13899. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13900. //选择题
  13901. let _work = {
  13902. userid: b[j].userid,
  13903. ateacher: b[j].ateacher,
  13904. wid: b[j].id,
  13905. works: b[j].content,
  13906. sName: b[j].name,
  13907. type: 13,
  13908. time: b[j].time,
  13909. score: b[j].score,
  13910. img: b[j].img,
  13911. likesCount: likesCount,
  13912. commentCount: commentCount,
  13913. isLikes: isLikes,
  13914. commentJson: commentJson,
  13915. };
  13916. _worksStudent[i].push(_work);
  13917. _worksStudent2[i].push(_work);
  13918. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13919. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  13920. let _gindex = JSON.parse(b[j].content);
  13921. if (
  13922. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  13923. b[j].userid
  13924. ) != -1
  13925. ) {
  13926. let _work = {
  13927. userid: b[j].userid,
  13928. ateacher: b[j].ateacher,
  13929. wid: b[j].id,
  13930. works: _gindex.url,
  13931. sName: b[j].name,
  13932. type: _gindex.type,
  13933. time: b[j].time,
  13934. score: b[j].score,
  13935. img: b[j].img,
  13936. likesCount: likesCount,
  13937. commentCount: commentCount,
  13938. isLikes: isLikes,
  13939. commentJson: commentJson,
  13940. };
  13941. _worksStudent[i][_gindex.groupIndex].push(_work);
  13942. _worksStudent2[i][_gindex.groupIndex].push(_work);
  13943. }
  13944. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13945. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  13946. let _work = {
  13947. userid: b[j].userid,
  13948. ateacher: b[j].ateacher,
  13949. wid: b[j].id,
  13950. works: b[j].content,
  13951. sName: b[j].name ? b[j].name : b[j].userid,
  13952. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  13953. time: b[j].time,
  13954. score: b[j].score,
  13955. img: b[j].img,
  13956. likesCount: likesCount,
  13957. commentCount: commentCount,
  13958. isLikes: isLikes,
  13959. commentJson: commentJson,
  13960. };
  13961. _worksStudent[i].push(_work);
  13962. _worksStudent2[i].push(_work);
  13963. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13964. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  13965. let _work = {
  13966. userid: b[j].userid,
  13967. ateacher: b[j].ateacher,
  13968. wid: b[j].id,
  13969. works: b[j].content,
  13970. sName: b[j].name ? b[j].name : b[j].userid,
  13971. type: 12,
  13972. time: b[j].time,
  13973. score: b[j].score,
  13974. img: b[j].img,
  13975. likesCount: likesCount,
  13976. commentCount: commentCount,
  13977. isLikes: isLikes,
  13978. commentJson: commentJson,
  13979. };
  13980. _worksStudent[i].push(_work);
  13981. _worksStudent2[i].push(_work);
  13982. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  13983. } else if (
  13984. a[i].tool[0] == 57 &&
  13985. b[j].atool == 57 &&
  13986. b[j].type == 12
  13987. ) {
  13988. let _work = {
  13989. userid: b[j].userid,
  13990. ateacher: b[j].ateacher,
  13991. wid: b[j].id,
  13992. works: b[j].content,
  13993. sName: b[j].name ? b[j].name : b[j].userid,
  13994. type: 12,
  13995. time: b[j].time,
  13996. score: b[j].score,
  13997. img: b[j].img,
  13998. likesCount: likesCount,
  13999. commentCount: commentCount,
  14000. isLikes: isLikes,
  14001. commentJson: commentJson,
  14002. };
  14003. _worksStudent[i].push(_work);
  14004. _worksStudent2[i].push(_work);
  14005. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14006. } else if (
  14007. a[i].tool[0] == 57 &&
  14008. b[j].atool == 57 &&
  14009. b[j].type == 15
  14010. ) {
  14011. let _work = {
  14012. userid: b[j].userid,
  14013. ateacher: b[j].ateacher,
  14014. wid: b[j].id,
  14015. works: b[j].content,
  14016. sName: b[j].name ? b[j].name : b[j].userid,
  14017. type: 15,
  14018. time: b[j].time,
  14019. score: b[j].score,
  14020. img: b[j].img,
  14021. likesCount: likesCount,
  14022. commentCount: commentCount,
  14023. isLikes: isLikes,
  14024. commentJson: commentJson,
  14025. };
  14026. _worksStudent[i].push(_work);
  14027. _worksStudent2[i].push(_work);
  14028. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14029. }
  14030. }
  14031. }
  14032. if (_worksStudent[i] && _worksStudent[i].length) {
  14033. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  14034. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14035. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14036. var scoreA = parseFloat(jscoreA);
  14037. var scoreB = parseFloat(jscoreB);
  14038. if (scoreA == scoreB) {
  14039. return b.likesCount - a.likesCount;
  14040. }
  14041. return scoreB - scoreA;
  14042. });
  14043. if (this.isGroup) {
  14044. for (
  14045. var groupI = 0;
  14046. groupI < this.courseGroup.group.length;
  14047. groupI++
  14048. ) {
  14049. this.courseGroup.group[groupI].works[i] =
  14050. this.courseGroup.group[groupI].works[i].sort(function (
  14051. a,
  14052. b
  14053. ) {
  14054. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14055. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14056. var scoreA = parseFloat(jscoreA);
  14057. var scoreB = parseFloat(jscoreB);
  14058. if (scoreA == scoreB) {
  14059. return b.likesCount - a.likesCount;
  14060. }
  14061. return scoreB - scoreA;
  14062. });
  14063. }
  14064. }
  14065. }
  14066. }
  14067. this.timeWorkList = _worksStudent2;
  14068. for (var i = 0; i < a.length; i++) {
  14069. for (var j = 0; j < b.length; j++) {
  14070. var data = b[j];
  14071. if (i == b[j].tool) {
  14072. if (data.type == 2 || data.type == 8) {
  14073. for (var z = 0; z < this.checkJson[i].length; z++) {
  14074. this.checkJson[i][z].checkPerent = [];
  14075. this.checkJson[i][z].right = Math.round(
  14076. (this.checkJson[i][z].rightPerson.length /
  14077. parseInt(_worksStudent[i].length)) *
  14078. 100
  14079. );
  14080. let aaaa = this.checkJson[i][z];
  14081. for (
  14082. var k = 0;
  14083. k < this.checkJson[i][z].checkCount.length;
  14084. k++
  14085. ) {
  14086. this.checkJson[i][z].checkPerent.push(
  14087. Math.round(
  14088. (this.checkJson[i][z].checkCount[k] /
  14089. parseInt(_worksStudent[i].length)) *
  14090. 100
  14091. )
  14092. );
  14093. }
  14094. }
  14095. } else if (data.type == 9) {
  14096. for (var z = 0; z < this.checkJson[i].length; z++) {
  14097. this.checkJson[i][z].checkPerent = [];
  14098. this.checkJson[i][z].right = Math.round(
  14099. (this.checkJson[i][z].rightPerson.length /
  14100. this.checkJson[i][z].checkPerson.length) *
  14101. 100
  14102. );
  14103. }
  14104. }
  14105. }
  14106. }
  14107. }
  14108. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14109. this.joinGroup(gindex);
  14110. }
  14111. this.worksStudent = _worksStudent;
  14112. this.selectWorksStudent();
  14113. })
  14114. .catch((err) => {
  14115. console.error(err);
  14116. });
  14117. },
  14118. pngToWhiteBg(file) {
  14119. const _file = file;
  14120. let read = new FileReader();
  14121. read.readAsDataURL(file); // 文件转base64
  14122. return new Promise((resolve, reject) => {
  14123. read.onload = (e) => {
  14124. let img = new Image();
  14125. img.src = e.target.result;
  14126. img.onload = async () => {
  14127. // 生成canvas
  14128. let canvas = document.createElement("canvas");
  14129. let context = canvas.getContext("2d");
  14130. // 绘制图片到canvas上
  14131. canvas.width = img.width;
  14132. canvas.height = img.height;
  14133. // 在canvas绘制前填充白色背景
  14134. context.fillStyle = "#fff";
  14135. context.fillRect(0, 0, canvas.width, canvas.height);
  14136. context.drawImage(img, 0, 0);
  14137. let base64 = canvas.toDataURL(file["type"], 1);
  14138. let newFile = this.dataUrlToFile(base64, _file);
  14139. resolve(newFile);
  14140. };
  14141. };
  14142. });
  14143. },
  14144. dataUrlToFile(dataurl, file) {
  14145. let arr = dataurl.split(","),
  14146. mime = arr[0].match(/:(.*?);/)[1],
  14147. bstr = atob(arr[1]),
  14148. n = bstr.length,
  14149. u8arr = new Uint8Array(n);
  14150. while (n--) {
  14151. u8arr[n] = bstr.charCodeAt(n);
  14152. }
  14153. // return new Blob([u8arr], { type: mime });
  14154. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14155. type: mime,
  14156. });
  14157. },
  14158. async beforeUpload1(event, type, i) {
  14159. // this.$message.success('进入上传')
  14160. var file = "";
  14161. if (type == 5) {
  14162. file = event;
  14163. } else {
  14164. file = event.target.files[0];
  14165. }
  14166. var credentials = {
  14167. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14168. secretAccessKey: "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",
  14169. }; //秘钥形式的登录上传
  14170. window.AWS.config.update(credentials);
  14171. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14172. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14173. var _this = this;
  14174. _this.progress = 0;
  14175. _this.proVisible = true;
  14176. _this.isFinishSize = 0;
  14177. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14178. var b = [
  14179. "DOC",
  14180. "DOCX",
  14181. "DOCM",
  14182. "DOTM",
  14183. "DOTX",
  14184. "PPTX",
  14185. "PPSX",
  14186. "PPT",
  14187. "PPS",
  14188. "PPTM",
  14189. "POTM",
  14190. "PPAM",
  14191. "POTX",
  14192. "PPSM",
  14193. ];
  14194. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14195. var photoA = [
  14196. "BMP",
  14197. "GIF",
  14198. "PNG",
  14199. "JPGE",
  14200. "JPEG",
  14201. "JPG",
  14202. "TIF",
  14203. "PCX",
  14204. "TGA",
  14205. "EXIF",
  14206. "FPX",
  14207. "SVG",
  14208. "APNG",
  14209. ];
  14210. // if (
  14211. // b.indexOf(
  14212. // file.name
  14213. // .split(".")
  14214. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14215. // ) != -1
  14216. // ) {
  14217. // if (file.size / 1024 / 1024 > 10) {
  14218. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14219. // return;
  14220. // }
  14221. // } else if (
  14222. // excelA.indexOf(
  14223. // file.name
  14224. // .split(".")
  14225. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14226. // ) != "-1"
  14227. // ) {
  14228. // if (file.size / 1024 / 1024 > 5) {
  14229. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14230. // return;
  14231. // }
  14232. // }
  14233. if (
  14234. photoA.indexOf(
  14235. file.name
  14236. .split(".")
  14237. [file.name.split(".").length - 1].toLocaleUpperCase()
  14238. ) != -1 &&
  14239. type != 4
  14240. ) {
  14241. // const blob = await imageConversion.compress(file, 0.8)
  14242. file = await this.pngToWhiteBg(file);
  14243. const blob = await imageConversion.compressAccurately(file, 256);
  14244. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14245. file = new File([blob], file.name, { type: file.type });
  14246. }
  14247. if (file) {
  14248. var params = {
  14249. Key:
  14250. file.name.split(".")[0] +
  14251. new Date().getTime() +
  14252. "." +
  14253. file.name.split(".")[file.name.split(".").length - 1],
  14254. ContentType: file.type,
  14255. Body: file,
  14256. "Access-Control-Allow-Credentials": "*",
  14257. ACL: "public-read",
  14258. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14259. var options = {
  14260. // partSize: 2048 * 1024 * 1024,
  14261. partSize: 1024 * 1024 * 1024,
  14262. queueSize: 2,
  14263. leavePartsOnError: true,
  14264. };
  14265. bucket
  14266. .upload(params, options)
  14267. .on("httpUploadProgress", function (evt) {
  14268. //这里可以写进度条
  14269. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14270. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14271. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14272. })
  14273. .send(function (err, data) {
  14274. _this.progress = 100;
  14275. _this.isFinishSize = _this.isAllSize;
  14276. setTimeout(() => {
  14277. _this.proVisible = false;
  14278. }, 1000);
  14279. if (err) {
  14280. var a = _this.$refs.upload1.uploadFiles;
  14281. a.splice(a.length - 1, a.length);
  14282. _this.$message.error("上传失败");
  14283. } else {
  14284. // _this.$message.success('上传成功')
  14285. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14286. var c = [
  14287. "AVI",
  14288. "NAVI",
  14289. "MPEG",
  14290. "ASF",
  14291. "MOV",
  14292. "WMV",
  14293. "3GP",
  14294. "RM",
  14295. "RMVB",
  14296. "FLV",
  14297. "F4V",
  14298. "H.264",
  14299. "H.265",
  14300. "REAL VIDEO",
  14301. "MKV",
  14302. "WebM",
  14303. "HDDVD",
  14304. "MP4",
  14305. "MPG",
  14306. "M4V",
  14307. "MGV",
  14308. "OGV",
  14309. "QTM",
  14310. "STR",
  14311. "AMC",
  14312. "DVX",
  14313. "EVO",
  14314. "DAT",
  14315. "OGG",
  14316. "OGM",
  14317. ];
  14318. if (type == 1) {
  14319. _this.studyJuri[0].cover.push({
  14320. name: file.name,
  14321. url: data.Location,
  14322. uid: file.uid,
  14323. });
  14324. if (
  14325. c.indexOf(
  14326. _this.studyJuri[0].cover[0].url
  14327. .split(".")
  14328. [
  14329. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14330. ].toLocaleUpperCase()
  14331. ) != -1
  14332. ) {
  14333. _this.fileType = 2;
  14334. } else if (
  14335. b.indexOf(
  14336. _this.studyJuri[0].cover[0].url
  14337. .split(".")
  14338. [
  14339. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14340. ].toLocaleUpperCase()
  14341. ) != -1
  14342. ) {
  14343. _this.fileType = 1;
  14344. } else if (
  14345. photoA.indexOf(
  14346. _this.studyJuri[0].cover[0].url
  14347. .split(".")
  14348. [
  14349. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14350. ].toLocaleUpperCase()
  14351. ) != -1
  14352. ) {
  14353. _this.fileType = 0;
  14354. } else {
  14355. _this.fileType = 3;
  14356. }
  14357. _this.imgChange(null, null, type);
  14358. } else if (type == 2) {
  14359. _this.upToolImg = data.Location;
  14360. _this.imgChange(null, null, type);
  14361. _this.addCourseWorks(i);
  14362. } else if (type == 4) {
  14363. _this.addPz("3", data.Location);
  14364. } else if (type == 5) {
  14365. _this.addImgDrawImG(data.Location);
  14366. } else if (type == 6) {
  14367. var _ftype = 1;
  14368. if (
  14369. c.indexOf(
  14370. data.Location.split(".")[
  14371. data.Location.split(".").length - 1
  14372. ].toLocaleUpperCase()
  14373. ) != -1
  14374. ) {
  14375. _ftype = 5;
  14376. } else if (
  14377. b.indexOf(
  14378. data.Location.split(".")[
  14379. data.Location.split(".").length - 1
  14380. ].toLocaleUpperCase()
  14381. ) != -1
  14382. ) {
  14383. _ftype = 4;
  14384. } else {
  14385. _ftype = 1;
  14386. }
  14387. _this.plworkFile.push({
  14388. name: file.name,
  14389. url: data.Location,
  14390. uid: file.uid,
  14391. fileType: _ftype,
  14392. username:
  14393. _this.plworkFile.length > 10
  14394. ? _this.plworkFile.length + 1
  14395. : "0" + (_this.plworkFile.length + 1),
  14396. });
  14397. } else if (type == 7) {
  14398. _this.addCourseWorksGong(i, data.Location, 32);
  14399. } else if (type == 8) {
  14400. _this.addCourseWorksGong(i, data.Location, 57);
  14401. }
  14402. _this.imgChange(null, null, type);
  14403. console.log(data.Location);
  14404. // _this.$message.success('上传成功'+data.Location)
  14405. }
  14406. });
  14407. }
  14408. },
  14409. async beforeUpload3(event, type, i) {
  14410. // this.$message.success('进入上传')
  14411. let file = "";
  14412. let cfindex2 = 0;
  14413. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  14414. file = event.target.files[cfindex];
  14415. var credentials = {
  14416. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14417. secretAccessKey: "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",
  14418. }; //秘钥形式的登录上传
  14419. window.AWS.config.update(credentials);
  14420. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14421. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14422. var _this = this;
  14423. // _this.progress = 0;
  14424. _this.proVisible2 = true;
  14425. var b = [
  14426. "DOC",
  14427. "DOCX",
  14428. "DOCM",
  14429. "DOTM",
  14430. "DOTX",
  14431. "PPTX",
  14432. "PPSX",
  14433. "PPT",
  14434. "PPS",
  14435. "PPTM",
  14436. "POTM",
  14437. "PPAM",
  14438. "POTX",
  14439. "PPSM",
  14440. ];
  14441. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14442. var photoA = [
  14443. "BMP",
  14444. "GIF",
  14445. "PNG",
  14446. "JPGE",
  14447. "JPG",
  14448. "TIF",
  14449. "PCX",
  14450. "TGA",
  14451. "EXIF",
  14452. "FPX",
  14453. "SVG",
  14454. "APNG",
  14455. ];
  14456. if (
  14457. photoA.indexOf(
  14458. file.name
  14459. .split(".")
  14460. [file.name.split(".").length - 1].toLocaleUpperCase()
  14461. ) != -1 &&
  14462. type != 4
  14463. ) {
  14464. // const blob = await imageConversion.compress(file, 0.8)
  14465. file = await this.pngToWhiteBg(file);
  14466. const blob = await imageConversion.compressAccurately(file, 256);
  14467. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14468. file = new File([blob], file.name, { type: file.type });
  14469. }
  14470. if (file) {
  14471. var params = {
  14472. Key:
  14473. file.name.split(".")[0] +
  14474. new Date().getTime() +
  14475. "." +
  14476. file.name.split(".")[file.name.split(".").length - 1],
  14477. ContentType: file.type,
  14478. Body: file,
  14479. "Access-Control-Allow-Credentials": "*",
  14480. ACL: "public-read",
  14481. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14482. var options = {
  14483. // partSize: 2048 * 1024 * 1024,
  14484. partSize: 1024 * 1024 * 1024,
  14485. queueSize: 2,
  14486. leavePartsOnError: true,
  14487. };
  14488. bucket
  14489. .upload(params, options)
  14490. .on("httpUploadProgress", function (evt) {
  14491. //这里可以写进度条
  14492. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14493. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14494. })
  14495. .send(function (err, data) {
  14496. // _this.progress = 100;
  14497. cfindex2++;
  14498. setTimeout(() => {
  14499. if (
  14500. cfindex2 == event.target.files.length - 1 ||
  14501. cfindex2 > event.target.files.length - 1
  14502. ) {
  14503. _this.proVisible2 = false;
  14504. }
  14505. }, 1000);
  14506. if (err) {
  14507. var a = _this.$refs.upload1.uploadFiles;
  14508. a.splice(a.length - 1, a.length);
  14509. _this.$message.error("上传失败");
  14510. } else {
  14511. // _this.$message.success('上传成功')
  14512. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14513. var c = [
  14514. "AVI",
  14515. "NAVI",
  14516. "MPEG",
  14517. "ASF",
  14518. "MOV",
  14519. "WMV",
  14520. "3GP",
  14521. "RM",
  14522. "RMVB",
  14523. "FLV",
  14524. "F4V",
  14525. "H.264",
  14526. "H.265",
  14527. "REAL VIDEO",
  14528. "MKV",
  14529. "WebM",
  14530. "HDDVD",
  14531. "MP4",
  14532. "MPG",
  14533. "M4V",
  14534. "MGV",
  14535. "OGV",
  14536. "QTM",
  14537. "STR",
  14538. "AMC",
  14539. "DVX",
  14540. "EVO",
  14541. "DAT",
  14542. "OGG",
  14543. "OGM",
  14544. ];
  14545. if (type == 1) {
  14546. _this.studyJuri[0].cover.push({
  14547. name: file.name,
  14548. url: data.Location,
  14549. uid: file.uid,
  14550. });
  14551. if (
  14552. c.indexOf(
  14553. _this.studyJuri[0].cover[0].url
  14554. .split(".")
  14555. [
  14556. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14557. ].toLocaleUpperCase()
  14558. ) != -1
  14559. ) {
  14560. _this.fileType = 2;
  14561. } else if (
  14562. b.indexOf(
  14563. _this.studyJuri[0].cover[0].url
  14564. .split(".")
  14565. [
  14566. _this.studyJuri[0].cover[0].url.split(".").length - 1
  14567. ].toLocaleUpperCase()
  14568. ) != -1
  14569. ) {
  14570. _this.fileType = 1;
  14571. } else {
  14572. _this.fileType = 0;
  14573. }
  14574. _this.imgChange(null, null, type);
  14575. } else if (type == 2) {
  14576. _this.upToolImg = data.Location;
  14577. _this.imgChange(null, null, type);
  14578. _this.addCourseWorks(i);
  14579. } else if (type == 4) {
  14580. _this.addPz("3", data.Location);
  14581. } else if (type == 5) {
  14582. _this.addImgDrawImG(data.Location);
  14583. } else if (type == 6) {
  14584. var _ftype = 1;
  14585. if (
  14586. c.indexOf(
  14587. data.Location.split(".")[
  14588. data.Location.split(".").length - 1
  14589. ].toLocaleUpperCase()
  14590. ) != -1
  14591. ) {
  14592. _ftype = 5;
  14593. } else if (
  14594. b.indexOf(
  14595. data.Location.split(".")[
  14596. data.Location.split(".").length - 1
  14597. ].toLocaleUpperCase()
  14598. ) != -1
  14599. ) {
  14600. _ftype = 4;
  14601. } else {
  14602. _ftype = 1;
  14603. }
  14604. _this.plworkFile.push({
  14605. name: file.name,
  14606. url: data.Location,
  14607. uid: file.uid,
  14608. fileType: _ftype,
  14609. username:
  14610. _this.plworkFile.length + 1 > 9
  14611. ? _this.plworkFile.length + 1
  14612. : "0" + (_this.plworkFile.length + 1),
  14613. });
  14614. }
  14615. _this.imgChange(null, null, type);
  14616. console.log(data.Location);
  14617. // _this.$message.success('上传成功'+data.Location)
  14618. }
  14619. });
  14620. }
  14621. }
  14622. },
  14623. beforeUpload2(event, type) {
  14624. var file = event.target.files[0];
  14625. var credentials = {
  14626. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14627. secretAccessKey: "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",
  14628. }; //秘钥形式的登录上传
  14629. window.AWS.config.update(credentials);
  14630. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14631. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14632. var _this = this;
  14633. _this.progress = 0;
  14634. _this.proVisible = true;
  14635. if (file) {
  14636. var params = {
  14637. Key:
  14638. file.name.split(".")[0] +
  14639. new Date().getTime() +
  14640. "." +
  14641. file.name.split(".")[file.name.split(".").length - 1],
  14642. ContentType: file.type,
  14643. Body: file,
  14644. "Access-Control-Allow-Credentials": "*",
  14645. ACL: "public-read",
  14646. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14647. var options = {
  14648. partSize: 2048 * 1024 * 1024,
  14649. queueSize: 2,
  14650. leavePartsOnError: true,
  14651. };
  14652. bucket
  14653. .upload(params, options)
  14654. .on("httpUploadProgress", function (evt) {
  14655. //这里可以写进度条
  14656. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14657. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  14658. })
  14659. .send(function (err, data) {
  14660. _this.progress = 100;
  14661. setTimeout(() => {
  14662. _this.proVisible = false;
  14663. }, 1000);
  14664. if (err) {
  14665. var a = _this.$refs.upload1.uploadFiles;
  14666. a.splice(a.length - 1, a.length);
  14667. _this.$message.error("上传失败");
  14668. } else {
  14669. if (type == 2) {
  14670. _this.studyJuri[0].upVedio.push({
  14671. name: file.name,
  14672. url: data.Location,
  14673. uid: file.uid,
  14674. });
  14675. _this.imgChange(null, null, type);
  14676. } else if (type == 3) {
  14677. _this.studyJuri[0].upFile.push({
  14678. name: file.name,
  14679. url: data.Location,
  14680. uid: file.uid,
  14681. });
  14682. _this.imgChange(null, null, type);
  14683. }
  14684. console.log(data.Location);
  14685. }
  14686. });
  14687. }
  14688. },
  14689. allScrell() {
  14690. window.parent.postMessage({ allScreen: this.screenType }, "*");
  14691. },
  14692. nextOrpreSteps(t) {
  14693. if (this.IsFollow && this.tType == 2) {
  14694. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14695. return;
  14696. }
  14697. var b = this.chapInfoList.length - 1;
  14698. if (t == 0) {
  14699. if (this.courseType == 0) {
  14700. if (this.taskCount == 0) {
  14701. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  14702. if (this.IsLookOpen) {
  14703. if (
  14704. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  14705. ) {
  14706. if (
  14707. this.courseDetail.userid != this.userid &&
  14708. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14709. ) {
  14710. this.$message.error("任务未解锁");
  14711. } else {
  14712. this.$message.error("上一任务未解锁");
  14713. }
  14714. return;
  14715. }
  14716. }
  14717. this.navList[this.courseType].isOpen = false;
  14718. this.courseType = b;
  14719. this.taskCount =
  14720. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14721. .length - 1;
  14722. this.navList[this.courseType].isOpen = true;
  14723. } else {
  14724. this.taskCount--;
  14725. }
  14726. } else {
  14727. if (this.taskCount == 0) {
  14728. this.navList[this.courseType].isOpen = false;
  14729. this.courseType--;
  14730. this.taskCount =
  14731. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  14732. .length - 1;
  14733. this.navList[this.courseType].isOpen = true;
  14734. } else {
  14735. this.taskCount--;
  14736. }
  14737. }
  14738. } else {
  14739. if (this.courseType == b) {
  14740. if (
  14741. this.taskCount ==
  14742. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14743. 1
  14744. ) {
  14745. this.navList[this.courseType].isOpen = false;
  14746. this.courseType = 0;
  14747. this.taskCount = 0;
  14748. this.navList[this.courseType].isOpen = true;
  14749. } else {
  14750. var bbb = parseInt(this.taskCount) + 1;
  14751. if (
  14752. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14753. .isLook &&
  14754. this.courseDetail.userid != this.userid &&
  14755. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14756. this.IsLookOpen
  14757. ) {
  14758. this.$message.error("任务未解锁");
  14759. return;
  14760. }
  14761. this.taskCount++;
  14762. if (this.IsLookOpen) {
  14763. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14764. this.taskCount
  14765. ].isLook = true;
  14766. this.addCourseState(3);
  14767. }
  14768. }
  14769. } else {
  14770. if (
  14771. this.taskCount ==
  14772. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  14773. 1
  14774. ) {
  14775. var bbb = parseInt(this.courseType) + 1;
  14776. if (
  14777. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  14778. this.courseDetail.userid != this.userid &&
  14779. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14780. this.IsLookOpen
  14781. ) {
  14782. this.$message.error("任务未解锁");
  14783. return;
  14784. }
  14785. this.navList[this.courseType].isOpen = false;
  14786. this.courseType++;
  14787. this.taskCount = 0;
  14788. this.navList[this.courseType].isOpen = true;
  14789. } else {
  14790. var bbb = parseInt(this.taskCount) + 1;
  14791. if (
  14792. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  14793. .isLook &&
  14794. this.courseDetail.userid != this.userid &&
  14795. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  14796. this.IsLookOpen
  14797. ) {
  14798. this.$message.error("任务未解锁");
  14799. return;
  14800. }
  14801. this.taskCount++;
  14802. }
  14803. if (this.IsLookOpen) {
  14804. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14805. this.taskCount
  14806. ].isLook = true;
  14807. this.addCourseState(3);
  14808. }
  14809. }
  14810. // if (
  14811. // this.taskCount ==
  14812. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  14813. // ) {
  14814. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  14815. // } else {
  14816. // this.taskCount++;
  14817. // }
  14818. }
  14819. document.scrollingElement.scrollTop = 0;
  14820. this.showType = 0;
  14821. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  14822. // if (this.vedio[this.taskCount].length > 0) {
  14823. // var a =
  14824. // document.getElementsByClassName("box_course")[this.taskCount]
  14825. // .offsetHeight;
  14826. // document.getElementsByClassName("vedioList")[
  14827. // this.taskCount
  14828. // ].style.height = a + "px";
  14829. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  14830. // a - 40 + "px";
  14831. // }
  14832. this.isNoHomeWork = false;
  14833. (this.studyJuri = [
  14834. {
  14835. content: "",
  14836. cover: [],
  14837. upVedio: [],
  14838. upFile: [],
  14839. },
  14840. ]),
  14841. (this.radio = []);
  14842. this.isClickNav = "";
  14843. this.selectPz();
  14844. this.getHomeWork();
  14845. this.getCourseDetail(2);
  14846. this.$forceUpdate();
  14847. },
  14848. openTask(s, n, i) {
  14849. if (this.IsFollow && this.tType == 2) {
  14850. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14851. return;
  14852. }
  14853. if (this.IsLookOpen) {
  14854. if (
  14855. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  14856. this.courseDetail.userid != this.userid &&
  14857. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  14858. ) {
  14859. this.$message.error("任务未解锁");
  14860. return;
  14861. }
  14862. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  14863. if (
  14864. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  14865. .isLook
  14866. ) {
  14867. this.$message.error("上一任务未解锁");
  14868. return;
  14869. }
  14870. } else if (s > this.courseType) {
  14871. if (n > 0) {
  14872. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  14873. this.$message.error("上一任务未解锁");
  14874. return;
  14875. }
  14876. } else {
  14877. if (
  14878. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  14879. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  14880. ].isLook
  14881. ) {
  14882. this.$message.error("上一任务未解锁");
  14883. return;
  14884. }
  14885. }
  14886. }
  14887. }
  14888. if (this.navList[s].task[n].isOpen == true) {
  14889. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  14890. return;
  14891. }
  14892. this.courseType = s;
  14893. this.navId = i;
  14894. this.taskCount = n;
  14895. this.navList[this.courseType].task[this.taskCount].isOpen =
  14896. !this.navList[this.courseType].task[this.taskCount].isOpen;
  14897. if (this.IsLookOpen) {
  14898. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14899. this.taskCount
  14900. ].isLook = true;
  14901. this.addCourseState(3);
  14902. }
  14903. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  14904. this.isCloseList[ci].isClose = 0;
  14905. }
  14906. this.showType = 0;
  14907. this.isNoHomeWork = false;
  14908. (this.studyJuri = [
  14909. {
  14910. content: "",
  14911. cover: [],
  14912. upVedio: [],
  14913. upFile: [],
  14914. },
  14915. ]),
  14916. (this.radio = []);
  14917. document.scrollingElement.scrollTop = 0;
  14918. // setTimeout(() => {
  14919. // let a = document.getElementById(i);
  14920. // if (a.offsetTop - 110 == 0) {
  14921. // window.scrollTo(0, 0);
  14922. // } else {
  14923. // window.scrollTo(0, a.offsetTop);
  14924. // }
  14925. // }, 0);
  14926. this.selectPz();
  14927. this.getHomeWork();
  14928. this.getCourseDetail(2);
  14929. },
  14930. get(i) {
  14931. if (this.IsFollow && this.tType == 2) {
  14932. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  14933. return;
  14934. }
  14935. // for(var k=0;k<this.navList.length;k++){
  14936. // this.navList[k].isOpen = false;
  14937. // }
  14938. // this.navList[i].isOpen = true;
  14939. this.navList[i].isOpen = !this.navList[i].isOpen;
  14940. if (this.navList[i].isOpen) {
  14941. this.openTask(i, 0, i + "-0");
  14942. }
  14943. },
  14944. addQuestion() {
  14945. this.answerList.push({
  14946. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14947. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14948. });
  14949. let params = [
  14950. {
  14951. uid: this.userid,
  14952. cid: this.id,
  14953. stage: this.courseType,
  14954. task: this.taskCount,
  14955. tool: this.toolindex,
  14956. content: JSON.stringify(this.answerList),
  14957. type: 3,
  14958. },
  14959. ];
  14960. this.ajax
  14961. .post(this.$store.state.api + "addCourseWorks", params)
  14962. .then((res) => {
  14963. this.$message({
  14964. message: "提交成功",
  14965. type: "success",
  14966. });
  14967. this.answerList = [];
  14968. this.answerDialogVisible = false;
  14969. this.selectStudent();
  14970. this.selectSWorks();
  14971. this.selectSLook();
  14972. })
  14973. .catch((err) => {
  14974. this.$message.error("提交失败");
  14975. console.error(err);
  14976. });
  14977. },
  14978. addQuestionTeacher() {
  14979. this.answerList.push({
  14980. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  14981. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  14982. });
  14983. let params = [
  14984. {
  14985. uid: this.sStudent.userid,
  14986. cid: this.id,
  14987. stage: this.courseType,
  14988. task: this.taskCount,
  14989. tool: this.toolindex,
  14990. content: JSON.stringify(this.answerList),
  14991. type: 3,
  14992. ateacher: this.userid,
  14993. },
  14994. ];
  14995. this.ajax
  14996. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  14997. .then((res) => {
  14998. this.$message({
  14999. message: "提交成功",
  15000. type: "success",
  15001. });
  15002. this.answerList = [];
  15003. this.questionAnswer = "";
  15004. this.answerDialogVisibleTeacher = false;
  15005. this.selectStudent();
  15006. this.selectSWorks();
  15007. this.selectSLook();
  15008. })
  15009. .catch((err) => {
  15010. this.$message.error("提交失败");
  15011. console.error(err);
  15012. });
  15013. },
  15014. refreshCourse() {
  15015. // window.location.reload();
  15016. this.navList = [];
  15017. this.getCourseDetail(1);
  15018. },
  15019. getCourseDetail(type, gindex) {
  15020. let loading;
  15021. if (type != 2) {
  15022. loading = this.$loading.service({
  15023. background: "rgba(255, 255, 255, 0.7)",
  15024. target: document.querySelector(".student_table"),
  15025. });
  15026. }
  15027. // this.navList[0].isOpen = false;
  15028. // this.navList[this.courseType].isOpen = true;
  15029. // this.courseType = this.courseTypeLine;
  15030. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15031. let params = {
  15032. courseId: this.id,
  15033. };
  15034. this.ajax
  15035. .get(this.$store.state.api + "selectCourseDetail3", params)
  15036. .then((res) => {
  15037. if (type != 2) {
  15038. loading.close();
  15039. if (
  15040. this.courseType >
  15041. JSON.parse(res.data[0][0].chapters).length - 1
  15042. ) {
  15043. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15044. }
  15045. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15046. .chapterInfo[0].taskJson;
  15047. var b = [
  15048. "AVI",
  15049. "NAVI",
  15050. "MPEG",
  15051. "ASF",
  15052. "MOV",
  15053. "WMV",
  15054. "3GP",
  15055. "RM",
  15056. "RMVB",
  15057. "FLV",
  15058. "F4V",
  15059. "H.264",
  15060. "H.265",
  15061. "REAL VIDEO",
  15062. "MKV",
  15063. "WebM",
  15064. "HDDVD",
  15065. "MP4",
  15066. "MPG",
  15067. "M4V",
  15068. "MGV",
  15069. "OGV",
  15070. "QTM",
  15071. "STR",
  15072. "AMC",
  15073. "DVX",
  15074. "EVO",
  15075. "DAT",
  15076. "OGG",
  15077. "OGM",
  15078. "MP3",
  15079. ];
  15080. let _chapterData = [];
  15081. for (var i = 0; i < a.length; i++) {
  15082. var c = a[i].chapterData;
  15083. this.vedio[i] = [];
  15084. this.textList[i] = [];
  15085. this.lineList[i] = [];
  15086. this.chapToolList[i] = [];
  15087. this.file[i] = [];
  15088. this.fileC[i] = [];
  15089. _chapterData[i] = c.filter((el) => {
  15090. return el.type != 12;
  15091. });
  15092. this.fileC[i] = c.filter((el) => {
  15093. return el.type == 12;
  15094. });
  15095. // else if (c[j].type == 12) {
  15096. // this.fileC[i].push(c[j]);
  15097. // }
  15098. for (var j = 0; j < c.length; j++) {
  15099. if (c[j].type == 7) {
  15100. this.chapToolList[i].push(c[j]);
  15101. } else if (c[j].type == 8 || c[j].type == 14) {
  15102. this.lineList[i].push(c[j]);
  15103. } else if (c[j].type == 6) {
  15104. this.textList[i].push(c[j]);
  15105. } else {
  15106. if (
  15107. b.indexOf(
  15108. c[j].url
  15109. .split(".")
  15110. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15111. ) != -1
  15112. ) {
  15113. this.vedio[i].push(c[j]);
  15114. } else {
  15115. this.file[i].push(c[j]);
  15116. }
  15117. }
  15118. }
  15119. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15120. d.sources[0].src =
  15121. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15122. this.playerO[i] = d;
  15123. }
  15124. this.courseDetail = res.data[0][0];
  15125. this.tcid = this.arrayToArray(
  15126. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15127. this.tcid2 ? this.tcid2.split(",") : []
  15128. ).join(",");
  15129. this.evalua = res.data[0][0].evaId;
  15130. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15131. this.courseType
  15132. ];
  15133. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15134. if (this.tcid && res.data[1].length) {
  15135. let _inviteA = [];
  15136. for (var ik = 0; ik < res.data[1].length; ik++) {
  15137. _inviteA.push({
  15138. cid: res.data[1][ik].classid,
  15139. ic: res.data[1][ik].code,
  15140. });
  15141. }
  15142. for (var ik = 0; ik < _inviteA.length; ik++) {
  15143. if (
  15144. this.arrayToArray(
  15145. _inviteA[ik].cid.split(","),
  15146. this.tcid.split(",")
  15147. ).length
  15148. ) {
  15149. this.inviteCode = _inviteA[ik].ic;
  15150. break;
  15151. }
  15152. }
  15153. }
  15154. for (var l = 0; l < this.chapInfoList.length; l++) {
  15155. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15156. for (var m = 0; m < w.length; m++) {
  15157. w[m].id = l + "-" + m;
  15158. }
  15159. }
  15160. let taskCount = 0;
  15161. if (
  15162. _chapterData[taskCount].length &&
  15163. _chapterData[taskCount][0].type == 2
  15164. ) {
  15165. this.showType = 0;
  15166. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  15167. } else {
  15168. if (_chapterData[taskCount].length > 0) {
  15169. let _url = _chapterData[taskCount][0].url;
  15170. if (
  15171. _chapterData[taskCount][0].type == 8 ||
  15172. _chapterData[taskCount][0].type == 14
  15173. ) {
  15174. this.showType = 2;
  15175. if (
  15176. _url.indexOf("https://") == -1 &&
  15177. _url.indexOf("http://") == -1
  15178. ) {
  15179. _url = "https://" + _url;
  15180. }
  15181. this.pptImgUrl1 = _url;
  15182. } else if (_chapterData[taskCount][0].type == 3) {
  15183. if (
  15184. _url
  15185. .split(".")
  15186. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15187. ) {
  15188. this.showType = 3;
  15189. this.pptImgUrl1 = _url;
  15190. } else if (
  15191. this.isAssetTypeAnImage(
  15192. _url
  15193. .split(".")
  15194. [_url.split(".").length - 1].toLocaleLowerCase()
  15195. )
  15196. ) {
  15197. this.showType = 4;
  15198. this.pptImgUrl1 = _url;
  15199. } else {
  15200. this.showType = 2;
  15201. this.pptImgUrl1 =
  15202. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15203. _url;
  15204. }
  15205. } else if (_chapterData[taskCount][0].type == 13) {
  15206. this.showType = 4;
  15207. this.pptImgUrl1 = _url;
  15208. } else if (_chapterData[taskCount][0].type == 6) {
  15209. this.showType = 1;
  15210. this.text = this.textList[taskCount][0];
  15211. }
  15212. }
  15213. }
  15214. this.isClickNav = 0;
  15215. if (
  15216. !_chapterData[taskCount].length ||
  15217. _chapterData[taskCount][0].type == 12
  15218. ) {
  15219. this.isClickNav = "";
  15220. this.showType = "";
  15221. }
  15222. this.vChapterData = _chapterData;
  15223. } else {
  15224. this.showType = 0;
  15225. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15226. .chapterInfo[0].taskJson;
  15227. var b = [
  15228. "AVI",
  15229. "NAVI",
  15230. "MPEG",
  15231. "ASF",
  15232. "MOV",
  15233. "WMV",
  15234. "3GP",
  15235. "RM",
  15236. "RMVB",
  15237. "FLV",
  15238. "F4V",
  15239. "H.264",
  15240. "H.265",
  15241. "REAL VIDEO",
  15242. "MKV",
  15243. "WebM",
  15244. "HDDVD",
  15245. "MP4",
  15246. "MPG",
  15247. "M4V",
  15248. "MGV",
  15249. "OGV",
  15250. "QTM",
  15251. "STR",
  15252. "AMC",
  15253. "DVX",
  15254. "EVO",
  15255. "DAT",
  15256. "OGG",
  15257. "OGM",
  15258. "MP3",
  15259. ];
  15260. let _chapterData = [];
  15261. for (var i = 0; i < a.length; i++) {
  15262. var c = a[i].chapterData;
  15263. this.vedio[i] = [];
  15264. this.textList[i] = [];
  15265. this.lineList[i] = [];
  15266. this.chapToolList[i] = [];
  15267. this.file[i] = [];
  15268. this.fileC[i] = [];
  15269. _chapterData[i] = c.filter((el) => {
  15270. return el.type != 12;
  15271. });
  15272. this.fileC[i] = c.filter((el) => {
  15273. return el.type == 12;
  15274. });
  15275. for (var j = 0; j < c.length; j++) {
  15276. if (c[j].type == 7) {
  15277. this.chapToolList[i].push(c[j]);
  15278. } else if (c[j].type == 8 || c[j].type == 14) {
  15279. this.lineList[i].push(c[j]);
  15280. } else if (c[j].type == 6) {
  15281. this.textList[i].push(c[j]);
  15282. } else {
  15283. if (
  15284. b.indexOf(
  15285. c[j].url
  15286. .split(".")
  15287. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15288. ) != -1
  15289. ) {
  15290. this.vedio[i].push(c[j]);
  15291. } else {
  15292. this.file[i].push(c[j]);
  15293. }
  15294. }
  15295. }
  15296. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15297. d.sources[0].src =
  15298. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15299. this.playerO[i] = d;
  15300. }
  15301. let taskCount = 0;
  15302. if (
  15303. _chapterData[taskCount].length &&
  15304. _chapterData[taskCount][0].type == 2
  15305. ) {
  15306. this.showType = 0;
  15307. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  15308. } else {
  15309. if (_chapterData[taskCount].length > 0) {
  15310. let _url = _chapterData[taskCount][0].url;
  15311. if (
  15312. _chapterData[taskCount][0].type == 8 ||
  15313. _chapterData[taskCount][0].type == 14
  15314. ) {
  15315. this.showType = 2;
  15316. if (
  15317. _url.indexOf("https://") == -1 &&
  15318. _url.indexOf("http://") == -1
  15319. ) {
  15320. _url = "https://" + _url;
  15321. }
  15322. this.pptImgUrl1 = _url;
  15323. } else if (_chapterData[taskCount][0].type == 3) {
  15324. if (
  15325. _url
  15326. .split(".")
  15327. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15328. ) {
  15329. this.showType = 3;
  15330. this.pptImgUrl1 = _url;
  15331. } else if (
  15332. this.isAssetTypeAnImage(
  15333. _url
  15334. .split(".")
  15335. [_url.split(".").length - 1].toLocaleLowerCase()
  15336. )
  15337. ) {
  15338. this.showType = 4;
  15339. this.pptImgUrl1 = _url;
  15340. } else {
  15341. this.showType = 2;
  15342. this.pptImgUrl1 =
  15343. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15344. _url;
  15345. }
  15346. } else if (_chapterData[taskCount][0].type == 13) {
  15347. this.showType = 4;
  15348. this.pptImgUrl1 = _url;
  15349. } else if (_chapterData[taskCount][0].type == 6) {
  15350. this.showType = 1;
  15351. this.text = this.textList[taskCount][0];
  15352. }
  15353. }
  15354. }
  15355. this.isClickNav = 0;
  15356. if (
  15357. !_chapterData[taskCount].length ||
  15358. _chapterData[taskCount][0].type == 12
  15359. ) {
  15360. this.isClickNav = "";
  15361. this.showType = "";
  15362. }
  15363. this.vChapterData = _chapterData;
  15364. this.$forceUpdate();
  15365. }
  15366. // else {
  15367. // this.courseDetail = res.data[0][0];
  15368. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15369. // }
  15370. let _this = this;
  15371. if (_this.timer) {
  15372. clearInterval(_this.timer);
  15373. _this.timer = null;
  15374. }
  15375. if (_this.tcid) {
  15376. _this.getCourseGroup(gindex);
  15377. } else {
  15378. _this.selectSWorks(gindex);
  15379. }
  15380. _this.selectStudent();
  15381. _this.selectSLook();
  15382. _this.getPick();
  15383. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15384. _this.setCTask();
  15385. }
  15386. if (_this.dialogVisibleGroup) {
  15387. _this.groupJson =
  15388. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15389. _this.taskCount
  15390. ].toolChoose[_this.toolindex].groupJson;
  15391. }
  15392. _this.$nextTick(() => {
  15393. setTimeout(() => {
  15394. _this.checkEva();
  15395. }, 1000);
  15396. });
  15397. _this.timer = setInterval(function () {
  15398. // _this.getCourseDetail(2);
  15399. if (_this.tcid) {
  15400. _this.getCourseGroup(gindex);
  15401. } else {
  15402. _this.selectSWorks(gindex);
  15403. }
  15404. _this.selectStudent();
  15405. _this.selectSLook();
  15406. _this.getPick();
  15407. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  15408. _this.setCTask();
  15409. }
  15410. if (_this.dialogVisibleGroup) {
  15411. _this.groupJson =
  15412. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  15413. _this.taskCount
  15414. ].toolChoose[_this.toolindex].groupJson;
  15415. }
  15416. if (_this.tType == 4 || _this.ispzType == 4) {
  15417. _this.selectPz();
  15418. }
  15419. }, 5000);
  15420. _this.$nextTick(function () {
  15421. setTimeout(() => {
  15422. // var a =
  15423. // document.getElementsByClassName("box_course")[0].offsetHeight;
  15424. // document.getElementsByClassName("vedioList")[0].style.height =
  15425. // a + "px";
  15426. // document.getElementsByClassName("navBox")[0].style.height =
  15427. // a - 40 + "px";
  15428. // if (_this.vedio[_this.taskCount].length > 0) {
  15429. // _this.vedioTime = [];
  15430. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  15431. // _this.vedioTime[i] = document.getElementsByClassName(
  15432. // "vjs-duration-display"
  15433. // )[i].textContent;
  15434. // }
  15435. // }
  15436. }, 1000);
  15437. });
  15438. })
  15439. .catch((err) => {
  15440. loading.close();
  15441. console.error(err);
  15442. });
  15443. },
  15444. getCourseGroup(gindex) {
  15445. let params = {
  15446. cid: this.id,
  15447. classid: this.tcid ? this.tcid : "1",
  15448. };
  15449. this.ajax
  15450. .get(this.$store.state.api + "getCourseGroup", params)
  15451. .then((res) => {
  15452. if (res.data && res.data[0].length) {
  15453. if (!this.isGroup) {
  15454. let courseGroup = JSON.parse(res.data[0][0].group);
  15455. courseGroup.group = courseGroup.group.filter((el) => {
  15456. el.works = [];
  15457. return el;
  15458. });
  15459. if (courseGroup.isopen == 2) {
  15460. this.isGroup = false;
  15461. this.selectSWorks(gindex);
  15462. return;
  15463. }
  15464. this.courseGroup = courseGroup;
  15465. let groupPerson = res.data[1];
  15466. let group = JSON.parse(res.data[0][0].group).group;
  15467. let courseGroupStudent = {};
  15468. let courseGroupStudentUid = {};
  15469. for (var i = 0; i < group.length; i++) {
  15470. courseGroupStudent[group[i].id] = [];
  15471. courseGroupStudentUid[group[i].id] = [];
  15472. for (var j = 0; j < groupPerson.length; j++) {
  15473. if (groupPerson[j].groupCid == group[i].id) {
  15474. courseGroupStudent[group[i].id].push(groupPerson[j]);
  15475. courseGroupStudentUid[group[i].id].push(
  15476. groupPerson[j].userid
  15477. );
  15478. }
  15479. }
  15480. }
  15481. this.courseGroupStudent = courseGroupStudent;
  15482. this.courseGroupStudentUid = courseGroupStudentUid;
  15483. }
  15484. if (this.courseGroup.isopen == 2) {
  15485. this.isGroup = false;
  15486. } else {
  15487. this.isGroup = true;
  15488. }
  15489. this.selectSWorks(gindex);
  15490. } else {
  15491. this.selectSWorks(gindex);
  15492. this.isGroup = false;
  15493. }
  15494. })
  15495. .catch((err) => {
  15496. // this.$message.error("网络不佳");
  15497. console.error(err);
  15498. });
  15499. },
  15500. setOperationTime() {
  15501. let _this = this;
  15502. if (_this.opertimer) {
  15503. clearInterval(_this.opertimer);
  15504. _this.opertimer = null;
  15505. }
  15506. _this.opertimer = setInterval(() => {
  15507. _this.setoTime("600");
  15508. }, 600000);
  15509. },
  15510. setoTime(time) {
  15511. let params = [
  15512. {
  15513. uid: this.userid,
  15514. cid: this.id,
  15515. type: "2",
  15516. time: time,
  15517. },
  15518. ];
  15519. this.ajax
  15520. .post(this.$store.state.api + "addOperationTimeT2", params)
  15521. .then((res) => {})
  15522. .catch((err) => {
  15523. console.error(err);
  15524. });
  15525. },
  15526. addPz(type, content) {
  15527. if (type == "1" && this.pzConText == "") {
  15528. this.$message.error("批注不能为空!");
  15529. return;
  15530. }
  15531. let params = [
  15532. {
  15533. cid: this.id,
  15534. uid: this.userid,
  15535. s: this.courseType,
  15536. t: this.taskCount,
  15537. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  15538. type: type,
  15539. },
  15540. ];
  15541. this.ajax
  15542. .post(this.$store.state.api + "addPz2", params)
  15543. .then((res) => {
  15544. this.$message({
  15545. message: "添加成功",
  15546. type: "success",
  15547. });
  15548. this.pzConText = "";
  15549. this.addPzDialog = false;
  15550. this.selectPz();
  15551. })
  15552. .catch((err) => {
  15553. this.$message.error("添加失败");
  15554. console.error(err);
  15555. });
  15556. },
  15557. setReplyIndex(id, i) {
  15558. this.replyIndex = i;
  15559. this.replyPid = id;
  15560. this.replyDialogVisible = true;
  15561. },
  15562. addHf() {
  15563. if (this.reply == "") {
  15564. this.$message.error("回复不能为空!");
  15565. return;
  15566. }
  15567. let params = [
  15568. {
  15569. cid: this.id,
  15570. uid: this.userid,
  15571. s: this.courseType,
  15572. t: this.taskCount,
  15573. type: "1",
  15574. ct: 2,
  15575. pid: this.replyPid,
  15576. c: this.reply.replaceAll(/%/g, "%25"),
  15577. },
  15578. ];
  15579. this.ajax
  15580. .post(this.$store.state.api + "addHf", params)
  15581. .then((res) => {
  15582. this.reply = "";
  15583. this.$message({
  15584. message: "回复成功",
  15585. type: "success",
  15586. });
  15587. this.replyDialogVisible = false;
  15588. this.selectPz();
  15589. })
  15590. .catch((err) => {
  15591. this.$message.error("回复失败");
  15592. console.error(err);
  15593. });
  15594. },
  15595. deletePz(id) {
  15596. this.$confirm("确定删除此批注吗?", "提示", {
  15597. confirmButtonText: "确定",
  15598. cancelButtonText: "取消",
  15599. type: "warning",
  15600. })
  15601. .then(() => {
  15602. let params = [
  15603. {
  15604. id: id,
  15605. },
  15606. ];
  15607. this.ajax
  15608. .post(this.$store.state.api + "deletePz", params)
  15609. .then((res) => {
  15610. this.$message({
  15611. message: "删除成功",
  15612. type: "success",
  15613. });
  15614. this.selectPz();
  15615. })
  15616. .catch((err) => {
  15617. this.$message.error("网络异常");
  15618. console.error(err);
  15619. });
  15620. })
  15621. .catch(() => {});
  15622. },
  15623. deleteReply(id) {
  15624. this.$confirm("确定删除此回复吗?", "提示", {
  15625. confirmButtonText: "确定",
  15626. cancelButtonText: "取消",
  15627. type: "warning",
  15628. })
  15629. .then(() => {
  15630. let params = [
  15631. {
  15632. id: id,
  15633. },
  15634. ];
  15635. this.ajax
  15636. .post(this.$store.state.api + "deleteReply", params)
  15637. .then((res) => {
  15638. this.$message({
  15639. message: "删除成功",
  15640. type: "success",
  15641. });
  15642. this.selectPz();
  15643. })
  15644. .catch((err) => {
  15645. this.$message.error("网络异常");
  15646. console.error(err);
  15647. });
  15648. })
  15649. .catch(() => {});
  15650. },
  15651. setPz() {
  15652. if (this.ispzType == 4) {
  15653. this.ispzType = 0;
  15654. this.pzDialog = false;
  15655. return;
  15656. }
  15657. this.ispzType = 4;
  15658. this.pzDialog = true;
  15659. this.selectPz();
  15660. },
  15661. selectPz() {
  15662. let params = {
  15663. cid: this.id,
  15664. s: this.courseType,
  15665. t: this.taskCount,
  15666. type: this.pzStype,
  15667. uid: this.userid,
  15668. };
  15669. this.ajax
  15670. .get(this.$store.state.api + "selectPzListType", params)
  15671. .then((res) => {
  15672. this.pzList = res.data[0];
  15673. var a = res.data[1];
  15674. for (var i = 0; i < a.length; i++) {
  15675. for (var j = 0; j < this.pzList.length; j++) {
  15676. if (!this.pzList[j].hfList) {
  15677. this.pzList[j].hfList = [];
  15678. }
  15679. if (a[i].pid == this.pzList[j].id) {
  15680. this.pzList[j].hfList.push(a[i]);
  15681. }
  15682. }
  15683. }
  15684. })
  15685. .catch((err) => {
  15686. console.error(err);
  15687. });
  15688. },
  15689. // selectHf() {
  15690. // let params = {
  15691. // cid: this.id,
  15692. // s: this.courseType,
  15693. // t: this.taskCount,
  15694. // };
  15695. // this.ajax
  15696. // .get(this.$store.state.api + "selectHfList", params)
  15697. // .then((res) => {
  15698. // var a = res.data[0];
  15699. // for (var i = 0; i < a.length; i++) {
  15700. // for (var j = 0; j < this.pzList.length; j++) {
  15701. // if (!this.pzList[i].hfList) {
  15702. // this.pzList[i].hfList = [];
  15703. // }
  15704. // if (a[i].pid == this.pzList[j].id) {
  15705. // this.pzList[i].hfList.push(a[i]);
  15706. // }
  15707. // }
  15708. // }
  15709. // })
  15710. // .catch((err) => {
  15711. // console.error(err);
  15712. // });
  15713. // },
  15714. updateSLook() {
  15715. let params = {
  15716. sopen: this.sIsOpen == false ? 1 : 2,
  15717. cid: this.id,
  15718. };
  15719. this.ajax
  15720. .get(this.$store.state.api + "updateCourseSLook", params)
  15721. .then((res) => {
  15722. if (this.sIsOpen == true) {
  15723. this.$message({
  15724. message: "权限设置成功",
  15725. type: "success",
  15726. });
  15727. } else {
  15728. this.$message({
  15729. message: "权限关闭成功",
  15730. type: "success",
  15731. });
  15732. }
  15733. })
  15734. .catch((err) => {
  15735. console.error(err);
  15736. });
  15737. },
  15738. updateFollow() {
  15739. let params = [
  15740. {
  15741. sopen: this.IsFollow == false ? 1 : 2,
  15742. cid: this.id,
  15743. },
  15744. ];
  15745. this.ajax
  15746. .post(this.$store.state.api + "updateCourseFollow", params)
  15747. .then((res) => {
  15748. if (this.IsFollow == true) {
  15749. this.$message({
  15750. message: "开启成功",
  15751. type: "success",
  15752. });
  15753. } else {
  15754. this.$message({
  15755. message: "关闭成功",
  15756. type: "success",
  15757. });
  15758. }
  15759. this.setCTask();
  15760. })
  15761. .catch((err) => {
  15762. console.error(err);
  15763. });
  15764. },
  15765. setCTask() {
  15766. let params = [
  15767. {
  15768. sopen: this.courseType + "-" + this.taskCount,
  15769. cid: this.id,
  15770. },
  15771. ];
  15772. this.ajax
  15773. .post(this.$store.state.api + "updateCourseFollowC", params)
  15774. .then((res) => {})
  15775. .catch((err) => {
  15776. console.error(err);
  15777. });
  15778. },
  15779. updateLookOpen() {
  15780. let params = [
  15781. {
  15782. sopen: this.IsLookOpen == false ? 1 : 2,
  15783. cid: this.id,
  15784. },
  15785. ];
  15786. this.ajax
  15787. .post(this.$store.state.api + "updateCourseLookOpen", params)
  15788. .then((res) => {
  15789. if (this.IsLookOpen == true) {
  15790. // if (this.courseType != 0 && this.taskCount != 0) {
  15791. // this.openTask(0, 0, "0-0");
  15792. // }
  15793. this.$message({
  15794. message: "权限设置成功",
  15795. type: "success",
  15796. });
  15797. } else {
  15798. this.$message({
  15799. message: "权限关闭成功",
  15800. type: "success",
  15801. });
  15802. }
  15803. this.getCourseState(2);
  15804. })
  15805. .catch((err) => {
  15806. console.error(err);
  15807. });
  15808. },
  15809. selectSLook() {
  15810. let params = {
  15811. cid: this.id,
  15812. };
  15813. this.ajax
  15814. .get(this.$store.state.api + "selectCourseSLook", params)
  15815. .then((res) => {
  15816. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  15817. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  15818. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  15819. if (!this.IsLookOpen) {
  15820. this.setNavList();
  15821. } else {
  15822. this.getCourseState(1);
  15823. }
  15824. if (this.IsFollow && this.tType == 2) {
  15825. this.setContent2(false);
  15826. let _followC = res.data[0][0].followC.split("-");
  15827. if (
  15828. this.courseType != _followC[0] ||
  15829. this.taskCount != _followC[1]
  15830. ) {
  15831. this.navList[this.courseType].isOpen = false;
  15832. this.courseType = _followC[0];
  15833. this.navList[this.courseType].isOpen = true;
  15834. this.taskCount = parseInt(_followC[1]);
  15835. this.navId = res.data[0][0].followC;
  15836. document.scrollingElement.scrollTop = 0;
  15837. this.getCourseDetail(2);
  15838. }
  15839. }
  15840. })
  15841. .catch((err) => {
  15842. console.error(err);
  15843. });
  15844. },
  15845. setNavList() {
  15846. if (this.navList.length == 0) {
  15847. this.navList = [];
  15848. var copyList = [];
  15849. for (var l = 0; l < this.chapInfoList.length; l++) {
  15850. var q = this.chapInfoList[l].dyName;
  15851. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15852. var e;
  15853. copyList.push({
  15854. dyName: q,
  15855. isOpen: l === 0 ? true : false,
  15856. task: [],
  15857. });
  15858. for (var r = 0; r < w.length; r++) {
  15859. e = w[r].task;
  15860. if (this.chapInfoList[l].easy == 1) {
  15861. copyList[l].task.push({
  15862. taskName: q,
  15863. id: l + "-" + r,
  15864. isLook: w[r].isLook,
  15865. isOpen: r === 0 ? true : false,
  15866. tool: [],
  15867. });
  15868. } else {
  15869. copyList[l].task.push({
  15870. taskName: e,
  15871. id: l + "-" + r,
  15872. isLook: w[r].isLook,
  15873. isOpen: r === 0 ? true : false,
  15874. tool: [],
  15875. });
  15876. }
  15877. var t = w[r].toolChoose;
  15878. for (var k = 0; k < t.length; k++) {
  15879. var tool = t[k].tool[0];
  15880. copyList[l].task[r].tool.push({
  15881. tool: tool,
  15882. isTool: false,
  15883. });
  15884. }
  15885. // this.navId = this.navId ? this.navId : l + "-" + r;
  15886. // this.navId = l + "-" + r;
  15887. }
  15888. }
  15889. this.navList = copyList;
  15890. this.navList[0].isOpen = false;
  15891. this.navList[this.courseType].isOpen = true;
  15892. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15893. } else {
  15894. this.setNavList2();
  15895. }
  15896. },
  15897. setNavList2() {
  15898. for (var l = 0; l < this.chapInfoList.length; l++) {
  15899. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15900. for (var r = 0; r < w.length; r++) {
  15901. this.navList[l].task[r].isLook = w[r].isLook;
  15902. }
  15903. }
  15904. if (
  15905. this.IsLookOpen &&
  15906. !this.navList[this.courseType].task[this.taskCount].isLook
  15907. ) {
  15908. this.openTask(0, 0, "0-0");
  15909. }
  15910. this.$forceUpdate();
  15911. },
  15912. getCourseState(type) {
  15913. let params = {
  15914. cid: this.id,
  15915. };
  15916. this.ajax
  15917. .get(this.$store.state.api + "getCourseState", params)
  15918. .then((res) => {
  15919. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  15920. this.chapInfoList = JSON.parse(res.data[0][0].state);
  15921. this.setNavList();
  15922. this.$forceUpdate();
  15923. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  15924. this.addCourseState(2);
  15925. } else {
  15926. this.addCourseState(1);
  15927. }
  15928. })
  15929. .catch((err) => {
  15930. console.error(err);
  15931. });
  15932. },
  15933. addCourseState(type) {
  15934. let _state = this.chapInfoList;
  15935. // this.courseType this.taskCount
  15936. if (type == 1 || type == 2) {
  15937. for (var i = 0; i < _state.length; i++) {
  15938. let el = _state[i].chapterInfo[0].taskJson;
  15939. for (var j = 0; j < el.length; j++) {
  15940. // if (i == 0 && j == 0) {
  15941. // el[j].isLook = true;
  15942. // } else {
  15943. // el[j].isLook = false;
  15944. // }
  15945. if (
  15946. this.courseType > i ||
  15947. (this.courseType == i && this.taskCount + 1 > j)
  15948. ) {
  15949. el[j].isLook = true;
  15950. } else {
  15951. el[j].isLook = false;
  15952. }
  15953. }
  15954. }
  15955. }
  15956. let params = [
  15957. {
  15958. cid: this.id,
  15959. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  15960. },
  15961. ];
  15962. this.ajax
  15963. .post(
  15964. this.$store.state.api +
  15965. (type == 1 ? "addCourseState" : "updateCourseSate"),
  15966. params
  15967. )
  15968. .then((res) => {
  15969. if (this.IsLookOpen) {
  15970. this.setNavList();
  15971. }
  15972. if (type == 3 && type == 2) {
  15973. this.getCourseState(1);
  15974. }
  15975. })
  15976. .catch((err) => {
  15977. console.error(err);
  15978. });
  15979. },
  15980. getHomeWork() {
  15981. let params = {
  15982. cid: this.id,
  15983. stage: this.courseType,
  15984. task: this.taskCount,
  15985. uid: this.userid,
  15986. };
  15987. this.ajax
  15988. .get(this.$store.state.api + "selectWork", params)
  15989. .then((res) => {
  15990. if (res.data[0].length > 0) {
  15991. this.studyJuri = JSON.parse(res.data[0][0].content);
  15992. this.isNoHomeWork = true;
  15993. }
  15994. })
  15995. .catch((err) => {
  15996. console.error(err);
  15997. });
  15998. },
  15999. isAssetTypeAnImage(ext) {
  16000. return (
  16001. [
  16002. "png",
  16003. "jpg",
  16004. "jpeg",
  16005. "bmp",
  16006. "gif",
  16007. "webp",
  16008. "psd",
  16009. "svg",
  16010. "tiff",
  16011. ].indexOf(ext) !== -1
  16012. );
  16013. },
  16014. switchVideo(media) {
  16015. this.playerO = {};
  16016. this.playerOptions.poster = "";
  16017. this.playerOptions.sources[0].src = media;
  16018. this.playerO = this.playerOptions;
  16019. },
  16020. onPlayerPlay() {},
  16021. onPlayerTimeupdate(player) {
  16022. let gklog = player.cache_.currentTime; //当前播放的秒数
  16023. let a = player.cache_.duration; //视频的总时长
  16024. let gklog2 = parseInt(gklog);
  16025. // if(gklog2 == '3'){
  16026. // player.pause()
  16027. // setTimeout(()=>{
  16028. // player.currentTime(gklog2+1)
  16029. // player.play()
  16030. // },1000)
  16031. // }
  16032. console.log(" onPlayerTimeupdate!", gklog);
  16033. console.log(" onPlayerTimeupdate!", gklog2);
  16034. },
  16035. lookVedio(u, i) {
  16036. this.isClickNav = "";
  16037. // this.playerOptions.sources[0].src = u;
  16038. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16039. d.sources[0].src = u;
  16040. this.playerO[0] = d;
  16041. this.showType = 0;
  16042. // this.isClickNav = "video" + i;
  16043. this.isClickNav = i;
  16044. this.$forceUpdate();
  16045. },
  16046. lookText(i, t) {
  16047. this.isClickNav = "";
  16048. // this.text = this.textList[i][t];
  16049. this.text = this.vChapterData[i][t];
  16050. // this.dialogVisible1 = true;
  16051. this.showType = 1;
  16052. // this.isClickNav = "text" + t;
  16053. this.isClickNav = t;
  16054. },
  16055. lookTools(i, t) {
  16056. this.chapTools = this.chapToolList[i][t];
  16057. this.dialogVisible2 = true;
  16058. },
  16059. openFile(f) {
  16060. this.pptImgUrl = "";
  16061. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16062. if (
  16063. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16064. -1
  16065. ) {
  16066. this.pptImgUrl =
  16067. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  16068. this.showPDF = false;
  16069. this.dialogVisible3 = true;
  16070. } else if (
  16071. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16072. ) {
  16073. this.pptImgUrl = f;
  16074. this.showPDF = true;
  16075. this.dialogVisible3 = true;
  16076. }
  16077. },
  16078. openTable(f) {
  16079. this.tableJson = JSON.parse(f.works);
  16080. this.dialogVisibleTable2 = true;
  16081. },
  16082. openWord(f) {
  16083. this.tableJson = JSON.parse(f.works);
  16084. this.dialogVisibleTable3 = true;
  16085. },
  16086. doUrl(url, i) {
  16087. this.isClickNav = "";
  16088. this.pptImgUrl1 = "";
  16089. this.showType = 2;
  16090. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16091. url = "https://" + url;
  16092. }
  16093. this.pptImgUrl1 = "";
  16094. setTimeout(() => {
  16095. this.pptImgUrl1 = url;
  16096. }, 500);
  16097. // this.isClickNav = "line" + i;
  16098. this.isClickNav = i;
  16099. this.$forceUpdate();
  16100. },
  16101. checkPhoto(f, i) {
  16102. this.showType = 4;
  16103. this.pptImgUrl1 = f.url;
  16104. this.isClickNav = i;
  16105. this.$forceUpdate();
  16106. },
  16107. downFile(f, i) {
  16108. this.isClickNav = "";
  16109. this.pptImgUrl1 = "";
  16110. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16111. if (
  16112. a.indexOf(
  16113. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16114. ) != -1
  16115. ) {
  16116. this.pptImgUrl1 =
  16117. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  16118. // this.dialogVisible3 = true;
  16119. this.showType = 2;
  16120. } else if (
  16121. this.isAssetTypeAnImage(
  16122. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16123. )
  16124. ) {
  16125. this.showType = 4;
  16126. this.pptImgUrl1 = f.url;
  16127. } else if (
  16128. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16129. "PDF"
  16130. ) {
  16131. this.pptImgUrl1 = f.url;
  16132. // this.dialogVisible3 = true;
  16133. this.showType = 3;
  16134. } else {
  16135. window.open(this.file[i].url);
  16136. }
  16137. // this.isClickNav = "word" + i;
  16138. this.isClickNav = i;
  16139. },
  16140. downFileList(i) {
  16141. window.open(this.noImgList[i].url);
  16142. },
  16143. openAddWork() {
  16144. this.dialogVisible = true;
  16145. },
  16146. addBzWorks() {
  16147. let params = [
  16148. {
  16149. uid: this.userid,
  16150. cid: this.id,
  16151. stage: this.courseType,
  16152. task: this.taskCount,
  16153. tool: this.toolindex,
  16154. content: JSON.stringify(this.eScore),
  16155. type: 6,
  16156. },
  16157. ];
  16158. this.ajax
  16159. .post(this.$store.state.api + "addCourseWorks", params)
  16160. .then((res) => {
  16161. this.$message({
  16162. message: "提交成功",
  16163. type: "success",
  16164. });
  16165. this.eScore = { eBzText: "", eStar: [] };
  16166. this.studentEvalDialogVisible = false;
  16167. this.selectSWorks();
  16168. })
  16169. .catch((err) => {
  16170. this.$message.error("提交失败");
  16171. console.error(err);
  16172. });
  16173. },
  16174. addBzWorksTeacher() {
  16175. let params = [
  16176. {
  16177. uid: this.sStudent.userid,
  16178. cid: this.id,
  16179. stage: this.courseType,
  16180. task: this.taskCount,
  16181. tool: this.toolindex,
  16182. content: JSON.stringify(this.eScore),
  16183. type: 6,
  16184. },
  16185. ];
  16186. this.ajax
  16187. .post(this.$store.state.api + "addCourseWorks", params)
  16188. .then((res) => {
  16189. this.$message({
  16190. message: "提交成功",
  16191. type: "success",
  16192. });
  16193. this.eScore = { eBzText: "", eStar: [] };
  16194. this.studentEvalDialogVisibleTeacher = false;
  16195. this.selectSWorks();
  16196. })
  16197. .catch((err) => {
  16198. this.$message.error("提交失败");
  16199. console.error(err);
  16200. });
  16201. },
  16202. addStudentAsk() {
  16203. if (!this.radio.length) {
  16204. this.$message.error("请选择选项");
  16205. return;
  16206. }
  16207. for (var i = 0; i < this.askJson.askCount; i++) {
  16208. if (
  16209. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16210. (this.radio[i] !== 0 && !this.radio[i])
  16211. ) {
  16212. this.$message.error("请选择选项");
  16213. return;
  16214. }
  16215. }
  16216. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16217. let params = [
  16218. {
  16219. uid: this.userid,
  16220. cid: this.id,
  16221. stage: this.courseType,
  16222. task: this.taskCount,
  16223. tool: this.toolindex,
  16224. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16225. type: 2,
  16226. },
  16227. ];
  16228. this.ajax
  16229. .post(this.$store.state.api + "addCourseWorks", params)
  16230. .then((res) => {
  16231. this.$message({
  16232. message: "提交成功",
  16233. type: "success",
  16234. });
  16235. this.askList = [];
  16236. this.dialogVisible5 = false;
  16237. this.selectStudent();
  16238. this.selectSWorks();
  16239. this.selectSLook();
  16240. })
  16241. .catch((err) => {
  16242. this.$message.error("提交失败");
  16243. console.error(err);
  16244. });
  16245. },
  16246. addStudentAskTeacher() {
  16247. if (!this.radio.length) {
  16248. this.$message.error("请选择选项");
  16249. return;
  16250. }
  16251. for (var i = 0; i < this.askJson.askCount; i++) {
  16252. if (
  16253. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16254. (this.radio[i] !== 0 && !this.radio[i])
  16255. ) {
  16256. this.$message.error("请选择选项");
  16257. return;
  16258. }
  16259. }
  16260. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16261. let params = [
  16262. {
  16263. uid: this.sStudent.userid,
  16264. cid: this.id,
  16265. stage: this.courseType,
  16266. task: this.taskCount,
  16267. tool: this.toolindex,
  16268. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16269. type: 2,
  16270. },
  16271. ];
  16272. this.ajax
  16273. .post(this.$store.state.api + "addCourseWorks", params)
  16274. .then((res) => {
  16275. this.$message({
  16276. message: "提交成功",
  16277. type: "success",
  16278. });
  16279. this.askList = [];
  16280. this.dialogVisible5Teacher = false;
  16281. this.selectStudent();
  16282. this.selectSWorks();
  16283. this.selectSLook();
  16284. })
  16285. .catch((err) => {
  16286. this.$message.error("提交失败");
  16287. console.error(err);
  16288. });
  16289. },
  16290. addStudentTest() {
  16291. if (!this.radio.length) {
  16292. this.$message.error("请选择选项");
  16293. return;
  16294. }
  16295. for (var i = 0; i < this.testJson.testCount; i++) {
  16296. if (
  16297. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16298. (this.radio[i] !== 0 && !this.radio[i])
  16299. ) {
  16300. this.$message.error("请选择选项");
  16301. return;
  16302. }
  16303. }
  16304. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16305. let params = [
  16306. {
  16307. uid: this.userid,
  16308. cid: this.id,
  16309. stage: this.courseType,
  16310. task: this.taskCount,
  16311. tool: this.toolindex,
  16312. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16313. type: 8,
  16314. },
  16315. ];
  16316. this.ajax
  16317. .post(this.$store.state.api + "addCourseWorks", params)
  16318. .then((res) => {
  16319. this.$message({
  16320. message: "提交成功",
  16321. type: "success",
  16322. });
  16323. this.askList = [];
  16324. this.dialogVisibleChoice = false;
  16325. this.selectStudent();
  16326. this.selectSWorks();
  16327. this.selectSLook();
  16328. })
  16329. .catch((err) => {
  16330. this.$message.error("提交失败");
  16331. console.error(err);
  16332. });
  16333. },
  16334. addStudentTestTeacher() {
  16335. if (!this.radio.length) {
  16336. this.$message.error("请选择选项");
  16337. return;
  16338. }
  16339. for (var i = 0; i < this.testJson.testCount; i++) {
  16340. if (
  16341. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16342. (this.radio[i] !== 0 && !this.radio[i])
  16343. ) {
  16344. this.$message.error("请选择选项");
  16345. return;
  16346. }
  16347. }
  16348. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16349. let params = [
  16350. {
  16351. uid: this.sStudent.userid,
  16352. cid: this.id,
  16353. stage: this.courseType,
  16354. task: this.taskCount,
  16355. tool: this.toolindex,
  16356. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  16357. type: 8,
  16358. },
  16359. ];
  16360. this.ajax
  16361. .post(this.$store.state.api + "addCourseWorks", params)
  16362. .then((res) => {
  16363. this.$message({
  16364. message: "提交成功",
  16365. type: "success",
  16366. });
  16367. this.askList = [];
  16368. this.dialogVisibleChoiceTeacher = false;
  16369. this.selectStudent();
  16370. this.selectSWorks();
  16371. this.selectSLook();
  16372. })
  16373. .catch((err) => {
  16374. this.$message.error("提交失败");
  16375. console.error(err);
  16376. });
  16377. },
  16378. addWork() {
  16379. if (this.studyJuri[0].content == "") {
  16380. this.$message.error("请将信息填写完整");
  16381. return;
  16382. } else if (this.studyJuri[0].cover.length == 0) {
  16383. this.$message.error("请将信息填写完整");
  16384. return;
  16385. } else if (this.studyJuri[0].upVedio.length == 0) {
  16386. this.$message.error("请将信息填写完整");
  16387. return;
  16388. }
  16389. if (this.isNoHomeWork) {
  16390. this.$confirm(
  16391. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  16392. "提示",
  16393. {
  16394. confirmButtonText: "确定",
  16395. cancelButtonText: "取消",
  16396. type: "warning",
  16397. }
  16398. )
  16399. .then(() => {
  16400. let params = [
  16401. {
  16402. uid: this.userid,
  16403. cid: this.id,
  16404. stage: this.courseType,
  16405. task: this.taskCount,
  16406. content: JSON.stringify(this.studyJuri),
  16407. },
  16408. ];
  16409. this.ajax
  16410. .post(this.$store.state.api + "addWorks", params)
  16411. .then((res) => {
  16412. this.$message({
  16413. message: "提交成功",
  16414. type: "success",
  16415. });
  16416. this.isNoHomeWork = true;
  16417. this.dialogVisible = false;
  16418. })
  16419. .catch((err) => {
  16420. this.$message.error("提交失败");
  16421. console.error(err);
  16422. });
  16423. })
  16424. .catch(() => {});
  16425. } else {
  16426. let params = [
  16427. {
  16428. uid: this.userid,
  16429. cid: this.id,
  16430. stage: this.courseType,
  16431. task: this.taskCount,
  16432. content: JSON.stringify(this.studyJuri),
  16433. },
  16434. ];
  16435. this.ajax
  16436. .post(this.$store.state.api + "addWorks", params)
  16437. .then((res) => {
  16438. this.$message({
  16439. message: "提交成功",
  16440. type: "success",
  16441. });
  16442. this.isNoHomeWork = true;
  16443. this.dialogVisible = false;
  16444. })
  16445. .catch((err) => {
  16446. this.$message.error("提交失败");
  16447. console.error(err);
  16448. });
  16449. }
  16450. },
  16451. selectCount() {
  16452. let params = {
  16453. cid: this.id,
  16454. chid: this.courseType,
  16455. uid: this.userid,
  16456. };
  16457. this.ajax
  16458. .get(this.$store.state.api + "selectToolsCount", params)
  16459. .then((res) => {
  16460. for (var i = 0; i < res.data[0].length; i++) {
  16461. if (res.data[0][i].tools == 1) {
  16462. this.wbCount = res.data[0][i].count;
  16463. } else if (res.data[0][i].tools == 2) {
  16464. this.wordCount = res.data[0][i].count;
  16465. } else if (res.data[0][i].tools == 3) {
  16466. this.mindCount = res.data[0][i].count;
  16467. } else if (res.data[0][i].tools == 4) {
  16468. this.askCount = res.data[0][i].count;
  16469. } else if (res.data[0][i].tools == 6) {
  16470. this.noteCount = res.data[0][i].count;
  16471. } else if (res.data[0][i].tools == 7) {
  16472. this.mindNetWorkCount = res.data[0][i].count;
  16473. } else if (res.data[0][i].tools == 8) {
  16474. this.libraryCount = res.data[0][i].count;
  16475. } else if (res.data[0][i].tools == 16) {
  16476. this.workCount = res.data[0][i].count;
  16477. } else if (res.data[0][i].tools == 10) {
  16478. this.timeCount = res.data[0][i].count;
  16479. } else if (res.data[0][i].tools == 15) {
  16480. this.answerCount = res.data[0][i].count;
  16481. } else if (res.data[0][i].tools == 18) {
  16482. this.trainCount = res.data[0][i].count;
  16483. }
  16484. }
  16485. })
  16486. .catch((err) => {
  16487. console.error(err);
  16488. });
  16489. },
  16490. openTools(t, i, index, c, sName) {
  16491. var z = JSON.parse(c);
  16492. this.noteName = sName;
  16493. if (t == 4) {
  16494. this.radio = [];
  16495. this.isAnswer = false;
  16496. let b = z[0].anwer;
  16497. this.radio = b;
  16498. this.askJson = z[0].askJson;
  16499. this.isAnswer = true;
  16500. this.dialogVisible5 = true;
  16501. } else if (t == 45) {
  16502. this.radio = [];
  16503. this.isAnswer = false;
  16504. let b = z[0].anwer;
  16505. this.radio = b;
  16506. this.testJson = z[0].testJson;
  16507. this.isAnswer = true;
  16508. this.dialogVisibleChoice = true;
  16509. }
  16510. // else if (t == 15) {
  16511. // this.answerQ = "";
  16512. // this.questionAnswer = "";
  16513. // this.answerQ = z[0].answerTitle;
  16514. // this.questionAnswer = z[0].answer;
  16515. // this.answerDialogVisible = true;
  16516. // }
  16517. },
  16518. fastText(p, t) {
  16519. if (t == 1) {
  16520. this.commentText += p;
  16521. } else {
  16522. this.eScore.eBzText += p;
  16523. }
  16524. },
  16525. addTools(t, i, index) {
  16526. var a = 0;
  16527. // this.taskCount = index;
  16528. this.toolindex = i;
  16529. if (t == 1) {
  16530. if (this.wbCount > 0) {
  16531. this.updateCount(this.wbCount, t);
  16532. } else {
  16533. this.wbCount++;
  16534. a = this.wbCount;
  16535. this.toolsCount(a, t);
  16536. }
  16537. window.parent.postMessage(
  16538. {
  16539. tools: "1",
  16540. cid: this.id,
  16541. stage: this.courseType,
  16542. task: this.taskCount,
  16543. tool: i,
  16544. },
  16545. "*"
  16546. );
  16547. } else if (t == 2) {
  16548. if (this.wordCount > 0) {
  16549. this.updateCount(this.wordCount, t);
  16550. } else {
  16551. this.wordCount++;
  16552. a = this.wordCount;
  16553. this.toolsCount(a, t);
  16554. }
  16555. window.parent.postMessage({ tools: "2" }, "*");
  16556. } else if (t == 3) {
  16557. if (this.mindCount > 0) {
  16558. this.updateCount(this.mindCount, t);
  16559. } else {
  16560. this.mindCount++;
  16561. a = this.mindCount;
  16562. this.toolsCount(a, t);
  16563. }
  16564. window.parent.postMessage(
  16565. {
  16566. tools: "3",
  16567. cid: this.id,
  16568. stage: this.courseType,
  16569. task: this.taskCount,
  16570. tool: i,
  16571. },
  16572. "*"
  16573. );
  16574. } else if (t == 4) {
  16575. this.radio = [];
  16576. this.noteName = "";
  16577. this.isAnswer = false;
  16578. if (this.askCount > 0) {
  16579. this.updateCount(this.askCount, t);
  16580. } else {
  16581. this.askCount++;
  16582. a = this.askCount;
  16583. this.toolsCount(a, t);
  16584. }
  16585. if (!this.dialogVisible2) {
  16586. this.askJson.askJson =
  16587. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16588. index
  16589. ].toolChoose[i].askJson;
  16590. this.askJson.askTitle =
  16591. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16592. index
  16593. ].toolChoose[i].askTitle;
  16594. this.askJson.askCount =
  16595. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16596. index
  16597. ].toolChoose[i].askCount;
  16598. } else {
  16599. this.askJson.askJson = this.chapTools.askJson.askJson;
  16600. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  16601. this.askJson.askCount = this.chapTools.askJson.askCount;
  16602. }
  16603. for (var k = 0; k < this.askJson.askJson.length; k++) {
  16604. if (this.askJson.askJson[k].type == "2") {
  16605. this.radio.push([]);
  16606. } else {
  16607. this.radio.push("");
  16608. }
  16609. }
  16610. this.dialogVisible5 = true;
  16611. // window.parent.postMessage({ tools: "4" }, "*");
  16612. } else if (t == 45) {
  16613. this.noteName = "";
  16614. this.radio = [];
  16615. this.isAnswer = false;
  16616. if (this.askCount > 0) {
  16617. this.updateCount(this.askCount, t);
  16618. } else {
  16619. this.askCount++;
  16620. a = this.askCount;
  16621. this.toolsCount(a, t);
  16622. }
  16623. this.testJson =
  16624. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16625. index
  16626. ].toolChoose[i].testJson;
  16627. for (var k = 0; k < this.testJson.testJson.length; k++) {
  16628. if (this.testJson.testJson[k].type == "2") {
  16629. this.radio.push([]);
  16630. } else {
  16631. this.radio.push("");
  16632. }
  16633. }
  16634. this.dialogVisibleChoice = true;
  16635. // window.parent.postMessage({ tools: "4" }, "*");
  16636. } else if (t == 5) {
  16637. if (this.scoreCount > 0) {
  16638. this.updateCount(this.scoreCount, t);
  16639. } else {
  16640. this.scoreCount++;
  16641. a = this.scoreCount;
  16642. this.toolsCount(a, t);
  16643. }
  16644. this.dialogVisible4 = true;
  16645. // window.parent.postMessage({ tools: "5" }, "*");
  16646. } else if (t == 6) {
  16647. if (this.noteCount > 0) {
  16648. this.updateCount(this.noteCount, t);
  16649. } else {
  16650. this.noteCount++;
  16651. a = this.noteCount;
  16652. this.toolsCount(a, t);
  16653. }
  16654. window.parent.postMessage(
  16655. {
  16656. tools: "6",
  16657. cid: this.id,
  16658. stage: this.courseType,
  16659. task: this.taskCount,
  16660. tool: i,
  16661. },
  16662. "*"
  16663. );
  16664. } else if (t == 7) {
  16665. if (this.mindNetWorkCount > 0) {
  16666. this.updateCount(this.mindNetWorkCount, t);
  16667. } else {
  16668. this.mindNetWorkCount++;
  16669. a = this.mindNetWorkCount;
  16670. this.toolsCount(a, t);
  16671. }
  16672. window.parent.postMessage(
  16673. {
  16674. tools: "7",
  16675. cid: this.id,
  16676. stage: this.courseType,
  16677. task: this.taskCount,
  16678. tool: i,
  16679. },
  16680. "*"
  16681. );
  16682. } else if (t == 16) {
  16683. if (this.workCount > 0) {
  16684. this.updateCount(this.workCount, t);
  16685. } else {
  16686. this.workCount++;
  16687. a = this.workCount;
  16688. this.toolsCount(a, t);
  16689. }
  16690. this.dialogVisible = true;
  16691. } else if (t == 50) {
  16692. if (this.tType == 2) {
  16693. this.$message.error("不支持学生使用");
  16694. return;
  16695. }
  16696. this.plworkFile = [];
  16697. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  16698. if (!this.uploadCid) {
  16699. this.$message.error(
  16700. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  16701. );
  16702. return;
  16703. }
  16704. // this.uploadCid =
  16705. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16706. // index
  16707. // ].toolChoose[i].uploadJson[0];
  16708. this.selectUploadStudent(2);
  16709. } else if (t == 8) {
  16710. if (this.libraryCount > 0) {
  16711. this.updateCount(this.libraryCount, t);
  16712. } else {
  16713. this.libraryCount++;
  16714. a = this.libraryCount;
  16715. this.toolsCount(a, t);
  16716. }
  16717. window.parent.postMessage({ tools: "8" }, "*");
  16718. } else if (t == 17) {
  16719. if (this.libraryCount > 0) {
  16720. this.updateCount(this.libraryCount, t);
  16721. } else {
  16722. this.libraryCount++;
  16723. a = this.libraryCount;
  16724. this.toolsCount(a, t);
  16725. }
  16726. window.parent.postMessage({ tools: "17" }, "*");
  16727. } else if (t == 18) {
  16728. if (this.trainCount > 0) {
  16729. this.updateCount(this.trainCount, t);
  16730. } else {
  16731. this.trainCount++;
  16732. a = this.trainCount;
  16733. this.toolsCount(a, t);
  16734. }
  16735. window.parent.postMessage({ tools: "18" }, "*");
  16736. } else if (t == 10) {
  16737. if (this.timeCount > 0) {
  16738. this.updateCount(this.timeCount, t);
  16739. } else {
  16740. this.timeCount++;
  16741. a = this.timeCount;
  16742. this.toolsCount(a, t);
  16743. }
  16744. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  16745. .taskJson[index].toolChoose[i].preTime
  16746. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16747. .toolChoose[i].preTime
  16748. : "";
  16749. this.timeDialogVisible = true;
  16750. } else if (t == 15) {
  16751. this.answerQ = "";
  16752. this.questionAnswer = "";
  16753. if (this.answerCount > 0) {
  16754. this.updateCount(this.answerCount, t);
  16755. } else {
  16756. this.answerCount++;
  16757. a = this.answerCount;
  16758. this.toolsCount(a, t);
  16759. }
  16760. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  16761. .taskJson[index].toolChoose[i].answerQ
  16762. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16763. .toolChoose[i].answerQ
  16764. : "";
  16765. this.answerDialogVisible = true;
  16766. } else if (t == 21) {
  16767. window.parent.postMessage({ tools: "21" }, "*");
  16768. } else if (t == 22) {
  16769. window.parent.postMessage({ tools: "22" }, "*");
  16770. } else if (t == 23) {
  16771. window.parent.postMessage({ tools: "23" }, "*");
  16772. } else if (t == 24) {
  16773. window.parent.postMessage({ tools: "24" }, "*");
  16774. } else if (t == 25) {
  16775. window.parent.postMessage({ tools: "25" }, "*");
  16776. } else if (t == 31) {
  16777. window.parent.postMessage({ tools: "31" }, "*");
  16778. } else if (t == 28) {
  16779. window.parent.postMessage({ tools: "28" }, "*");
  16780. } else if (t == 37) {
  16781. window.parent.postMessage({ tools: "37" }, "*");
  16782. } else if (t == 38) {
  16783. window.parent.postMessage({ tools: "38" }, "*");
  16784. } else if (t == 39) {
  16785. window.parent.postMessage({ tools: "39" }, "*");
  16786. } else if (t == 32) {
  16787. window.parent.postMessage({ tools: "32" }, "*");
  16788. } else if (t == 66) {
  16789. window.parent.postMessage({ tools: "66" }, "*");
  16790. } else if (t == 67) {
  16791. window.parent.postMessage({ tools: "67" }, "*");
  16792. } else if (t == 68) {
  16793. window.parent.postMessage({ tools: "68" }, "*");
  16794. } else if (t == 57) {
  16795. // window.parent.postMessage({ tools: "57" }, "*");
  16796. window.parent.postMessage(
  16797. {
  16798. tools: "57u",
  16799. cid: this.id,
  16800. stage: this.courseType,
  16801. task: this.taskCount,
  16802. tool: i,
  16803. },
  16804. "*"
  16805. );
  16806. } else if (t == 58) {
  16807. window.parent.postMessage({ tools: "58" }, "*");
  16808. } else if (t == 59) {
  16809. window.parent.postMessage({ tools: "59" }, "*");
  16810. } else if (t == 60) {
  16811. window.parent.postMessage({ tools: "60" }, "*");
  16812. } else if (t == 61) {
  16813. window.parent.postMessage({ tools: "61" }, "*");
  16814. } else if (t == 63) {
  16815. window.parent.postMessage({ tools: "63" }, "*");
  16816. } else if (t == 69) {
  16817. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  16818. .taskJson[index].toolChoose[i].englishList
  16819. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  16820. .toolChoose[i].englishList
  16821. : {};
  16822. this.engDialogVisible = true;
  16823. } else if (t == 65) {
  16824. if (this.tType == 2) {
  16825. this.$message.error("不支持学生使用");
  16826. return;
  16827. }
  16828. this.uploadCid = this.tcid;
  16829. if (!this.uploadCid) {
  16830. this.$message.error(
  16831. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  16832. );
  16833. return;
  16834. }
  16835. this.selectPickStudent();
  16836. } else if (t == 26) {
  16837. window.parent.postMessage(
  16838. {
  16839. tools: "26",
  16840. cid: this.id,
  16841. stage: this.courseType,
  16842. task: this.taskCount,
  16843. tool: i,
  16844. },
  16845. "*"
  16846. );
  16847. } else if (t == 40) {
  16848. if (this.evalCount > 0) {
  16849. this.updateCount(this.evalCount, t);
  16850. } else {
  16851. this.evalCount++;
  16852. a = this.evalCount;
  16853. this.toolsCount(a, t);
  16854. }
  16855. this.eScore = { eBzText: "", eStar: [] };
  16856. if (this.worksStudent[i].length) {
  16857. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16858. if (this.userid == this.worksStudent[i][k].userid) {
  16859. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  16860. this.rateJson =
  16861. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16862. index
  16863. ].toolChoose[i].rateJson;
  16864. break;
  16865. } else {
  16866. this.rateJson =
  16867. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16868. index
  16869. ].toolChoose[i].rateJson;
  16870. }
  16871. }
  16872. } else {
  16873. this.rateJson =
  16874. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16875. index
  16876. ].toolChoose[i].rateJson;
  16877. }
  16878. this.isStar = false;
  16879. this.studentEvalDialogVisible = true;
  16880. } else if (t == 41) {
  16881. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16882. .taskJson[index].toolChoose[i].selectJson
  16883. ? JSON.parse(
  16884. JSON.stringify(
  16885. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16886. index
  16887. ].toolChoose[i].selectJson
  16888. )
  16889. )
  16890. : { url: "", select: [], answer: [] };
  16891. if (this.worksStudent[i].length) {
  16892. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16893. if (this.userid == this.worksStudent[i][k].userid) {
  16894. var a = this.worksStudent[i][k].works.split(",");
  16895. for (var ki = 0; ki < a.length; ki++) {
  16896. a[ki] = parseInt(a[ki]);
  16897. }
  16898. this.selectAnswer = {
  16899. answer: a,
  16900. stu: this.worksStudent[i][k].sName,
  16901. };
  16902. break;
  16903. } else {
  16904. this.selectAnswer = { answer: [], stu: "" };
  16905. }
  16906. }
  16907. } else {
  16908. this.selectAnswer = { answer: [], stu: "" };
  16909. }
  16910. this.isSelect = false;
  16911. this.dialogVisibleSelect = true;
  16912. } else if (t == 44) {
  16913. window.parent.postMessage({ tools: "44" }, "*");
  16914. } else if (t == 47) {
  16915. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  16916. .taskJson[index].toolChoose[i].sentenceList
  16917. ? JSON.parse(
  16918. JSON.stringify(
  16919. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16920. index
  16921. ].toolChoose[i].sentenceList
  16922. )
  16923. )
  16924. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  16925. for (var q = 0; q < this.sentenceList.length; q++) {
  16926. this.sentenceList[q].chooseSenList = [];
  16927. this.sentenceList[q].addChangeSen = [];
  16928. this.sentenceList[q].addChangeSen = JSON.parse(
  16929. JSON.stringify(this.sentenceList[q].addSentence)
  16930. );
  16931. this.sentenceList[q].chooseSenList.length =
  16932. this.sentenceList[q].rightAnswer.length;
  16933. }
  16934. this.dialogVisibleSentence = true;
  16935. } else if (t == 48) {
  16936. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16937. .taskJson[index].toolChoose[i].tableJson
  16938. ? JSON.parse(
  16939. JSON.stringify(
  16940. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16941. index
  16942. ].toolChoose[i].tableJson
  16943. )
  16944. )
  16945. : { text: "" };
  16946. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  16947. if (this.worksStudent[i].length) {
  16948. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16949. if (this.userid == this.worksStudent[i][k].userid) {
  16950. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  16951. break;
  16952. }
  16953. }
  16954. }
  16955. this.dialogVisibleTable = true;
  16956. } else if (t == 52) {
  16957. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16958. .taskJson[index].toolChoose[i].wordJson
  16959. ? JSON.parse(
  16960. JSON.stringify(
  16961. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16962. index
  16963. ].toolChoose[i].wordJson
  16964. )
  16965. )
  16966. : { text: "" };
  16967. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  16968. if (this.worksStudent[i].length) {
  16969. for (var k = 0; k < this.worksStudent[i].length; k++) {
  16970. if (this.userid == this.worksStudent[i][k].userid) {
  16971. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  16972. break;
  16973. }
  16974. }
  16975. }
  16976. this.dialogVisibleWord = true;
  16977. } else if (t == 49) {
  16978. this.groupJson =
  16979. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16980. index
  16981. ].toolChoose[i].groupJson;
  16982. this.islock = this.groupJson.islock == 1 ? true : false;
  16983. this.dialogVisibleGroup = true;
  16984. } else if (t == 62) {
  16985. this.videoJson =
  16986. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16987. index
  16988. ].toolChoose[i].videoJson;
  16989. this.dialogVisibleVideo = true;
  16990. }
  16991. },
  16992. teacherWorkSubmit(t, i, index, s) {
  16993. this.sStudent = s;
  16994. this.toolindex = i;
  16995. this.sTool = t;
  16996. if (this.tType !== "1" && this.tType !== "4") {
  16997. return;
  16998. }
  16999. if (t == 16 || t == 32 || t == 50) {
  17000. this.dialogVisibleWorks = true;
  17001. } else if (t == 15) {
  17002. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17003. .taskJson[index].toolChoose[i].answerQ
  17004. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17005. .toolChoose[i].answerQ
  17006. : "";
  17007. this.questionAnswer = "";
  17008. this.answerDialogVisibleTeacher = true; //问答
  17009. } else if (t == 52) {
  17010. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17011. .taskJson[index].toolChoose[i].wordJson
  17012. ? JSON.parse(
  17013. JSON.stringify(
  17014. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17015. index
  17016. ].toolChoose[i].wordJson
  17017. )
  17018. )
  17019. : { text: "" };
  17020. if (this.worksStudent[i].length) {
  17021. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17022. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17023. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17024. break;
  17025. }
  17026. }
  17027. }
  17028. this.dialogVisibleWordTeacher = true; //文档
  17029. } else if (t == 4) {
  17030. this.radio = [];
  17031. this.noteName = "";
  17032. this.isAnswer = false;
  17033. if (this.askCount > 0) {
  17034. this.updateCount(this.askCount, t);
  17035. } else {
  17036. this.askCount++;
  17037. a = this.askCount;
  17038. this.toolsCount(a, t);
  17039. }
  17040. if (!this.dialogVisible2) {
  17041. this.askJson.askJson =
  17042. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17043. index
  17044. ].toolChoose[i].askJson;
  17045. this.askJson.askTitle =
  17046. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17047. index
  17048. ].toolChoose[i].askTitle;
  17049. this.askJson.askCount =
  17050. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17051. index
  17052. ].toolChoose[i].askCount;
  17053. } else {
  17054. this.askJson.askJson = this.chapTools.askJson.askJson;
  17055. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17056. this.askJson.askCount = this.chapTools.askJson.askCount;
  17057. }
  17058. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17059. if (this.askJson.askJson[k].type == "2") {
  17060. this.radio.push([]);
  17061. } else {
  17062. this.radio.push("");
  17063. }
  17064. }
  17065. this.dialogVisible5Teacher = true;
  17066. } else if (t == 45) {
  17067. this.noteName = "";
  17068. this.radio = [];
  17069. this.isAnswer = false;
  17070. if (this.askCount > 0) {
  17071. this.updateCount(this.askCount, t);
  17072. } else {
  17073. this.askCount++;
  17074. a = this.askCount;
  17075. this.toolsCount(a, t);
  17076. }
  17077. this.testJson =
  17078. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17079. index
  17080. ].toolChoose[i].testJson;
  17081. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17082. if (this.testJson.testJson[k].type == "2") {
  17083. this.radio.push([]);
  17084. } else {
  17085. this.radio.push("");
  17086. }
  17087. }
  17088. this.dialogVisibleChoiceTeacher = true;
  17089. } else if (t == 41) {
  17090. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17091. .taskJson[index].toolChoose[i].selectJson
  17092. ? JSON.parse(
  17093. JSON.stringify(
  17094. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17095. index
  17096. ].toolChoose[i].selectJson
  17097. )
  17098. )
  17099. : { url: "", select: [], answer: [] };
  17100. if (this.worksStudent[i].length) {
  17101. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17102. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17103. var a = this.worksStudent[i][k].works.split(",");
  17104. for (var ki = 0; ki < a.length; ki++) {
  17105. a[ki] = parseInt(a[ki]);
  17106. }
  17107. this.selectAnswer = {
  17108. answer: a,
  17109. stu: this.worksStudent[i][k].sName,
  17110. };
  17111. break;
  17112. } else {
  17113. this.selectAnswer = { answer: [], stu: "" };
  17114. }
  17115. }
  17116. } else {
  17117. this.selectAnswer = { answer: [], stu: "" };
  17118. }
  17119. this.isSelect = false;
  17120. this.dialogVisibleSelectTeacher = true;
  17121. } else if (t == 47) {
  17122. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17123. .taskJson[index].toolChoose[i].sentenceList
  17124. ? JSON.parse(
  17125. JSON.stringify(
  17126. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17127. index
  17128. ].toolChoose[i].sentenceList
  17129. )
  17130. )
  17131. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17132. for (var q = 0; q < this.sentenceList.length; q++) {
  17133. this.sentenceList[q].chooseSenList = [];
  17134. this.sentenceList[q].addChangeSen = [];
  17135. this.sentenceList[q].addChangeSen = JSON.parse(
  17136. JSON.stringify(this.sentenceList[q].addSentence)
  17137. );
  17138. this.sentenceList[q].chooseSenList.length =
  17139. this.sentenceList[q].rightAnswer.length;
  17140. }
  17141. this.dialogVisibleSentenceTeacher = true;
  17142. } else if (t == 48) {
  17143. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17144. .taskJson[index].toolChoose[i].tableJson
  17145. ? JSON.parse(
  17146. JSON.stringify(
  17147. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17148. index
  17149. ].toolChoose[i].tableJson
  17150. )
  17151. )
  17152. : { text: "" };
  17153. if (this.worksStudent[i].length) {
  17154. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17155. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17156. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17157. break;
  17158. }
  17159. }
  17160. }
  17161. this.dialogVisibleTableTeacher = true;
  17162. } else if (t == 40) {
  17163. if (this.evalCount > 0) {
  17164. this.updateCount(this.evalCount, t);
  17165. } else {
  17166. this.evalCount++;
  17167. a = this.evalCount;
  17168. this.toolsCount(a, t);
  17169. }
  17170. this.eScore = { eBzText: "", eStar: [] };
  17171. if (this.worksStudent[i].length) {
  17172. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17173. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17174. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17175. this.rateJson =
  17176. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17177. index
  17178. ].toolChoose[i].rateJson;
  17179. break;
  17180. } else {
  17181. this.rateJson =
  17182. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17183. index
  17184. ].toolChoose[i].rateJson;
  17185. }
  17186. }
  17187. } else {
  17188. this.rateJson =
  17189. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17190. index
  17191. ].toolChoose[i].rateJson;
  17192. }
  17193. this.isStar = false;
  17194. this.studentEvalDialogVisibleTeacher = true;
  17195. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17196. window.parent.postMessage(
  17197. {
  17198. tools: t + "teacher",
  17199. cid: this.id,
  17200. stage: this.courseType,
  17201. task: this.taskCount,
  17202. tool: i,
  17203. student: this.sStudent,
  17204. },
  17205. "*"
  17206. );
  17207. }
  17208. },
  17209. openCocoPi(tool, i, uid, uname) {
  17210. let student = {
  17211. userid: uid,
  17212. student: uname,
  17213. };
  17214. if (tool == 57) {
  17215. window.parent.postMessage(
  17216. {
  17217. tools: tool + "teacher",
  17218. cid: this.id,
  17219. stage: this.courseType,
  17220. task: this.taskCount,
  17221. tool: i,
  17222. student: student,
  17223. },
  17224. "*"
  17225. );
  17226. }
  17227. },
  17228. setRightAnswer(s, i, j) {
  17229. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17230. if (
  17231. this.sentenceList[i].chooseSenList[q] == undefined ||
  17232. this.sentenceList[i].chooseSenList[q] == ""
  17233. ) {
  17234. this.sentenceList[i].chooseSenList[q] = s;
  17235. this.sentenceList[i].addChangeSen[j] = "";
  17236. break;
  17237. }
  17238. }
  17239. this.$forceUpdate();
  17240. },
  17241. returnCard(r, i, j) {
  17242. var a = this.sentenceList[i].addSentence.indexOf(r);
  17243. this.sentenceList[i].chooseSenList[j] = "";
  17244. this.sentenceList[i].addChangeSen[a] = r;
  17245. this.$forceUpdate();
  17246. },
  17247. // addSentenceTool() {
  17248. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17249. // this.taskCount
  17250. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17251. // this.sentenceList = [
  17252. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17253. // ];
  17254. // this.dialogVisibleSentence = false;
  17255. // },
  17256. toolsCount(a, t) {
  17257. let params = {
  17258. cid: this.id,
  17259. chid: this.courseType,
  17260. uid: this.userid,
  17261. tid: t,
  17262. count: a,
  17263. };
  17264. this.ajax
  17265. .get(this.$store.state.api + "insertToolsCount", params)
  17266. .then((res) => {
  17267. this.selectCount();
  17268. })
  17269. .catch((err) => {
  17270. console.error(err);
  17271. });
  17272. },
  17273. updateCount(c, t) {
  17274. c++;
  17275. let params = {
  17276. cid: this.id,
  17277. chid: this.courseType,
  17278. uid: this.userid,
  17279. tid: t,
  17280. count: c,
  17281. };
  17282. this.ajax
  17283. .get(this.$store.state.api + "updateToolsCount", params)
  17284. .then((res) => {
  17285. this.selectCount();
  17286. })
  17287. .catch((err) => {
  17288. console.error(err);
  17289. });
  17290. },
  17291. checkEva() {
  17292. if (this.evalua != "") {
  17293. for (var i = 0; i < this.evaJuri.length; i++) {
  17294. if (this.evalua == this.evaJuri[i].id) {
  17295. this.eTitle = this.evaJuri[i].title;
  17296. this.eJson = JSON.parse(this.evaJuri[i].content);
  17297. }
  17298. }
  17299. this.$forceUpdate();
  17300. setTimeout(() => {
  17301. this.setMindData();
  17302. }, 0);
  17303. }
  17304. },
  17305. selectEva() {
  17306. let params = {
  17307. oid: this.oid,
  17308. };
  17309. this.ajax
  17310. .get(this.$store.state.api + "selectAllEvaluation", params)
  17311. .then((res) => {
  17312. this.evaJuri = res.data[0];
  17313. })
  17314. .catch((err) => {
  17315. console.error(err);
  17316. });
  17317. },
  17318. setMindData() {
  17319. this.data.data = [];
  17320. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  17321. let _eJson = Object.keys(this.eJson);
  17322. let _e = this.eJson;
  17323. for (let i = 0; i < _eJson.length; i++) {
  17324. let element = _e[_eJson[i]];
  17325. this.data.data.push({
  17326. id: element.id,
  17327. parentid: "root",
  17328. topic: element.name,
  17329. });
  17330. let _eJsonc = Object.keys(element.child);
  17331. let _e2 = element.child;
  17332. for (let j = 0; j < _eJsonc.length; j++) {
  17333. let _ec = _e2[_eJsonc[j]];
  17334. this.data.data.push({
  17335. id: _ec.id,
  17336. parentid: element.id,
  17337. topic: _ec.name,
  17338. });
  17339. let _eJsonz = Object.keys(_ec.child);
  17340. let _e3 = _ec.child;
  17341. for (let z = 0; z < _eJsonz.length; z++) {
  17342. let _ez = _e3[_eJsonz[z]];
  17343. this.data.data.push({
  17344. id: _ez.id,
  17345. parentid: _ec.id,
  17346. topic: _ez.name,
  17347. });
  17348. }
  17349. }
  17350. }
  17351. this.$forceUpdate();
  17352. },
  17353. checkFileFull(type, url) {
  17354. this.fullDialogVisible = true;
  17355. this.fulltype = type;
  17356. this.fullUrl = url;
  17357. },
  17358. checkFileFull1(t, f) {
  17359. this.fullDialogVisible = true;
  17360. if (t == 6) {
  17361. this.fulltype = 1;
  17362. this.fullUrl = JSON.parse(JSON.stringify(f));
  17363. } else if (t == 8) {
  17364. this.fulltype = 2;
  17365. this.fullUrl = f.url;
  17366. } else if (
  17367. t == 3 &&
  17368. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17369. "PDF"
  17370. ) {
  17371. this.fulltype = 3;
  17372. this.fullUrl = f.url;
  17373. } else if (t == 3) {
  17374. this.fulltype = 2;
  17375. this.fullUrl =
  17376. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  17377. }
  17378. },
  17379. openSname(n, id, i, uid) {
  17380. this.snameWid = id;
  17381. this.worksSName = n;
  17382. this.worksSid = uid == n ? "" : uid;
  17383. this.toolindex = i;
  17384. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17385. if (!this.uploadCid) {
  17386. this.$message.error(
  17387. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17388. );
  17389. return;
  17390. }
  17391. this.selectUploadStudent(1);
  17392. },
  17393. updateName() {
  17394. let params = {
  17395. n: this.worksSName,
  17396. cid: this.snameWid,
  17397. };
  17398. this.ajax
  17399. .get(this.$store.state.api + "updateCourseWorksName", params)
  17400. .then((res) => {
  17401. this.$message({
  17402. message: "修改成功",
  17403. type: "success",
  17404. });
  17405. this.dialogVisibleSname = false;
  17406. this.getCourseDetail(2);
  17407. this.snameWid = "";
  17408. this.worksSName = "";
  17409. })
  17410. .catch((err) => {
  17411. console.error(err);
  17412. });
  17413. },
  17414. downloadFile2(f) {
  17415. // const loading = this.$loading.service({
  17416. // background: "rgba(255, 255, 255, 0.7)",
  17417. // target: document.body,
  17418. // text: "文件加载中...",
  17419. // });
  17420. // let url2 = f.url;
  17421. // let _url2 = "";
  17422. // if (
  17423. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17424. // ) {
  17425. // _url2 = url2.split(
  17426. // "https://view.officeapps.live.com/op/view.aspx?src="
  17427. // )[1];
  17428. // } else {
  17429. // _url2 = url2;
  17430. // }
  17431. // let params = {
  17432. // url: _url2,
  17433. // name: f.name,
  17434. // };
  17435. // this.ajax
  17436. // .get(this.$store.state.api + "download", params)
  17437. // .then((res) => {
  17438. // loading.close();
  17439. // let content = res.data.data.data;
  17440. // let ab = new ArrayBuffer(content.length);
  17441. // let view = new Uint8Array(ab);
  17442. // for (var i = 0; i < content.length; ++i) {
  17443. // view[i] = content[i];
  17444. // }
  17445. // let elink = document.createElement("a");
  17446. // elink.download = f.name;
  17447. // elink.style.display = "none";
  17448. // let blob = new Blob([ab], {
  17449. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  17450. // });
  17451. // elink.href = URL.createObjectURL(blob);
  17452. // document.body.appendChild(elink);
  17453. // elink.click();
  17454. // document.body.removeChild(elink);
  17455. // })
  17456. // .catch((err) => {
  17457. // loading.close();
  17458. // console.error(err);
  17459. // });
  17460. let url = f.url;
  17461. let _this = this;
  17462. let _url = "";
  17463. if (
  17464. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17465. ) {
  17466. _url = url.split(
  17467. "https://view.officeapps.live.com/op/view.aspx?src="
  17468. )[1];
  17469. } else {
  17470. _url = url;
  17471. }
  17472. const loading = _this.$loading.service({
  17473. background: "rgba(255, 255, 255, 0.7)",
  17474. target: document.body,
  17475. text: "文件加载中...",
  17476. });
  17477. let x = new XMLHttpRequest();
  17478. x.open("GET", _url, true);
  17479. x.responseType = "blob";
  17480. x.onload = function () {
  17481. loading.close();
  17482. let url = window.URL.createObjectURL(new Blob([x.response]));
  17483. let a = document.createElement("a");
  17484. a.name = f.name;
  17485. a.href = url;
  17486. a.download = f.name;
  17487. a.click();
  17488. };
  17489. x.send();
  17490. },
  17491. downloadFile(url) {
  17492. let _this = this;
  17493. let _url = "";
  17494. if (
  17495. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  17496. ) {
  17497. _url = url.split(
  17498. "https://view.officeapps.live.com/op/view.aspx?src="
  17499. )[1];
  17500. } else {
  17501. _url = url;
  17502. }
  17503. const x = new XMLHttpRequest();
  17504. x.open("GET", _url, true);
  17505. x.responseType = "blob";
  17506. const loading = _this.$loading.service({
  17507. background: "rgba(255, 255, 255, 0.7)",
  17508. target: document.body,
  17509. text: "文件加载中...",
  17510. });
  17511. // _this.$message.success("文件下载中...");
  17512. x.onload = function (e) {
  17513. loading.close();
  17514. let content = x.response;
  17515. let elink = document.createElement("a");
  17516. elink.download = decodeURI(
  17517. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  17518. );
  17519. elink.style.display = "none";
  17520. let blob = new Blob([content]);
  17521. elink.href = URL.createObjectURL(blob);
  17522. document.body.appendChild(elink);
  17523. elink.click();
  17524. document.body.removeChild(elink);
  17525. };
  17526. x.send();
  17527. },
  17528. openLine(url) {
  17529. window.open(url);
  17530. },
  17531. resize() {
  17532. if (document.getElementsByClassName("box_course").length) {
  17533. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  17534. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  17535. if (this.showType == 2 || this.showType == 3) {
  17536. document.getElementsByClassName("navBox")[0].style.height =
  17537. a - 40 + 46 + "px";
  17538. } else {
  17539. document.getElementsByClassName("navBox")[0].style.height =
  17540. a - 40 + "px";
  17541. }
  17542. }
  17543. this.Stbodywidth =
  17544. document.getElementsByClassName("student_body").length &&
  17545. document.getElementsByClassName("student_body")[0].offsetWidth;
  17546. },
  17547. closeDraw() {
  17548. this.bg = null;
  17549. this.drawShow = false;
  17550. },
  17551. showPicturePaint(url) {
  17552. let params = {
  17553. img: url,
  17554. };
  17555. this.ajax
  17556. .get(this.$store.state.api + "imgToBase64", params)
  17557. .then((res) => {
  17558. this.drawShow = true;
  17559. this.bg = res.data[0].img;
  17560. })
  17561. .catch((err) => {
  17562. console.error(err);
  17563. });
  17564. },
  17565. addImgDraw(base64) {
  17566. let file = { name: "批注图.png" };
  17567. let img = this.dataUrlToFile(base64, file);
  17568. this.beforeUpload1(img, 5);
  17569. },
  17570. addImgDrawImG(url) {
  17571. // console.log(url);
  17572. let params = [
  17573. {
  17574. wid: this.commentDetail.wid,
  17575. img: url,
  17576. },
  17577. ];
  17578. this.ajax
  17579. .post(this.$store.state.api + "updateCourseWorks", params)
  17580. .then((res) => {
  17581. this.$message({
  17582. message: "提交成功",
  17583. type: "success",
  17584. });
  17585. this.drawShow = false;
  17586. this.bg = "";
  17587. this.selectSWorks();
  17588. this.selectStudent();
  17589. })
  17590. .catch((err) => {
  17591. this.$message.error("提交失败");
  17592. console.error(err);
  17593. });
  17594. },
  17595. deletePicturePaint() {
  17596. this.$confirm("确定删除此批注吗?", "提示", {
  17597. confirmButtonText: "确定",
  17598. cancelButtonText: "取消",
  17599. type: "warning",
  17600. })
  17601. .then(() => {
  17602. let params = [
  17603. {
  17604. wid: this.commentDetail.wid,
  17605. img: "",
  17606. },
  17607. ];
  17608. this.ajax
  17609. .post(this.$store.state.api + "updateCourseWorks", params)
  17610. .then((res) => {
  17611. this.$message({
  17612. message: "删除成功",
  17613. type: "success",
  17614. });
  17615. this.selectSWorks();
  17616. this.selectStudent();
  17617. })
  17618. .catch((err) => {
  17619. this.$message.error("删除失败");
  17620. console.error(err);
  17621. });
  17622. })
  17623. .catch(() => {});
  17624. },
  17625. getAudioVideo(constraintsData) {
  17626. if (navigator.mediaDevices === undefined) {
  17627. navigator.mediaDevices = {};
  17628. }
  17629. if (navigator.mediaDevices.getUserMedia === undefined) {
  17630. navigator.mediaDevices.getUserMedia = function (constraints) {
  17631. // 首先,如果有getUserMedia的话,就获得它
  17632. var getUserMedia =
  17633. navigator.getUserMedia ||
  17634. navigator.webkitGetUserMedia ||
  17635. navigator.mozGetUserMedia ||
  17636. navigator.msGetUserMedia;
  17637. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  17638. if (!getUserMedia) {
  17639. return Promise.reject({ code: 404 });
  17640. }
  17641. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  17642. return new Promise(function (resolve, reject) {
  17643. getUserMedia.call(navigator, constraints, resolve, reject);
  17644. });
  17645. };
  17646. }
  17647. return navigator.mediaDevices.getUserMedia(constraintsData);
  17648. },
  17649. /**
  17650. * 开始录制
  17651. */
  17652. startRecording(callback) {
  17653. let _function = (screenStream) => {
  17654. this.addStreamStopListener(screenStream, () => {
  17655. console.log("流停止监听");
  17656. this.stopRecording();
  17657. this.$emit("streamStop", {});
  17658. // this.stopRecording();
  17659. });
  17660. var options = {
  17661. type: "video",
  17662. mimeType: "video/webm",
  17663. disableLogs: false,
  17664. getNativeBlob: false, // enable it for longer recordings
  17665. ignoreMutedMedia: false,
  17666. };
  17667. // this.video.srcObject = screenStream;
  17668. this.recorder = RecordRTC(screenStream, options);
  17669. this.recorder.startRecording();
  17670. this.recorder.screen = screenStream;
  17671. this.videoStart = true;
  17672. // callback(true);
  17673. };
  17674. this.getAudioVideo({ audio: true })
  17675. .then((res) => {
  17676. this.captureScreen(_function, true);
  17677. console.log("已点击允许,开启成功");
  17678. })
  17679. .catch((err) => {
  17680. // console.log('浏览器不支持,请更换浏览器')
  17681. // } else {
  17682. this.captureScreen(_function, false);
  17683. console.log("请检查是否存在麦克风");
  17684. });
  17685. },
  17686. /**
  17687. * 停止录制
  17688. */
  17689. stopRecording(callback) {
  17690. this.recorder.stopRecording(() => {
  17691. // this.video.src = this.video.srcObject = null;
  17692. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  17693. const url = URL.createObjectURL(this.recorder.getBlob());
  17694. const a = document.createElement("a"); //this.fileName+
  17695. let videoFile = new File(
  17696. [this.recorder.getBlob()],
  17697. this.courseDetail.title + "录屏.mp4",
  17698. {
  17699. type: "video/mp4",
  17700. }
  17701. );
  17702. let downloadUrl = URL.createObjectURL(videoFile);
  17703. document.body.appendChild(a);
  17704. a.style.display = "none";
  17705. a.href = url;
  17706. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  17707. a.click();
  17708. this.recorder.screen.stop();
  17709. this.recorder.destroy();
  17710. this.recorder = null;
  17711. this.videoStart = false;
  17712. // callback(false);
  17713. });
  17714. },
  17715. //初始化
  17716. captureScreen(callback, type) {
  17717. if (navigator.getDisplayMedia) {
  17718. //录制结束,文件下载
  17719. navigator
  17720. .getDisplayMedia({
  17721. video: true,
  17722. })
  17723. .then((screenStream) => {
  17724. if (type) {
  17725. navigator.mediaDevices
  17726. .getUserMedia({ audio: true })
  17727. .then((mic) => {
  17728. screenStream.addTrack(mic.getTracks()[0]);
  17729. callback(screenStream);
  17730. });
  17731. } else {
  17732. callback(screenStream);
  17733. }
  17734. })
  17735. .catch(function (error) {
  17736. console.log("error", error);
  17737. });
  17738. } else if (navigator.mediaDevices.getDisplayMedia) {
  17739. navigator.mediaDevices
  17740. .getDisplayMedia({
  17741. video: true,
  17742. })
  17743. .then((screenStream) => {
  17744. if (type) {
  17745. navigator.mediaDevices
  17746. .getUserMedia({ audio: true })
  17747. .then((mic) => {
  17748. screenStream.addTrack(mic.getTracks()[0]);
  17749. callback(screenStream);
  17750. });
  17751. } else {
  17752. callback(screenStream);
  17753. }
  17754. })
  17755. .catch(function (error) {
  17756. console.log("error", error);
  17757. });
  17758. } else {
  17759. var error = "getDisplayMedia API are not supported in this browser.";
  17760. console.log("error", error);
  17761. alert(error);
  17762. }
  17763. },
  17764. //流监听
  17765. addStreamStopListener(stream, callback) {
  17766. stream.addEventListener(
  17767. "ended",
  17768. function () {
  17769. callback();
  17770. callback = function () {};
  17771. },
  17772. false
  17773. );
  17774. stream.addEventListener(
  17775. "inactive",
  17776. function () {
  17777. callback();
  17778. callback = function () {};
  17779. },
  17780. false
  17781. );
  17782. stream.getTracks().forEach(function (track) {
  17783. track.addEventListener(
  17784. "ended",
  17785. function () {
  17786. callback();
  17787. callback = function () {};
  17788. },
  17789. false
  17790. );
  17791. track.addEventListener(
  17792. "inactive",
  17793. function () {
  17794. callback();
  17795. callback = function () {};
  17796. },
  17797. false
  17798. );
  17799. });
  17800. },
  17801. updateGroup() {
  17802. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17803. this.dialogVisibleGroup2 = true;
  17804. },
  17805. numberPan() {
  17806. if (
  17807. /[^\d]/.test(this.groupJson.number) ||
  17808. this.groupJson.number < 2 ||
  17809. this.groupJson.number > 10
  17810. ) {
  17811. this.$message.error("请输入2-10的数字");
  17812. this.groupJson.number = "";
  17813. }
  17814. },
  17815. updateGroupJson() {
  17816. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  17817. if (
  17818. this.groupStudentUid[this.toolindex][i].length >
  17819. this.groupJson2.number
  17820. ) {
  17821. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  17822. return;
  17823. }
  17824. }
  17825. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  17826. this.islock = this.groupJson.islock == 1 ? true : false;
  17827. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17828. this.taskCount
  17829. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  17830. let params = [
  17831. {
  17832. cid: this.id,
  17833. chapters: JSON.stringify(this.chapInfoList),
  17834. uid: this.userid,
  17835. unitIndex: this.courseType,
  17836. },
  17837. ];
  17838. this.ajax
  17839. .post(this.$store.state.api + "updateWorkNew4", params)
  17840. .then((res) => {
  17841. this.$message.success("设置成功");
  17842. this.getCourseDetail(2);
  17843. this.dialogVisibleGroup2 = false;
  17844. this.groupJson2 = {};
  17845. this.$forceUpdate();
  17846. })
  17847. .catch((err) => {
  17848. this.$message.error("网络不佳");
  17849. console.error(err);
  17850. });
  17851. },
  17852. lockChair() {
  17853. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  17854. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  17855. this.updateGroupJson();
  17856. },
  17857. selectGroup(index) {
  17858. this.getCourseDetail(2, index);
  17859. },
  17860. joinGroup(index) {
  17861. if (this.groupJson.islock == 2) {
  17862. this.$message.error("位置已被锁定,无法加入");
  17863. return;
  17864. }
  17865. if (
  17866. this.groupStudent[this.toolindex][index].length >
  17867. this.groupJson.number ||
  17868. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  17869. ) {
  17870. this.$message.error("位置已满,无法加入");
  17871. return;
  17872. }
  17873. let params = [
  17874. {
  17875. cid: this.id,
  17876. stage: this.courseType,
  17877. task: this.taskCount,
  17878. tool: this.toolindex,
  17879. g: index,
  17880. uid: this.userid,
  17881. },
  17882. ];
  17883. this.ajax
  17884. .post(this.$store.state.api + "joinGroup", params)
  17885. .then((res) => {
  17886. this.$message.success("加入成功");
  17887. this.getCourseDetail(2);
  17888. })
  17889. .catch((err) => {
  17890. this.$message.error("网络不佳");
  17891. console.error(err);
  17892. });
  17893. },
  17894. exitGroup(id) {
  17895. if (this.groupJson.islock == 2) {
  17896. this.$message.error("位置已被锁定,无法退出");
  17897. return;
  17898. }
  17899. let params = [
  17900. {
  17901. gid: id,
  17902. },
  17903. ];
  17904. this.ajax
  17905. .post(this.$store.state.api + "exitGroup", params)
  17906. .then((res) => {
  17907. this.$message.success("退出成功");
  17908. this.getCourseDetail(2);
  17909. })
  17910. .catch((err) => {
  17911. this.$message.error("网络不佳");
  17912. console.error(err);
  17913. });
  17914. },
  17915. groupUpload(index, task, gindex) {
  17916. this.taskCount = task;
  17917. this.toolindex = index;
  17918. this.groupIndex = gindex;
  17919. this.dialogVisibleGroupWork = true;
  17920. },
  17921. updateGroupChair(user) {
  17922. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  17923. el.label = index;
  17924. return index != user.group;
  17925. });
  17926. this.updateGroupUser = user;
  17927. this.dialogVisibleUpdateGroup = true;
  17928. },
  17929. updateChair() {
  17930. if (
  17931. this.groupStudent[this.toolindex][this.checkChair].length >
  17932. this.groupJson.number ||
  17933. this.groupStudent[this.toolindex][this.checkChair].length ==
  17934. this.groupJson.number
  17935. ) {
  17936. this.$message.error("位置已满,无法加入");
  17937. return;
  17938. }
  17939. let params = [
  17940. {
  17941. cid: this.id,
  17942. stage: this.courseType,
  17943. task: this.taskCount,
  17944. tool: this.toolindex,
  17945. g: this.checkChair,
  17946. uid: this.updateGroupUser.userid,
  17947. },
  17948. ];
  17949. this.ajax
  17950. .post(this.$store.state.api + "joinGroup", params)
  17951. .then((res) => {
  17952. this.$message.success("修改成功");
  17953. this.updateGroupUser = {};
  17954. this.checkChair = "";
  17955. this.updateGroupArray = {};
  17956. this.dialogVisibleUpdateGroup = false;
  17957. this.getCourseDetail(2);
  17958. })
  17959. .catch((err) => {
  17960. this.$message.error("网络不佳");
  17961. console.error(err);
  17962. });
  17963. },
  17964. deleteGroupChair(gindex) {
  17965. this.checkDeleteGroup = [];
  17966. this.deleteGroupUser = JSON.parse(
  17967. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  17968. );
  17969. this.deleteGroupArray = this.groupJson.group[gindex];
  17970. this.groupIndex = gindex;
  17971. this.dialogVisibleDeleteGroup = true;
  17972. },
  17973. async deleteChair() {
  17974. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  17975. const gid =
  17976. this.groupStudent[this.toolindex][this.groupIndex][
  17977. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  17978. this.checkDeleteGroup[i]
  17979. )
  17980. ];
  17981. let params = [
  17982. {
  17983. gid: gid.id,
  17984. },
  17985. ];
  17986. var a = await this.deleteChairA(params);
  17987. if (i == this.checkDeleteGroup.length - 1) {
  17988. this.$message.success("退出成功");
  17989. this.dialogVisibleDeleteGroup = false;
  17990. this.deleteGroupUser = [];
  17991. this.deleteGroupArray = {};
  17992. this.groupIndex = "";
  17993. this.checkDeleteGroup = [];
  17994. this.getCourseDetail(2);
  17995. }
  17996. }
  17997. },
  17998. deleteChairA(params) {
  17999. return new Promise((resolve, reject) => {
  18000. this.ajax
  18001. .post(this.$store.state.api + "exitGroup", params)
  18002. .then((res) => {
  18003. resolve(1);
  18004. })
  18005. .catch((err) => {
  18006. this.$message.error("网络不佳");
  18007. console.error(err);
  18008. });
  18009. });
  18010. },
  18011. contract(i) {
  18012. if (this.isCloseList[i].isClose == 0) {
  18013. this.isCloseList[i].isClose = 1;
  18014. } else {
  18015. this.isCloseList[i].isClose = 0;
  18016. }
  18017. this.$forceUpdate();
  18018. },
  18019. openWordCloud(toolindex) {
  18020. let array = [];
  18021. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18022. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18023. array.push({ name: works });
  18024. }
  18025. if (this.isGroup) {
  18026. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18027. let works = this.courseGroup.group[i].works[toolindex];
  18028. for (var j = 0; j < works.length; j++) {
  18029. let answer = JSON.parse(works[j].works)[0].answer;
  18030. array.push({ name: answer });
  18031. }
  18032. }
  18033. }
  18034. this.wordCloudData = array;
  18035. this.dialogVisibleWordCloud = true;
  18036. },
  18037. uploadWorks(i) {
  18038. this.$confirm("确定导出作业吗?", "提示", {
  18039. confirmButtonText: "确定",
  18040. cancelButtonText: "取消",
  18041. type: "warning",
  18042. })
  18043. .then(() => {
  18044. const loading = this.$loading.service({
  18045. background: "rgba(255, 255, 255, 0.7)",
  18046. target: document.body,
  18047. text: "文件加载中...",
  18048. });
  18049. const _worksStudent = this.worksStudent;
  18050. let url = [];
  18051. var counts = {};
  18052. for (var l = 0; l < _worksStudent[i].length; l++) {
  18053. var item = _worksStudent[i][l];
  18054. var name = item.sName;
  18055. if (!counts.hasOwnProperty(name)) {
  18056. counts[name] = 0;
  18057. } else {
  18058. counts[name]++;
  18059. }
  18060. if (counts[name] > 0) {
  18061. item.sName += " (" + counts[name] + ")";
  18062. }
  18063. }
  18064. for (var l = 0; l < _worksStudent[i].length; l++) {
  18065. var item = _worksStudent[i][l];
  18066. if (
  18067. item.works.indexOf(
  18068. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18069. ) !== -1 &&
  18070. item.works.indexOf("img") === -1
  18071. ) {
  18072. url.push({ name: item.sName, url: item.works });
  18073. }
  18074. }
  18075. // var toolList = [
  18076. // { name: "电子白板", tool: 1 },
  18077. // { name: "思维导图", tool: 3 },
  18078. // { name: "协同文档", tool: 6 },
  18079. // { name: "思维网格", tool: 7 },
  18080. // { name: "素材库", tool: 8 },
  18081. // { name: "学习资料", tool: 17 },
  18082. // { name: "便签", tool: 2 },
  18083. // { name: "问卷调查", tool: 4 },
  18084. // { name: "选择题", tool: 45 },
  18085. // { name: "倒计时", tool: 10 },
  18086. // { name: "问答", tool: 15 },
  18087. // { name: "课程设计", tool: 26 },
  18088. // { name: "训练服务器", tool: 18 },
  18089. // { name: "作业提交", tool: 16 },
  18090. // { name: "批量上传", tool: 50 },
  18091. // { name: "AIoT Blockly", tool: 21 },
  18092. // { name: "AI Python", tool: 23 },
  18093. // { name: "AI Blockly", tool: 24 },
  18094. // { name: "目标管理", tool: 25 },
  18095. // { name: "数学画板", tool: 31 },
  18096. // { name: "翻译", tool: 28 },
  18097. // { name: "魔盒识字", tool: 37 },
  18098. // { name: "数学画板", tool: 31 },
  18099. // { name: "24点", tool: 38 },
  18100. // { name: "GeoGebra", tool: 39 },
  18101. // { name: "源码编辑", tool: 32 },
  18102. // { name: "个人评价", tool: 40 },
  18103. // { name: "选择匹配", tool: 41 },
  18104. // { name: "汉字宫", tool: 44 },
  18105. // { name: "排序", tool: 47 },
  18106. // { name: "表格", tool: 48 },
  18107. // { name: "文档", tool: 52 },
  18108. // { name: "学生分组", tool: 49 },
  18109. // { name: "CocoPi", tool: 57 },
  18110. // { name: "模拟驾驶", tool: 58 },
  18111. // { name: "路径搜索", tool: 59 },
  18112. // { name: "深度学习", tool: 60 },
  18113. // { name: "全历史", tool: 61 },
  18114. // { name: "交互视频", tool: 62 },
  18115. // { name: "海龟编程", tool: 63 },
  18116. // { name: "挑人", tool: 65 },
  18117. // { name: "公式编辑", tool: 66 },
  18118. // { name: "分子结构", tool: 67 },
  18119. // { name: "时间轴", tool: 68 },
  18120. // ];
  18121. // var toolName = "";
  18122. // for(var w = 0;w<toolList.length;w++){
  18123. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18124. // toolName = toolList[w].name;
  18125. // }
  18126. // }
  18127. console.log(url);
  18128. this.downLoadAll(url, loading);
  18129. })
  18130. .catch(() => {});
  18131. },
  18132. downLoadAll(url, loading) {
  18133. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18134. const zip = new JSZip();
  18135. const cache = {};
  18136. const promises = [];
  18137. data.forEach((item) => {
  18138. const promise = getFile(item.url).then((data) => {
  18139. if (data.data != 1) {
  18140. // 下载文件, 并存成ArrayBuffer对象
  18141. const file_name =
  18142. item.name +
  18143. "." +
  18144. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18145. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18146. cache[file_name] = data.data;
  18147. }
  18148. });
  18149. promises.push(promise);
  18150. });
  18151. Promise.all(promises).then(() => {
  18152. zip.generateAsync({ type: "blob" }).then((content) => {
  18153. // 生成二进制流
  18154. FileSaver.saveAs(
  18155. content,
  18156. this.courseDetail.title + "-" + "作业提交工具.zip"
  18157. ); // 利用file-saver保存文件 自定义文件名
  18158. setTimeout(() => {
  18159. loading.close();
  18160. }, 2000);
  18161. });
  18162. });
  18163. },
  18164. pickStudent(stu) {
  18165. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18166. return;
  18167. }
  18168. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18169. confirmButtonText: "确定",
  18170. cancelButtonText: "取消",
  18171. type: "warning",
  18172. })
  18173. .then(() => {
  18174. let params = [
  18175. {
  18176. uid: stu.userid,
  18177. cid: this.id,
  18178. stage: this.courseType,
  18179. task: this.taskCount,
  18180. tool: this.toolindex,
  18181. },
  18182. ];
  18183. this.ajax
  18184. .post(this.$store.state.api + "updateCoursePick", params)
  18185. .then((res) => {
  18186. this.$message.success("操作成功");
  18187. this.getPick();
  18188. })
  18189. .catch((err) => {
  18190. this.$message.error("网络不佳");
  18191. console.error(err);
  18192. });
  18193. })
  18194. .catch(() => {});
  18195. },
  18196. getPick() {
  18197. let params = {
  18198. cid: this.id,
  18199. };
  18200. this.ajax
  18201. .get(this.$store.state.api + "getPick", params)
  18202. .then((res) => {
  18203. let array = [];
  18204. for (var i = 0; i < res.data[0].length; i++) {
  18205. array.push(res.data[0][i].userid);
  18206. }
  18207. this.isPickStudent = array;
  18208. if (array.indexOf(this.userid) !== -1) {
  18209. this.$confirm("你被老师选到啦!", "提示", {
  18210. confirmButtonText: "确定",
  18211. showCancelButton: false,
  18212. closeOnClickModal: false,
  18213. type: "warning",
  18214. })
  18215. .then(() => {
  18216. let pa = [
  18217. {
  18218. uid: this.userid,
  18219. cid: this.id,
  18220. },
  18221. ];
  18222. this.ajax
  18223. .post(this.$store.state.api + "deletePick", pa)
  18224. .then((res) => {
  18225. this.getPick();
  18226. })
  18227. .catch((err) => {
  18228. this.$message.error("网络不佳");
  18229. console.error(err);
  18230. });
  18231. })
  18232. .catch(() => {});
  18233. }
  18234. })
  18235. .catch((err) => {
  18236. this.$message.error("网络不佳");
  18237. console.error(err);
  18238. });
  18239. },
  18240. },
  18241. directives: {
  18242. // 使用局部注册指令的方式
  18243. resize: {
  18244. // 指令的名称
  18245. bind(el, binding) {
  18246. // el为绑定的元素,binding为绑定给指令的对象
  18247. let width = "",
  18248. height = "";
  18249. function isReize() {
  18250. const style = document.defaultView.getComputedStyle(el);
  18251. if (width !== style.width || height !== style.height) {
  18252. binding.value(); // 关键
  18253. }
  18254. width = style.width;
  18255. height = style.height;
  18256. }
  18257. el.__vueSetInterval__ = setInterval(isReize, 300);
  18258. },
  18259. unbind(el) {
  18260. clearInterval(el.__vueSetInterval__);
  18261. },
  18262. },
  18263. },
  18264. beforeDestroy() {
  18265. window.onresize = null;
  18266. clearInterval(this.timer);
  18267. this.timer = null;
  18268. clearInterval(this.opertimer);
  18269. this.opertimer = null;
  18270. },
  18271. computed: {
  18272. contentConvent() {
  18273. return function (c) {
  18274. return c
  18275. ? c
  18276. .replaceAll(/\r\n/g, "<br/>")
  18277. .replaceAll(/\n/g, "<br/>")
  18278. .replaceAll(/\s/g, " &nbsp")
  18279. : "";
  18280. };
  18281. },
  18282. checkUpload() {
  18283. return function () {
  18284. var studentK = [];
  18285. if (this.plworkFile.length > 0) {
  18286. for (var z = 0; z < this.plworkFile.length; z++) {
  18287. studentK.push(this.plworkFile[z].username);
  18288. }
  18289. studentK = studentK.join(",");
  18290. }
  18291. var a = this.uploadStudentJuri.filter((el) => {
  18292. return studentK.indexOf(el.userid) == -1;
  18293. });
  18294. return a;
  18295. };
  18296. },
  18297. getSName() {
  18298. return function (name) {
  18299. var check = name;
  18300. this.uploadStudentJuri.forEach((el) => {
  18301. if (el.userid == check) {
  18302. check = el.name ? el.name : el.username;
  18303. }
  18304. });
  18305. return check;
  18306. };
  18307. },
  18308. getImgList() {
  18309. return function (val) {
  18310. let srcList = []; // 定义一个数组用来接收后面的img地址
  18311. val.replace(
  18312. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  18313. function (match, capture) {
  18314. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  18315. srcList.push(capture);
  18316. }
  18317. );
  18318. return srcList;
  18319. };
  18320. },
  18321. },
  18322. mounted() {
  18323. document.body.addEventListener("click", (e) => {
  18324. if (this.isUpdateToolDetail1) {
  18325. this.updateToolDetail(this.toolDetailIndex);
  18326. }
  18327. });
  18328. if (this.screenType == 2) {
  18329. window.parent.postMessage({ allScreen: 4 }, "*");
  18330. } else if (this.screenType == 3) {
  18331. window.parent.postMessage({ allScreen: 5 }, "*");
  18332. } else if (this.screenType == 1) {
  18333. window.parent.postMessage({ allScreen: 6 }, "*");
  18334. }
  18335. this.setOperationTime();
  18336. this.selectEva();
  18337. this.getCourseDetail();
  18338. this.selectCount();
  18339. this.getHomeWork();
  18340. this.contentDialog = true;
  18341. this.setContent2(true);
  18342. if (this.tType == 4) {
  18343. this.pzDialog = true;
  18344. this.selectPz();
  18345. }
  18346. document.scrollingElement.scrollTop = 0;
  18347. window.addEventListener("resize", () => {
  18348. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18349. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18350. if (this.showType == 2 || this.showType == 3) {
  18351. document.getElementsByClassName("navBox")[0].style.height =
  18352. a - 40 + 46 + "px";
  18353. } else {
  18354. document.getElementsByClassName("navBox")[0].style.height =
  18355. a - 40 + "px";
  18356. }
  18357. });
  18358. let _this = this;
  18359. setTimeout(() => {
  18360. // _this.vedioTime = [];
  18361. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18362. // _this.vedioTime[i] = document.getElementsByClassName(
  18363. // "vjs-duration-display"
  18364. // )[i].textContent;
  18365. // }
  18366. }, 1000);
  18367. },
  18368. };
  18369. </script>
  18370. <style scoped>
  18371. @media screen and (max-width: 1280px) {
  18372. /* .courseIndex > div:first-child(2) {
  18373. width: 15% !important;
  18374. } */
  18375. /* .navText {
  18376. width: 120px !important;
  18377. } */
  18378. .evaCss {
  18379. flex-direction: column !important;
  18380. align-items: center !important;
  18381. }
  18382. .elist_input {
  18383. width: 90% !important;
  18384. }
  18385. .dialog_diy1 >>> .el-dialog {
  18386. width: 100% !important;
  18387. }
  18388. .rightWidthCss {
  18389. width: 100% !important;
  18390. }
  18391. .dialog_diy3 >>> .el-dialog {
  18392. width: 100% !important;
  18393. }
  18394. .addToolCss {
  18395. right: 0 !important;
  18396. width: 100% !important;
  18397. min-width: unset !important;
  18398. }
  18399. /* .textTitle >>> .el-form-item__label {
  18400. width: 150px !important;
  18401. } */
  18402. /* .stageItemTitle > div:last-child{
  18403. max-width: 50px;
  18404. } */
  18405. }
  18406. .evaCssMax {
  18407. flex-direction: column !important;
  18408. align-items: center !important;
  18409. }
  18410. .dialog_diy >>> .el-dialog {
  18411. margin-top: 10vh !important;
  18412. }
  18413. .body_student {
  18414. width: 77%;
  18415. height: 100%;
  18416. position: absolute;
  18417. left: 22%;
  18418. top: 0;
  18419. }
  18420. .student_head {
  18421. width: 100%;
  18422. margin: 20px auto 0;
  18423. padding-bottom: 20px;
  18424. display: flex;
  18425. flex-direction: column;
  18426. flex-wrap: nowrap;
  18427. align-items: flex-start;
  18428. justify-content: flex-start;
  18429. }
  18430. .pb_left {
  18431. width: 20%;
  18432. margin-right: 10px;
  18433. background: rgb(255, 255, 255);
  18434. position: fixed;
  18435. height: calc(100% - 40px);
  18436. border-radius: 20px;
  18437. padding-bottom: 15px;
  18438. box-sizing: border-box;
  18439. }
  18440. .wheel > img,
  18441. .project > img,
  18442. .star > img,
  18443. .evaluate > img,
  18444. .up_photo > img,
  18445. .chapter_add > img,
  18446. .deleteWord > img,
  18447. .question > img,
  18448. .homework > img {
  18449. width: 100%;
  18450. height: 100%;
  18451. }
  18452. .upCover > img {
  18453. width: 131px;
  18454. height: 69px;
  18455. object-fit: cover;
  18456. }
  18457. .upCover {
  18458. width: calc(100% / 3.5);
  18459. position: relative;
  18460. margin: 0 15px 10px 0;
  18461. display: flex;
  18462. flex-direction: column;
  18463. flex-wrap: nowrap;
  18464. justify-content: center;
  18465. align-content: center;
  18466. align-items: center;
  18467. height: fit-content;
  18468. }
  18469. .upCover2 {
  18470. width: 100%;
  18471. position: relative;
  18472. margin: 0 15px 10px 0;
  18473. display: flex;
  18474. flex-direction: column;
  18475. flex-wrap: nowrap;
  18476. justify-content: center;
  18477. align-content: center;
  18478. align-items: center;
  18479. }
  18480. .upCover2 > img {
  18481. width: 100%;
  18482. height: 90px;
  18483. object-fit: contain;
  18484. }
  18485. .chapter_add {
  18486. width: 120px;
  18487. position: relative;
  18488. text-align: center;
  18489. }
  18490. .isAddThings {
  18491. margin-top: 20px;
  18492. position: relative;
  18493. text-align: center;
  18494. background: #f7f8fa;
  18495. height: 90px;
  18496. width: 90px;
  18497. display: flex;
  18498. flex-direction: column;
  18499. justify-content: center;
  18500. }
  18501. .deleteWord {
  18502. width: 22px;
  18503. height: 22px;
  18504. position: absolute;
  18505. right: -5px;
  18506. top: -5px;
  18507. cursor: pointer;
  18508. }
  18509. .box_course {
  18510. /* width: 60%; */
  18511. width: calc(100% - 300px);
  18512. }
  18513. .wheel {
  18514. width: 100%;
  18515. /* height: 100%; */
  18516. height: 650px;
  18517. }
  18518. .right_box {
  18519. display: flex;
  18520. flex-direction: column;
  18521. margin-left: 30px;
  18522. justify-content: space-around;
  18523. }
  18524. .right_box_title {
  18525. font-size: 23px;
  18526. }
  18527. .people {
  18528. display: flex;
  18529. }
  18530. .student_body {
  18531. width: 100%;
  18532. margin: 0 auto;
  18533. margin-top: 10px;
  18534. padding: 0 0 20px;
  18535. }
  18536. .study_top {
  18537. margin-top: 100px;
  18538. width: 100%;
  18539. height: auto;
  18540. padding-bottom: 20px;
  18541. }
  18542. .study_top .checkbox {
  18543. display: flex;
  18544. align-items: center;
  18545. padding: 15px 0 15px 30px;
  18546. flex: 0 0 auto;
  18547. font-weight: bold;
  18548. border-bottom: 1px solid #eee;
  18549. }
  18550. .study_top .check {
  18551. padding-bottom: 5px;
  18552. text-align: center;
  18553. cursor: pointer;
  18554. height: 30px;
  18555. box-sizing: border-box;
  18556. display: flex;
  18557. }
  18558. .study_top .checked {
  18559. border-bottom: 4px solid #3fc6a0;
  18560. padding-bottom: 5px;
  18561. color: #3fc6a0;
  18562. display: flex;
  18563. height: 35px;
  18564. }
  18565. .study_top .checked > div,
  18566. .study_top .check > div {
  18567. margin-right: 5px;
  18568. }
  18569. .videoTop {
  18570. display: flex;
  18571. flex-direction: row;
  18572. justify-content: space-between;
  18573. background: #fff;
  18574. align-items: center;
  18575. width: 95%;
  18576. padding: 20px;
  18577. }
  18578. .filebox {
  18579. display: flex;
  18580. flex-wrap: wrap;
  18581. flex-direction: column;
  18582. padding: 0 0 5px;
  18583. position: relative;
  18584. }
  18585. .filebox:before {
  18586. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  18587. position: absolute;
  18588. top: 20px;
  18589. left: 13px;
  18590. border-left: 2px dotted #cad1dc;
  18591. height: calc(100% - 15px);
  18592. }
  18593. .toolHeng2 > div:last-child::before {
  18594. height: calc(100% - 43px);
  18595. }
  18596. .filebox .tooldetail {
  18597. width: calc(100% - 280px);
  18598. margin: 0px 12px;
  18599. padding: 12px 25px 0 13px;
  18600. line-height: 30px;
  18601. word-break: break-word;
  18602. background: #ffffff;
  18603. border-radius: 8px 8px 8px 8px;
  18604. opacity: 1;
  18605. border: 1px solid #cad1dc;
  18606. }
  18607. .file {
  18608. display: flex;
  18609. flex-direction: column;
  18610. align-items: center;
  18611. justify-content: center;
  18612. cursor: pointer;
  18613. width: 200px;
  18614. }
  18615. .file div {
  18616. margin-top: 10px;
  18617. width: 150px;
  18618. text-align: center;
  18619. overflow: hidden;
  18620. white-space: nowrap;
  18621. text-overflow: ellipsis;
  18622. }
  18623. .media {
  18624. display: flex;
  18625. flex-direction: column;
  18626. align-items: center;
  18627. justify-content: center;
  18628. margin: 0 20px 20px 0;
  18629. cursor: pointer;
  18630. margin: 12px 0 5px 15px;
  18631. overflow: hidden;
  18632. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  18633. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  18634. box-sizing: border-box;
  18635. }
  18636. .media img {
  18637. height: 90px;
  18638. width: 160px;
  18639. object-fit: cover;
  18640. }
  18641. .media .title {
  18642. padding: 5px;
  18643. text-align: left;
  18644. width: 100%;
  18645. box-sizing: border-box;
  18646. }
  18647. .media .btn {
  18648. width: 100%;
  18649. height: 35px;
  18650. line-height: 35px;
  18651. color: #fff;
  18652. background: #606060;
  18653. text-align: center;
  18654. overflow: hidden;
  18655. white-space: nowrap;
  18656. text-overflow: ellipsis;
  18657. }
  18658. .detail_content_top {
  18659. width: 100%;
  18660. padding: 25px 0 25px 0;
  18661. }
  18662. .detail_title {
  18663. text-align: center;
  18664. font-size: 24px;
  18665. }
  18666. .detail_time {
  18667. font-size: 13px;
  18668. padding: 15px 0 0 40px;
  18669. }
  18670. .detail_content {
  18671. line-height: 2pc;
  18672. width: 90%;
  18673. margin: 0 auto;
  18674. padding-top: 30px;
  18675. text-indent: 30px;
  18676. overflow: auto;
  18677. height: 200px;
  18678. }
  18679. .score_box >>> .el-rate {
  18680. margin-left: 10px;
  18681. }
  18682. .dialog_change >>> .el-dialog {
  18683. border-radius: 5px;
  18684. }
  18685. .dialog_change >>> .el-dialog__header {
  18686. background: #f2f2f2;
  18687. text-align: center;
  18688. }
  18689. .dialog_change >>> .el-dialog__title {
  18690. line-height: 5px;
  18691. }
  18692. .dialog_change >>> .el-dialog__body {
  18693. background: #fff;
  18694. padding: 10px 20px;
  18695. }
  18696. .score_box {
  18697. display: flex;
  18698. align-items: center;
  18699. margin-bottom: 18px;
  18700. margin-top: 20px;
  18701. }
  18702. .up_photo {
  18703. width: 120px;
  18704. cursor: pointer;
  18705. margin-top: 10px;
  18706. }
  18707. .up_photo2 {
  18708. width: 180px;
  18709. box-sizing: border-box;
  18710. min-width: 180px;
  18711. height: 180px;
  18712. max-height: 180px;
  18713. min-height: 180px;
  18714. cursor: pointer;
  18715. display: flex;
  18716. flex-direction: column;
  18717. align-items: center;
  18718. justify-content: center;
  18719. background: rgb(242, 246, 255);
  18720. /* padding: 25px; */
  18721. margin-bottom: 10px;
  18722. }
  18723. .up_photo2 img {
  18724. width: 50%;
  18725. height: auto;
  18726. }
  18727. .up_photo2 span {
  18728. color: #898989;
  18729. }
  18730. .plworkBox {
  18731. display: flex;
  18732. align-items: center;
  18733. margin-top: 10px;
  18734. flex-wrap: wrap;
  18735. }
  18736. .upload_send {
  18737. margin: 30px auto 30px;
  18738. width: 60%;
  18739. background: #3681fc;
  18740. text-align: center;
  18741. height: 35px;
  18742. line-height: 35px;
  18743. color: #fff;
  18744. border-radius: 5px;
  18745. cursor: pointer;
  18746. }
  18747. .marginT {
  18748. margin-top: 20px;
  18749. }
  18750. .cd_content_steps {
  18751. display: flex;
  18752. width: 90%;
  18753. justify-content: space-around;
  18754. border-top: 1px solid #eeeeee;
  18755. }
  18756. .cd_steps_box {
  18757. display: flex;
  18758. justify-content: center;
  18759. align-items: center;
  18760. flex-direction: column;
  18761. cursor: pointer;
  18762. }
  18763. .first {
  18764. display: flex;
  18765. align-items: center;
  18766. margin: 15px 0 20px 0;
  18767. font-size: 20px;
  18768. }
  18769. .first > div:nth-child(2) {
  18770. font-size: 16px !important;
  18771. padding-left: 10px;
  18772. line-height: 26px;
  18773. box-sizing: border-box;
  18774. }
  18775. .blue_box_one {
  18776. text-align: center;
  18777. color: #fff;
  18778. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  18779. border-radius: 7px;
  18780. margin: 10px;
  18781. cursor: pointer;
  18782. width: 95%;
  18783. height: 45px;
  18784. display: flex;
  18785. flex-direction: row;
  18786. justify-content: flex-start;
  18787. align-items: center;
  18788. }
  18789. .blue_box_one > div:nth-child(1) {
  18790. line-height: 30px;
  18791. margin: 0 5px 0 10px;
  18792. width: 30%;
  18793. min-width: 70px;
  18794. border-radius: 4px;
  18795. }
  18796. .blue_box_one > div:nth-child(2) {
  18797. white-space: nowrap;
  18798. text-overflow: ellipsis;
  18799. overflow: hidden;
  18800. word-break: break-all;
  18801. width: 70%;
  18802. text-align: left;
  18803. margin-right: 10px;
  18804. max-width: calc(100% - 85px);
  18805. }
  18806. .blue_box_one > div:nth-child(2):hover {
  18807. overflow: hidden;
  18808. text-overflow: ellipsis;
  18809. white-space: nowrap;
  18810. cursor: pointer;
  18811. }
  18812. .upFile {
  18813. margin: 0 auto;
  18814. width: 120px;
  18815. background: #3681fc;
  18816. color: #fff;
  18817. height: 30px;
  18818. text-align: center;
  18819. line-height: 30px;
  18820. border-radius: 5px;
  18821. font-size: 14px;
  18822. cursor: pointer;
  18823. }
  18824. .courseTitle {
  18825. width: 85%;
  18826. margin: 10px auto;
  18827. display: flex;
  18828. flex-direction: row;
  18829. align-items: center;
  18830. justify-content: space-between;
  18831. text-align: center;
  18832. }
  18833. .courseTitle .ctitle {
  18834. font-size: 20px;
  18835. font-weight: bold;
  18836. color: #0e1e33;
  18837. white-space: nowrap;
  18838. overflow: hidden;
  18839. text-overflow: ellipsis;
  18840. }
  18841. .inviteBox {
  18842. font-size: 14px;
  18843. margin-top: 5px;
  18844. color: #a6cbff;
  18845. text-align: center;
  18846. }
  18847. .courseTitle >>> .el-tooltip {
  18848. width: 100%;
  18849. white-space: nowrap;
  18850. overflow: hidden;
  18851. text-overflow: ellipsis;
  18852. word-break: break-word;
  18853. }
  18854. .ml {
  18855. margin-left: 20px;
  18856. color: #5b7dba;
  18857. border-left: 3px solid #5b7dba;
  18858. padding-left: 5px;
  18859. font-weight: bold;
  18860. }
  18861. .return {
  18862. width: 2rem;
  18863. height: 2rem;
  18864. cursor: pointer;
  18865. }
  18866. .return > img {
  18867. width: 100%;
  18868. height: 100%;
  18869. }
  18870. .returnBtn {
  18871. width: 86px;
  18872. height: 36px;
  18873. background: #3681fc;
  18874. border-radius: 4px;
  18875. color: #fff;
  18876. text-align: center;
  18877. line-height: 36px;
  18878. margin-right: 20px;
  18879. cursor: pointer;
  18880. font-size: 14px;
  18881. font-weight: 400;
  18882. display: flex;
  18883. flex-direction: row;
  18884. flex-wrap: nowrap;
  18885. align-items: center;
  18886. justify-content: center;
  18887. }
  18888. .reBtnIcon,
  18889. .commentIcon,
  18890. .vedioIcon,
  18891. .vedioIcon1 {
  18892. /* width: 36px; */
  18893. height: 36px;
  18894. border-radius: 4px;
  18895. position: relative;
  18896. /* background: #e0eafb; */
  18897. background: #0061ff;
  18898. cursor: pointer;
  18899. margin-right: 12px;
  18900. display: flex;
  18901. align-items: center;
  18902. padding: 0 10px;
  18903. box-sizing: border-box;
  18904. font-size: 14px;
  18905. color: #fff;
  18906. }
  18907. .reBtnIcon::before,
  18908. .commentIcon::before,
  18909. .vedioIcon::before,
  18910. .vedioIcon1::before {
  18911. content: "";
  18912. display: block;
  18913. background-size: 100% 100%;
  18914. background-repeat: no-repeat;
  18915. width: 20px;
  18916. height: 20px;
  18917. margin-right: 5px;
  18918. /* position: absolute; */
  18919. /* top: 8px;
  18920. left: 8px; */
  18921. }
  18922. .vedioIcon1 {
  18923. background: #f63564;
  18924. }
  18925. .reBtnIcon::before {
  18926. background-image: url("../../assets/icon/newIcons/refresh.png");
  18927. }
  18928. .commentIcon::before {
  18929. background-image: url("../../assets/icon/newIcons/comment.png");
  18930. }
  18931. .vedioIcon::before {
  18932. background-image: url("../../assets/icon/newIcons/transcribe.png");
  18933. }
  18934. .vedioIcon1::before {
  18935. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  18936. background-image: url("../../assets/icon/newIcons/transcribe.png");
  18937. }
  18938. .tool {
  18939. display: flex;
  18940. flex-direction: column;
  18941. flex-wrap: nowrap;
  18942. width: 13%;
  18943. margin: 0 30px;
  18944. align-items: center;
  18945. position: relative;
  18946. padding: 10px 25px;
  18947. cursor: pointer;
  18948. }
  18949. .whiteBIcon {
  18950. width: 150px;
  18951. }
  18952. .whiteBIcon > img {
  18953. width: 100%;
  18954. height: 100%;
  18955. }
  18956. .mask {
  18957. background-color: rgba(0, 0, 0, 0);
  18958. position: fixed;
  18959. top: 0;
  18960. left: 0;
  18961. width: 100%;
  18962. height: 100%;
  18963. z-index: 20000;
  18964. display: flex;
  18965. align-items: center;
  18966. justify-content: center;
  18967. }
  18968. .progressBox {
  18969. width: 500px;
  18970. height: 180px;
  18971. background: #fff;
  18972. border-radius: 10px;
  18973. box-shadow: 0 0 6px 1px #bfbfbf;
  18974. display: flex;
  18975. align-items: center;
  18976. justify-content: center;
  18977. flex-direction: column;
  18978. position: relative;
  18979. color: #6c6c6c;
  18980. }
  18981. .progressBox >>> .el-progress-bar__outer {
  18982. background-color: #d1dfff !important;
  18983. }
  18984. .progressBox .lbox {
  18985. height: 50px;
  18986. font-size: 19px;
  18987. display: flex;
  18988. align-items: center;
  18989. color: #747474;
  18990. }
  18991. .progressBox .lbox img {
  18992. width: 40px;
  18993. margin-right: 20px;
  18994. }
  18995. .closeCss {
  18996. position: absolute;
  18997. top: 8px;
  18998. right: 8px;
  18999. cursor: pointer;
  19000. width: 20px;
  19001. height: 20px;
  19002. }
  19003. .closeCss > img {
  19004. width: 100%;
  19005. height: 100%;
  19006. }
  19007. .uploadVedio {
  19008. display: flex;
  19009. flex-direction: column;
  19010. flex-wrap: nowrap;
  19011. justify-content: center;
  19012. align-items: center;
  19013. margin: 0 15px 10px 0;
  19014. }
  19015. .uploadVedio > img {
  19016. width: 30px;
  19017. height: 30px;
  19018. }
  19019. .uploadVedio > span {
  19020. white-space: nowrap;
  19021. overflow: hidden;
  19022. text-overflow: ellipsis;
  19023. width: 75px;
  19024. margin-top: 7px;
  19025. }
  19026. .picName {
  19027. white-space: nowrap;
  19028. overflow: hidden;
  19029. text-overflow: ellipsis;
  19030. width: 75px;
  19031. margin-top: 7px;
  19032. }
  19033. .new_top {
  19034. display: flex;
  19035. background: #fff;
  19036. flex-direction: row;
  19037. justify-content: flex-start;
  19038. align-items: center;
  19039. height: 60px;
  19040. position: fixed;
  19041. top: 20px;
  19042. left: 22%;
  19043. width: 77%;
  19044. z-index: 999;
  19045. border-radius: 12px 12px 0 0;
  19046. border-bottom: 1px solid #cad1dc;
  19047. padding: 10px 0;
  19048. }
  19049. .new_topFixed {
  19050. width: 100%;
  19051. height: 40px;
  19052. position: fixed;
  19053. top: 0px;
  19054. display: block;
  19055. background: #f2f2f2;
  19056. z-index: 998;
  19057. }
  19058. .before {
  19059. position: absolute;
  19060. background: #c3dad4;
  19061. width: 6px;
  19062. height: 100%;
  19063. }
  19064. .courseIndex {
  19065. display: flex;
  19066. flex-direction: row;
  19067. align-items: center;
  19068. width: calc(100% - 745px);
  19069. }
  19070. .courseIndex > div:nth-child(1) {
  19071. margin: 0 0 0 10px;
  19072. font-size: 20px;
  19073. min-width: 100px;
  19074. font-weight: bold;
  19075. border-left: 4px solid #3363b9;
  19076. height: 32px;
  19077. text-align: center;
  19078. line-height: 35px;
  19079. }
  19080. .courseIndex > div:nth-child(2) {
  19081. font-size: 20px;
  19082. /* width: 300px; */
  19083. max-width: calc(100% - 105px);
  19084. white-space: nowrap;
  19085. overflow: hidden;
  19086. text-overflow: ellipsis;
  19087. }
  19088. .courseIndex > div:nth-child(3) {
  19089. border-bottom: 1px solid #d7d7d7;
  19090. padding-bottom: 5px;
  19091. background: #3681fc;
  19092. width: 55px;
  19093. min-width: 55px;
  19094. border-radius: 5px;
  19095. color: #fff;
  19096. text-align: center;
  19097. height: 20px;
  19098. line-height: 26px;
  19099. font-size: 14px;
  19100. margin: 0 0 0 10px;
  19101. }
  19102. .course_text {
  19103. padding: 20px 0 0 15px;
  19104. text-indent: 30px;
  19105. width: 80%;
  19106. min-height: 20px;
  19107. }
  19108. .vedioList {
  19109. background: #f2f2f2;
  19110. border: 1px solid #ececec;
  19111. /* width: 38.8%; */
  19112. width: 300px;
  19113. height: 445px;
  19114. border-radius: 10px;
  19115. overflow: hidden;
  19116. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  19117. }
  19118. .vedioNav {
  19119. margin: 10px 0 0 15px;
  19120. border-bottom: 1px solid #d7d7d7;
  19121. padding-bottom: 5px;
  19122. background: #3681fc;
  19123. width: 55px;
  19124. min-width: 55px;
  19125. border-radius: 5px;
  19126. color: #fff;
  19127. text-align: center;
  19128. height: 20px;
  19129. line-height: 26px;
  19130. font-size: 14px;
  19131. }
  19132. .queTop {
  19133. display: flex;
  19134. padding: 20px 0 20px 30px;
  19135. width: 100%;
  19136. flex-direction: row;
  19137. justify-content: flex-start;
  19138. align-items: center;
  19139. box-sizing: border-box;
  19140. }
  19141. .queTopTitle {
  19142. display: flex;
  19143. flex-direction: row;
  19144. flex-wrap: nowrap;
  19145. align-items: center;
  19146. font-weight: bold;
  19147. font-size: 20px;
  19148. color: rgb(14, 30, 51);
  19149. }
  19150. .queTopTitle::before {
  19151. content: "";
  19152. width: 2px;
  19153. height: 22px;
  19154. background: #3681fc;
  19155. border-radius: 3px;
  19156. display: block;
  19157. margin: 2px 6px 0 0;
  19158. }
  19159. .queTopRight {
  19160. display: flex;
  19161. flex-direction: row;
  19162. flex-wrap: nowrap;
  19163. align-items: center;
  19164. }
  19165. .queTopClose {
  19166. margin-right: 20px;
  19167. cursor: pointer;
  19168. position: relative;
  19169. display: flex;
  19170. }
  19171. .closeImg,
  19172. .openImg {
  19173. width: 25px;
  19174. height: 25px;
  19175. position: absolute;
  19176. left: -20px;
  19177. top: -1px;
  19178. }
  19179. .closeImg > img,
  19180. .openImg > img {
  19181. width: 100%;
  19182. height: 100%;
  19183. }
  19184. .question {
  19185. width: 40px;
  19186. margin-right: 10px;
  19187. margin-top: 7px;
  19188. }
  19189. .queTitle {
  19190. margin-left: 5px;
  19191. font-size: 25px;
  19192. display: flex;
  19193. align-items: center;
  19194. }
  19195. .addEditor {
  19196. width: 100px;
  19197. height: 30px;
  19198. background: #42cda6;
  19199. color: #fff;
  19200. border-radius: 5px;
  19201. text-align: center;
  19202. line-height: 30px;
  19203. box-shadow: 1px 3px 6px 1px #bfbfbf;
  19204. cursor: pointer;
  19205. }
  19206. /* .vedioName {
  19207. cursor: pointer;
  19208. margin: 0px 0px 10px 5px;
  19209. white-space: nowrap;
  19210. overflow: hidden;
  19211. text-overflow: ellipsis;
  19212. width: 100%;
  19213. } */
  19214. .vedioTime {
  19215. width: 35px;
  19216. position: absolute;
  19217. color: #fff;
  19218. bottom: 0px;
  19219. right: 0px;
  19220. text-align: center;
  19221. background: #46411f;
  19222. height: 20px;
  19223. font-size: 14px;
  19224. line-height: 20px;
  19225. }
  19226. .homework {
  19227. width: 200px;
  19228. display: flex;
  19229. flex-direction: column;
  19230. flex-wrap: nowrap;
  19231. align-items: center;
  19232. cursor: pointer;
  19233. }
  19234. .homebox {
  19235. display: flex;
  19236. flex-wrap: wrap;
  19237. flex-direction: row;
  19238. justify-content: flex-start;
  19239. align-items: center;
  19240. padding: 15px 0;
  19241. }
  19242. .isChooseActive {
  19243. color: #3681fc !important;
  19244. font-weight: bold !important;
  19245. }
  19246. .chooseWho {
  19247. display: flex;
  19248. width: 100%;
  19249. flex-direction: row;
  19250. flex-wrap: nowrap;
  19251. justify-content: flex-start;
  19252. padding-bottom: 10px;
  19253. }
  19254. .chooseWho > div {
  19255. cursor: pointer;
  19256. padding-bottom: 10px;
  19257. margin: 0 30px 0 0;
  19258. font-weight: 400;
  19259. color: #0e1e33;
  19260. }
  19261. .addPoint > div > img {
  19262. cursor: pointer;
  19263. width: 85px;
  19264. border-radius: 15px;
  19265. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  19266. }
  19267. .addPoint > div {
  19268. display: flex;
  19269. flex-direction: column;
  19270. flex-wrap: nowrap;
  19271. align-items: center;
  19272. }
  19273. .isBorder > div {
  19274. margin: 0 0 10px 0;
  19275. align-items: flex-start !important;
  19276. }
  19277. .noiframeBox {
  19278. display: flex;
  19279. flex-wrap: wrap;
  19280. }
  19281. .iframeBox iframe {
  19282. width: 100%;
  19283. height: 800px;
  19284. border: none;
  19285. margin-bottom: 20px;
  19286. border: 1px solid #ccc;
  19287. }
  19288. .upload_toolBtn {
  19289. background: #3681fc;
  19290. color: #fff;
  19291. width: 110px;
  19292. text-align: center;
  19293. height: 35px;
  19294. line-height: 35px;
  19295. font-size: 14px;
  19296. border-radius: 5px;
  19297. cursor: pointer;
  19298. position: absolute;
  19299. right: 10px;
  19300. bottom: 0;
  19301. }
  19302. .binfo_input,
  19303. .pj {
  19304. font: inherit;
  19305. color: currentColor;
  19306. width: 100%;
  19307. margin: 0;
  19308. padding: 15px 14px;
  19309. display: block;
  19310. min-width: 0;
  19311. outline: none;
  19312. box-sizing: content-box;
  19313. background: none;
  19314. -webkit-tap-highlight-color: transparent;
  19315. border: 1px solid rgba(0, 0, 0, 0.23);
  19316. border-radius: 4px;
  19317. box-sizing: border-box;
  19318. resize: none;
  19319. }
  19320. .binfo_input:focus-visible {
  19321. border: 1px solid rgba(61, 103, 188);
  19322. }
  19323. .dialog_diy >>> .el-dialog__header,
  19324. .dialog_diy1 >>> .el-dialog__header {
  19325. background: #454545 !important;
  19326. padding: 15px 20px;
  19327. }
  19328. .dialog_diy >>> .el-dialog__title,
  19329. .dialog_diy1 >>> .el-dialog__title {
  19330. color: #fff;
  19331. }
  19332. .dialog_diy >>> .el-dialog__headerbtn,
  19333. .dialog_diy1 >>> .el-dialog__headerbtn {
  19334. top: 19px;
  19335. }
  19336. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  19337. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  19338. color: #fff;
  19339. }
  19340. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  19341. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  19342. color: #fff;
  19343. }
  19344. .dialog_diy1 >>> .el-dialog__body {
  19345. padding: 0;
  19346. }
  19347. .dialog_diy >>> .el-dialog__body,
  19348. .dialog_diy >>> .el-dialog__footer,
  19349. .dialog_diy1 >>> .el-dialog__footer {
  19350. background: #fafafa;
  19351. }
  19352. .a_addBox {
  19353. padding: 0 0 0 15px;
  19354. }
  19355. .a_add_box {
  19356. padding: 10px;
  19357. background: #fff;
  19358. margin-bottom: 10px;
  19359. border-radius: 5px;
  19360. box-shadow: 0 0 5px 0 #d5d5d5;
  19361. }
  19362. .a_add_head {
  19363. display: flex;
  19364. align-items: flex-start;
  19365. /* justify-content: space-between; */
  19366. flex-direction: column;
  19367. /* flex-direction: row; */
  19368. margin: 10px 0 20px 0;
  19369. font-size: 18px;
  19370. width: 100%;
  19371. }
  19372. .askIndex {
  19373. background: #3681fc;
  19374. border-radius: 50%;
  19375. color: #fff;
  19376. width: 25px;
  19377. height: 25px;
  19378. min-width: 25px;
  19379. min-height: 25px;
  19380. text-align: center;
  19381. line-height: 25px;
  19382. margin-right: 5px;
  19383. }
  19384. .a_add_head .a_add_head_input {
  19385. width: 300px;
  19386. }
  19387. .a_add_head .a_add_head_div {
  19388. display: flex;
  19389. align-items: center;
  19390. justify-content: space-between;
  19391. }
  19392. .a_add_body {
  19393. display: flex;
  19394. align-items: center;
  19395. }
  19396. .a_add_input {
  19397. display: flex;
  19398. align-items: center;
  19399. flex-wrap: wrap;
  19400. width: 100%;
  19401. }
  19402. .a_add_input >>> .el-radio-group,
  19403. .a_add_input >>> .el-checkbox-group {
  19404. width: 100%;
  19405. }
  19406. .a_add_input >>> .el-radio,
  19407. .a_add_input >>> .el-checkbox {
  19408. display: flex;
  19409. flex-direction: row;
  19410. flex-wrap: nowrap;
  19411. align-items: center;
  19412. padding: 15px 0;
  19413. }
  19414. .a_add_input >>> .el-radio:not(:last-child),
  19415. .a_add_input >>> .el-checkbox:not(:last-child) {
  19416. width: 100%;
  19417. border-bottom: 1px solid #efefef;
  19418. }
  19419. .redioStyle >>> .el-radio__label {
  19420. font-size: 18px;
  19421. }
  19422. .redioStyle >>> .el-radio__label > span,
  19423. .redioStyle >>> .el-checkbox__label > span {
  19424. word-break: break-all;
  19425. white-space: normal;
  19426. }
  19427. .redioStyle >>> .el-checkbox__label {
  19428. font-size: 18px;
  19429. }
  19430. .toolHeng2 {
  19431. width: 100%;
  19432. padding-left: 37px;
  19433. box-sizing: border-box;
  19434. }
  19435. .workNav {
  19436. font-size: 20px;
  19437. font-weight: bold;
  19438. color: #0e1e33;
  19439. display: flex;
  19440. flex-direction: row;
  19441. flex-wrap: nowrap;
  19442. align-items: center;
  19443. padding: 15px 0 15px 0;
  19444. }
  19445. .workNav::before {
  19446. content: "";
  19447. width: 2px;
  19448. height: 22px;
  19449. background: #3681fc;
  19450. border-radius: 3px;
  19451. display: block;
  19452. margin: 2px 6px 0 0;
  19453. }
  19454. .toolHeng {
  19455. display: flex;
  19456. flex-direction: row;
  19457. flex-wrap: wrap;
  19458. justify-content: flex-start;
  19459. align-items: center;
  19460. width: 100%;
  19461. }
  19462. .toolHeng > div {
  19463. padding-left: 20px;
  19464. }
  19465. .isWidth {
  19466. width: 20%;
  19467. }
  19468. .textTitle {
  19469. display: flex;
  19470. flex-direction: row;
  19471. flex-wrap: nowrap;
  19472. align-items: center;
  19473. width: 95%;
  19474. }
  19475. .textTitle >>> .el-form-item__label {
  19476. font-size: 22px;
  19477. color: #918f8f;
  19478. width: 100px;
  19479. }
  19480. .textTitle >>> .el-form-item__content {
  19481. width: calc(100% - 100px);
  19482. }
  19483. .textCss >>> .el-dialog {
  19484. width: 800px !important;
  19485. height: 400px;
  19486. background: #fafafa;
  19487. }
  19488. .textCss >>> .el-dialog__body {
  19489. margin: 55px 8% 0 8%;
  19490. padding: 0 !important;
  19491. }
  19492. .textCss >>> .el-dialog__footer {
  19493. padding-top: 38px;
  19494. }
  19495. .toolsCss >>> .el-dialog__body {
  19496. padding: 20px;
  19497. }
  19498. .lineCss >>> .el-dialog__body {
  19499. display: flex;
  19500. flex-direction: row;
  19501. align-items: center;
  19502. justify-content: center;
  19503. }
  19504. .newNav {
  19505. display: flex;
  19506. flex-direction: row;
  19507. align-items: baseline;
  19508. justify-content: flex-start;
  19509. }
  19510. .navListItem {
  19511. width: 280px;
  19512. height: 50px;
  19513. margin: 0px auto 10px;
  19514. display: flex;
  19515. flex-direction: row;
  19516. flex-wrap: nowrap;
  19517. align-items: center;
  19518. justify-content: space-between;
  19519. background: #f0f4fa;
  19520. border-radius: 6px 6px 6px 6px;
  19521. }
  19522. .navText {
  19523. cursor: pointer;
  19524. white-space: nowrap;
  19525. overflow: hidden;
  19526. text-overflow: ellipsis;
  19527. width: 220px;
  19528. padding: 0 10px;
  19529. font-weight: 400;
  19530. color: #0e1e33;
  19531. }
  19532. .downIcon {
  19533. width: 20px;
  19534. min-width: 20px;
  19535. height: 20px;
  19536. margin-right: 15px;
  19537. cursor: pointer;
  19538. }
  19539. .downIcon > img {
  19540. width: 100%;
  19541. height: 100%;
  19542. }
  19543. .noVedio {
  19544. display: flex;
  19545. flex-direction: row;
  19546. justify-content: center;
  19547. align-content: center;
  19548. }
  19549. .noNavText {
  19550. cursor: pointer;
  19551. margin: 0px 0px 10px 5px;
  19552. width: 112px;
  19553. }
  19554. .listNoVedio {
  19555. margin: 0 0 0 30px;
  19556. width: 97%;
  19557. }
  19558. .video-player >>> .video-js {
  19559. height: 100%;
  19560. }
  19561. .hangVedioList {
  19562. width: 90% !important;
  19563. height: 150px !important;
  19564. margin: 20px 0 0 30px;
  19565. }
  19566. .hangVedio {
  19567. width: 100%;
  19568. height: 170px !important;
  19569. align-items: flex-start !important;
  19570. }
  19571. .hangHand {
  19572. height: 150px !important;
  19573. }
  19574. .twoChild {
  19575. width: 95%;
  19576. margin: 10px;
  19577. border-radius: 5px;
  19578. background: #f2f2f2;
  19579. display: flex;
  19580. flex-direction: column;
  19581. flex-wrap: nowrap;
  19582. justify-content: flex-start;
  19583. align-items: flex-start;
  19584. transition: all 0.5s;
  19585. overflow: hidden;
  19586. height: 0;
  19587. background: #e7f3ff;
  19588. }
  19589. .twoChild > div:nth-child(1) {
  19590. margin-top: 5px;
  19591. }
  19592. .navChild {
  19593. width: 100%;
  19594. cursor: pointer;
  19595. margin-bottom: 10px;
  19596. position: relative;
  19597. }
  19598. .navChild img {
  19599. position: absolute;
  19600. right: 11px;
  19601. width: 15px;
  19602. top: 50%;
  19603. transform: translateY(-50%);
  19604. }
  19605. .navActive,
  19606. .toolActive {
  19607. height: auto !important;
  19608. overflow: auto !important;
  19609. /* padding-bottom: 16px; */
  19610. }
  19611. .toolActive {
  19612. padding: 0;
  19613. }
  19614. .navTask {
  19615. display: flex;
  19616. flex-direction: row;
  19617. flex-wrap: nowrap;
  19618. align-items: center;
  19619. align-content: flex-start;
  19620. height: 40px;
  19621. justify-content: flex-start;
  19622. padding: 0 10px;
  19623. width: 100%;
  19624. box-sizing: border-box;
  19625. }
  19626. .navTaskname {
  19627. white-space: nowrap;
  19628. text-overflow: ellipsis;
  19629. overflow: hidden;
  19630. word-break: break-all;
  19631. padding-left: 5px;
  19632. }
  19633. .openTaskActive {
  19634. background-color: #e0eafb !important;
  19635. color: #0061ff;
  19636. }
  19637. .iframeName {
  19638. margin: 5px 0;
  19639. border-left: 4px solid #41c4a4;
  19640. padding-left: 4px;
  19641. }
  19642. .toolTitle {
  19643. margin: 0px 0px 20px;
  19644. font-size: 20px;
  19645. font-weight: 500;
  19646. border-left: 4px solid #41c4a4;
  19647. padding-left: 4px;
  19648. }
  19649. .cru_selectBox {
  19650. overflow: auto;
  19651. width: 95%;
  19652. margin: 17px auto 0;
  19653. height: calc(100% - 40px - 21px - 20px - 17px);
  19654. background: #fff;
  19655. border-radius: 8px;
  19656. }
  19657. .cru_selectBox::-webkit-scrollbar,
  19658. .study_top::-webkit-scrollbar,
  19659. .textContent::-webkit-scrollbar {
  19660. /*滚动条整体样式*/
  19661. width: 6px;
  19662. /*高宽分别对应横竖滚动条的尺寸*/
  19663. height: 6px;
  19664. }
  19665. /*定义滚动条轨道 内阴影+圆角*/
  19666. .cru_selectBox::-webkit-scrollbar-track,
  19667. .study_top::-webkit-scrollbar-track,
  19668. .textContent::-webkit-scrollbar {
  19669. border-radius: 10px;
  19670. background-color: #b8bdc9;
  19671. }
  19672. /*定义滑块 内阴影+圆角*/
  19673. .cru_selectBox::-webkit-scrollbar-thumb,
  19674. .study_top::-webkit-scrollbar-thumb,
  19675. .textContent::-webkit-scrollbar-thumb {
  19676. border-radius: 10px;
  19677. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  19678. background-color: #2c5ab3;
  19679. }
  19680. .vedioBox {
  19681. border-radius: 0 0 20px 20px;
  19682. background: #fff;
  19683. overflow: auto;
  19684. }
  19685. .taskBox {
  19686. width: 98%;
  19687. background: #f0f4fa;
  19688. margin: 10px auto;
  19689. padding: 0 10px;
  19690. border-radius: 4px;
  19691. box-sizing: border-box;
  19692. }
  19693. .vedioTaskBox {
  19694. width: 100%;
  19695. display: flex;
  19696. flex-direction: row;
  19697. flex-wrap: nowrap;
  19698. align-items: flex-start;
  19699. position: relative;
  19700. }
  19701. .toolBox {
  19702. margin: 15px 0 0 25px;
  19703. display: flex;
  19704. position: relative;
  19705. background: #f0f4fa;
  19706. padding: 18px 20px;
  19707. border-top-left-radius: 5px;
  19708. border-top-right-radius: 5px;
  19709. width: 90%;
  19710. }
  19711. .btnAll {
  19712. position: absolute;
  19713. right: 0;
  19714. display: flex;
  19715. flex-direction: row;
  19716. flex-wrap: nowrap;
  19717. align-items: center;
  19718. }
  19719. .btnLeft,
  19720. .btnRight {
  19721. display: flex;
  19722. flex-direction: row;
  19723. flex-wrap: nowrap;
  19724. align-items: center;
  19725. padding: 5px 0;
  19726. }
  19727. .btnLeft {
  19728. border-right: 1px solid #cad1dc;
  19729. }
  19730. .btnLeft > .custom-tooltip {
  19731. background: #3681fc;
  19732. color: #fff;
  19733. }
  19734. .last:hover {
  19735. background: #3383fa !important;
  19736. color: #fff;
  19737. border: 1px solid #3383fa !important;
  19738. }
  19739. .last,
  19740. .returnBtn1 {
  19741. width: 90px;
  19742. height: 36px;
  19743. background: #ffffff;
  19744. border-radius: 4px;
  19745. border: 1px solid #0061ff;
  19746. color: #0061ff;
  19747. cursor: pointer;
  19748. display: flex;
  19749. flex-direction: row;
  19750. flex-wrap: nowrap;
  19751. align-items: center;
  19752. justify-content: center;
  19753. margin-left: 12px;
  19754. }
  19755. .returnBtn1 {
  19756. background: #f0f4fa;
  19757. border-radius: 4px;
  19758. border: 1px solid #cad1dc;
  19759. margin: 0 12px;
  19760. }
  19761. .lastImg {
  19762. min-width: 15px;
  19763. width: 15px;
  19764. height: 15px;
  19765. }
  19766. .lastText {
  19767. padding: 0 5px 2px 5px;
  19768. box-sizing: border-box;
  19769. font-size: 14px;
  19770. }
  19771. .lastImg > img {
  19772. width: 100%;
  19773. height: 100%;
  19774. }
  19775. /* .vedioTimeBox {
  19776. display: flex;
  19777. flex-direction: row;
  19778. align-items: center;
  19779. flex-wrap: nowrap;
  19780. position: relative;
  19781. } */
  19782. .navBox {
  19783. background: #fff;
  19784. height: calc(100% - 40px);
  19785. overflow-y: auto;
  19786. overflow-x: hidden;
  19787. }
  19788. .worksBox {
  19789. margin: 0 0 10px 25px;
  19790. border-bottom: 1px solid #eeeeee;
  19791. background: #f0f4fa;
  19792. padding: 18px 20px;
  19793. border-radius: 4px;
  19794. width: 90%;
  19795. }
  19796. .worksBTitle {
  19797. font-size: 20px;
  19798. padding-bottom: 15px;
  19799. border-bottom: 1px solid #eeeeee;
  19800. display: flex;
  19801. align-items: center;
  19802. }
  19803. .greenBox {
  19804. width: 5px;
  19805. height: 30px;
  19806. background: #63b6fa;
  19807. margin-right: 5px;
  19808. }
  19809. .worksDetailBox {
  19810. display: flex;
  19811. width: 100%;
  19812. flex-direction: row;
  19813. flex-wrap: wrap;
  19814. align-items: flex-end;
  19815. justify-content: flex-start;
  19816. padding: 15px 0;
  19817. }
  19818. .works {
  19819. display: flex;
  19820. flex-direction: column;
  19821. flex-wrap: nowrap;
  19822. align-items: flex-start;
  19823. justify-content: flex-start;
  19824. align-content: center;
  19825. max-width: 240px;
  19826. width: calc(100% / 3 - 10px);
  19827. height: auto;
  19828. margin-right: 10px;
  19829. margin-bottom: 10px;
  19830. overflow: hidden;
  19831. height: 140px;
  19832. box-shadow: 0 0 6px 1px #dfdada;
  19833. border-radius: 15px;
  19834. }
  19835. .workImg {
  19836. width: 100%;
  19837. /* height: calc(100% - 40px); */
  19838. height: 105px;
  19839. position: relative;
  19840. }
  19841. .workImg > img {
  19842. width: 100%;
  19843. height: 100%;
  19844. object-fit: contain;
  19845. cursor: pointer;
  19846. }
  19847. .worksName {
  19848. height: 40px;
  19849. line-height: 40px;
  19850. display: flex;
  19851. width: 100%;
  19852. flex-direction: row;
  19853. flex-wrap: nowrap;
  19854. justify-content: space-between;
  19855. align-items: center;
  19856. margin: 0 0 0 10px;
  19857. }
  19858. .worksName > div:nth-child(1) {
  19859. width: 110px;
  19860. white-space: nowrap;
  19861. overflow: hidden;
  19862. text-overflow: ellipsis;
  19863. }
  19864. .worksName > div:nth-child(2) {
  19865. color: #b7b4b5;
  19866. }
  19867. .noWorksS {
  19868. padding: 15px 0;
  19869. display: flex;
  19870. flex-direction: row;
  19871. flex-wrap: wrap;
  19872. align-items: center;
  19873. justify-content: flex-start;
  19874. }
  19875. .noWorksName,
  19876. .isWorksName,
  19877. .isWorksName2 {
  19878. background: #ddebf8;
  19879. color: #000;
  19880. width: 90px;
  19881. height: 25px;
  19882. text-align: center;
  19883. line-height: 25px;
  19884. border-radius: 4px;
  19885. margin: 10px 15px 10px 0;
  19886. white-space: nowrap;
  19887. overflow: hidden;
  19888. padding: 5px;
  19889. text-overflow: ellipsis;
  19890. cursor: pointer;
  19891. border: 1px solid #ddebf8;
  19892. }
  19893. .noWorksName {
  19894. background: #fff;
  19895. color: #0061ff;
  19896. border: 1px solid #0061ff;
  19897. }
  19898. .isWorksName2 {
  19899. width: 100px;
  19900. height: 40px;
  19901. line-height: 40px;
  19902. position: relative;
  19903. background: #dae6f9;
  19904. }
  19905. .isWorksName {
  19906. background: #e7ebf1 !important;
  19907. width: 100px;
  19908. height: 40px;
  19909. line-height: 40px;
  19910. position: relative;
  19911. color: #acb4bf;
  19912. border: 1px solid #cad1dc !important;
  19913. }
  19914. .isSelectName,
  19915. .noWorksName:hover {
  19916. background: #3383fa !important;
  19917. color: #fff !important;
  19918. border: 1px solid #3383fa !important;
  19919. }
  19920. .title {
  19921. background: #1e5cc9;
  19922. /* width: 98%; */
  19923. height: 45px;
  19924. color: #fff;
  19925. line-height: 45px;
  19926. padding-left: 20px;
  19927. box-sizing: border-box;
  19928. }
  19929. .textBox {
  19930. font-size: 20px;
  19931. width: 90%;
  19932. display: flex;
  19933. flex-direction: column;
  19934. align-items: center;
  19935. margin: 20px auto 0;
  19936. max-height: calc(100% - 75px);
  19937. overflow: auto;
  19938. }
  19939. .textContent {
  19940. font-size: 18px;
  19941. width: 95%;
  19942. max-width: 95%;
  19943. }
  19944. .answerBg {
  19945. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  19946. background-size: 100% 100%;
  19947. width: 100%;
  19948. height: 100%;
  19949. color: #fff;
  19950. text-align: center;
  19951. display: flex;
  19952. flex-direction: column;
  19953. flex-wrap: nowrap;
  19954. align-items: center;
  19955. position: relative;
  19956. justify-content: center;
  19957. }
  19958. .answerBg > div:nth-child(1) {
  19959. /* font-size: 22px;
  19960. padding: 25px 0 10px; */
  19961. }
  19962. .answerContent {
  19963. width: 215px;
  19964. max-height: 60px;
  19965. word-break: break-all;
  19966. text-align: center;
  19967. /* white-space: nowrap; */
  19968. overflow: hidden;
  19969. text-overflow: ellipsis;
  19970. /* padding: 23px 0 0; */
  19971. -webkit-line-clamp: 3;
  19972. -webkit-box-orient: vertical;
  19973. display: -webkit-box;
  19974. font-size: 15px;
  19975. cursor: pointer;
  19976. }
  19977. .elist_input_box {
  19978. display: flex;
  19979. align-items: flex-start;
  19980. flex-wrap: nowrap;
  19981. padding: 10px 0 15px 30px;
  19982. flex-direction: column;
  19983. }
  19984. .elist_input {
  19985. /* width: 40%; */
  19986. width: 45%;
  19987. margin: 20px;
  19988. }
  19989. .elist_input .elist_input_box input {
  19990. font: inherit;
  19991. color: currentColor;
  19992. width: 200px;
  19993. padding: 8px 14px;
  19994. display: block;
  19995. min-width: 0;
  19996. outline: none;
  19997. border: 1px solid rgba(0, 0, 0, 0.23);
  19998. border-radius: 4px;
  19999. box-sizing: border-box;
  20000. background: #fff;
  20001. margin: 0 20px 0 0;
  20002. }
  20003. .elist_input .elist_input_box span {
  20004. height: 36px;
  20005. line-height: 36px;
  20006. color: rgb(82, 82, 82);
  20007. }
  20008. .elist_input .elist_input_box .remove {
  20009. height: 20px;
  20010. width: 20px;
  20011. background-size: 100% 100%;
  20012. background-position: unset;
  20013. margin-left: 5px;
  20014. }
  20015. .elist_input_box >>> .el-rate {
  20016. display: flex;
  20017. height: 36px;
  20018. align-items: center;
  20019. }
  20020. .elist_input_box .elist_inptu_text {
  20021. min-height: 50px;
  20022. /* width: 500px;
  20023. max-height: 150px; */
  20024. width: 100%;
  20025. line-height: 50px;
  20026. color: rgb(82, 82, 82);
  20027. overflow: auto;
  20028. text-indent: 5px;
  20029. background: #f7f6f9;
  20030. border-radius: 10px;
  20031. }
  20032. .elist_input_box .elist_inptu_text input {
  20033. width: 500px;
  20034. }
  20035. .elist_input_box >>> .el-rate__icon {
  20036. font-size: 24px;
  20037. }
  20038. .isClick {
  20039. background: #4d9def;
  20040. }
  20041. .bzBox {
  20042. display: flex;
  20043. flex-direction: row;
  20044. align-items: center;
  20045. }
  20046. .bzBox .yCss {
  20047. width: 7px;
  20048. height: 7px;
  20049. background: #fff;
  20050. margin: 0 16px 0 6px;
  20051. border-radius: 50%;
  20052. border: 5px solid #3681fc;
  20053. z-index: 99;
  20054. }
  20055. .bzBox > div:nth-child(2) {
  20056. font-size: 18px;
  20057. font-weight: bold;
  20058. color: #0e1e33;
  20059. }
  20060. .navTitile {
  20061. padding: 0 0px 0 15px;
  20062. font-size: 16px;
  20063. font-weight: bold;
  20064. color: #0e1e33;
  20065. height: 40px;
  20066. line-height: 40px;
  20067. }
  20068. .isTypeOne {
  20069. width: 240px;
  20070. height: 170px;
  20071. /* border: 1px solid #f8f8f8; */
  20072. border-radius: 10px;
  20073. box-shadow: 0 0 6px 1px #dfdada;
  20074. }
  20075. .e_add_top {
  20076. display: flex;
  20077. justify-content: space-between;
  20078. padding: 20px 20px 0 20px;
  20079. border-radius: 3px;
  20080. background: #fff;
  20081. }
  20082. .e_add_title2 {
  20083. display: flex;
  20084. align-items: center;
  20085. }
  20086. .e_add_title2 span {
  20087. width: 40px;
  20088. }
  20089. .e_add_title {
  20090. display: flex;
  20091. align-items: center;
  20092. color: #b8b8b8;
  20093. font-size: 18px;
  20094. position: relative;
  20095. height: 40px;
  20096. }
  20097. .e_add_title span {
  20098. margin-right: 10px;
  20099. }
  20100. .e_add_title .el_input {
  20101. width: 300px;
  20102. }
  20103. .e_add_title >>> .el-input__inner {
  20104. width: 400px;
  20105. }
  20106. .e_add_btn {
  20107. }
  20108. .e_add_content {
  20109. display: flex;
  20110. width: 100%;
  20111. max-width: 650px;
  20112. height: 550px;
  20113. }
  20114. .e_add_list {
  20115. background: #fff;
  20116. height: 500px;
  20117. width: 210px;
  20118. position: relative;
  20119. margin: 15px 5px 0 0;
  20120. flex-shrink: 0;
  20121. display: flex;
  20122. flex-direction: column;
  20123. }
  20124. .e_add_list_title {
  20125. font-size: 20px;
  20126. width: 100%;
  20127. box-sizing: border-box;
  20128. padding: 15px 40px;
  20129. text-align: center;
  20130. border-bottom: 1px solid #eaeaea;
  20131. position: relative;
  20132. display: flex;
  20133. align-items: center;
  20134. justify-content: center;
  20135. height: 57px;
  20136. background: #f6f6f6;
  20137. }
  20138. .e_add_list_title span {
  20139. overflow: hidden;
  20140. white-space: nowrap;
  20141. text-overflow: ellipsis;
  20142. }
  20143. .e_add_list_title img {
  20144. position: absolute;
  20145. right: 15px;
  20146. width: 25px;
  20147. cursor: pointer;
  20148. top: 50%;
  20149. transform: translateY(-50%);
  20150. }
  20151. .e_add_list_body {
  20152. height: calc(100% - 187px);
  20153. overflow: auto;
  20154. }
  20155. .e_add_list_child {
  20156. width: 100%;
  20157. display: flex;
  20158. align-items: center;
  20159. justify-content: center;
  20160. position: relative;
  20161. box-sizing: border-box;
  20162. padding: 15px 40px;
  20163. text-align: center;
  20164. }
  20165. .e_add_list_child span {
  20166. overflow: hidden;
  20167. white-space: nowrap;
  20168. text-overflow: ellipsis;
  20169. cursor: pointer;
  20170. }
  20171. .e_add_list_child img {
  20172. position: absolute;
  20173. right: 10px;
  20174. width: 21px;
  20175. cursor: pointer;
  20176. top: 50%;
  20177. transform: translateY(-50%);
  20178. }
  20179. .e_add_list_child + .e_add_list_child {
  20180. border-top: 1px solid #eaeaea;
  20181. }
  20182. .e_add_list_child .active {
  20183. color: #409eff;
  20184. }
  20185. .e_add_list_btn {
  20186. position: absolute;
  20187. bottom: 0;
  20188. height: 50px;
  20189. background: rgb(120, 120, 254);
  20190. width: 100%;
  20191. color: #fff;
  20192. font-size: 16px;
  20193. text-align: center;
  20194. line-height: 50px;
  20195. cursor: pointer;
  20196. }
  20197. .e_add_list_detail {
  20198. position: absolute;
  20199. bottom: 0;
  20200. height: 130px;
  20201. background: rgb(120, 120, 254);
  20202. width: 100%;
  20203. color: #fff;
  20204. font-size: 16px;
  20205. display: flex;
  20206. align-items: center;
  20207. justify-content: center;
  20208. }
  20209. .e_add_list_detail textarea {
  20210. height: 90%;
  20211. width: 95%;
  20212. border: none;
  20213. resize: none;
  20214. outline: none;
  20215. padding: 5px;
  20216. box-sizing: border-box;
  20217. }
  20218. .e_add_list_pbox {
  20219. width: 100%;
  20220. max-width: 650px;
  20221. /* height: 600px; */
  20222. }
  20223. .e_add_list_pbox_title {
  20224. height: 50px;
  20225. background: #fff;
  20226. display: flex;
  20227. align-items: center;
  20228. width: 100%;
  20229. box-sizing: border-box;
  20230. padding: 0 20px;
  20231. }
  20232. .type_title {
  20233. font-size: 18px;
  20234. font-weight: 700;
  20235. }
  20236. .type_content {
  20237. font-size: 16px;
  20238. margin-left: 30px;
  20239. }
  20240. .type_content span + span {
  20241. margin-left: 20px;
  20242. }
  20243. .type_content span {
  20244. cursor: pointer;
  20245. padding-bottom: 5px;
  20246. box-sizing: border-box;
  20247. }
  20248. .type_content .active {
  20249. color: #409eff;
  20250. border-bottom: 2px solid #409eff;
  20251. }
  20252. .e_add_list_pbox_content {
  20253. height: calc(100% - 50px);
  20254. display: flex;
  20255. align-items: center;
  20256. width: 100%;
  20257. background: #fff;
  20258. }
  20259. .evaCss {
  20260. display: flex;
  20261. flex-direction: row;
  20262. flex-wrap: nowrap;
  20263. align-items: flex-start;
  20264. padding: 0 0 20px;
  20265. }
  20266. .cru_line {
  20267. position: absolute;
  20268. bottom: 0px;
  20269. transition: all 0.5s;
  20270. left: 0px;
  20271. width: 125px;
  20272. margin-left: -25px;
  20273. }
  20274. .isNoMessage {
  20275. width: 20%;
  20276. margin: 25% auto 0;
  20277. }
  20278. .isNoMessage > img {
  20279. width: 100%;
  20280. height: 100%;
  20281. }
  20282. .fullStyle >>> .el-dialog__body {
  20283. height: 100% !important;
  20284. }
  20285. .fullStyle >>> .el-dialog,
  20286. .fullStyle {
  20287. width: 100% !important;
  20288. max-width: 100% !important;
  20289. height: 100% !important;
  20290. margin: 0 !important;
  20291. }
  20292. .full_diy >>> .el-dialog {
  20293. margin: 0 !important;
  20294. height: 100%;
  20295. padding: 4px;
  20296. }
  20297. .full_diy >>> .el-dialog__body {
  20298. height: calc(100% - 100px);
  20299. }
  20300. .full_diy2 >>> .el-dialog__body {
  20301. height: calc(100% - 50px);
  20302. padding: 0;
  20303. }
  20304. .switchCss {
  20305. /* width: 100%; */
  20306. display: flex;
  20307. flex-direction: row;
  20308. flex-wrap: nowrap;
  20309. align-items: center;
  20310. /* justify-content: center; */
  20311. }
  20312. .isClickNav {
  20313. /* color: #499eef; */
  20314. color: #000;
  20315. }
  20316. .commentImg {
  20317. width: 25px;
  20318. height: 25px;
  20319. cursor: pointer;
  20320. }
  20321. .commentImg > img {
  20322. width: 100%;
  20323. height: 100%;
  20324. }
  20325. .comment {
  20326. background: #f9f9f9;
  20327. border-radius: 0 0 4px 4px;
  20328. display: flex;
  20329. flex-direction: row;
  20330. flex-wrap: nowrap;
  20331. align-items: center;
  20332. justify-content: flex-end;
  20333. height: 35px;
  20334. }
  20335. .commentList {
  20336. display: flex;
  20337. flex-direction: row;
  20338. flex-wrap: nowrap;
  20339. align-items: center;
  20340. justify-content: center;
  20341. align-content: center;
  20342. /* margin-left: 15px; */
  20343. /* margin-left: 8px; */
  20344. }
  20345. .scoreImg {
  20346. width: 17px;
  20347. height: 17px;
  20348. }
  20349. .studentDetail {
  20350. display: flex;
  20351. flex-direction: row;
  20352. flex-wrap: nowrap;
  20353. /* align-items: center; */
  20354. align-items: flex-start;
  20355. }
  20356. .tx {
  20357. width: 50px;
  20358. }
  20359. .tx > img {
  20360. width: 100%;
  20361. height: 100%;
  20362. }
  20363. .nameAndTime {
  20364. display: flex;
  20365. flex-direction: column;
  20366. flex-wrap: nowrap;
  20367. align-items: flex-start;
  20368. margin-left: 10px;
  20369. }
  20370. .worksAnswer {
  20371. color: #4078dd;
  20372. margin: 10px 0;
  20373. font-size: 16px;
  20374. position: relative;
  20375. }
  20376. .worksAnswer > img {
  20377. width: 500px;
  20378. height: 300px;
  20379. object-fit: contain;
  20380. margin: 0 auto;
  20381. display: block;
  20382. }
  20383. .commentTop {
  20384. border-bottom: 1px solid #eaeaea;
  20385. padding-bottom: 10px;
  20386. }
  20387. .commentBox {
  20388. padding-top: 15px;
  20389. }
  20390. .pl {
  20391. font-size: 18px;
  20392. }
  20393. .plPerson {
  20394. width: 100%;
  20395. }
  20396. .plName {
  20397. display: flex;
  20398. flex-direction: row;
  20399. flex-wrap: nowrap;
  20400. align-items: baseline;
  20401. color: #78787a;
  20402. width: 100%;
  20403. }
  20404. .deleteComment {
  20405. cursor: pointer;
  20406. margin-left: auto;
  20407. color: #237ade;
  20408. }
  20409. .plContent {
  20410. margin-top: 5px;
  20411. }
  20412. .evalCss {
  20413. background: #fff;
  20414. font-size: 18px;
  20415. }
  20416. .nav {
  20417. color: #9d9d9d;
  20418. padding: 5px 0 15px 20px;
  20419. }
  20420. .middleBox {
  20421. padding: 5px 0 15px 20px;
  20422. }
  20423. .pfBox {
  20424. padding-bottom: 30px;
  20425. }
  20426. .nameAndrate {
  20427. display: flex;
  20428. flex-direction: row;
  20429. flex-wrap: nowrap;
  20430. align-items: center;
  20431. padding-bottom: 10px;
  20432. height: 30px;
  20433. line-height: 30px;
  20434. }
  20435. .nameAndrate > div {
  20436. margin-left: 10px;
  20437. color: #000;
  20438. height: 30px;
  20439. }
  20440. .nameAndrate >>> .el-rate__icon {
  20441. font-size: 28px !important;
  20442. }
  20443. .pfBox > div:nth-child(2) {
  20444. background: #f7f6f9;
  20445. width: 400px;
  20446. min-height: 45px;
  20447. border-radius: 10px;
  20448. font-size: 16px;
  20449. display: flex;
  20450. flex-wrap: wrap;
  20451. align-items: center;
  20452. padding: 10px 20px;
  20453. box-sizing: border-box;
  20454. color: #000;
  20455. }
  20456. .bz {
  20457. display: flex;
  20458. flex-direction: row;
  20459. flex-wrap: nowrap;
  20460. align-items: flex-start;
  20461. }
  20462. .bz > div {
  20463. padding: 0 10px;
  20464. }
  20465. .select_box2_title {
  20466. background: #fff;
  20467. border-radius: 5px;
  20468. padding: 15px 10px;
  20469. box-sizing: border-box;
  20470. margin-bottom: 10px;
  20471. display: flex;
  20472. flex-direction: row;
  20473. flex-wrap: nowrap;
  20474. align-items: center;
  20475. }
  20476. .select_box2_title > div:nth-child(2) {
  20477. margin-left: 10px;
  20478. color: #c4c4c4;
  20479. }
  20480. .select_box2_box {
  20481. display: flex;
  20482. height: 500px;
  20483. }
  20484. .select_box2_img {
  20485. width: calc(100% - 310px);
  20486. height: 100%;
  20487. overflow: auto;
  20488. background: #fff;
  20489. border-radius: 5px;
  20490. }
  20491. .select_box2_img img {
  20492. width: 100%;
  20493. }
  20494. .select_box2_answer {
  20495. background: #fff;
  20496. margin-left: 10px;
  20497. border-radius: 5px;
  20498. width: 300px;
  20499. overflow: auto;
  20500. height: 90%;
  20501. display: flex;
  20502. flex-direction: column;
  20503. align-items: flex-start;
  20504. padding-top: 10px;
  20505. box-sizing: border-box;
  20506. position: relative;
  20507. }
  20508. .select_answer_title {
  20509. padding: 0 0 15px 20px;
  20510. color: #c4c4c4;
  20511. }
  20512. .select_box2_answer_box {
  20513. margin: 0 0 10px 20px;
  20514. width: 85%;
  20515. display: flex;
  20516. flex-direction: row;
  20517. flex-wrap: nowrap;
  20518. align-items: center;
  20519. }
  20520. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  20521. color: #000;
  20522. }
  20523. .upAnswerCss {
  20524. position: absolute;
  20525. bottom: 15px;
  20526. right: 15px;
  20527. }
  20528. .upAnswerCss >>> .el-button {
  20529. width: 95px;
  20530. height: 35px;
  20531. line-height: 35px;
  20532. padding: 0;
  20533. }
  20534. .rightWidthCss {
  20535. width: 60%;
  20536. display: flex;
  20537. flex-direction: row;
  20538. align-items: flex-start;
  20539. }
  20540. .rightAnswer {
  20541. display: flex;
  20542. flex-direction: row;
  20543. flex-wrap: nowrap;
  20544. align-items: center;
  20545. color: red;
  20546. margin-bottom: 31px;
  20547. }
  20548. .rightAnswerCss {
  20549. display: flex;
  20550. flex-direction: column;
  20551. flex-wrap: nowrap;
  20552. padding-top: 60px;
  20553. }
  20554. .blueCss {
  20555. color: #767de1;
  20556. margin-left: 10px;
  20557. }
  20558. .redCss {
  20559. color: red;
  20560. }
  20561. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  20562. color: rgb(0 123 255) !important;
  20563. }
  20564. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  20565. color: rgb(0 123 255) !important;
  20566. }
  20567. .zuoyeYulan {
  20568. padding-top: 0;
  20569. font-size: 18px;
  20570. display: flex;
  20571. align-items: flex-end;
  20572. }
  20573. .buttonA {
  20574. margin-left: 10px;
  20575. padding: 0;
  20576. }
  20577. .displayBox {
  20578. margin-bottom: 10px;
  20579. display: block;
  20580. border-bottom: 3px solid #eee;
  20581. display: flex;
  20582. align-items: center;
  20583. }
  20584. .easy_comment {
  20585. width: calc(100% - 90px);
  20586. margin-left: 10px;
  20587. display: flex;
  20588. flex-wrap: wrap;
  20589. }
  20590. .easy_comment > div {
  20591. border: 1px solid #4a4a4a;
  20592. color: #666;
  20593. border-radius: 15px;
  20594. padding: 5px 10px;
  20595. font-size: 16px;
  20596. margin-bottom: 10px;
  20597. margin-right: 5px;
  20598. cursor: pointer;
  20599. }
  20600. .easy_comment div:hover {
  20601. border: 1px solid #f7ba2a;
  20602. color: #c69217;
  20603. }
  20604. .xuan_right_box {
  20605. padding: 10px 0;
  20606. background: #f0f4fa;
  20607. margin: 0 15px 0 25px;
  20608. border-bottom-left-radius: 5px;
  20609. border-bottom-right-radius: 5px;
  20610. width: 91.5%;
  20611. }
  20612. .tool_right_box {
  20613. display: flex;
  20614. align-items: center;
  20615. }
  20616. .tool_right_box + .tool_right_box {
  20617. margin-top: 10px;
  20618. }
  20619. .right_box_xuan {
  20620. background: rgb(0 123 255);
  20621. color: #fff;
  20622. border-radius: 5px;
  20623. padding: 5px;
  20624. margin-left: 10px;
  20625. min-width: 95px;
  20626. }
  20627. .pButton:hover {
  20628. opacity: 1 !important;
  20629. }
  20630. .pButton {
  20631. position: fixed;
  20632. text-align: center;
  20633. cursor: pointer;
  20634. z-index: 999;
  20635. right: 20px;
  20636. top: 110px;
  20637. width: 50px;
  20638. height: 50px;
  20639. display: flex;
  20640. align-items: center;
  20641. justify-content: center;
  20642. border-radius: 5px;
  20643. }
  20644. .pzClass {
  20645. width: calc(100% - 340px);
  20646. }
  20647. .newDialogCss {
  20648. /* position: fixed;
  20649. right: 5%;
  20650. top: 50%;
  20651. width: 340px;
  20652. transform: translateY(-50%);
  20653. height: 60%;
  20654. box-shadow: 0px 0 8px 0px #555555;
  20655. border-radius: 15px;
  20656. z-index: 999; */
  20657. position: fixed;
  20658. right: 20px;
  20659. top: 101px;
  20660. width: 330px;
  20661. height: calc(100% - 80px);
  20662. z-index: 999;
  20663. background: #fff;
  20664. border-top-right-radius: 0px;
  20665. border-bottom-right-radius: 0px;
  20666. overflow: hidden;
  20667. }
  20668. .pzTop {
  20669. color: #fff;
  20670. background: #000;
  20671. display: flex;
  20672. flex-direction: row;
  20673. flex-wrap: nowrap;
  20674. align-items: center;
  20675. justify-content: space-between;
  20676. height: 40px;
  20677. border-radius: 15px 15px 0 0;
  20678. user-select: none;
  20679. }
  20680. .pzTop2 .checkbox {
  20681. display: flex;
  20682. align-items: center;
  20683. padding: 5px 30px;
  20684. flex: 0 0 auto;
  20685. font-weight: bold;
  20686. border-bottom: 1px solid #eee;
  20687. justify-content: space-between;
  20688. }
  20689. .pzTop2 .check {
  20690. text-align: center;
  20691. cursor: pointer;
  20692. box-sizing: border-box;
  20693. display: flex;
  20694. }
  20695. .pzTop2 img {
  20696. width: 25px;
  20697. cursor: pointer;
  20698. }
  20699. .pzTop > div:nth-child(1) {
  20700. padding-left: 10px;
  20701. }
  20702. .pzTop > div:nth-child(2) {
  20703. width: 15px;
  20704. height: 15px;
  20705. padding-right: 10px;
  20706. cursor: pointer;
  20707. }
  20708. .pzTop > div:nth-child(2) > img {
  20709. width: 100%;
  20710. height: 100%;
  20711. }
  20712. .pzBox,
  20713. .noPzBox {
  20714. height: calc(100% - 60px);
  20715. /* background: #ededed; */
  20716. background: #fff;
  20717. /* border-radius: 0 0 15px 15px; */
  20718. }
  20719. .noPzBox {
  20720. display: flex;
  20721. flex-direction: column;
  20722. flex-wrap: nowrap;
  20723. justify-content: center;
  20724. align-items: center;
  20725. }
  20726. .pzList {
  20727. background: #f7f7f7;
  20728. width: 90%;
  20729. margin: 0 auto 15px;
  20730. border-radius: 5px;
  20731. }
  20732. .pzNavTop {
  20733. display: flex;
  20734. flex-direction: row;
  20735. flex-wrap: nowrap;
  20736. padding: 10px 10px 0 10px;
  20737. align-items: center;
  20738. }
  20739. .pzDelete {
  20740. cursor: pointer;
  20741. margin-left: auto;
  20742. font-size: 14px;
  20743. color: #afafaf;
  20744. }
  20745. .pzNavTop > div:nth-child(1) {
  20746. background: #3760af;
  20747. width: 35px;
  20748. height: 35px;
  20749. color: #fff;
  20750. text-align: center;
  20751. line-height: 35px;
  20752. border-radius: 50%;
  20753. font-size: 14px;
  20754. }
  20755. .pzNavTop > div:nth-child(2) {
  20756. font-size: 18px;
  20757. color: #959595;
  20758. margin-left: 5px;
  20759. }
  20760. .pzContent {
  20761. padding: 10px;
  20762. word-break: break-word;
  20763. }
  20764. .pzContent audio {
  20765. width: 100%;
  20766. }
  20767. .pzContent audio::-webkit-media-controls-panel {
  20768. background: #fff;
  20769. }
  20770. .pzContent >>> img {
  20771. max-width: 100%;
  20772. }
  20773. .pzListBox {
  20774. padding-top: 15px;
  20775. height: calc(100% - 110px);
  20776. overflow: auto;
  20777. }
  20778. .addPzButton {
  20779. position: relative;
  20780. margin-top: 3px;
  20781. width: 100%;
  20782. }
  20783. .addPzButton .img1 {
  20784. position: absolute;
  20785. top: 50%;
  20786. right: 25px;
  20787. transform: translateY(-50%);
  20788. height: 100%;
  20789. display: flex;
  20790. align-items: center;
  20791. }
  20792. .addPzButton .img1 div {
  20793. display: flex;
  20794. }
  20795. .addPzButton .img1 div img {
  20796. width: 28px;
  20797. margin-left: 10px;
  20798. cursor: pointer;
  20799. }
  20800. .addPzButton .img1 div span {
  20801. font-size: 14px;
  20802. margin: 4px 0 0 3px;
  20803. color: #afafaf;
  20804. }
  20805. .addPz {
  20806. background: #4b79ce;
  20807. width: 100px;
  20808. color: #fff;
  20809. font-size: 12px;
  20810. height: 30px;
  20811. margin: 0 auto;
  20812. text-align: center;
  20813. line-height: 30px;
  20814. border-radius: 10px;
  20815. cursor: pointer;
  20816. }
  20817. .addDialogCss {
  20818. position: fixed;
  20819. width: 600px;
  20820. height: 70%;
  20821. min-height: 450px;
  20822. box-shadow: 0px 0 8px 0px #555555;
  20823. border-radius: 15px;
  20824. z-index: 999;
  20825. left: 50%;
  20826. top: 50%;
  20827. margin: -18% 0 0 -300px;
  20828. }
  20829. .teacherPz {
  20830. display: flex;
  20831. flex-direction: row;
  20832. align-items: center;
  20833. flex-wrap: nowrap;
  20834. }
  20835. .teacherPzImg {
  20836. width: 30px;
  20837. height: 30px;
  20838. }
  20839. .teacherPzImg > img {
  20840. width: 100%;
  20841. height: 100%;
  20842. }
  20843. .addPzBox {
  20844. height: calc(100% - 40px);
  20845. background: #ededed;
  20846. border-bottom-left-radius: 15px;
  20847. border-bottom-right-radius: 15px;
  20848. }
  20849. .pzAudioClass {
  20850. margin: 15px 14px;
  20851. background: #fff;
  20852. height: 100%;
  20853. display: flex;
  20854. justify-content: center;
  20855. align-items: center;
  20856. }
  20857. .pzConText {
  20858. width: 95%;
  20859. height: 100%;
  20860. margin: 10px auto 0;
  20861. border: none;
  20862. background: #fff;
  20863. border-radius: 0px;
  20864. }
  20865. .pzConText >>> .text {
  20866. height: calc(100% - 82px);
  20867. }
  20868. .addTextCss {
  20869. background: #4b79ce;
  20870. width: 80px;
  20871. height: 30px;
  20872. text-align: center;
  20873. color: #fff;
  20874. line-height: 30px;
  20875. border-radius: 10px;
  20876. margin: 10px auto 0;
  20877. cursor: pointer;
  20878. }
  20879. .pzConText:focus-visible {
  20880. border: none !important;
  20881. }
  20882. .maxWidth {
  20883. width: 1000px;
  20884. }
  20885. .noPz {
  20886. width: 150px;
  20887. margin: 0 auto 20%;
  20888. }
  20889. .noPz > img {
  20890. width: 100%;
  20891. height: 100%;
  20892. }
  20893. .timeAndReply {
  20894. display: flex;
  20895. flex-direction: row;
  20896. flex-wrap: nowrap;
  20897. justify-content: space-between;
  20898. align-items: center;
  20899. font-size: 14px;
  20900. box-sizing: border-box;
  20901. padding: 0 10px 10px 0px;
  20902. }
  20903. .timeAndReply .time {
  20904. color: #bfbfbf;
  20905. padding: 0 0 0 10px;
  20906. box-sizing: border-box;
  20907. }
  20908. .timeAndReply > div:last-child {
  20909. cursor: pointer;
  20910. color: #777;
  20911. }
  20912. /* table 样式 */
  20913. .cont >>> table {
  20914. border-top: 1px solid #ccc;
  20915. border-left: 1px solid #ccc;
  20916. }
  20917. .cont >>> table td,
  20918. .cont >>> table th {
  20919. border-bottom: 1px solid #ccc;
  20920. border-right: 1px solid #ccc;
  20921. /* padding: 20px 5px; */
  20922. padding: 5px 10px;
  20923. max-width: 0px;
  20924. height: 30px;
  20925. vertical-align: baseline;
  20926. box-sizing: border-box;
  20927. }
  20928. .cont >>> table th {
  20929. border-bottom: 2px solid #ccc;
  20930. text-align: center;
  20931. }
  20932. /* blockquote 样式 */
  20933. .cont >>> blockquote {
  20934. display: block;
  20935. border-left: 8px solid #d0e5f2;
  20936. padding: 5px 10px;
  20937. margin: 10px 0;
  20938. line-height: 1.4;
  20939. font-size: 100%;
  20940. background-color: #f1f1f1;
  20941. }
  20942. /* code 样式 */
  20943. .cont >>> code {
  20944. display: inline-block;
  20945. /* *display: inline; */
  20946. zoom: 1;
  20947. background-color: #f1f1f1;
  20948. border-radius: 3px;
  20949. padding: 3px 5px;
  20950. margin: 0 3px;
  20951. }
  20952. .cont >>> pre code {
  20953. display: block;
  20954. }
  20955. /* ul ol 样式 */
  20956. .cont >>> ul,
  20957. ol {
  20958. margin: 10px 0 10px 20px;
  20959. }
  20960. .addPzCheck {
  20961. display: flex;
  20962. flex-direction: row;
  20963. flex-wrap: nowrap;
  20964. padding: 10px 15px 0;
  20965. }
  20966. .addPzCheck span {
  20967. cursor: pointer;
  20968. padding-bottom: 5px;
  20969. font-weight: bold;
  20970. }
  20971. .addPzCheck span + span {
  20972. margin-left: 10px;
  20973. }
  20974. .addPzCheck .isChooseActive {
  20975. color: #3e88f4;
  20976. border-bottom: 2px solid #2f80f3;
  20977. }
  20978. /* code 样式 */
  20979. .cont {
  20980. /* -webkit-user-modify: read-write; */
  20981. overflow-wrap: break-word;
  20982. -webkit-line-break: after-white-space;
  20983. }
  20984. .scoreBox,
  20985. .scoreDetailBox {
  20986. display: flex;
  20987. align-items: center;
  20988. justify-content: flex-start;
  20989. margin-top: 20px;
  20990. font-size: 18px;
  20991. width: 100%;
  20992. }
  20993. .scoreBox .t,
  20994. .scoreDetailBox .t {
  20995. margin-right: 10px;
  20996. width: 100px;
  20997. text-align: right;
  20998. }
  20999. .scoreDetailBox {
  21000. align-items: flex-start;
  21001. }
  21002. .scoreDetailBox >>> .el-textarea {
  21003. width: calc(100% - 200px);
  21004. }
  21005. .scoreBox >>> .el-input {
  21006. width: 130px;
  21007. font-size: 38px;
  21008. }
  21009. .scoreBox >>> .el-input__inner {
  21010. height: 60px;
  21011. }
  21012. .answerScore {
  21013. position: absolute;
  21014. top: 10px;
  21015. right: 10px;
  21016. background: #0000008f;
  21017. border-radius: 5px;
  21018. padding: 3px 5px;
  21019. font-size: 14px;
  21020. color: #fff;
  21021. cursor: pointer;
  21022. }
  21023. .open_box .switch_box {
  21024. width: 100%;
  21025. margin: 0 auto;
  21026. display: flex;
  21027. justify-content: space-between;
  21028. }
  21029. .open_box .switch_box + .switch_box {
  21030. margin-top: 10px;
  21031. }
  21032. .deleteImg {
  21033. width: 25px !important;
  21034. height: 25px !important;
  21035. cursor: pointer;
  21036. position: absolute;
  21037. top: 10px;
  21038. right: 10px;
  21039. }
  21040. .deleteImg2 {
  21041. width: 15px !important;
  21042. height: 15px !important;
  21043. top: 5px;
  21044. right: 5px;
  21045. }
  21046. .rightW {
  21047. right: 40px;
  21048. }
  21049. .drawPBox {
  21050. display: flex;
  21051. flex-direction: column;
  21052. position: relative;
  21053. }
  21054. .drawPBox span {
  21055. font-size: 18px;
  21056. color: #606266;
  21057. padding-bottom: 10px;
  21058. margin: 10px 0;
  21059. border-bottom: 1px solid #eaeaea;
  21060. }
  21061. .drawPBox img {
  21062. width: 500px;
  21063. height: 300px;
  21064. object-fit: contain;
  21065. cursor: pointer;
  21066. margin: 0 auto;
  21067. }
  21068. .sentenBox {
  21069. background: #fff;
  21070. height: 450px;
  21071. overflow: auto;
  21072. background-image: url("../../assets/icon/conSentences/stuBg.png");
  21073. background-position: 102%;
  21074. background-repeat: no-repeat;
  21075. background-size: 60%;
  21076. }
  21077. .addSen {
  21078. background: #409efe;
  21079. width: 90px;
  21080. color: #fff;
  21081. height: 35px;
  21082. text-align: center;
  21083. line-height: 35px;
  21084. border-radius: 5px;
  21085. float: right;
  21086. margin: 10px 20px 0 0;
  21087. cursor: pointer;
  21088. }
  21089. .sentenTop {
  21090. display: flex;
  21091. flex-direction: row;
  21092. flex-wrap: nowrap;
  21093. align-items: center;
  21094. padding: 55px 0 0 20px;
  21095. box-sizing: border-box;
  21096. }
  21097. .sentenTop > div:nth-child(2) {
  21098. width: 300px;
  21099. margin: 0 15px;
  21100. }
  21101. .sentenTop > div:nth-child(3) {
  21102. background: #409efe;
  21103. color: #fff;
  21104. width: 65px;
  21105. height: 35px;
  21106. text-align: center;
  21107. line-height: 35px;
  21108. border-radius: 5px;
  21109. cursor: pointer;
  21110. }
  21111. .cardList,
  21112. .cardList1 {
  21113. padding: 10px 0 10px 0;
  21114. display: flex;
  21115. flex-direction: row;
  21116. flex-wrap: wrap;
  21117. align-items: center;
  21118. box-sizing: border-box;
  21119. border-bottom: 1px solid #f4f4f4;
  21120. width: 98%;
  21121. margin: 0 auto;
  21122. min-width: 60%;
  21123. max-width: 85%;
  21124. }
  21125. .cardList1 {
  21126. padding: 10px 0 10px 10px !important;
  21127. margin: 0 !important;
  21128. }
  21129. .cardBox {
  21130. display: flex;
  21131. flex-direction: row;
  21132. flex-wrap: wrap;
  21133. align-items: center;
  21134. align-content: center;
  21135. }
  21136. .cardBox > div {
  21137. margin-bottom: 10px;
  21138. }
  21139. .isCard,
  21140. .isChooseCard,
  21141. .noCard,
  21142. .isCard1 {
  21143. width: 130px;
  21144. height: 60px;
  21145. text-align: center;
  21146. line-height: 60px;
  21147. font-size: 20px;
  21148. cursor: pointer;
  21149. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  21150. background-size: cover;
  21151. transition: all 2s;
  21152. margin-right: 20px;
  21153. }
  21154. .isCard > div,
  21155. .noCard > div,
  21156. .isCard1 > div {
  21157. white-space: nowrap;
  21158. overflow: hidden;
  21159. text-overflow: ellipsis;
  21160. width: 75%;
  21161. margin: 0 auto;
  21162. }
  21163. .noCard {
  21164. background-image: none;
  21165. }
  21166. .isCard1 {
  21167. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  21168. }
  21169. .isChooseCard {
  21170. background-image: none;
  21171. border: 1px dashed #b9b9b9;
  21172. border-radius: 10px;
  21173. }
  21174. .card {
  21175. width: 130px;
  21176. height: 60px;
  21177. }
  21178. .card > img {
  21179. width: 100%;
  21180. height: 100%;
  21181. }
  21182. .rightCardBox {
  21183. margin: 10px 0 0 10px;
  21184. }
  21185. .rightCardBox > div:nth-child(1) {
  21186. margin-bottom: 10px;
  21187. }
  21188. .cardCss {
  21189. display: flex;
  21190. flex-direction: column;
  21191. flex-wrap: nowrap;
  21192. align-items: center;
  21193. border-bottom: 3px solid #b4c3d3;
  21194. padding: 0 0 5px 0;
  21195. margin-right: 10px;
  21196. }
  21197. .cardCss > div:nth-child(2) {
  21198. background: #5b7b9d;
  21199. color: #fff;
  21200. width: 20px;
  21201. height: 20px;
  21202. border-radius: 50%;
  21203. text-align: center;
  21204. line-height: 20px;
  21205. }
  21206. .isWrong {
  21207. display: flex;
  21208. flex-direction: row;
  21209. flex-wrap: nowrap;
  21210. align-content: center;
  21211. align-items: center;
  21212. }
  21213. .answerRight {
  21214. width: 25%;
  21215. }
  21216. .isTj {
  21217. display: flex;
  21218. flex-direction: row;
  21219. flex-wrap: nowrap;
  21220. align-items: center;
  21221. }
  21222. .isTj > div:nth-child(2) {
  21223. color: #727070;
  21224. margin-left: 10px;
  21225. }
  21226. .isTjImg {
  21227. width: 30px;
  21228. height: 30px;
  21229. }
  21230. .isTjImg > img {
  21231. width: 100%;
  21232. height: 100%;
  21233. }
  21234. .cardAnswerBox {
  21235. font-size: 18px;
  21236. width: 97%;
  21237. border: 5px;
  21238. padding: 0;
  21239. border-radius: 5px;
  21240. margin: 10px auto;
  21241. word-break: break-word;
  21242. }
  21243. .w_name {
  21244. margin-bottom: 10px;
  21245. }
  21246. .w_name span {
  21247. font-size: 16px;
  21248. }
  21249. .w_teachert {
  21250. width: 50px !important;
  21251. position: absolute;
  21252. height: auto !important;
  21253. z-index: 10;
  21254. right: 25px;
  21255. top: -25px;
  21256. }
  21257. .group_workBox {
  21258. }
  21259. .group_workBox + .group_workBox {
  21260. margin-top: 20px;
  21261. }
  21262. .group_box {
  21263. padding-bottom: 20px;
  21264. border-bottom: 2px solid #f0f0f0;
  21265. margin-top: 10px;
  21266. }
  21267. .group_title {
  21268. display: flex;
  21269. align-items: center;
  21270. justify-content: space-between;
  21271. width: 95%;
  21272. }
  21273. .group_name {
  21274. background-image: url(../../assets/icon/groupN.png);
  21275. width: 220px;
  21276. background-size: 100% 100%;
  21277. height: 67px;
  21278. padding: 0 20px 0 43px;
  21279. box-sizing: border-box;
  21280. line-height: 63px;
  21281. color: #fff;
  21282. overflow: hidden;
  21283. white-space: nowrap;
  21284. text-overflow: ellipsis;
  21285. }
  21286. .group_work {
  21287. width: 100%;
  21288. padding: 0 10px;
  21289. box-sizing: border-box;
  21290. display: flex;
  21291. flex-wrap: wrap;
  21292. }
  21293. .g_d_box {
  21294. display: flex;
  21295. flex-flow: wrap;
  21296. justify-content: space-around;
  21297. }
  21298. .g_d_box .isChair {
  21299. background-image: url(../../assets/avatar.png) !important;
  21300. }
  21301. .g_d_group {
  21302. width: 500px;
  21303. margin-bottom: 80px;
  21304. }
  21305. .g_d_group_chair {
  21306. display: flex;
  21307. align-items: center;
  21308. justify-content: center;
  21309. }
  21310. .g_d_group_chair > div + div {
  21311. margin-left: 30px;
  21312. }
  21313. .g_d_group_chair > div,
  21314. .g_d_group_chair2 > div {
  21315. display: flex;
  21316. flex-direction: column;
  21317. align-items: center;
  21318. }
  21319. .g_d_group_chair > div > span:nth-child(1),
  21320. .g_d_group_chair2 > div > span:nth-child(1) {
  21321. background-image: url(../../assets/icon/chair.png);
  21322. width: 50px;
  21323. height: 50px;
  21324. display: block;
  21325. background-size: 100% 100%;
  21326. }
  21327. .g_d_group_tableBox {
  21328. display: flex;
  21329. align-items: center;
  21330. justify-content: center;
  21331. }
  21332. .g_d_group_chair2 {
  21333. display: flex;
  21334. flex-direction: column;
  21335. align-items: center;
  21336. justify-content: center;
  21337. }
  21338. .g_d_group_chair2 > div + div {
  21339. margin-top: 10px;
  21340. }
  21341. .g_d_group_table {
  21342. background-image: url(../../assets/icon/groupBg.png);
  21343. width: 354px;
  21344. height: 196px;
  21345. background-size: 100% 100%;
  21346. display: flex;
  21347. align-items: center;
  21348. justify-content: center;
  21349. flex-direction: column;
  21350. color: #fff;
  21351. }
  21352. .g_d_group_table > div:nth-child(1) {
  21353. font-size: 24px;
  21354. margin-bottom: 5px;
  21355. }
  21356. .g_d_group_table > div:nth-child(2) div {
  21357. cursor: pointer;
  21358. background: #2e77bf;
  21359. padding: 4px 10px;
  21360. border-radius: 5px;
  21361. }
  21362. .groupBox {
  21363. }
  21364. .groupContent + .groupContent {
  21365. margin-top: 30px;
  21366. }
  21367. .groupTitle {
  21368. font-size: 24px;
  21369. color: rgb(80, 80, 80);
  21370. margin-bottom: 20px;
  21371. }
  21372. .groupName {
  21373. display: flex;
  21374. align-items: center;
  21375. }
  21376. .groupn {
  21377. font-size: 15px;
  21378. margin-right: 10px;
  21379. }
  21380. .groupName + .groupName {
  21381. margin-top: 15px;
  21382. }
  21383. .groupBtn {
  21384. margin-left: 10px;
  21385. }
  21386. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  21387. text-align: left;
  21388. }
  21389. .g_d_btnBox {
  21390. display: flex;
  21391. justify-content: flex-end;
  21392. align-items: center;
  21393. margin-bottom: 20px;
  21394. }
  21395. .updateChair {
  21396. position: relative;
  21397. }
  21398. .updateChairBtn {
  21399. position: absolute;
  21400. width: 50px;
  21401. height: 50px;
  21402. overflow: hidden;
  21403. /* display: flex; */
  21404. align-items: center;
  21405. justify-content: center;
  21406. background: #00000087;
  21407. color: #fff;
  21408. border-radius: 50px;
  21409. display: none;
  21410. cursor: pointer;
  21411. }
  21412. .updateChair:hover .updateChairBtn {
  21413. display: flex;
  21414. }
  21415. .group_staic_box {
  21416. display: flex;
  21417. padding: 30px 40px 10px;
  21418. flex-wrap: wrap;
  21419. }
  21420. .group_staic {
  21421. /* width: 50%; */
  21422. margin-bottom: 20px;
  21423. display: flex;
  21424. align-items: center;
  21425. }
  21426. .group_staic span:nth-child(1) {
  21427. width: 150px;
  21428. text-align: right;
  21429. margin-right: 15px;
  21430. }
  21431. .group_staic span:nth-child(2) {
  21432. background: rgb(0 123 255);
  21433. color: #fff;
  21434. border-radius: 5px;
  21435. padding: 5px;
  21436. }
  21437. .codeFileBox {
  21438. height: 300px;
  21439. background: #fff;
  21440. display: flex;
  21441. align-items: center;
  21442. justify-content: center;
  21443. }
  21444. .codeFileBox img {
  21445. width: 200px;
  21446. margin: 0;
  21447. height: auto;
  21448. }
  21449. .codeFileBox div {
  21450. background: rgb(80, 142, 226);
  21451. color: #fff;
  21452. padding: 10px 20px;
  21453. border-radius: 25px;
  21454. cursor: pointer;
  21455. margin-left: 15px;
  21456. }
  21457. .radioBox {
  21458. display: flex;
  21459. flex-direction: column;
  21460. flex-wrap: nowrap;
  21461. align-items: flex-start;
  21462. }
  21463. .radioBox > div {
  21464. margin: 10px 0 0 10px;
  21465. }
  21466. /* .radioBox >>> .el-radio__input,
  21467. .radioBox >>> .el-checkbox__inner {
  21468. margin-left: 10px;
  21469. } */
  21470. .radioBox >>> .el-radio__label,
  21471. .radioBox >>> .el-checkbox__label {
  21472. display: flex;
  21473. align-items: center;
  21474. width: 100%;
  21475. }
  21476. .radioBox >>> .el-radio__label > span {
  21477. width: 100%;
  21478. display: -webkit-box;
  21479. overflow: hidden;
  21480. white-space: normal !important;
  21481. text-overflow: ellipsis;
  21482. word-wrap: break-word;
  21483. }
  21484. .inImg {
  21485. width: 100px;
  21486. cursor: pointer;
  21487. }
  21488. .inImg > img {
  21489. width: 100%;
  21490. height: 100%;
  21491. object-fit: cover;
  21492. }
  21493. .timuImgBox {
  21494. margin: 10px 0;
  21495. display: flex;
  21496. flex-direction: column;
  21497. flex-wrap: wrap;
  21498. align-items: flex-start;
  21499. }
  21500. .timuImg {
  21501. width: 150px;
  21502. margin: 5px 0;
  21503. cursor: pointer;
  21504. }
  21505. .timuImg > img {
  21506. width: 100%;
  21507. height: 100%;
  21508. object-fit: cover;
  21509. }
  21510. .worksTop {
  21511. display: flex;
  21512. flex-direction: row;
  21513. align-items: flex-end;
  21514. }
  21515. .worksTitle{
  21516. display: flex;
  21517. flex-direction: row;
  21518. flex-wrap: nowrap;
  21519. align-items: center;
  21520. }
  21521. .worksTitle::before,.worksTop::before{
  21522. content: '';
  21523. display: block;
  21524. width: 3px;
  21525. height: 20px;
  21526. background: #0061FF;
  21527. border-radius: 3px;
  21528. margin: 0 5px 0 0;
  21529. }
  21530. .corOpen {
  21531. margin: 0 0 0 10px;
  21532. font-size: 14px;
  21533. cursor: pointer;
  21534. color: #505050;
  21535. }
  21536. .corOpen:hover {
  21537. color: #499eef;
  21538. }
  21539. .navCorOpenBox {
  21540. display: flex;
  21541. flex-direction: row;
  21542. align-items: center;
  21543. justify-content: space-between;
  21544. height: 55px;
  21545. background: #ffffff;
  21546. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  21547. border-radius: 8px 8px 0px 0px;
  21548. z-index: 9;
  21549. position: relative;
  21550. }
  21551. .navCorOpen {
  21552. padding-right: 15px;
  21553. cursor: pointer;
  21554. width: 45px;
  21555. display: flex;
  21556. }
  21557. .navCorOpen > img {
  21558. width: 100%;
  21559. height: 100%;
  21560. }
  21561. .mlImg {
  21562. width: 45px !important;
  21563. min-width: 45px;
  21564. cursor: pointer;
  21565. transform: rotate(180deg);
  21566. }
  21567. .mlImg > img {
  21568. width: 100%;
  21569. height: 100%;
  21570. }
  21571. .navLeftCss {
  21572. width: 100% !important;
  21573. left: 0 !important;
  21574. }
  21575. .isContentCss {
  21576. width: 100% !important;
  21577. }
  21578. .isAllWidth {
  21579. width: 100% !important;
  21580. }
  21581. .group_switch {
  21582. margin-right: 10px;
  21583. height: 30px;
  21584. display: flex;
  21585. align-items: center;
  21586. }
  21587. .group_switch > span {
  21588. margin-right: 5px;
  21589. }
  21590. .fileC_box {
  21591. padding-top: 15px;
  21592. }
  21593. .fileC_box > .fileC_title {
  21594. padding: 10px 5px 14px 11px;
  21595. border-top: 1px solid #cad1dc;
  21596. font-size: 14px;
  21597. font-weight: 400;
  21598. color: #cad1dc;
  21599. width: 88%;
  21600. margin: 0 auto;
  21601. }
  21602. .pl_select_box {
  21603. height: 40px;
  21604. line-height: 40px;
  21605. width: 100%;
  21606. cursor: pointer;
  21607. padding: 0 20px;
  21608. box-sizing: border-box;
  21609. border-radius: 5px;
  21610. border: 1px solid #d6d6d6;
  21611. white-space: nowrap;
  21612. overflow: hidden;
  21613. text-overflow: ellipsis;
  21614. background: #fff;
  21615. text-align: left;
  21616. }
  21617. .newButton {
  21618. width: 102px;
  21619. height: 36px;
  21620. background: #e7ebf1;
  21621. border-radius: 4px;
  21622. color: #0e1e33;
  21623. font-weight: 400;
  21624. font-size: 14px;
  21625. border: none;
  21626. float: right;
  21627. margin-left: 10px;
  21628. }
  21629. .el-table >>> .even_row {
  21630. background-color: #f0f4fa;
  21631. }
  21632. .stageBoxCss,
  21633. .stageBoxIsCss {
  21634. display: flex;
  21635. flex-direction: row;
  21636. flex-wrap: nowrap;
  21637. align-items: center;
  21638. height: 50px;
  21639. border-bottom: 1px solid #e2f5fc;
  21640. cursor: pointer;
  21641. width: 100%;
  21642. }
  21643. .stageBoxIsCss {
  21644. background: #0061ff;
  21645. color: #fff;
  21646. border-radius: 8px;
  21647. }
  21648. .stageItemTitle {
  21649. display: flex;
  21650. flex-direction: row;
  21651. flex-wrap: nowrap;
  21652. align-items: center;
  21653. margin-left: 15px;
  21654. width: calc(100% - 50px);
  21655. }
  21656. .stageItemTitle > div:first-child {
  21657. font-size: 16px;
  21658. font-weight: bold;
  21659. min-width: 55px;
  21660. }
  21661. .stageItemTitle > div:last-child {
  21662. font-size: 15px;
  21663. font-weight: 600;
  21664. max-width: 242px;
  21665. white-space: nowrap;
  21666. overflow: hidden;
  21667. text-overflow: ellipsis;
  21668. word-break: break-word;
  21669. width: calc(100% - 55px);
  21670. }
  21671. .closeTri,
  21672. .closeTri1 {
  21673. min-width: 15px;
  21674. width: 15px;
  21675. height: 15px;
  21676. }
  21677. .closeTri1 {
  21678. padding-left: 10px;
  21679. cursor: pointer;
  21680. }
  21681. .closeTri > img,
  21682. .closeTri1 > img {
  21683. width: 100%;
  21684. height: 100%;
  21685. }
  21686. .noToolBlue {
  21687. min-width: 10px;
  21688. width: 10px;
  21689. height: 10px;
  21690. background: #0061ff;
  21691. border-radius: 50%;
  21692. margin-left: 13px;
  21693. }
  21694. .stageChild,
  21695. .toolChild {
  21696. height: 0;
  21697. overflow: hidden;
  21698. transition: all 0.5s;
  21699. }
  21700. .toolChild {
  21701. margin: 0 0 0 17px;
  21702. padding: 0 0 0 20px;
  21703. border-left: 1px solid #d7d7d7;
  21704. }
  21705. .gjCss {
  21706. display: flex;
  21707. flex-direction: row;
  21708. flex-wrap: nowrap;
  21709. align-items: center;
  21710. padding: 15px 0;
  21711. box-sizing: border-box;
  21712. font-size: 14px;
  21713. cursor: pointer;
  21714. }
  21715. .toolChild > div {
  21716. position: relative;
  21717. }
  21718. .toolChild > div::before {
  21719. content: "";
  21720. width: 15px;
  21721. height: 1px;
  21722. background: #cad1dc;
  21723. position: absolute;
  21724. top: 24px;
  21725. left: -20px;
  21726. display: block;
  21727. }
  21728. .isGjCss {
  21729. color: #0061ff;
  21730. }
  21731. .navItem {
  21732. background: #ffffff;
  21733. border-radius: 4px;
  21734. width: 100%;
  21735. margin: 10px auto 0;
  21736. position: relative;
  21737. height: 40px;
  21738. display: flex;
  21739. flex-direction: row;
  21740. flex-wrap: nowrap;
  21741. align-items: center;
  21742. }
  21743. .navItemList {
  21744. display: flex;
  21745. flex-direction: row;
  21746. flex-wrap: nowrap;
  21747. align-items: center;
  21748. padding: 0 13px;
  21749. cursor: pointer;
  21750. width: calc(100% - 60px);
  21751. height: 100%;
  21752. }
  21753. .navItemList > div:first-child {
  21754. min-width: 60px;
  21755. }
  21756. .navItemList > div:last-child {
  21757. width: calc(100% - 80px);
  21758. white-space: nowrap;
  21759. overflow: hidden;
  21760. text-overflow: ellipsis;
  21761. word-break: break-word;
  21762. }
  21763. /* .isItemList > div {
  21764. color: #fff !important;
  21765. } */
  21766. .tool_work_box {
  21767. width: 100%;
  21768. padding: 0 37px 0;
  21769. box-sizing: border-box;
  21770. }
  21771. .tool_box {
  21772. width: 100%;
  21773. padding: 0 0 0 20px;
  21774. }
  21775. .tool_type_box {
  21776. display: flex;
  21777. flex-direction: row;
  21778. align-items: baseline;
  21779. flex-wrap: nowrap;
  21780. justify-content: flex-start;
  21781. position: relative;
  21782. }
  21783. .toolSort {
  21784. display: flex;
  21785. flex-direction: row;
  21786. flex-wrap: wrap;
  21787. justify-content: flex-start;
  21788. align-items: flex-start;
  21789. padding: 0 0 15px 0;
  21790. }
  21791. .toolSort > div {
  21792. margin: 0 10px 0 0;
  21793. width: 135px;
  21794. box-sizing: border-box;
  21795. border: 2px solid transparent;
  21796. }
  21797. .tools {
  21798. width: 100%;
  21799. display: flex;
  21800. flex-direction: column;
  21801. flex-wrap: nowrap;
  21802. align-items: flex-start;
  21803. }
  21804. .whiteBIcon {
  21805. width: fit-content;
  21806. cursor: pointer;
  21807. display: flex;
  21808. flex-direction: column;
  21809. flex-wrap: nowrap;
  21810. align-items: center;
  21811. font-size: 14px;
  21812. }
  21813. .tool:hover {
  21814. border: 2px solid #a5c7ff;
  21815. border-radius: 5px;
  21816. }
  21817. .whiteBIcon > img {
  21818. width: 65px;
  21819. height: 100%;
  21820. }
  21821. .whiteBIcon > img {
  21822. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  21823. border-radius: 15px;
  21824. }
  21825. .check {
  21826. /* width: 20px;
  21827. height: 20px; */
  21828. cursor: pointer;
  21829. margin: 10px 0;
  21830. position: absolute;
  21831. right: 2px;
  21832. top: -5px;
  21833. }
  21834. .noChoose,
  21835. .isChoose {
  21836. width: 15px;
  21837. height: 15px;
  21838. border-radius: 50%;
  21839. border: 1px solid #adadad;
  21840. }
  21841. .isChoose {
  21842. border: 4px solid #0363ff !important;
  21843. width: 10px;
  21844. height: 10px;
  21845. }
  21846. .isToolChoose {
  21847. border: 2px solid #5394ff !important;
  21848. border-radius: 5px;
  21849. box-shadow: 0 0 6px 0px #5394ff;
  21850. }
  21851. .checkDiv {
  21852. display: flex;
  21853. align-items: center;
  21854. }
  21855. .checkDiv span {
  21856. margin-left: 5px;
  21857. color: #858585;
  21858. }
  21859. .check img {
  21860. width: 20px;
  21861. height: 20px;
  21862. }
  21863. .lockTaskIcon {
  21864. width: 20px;
  21865. height: 20px;
  21866. position: absolute;
  21867. right: 10px;
  21868. top: 10px;
  21869. }
  21870. .lockTaskIcon > img {
  21871. width: 100%;
  21872. height: 100%;
  21873. }
  21874. .pick_box {
  21875. display: flex;
  21876. align-items: flex-start;
  21877. flex-wrap: wrap;
  21878. }
  21879. .selectBox {
  21880. width: 110px;
  21881. margin-left: 10px;
  21882. margin: 0 10px 0 auto;
  21883. }
  21884. .selectBox >>> .el-input__inner {
  21885. height: 30px;
  21886. line-height: 30px;
  21887. }
  21888. .selectBox >>> .el-input__icon {
  21889. line-height: 30px;
  21890. }
  21891. .sentenceTitle {
  21892. display: flex;
  21893. flex-direction: row;
  21894. flex-wrap: nowrap;
  21895. align-items: center;
  21896. }
  21897. .sentenceTitle::before {
  21898. content: attr(index);
  21899. background: #3681fc;
  21900. border-radius: 50%;
  21901. color: #fff;
  21902. width: 25px;
  21903. height: 25px;
  21904. min-width: 25px;
  21905. min-height: 25px;
  21906. text-align: center;
  21907. line-height: 25px;
  21908. margin-right: 5px;
  21909. }
  21910. .hfBox {
  21911. padding: 10px;
  21912. box-sizing: border-box;
  21913. }
  21914. .whoReplyWho {
  21915. display: flex;
  21916. flex-direction: row;
  21917. flex-wrap: nowrap;
  21918. align-items: baseline;
  21919. justify-content: flex-start;
  21920. }
  21921. .hfBottom {
  21922. display: flex;
  21923. flex-direction: row;
  21924. flex-wrap: nowrap;
  21925. align-items: center;
  21926. justify-content: space-between;
  21927. font-size: 14px;
  21928. }
  21929. .deleteHfItem {
  21930. cursor: pointer;
  21931. width: 20px;
  21932. height: 20px;
  21933. }
  21934. .deleteHfItem > img {
  21935. width: 100%;
  21936. height: 100%;
  21937. }
  21938. .whoReplyWho > .hfImg {
  21939. width: 12px;
  21940. height: 12px;
  21941. margin: 0 5px;
  21942. }
  21943. .whoReplyWho > .hfImg > img {
  21944. width: 100%;
  21945. height: 100%;
  21946. }
  21947. .hfContent {
  21948. padding-top: 10px;
  21949. box-sizing: border-box;
  21950. display: -webkit-box;
  21951. overflow: hidden;
  21952. white-space: normal !important;
  21953. text-overflow: ellipsis;
  21954. word-wrap: break-word;
  21955. -webkit-box-orient: vertical;
  21956. }
  21957. .hfTime {
  21958. text-align: left;
  21959. box-sizing: border-box;
  21960. padding: 10px 0 10px 0px;
  21961. color: #bfbfbf;
  21962. font-size: 14px;
  21963. }
  21964. .btnAllNT {
  21965. position: fixed;
  21966. bottom: 100px;
  21967. right: 40px;
  21968. z-index: 999;
  21969. display: flex;
  21970. flex-direction: row;
  21971. }
  21972. .btnAllNT > img {
  21973. cursor: pointer;
  21974. width: 80px;
  21975. }
  21976. .toolMask {
  21977. position: fixed;
  21978. width: 100%;
  21979. height: 100%;
  21980. background: #3f3c3c;
  21981. opacity: 0.5;
  21982. top: 0;
  21983. left: 0;
  21984. z-index: 999;
  21985. }
  21986. .addToolCss {
  21987. position: fixed;
  21988. z-index: 999;
  21989. background: #fff;
  21990. right: 5%;
  21991. bottom: 18%;
  21992. min-width: 1035px;
  21993. min-height: 300px;
  21994. border-radius: 10px;
  21995. box-shadow: 0 0 8px 1px #b2b2b2;
  21996. }
  21997. .toolTop {
  21998. display: flex;
  21999. flex-direction: row;
  22000. flex-wrap: nowrap;
  22001. justify-content: space-between;
  22002. align-items: center;
  22003. padding: 20px;
  22004. }
  22005. .toolTop > div:nth-child(2) {
  22006. width: 15px;
  22007. height: 15px;
  22008. padding-right: 10px;
  22009. cursor: pointer;
  22010. }
  22011. .toolTop > div:nth-child(2) > img {
  22012. width: 100%;
  22013. height: 100%;
  22014. }
  22015. </style>